prtad              70 drivers/net/dsa/mt7530.c core_read_mmd_indirect(struct mt7530_priv *priv, int prtad, int devad)
prtad              81 drivers/net/dsa/mt7530.c 	ret = bus->write(bus, 0, MII_MMD_DATA, prtad);
prtad             101 drivers/net/dsa/mt7530.c core_write_mmd_indirect(struct mt7530_priv *priv, int prtad,
prtad             113 drivers/net/dsa/mt7530.c 	ret = bus->write(bus, 0, MII_MMD_DATA, prtad);
prtad            1143 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_read_mmd_regs_v2(struct xgbe_prv_data *pdata, int prtad,
prtad            1176 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_write_mmd_regs_v2(struct xgbe_prv_data *pdata, int prtad,
prtad            1206 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_read_mmd_regs_v1(struct xgbe_prv_data *pdata, int prtad,
prtad            1235 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_write_mmd_regs_v1(struct xgbe_prv_data *pdata, int prtad,
prtad            1261 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_read_mmd_regs(struct xgbe_prv_data *pdata, int prtad,
prtad            1266 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		return xgbe_read_mmd_regs_v1(pdata, prtad, mmd_reg);
prtad            1270 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		return xgbe_read_mmd_regs_v2(pdata, prtad, mmd_reg);
prtad            1274 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_write_mmd_regs(struct xgbe_prv_data *pdata, int prtad,
prtad            1279 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		return xgbe_write_mmd_regs_v1(pdata, prtad, mmd_reg, mmd_data);
prtad            1283 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		return xgbe_write_mmd_regs_v2(pdata, prtad, mmd_reg, mmd_data);
prtad            1564 drivers/net/ethernet/atheros/alx/main.c 			 int prtad, int devad, u16 addr)
prtad            1571 drivers/net/ethernet/atheros/alx/main.c 	if (prtad != hw->mdio.prtad)
prtad            1585 drivers/net/ethernet/atheros/alx/main.c 			  int prtad, int devad, u16 addr, u16 val)
prtad            1590 drivers/net/ethernet/atheros/alx/main.c 	if (prtad != hw->mdio.prtad)
prtad            1814 drivers/net/ethernet/atheros/alx/main.c 	hw->mdio.prtad = 0;
prtad             298 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c 	cmd->base.phy_address = bp->mdio.prtad;
prtad            11621 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		bp->mdio.prtad = bp->port.phy_addr;
prtad            11625 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		bp->mdio.prtad =
prtad            12879 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c static int bnx2x_mdio_read(struct net_device *netdev, int prtad,
prtad            12887 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	   prtad, devad, addr);
prtad            12893 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	rc = bnx2x_phy_read(&bp->link_params, prtad, devad, addr, &value);
prtad            12903 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c static int bnx2x_mdio_write(struct net_device *netdev, int prtad, int devad,
prtad            12911 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	   prtad, devad, addr, value);
prtad            12917 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	rc = bnx2x_phy_write(&bp->link_params, prtad, devad, addr, value);
prtad            13382 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	bp->mdio.prtad = MDIO_PRTAD_NONE;
prtad             113 drivers/net/ethernet/chelsio/cxgb/cphy.h 	int rc = cphy->mdio.mdio_read(cphy->mdio.dev, cphy->mdio.prtad, mmd,
prtad             122 drivers/net/ethernet/chelsio/cxgb/cphy.h 	return cphy->mdio.mdio_write(cphy->mdio.dev, cphy->mdio.prtad, mmd,
prtad             147 drivers/net/ethernet/chelsio/cxgb/cphy.h 		phy->mdio.prtad = phy_addr;
prtad             586 drivers/net/ethernet/chelsio/cxgb/cxgb2.c 	cmd->base.phy_address = p->phy->mdio.prtad;
prtad             103 drivers/net/ethernet/chelsio/cxgb3/ael1002.c 		phy->mdio.prtad == 0 ? F_GPIO7_OUT_VAL : F_GPIO2_OUT_VAL;
prtad             137 drivers/net/ethernet/chelsio/cxgb3/ael1002.c 		phy->mdio.prtad, dev_addr, word_addr);
prtad             147 drivers/net/ethernet/chelsio/cxgb3/ael1002.c 		err = mdio_set_flag(&phy->mdio, phy->mdio.prtad,
prtad             886 drivers/net/ethernet/chelsio/cxgb3/ael1002.c 		phy->mdio.prtad = 1;
prtad             900 drivers/net/ethernet/chelsio/cxgb3/ael1002.c 		int prtad = phy->mdio.prtad;
prtad             903 drivers/net/ethernet/chelsio/cxgb3/ael1002.c 				     XGM_REG(A_XGM_SERDES_STAT0, prtad)) |
prtad             905 drivers/net/ethernet/chelsio/cxgb3/ael1002.c 				    XGM_REG(A_XGM_SERDES_STAT1, prtad)) |
prtad             907 drivers/net/ethernet/chelsio/cxgb3/ael1002.c 				XGM_REG(A_XGM_SERDES_STAT2, prtad)) |
prtad             909 drivers/net/ethernet/chelsio/cxgb3/ael1002.c 				XGM_REG(A_XGM_SERDES_STAT3, prtad));
prtad              75 drivers/net/ethernet/chelsio/cxgb3/aq100x.c 			phy->mdio.prtad, err);
prtad             122 drivers/net/ethernet/chelsio/cxgb3/aq100x.c 	return mdio_set_flag(&phy->mdio, phy->mdio.prtad,
prtad             133 drivers/net/ethernet/chelsio/cxgb3/aq100x.c 		err = mdio_set_flag(&phy->mdio, phy->mdio.prtad,
prtad             146 drivers/net/ethernet/chelsio/cxgb3/aq100x.c 		err = mdio_set_flag(&phy->mdio, phy->mdio.prtad,
prtad             196 drivers/net/ethernet/chelsio/cxgb3/aq100x.c 	return mdio_set_flag(&phy->mdio, phy->mdio.prtad,
prtad             564 drivers/net/ethernet/chelsio/cxgb3/common.h 	int rc = phy->mdio.mdio_read(phy->mdio.dev, phy->mdio.prtad, mmd, reg);
prtad             572 drivers/net/ethernet/chelsio/cxgb3/common.h 	return phy->mdio.mdio_write(phy->mdio.dev, phy->mdio.prtad, mmd,
prtad             587 drivers/net/ethernet/chelsio/cxgb3/common.h 		phy->mdio.prtad = phy_addr;
prtad            1827 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c 	cmd->base.phy_address = p->phy.mdio.prtad;
prtad            3803 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c 		ret = pti->phy_prep(&p->phy, adapter, p->phy.mdio.prtad, NULL);
prtad            2619 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	int ret = 0, prtad, devad;
prtad            2633 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 			prtad = mdio_phy_id_prtad(data->phy_id);
prtad            2636 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 			prtad = data->phy_id;
prtad            2644 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 			ret = t4_mdio_rd(pi->adapter, mbox, prtad, devad,
prtad            2647 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 			ret = t4_mdio_wr(pi->adapter, mbox, prtad, devad,
prtad            8809 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c ixgbe_mdio_read(struct net_device *netdev, int prtad, int devad, u16 addr)
prtad            8822 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		return mdiobus_read(adapter->mii_bus, prtad, regnum);
prtad            8825 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	if (prtad != hw->phy.mdio.prtad)
prtad            8833 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c static int ixgbe_mdio_write(struct net_device *netdev, int prtad, int devad,
prtad            8845 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		return mdiobus_write(adapter->mii_bus, prtad, regnum, value);
prtad            8848 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	if (prtad != hw->phy.mdio.prtad)
prtad            10843 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	hw->phy.mdio.prtad = MDIO_PRTAD_NONE;
prtad             232 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c 	hw->phy.mdio.prtad = phy_addr;
prtad             300 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c 		hw->phy.mdio.prtad = MDIO_PRTAD_NONE;
prtad             479 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c 		   (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) |
prtad             507 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c 		   (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) |
prtad             583 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c 		   (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) |
prtad             612 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c 		   (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) |
prtad            1815 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c 	if (hw->phy.mdio.prtad == MDIO_PRTAD_NONE)
prtad            3175 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c 		hw->phy.mdio.prtad = (hw->phy.nw_mng_if_sel &
prtad            1573 drivers/net/ethernet/sfc/falcon/falcon.c 			     int prtad, int devad, u16 addr, u16 value)
prtad            1582 drivers/net/ethernet/sfc/falcon/falcon.c 		    prtad, devad, addr, value);
prtad            1595 drivers/net/ethernet/sfc/falcon/falcon.c 	EF4_POPULATE_OWORD_2(reg, FRF_AB_MD_PRT_ADR, prtad,
prtad            1626 drivers/net/ethernet/sfc/falcon/falcon.c 			    int prtad, int devad, u16 addr)
prtad            1643 drivers/net/ethernet/sfc/falcon/falcon.c 	EF4_POPULATE_OWORD_2(reg, FRF_AB_MD_PRT_ADR, prtad,
prtad            1658 drivers/net/ethernet/sfc/falcon/falcon.c 			   prtad, devad, addr, rc);
prtad            1668 drivers/net/ethernet/sfc/falcon/falcon.c 			  prtad, devad, addr, rc);
prtad            2192 drivers/net/ethernet/sfc/falcon/falcon.c 	efx->mdio.prtad = nvconfig->board_v2.port0_phy_addr;
prtad            2209 drivers/net/ethernet/sfc/falcon/falcon.c 		  efx->phy_type, efx->mdio.prtad);
prtad             324 drivers/net/ethernet/sfc/falcon/mdio_10g.c 			  "no MDIO PHY present with ID %d\n", efx->mdio.prtad);
prtad              24 drivers/net/ethernet/sfc/falcon/mdio_10g.h 	return efx->mdio.mdio_read(efx->net_dev, efx->mdio.prtad, devad, addr);
prtad              30 drivers/net/ethernet/sfc/falcon/mdio_10g.h 	efx->mdio.mdio_write(efx->net_dev, efx->mdio.prtad, devad, addr, value);
prtad             102 drivers/net/ethernet/sfc/falcon/mdio_10g.h 	mdio_set_flag(&efx->mdio, efx->mdio.prtad, devad, addr, mask, state);
prtad             415 drivers/net/ethernet/sfc/falcon/qt202x_phy.c 			&efx->mdio, efx->mdio.prtad, MDIO_MMD_PMAPMD,
prtad             119 drivers/net/ethernet/sfc/mcdi_port.c 			      int prtad, int devad, u16 addr)
prtad             128 drivers/net/ethernet/sfc/mcdi_port.c 	MCDI_SET_DWORD(inbuf, MDIO_READ_IN_PRTAD, prtad);
prtad             145 drivers/net/ethernet/sfc/mcdi_port.c 			       int prtad, int devad, u16 addr, u16 value)
prtad             154 drivers/net/ethernet/sfc/mcdi_port.c 	MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_PRTAD, prtad);
prtad             439 drivers/net/ethernet/sfc/mcdi_port.c 	efx->mdio.prtad = phy_data->port;
prtad             314 drivers/net/ethernet/sfc/siena.c 		efx->mdio.prtad = MDIO_PRTAD_NONE;
prtad              26 drivers/net/mdio.c int mdio45_probe(struct mdio_if_info *mdio, int prtad)
prtad              34 drivers/net/mdio.c 		stat2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_STAT2);
prtad              40 drivers/net/mdio.c 		devs1 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS1);
prtad              41 drivers/net/mdio.c 		devs2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS2);
prtad              45 drivers/net/mdio.c 		mdio->prtad = prtad;
prtad              67 drivers/net/mdio.c 		  int prtad, int devad, u16 addr, int mask,
prtad              70 drivers/net/mdio.c 	int old_val = mdio->mdio_read(mdio->dev, prtad, devad, addr);
prtad              81 drivers/net/mdio.c 	return mdio->mdio_write(mdio->dev, prtad, devad, addr, new_val);
prtad             100 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad,
prtad             110 drivers/net/mdio.c 			mdio->mdio_read(mdio->dev, mdio->prtad,
prtad             114 drivers/net/mdio.c 				mdio->mdio_read(mdio->dev, mdio->prtad,
prtad             118 drivers/net/mdio.c 			reg = mdio->mdio_read(mdio->dev, mdio->prtad,
prtad             142 drivers/net/mdio.c 	mdio_set_flag(mdio, mdio->prtad, MDIO_MMD_AN, MDIO_CTRL1,
prtad             153 drivers/net/mdio.c 	reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_AN, addr);
prtad             194 drivers/net/mdio.c 	ecmd->phy_address = mdio->prtad;
prtad             198 drivers/net/mdio.c 	reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
prtad             207 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
prtad             234 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
prtad             242 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
prtad             259 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_AN,
prtad             276 drivers/net/mdio.c 		int an_stat = mdio->mdio_read(mdio->dev, mdio->prtad,
prtad             311 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
prtad             324 drivers/net/mdio.c 		switch (mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
prtad             365 drivers/net/mdio.c 	cmd->base.phy_address = mdio->prtad;
prtad             369 drivers/net/mdio.c 	reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
prtad             378 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
prtad             405 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
prtad             413 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
prtad             430 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_AN,
prtad             447 drivers/net/mdio.c 		int an_stat = mdio->mdio_read(mdio->dev, mdio->prtad,
prtad             483 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
prtad             502 drivers/net/mdio.c 		switch (mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
prtad             530 drivers/net/mdio.c 	int prtad, devad;
prtad             536 drivers/net/mdio.c 		if (mdio->prtad == MDIO_PRTAD_NONE)
prtad             538 drivers/net/mdio.c 		mii_data->phy_id = mdio->prtad;
prtad             551 drivers/net/mdio.c 		prtad = mdio_phy_id_prtad(mii_data->phy_id);
prtad             555 drivers/net/mdio.c 		prtad = mii_data->phy_id;
prtad             559 drivers/net/mdio.c 		   mdio->prtad != MDIO_PRTAD_NONE &&
prtad             560 drivers/net/mdio.c 		   mii_data->phy_id == mdio->prtad) {
prtad             562 drivers/net/mdio.c 		prtad = mdio->prtad;
prtad             588 drivers/net/mdio.c 		int rc = mdio->mdio_read(mdio->dev, prtad, devad, addr);
prtad             594 drivers/net/mdio.c 		return mdio->mdio_write(mdio->dev, prtad, devad, addr,
prtad             403 drivers/net/phy/phy.c 	int prtad, devad;
prtad             412 drivers/net/phy/phy.c 			prtad = mdio_phy_id_prtad(mii_data->phy_id);
prtad             416 drivers/net/phy/phy.c 			prtad = mii_data->phy_id;
prtad             419 drivers/net/phy/phy.c 		mii_data->val_out = mdiobus_read(phydev->mdio.bus, prtad,
prtad             425 drivers/net/phy/phy.c 			prtad = mdio_phy_id_prtad(mii_data->phy_id);
prtad             429 drivers/net/phy/phy.c 			prtad = mii_data->phy_id;
prtad             432 drivers/net/phy/phy.c 		if (prtad == phydev->mdio.addr) {
prtad             471 drivers/net/phy/phy.c 		mdiobus_write(phydev->mdio.bus, prtad, devad, val);
prtad             473 drivers/net/phy/phy.c 		if (prtad == phydev->mdio.addr &&
prtad            1479 drivers/net/phy/phylink.c 	int prtad, devad;
prtad            1482 drivers/net/phy/phylink.c 		prtad = mdio_phy_id_prtad(phy_id);
prtad            1506 drivers/net/phy/phylink.c 		prtad = phy_id;
prtad            1509 drivers/net/phy/phylink.c 		prtad = phy_id;
prtad            1512 drivers/net/phy/phylink.c 	return mdiobus_read(pl->phydev->mdio.bus, prtad, devad);
prtad            1519 drivers/net/phy/phylink.c 	int prtad, devad;
prtad            1522 drivers/net/phy/phylink.c 		prtad = mdio_phy_id_prtad(phy_id);
prtad            1546 drivers/net/phy/phylink.c 		prtad = phy_id;
prtad            1549 drivers/net/phy/phylink.c 		prtad = phy_id;
prtad            1553 drivers/net/phy/phylink.c 	return mdiobus_write(phydev->mdio.bus, prtad, devad, val);
prtad             370 drivers/net/usb/ax88179_178a.c static inline int ax88179_phy_mmd_indirect(struct usbnet *dev, u16 prtad,
prtad             380 drivers/net/usb/ax88179_178a.c 	tmp16 = prtad;
prtad             392 drivers/net/usb/ax88179_178a.c ax88179_phy_read_mmd_indirect(struct usbnet *dev, u16 prtad, u16 devad)
prtad             397 drivers/net/usb/ax88179_178a.c 	ax88179_phy_mmd_indirect(dev, prtad, devad);
prtad             408 drivers/net/usb/ax88179_178a.c ax88179_phy_write_mmd_indirect(struct usbnet *dev, u16 prtad, u16 devad,
prtad             413 drivers/net/usb/ax88179_178a.c 	ax88179_phy_mmd_indirect(dev, prtad, devad);
prtad             121 include/linux/mdio.h 	int prtad;
prtad             126 include/linux/mdio.h 	int (*mdio_read)(struct net_device *dev, int prtad, int devad,
prtad             128 include/linux/mdio.h 	int (*mdio_write)(struct net_device *dev, int prtad, int devad,
prtad             140 include/linux/mdio.h extern int mdio45_probe(struct mdio_if_info *mdio, int prtad);
prtad             142 include/linux/mdio.h 			 int prtad, int devad, u16 addr, int mask,
prtad             322 include/uapi/linux/mdio.h static inline __u16 mdio_phy_id_c45(int prtad, int devad)
prtad             324 include/uapi/linux/mdio.h 	return MDIO_PHY_ID_C45 | (prtad << 5) | devad;