/drivers/net/ethernet/arc/ |
H A D | emac_mdio.c | 46 * @phy_addr: Address of the PHY device. 54 static int arc_mdio_read(struct mii_bus *bus, int phy_addr, int reg_num) argument 61 0x60020000 | (phy_addr << 23) | (reg_num << 18)); 69 dev_dbg(priv->dev, "arc_mdio_read(phy_addr=%i, reg_num=%x) = %x\n", 70 phy_addr, reg_num, value); 78 * @phy_addr: Address of the PHY device. 86 static int arc_mdio_write(struct mii_bus *bus, int phy_addr, argument 92 "arc_mdio_write(phy_addr=%i, reg_num=%x, value=%x)\n", 93 phy_addr, reg_num, value); 96 0x50020000 | (phy_addr << 2 [all...] |
/drivers/staging/netlogic/ |
H A D | platform_net.h | 47 int phy_addr[PORTS_PER_CONTROLLER]; member in struct:xlr_net_data
|
H A D | xlr_net.c | 174 struct phy_device *phydev = priv->mii_bus->phy_map[priv->phy_addr]; 184 struct phy_device *phydev = priv->mii_bus->phy_map[priv->phy_addr]; 221 struct phy_device *phydev = priv->mii_bus->phy_map[priv->phy_addr]; 242 struct phy_device *phydev = priv->mii_bus->phy_map[priv->phy_addr]; 271 struct phy_device *phydev = priv->mii_bus->phy_map[priv->phy_addr]; 648 static int xlr_phy_write(u32 *base_addr, int phy_addr, int regnum, u16 val) argument 658 xlr_nae_wreg(base_addr, R_MII_MGMT_ADDRESS, (phy_addr << 8) | regnum); 678 static int xlr_phy_read(u32 *base_addr, int phy_addr, int regnum) argument 690 (phy_addr << 8) | (regnum << 0)); 715 static int xlr_mii_write(struct mii_bus *bus, int phy_addr, in argument 726 xlr_mii_read(struct mii_bus *bus, int phy_addr, int regnum) argument [all...] |
H A D | platform_net.c | 122 ndata1.phy_addr[mac] = mac + 4 + 0x10; 168 ndata0.phy_addr[0] = 0; 183 ndata0.phy_addr[mac] = mac + 0x10; 225 ndata0.phy_addr[mac] = mac;
|
/drivers/net/phy/ |
H A D | fixed.c | 119 static int fixed_mdio_read(struct mii_bus *bus, int phy_addr, int reg_num) argument 139 if (fp->addr == phy_addr) { 153 static int fixed_mdio_write(struct mii_bus *bus, int phy_addr, int reg_num, argument 186 int fixed_phy_add(unsigned int irq, int phy_addr, argument 199 fmb->irqs[phy_addr] = irq; 201 fp->addr = phy_addr; 218 void fixed_phy_del(int phy_addr) argument 224 if (fp->addr == phy_addr) { 242 int phy_addr; local 251 phy_addr [all...] |
/drivers/net/ethernet/samsung/sxgbe/ |
H A D | sxgbe_mdio.c | 148 int err, phy_addr; local 182 for (phy_addr = 0; phy_addr < PHY_MAX_ADDR; phy_addr++) { 183 struct phy_device *phy = mdio_bus->phy_map[phy_addr]; 193 irqlist[phy_addr] = mdio_data->probed_phy_irq; 201 if (priv->plat->phy_addr == -1) 202 priv->plat->phy_addr = phy_addr; 204 act = (priv->plat->phy_addr [all...] |
/drivers/net/ethernet/chelsio/cxgb/ |
H A D | cphy.h | 45 int (*read)(struct net_device *dev, int phy_addr, int mmd_addr, 47 int (*write)(struct net_device *dev, int phy_addr, int mmd_addr, 140 int phy_addr, struct cphy_ops *phy_ops, 147 phy->mdio.prtad = phy_addr; 159 struct cphy *(*create)(struct net_device *dev, int phy_addr, 139 cphy_init(struct cphy *phy, struct net_device *dev, int phy_addr, struct cphy_ops *phy_ops, const struct mdio_ops *mdio_ops) argument
|
H A D | mv88x201x.c | 211 static struct cphy *mv88x201x_phy_create(struct net_device *dev, int phy_addr, argument 220 cphy_init(cphy, dev, phy_addr, &mv88x201x_ops, mdio_ops);
|
H A D | my3126.c | 171 int phy_addr, const struct mdio_ops *mdio_ops) 178 cphy_init(cphy, dev, phy_addr, &my3126_ops, mdio_ops); 170 my3126_phy_create(struct net_device *dev, int phy_addr, const struct mdio_ops *mdio_ops) argument
|
H A D | subr.c | 283 static int mi1_mdio_read(struct net_device *dev, int phy_addr, int mmd_addr, argument 287 u32 addr = V_MI1_REG_ADDR(reg_addr) | V_MI1_PHY_ADDR(phy_addr); 300 static int mi1_mdio_write(struct net_device *dev, int phy_addr, int mmd_addr, argument 304 u32 addr = V_MI1_REG_ADDR(reg_addr) | V_MI1_PHY_ADDR(phy_addr); 325 static int mi1_mdio_ext_read(struct net_device *dev, int phy_addr, int mmd_addr, argument 329 u32 addr = V_MI1_REG_ADDR(mmd_addr) | V_MI1_PHY_ADDR(phy_addr); 352 static int mi1_mdio_ext_write(struct net_device *dev, int phy_addr, argument 356 u32 addr = V_MI1_REG_ADDR(mmd_addr) | V_MI1_PHY_ADDR(phy_addr); 1089 int phy_addr = bi->mdio_phybaseaddr + i; local 1092 phy_addr, b [all...] |
/drivers/crypto/qat/qat_dh895xcc/ |
H A D | adf_admin.c | 60 dma_addr_t phy_addr; member in struct:adf_admin_comms 115 &admin->phy_addr, GFP_KERNEL); 121 reg_val = (uint64_t)admin->phy_addr; 139 admin->virt_addr, admin->phy_addr);
|
/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | aq100x.c | 266 int t3_aq100x_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, argument 272 cphy_init(phy, adapter, phy_addr, &aq100x_ops, mdio_ops, 281 gpio = phy_addr ? F_GPIO10_OUT_VAL : F_GPIO6_OUT_VAL; 298 phy_addr, err, v); 308 phy_addr, v); 316 CH_WARN(adapter, "PHY%d: reset took %ums\n", phy_addr, wait); 322 phy_addr, v); 339 phy_addr); 350 phy_addr, v, v2);
|
H A D | common.h | 157 int (*read)(struct net_device *dev, int phy_addr, int mmd_addr, 159 int (*write)(struct net_device *dev, int phy_addr, int mmd_addr, 578 int phy_addr, struct cphy_ops *phy_ops, 587 phy->mdio.prtad = phy_addr; 758 int phy_addr, const struct mdio_ops *mdio_ops); 760 int phy_addr, const struct mdio_ops *mdio_ops); 762 int phy_addr, const struct mdio_ops *mdio_ops); 764 int phy_addr, const struct mdio_ops *mdio_ops); 766 int phy_addr, const struct mdio_ops *mdio_ops); 767 int t3_qt2045_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, 577 cphy_init(struct cphy *phy, struct adapter *adapter, int phy_addr, struct cphy_ops *phy_ops, const struct mdio_ops *mdio_ops, unsigned int caps, const char *desc) argument [all...] |
H A D | ael1002.c | 213 int phy_addr, const struct mdio_ops *mdio_ops) 215 cphy_init(phy, adapter, phy_addr, &ael1002_ops, mdio_ops, 239 int phy_addr, const struct mdio_ops *mdio_ops) 241 cphy_init(phy, adapter, phy_addr, &ael1006_ops, mdio_ops, 510 int phy_addr, const struct mdio_ops *mdio_ops) 512 cphy_init(phy, adapter, phy_addr, &ael2005_ops, mdio_ops, 815 int t3_ael2020_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, argument 820 cphy_init(phy, adapter, phy_addr, &ael2020_ops, mdio_ops, 871 int phy_addr, const struct mdio_ops *mdio_ops) 875 cphy_init(phy, adapter, phy_addr, 212 t3_ael1002_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, const struct mdio_ops *mdio_ops) argument 238 t3_ael1006_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, const struct mdio_ops *mdio_ops) argument 509 t3_ael2005_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, const struct mdio_ops *mdio_ops) argument 870 t3_qt2045_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, const struct mdio_ops *mdio_ops) argument 934 t3_xaui_direct_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, const struct mdio_ops *mdio_ops) argument [all...] |
/drivers/net/ethernet/dlink/ |
H A D | dl2k.c | 94 static int mii_read (struct net_device *dev, int phy_addr, int reg_num); 95 static int mii_write (struct net_device *dev, int phy_addr, int reg_num, 318 np->phy_addr = 1; 323 np->phy_addr = i; 1196 cmd->phy_address = np->phy_addr; 1253 int phy_addr; local 1257 phy_addr = np->phy_addr; 1260 miidata->phy_id = phy_addr; 1263 miidata->val_out = mii_read (dev, phy_addr, miidat 1338 mii_read(struct net_device *dev, int phy_addr, int reg_num) argument 1366 mii_write(struct net_device *dev, int phy_addr, int reg_num, u16 data) argument 1384 int phy_addr; local 1405 int phy_addr; local 1491 int phy_addr; local 1578 int phy_addr; local 1635 int phy_addr; local [all...] |
/drivers/net/ethernet/stmicro/stmmac/ |
H A D | chain_mode.c | 100 static void stmmac_init_dma_chain(void *des, dma_addr_t phy_addr, argument 108 dma_addr_t dma_phy = phy_addr; 117 p->basic.des3 = (unsigned int)phy_addr; 126 p->des3 = (unsigned int)phy_addr;
|
H A D | stmmac_mdio.c | 260 if (priv->plat->phy_addr == -1) 261 priv->plat->phy_addr = addr; 263 act = (priv->plat->phy_addr == addr);
|
/drivers/net/ethernet/dec/tulip/ |
H A D | dmfe.c | 257 u8 phy_addr; member in struct:dmfe_board_info 634 db->phy_addr = 1; 773 dmfe_phy_write(ioaddr, db->phy_addr, 0, 0x8000, db->chip_id); 1157 dmfe_phy_write(ioaddr, db->phy_addr, 0, 0x1000, db->chip_id); 1233 dmfe_phy_read (db->ioaddr, db->phy_addr, 1, db->chip_id); 1235 db->phy_addr, 1, db->chip_id) & 0x4) ? 1 : 0; 1250 dmfe_phy_write(db->ioaddr, db->phy_addr, 1652 phy_mode = dmfe_phy_read(db->ioaddr, db->phy_addr, 1, db->chip_id); 1653 phy_mode = dmfe_phy_read(db->ioaddr, db->phy_addr, 1, db->chip_id); 1658 db->phy_addr, 1790 dmfe_phy_write(void __iomem *ioaddr, u8 phy_addr, u8 offset, u16 phy_data, u32 chip_id) argument 1838 dmfe_phy_read(void __iomem *ioaddr, u8 phy_addr, u8 offset, u32 chip_id) argument [all...] |
H A D | uli526x.c | 171 u8 phy_addr; member in struct:uli526x_board_info 531 db->phy_addr = 1; 537 db->phy_addr = phy_tmp; 548 phy_reg_reset = phy->read(db, db->phy_addr, 0); 550 phy->write(db, db->phy_addr, 0, phy_reg_reset); 557 while (timeout-- && phy->read(db, db->phy_addr, 0) & 0x8000) 676 db->phy.write(db, db->phy_addr, 0, 0x8000); 948 ecmd->phy_address = db->phy_addr; 1066 if ((phy->read(db, db->phy_addr, 5) & 0x01e0)!=0) 1079 phy->write(db, db->phy_addr, 1635 phy_writeby_cr9(struct uli526x_board_info *db, u8 phy_addr, u8 offset, u16 phy_data) argument 1669 phy_readby_cr9(struct uli526x_board_info *db, u8 phy_addr, u8 offset) argument 1706 phy_readby_cr10(struct uli526x_board_info *db, u8 phy_addr, u8 offset) argument 1724 phy_writeby_cr10(struct uli526x_board_info *db, u8 phy_addr, u8 offset, u16 phy_data) argument [all...] |
/drivers/net/ethernet/amd/ |
H A D | au1000_eth.c | 289 static int au1000_mdio_read(struct net_device *dev, int phy_addr, int reg) argument 306 MAC_SET_MII_SELECT_PHY(phy_addr) | MAC_MII_READ; 321 static void au1000_mdio_write(struct net_device *dev, int phy_addr, argument 339 MAC_SET_MII_SELECT_PHY(phy_addr) | MAC_MII_WRITE; 345 static int au1000_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum) argument 347 /* WARNING: bus->phy_map[phy_addr].attached_dev == dev does 357 return au1000_mdio_read(dev, phy_addr, regnum); 360 static int au1000_mdiobus_write(struct mii_bus *bus, int phy_addr, int regnum, argument 370 au1000_mdio_write(dev, phy_addr, regnum, value); 499 int phy_addr; local [all...] |
H A D | au1000_eth.h | 117 int phy_addr; member in struct:au1000_private
|
/drivers/net/ethernet/sis/ |
H A D | sis900.c | 149 int phy_addr; member in struct:mii_phy 240 static u16 sis900_reset_phy(struct net_device *net_dev, int phy_addr); 241 static void sis900_auto_negotiate(struct net_device *net_dev, int phy_addr); 601 int phy_addr; local 606 for (phy_addr = 0; phy_addr < 32; phy_addr++) { 613 mii_status = mdio_read(net_dev, phy_addr, MII_STATUS); 619 dev_name, phy_addr); 634 mii_phy->phy_id0 = mdio_read(net_dev, phy_addr, MII_PHY_ID 992 sis900_reset_phy(struct net_device *net_dev, int phy_addr) argument 1449 sis900_auto_negotiate(struct net_device *net_dev, int phy_addr) argument 1488 int phy_addr = sis_priv->cur_phy; local [all...] |
/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_link.h | 97 #define FW_PARAM_SET(phy_addr, phy_type, mdio_access) \ 98 (phy_addr | phy_type | mdio_access << FW_PARAM_MDIO_CTRL_OFFSET) 390 int bnx2x_phy_read(struct link_params *params, u8 phy_addr, 393 int bnx2x_phy_write(struct link_params *params, u8 phy_addr,
|
/drivers/net/ethernet/marvell/ |
H A D | pxa168_eth.c | 199 int phy_addr; member in struct:pxa168_eth_private 317 static void ethernet_phy_set_addr(struct pxa168_eth_private *pep, int phy_addr) argument 324 reg_data |= (phy_addr & 0x1f) << addr_shift; 1305 static int pxa168_smi_read(struct mii_bus *bus, int phy_addr, int regnum) argument 1315 wrl(pep, SMI, (phy_addr << 16) | (regnum << 21) | SMI_OP_R); 1329 static int pxa168_smi_write(struct mii_bus *bus, int phy_addr, int regnum, argument 1339 wrl(pep, SMI, (phy_addr << 16) | (regnum << 21) | 1360 static struct phy_device *phy_scan(struct pxa168_eth_private *pep, int phy_addr) argument 1368 if (phy_addr == PXA168_ETH_PHY_ADDR_DEFAULT) { 1374 start = phy_addr [all...] |
/drivers/net/ethernet/ |
H A D | lantiq_etop.c | 339 ltq_etop_mdio_wr(struct mii_bus *bus, int phy_addr, int phy_reg, u16 phy_data) argument 342 ((phy_addr & MDIO_ADDR_MASK) << MDIO_ADDR_OFFSET) | 353 ltq_etop_mdio_rd(struct mii_bus *bus, int phy_addr, int phy_reg) argument 356 ((phy_addr & MDIO_ADDR_MASK) << MDIO_ADDR_OFFSET) | 379 int phy_addr; local 381 for (phy_addr = 0; phy_addr < PHY_MAX_ADDR; phy_addr++) { 382 if (priv->mii_bus->phy_map[phy_addr]) { 383 phydev = priv->mii_bus->phy_map[phy_addr]; [all...] |