Home
last modified time | relevance | path

Searched refs:mii_id (Results 1 – 15 of 15) sorted by relevance

/drivers/net/
Dgianfar_mii.c56 int gfar_local_mdio_write(struct gfar_mii __iomem *regs, int mii_id, in gfar_local_mdio_write() argument
60 gfar_write(&regs->miimadd, (mii_id << 8) | regnum); in gfar_local_mdio_write()
82 int gfar_local_mdio_read(struct gfar_mii __iomem *regs, int mii_id, int regnum) in gfar_local_mdio_read() argument
87 gfar_write(&regs->miimadd, (mii_id << 8) | regnum); in gfar_local_mdio_read()
106 int gfar_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16 value) in gfar_mdio_write() argument
111 return(gfar_local_mdio_write(regs, mii_id, regnum, value)); in gfar_mdio_write()
117 int gfar_mdio_read(struct mii_bus *bus, int mii_id, int regnum) in gfar_mdio_read() argument
122 return(gfar_local_mdio_read(regs, mii_id, regnum)); in gfar_mdio_read()
Dgianfar_mii.h44 int gfar_mdio_read(struct mii_bus *bus, int mii_id, int regnum);
45 int gfar_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16 value);
46 int gfar_local_mdio_write(struct gfar_mii __iomem *regs, int mii_id,
48 int gfar_local_mdio_read(struct gfar_mii __iomem *regs, int mii_id, int regnum);
Dsungem_phy.h42 int mii_id; member
56 int (*mdio_read) (struct net_device *dev, int mii_id, int reg);
57 void (*mdio_write) (struct net_device *dev, int mii_id, int reg, int val);
64 extern int mii_phy_probe(struct mii_phy *phy, int mii_id);
Ducc_geth_mii.c62 int uec_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16 value) in uec_mdio_write() argument
68 (mii_id << MIIMADD_PHY_ADDRESS_SHIFT) | regnum); in uec_mdio_write()
83 int uec_mdio_read(struct mii_bus *bus, int mii_id, int regnum) in uec_mdio_read() argument
90 (mii_id << MIIMADD_PHY_ADDRESS_SHIFT) | regnum); in uec_mdio_read()
Ducc_geth_mii.h96 int uec_mdio_read(struct mii_bus *bus, int mii_id, int regnum);
97 int uec_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16 value);
Ddnet.c103 static int dnet_mdio_read(struct mii_bus *bus, int mii_id, int regnum) in dnet_mdio_read() argument
113 mii_id &= 0x1f; in dnet_mdio_read()
117 value = (mii_id << 8); in dnet_mdio_read()
130 pr_debug("mdio_read %02x:%02x <- %04x\n", mii_id, regnum, value); in dnet_mdio_read()
135 static int dnet_mdio_write(struct mii_bus *bus, int mii_id, int regnum, in dnet_mdio_write() argument
141 pr_debug("mdio_write %02x:%02x <- %04x\n", mii_id, regnum, value); in dnet_mdio_write()
151 mii_id &= 0x1f; in dnet_mdio_write()
158 tmp |= (mii_id << 8); in dnet_mdio_write()
Dspider_net.c126 spider_net_write_phy(struct net_device *netdev, int mii_id, in spider_net_write_phy() argument
132 writevalue = ((u32)mii_id << 21) | in spider_net_write_phy()
149 spider_net_read_phy(struct net_device *netdev, int mii_id, int reg) in spider_net_read_phy() argument
154 readvalue = ((u32)mii_id << 21) | ((u32)reg << 16); in spider_net_read_phy()
180 bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); in spider_net_setup_aneg()
181 estat = spider_net_read_phy(card->netdev, phy->mii_id, MII_ESTATUS); in spider_net_setup_aneg()
197 mii_phy_probe(phy, phy->mii_id); in spider_net_setup_aneg()
2123 for (phy->mii_id = 1; phy->mii_id <= 31; phy->mii_id++) { in spider_net_setup_phy()
2125 id = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); in spider_net_setup_phy()
2127 if (!mii_phy_probe(phy, phy->mii_id)) { in spider_net_setup_phy()
Dsungem_phy.c62 return phy->mdio_read(phy->dev, phy->mii_id, reg); in phy_read()
67 phy->mdio_write(phy->dev, phy->mii_id, reg, val); in phy_write()
1159 int mii_phy_probe(struct mii_phy *phy, int mii_id) in mii_phy_probe() argument
1169 phy->mii_id = mii_id; in mii_phy_probe()
1172 rc = reset_one_mii_phy(phy, mii_id); in mii_phy_probe()
1178 printk(KERN_DEBUG "PHY ID: %x, addr: %x\n", id, mii_id); in mii_phy_probe()
Dkorina.c293 static int mdio_read(struct net_device *dev, int mii_id, int reg) in mdio_read() argument
298 mii_id = ((lp->rx_irq == 0x2c ? 1 : 0) << 8); in mdio_read()
302 writel(mii_id | reg, &lp->eth_regs->miimaddr); in mdio_read()
309 static void mdio_write(struct net_device *dev, int mii_id, int reg, int val) in mdio_write() argument
313 mii_id = ((lp->rx_irq == 0x2c ? 1 : 0) << 8); in mdio_write()
317 writel(mii_id | reg, &lp->eth_regs->miimaddr); in mdio_write()
Dmacb.c91 static int macb_mdio_read(struct mii_bus *bus, int mii_id, int regnum) in macb_mdio_read() argument
98 | MACB_BF(PHYA, mii_id) in macb_mdio_read()
111 static int macb_mdio_write(struct mii_bus *bus, int mii_id, int regnum, in macb_mdio_write() argument
118 | MACB_BF(PHYA, mii_id) in macb_mdio_write()
Dgianfar.h829 int gfar_local_mdio_write(struct gfar_mii __iomem *regs, int mii_id,
831 int gfar_local_mdio_read(struct gfar_mii __iomem *regs, int mii_id, int regnum);
Dtc35815.c591 static int tc_mdio_read(struct mii_bus *bus, int mii_id, int regnum) in tc_mdio_read() argument
598 tc_writel(MD_CA_Busy | (mii_id << 5) | (regnum & 0x1f), &tr->MD_CA); in tc_mdio_read()
607 static int tc_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16 val) in tc_mdio_write() argument
615 tc_writel(MD_CA_Busy | MD_CA_Wr | (mii_id << 5) | (regnum & 0x1f), in tc_mdio_write()
Dr6040.c241 static int r6040_mdio_read(struct net_device *dev, int mii_id, int reg) in r6040_mdio_read() argument
249 static void r6040_mdio_write(struct net_device *dev, int mii_id, int reg, int val) in r6040_mdio_write() argument
Dsungem.c165 static inline int _phy_read(struct net_device *dev, int mii_id, int reg) in _phy_read() argument
168 return __phy_read(gp, mii_id, reg); in _phy_read()
198 static inline void _phy_write(struct net_device *dev, int mii_id, int reg, int val) in _phy_write() argument
201 __phy_write(gp, mii_id, reg, val & 0xffff); in _phy_write()
Dtg3.c861 static int tg3_mdio_read(struct mii_bus *bp, int mii_id, int reg) in tg3_mdio_read() argument
875 static int tg3_mdio_write(struct mii_bus *bp, int mii_id, int reg, u16 val) in tg3_mdio_write() argument