/linux-master/drivers/net/dsa/mv88e6xxx/ |
H A D | chip.c | 3701 static int mv88e6xxx_mdio_read_c45(struct mii_bus *bus, int phy, int devad, argument 3713 err = chip->info->ops->phy_read_c45(chip, bus, phy, devad, reg, &val); 3735 static int mv88e6xxx_mdio_write_c45(struct mii_bus *bus, int phy, int devad, argument 3746 err = chip->info->ops->phy_write_c45(chip, bus, phy, devad, reg, val);
|
H A D | global2.h | 325 int addr, int devad, int reg, u16 *val); 328 int addr, int devad, int reg, u16 val);
|
/linux-master/drivers/net/usb/ |
H A D | ax88179_178a.c | 352 u16 devad) 357 tmp16 = devad; 365 tmp16 = devad | MII_MMD_CTRL_NOINCR; 373 ax88179_phy_read_mmd_indirect(struct usbnet *dev, u16 prtad, u16 devad) argument 378 ax88179_phy_mmd_indirect(dev, prtad, devad); 389 ax88179_phy_write_mmd_indirect(struct usbnet *dev, u16 prtad, u16 devad, argument 394 ax88179_phy_mmd_indirect(dev, prtad, devad); 351 ax88179_phy_mmd_indirect(struct usbnet *dev, u16 prtad, u16 devad) argument
|
/linux-master/drivers/net/phy/ |
H A D | mediatek-ge-soc.c | 331 static int cal_cycle(struct phy_device *phydev, int devad, argument 337 phy_modify_mmd(phydev, devad, regnum,
|
H A D | phy_device.c | 735 * @devad: PHY device (MMD) address 743 static int phy_c45_probe_present(struct mii_bus *bus, int prtad, int devad) argument 747 stat2 = mdiobus_c45_read(bus, prtad, devad, MDIO_STAT2); 2806 int genphy_read_mmd_unsupported(struct phy_device *phdev, int devad, u16 regnum) argument
|
H A D | phylink.c | 2830 int prtad, devad; local 2834 devad = mdio_phy_id_devad(phy_id); 2835 return mdiobus_c45_read(pl->phydev->mdio.bus, prtad, devad, 2845 devad = __ffs(phydev->c45_ids.mmds_present); 2851 devad = MDIO_MMD_AN; 2861 return mdiobus_c45_read(pl->phydev->mdio.bus, prtad, devad, 2872 int prtad, devad; local 2876 devad = mdio_phy_id_devad(phy_id); 2877 return mdiobus_c45_write(pl->phydev->mdio.bus, prtad, devad, 2887 devad [all...] |
H A D | phy.c | 333 int prtad, devad; local 344 devad = mdio_phy_id_devad(mii_data->phy_id); 346 phydev->mdio.bus, prtad, devad, 358 devad = mdio_phy_id_devad(mii_data->phy_id); 361 devad = mii_data->reg_num; 364 switch (devad) { 402 mdiobus_c45_write(phydev->mdio.bus, prtad, devad, 405 mdiobus_write(phydev->mdio.bus, prtad, devad, val); 408 devad == MII_BMCR &&
|
H A D | phy-c45.c | 421 int val, devad; local 439 devad = __ffs(mmd_mask); 440 mmd_mask &= ~BIT(devad); 448 val = phy_read_mmd(phydev, devad, MDIO_STAT1); 455 val = phy_read_mmd(phydev, devad, MDIO_STAT1);
|
H A D | mdio_bus.c | 969 * @devad: device address to read 976 int __mdiobus_c45_read(struct mii_bus *bus, int addr, int devad, u32 regnum) argument 983 retval = bus->read_c45(bus, addr, devad, regnum); 998 * @devad: device address to read 1006 int __mdiobus_c45_write(struct mii_bus *bus, int addr, int devad, u32 regnum, argument 1014 err = bus->write_c45(bus, addr, devad, regnum, val); 1029 * @devad: device address to read 1040 int devad, u32 regnum, u16 mask, 1045 ret = __mdiobus_c45_read(bus, addr, devad, regnum); 1053 ret = __mdiobus_c45_write(bus, addr, devad, regnu 1039 __mdiobus_c45_modify_changed(struct mii_bus *bus, int addr, int devad, u32 regnum, u16 mask, u16 set) argument 1116 mdiobus_c45_read(struct mii_bus *bus, int addr, int devad, u32 regnum) argument 1142 mdiobus_c45_read_nested(struct mii_bus *bus, int addr, int devad, u32 regnum) argument 1216 mdiobus_c45_write(struct mii_bus *bus, int addr, int devad, u32 regnum, u16 val) argument 1244 mdiobus_c45_write_nested(struct mii_bus *bus, int addr, int devad, u32 regnum, u16 val) argument 1308 mdiobus_c45_modify(struct mii_bus *bus, int addr, int devad, u32 regnum, u16 mask, u16 set) argument 1354 mdiobus_c45_modify_changed(struct mii_bus *bus, int addr, int devad, u32 regnum, u16 mask, u16 set) argument [all...] |
H A D | marvell-88q2xxx.c | 97 int devad; member in struct:mmd_val 695 ret = phy_write_mmd(phydev, mv88q222x_revb0_init_seq0[i].devad, 705 ret = phy_write_mmd(phydev, mv88q222x_revb0_init_seq1[i].devad,
|
H A D | phy-core.c | 529 static void mmd_phy_indirect(struct mii_bus *bus, int phy_addr, int devad, argument 533 __mdiobus_write(bus, phy_addr, MII_MMD_CTRL, devad); 540 devad | MII_MMD_CTRL_NOINCR); 544 int devad, u32 regnum) 547 return __mdiobus_c45_read(bus, phy_addr, devad, regnum); 549 mmd_phy_indirect(bus, phy_addr, devad, regnum); 555 int devad, u32 regnum, u16 val) 558 return __mdiobus_c45_write(bus, phy_addr, devad, regnum, val); 560 mmd_phy_indirect(bus, phy_addr, devad, regnum); 569 * @devad 543 mmd_phy_read(struct mii_bus *bus, int phy_addr, bool is_c45, int devad, u32 regnum) argument 554 mmd_phy_write(struct mii_bus *bus, int phy_addr, bool is_c45, int devad, u32 regnum, u16 val) argument 574 __phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum) argument 596 phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum) argument 618 __phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) argument 641 phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) argument 668 __phy_package_read_mmd(struct phy_device *phydev, unsigned int addr_offset, int devad, u32 regnum) argument 700 phy_package_read_mmd(struct phy_device *phydev, unsigned int addr_offset, int devad, u32 regnum) argument 738 __phy_package_write_mmd(struct phy_device *phydev, unsigned int addr_offset, int devad, u32 regnum, u16 val) argument 771 phy_package_write_mmd(struct phy_device *phydev, unsigned int addr_offset, int devad, u32 regnum, u16 val) argument 875 __phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum, u16 mask, u16 set) argument 908 phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum, u16 mask, u16 set) argument 933 __phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 mask, u16 set) argument 956 phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 mask, u16 set) argument [all...] |
H A D | nxp-c45-tja11xx.c | 198 .devad = _devad, \ 205 u8 devad; member in struct:nxp_c45_reg_field 311 ret = phy_read_mmd(phydev, reg_field->devad, reg_field->reg); 341 return phy_modify_mmd_changed(phydev, reg_field->devad,
|
/linux-master/drivers/net/dsa/ |
H A D | mt7530.h | 744 int (*phy_read_c45)(struct mt7530_priv *priv, int port, int devad, 746 int (*phy_write_c45)(struct mt7530_priv *priv, int port, int devad,
|
H A D | mt7530.c | 83 core_read_mmd_indirect(struct mt7530_priv *priv, int prtad, int devad) argument 89 ret = bus->write(bus, 0, MII_MMD_CTRL, devad); 99 ret = bus->write(bus, 0, MII_MMD_CTRL, (devad | MII_MMD_CTRL_NOINCR)); 115 int devad, u32 data) 121 ret = bus->write(bus, 0, MII_MMD_CTRL, devad); 131 ret = bus->write(bus, 0, MII_MMD_CTRL, (devad | MII_MMD_CTRL_NOINCR)); 578 int devad, int regnum) 580 return mdiobus_c45_read_nested(priv->bus, port, devad, regnum); 583 static int mt7530_phy_write_c45(struct mt7530_priv *priv, int port, int devad, argument 586 return mdiobus_c45_write_nested(priv->bus, port, devad, regnu 114 core_write_mmd_indirect(struct mt7530_priv *priv, int prtad, int devad, u32 data) argument 577 mt7530_phy_read_c45(struct mt7530_priv *priv, int port, int devad, int regnum) argument 590 mt7531_ind_c45_phy_read(struct mt7530_priv *priv, int port, int devad, int regnum) argument 638 mt7531_ind_c45_phy_write(struct mt7530_priv *priv, int port, int devad, int regnum, u16 data) argument 767 mt753x_phy_read_c45(struct mii_bus *bus, int port, int devad, int regnum) argument 783 mt753x_phy_write_c45(struct mii_bus *bus, int port, int devad, int regnum, u16 val) argument [all...] |
/linux-master/drivers/net/ethernet/freescale/ |
H A D | fec_main.c | 2160 int devad, int regnum) 2174 FEC_MMFR_PA(mii_id) | FEC_MMFR_RA(devad) | 2189 FEC_MMFR_PA(mii_id) | FEC_MMFR_RA(devad) | 2241 int devad, int regnum, u16 value) 2255 FEC_MMFR_PA(mii_id) | FEC_MMFR_RA(devad) | 2268 FEC_MMFR_PA(mii_id) | FEC_MMFR_RA(devad) | 2159 fec_enet_mdio_read_c45(struct mii_bus *bus, int mii_id, int devad, int regnum) argument 2240 fec_enet_mdio_write_c45(struct mii_bus *bus, int mii_id, int devad, int regnum, u16 value) argument
|
/linux-master/drivers/net/ethernet/renesas/ |
H A D | sh_eth.c | 3065 static int sh_mdiobb_read_c45(struct mii_bus *bus, int phy, int devad, int reg) argument 3070 res = mdiobb_read_c45(bus, phy, devad, reg); 3076 static int sh_mdiobb_write_c45(struct mii_bus *bus, int phy, int devad, argument 3082 res = mdiobb_write_c45(bus, phy, devad, reg, val);
|
/linux-master/drivers/net/ethernet/mediatek/ |
H A D | mtk_eth_soc.c | 345 u32 devad, u32 phy_reg, u32 write_data) 356 PHY_IAC_REG(devad) | 368 PHY_IAC_REG(devad) | 403 u32 devad, u32 phy_reg) 414 PHY_IAC_REG(devad) | 426 PHY_IAC_REG(devad) | 446 int devad, int phy_reg, u16 val) 450 return _mtk_mdio_write_c45(eth, phy_addr, devad, phy_reg, val); 460 static int mtk_mdio_read_c45(struct mii_bus *bus, int phy_addr, int devad, argument 465 return _mtk_mdio_read_c45(eth, phy_addr, devad, phy_re 344 _mtk_mdio_write_c45(struct mtk_eth *eth, u32 phy_addr, u32 devad, u32 phy_reg, u32 write_data) argument 402 _mtk_mdio_read_c45(struct mtk_eth *eth, u32 phy_addr, u32 devad, u32 phy_reg) argument 445 mtk_mdio_write_c45(struct mii_bus *bus, int phy_addr, int devad, int phy_reg, u16 val) argument [all...] |
/linux-master/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_main.c | 12766 int devad, u16 addr) 12772 DP(NETIF_MSG_LINK, "mdio_read: prtad 0x%x, devad 0x%x, addr 0x%x\n", 12773 prtad, devad, addr); 12775 /* The HW expects different devad if CL22 is used */ 12776 devad = (devad == MDIO_DEVAD_NONE) ? DEFAULT_PHY_DEV_ADDR : devad; 12779 rc = bnx2x_phy_read(&bp->link_params, prtad, devad, addr, &value); 12789 static int bnx2x_mdio_write(struct net_device *netdev, int prtad, int devad, argument 12796 "mdio_write: prtad 0x%x, devad 12765 bnx2x_mdio_read(struct net_device *netdev, int prtad, int devad, u16 addr) argument [all...] |
H A D | bnx2x_link.c | 2666 u8 devad, u16 reg, u16 *ret_val) 2682 val = ((phy->addr << 21) | (devad << 16) | reg | 2703 val = ((phy->addr << 21) | (devad << 16) | 2730 bnx2x_cl45_read(bp, phy, devad, 0xf, &temp_val); 2741 u8 devad, u16 reg, u16 val) 2758 tmp = ((phy->addr << 21) | (devad << 16) | reg | 2778 tmp = ((phy->addr << 21) | (devad << 16) | val | 2804 bnx2x_cl45_read(bp, phy, devad, 0xf, &temp_val); 3172 u8 devad, u16 reg, u16 or_val) 3175 bnx2x_cl45_read(bp, phy, devad, re 2665 bnx2x_cl45_read(struct bnx2x *bp, struct bnx2x_phy *phy, u8 devad, u16 reg, u16 *ret_val) argument 2740 bnx2x_cl45_write(struct bnx2x *bp, struct bnx2x_phy *phy, u8 devad, u16 reg, u16 val) argument 3171 bnx2x_cl45_read_or_write(struct bnx2x *bp, struct bnx2x_phy *phy, u8 devad, u16 reg, u16 or_val) argument 3179 bnx2x_cl45_read_and_write(struct bnx2x *bp, struct bnx2x_phy *phy, u8 devad, u16 reg, u16 and_val) argument 3188 bnx2x_phy_read(struct link_params *params, u8 phy_addr, u8 devad, u16 reg, u16 *ret_val) argument 3205 bnx2x_phy_write(struct link_params *params, u8 phy_addr, u8 devad, u16 reg, u16 val) argument [all...] |
/linux-master/drivers/net/ethernet/broadcom/ |
H A D | tg3.c | 1235 static int tg3_phy_cl45_write(struct tg3 *tp, u32 devad, u32 addr, u32 val) argument 1239 err = tg3_writephy(tp, MII_TG3_MMD_CTRL, devad); 1248 MII_TG3_MMD_CTRL_DATA_NOINC | devad); 1258 static int tg3_phy_cl45_read(struct tg3 *tp, u32 devad, u32 addr, u32 *val) argument 1262 err = tg3_writephy(tp, MII_TG3_MMD_CTRL, devad); 1271 MII_TG3_MMD_CTRL_DATA_NOINC | devad);
|
/linux-master/include/uapi/linux/ |
H A D | mdio.h | 148 #define MDIO_DEVS_PRESENT(devad) (1 << (devad)) 460 static inline __u16 mdio_phy_id_c45(int prtad, int devad) argument 462 return MDIO_PHY_ID_C45 | (prtad << 5) | devad;
|
/linux-master/include/linux/ |
H A D | phy.h | 1357 int phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum); 1396 int __phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum); 1402 int phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val); 1408 int __phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val); 1417 int __phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum, 1419 int phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum, 1421 int __phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum, 1423 int phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum, 1479 * @devad: the MMD containing register to modify 1485 static inline int __phy_set_bits_mmd(struct phy_device *phydev, int devad, argument 1501 __phy_clear_bits_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) argument 1515 phy_set_bits_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) argument 1529 phy_clear_bits_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) argument [all...] |
H A D | mdio.h | 141 * MII register access will be passed through with @devad = 155 int (*mdio_read)(struct net_device *dev, int prtad, int devad, 157 int (*mdio_write)(struct net_device *dev, int prtad, int devad, 171 int prtad, int devad, u16 addr, int mask, 617 int __mdiobus_c45_read(struct mii_bus *bus, int addr, int devad, u32 regnum); 618 int mdiobus_c45_read(struct mii_bus *bus, int addr, int devad, u32 regnum); 619 int mdiobus_c45_read_nested(struct mii_bus *bus, int addr, int devad, 621 int __mdiobus_c45_write(struct mii_bus *bus, int addr, int devad, u32 regnum, 623 int mdiobus_c45_write(struct mii_bus *bus, int addr, int devad, u32 regnum, 625 int mdiobus_c45_write_nested(struct mii_bus *bus, int addr, int devad, 681 mdiodev_c45_modify(struct mdio_device *mdiodev, int devad, u32 regnum, u16 mask, u16 set) argument 688 mdiodev_c45_modify_changed(struct mdio_device *mdiodev, int devad, u32 regnum, u16 mask, u16 set) argument 696 mdiodev_c45_read(struct mdio_device *mdiodev, int devad, u16 regnum) argument 702 mdiodev_c45_write(struct mdio_device *mdiodev, u32 devad, u16 regnum, u16 val) argument [all...] |
/linux-master/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_phy.c | 717 * @devad: device address to read 722 int devad, int regnum, u32 gssr) 731 hwaddr |= devad << 16 | regnum; 785 * @devad: device address to read 791 int devad, int regnum, u16 val, 803 hwaddr |= devad << 16 | regnum; 836 * @devad: device address to read 840 static int ixgbe_mii_bus_read_c45(struct mii_bus *bus, int devad, int addr, argument 847 return ixgbe_mii_bus_read_generic_c45(hw, addr, devad, regnum, gssr); 871 * @devad 721 ixgbe_mii_bus_read_generic_c45(struct ixgbe_hw *hw, int addr, int devad, int regnum, u32 gssr) argument 790 ixgbe_mii_bus_write_generic_c45(struct ixgbe_hw *hw, int addr, int devad, int regnum, u16 val, u32 gssr) argument 875 ixgbe_mii_bus_write_c45(struct mii_bus *bus, int addr, int devad, int regnum, u16 val) argument 910 ixgbe_x550em_a_mii_bus_read_c45(struct mii_bus *bus, int addr, int devad, int regnum) argument 947 ixgbe_x550em_a_mii_bus_write_c45(struct mii_bus *bus, int addr, int devad, int regnum, u16 val) argument [all...] |
H A D | ixgbe_main.c | 8945 ixgbe_mdio_read(struct net_device *netdev, int prtad, int devad, u16 addr) argument 8955 if (devad != MDIO_DEVAD_NONE) 8957 devad, regnum); 8964 rc = hw->phy.ops.read_reg(hw, addr, devad, &value); 8970 static int ixgbe_mdio_write(struct net_device *netdev, int prtad, int devad, argument 8979 if (devad != MDIO_DEVAD_NONE) 8980 return mdiobus_c45_write(adapter->mii_bus, prtad, devad, 8988 return hw->phy.ops.write_reg(hw, addr, devad, value);
|