/drivers/net/phy/ |
D | fixed_phy.c | 57 static int fixed_mdio_read(struct mii_bus *bus, int phy_addr, int reg_num) in fixed_mdio_read() argument 63 if (fp->addr == phy_addr) { in fixed_mdio_read() 85 static int fixed_mdio_write(struct mii_bus *bus, int phy_addr, int reg_num, in fixed_mdio_write() argument 149 int fixed_phy_add(unsigned int irq, int phy_addr, in fixed_phy_add() argument 168 fmb->mii_bus->irq[phy_addr] = irq; in fixed_phy_add() 170 fp->addr = phy_addr; in fixed_phy_add() 195 static void fixed_phy_del(int phy_addr) in fixed_phy_del() argument 201 if (fp->addr == phy_addr) { in fixed_phy_del() 206 ida_simple_remove(&phy_fixed_ida, phy_addr); in fixed_phy_del() 219 int phy_addr; in fixed_phy_register() local [all …]
|
D | mdio-xgene.c | 278 struct phy_device *xgene_enet_phy_register(struct mii_bus *bus, int phy_addr) in xgene_enet_phy_register() argument 282 phy_dev = get_phy_device(bus, phy_addr, false); in xgene_enet_phy_register() 301 u32 phy_addr; in acpi_register_phy() local 308 phy_addr = obj->integer.value; in acpi_register_phy() 310 phy_dev = xgene_enet_phy_register(mdio, phy_addr); in acpi_register_phy()
|
/drivers/net/ethernet/dlink/ |
D | dl2k.c | 93 static int mii_read (struct net_device *dev, int phy_addr, int reg_num); 94 static int mii_write (struct net_device *dev, int phy_addr, int reg_num, 315 np->phy_addr = 1; in find_miiphy() 320 np->phy_addr = i; in find_miiphy() 546 mii_write(dev, np->phy_addr, 31, 0x0001); in rio_hw_init() 547 mii_write(dev, np->phy_addr, 27, 0x01e0); in rio_hw_init() 548 mii_write(dev, np->phy_addr, 31, 0x0002); in rio_hw_init() 549 mii_write(dev, np->phy_addr, 27, 0xeb8e); in rio_hw_init() 550 mii_write(dev, np->phy_addr, 31, 0x0000); in rio_hw_init() 551 mii_write(dev, np->phy_addr, 30, 0x005e); in rio_hw_init() [all …]
|
/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_mdio.c | 148 int err, phy_addr; in sxgbe_mdio_register() local 182 for (phy_addr = 0; phy_addr < PHY_MAX_ADDR; phy_addr++) { in sxgbe_mdio_register() 183 struct phy_device *phy = mdiobus_get_phy(mdio_bus, phy_addr); in sxgbe_mdio_register() 193 irqlist[phy_addr] = mdio_data->probed_phy_irq; in sxgbe_mdio_register() 201 if (priv->plat->phy_addr == -1) in sxgbe_mdio_register() 202 priv->plat->phy_addr = phy_addr; in sxgbe_mdio_register() 204 act = (priv->plat->phy_addr == phy_addr); in sxgbe_mdio_register() 218 phy->phy_id, phy_addr, irq_str, in sxgbe_mdio_register()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | aq100x.c | 266 int t3_aq100x_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, in t3_aq100x_phy_prep() argument 272 cphy_init(phy, adapter, phy_addr, &aq100x_ops, mdio_ops, in t3_aq100x_phy_prep() 281 gpio = phy_addr ? F_GPIO10_OUT_VAL : F_GPIO6_OUT_VAL; in t3_aq100x_phy_prep() 298 phy_addr, err, v); in t3_aq100x_phy_prep() 308 phy_addr, v); in t3_aq100x_phy_prep() 316 CH_WARN(adapter, "PHY%d: reset took %ums\n", phy_addr, wait); in t3_aq100x_phy_prep() 322 phy_addr, v); in t3_aq100x_phy_prep() 339 phy_addr); in t3_aq100x_phy_prep() 350 phy_addr, v, v2); in t3_aq100x_phy_prep()
|
D | ael1002.c | 213 int phy_addr, const struct mdio_ops *mdio_ops) in t3_ael1002_phy_prep() argument 215 cphy_init(phy, adapter, phy_addr, &ael1002_ops, mdio_ops, in t3_ael1002_phy_prep() 239 int phy_addr, const struct mdio_ops *mdio_ops) in t3_ael1006_phy_prep() argument 241 cphy_init(phy, adapter, phy_addr, &ael1006_ops, mdio_ops, in t3_ael1006_phy_prep() 510 int phy_addr, const struct mdio_ops *mdio_ops) in t3_ael2005_phy_prep() argument 512 cphy_init(phy, adapter, phy_addr, &ael2005_ops, mdio_ops, in t3_ael2005_phy_prep() 815 int t3_ael2020_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, in t3_ael2020_phy_prep() argument 820 cphy_init(phy, adapter, phy_addr, &ael2020_ops, mdio_ops, in t3_ael2020_phy_prep() 871 int phy_addr, const struct mdio_ops *mdio_ops) in t3_qt2045_phy_prep() argument 875 cphy_init(phy, adapter, phy_addr, &qt2045_ops, mdio_ops, in t3_qt2045_phy_prep() [all …]
|
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, const struct cphy_ops *phy_ops, in cphy_init() argument 587 phy->mdio.prtad = phy_addr; in cphy_init() 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, [all …]
|
/drivers/net/ethernet/arc/ |
D | emac_mdio.c | 55 static int arc_mdio_read(struct mii_bus *bus, int phy_addr, int reg_num) in arc_mdio_read() argument 62 0x60020000 | (phy_addr << 23) | (reg_num << 18)); in arc_mdio_read() 71 phy_addr, reg_num, value); in arc_mdio_read() 87 static int arc_mdio_write(struct mii_bus *bus, int phy_addr, in arc_mdio_write() argument 94 phy_addr, reg_num, value); in arc_mdio_write() 97 0x50020000 | (phy_addr << 23) | (reg_num << 18) | value); in arc_mdio_write()
|
/drivers/net/ethernet/dec/tulip/ |
D | dmfe.c | 254 u8 phy_addr; member 631 db->phy_addr = 1; in dmfe_init_dm910x() 770 dmfe_phy_write(ioaddr, db->phy_addr, 0, 0x8000, db->chip_id); in dmfe_stop() 1154 dmfe_phy_write(ioaddr, db->phy_addr, 0, 0x1000, db->chip_id); in dmfe_timer() 1230 dmfe_phy_read (db->ioaddr, db->phy_addr, 1, db->chip_id); in dmfe_timer() 1232 db->phy_addr, 1, db->chip_id) & 0x4) ? 1 : 0; in dmfe_timer() 1247 dmfe_phy_write(db->ioaddr, db->phy_addr, in dmfe_timer() 1649 phy_mode = dmfe_phy_read(db->ioaddr, db->phy_addr, 1, db->chip_id); in dmfe_sense_speed() 1650 phy_mode = dmfe_phy_read(db->ioaddr, db->phy_addr, 1, db->chip_id); in dmfe_sense_speed() 1655 db->phy_addr, 7, db->chip_id) & 0xf000; in dmfe_sense_speed() [all …]
|
D | uli526x.c | 171 u8 phy_addr; member 531 db->phy_addr = 1; in uli526x_init() 537 db->phy_addr = phy_tmp; in uli526x_init() 548 phy_reg_reset = phy->read(db, db->phy_addr, 0); in uli526x_init() 550 phy->write(db, db->phy_addr, 0, phy_reg_reset); in uli526x_init() 557 while (timeout-- && phy->read(db, db->phy_addr, 0) & 0x8000) in uli526x_init() 676 db->phy.write(db, db->phy_addr, 0, 0x8000); in uli526x_stop() 948 ecmd->phy_address = db->phy_addr; in ULi_ethtool_gset() 1066 if ((phy->read(db, db->phy_addr, 5) & 0x01e0)!=0) in uli526x_timer() 1079 phy->write(db, db->phy_addr, 0, 0x1000); in uli526x_timer() [all …]
|
/drivers/net/ethernet/sis/ |
D | sis900.c | 149 int phy_addr; member 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; in sis900_mii_probe() local 606 for (phy_addr = 0; phy_addr < 32; phy_addr++) { in sis900_mii_probe() 613 mii_status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_mii_probe() 619 dev_name, phy_addr); in sis900_mii_probe() 634 mii_phy->phy_id0 = mdio_read(net_dev, phy_addr, MII_PHY_ID0); in sis900_mii_probe() 635 mii_phy->phy_id1 = mdio_read(net_dev, phy_addr, MII_PHY_ID1); in sis900_mii_probe() 636 mii_phy->phy_addr = phy_addr; in sis900_mii_probe() [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_pci.c | 40 int phy_addr; member 65 return dmi->phy_addr; in stmmac_pci_find_phy_addr() 74 plat->phy_addr = 0; in stmmac_default_data() 108 plat->phy_addr = ret; in quark_default_data() 134 .phy_addr = 1, 139 .phy_addr = 1,
|
D | chain_mode.c | 108 static void stmmac_init_dma_chain(void *des, dma_addr_t phy_addr, in stmmac_init_dma_chain() argument 116 dma_addr_t dma_phy = phy_addr; in stmmac_init_dma_chain() 125 p->basic.des3 = (unsigned int)phy_addr; in stmmac_init_dma_chain() 134 p->des3 = (unsigned int)phy_addr; in stmmac_init_dma_chain()
|
/drivers/net/ethernet/chelsio/cxgb/ |
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, const struct cphy_ops *phy_ops, in cphy_init() argument 147 phy->mdio.prtad = phy_addr; in cphy_init() 159 struct cphy *(*create)(struct net_device *dev, int phy_addr,
|
D | subr.c | 283 static int mi1_mdio_read(struct net_device *dev, int phy_addr, int mmd_addr, in mi1_mdio_read() argument 287 u32 addr = V_MI1_REG_ADDR(reg_addr) | V_MI1_PHY_ADDR(phy_addr); in mi1_mdio_read() 300 static int mi1_mdio_write(struct net_device *dev, int phy_addr, int mmd_addr, in mi1_mdio_write() argument 304 u32 addr = V_MI1_REG_ADDR(reg_addr) | V_MI1_PHY_ADDR(phy_addr); in mi1_mdio_write() 325 static int mi1_mdio_ext_read(struct net_device *dev, int phy_addr, int mmd_addr, in mi1_mdio_ext_read() argument 329 u32 addr = V_MI1_REG_ADDR(mmd_addr) | V_MI1_PHY_ADDR(phy_addr); in mi1_mdio_ext_read() 352 static int mi1_mdio_ext_write(struct net_device *dev, int phy_addr, in mi1_mdio_ext_write() argument 356 u32 addr = V_MI1_REG_ADDR(mmd_addr) | V_MI1_PHY_ADDR(phy_addr); in mi1_mdio_ext_write() 1089 int phy_addr = bi->mdio_phybaseaddr + i; in t1_init_sw_modules() local 1092 phy_addr, bi->mdio_ops); in t1_init_sw_modules()
|
/drivers/net/ethernet/amd/ |
D | au1000_eth.c | 289 static int au1000_mdio_read(struct net_device *dev, int phy_addr, int reg) in au1000_mdio_read() argument 306 MAC_SET_MII_SELECT_PHY(phy_addr) | MAC_MII_READ; in au1000_mdio_read() 321 static void au1000_mdio_write(struct net_device *dev, int phy_addr, in au1000_mdio_write() argument 339 MAC_SET_MII_SELECT_PHY(phy_addr) | MAC_MII_WRITE; in au1000_mdio_write() 345 static int au1000_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum) in au1000_mdiobus_read() argument 354 return au1000_mdio_read(dev, phy_addr, regnum); in au1000_mdiobus_read() 357 static int au1000_mdiobus_write(struct mii_bus *bus, int phy_addr, int regnum, in au1000_mdiobus_write() argument 367 au1000_mdio_write(dev, phy_addr, regnum, value); in au1000_mdiobus_write() 496 int phy_addr; in au1000_mii_probe() local 501 if (aup->phy_addr) in au1000_mii_probe() [all …]
|
/drivers/crypto/qat/qat_common/ |
D | adf_admin.c | 146 dma_addr_t phy_addr; member 248 &admin->phy_addr, GFP_KERNEL); in adf_init_admin_comms() 262 admin->virt_addr, admin->phy_addr); in adf_init_admin_comms() 268 reg_val = (u64)admin->phy_addr; in adf_init_admin_comms() 287 admin->virt_addr, admin->phy_addr); in adf_exit_admin_comms()
|
/drivers/staging/netlogic/ |
D | xlr_net.c | 169 return mdiobus_get_phy(priv->mii_bus, priv->phy_addr); in xlr_get_phydev() 646 static int xlr_phy_write(u32 *base_addr, int phy_addr, int regnum, u16 val) in xlr_phy_write() argument 656 xlr_nae_wreg(base_addr, R_MII_MGMT_ADDRESS, (phy_addr << 8) | regnum); in xlr_phy_write() 676 static int xlr_phy_read(u32 *base_addr, int phy_addr, int regnum) in xlr_phy_read() argument 688 (phy_addr << 8) | (regnum << 0)); in xlr_phy_read() 713 static int xlr_mii_write(struct mii_bus *bus, int phy_addr, int regnum, u16 val) in xlr_mii_write() argument 718 ret = xlr_phy_write(priv->mii_addr, phy_addr, regnum, val); in xlr_mii_write() 720 phy_addr, regnum, val, ret); in xlr_mii_write() 724 static int xlr_mii_read(struct mii_bus *bus, int phy_addr, int regnum) in xlr_mii_read() argument 729 ret = xlr_phy_read(priv->mii_addr, phy_addr, regnum); in xlr_mii_read() [all …]
|
D | platform_net.c | 122 ndata1.phy_addr[mac] = mac + 4 + 0x10; in gmac_controller2_init() 168 ndata0.phy_addr[0] = 0; in xls_gmac_init() 183 ndata0.phy_addr[mac] = mac + 0x10; in xls_gmac_init() 224 ndata0.phy_addr[mac] = mac; in xlr_gmac_init()
|
/drivers/net/ethernet/qualcomm/emac/ |
D | emac-phy.c | 187 u32 phy_addr; in emac_phy_config() local 195 &phy_addr); in emac_phy_config() 202 adpt->phydev = mdiobus_get_phy(mii_bus, phy_addr); in emac_phy_config()
|
/drivers/net/ethernet/sgi/ |
D | meth.c | 77 unsigned long phy_addr; member 126 mace->eth.phy_regs = (priv->phy_addr << 5) | (phyreg & 0x1f); in mdio_read() 139 if(priv->phy_addr>=0&&priv->phy_addr<32) in mdio_probe() 143 priv->phy_addr=i; in mdio_probe() 168 if(priv->phy_addr<32) { in mdio_probe() 172 priv->phy_addr=-1; in mdio_probe() 321 priv->phy_addr = -1; /* No PHY is known yet... */ in meth_open()
|
/drivers/net/ethernet/broadcom/ |
D | b44.c | 259 static int __b44_readphy(struct b44 *bp, int phy_addr, int reg, u32 *val) in __b44_readphy() argument 266 (phy_addr << MDIO_DATA_PMD_SHIFT) | in __b44_readphy() 275 static int __b44_writephy(struct b44 *bp, int phy_addr, int reg, u32 val) in __b44_writephy() argument 280 (phy_addr << MDIO_DATA_PMD_SHIFT) | in __b44_writephy() 292 return __b44_readphy(bp, bp->phy_addr, reg, val); in b44_readphy() 300 return __b44_writephy(bp, bp->phy_addr, reg, val); in b44_writephy() 1868 cmd->base.phy_address = bp->phy_addr; in b44_get_link_ksettings() 2171 bp->phy_addr = sdev->bus->sprom.et1phyaddr; in b44_get_invariants() 2174 bp->phy_addr = sdev->bus->sprom.et0phyaddr; in b44_get_invariants() 2179 bp->phy_addr &= 0x1F; in b44_get_invariants() [all …]
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_link.h | 99 #define FW_PARAM_SET(phy_addr, phy_type, mdio_access) \ argument 100 (phy_addr | phy_type | mdio_access << FW_PARAM_MDIO_CTRL_OFFSET) 392 int bnx2x_phy_read(struct link_params *params, u8 phy_addr, 395 int bnx2x_phy_write(struct link_params *params, u8 phy_addr,
|
/drivers/net/ethernet/sun/ |
D | niu.c | 1099 err = mii_read(np, np->phy_addr, MII_BMCR); in link_status_mii() 1104 err = mii_read(np, np->phy_addr, MII_BMSR); in link_status_mii() 1109 err = mii_read(np, np->phy_addr, MII_ADVERTISE); in link_status_mii() 1114 err = mii_read(np, np->phy_addr, MII_LPA); in link_status_mii() 1120 err = mii_read(np, np->phy_addr, MII_ESTATUS); in link_status_mii() 1125 err = mii_read(np, np->phy_addr, MII_CTRL1000); in link_status_mii() 1130 err = mii_read(np, np->phy_addr, MII_STAT1000); in link_status_mii() 1221 err = mii_read(np, np->phy_addr, MII_BMSR); in link_status_1g_rgmii() 1229 err = mii_read(np, np->phy_addr, MII_ADVERTISE); in link_status_1g_rgmii() 1234 err = mii_read(np, np->phy_addr, MII_LPA); in link_status_1g_rgmii() [all …]
|
/drivers/infiniband/hw/nes/ |
D | nes_utils.c | 414 void nes_write_1G_phy_reg(struct nes_device *nesdev, u8 phy_reg, u8 phy_addr, u16 data) in nes_write_1G_phy_reg() argument 420 0x50020000 | data | ((u32)phy_reg << 18) | ((u32)phy_addr << 23)); in nes_write_1G_phy_reg() 441 void nes_read_1G_phy_reg(struct nes_device *nesdev, u8 phy_reg, u8 phy_addr, u16 *data) in nes_read_1G_phy_reg() argument 450 0x60020000 | ((u32)phy_reg << 18) | ((u32)phy_addr << 23)); in nes_read_1G_phy_reg() 473 void nes_write_10G_phy_reg(struct nes_device *nesdev, u16 phy_addr, u8 dev_addr, u16 phy_reg, in nes_write_10G_phy_reg() argument 480 port_addr = phy_addr; in nes_write_10G_phy_reg() 519 void nes_read_10G_phy_reg(struct nes_device *nesdev, u8 phy_addr, u8 dev_addr, u16 phy_reg) in nes_read_10G_phy_reg() argument 525 port_addr = phy_addr; in nes_read_10G_phy_reg()
|