Lines Matching refs:mac
29 static void tgec_init_mac(struct fsl_enet_mac *mac) in tgec_init_mac() argument
31 struct tgec *regs = mac->base; in tgec_init_mac()
40 out_be32(®s->maxfrm, mac->max_rx_len & MAXFRM_MASK); in tgec_init_mac()
56 static void tgec_enable_mac(struct fsl_enet_mac *mac) in tgec_enable_mac() argument
58 struct tgec *regs = mac->base; in tgec_enable_mac()
63 static void tgec_disable_mac(struct fsl_enet_mac *mac) in tgec_disable_mac() argument
65 struct tgec *regs = mac->base; in tgec_disable_mac()
70 static void tgec_set_mac_addr(struct fsl_enet_mac *mac, u8 *mac_addr) in tgec_set_mac_addr() argument
72 struct tgec *regs = mac->base; in tgec_set_mac_addr()
87 static void tgec_set_interface_mode(struct fsl_enet_mac *mac, in tgec_set_interface_mode() argument
94 void init_tgec(struct fsl_enet_mac *mac, void *base, in init_tgec() argument
97 mac->base = base; in init_tgec()
98 mac->phyregs = phyregs; in init_tgec()
99 mac->max_rx_len = max_rx_len; in init_tgec()
100 mac->init_mac = tgec_init_mac; in init_tgec()
101 mac->enable_mac = tgec_enable_mac; in init_tgec()
102 mac->disable_mac = tgec_disable_mac; in init_tgec()
103 mac->set_mac_addr = tgec_set_mac_addr; in init_tgec()
104 mac->set_if_mode = tgec_set_interface_mode; in init_tgec()