Lines Matching full:eth

18 #include "bcm-sf2-eth.h"
21 #include "bcm-sf2-eth-gmac.h"
35 struct eth_info *eth = (struct eth_info *)(dev->priv); in bcm_sf2_eth_init() local
36 struct eth_dma *dma = &(eth->dma); in bcm_sf2_eth_init()
41 rc = eth->mac_init(dev); in bcm_sf2_eth_init()
51 eth->port_num = 0; in bcm_sf2_eth_init()
54 0, dev, eth->phy_interface); in bcm_sf2_eth_init()
56 eth->port[0] = phydev; in bcm_sf2_eth_init()
57 eth->port_num += 1; in bcm_sf2_eth_init()
62 for (i = 0; i < eth->port_num; i++) in bcm_sf2_eth_init()
63 phy_config(eth->port[i]); in bcm_sf2_eth_init()
140 struct eth_info *eth = (struct eth_info *)(dev->priv); in bcm_sf2_eth_write_hwaddr() local
142 printf(" ETH MAC: %02x:%02x:%02x:%02x:%02x:%02x\n", in bcm_sf2_eth_write_hwaddr()
146 return eth->set_mac_addr(dev->enetaddr); in bcm_sf2_eth_write_hwaddr()
151 struct eth_info *eth = (struct eth_info *)(dev->priv); in bcm_sf2_eth_open() local
152 struct eth_dma *dma = &(eth->dma); in bcm_sf2_eth_open()
157 eth->enable_mac(); in bcm_sf2_eth_open()
167 for (i = 0; i < eth->port_num; i++) { in bcm_sf2_eth_open()
168 if (phy_startup(eth->port[i])) { in bcm_sf2_eth_open()
180 eth->port[i]->speed, eth->port[i]->duplex, eth->port[i]->link); in bcm_sf2_eth_open()
181 eth->set_mac_speed(eth->port[i]->speed, eth->port[i]->duplex); in bcm_sf2_eth_open()
190 struct eth_info *eth = (struct eth_info *)(dev->priv); in bcm_sf2_eth_close() local
191 struct eth_dma *dma = &(eth->dma); in bcm_sf2_eth_close()
197 eth->disable_mac(); in bcm_sf2_eth_close()
203 struct eth_info *eth; in bcm_sf2_eth_register() local
212 eth = (struct eth_info *)malloc(sizeof(struct eth_info)); in bcm_sf2_eth_register()
213 if (eth == NULL) { in bcm_sf2_eth_register()
224 dev->priv = (void *)eth; in bcm_sf2_eth_register()
235 free(eth); in bcm_sf2_eth_register()
253 mdiodev->read = eth->miiphy_read; in bcm_sf2_eth_register()
254 mdiodev->write = eth->miiphy_write; in bcm_sf2_eth_register()