mii_id 112 drivers/net/ethernet/altera/altera_tse_main.c static int altera_tse_mdio_read(struct mii_bus *bus, int mii_id, int regnum) mii_id 118 drivers/net/ethernet/altera/altera_tse_main.c csrwr32((mii_id & 0x1f), priv->mac_dev, mii_id 126 drivers/net/ethernet/altera/altera_tse_main.c static int altera_tse_mdio_write(struct mii_bus *bus, int mii_id, int regnum, mii_id 133 drivers/net/ethernet/altera/altera_tse_main.c csrwr32((mii_id & 0x1f), priv->mac_dev, mii_id 149 drivers/net/ethernet/broadcom/bcm63xx_enet.c static int bcm_enet_mdio_read(struct bcm_enet_priv *priv, int mii_id, mii_id 156 drivers/net/ethernet/broadcom/bcm63xx_enet.c tmp |= mii_id << ENET_MIIDATA_PHYID_SHIFT; mii_id 170 drivers/net/ethernet/broadcom/bcm63xx_enet.c static int bcm_enet_mdio_write(struct bcm_enet_priv *priv, int mii_id, mii_id 178 drivers/net/ethernet/broadcom/bcm63xx_enet.c tmp |= mii_id << ENET_MIIDATA_PHYID_SHIFT; mii_id 188 drivers/net/ethernet/broadcom/bcm63xx_enet.c static int bcm_enet_mdio_read_phylib(struct mii_bus *bus, int mii_id, mii_id 191 drivers/net/ethernet/broadcom/bcm63xx_enet.c return bcm_enet_mdio_read(bus->priv, mii_id, regnum); mii_id 197 drivers/net/ethernet/broadcom/bcm63xx_enet.c static int bcm_enet_mdio_write_phylib(struct mii_bus *bus, int mii_id, mii_id 200 drivers/net/ethernet/broadcom/bcm63xx_enet.c return bcm_enet_mdio_write(bus->priv, mii_id, regnum, value); mii_id 206 drivers/net/ethernet/broadcom/bcm63xx_enet.c static int bcm_enet_mdio_read_mii(struct net_device *dev, int mii_id, mii_id 209 drivers/net/ethernet/broadcom/bcm63xx_enet.c return bcm_enet_mdio_read(netdev_priv(dev), mii_id, regnum); mii_id 215 drivers/net/ethernet/broadcom/bcm63xx_enet.c static void bcm_enet_mdio_write_mii(struct net_device *dev, int mii_id, mii_id 218 drivers/net/ethernet/broadcom/bcm63xx_enet.c bcm_enet_mdio_write(netdev_priv(dev), mii_id, regnum, value); mii_id 199 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c static int bcma_mdio_mii_read(struct mii_bus *bus, int mii_id, int regnum) mii_id 201 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c return bcma_mdio_phy_read(bus->priv, mii_id, regnum); mii_id 204 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c static int bcma_mdio_mii_write(struct mii_bus *bus, int mii_id, int regnum, mii_id 207 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c return bcma_mdio_phy_write(bus->priv, mii_id, regnum, value); mii_id 1386 drivers/net/ethernet/broadcom/tg3.c static int tg3_mdio_read(struct mii_bus *bp, int mii_id, int reg) mii_id 1393 drivers/net/ethernet/broadcom/tg3.c if (__tg3_readphy(tp, mii_id, reg, &val)) mii_id 1401 drivers/net/ethernet/broadcom/tg3.c static int tg3_mdio_write(struct mii_bus *bp, int mii_id, int reg, u16 val) mii_id 1408 drivers/net/ethernet/broadcom/tg3.c if (__tg3_writephy(tp, mii_id, reg, val)) mii_id 331 drivers/net/ethernet/cadence/macb_main.c static int macb_mdio_read(struct mii_bus *bus, int mii_id, int regnum) mii_id 348 drivers/net/ethernet/cadence/macb_main.c | MACB_BF(PHYA, mii_id) mii_id 365 drivers/net/ethernet/cadence/macb_main.c static int macb_mdio_write(struct mii_bus *bus, int mii_id, int regnum, mii_id 383 drivers/net/ethernet/cadence/macb_main.c | MACB_BF(PHYA, mii_id) mii_id 99 drivers/net/ethernet/dnet.c static int dnet_mdio_read(struct mii_bus *bus, int mii_id, int regnum) mii_id 109 drivers/net/ethernet/dnet.c mii_id &= 0x1f; mii_id 113 drivers/net/ethernet/dnet.c value = (mii_id << 8); mii_id 126 drivers/net/ethernet/dnet.c pr_debug("mdio_read %02x:%02x <- %04x\n", mii_id, regnum, value); mii_id 131 drivers/net/ethernet/dnet.c static int dnet_mdio_write(struct mii_bus *bus, int mii_id, int regnum, mii_id 137 drivers/net/ethernet/dnet.c pr_debug("mdio_write %02x:%02x <- %04x\n", mii_id, regnum, value); mii_id 147 drivers/net/ethernet/dnet.c mii_id &= 0x1f; mii_id 154 drivers/net/ethernet/dnet.c tmp |= (mii_id << 8); mii_id 1821 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_mdio_read(struct mii_bus *bus, int mii_id, int regnum) mii_id 1841 drivers/net/ethernet/freescale/fec_main.c FEC_MMFR_PA(mii_id) | FEC_MMFR_RA(frame_addr) | mii_id 1865 drivers/net/ethernet/freescale/fec_main.c FEC_MMFR_PA(mii_id) | FEC_MMFR_RA(frame_addr) | mii_id 1886 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_mdio_write(struct mii_bus *bus, int mii_id, int regnum, mii_id 1909 drivers/net/ethernet/freescale/fec_main.c FEC_MMFR_PA(mii_id) | FEC_MMFR_RA(frame_addr) | mii_id 1929 drivers/net/ethernet/freescale/fec_main.c FEC_MMFR_PA(mii_id) | FEC_MMFR_RA(frame_addr) | mii_id 96 drivers/net/ethernet/freescale/fsl_pq_mdio.c static int fsl_pq_mdio_write(struct mii_bus *bus, int mii_id, int regnum, mii_id 104 drivers/net/ethernet/freescale/fsl_pq_mdio.c iowrite32be((mii_id << 8) | regnum, ®s->miimadd); mii_id 129 drivers/net/ethernet/freescale/fsl_pq_mdio.c static int fsl_pq_mdio_read(struct mii_bus *bus, int mii_id, int regnum) mii_id 137 drivers/net/ethernet/freescale/fsl_pq_mdio.c iowrite32be((mii_id << 8) | regnum, ®s->miimadd); mii_id 157 drivers/net/ethernet/freescale/fsl_pq_mdio.c dev_dbg(&bus->dev, "read %04x from address %x/%x\n", value, mii_id, regnum); mii_id 295 drivers/net/ethernet/korina.c static int mdio_read(struct net_device *dev, int mii_id, int reg) mii_id 300 drivers/net/ethernet/korina.c mii_id = ((lp->rx_irq == 0x2c ? 1 : 0) << 8); mii_id 304 drivers/net/ethernet/korina.c writel(mii_id | reg, &lp->eth_regs->miimaddr); mii_id 311 drivers/net/ethernet/korina.c static void mdio_write(struct net_device *dev, int mii_id, int reg, int val) mii_id 315 drivers/net/ethernet/korina.c mii_id = ((lp->rx_irq == 0x2c ? 1 : 0) << 8); mii_id 319 drivers/net/ethernet/korina.c writel(mii_id | reg, &lp->eth_regs->miimaddr); mii_id 140 drivers/net/ethernet/marvell/mvmdio.c static int orion_mdio_smi_read(struct mii_bus *bus, int mii_id, mii_id 154 drivers/net/ethernet/marvell/mvmdio.c writel(((mii_id << MVMDIO_SMI_PHY_ADDR_SHIFT) | mii_id 172 drivers/net/ethernet/marvell/mvmdio.c static int orion_mdio_smi_write(struct mii_bus *bus, int mii_id, mii_id 185 drivers/net/ethernet/marvell/mvmdio.c writel(((mii_id << MVMDIO_SMI_PHY_ADDR_SHIFT) | mii_id 205 drivers/net/ethernet/marvell/mvmdio.c static int orion_mdio_xsmi_read(struct mii_bus *bus, int mii_id, mii_id 220 drivers/net/ethernet/marvell/mvmdio.c writel((mii_id << MVMDIO_XSMI_PHYADDR_SHIFT) | mii_id 238 drivers/net/ethernet/marvell/mvmdio.c static int orion_mdio_xsmi_write(struct mii_bus *bus, int mii_id, mii_id 253 drivers/net/ethernet/marvell/mvmdio.c writel((mii_id << MVMDIO_XSMI_PHYADDR_SHIFT) | mii_id 143 drivers/net/ethernet/sun/sungem.c static inline int _sungem_phy_read(struct net_device *dev, int mii_id, int reg) mii_id 146 drivers/net/ethernet/sun/sungem.c return __sungem_phy_read(gp, mii_id, reg); mii_id 176 drivers/net/ethernet/sun/sungem.c static inline void _sungem_phy_write(struct net_device *dev, int mii_id, int reg, int val) mii_id 179 drivers/net/ethernet/sun/sungem.c __sungem_phy_write(gp, mii_id, reg, val & 0xffff); mii_id 115 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_phy(struct net_device *netdev, int mii_id, mii_id 121 drivers/net/ethernet/toshiba/spider_net.c writevalue = ((u32)mii_id << 21) | mii_id 139 drivers/net/ethernet/toshiba/spider_net.c spider_net_read_phy(struct net_device *netdev, int mii_id, int reg) mii_id 144 drivers/net/ethernet/toshiba/spider_net.c readvalue = ((u32)mii_id << 21) | ((u32)reg << 16); mii_id 170 drivers/net/ethernet/toshiba/spider_net.c bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); mii_id 171 drivers/net/ethernet/toshiba/spider_net.c estat = spider_net_read_phy(card->netdev, phy->mii_id, MII_ESTATUS); mii_id 187 drivers/net/ethernet/toshiba/spider_net.c sungem_phy_probe(phy, phy->mii_id); mii_id 2057 drivers/net/ethernet/toshiba/spider_net.c for (phy->mii_id = 1; phy->mii_id <= 31; phy->mii_id++) { mii_id 2059 drivers/net/ethernet/toshiba/spider_net.c id = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); mii_id 2061 drivers/net/ethernet/toshiba/spider_net.c if (!sungem_phy_probe(phy, phy->mii_id)) { mii_id 503 drivers/net/ethernet/toshiba/tc35815.c static int tc_mdio_read(struct mii_bus *bus, int mii_id, int regnum) mii_id 510 drivers/net/ethernet/toshiba/tc35815.c tc_writel(MD_CA_Busy | (mii_id << 5) | (regnum & 0x1f), &tr->MD_CA); mii_id 520 drivers/net/ethernet/toshiba/tc35815.c static int tc_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16 val) mii_id 528 drivers/net/ethernet/toshiba/tc35815.c tc_writel(MD_CA_Busy | MD_CA_Wr | (mii_id << 5) | (regnum & 0x1f), mii_id 36 drivers/net/phy/mdio-hisi-femac.c static int hisi_femac_mdio_read(struct mii_bus *bus, int mii_id, int regnum) mii_id 45 drivers/net/phy/mdio-hisi-femac.c writel((mii_id << BIT_PHY_ADDR_OFFSET) | regnum, mii_id 55 drivers/net/phy/mdio-hisi-femac.c static int hisi_femac_mdio_write(struct mii_bus *bus, int mii_id, int regnum, mii_id 66 drivers/net/phy/mdio-hisi-femac.c (mii_id << BIT_PHY_ADDR_OFFSET) | regnum, mii_id 34 drivers/net/phy/mdio-moxart.c static int moxart_mdio_read(struct mii_bus *bus, int mii_id, int regnum) mii_id 42 drivers/net/phy/mdio-moxart.c ctrl |= MIIRD | ((mii_id << 16) & PHYAD_MASK) | mii_id 62 drivers/net/phy/mdio-moxart.c static int moxart_mdio_write(struct mii_bus *bus, int mii_id, mii_id 71 drivers/net/phy/mdio-moxart.c ctrl |= MIIWR | ((mii_id << 16) & PHYAD_MASK) | mii_id 54 drivers/net/phy/mdio-mscc-miim.c static int mscc_miim_read(struct mii_bus *bus, int mii_id, int regnum) mii_id 64 drivers/net/phy/mdio-mscc-miim.c writel(MSCC_MIIM_CMD_VLD | (mii_id << MSCC_MIIM_CMD_PHYAD_SHIFT) | mii_id 83 drivers/net/phy/mdio-mscc-miim.c static int mscc_miim_write(struct mii_bus *bus, int mii_id, mii_id 93 drivers/net/phy/mdio-mscc-miim.c writel(MSCC_MIIM_CMD_VLD | (mii_id << MSCC_MIIM_CMD_PHYAD_SHIFT) | mii_id 36 drivers/net/phy/mdio-sun4i.c static int sun4i_mdio_read(struct mii_bus *bus, int mii_id, int regnum) mii_id 43 drivers/net/phy/mdio-sun4i.c writel((mii_id << 8) | regnum, data->membase + EMAC_MAC_MADR_REG); mii_id 63 drivers/net/phy/mdio-sun4i.c static int sun4i_mdio_write(struct mii_bus *bus, int mii_id, int regnum, mii_id 70 drivers/net/phy/mdio-sun4i.c writel((mii_id << 8) | regnum, data->membase + EMAC_MAC_MADR_REG); mii_id 63 drivers/net/sungem_phy.c return phy->mdio_read(phy->dev, phy->mii_id, reg); mii_id 68 drivers/net/sungem_phy.c phy->mdio_write(phy->dev, phy->mii_id, reg, val); mii_id 1160 drivers/net/sungem_phy.c int sungem_phy_probe(struct mii_phy *phy, int mii_id) mii_id 1170 drivers/net/sungem_phy.c phy->mii_id = mii_id; mii_id 1173 drivers/net/sungem_phy.c rc = reset_one_mii_phy(phy, mii_id); mii_id 1180 drivers/net/sungem_phy.c id, mii_id); mii_id 43 include/linux/sungem_phy.h int mii_id; mii_id 57 include/linux/sungem_phy.h int (*mdio_read) (struct net_device *dev, int mii_id, int reg); mii_id 58 include/linux/sungem_phy.h void (*mdio_write) (struct net_device *dev, int mii_id, int reg, int val); mii_id 65 include/linux/sungem_phy.h extern int sungem_phy_probe(struct mii_phy *phy, int mii_id);