Lines Matching refs:eth

34 	struct eth_info *eth = (struct eth_info *)(dev->priv);  in bcm_sf2_eth_init()  local
35 struct eth_dma *dma = &(eth->dma); in bcm_sf2_eth_init()
40 rc = eth->mac_init(dev); in bcm_sf2_eth_init()
50 eth->port_num = 0; in bcm_sf2_eth_init()
53 0, dev, eth->phy_interface); in bcm_sf2_eth_init()
55 eth->port[0] = phydev; in bcm_sf2_eth_init()
56 eth->port_num += 1; in bcm_sf2_eth_init()
61 for (i = 0; i < eth->port_num; i++) in bcm_sf2_eth_init()
62 phy_config(eth->port[i]); in bcm_sf2_eth_init()
139 struct eth_info *eth = (struct eth_info *)(dev->priv); in bcm_sf2_eth_write_hwaddr() local
145 return eth->set_mac_addr(dev->enetaddr); in bcm_sf2_eth_write_hwaddr()
150 struct eth_info *eth = (struct eth_info *)(dev->priv); in bcm_sf2_eth_open() local
151 struct eth_dma *dma = &(eth->dma); in bcm_sf2_eth_open()
156 eth->enable_mac(); in bcm_sf2_eth_open()
166 for (i = 0; i < eth->port_num; i++) { in bcm_sf2_eth_open()
167 if (phy_startup(eth->port[i])) { in bcm_sf2_eth_open()
179 eth->port[i]->speed, eth->port[i]->duplex, eth->port[i]->link); in bcm_sf2_eth_open()
180 eth->set_mac_speed(eth->port[i]->speed, eth->port[i]->duplex); in bcm_sf2_eth_open()
189 struct eth_info *eth = (struct eth_info *)(dev->priv); in bcm_sf2_eth_close() local
190 struct eth_dma *dma = &(eth->dma); in bcm_sf2_eth_close()
196 eth->disable_mac(); in bcm_sf2_eth_close()
202 struct eth_info *eth; in bcm_sf2_eth_register() local
211 eth = (struct eth_info *)malloc(sizeof(struct eth_info)); in bcm_sf2_eth_register()
212 if (eth == NULL) { in bcm_sf2_eth_register()
223 dev->priv = (void *)eth; in bcm_sf2_eth_register()
234 free(eth); in bcm_sf2_eth_register()
252 mdiodev->read = eth->miiphy_read; in bcm_sf2_eth_register()
253 mdiodev->write = eth->miiphy_write; in bcm_sf2_eth_register()