devad 70 drivers/net/dsa/mt7530.c core_read_mmd_indirect(struct mt7530_priv *priv, int prtad, int devad) devad 76 drivers/net/dsa/mt7530.c ret = bus->write(bus, 0, MII_MMD_CTRL, devad); devad 86 drivers/net/dsa/mt7530.c ret = bus->write(bus, 0, MII_MMD_CTRL, (devad | MII_MMD_CTRL_NOINCR)); devad 102 drivers/net/dsa/mt7530.c int devad, u32 data) devad 108 drivers/net/dsa/mt7530.c ret = bus->write(bus, 0, MII_MMD_CTRL, devad); devad 118 drivers/net/dsa/mt7530.c ret = bus->write(bus, 0, MII_MMD_CTRL, (devad | MII_MMD_CTRL_NOINCR)); devad 1564 drivers/net/ethernet/atheros/alx/main.c int prtad, int devad, u16 addr) devad 1574 drivers/net/ethernet/atheros/alx/main.c if (devad == MDIO_DEVAD_NONE) devad 1577 drivers/net/ethernet/atheros/alx/main.c err = alx_read_phy_ext(hw, devad, addr, &val); devad 1585 drivers/net/ethernet/atheros/alx/main.c int prtad, int devad, u16 addr, u16 val) devad 1593 drivers/net/ethernet/atheros/alx/main.c if (devad == MDIO_DEVAD_NONE) devad 1596 drivers/net/ethernet/atheros/alx/main.c return alx_write_phy_ext(hw, devad, addr, val); devad 2666 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u8 devad, u16 reg, u16 *ret_val) devad 2682 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val = ((phy->addr << 21) | (devad << 16) | reg | devad 2703 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val = ((phy->addr << 21) | (devad << 16) | devad 2730 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_read(bp, phy, devad, 0xf, &temp_val); devad 2741 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u8 devad, u16 reg, u16 val) devad 2758 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c tmp = ((phy->addr << 21) | (devad << 16) | reg | devad 2778 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c tmp = ((phy->addr << 21) | (devad << 16) | val | devad 2804 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_read(bp, phy, devad, 0xf, &temp_val); devad 3168 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u8 devad, u16 reg, u16 or_val) devad 3171 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_read(bp, phy, devad, reg, &val); devad 3172 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_write(bp, phy, devad, reg, val | or_val); devad 3177 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u8 devad, u16 reg, u16 and_val) devad 3180 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_read(bp, phy, devad, reg, &val); devad 3181 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_write(bp, phy, devad, reg, val & and_val); devad 3185 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u8 devad, u16 reg, u16 *ret_val) devad 3194 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c ¶ms->phy[phy_index], devad, devad 3202 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u8 devad, u16 reg, u16 val) devad 3211 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c ¶ms->phy[phy_index], devad, devad 3655 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_write(bp, phy, reg_set[i].devad, reg_set[i].reg, devad 3690 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_write(bp, phy, reg_set[i].devad, reg_set[i].reg, devad 3744 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_write(bp, phy, reg_set[i].devad, reg_set[i].reg, devad 3897 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_write(bp, phy, reg_set[i].devad, reg_set[i].reg, devad 4315 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_write(bp, phy, wc_regs[i].devad, wc_regs[i].reg, devad 9669 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_write(bp, phy, reg_set[i].devad, devad 9759 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c bnx2x_cl45_write(bp, phy, reg_set[i].devad, reg_set[i].reg, devad 145 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h u8 devad; devad 394 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h u8 devad, u16 reg, u16 *ret_val); devad 397 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h u8 devad, u16 reg, u16 val); devad 12880 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c int devad, u16 addr) devad 12887 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c prtad, devad, addr); devad 12890 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c devad = (devad == MDIO_DEVAD_NONE) ? DEFAULT_PHY_DEV_ADDR : devad; devad 12893 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c rc = bnx2x_phy_read(&bp->link_params, prtad, devad, addr, &value); devad 12903 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c static int bnx2x_mdio_write(struct net_device *netdev, int prtad, int devad, devad 12911 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c prtad, devad, addr, value); devad 12914 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c devad = (devad == MDIO_DEVAD_NONE) ? DEFAULT_PHY_DEV_ADDR : devad; devad 12917 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c rc = bnx2x_phy_write(&bp->link_params, prtad, devad, addr, value); devad 1239 drivers/net/ethernet/broadcom/tg3.c static int tg3_phy_cl45_write(struct tg3 *tp, u32 devad, u32 addr, u32 val) devad 1243 drivers/net/ethernet/broadcom/tg3.c err = tg3_writephy(tp, MII_TG3_MMD_CTRL, devad); devad 1252 drivers/net/ethernet/broadcom/tg3.c MII_TG3_MMD_CTRL_DATA_NOINC | devad); devad 1262 drivers/net/ethernet/broadcom/tg3.c static int tg3_phy_cl45_read(struct tg3 *tp, u32 devad, u32 addr, u32 *val) devad 1266 drivers/net/ethernet/broadcom/tg3.c err = tg3_writephy(tp, MII_TG3_MMD_CTRL, devad); devad 1275 drivers/net/ethernet/broadcom/tg3.c MII_TG3_MMD_CTRL_DATA_NOINC | devad); devad 2619 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c int ret = 0, prtad, devad; devad 2634 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c devad = mdio_phy_id_devad(data->phy_id); devad 2637 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c devad = 0; devad 2644 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_mdio_rd(pi->adapter, mbox, prtad, devad, devad 2647 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_mdio_wr(pi->adapter, mbox, prtad, devad, devad 222 drivers/net/ethernet/hisilicon/hns_mdio.c u8 devad = ((regnum >> 16) & 0x1f); devad 231 drivers/net/ethernet/hisilicon/hns_mdio.c phy_id, is_c45, devad, reg, data); devad 249 drivers/net/ethernet/hisilicon/hns_mdio.c MDIO_C45_WRITE_ADDR, phy_id, devad); devad 259 drivers/net/ethernet/hisilicon/hns_mdio.c cmd_reg_cfg = devad; devad 284 drivers/net/ethernet/hisilicon/hns_mdio.c u8 devad = ((regnum >> 16) & 0x1f); devad 292 drivers/net/ethernet/hisilicon/hns_mdio.c phy_id, is_c45, devad, reg); devad 310 drivers/net/ethernet/hisilicon/hns_mdio.c MDIO_C45_WRITE_ADDR, phy_id, devad); devad 320 drivers/net/ethernet/hisilicon/hns_mdio.c MDIO_C45_READ, phy_id, devad); devad 8809 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c ixgbe_mdio_read(struct net_device *netdev, int prtad, int devad, u16 addr) devad 8819 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (devad != MDIO_DEVAD_NONE) devad 8820 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c regnum |= (devad << 16) | MII_ADDR_C45; devad 8827 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c rc = hw->phy.ops.read_reg(hw, addr, devad, &value); devad 8833 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c static int ixgbe_mdio_write(struct net_device *netdev, int prtad, int devad, devad 8842 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (devad != MDIO_DEVAD_NONE) devad 8843 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c regnum |= (devad << 16) | MII_ADDR_C45; devad 8850 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c return hw->phy.ops.write_reg(hw, addr, devad, value); devad 1573 drivers/net/ethernet/sfc/falcon/falcon.c int prtad, int devad, u16 addr, u16 value) devad 1582 drivers/net/ethernet/sfc/falcon/falcon.c prtad, devad, addr, value); devad 1596 drivers/net/ethernet/sfc/falcon/falcon.c FRF_AB_MD_DEV_ADR, devad); devad 1626 drivers/net/ethernet/sfc/falcon/falcon.c int prtad, int devad, u16 addr) devad 1644 drivers/net/ethernet/sfc/falcon/falcon.c FRF_AB_MD_DEV_ADR, devad); devad 1658 drivers/net/ethernet/sfc/falcon/falcon.c prtad, devad, addr, rc); devad 1668 drivers/net/ethernet/sfc/falcon/falcon.c prtad, devad, addr, rc); devad 313 drivers/net/ethernet/sfc/falcon/mdio_10g.c int devad = __ffs(efx->mdio.mmds); devad 318 drivers/net/ethernet/sfc/falcon/mdio_10g.c physid1 = ef4_mdio_read(efx, devad, MDIO_DEVID1); devad 319 drivers/net/ethernet/sfc/falcon/mdio_10g.c physid2 = ef4_mdio_read(efx, devad, MDIO_DEVID2); devad 22 drivers/net/ethernet/sfc/falcon/mdio_10g.h static inline int ef4_mdio_read(struct ef4_nic *efx, int devad, int addr) devad 24 drivers/net/ethernet/sfc/falcon/mdio_10g.h return efx->mdio.mdio_read(efx->net_dev, efx->mdio.prtad, devad, addr); devad 28 drivers/net/ethernet/sfc/falcon/mdio_10g.h ef4_mdio_write(struct ef4_nic *efx, int devad, int addr, int value) devad 30 drivers/net/ethernet/sfc/falcon/mdio_10g.h efx->mdio.mdio_write(efx->net_dev, efx->mdio.prtad, devad, addr, value); devad 99 drivers/net/ethernet/sfc/falcon/mdio_10g.h ef4_mdio_set_flag(struct ef4_nic *efx, int devad, int addr, devad 102 drivers/net/ethernet/sfc/falcon/mdio_10g.h mdio_set_flag(&efx->mdio, efx->mdio.prtad, devad, addr, mask, state); devad 119 drivers/net/ethernet/sfc/mcdi_port.c int prtad, int devad, u16 addr) devad 129 drivers/net/ethernet/sfc/mcdi_port.c MCDI_SET_DWORD(inbuf, MDIO_READ_IN_DEVAD, devad); devad 145 drivers/net/ethernet/sfc/mcdi_port.c int prtad, int devad, u16 addr, u16 value) devad 155 drivers/net/ethernet/sfc/mcdi_port.c MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_DEVAD, devad); devad 67 drivers/net/mdio.c int prtad, int devad, u16 addr, int mask, devad 70 drivers/net/mdio.c int old_val = mdio->mdio_read(mdio->dev, prtad, devad, addr); devad 81 drivers/net/mdio.c return mdio->mdio_write(mdio->dev, prtad, devad, addr, new_val); devad 96 drivers/net/mdio.c int devad, reg; devad 105 drivers/net/mdio.c for (devad = 0; mmd_mask; devad++) { devad 106 drivers/net/mdio.c if (mmd_mask & (1 << devad)) { devad 107 drivers/net/mdio.c mmd_mask &= ~(1 << devad); devad 111 drivers/net/mdio.c devad, MDIO_STAT1); devad 112 drivers/net/mdio.c if (devad == MDIO_MMD_PMAPMD || devad == MDIO_MMD_PCS || devad 113 drivers/net/mdio.c devad == MDIO_MMD_PHYXS || devad == MDIO_MMD_DTEXS) devad 115 drivers/net/mdio.c devad, MDIO_STAT2); devad 119 drivers/net/mdio.c devad, MDIO_STAT1); devad 530 drivers/net/mdio.c int prtad, devad; devad 552 drivers/net/mdio.c devad = mdio_phy_id_devad(mii_data->phy_id); devad 556 drivers/net/mdio.c devad = MDIO_DEVAD_NONE; devad 568 drivers/net/mdio.c devad = __ffs(mdio->mmds); devad 574 drivers/net/mdio.c devad = MDIO_MMD_AN; devad 588 drivers/net/mdio.c int rc = mdio->mdio_read(mdio->dev, prtad, devad, addr); devad 594 drivers/net/mdio.c return mdio->mdio_write(mdio->dev, prtad, devad, addr, devad 143 drivers/net/phy/adin.c int devad; devad 456 drivers/net/phy/adin.c static int adin_cl45_to_adin_reg(struct phy_device *phydev, int devad, devad 462 drivers/net/phy/adin.c if (devad == MDIO_MMD_VEND1) devad 467 drivers/net/phy/adin.c if (m->devad == devad && m->cl45_regnum == cl45_regnum) devad 473 drivers/net/phy/adin.c devad, cl45_regnum); devad 478 drivers/net/phy/adin.c static int adin_read_mmd(struct phy_device *phydev, int devad, u16 regnum) devad 485 drivers/net/phy/adin.c adin_regnum = adin_cl45_to_adin_reg(phydev, devad, regnum); devad 497 drivers/net/phy/adin.c static int adin_write_mmd(struct phy_device *phydev, int devad, u16 regnum, devad 505 drivers/net/phy/adin.c adin_regnum = adin_cl45_to_adin_reg(phydev, devad, regnum); devad 219 drivers/net/phy/phy-c45.c int val, devad; devad 237 drivers/net/phy/phy-c45.c devad = __ffs(mmd_mask); devad 238 drivers/net/phy/phy-c45.c mmd_mask &= ~BIT(devad); devad 245 drivers/net/phy/phy-c45.c val = phy_read_mmd(phydev, devad, MDIO_STAT1); devad 252 drivers/net/phy/phy-c45.c val = phy_read_mmd(phydev, devad, MDIO_STAT1); devad 352 drivers/net/phy/phy-core.c static void mmd_phy_indirect(struct mii_bus *bus, int phy_addr, int devad, devad 356 drivers/net/phy/phy-core.c __mdiobus_write(bus, phy_addr, MII_MMD_CTRL, devad); devad 363 drivers/net/phy/phy-core.c devad | MII_MMD_CTRL_NOINCR); devad 375 drivers/net/phy/phy-core.c int __phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum) devad 379 drivers/net/phy/phy-core.c if (regnum > (u16)~0 || devad > 32) devad 383 drivers/net/phy/phy-core.c val = phydev->drv->read_mmd(phydev, devad, regnum); devad 385 drivers/net/phy/phy-core.c u32 addr = MII_ADDR_C45 | (devad << 16) | (regnum & 0xffff); devad 392 drivers/net/phy/phy-core.c mmd_phy_indirect(bus, phy_addr, devad, regnum); devad 410 drivers/net/phy/phy-core.c int phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum) devad 415 drivers/net/phy/phy-core.c ret = __phy_read_mmd(phydev, devad, regnum); devad 432 drivers/net/phy/phy-core.c int __phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) devad 436 drivers/net/phy/phy-core.c if (regnum > (u16)~0 || devad > 32) devad 440 drivers/net/phy/phy-core.c ret = phydev->drv->write_mmd(phydev, devad, regnum, val); devad 442 drivers/net/phy/phy-core.c u32 addr = MII_ADDR_C45 | (devad << 16) | (regnum & 0xffff); devad 450 drivers/net/phy/phy-core.c mmd_phy_indirect(bus, phy_addr, devad, regnum); devad 471 drivers/net/phy/phy-core.c int phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) devad 476 drivers/net/phy/phy-core.c ret = __phy_write_mmd(phydev, devad, regnum, val); devad 596 drivers/net/phy/phy-core.c int __phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum, devad 601 drivers/net/phy/phy-core.c ret = __phy_read_mmd(phydev, devad, regnum); devad 609 drivers/net/phy/phy-core.c ret = __phy_write_mmd(phydev, devad, regnum, new); devad 629 drivers/net/phy/phy-core.c int phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum, devad 635 drivers/net/phy/phy-core.c ret = __phy_modify_mmd_changed(phydev, devad, regnum, mask, set); devad 654 drivers/net/phy/phy-core.c int __phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum, devad 659 drivers/net/phy/phy-core.c ret = __phy_modify_mmd_changed(phydev, devad, regnum, mask, set); devad 677 drivers/net/phy/phy-core.c int phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum, devad 683 drivers/net/phy/phy-core.c ret = __phy_modify_mmd(phydev, devad, regnum, mask, set); devad 403 drivers/net/phy/phy.c int prtad, devad; devad 413 drivers/net/phy/phy.c devad = mdio_phy_id_devad(mii_data->phy_id); devad 414 drivers/net/phy/phy.c devad = MII_ADDR_C45 | devad << 16 | mii_data->reg_num; devad 417 drivers/net/phy/phy.c devad = mii_data->reg_num; devad 420 drivers/net/phy/phy.c devad); devad 426 drivers/net/phy/phy.c devad = mdio_phy_id_devad(mii_data->phy_id); devad 427 drivers/net/phy/phy.c devad = MII_ADDR_C45 | devad << 16 | mii_data->reg_num; devad 430 drivers/net/phy/phy.c devad = mii_data->reg_num; devad 433 drivers/net/phy/phy.c switch (devad) { devad 471 drivers/net/phy/phy.c mdiobus_write(phydev->mdio.bus, prtad, devad, val); devad 474 drivers/net/phy/phy.c devad == MII_BMCR && devad 1984 drivers/net/phy/phy_device.c int genphy_read_mmd_unsupported(struct phy_device *phdev, int devad, u16 regnum) devad 1479 drivers/net/phy/phylink.c int prtad, devad; devad 1483 drivers/net/phy/phylink.c devad = mdio_phy_id_devad(phy_id); devad 1484 drivers/net/phy/phylink.c devad = MII_ADDR_C45 | devad << 16 | reg; devad 1491 drivers/net/phy/phylink.c devad = __ffs(phydev->c45_ids.devices_in_package); devad 1497 drivers/net/phy/phylink.c devad = MDIO_MMD_AN; devad 1507 drivers/net/phy/phylink.c devad = MII_ADDR_C45 | devad << 16 | reg; devad 1510 drivers/net/phy/phylink.c devad = reg; devad 1512 drivers/net/phy/phylink.c return mdiobus_read(pl->phydev->mdio.bus, prtad, devad); devad 1519 drivers/net/phy/phylink.c int prtad, devad; devad 1523 drivers/net/phy/phylink.c devad = mdio_phy_id_devad(phy_id); devad 1524 drivers/net/phy/phylink.c devad = MII_ADDR_C45 | devad << 16 | reg; devad 1531 drivers/net/phy/phylink.c devad = __ffs(phydev->c45_ids.devices_in_package); devad 1537 drivers/net/phy/phylink.c devad = MDIO_MMD_AN; devad 1547 drivers/net/phy/phylink.c devad = MII_ADDR_C45 | devad << 16 | reg; devad 1550 drivers/net/phy/phylink.c devad = reg; devad 1553 drivers/net/phy/phylink.c return mdiobus_write(phydev->mdio.bus, prtad, devad, val); devad 371 drivers/net/usb/ax88179_178a.c u16 devad) devad 376 drivers/net/usb/ax88179_178a.c tmp16 = devad; devad 384 drivers/net/usb/ax88179_178a.c tmp16 = devad | MII_MMD_CTRL_NOINCR; devad 392 drivers/net/usb/ax88179_178a.c ax88179_phy_read_mmd_indirect(struct usbnet *dev, u16 prtad, u16 devad) devad 397 drivers/net/usb/ax88179_178a.c ax88179_phy_mmd_indirect(dev, prtad, devad); devad 408 drivers/net/usb/ax88179_178a.c ax88179_phy_write_mmd_indirect(struct usbnet *dev, u16 prtad, u16 devad, devad 413 drivers/net/usb/ax88179_178a.c ax88179_phy_mmd_indirect(dev, prtad, devad); devad 126 include/linux/mdio.h int (*mdio_read)(struct net_device *dev, int prtad, int devad, devad 128 include/linux/mdio.h int (*mdio_write)(struct net_device *dev, int prtad, int devad, devad 142 include/linux/mdio.h int prtad, int devad, u16 addr, int mask, devad 751 include/linux/phy.h int phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum); devad 762 include/linux/phy.h int __phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum); devad 774 include/linux/phy.h int phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val); devad 786 include/linux/phy.h int __phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val); devad 795 include/linux/phy.h int __phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum, devad 797 include/linux/phy.h int phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum, devad 799 include/linux/phy.h int __phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum, devad 801 include/linux/phy.h int phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum, devad 863 include/linux/phy.h static inline int __phy_set_bits_mmd(struct phy_device *phydev, int devad, devad 866 include/linux/phy.h return __phy_modify_mmd(phydev, devad, regnum, 0, val); devad 879 include/linux/phy.h static inline int __phy_clear_bits_mmd(struct phy_device *phydev, int devad, devad 882 include/linux/phy.h return __phy_modify_mmd(phydev, devad, regnum, val, 0); devad 893 include/linux/phy.h static inline int phy_set_bits_mmd(struct phy_device *phydev, int devad, devad 896 include/linux/phy.h return phy_modify_mmd(phydev, devad, regnum, 0, val); devad 907 include/linux/phy.h static inline int phy_clear_bits_mmd(struct phy_device *phydev, int devad, devad 910 include/linux/phy.h return phy_modify_mmd(phydev, devad, regnum, val, 0); devad 1107 include/linux/phy.h int genphy_read_mmd_unsupported(struct phy_device *phdev, int devad, devad 125 include/uapi/linux/mdio.h #define MDIO_DEVS_PRESENT(devad) (1 << (devad)) devad 322 include/uapi/linux/mdio.h static inline __u16 mdio_phy_id_c45(int prtad, int devad) devad 324 include/uapi/linux/mdio.h return MDIO_PHY_ID_C45 | (prtad << 5) | devad;