Lines Matching refs:config
629 big_sur_ge_config *config; in big_sur_ge_enet_init() local
633 config = big_sur_ge_get_config(device_id); in big_sur_ge_enet_init()
634 if (config == NULL) in big_sur_ge_enet_init()
640 emac->has_mii = config->has_mii; in big_sur_ge_enet_init()
642 emac->dma_config = config->dma_config; in big_sur_ge_enet_init()
643 emac->base_address = config->base_address; in big_sur_ge_enet_init()
922 unsigned long config; in big_sur_ge_set_frame_gap() local
926 config = ( (part1 << BIG_SUR_GE_IFGP_PART1_SHIFT) | in big_sur_ge_set_frame_gap()
929 BIG_SUR_GE_WRITE(emac->base_address + BIG_SUR_GE_IFGP_OFFSET, config); in big_sur_ge_set_frame_gap()
939 unsigned long config; in big_sur_ge_get_frame_gap() local
941 config = BIG_SUR_GE_READ(emac->base_address + BIG_SUR_GE_IFGP_OFFSET); in big_sur_ge_get_frame_gap()
942 *part1 = ((config & BIG_SUR_GE_IFGP_PART1_SHIFT) >> BIG_SUR_GE_IFGP_PART1_SHIFT); in big_sur_ge_get_frame_gap()
943 *part2 = ((config & BIG_SUR_GE_IFGP_PART2_SHIFT) >> BIG_SUR_GE_IFGP_PART2_SHIFT); in big_sur_ge_get_frame_gap()
1488 big_sur_ge_config *config; in big_sur_ge_get_config() local
1490 config->device_id = 0; in big_sur_ge_get_config()
1491 config->base_address = BIG_SUR_GE_BASE; /* Base Address of the MAC */ in big_sur_ge_get_config()
1492 config->has_counters = 0; in big_sur_ge_get_config()
1493 config->has_sg_dma = 0; in big_sur_ge_get_config()
1494 config->dma_config = 0; in big_sur_ge_get_config()
1495 config->has_mii = 1; in big_sur_ge_get_config()
1497 return (big_sur_ge_config *)config; in big_sur_ge_get_config()
1506 big_sur_ge_config *config; in big_sur_ge_remove_dev() local
1508 config = big_sur_ge_get_config(lp->index); in big_sur_ge_remove_dev()
1509 config->base_address = lp->save_base_address; in big_sur_ge_remove_dev()
1526 big_sur_ge_config *config; in big_sur_ge_probe() local
1529 config = big_sur_ge_get_config(index); in big_sur_ge_probe()
1530 if (!config) in big_sur_ge_probe()
1547 lp->save_base_address = config->base_address; in big_sur_ge_probe()
1549 if (big_sur_ge_enet_init(lp->emac, config->device_id) == -1) { in big_sur_ge_probe()
1592 lp->save_base_address, config->base_address); in big_sur_ge_probe()