dnet.c | 25 #include "dnet.h" 38 u16 dnet_readw_mac(struct dnet_device *dnet, u16 reg) 43 writel(reg, &dnet->regs->MACREG_ADDR); 50 data_read = readl(&dnet->regs->MACREG_DATA); 57 void dnet_writew_mac(struct dnet_device *dnet, u16 reg, u16 val) 60 writel(val, &dnet->regs->MACREG_DATA); 63 writel(reg | DNET_INTERNAL_WRITE, &dnet->regs->MACREG_ADDR); 70 static void dnet_mdio_write(struct dnet_device *dnet, u8 reg, u16 value) 75 dnet->phy_addr, reg, value); 77 while (!(dnet_readw_mac(dnet, DNET_INTERNAL_GMII_MNG_CTL_REG) 135 struct dnet_device *dnet = to_dnet(netdev); local 170 struct dnet_device *dnet = to_dnet(netdev); local 204 struct dnet_device *dnet = to_dnet(netdev); local 315 struct dnet_device *dnet = to_dnet(netdev); local 353 struct dnet_device *dnet = to_dnet(netdev); local 361 struct dnet_device *dnet; local [all...] |