/drivers/net/phy/ |
D | fixed_phy.c | 75 static int fixed_mdio_read(struct mii_bus *bus, int phy_addr, int reg_num) in fixed_mdio_read() argument 81 if (fp->addr == phy_addr) { in fixed_mdio_read() 104 static int fixed_mdio_write(struct mii_bus *bus, int phy_addr, int reg_num, in fixed_mdio_write() argument 137 static int fixed_phy_add_gpiod(unsigned int irq, int phy_addr, in fixed_phy_add_gpiod() argument 156 fmb->mii_bus->irq[phy_addr] = irq; in fixed_phy_add_gpiod() 158 fp->addr = phy_addr; in fixed_phy_add_gpiod() 169 int fixed_phy_add(unsigned int irq, int phy_addr, in fixed_phy_add() argument 172 return fixed_phy_add_gpiod(irq, phy_addr, status, NULL); in fixed_phy_add() 178 static void fixed_phy_del(int phy_addr) in fixed_phy_del() argument 184 if (fp->addr == phy_addr) { in fixed_phy_del() [all …]
|
D | phy-core.c | 352 static void mmd_phy_indirect(struct mii_bus *bus, int phy_addr, int devad, in mmd_phy_indirect() argument 356 __mdiobus_write(bus, phy_addr, MII_MMD_CTRL, devad); in mmd_phy_indirect() 359 __mdiobus_write(bus, phy_addr, MII_MMD_DATA, regnum); in mmd_phy_indirect() 362 __mdiobus_write(bus, phy_addr, MII_MMD_CTRL, in mmd_phy_indirect() 390 int phy_addr = phydev->mdio.addr; in __phy_read_mmd() local 392 mmd_phy_indirect(bus, phy_addr, devad, regnum); in __phy_read_mmd() 395 val = __mdiobus_read(bus, phy_addr, MII_MMD_DATA); in __phy_read_mmd() 448 int phy_addr = phydev->mdio.addr; in __phy_write_mmd() local 450 mmd_phy_indirect(bus, phy_addr, devad, regnum); in __phy_write_mmd() 453 __mdiobus_write(bus, phy_addr, MII_MMD_DATA, val); in __phy_write_mmd()
|
/drivers/net/ethernet/dlink/ |
D | dl2k.c | 89 static int mii_read (struct net_device *dev, int phy_addr, int reg_num); 90 static int mii_write (struct net_device *dev, int phy_addr, int reg_num, 314 np->phy_addr = 1; in find_miiphy() 319 np->phy_addr = i; in find_miiphy() 545 mii_write(dev, np->phy_addr, 31, 0x0001); in rio_hw_init() 546 mii_write(dev, np->phy_addr, 27, 0x01e0); in rio_hw_init() 547 mii_write(dev, np->phy_addr, 31, 0x0002); in rio_hw_init() 548 mii_write(dev, np->phy_addr, 27, 0xeb8e); in rio_hw_init() 549 mii_write(dev, np->phy_addr, 31, 0x0000); in rio_hw_init() 550 mii_write(dev, np->phy_addr, 30, 0x005e); in rio_hw_init() [all …]
|
/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_mdio.c | 145 int err, phy_addr; in sxgbe_mdio_register() local 179 for (phy_addr = 0; phy_addr < PHY_MAX_ADDR; phy_addr++) { in sxgbe_mdio_register() 180 struct phy_device *phy = mdiobus_get_phy(mdio_bus, phy_addr); in sxgbe_mdio_register() 190 irqlist[phy_addr] = mdio_data->probed_phy_irq; in sxgbe_mdio_register() 198 if (priv->plat->phy_addr == -1) in sxgbe_mdio_register() 199 priv->plat->phy_addr = phy_addr; in sxgbe_mdio_register() 201 act = (priv->plat->phy_addr == phy_addr); in sxgbe_mdio_register() 215 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 | 56 static int arc_mdio_read(struct mii_bus *bus, int phy_addr, int reg_num) in arc_mdio_read() argument 63 0x60020000 | (phy_addr << 23) | (reg_num << 18)); in arc_mdio_read() 72 phy_addr, reg_num, value); in arc_mdio_read() 88 static int arc_mdio_write(struct mii_bus *bus, int phy_addr, in arc_mdio_write() argument 95 phy_addr, reg_num, value); in arc_mdio_write() 98 0x50020000 | (phy_addr << 23) | (reg_num << 18) | value); in arc_mdio_write()
|
/drivers/net/ethernet/dec/tulip/ |
D | dmfe.c | 246 u8 phy_addr; member 620 db->phy_addr = 1; in dmfe_init_dm910x() 759 dmfe_phy_write(ioaddr, db->phy_addr, 0, 0x8000, db->chip_id); in dmfe_stop() 1143 dmfe_phy_write(ioaddr, db->phy_addr, 0, 0x1000, db->chip_id); in dmfe_timer() 1219 dmfe_phy_read (db->ioaddr, db->phy_addr, 1, db->chip_id); in dmfe_timer() 1221 db->phy_addr, 1, db->chip_id) & 0x4) ? 1 : 0; in dmfe_timer() 1236 dmfe_phy_write(db->ioaddr, db->phy_addr, in dmfe_timer() 1638 phy_mode = dmfe_phy_read(db->ioaddr, db->phy_addr, 1, db->chip_id); in dmfe_sense_speed() 1639 phy_mode = dmfe_phy_read(db->ioaddr, db->phy_addr, 1, db->chip_id); in dmfe_sense_speed() 1644 db->phy_addr, 7, db->chip_id) & 0xf000; in dmfe_sense_speed() [all …]
|
D | uli526x.c | 163 u8 phy_addr; member 520 db->phy_addr = 1; in uli526x_init() 526 db->phy_addr = phy_tmp; in uli526x_init() 537 phy_reg_reset = phy->read(db, db->phy_addr, 0); in uli526x_init() 539 phy->write(db, db->phy_addr, 0, phy_reg_reset); in uli526x_init() 546 while (timeout-- && phy->read(db, db->phy_addr, 0) & 0x8000) in uli526x_init() 665 db->phy.write(db, db->phy_addr, 0, 0x8000); in uli526x_stop() 944 cmd->base.phy_address = db->phy_addr; in ULi_ethtool_get_link_ksettings() 1062 if ((phy->read(db, db->phy_addr, 5) & 0x01e0)!=0) in uli526x_timer() 1075 phy->write(db, db->phy_addr, 0, 0x1000); in uli526x_timer() [all …]
|
/drivers/net/ethernet/sis/ |
D | sis900.c | 149 int phy_addr; member 242 static u16 sis900_reset_phy(struct net_device *net_dev, int phy_addr); 243 static void sis900_auto_negotiate(struct net_device *net_dev, int phy_addr); 604 int phy_addr; in sis900_mii_probe() local 609 for (phy_addr = 0; phy_addr < 32; phy_addr++) { in sis900_mii_probe() 616 mii_status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_mii_probe() 622 dev_name, phy_addr); in sis900_mii_probe() 637 mii_phy->phy_id0 = mdio_read(net_dev, phy_addr, MII_PHY_ID0); in sis900_mii_probe() 638 mii_phy->phy_id1 = mdio_read(net_dev, phy_addr, MII_PHY_ID1); in sis900_mii_probe() 639 mii_phy->phy_addr = phy_addr; in sis900_mii_probe() [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_pci.c | 26 int phy_addr; member 56 return func_data->phy_addr; in stmmac_pci_find_phy_addr() 98 plat->phy_addr = 0; in stmmac_default_data() 222 plat->phy_addr = 0; in ehl_sgmii_data() 235 plat->phy_addr = 0; in ehl_rgmii_data() 263 plat->phy_addr = 0; in tgl_sgmii_data() 275 .phy_addr = 1, 287 .phy_addr = 1, 291 .phy_addr = 1, 363 plat->phy_addr = ret; in quark_default_data() [all …]
|
D | chain_mode.c | 98 static void init_dma_chain(void *des, dma_addr_t phy_addr, in init_dma_chain() argument 106 dma_addr_t dma_phy = phy_addr; in init_dma_chain() 115 p->basic.des3 = cpu_to_le32((unsigned int)phy_addr); in init_dma_chain() 124 p->des3 = cpu_to_le32((unsigned int)phy_addr); in 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 | 272 static int au1000_mdio_read(struct net_device *dev, int phy_addr, int reg) in au1000_mdio_read() argument 289 MAC_SET_MII_SELECT_PHY(phy_addr) | MAC_MII_READ; in au1000_mdio_read() 304 static void au1000_mdio_write(struct net_device *dev, int phy_addr, in au1000_mdio_write() argument 322 MAC_SET_MII_SELECT_PHY(phy_addr) | MAC_MII_WRITE; in au1000_mdio_write() 328 static int au1000_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum) in au1000_mdiobus_read() argument 337 return au1000_mdio_read(dev, phy_addr, regnum); in au1000_mdiobus_read() 340 static int au1000_mdiobus_write(struct mii_bus *bus, int phy_addr, int regnum, in au1000_mdiobus_write() argument 350 au1000_mdio_write(dev, phy_addr, regnum, value); in au1000_mdiobus_write() 479 int phy_addr; in au1000_mii_probe() local 484 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 | 140 return mdiobus_get_phy(priv->mii_bus, priv->phy_addr); in xlr_get_phydev() 597 static int xlr_phy_write(u32 *base_addr, int phy_addr, int regnum, u16 val) in xlr_phy_write() argument 607 xlr_nae_wreg(base_addr, R_MII_MGMT_ADDRESS, (phy_addr << 8) | regnum); in xlr_phy_write() 627 static int xlr_phy_read(u32 *base_addr, int phy_addr, int regnum) in xlr_phy_read() argument 639 (phy_addr << 8) | (regnum << 0)); in xlr_phy_read() 664 static int xlr_mii_write(struct mii_bus *bus, int phy_addr, int regnum, u16 val) in xlr_mii_write() argument 669 ret = xlr_phy_write(priv->mii_addr, phy_addr, regnum, val); in xlr_mii_write() 671 phy_addr, regnum, val, ret); in xlr_mii_write() 675 static int xlr_mii_read(struct mii_bus *bus, int phy_addr, int regnum) in xlr_mii_read() argument 680 ret = xlr_phy_read(priv->mii_addr, phy_addr, regnum); in xlr_mii_read() [all …]
|
D | platform_net.c | 94 ndata1.phy_addr[mac] = mac + 4 + 0x10; in gmac_controller2_init() 142 ndata0.phy_addr[0] = 0; in xls_gmac_init() 157 ndata0.phy_addr[mac] = mac + 0x10; in xls_gmac_init() 199 ndata0.phy_addr[mac] = mac; in xlr_gmac_init()
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_mdio.c | 132 if (hdev->hw.mac.phy_addr == PHY_INEXISTENT) { in hclge_mac_mdio_config() 136 } else if (hdev->hw.mac.phy_addr >= PHY_MAX_ADDR) { in hclge_mac_mdio_config() 138 hdev->hw.mac.phy_addr); in hclge_mac_mdio_config() 154 mdio_bus->phy_mask = ~(1 << mac->phy_addr); in hclge_mac_mdio_config() 162 phydev = mdiobus_get_phy(mdio_bus, mac->phy_addr); in hclge_mac_mdio_config()
|
/drivers/net/ethernet/qualcomm/emac/ |
D | emac-phy.c | 111 u32 phy_addr; in emac_phy_config() local 119 &phy_addr); in emac_phy_config() 126 adpt->phydev = mdiobus_get_phy(mii_bus, phy_addr); in emac_phy_config()
|
/drivers/i2c/busses/ |
D | i2c-at91.h | 158 int at91_twi_probe_master(struct platform_device *pdev, u32 phy_addr, 163 int at91_twi_probe_slave(struct platform_device *pdev, u32 phy_addr, 169 u32 phy_addr, struct at91_twi_dev *dev) in at91_twi_probe_slave() argument
|
D | i2c-stm32.c | 13 dma_addr_t phy_addr, in stm32_i2c_dma_request() argument 34 dma_sconfig.dst_addr = phy_addr + txdr_offset; in stm32_i2c_dma_request() 53 dma_sconfig.src_addr = phy_addr + rxdr_offset; in stm32_i2c_dma_request()
|
D | i2c-at91-core.c | 201 u32 phy_addr; in at91_twi_probe() local 212 phy_addr = mem->start; in at91_twi_probe() 247 rc = at91_twi_probe_slave(pdev, phy_addr, dev); in at91_twi_probe() 249 rc = at91_twi_probe_master(pdev, phy_addr, dev); in at91_twi_probe()
|
/drivers/net/ethernet/socionext/ |
D | netsec.c | 307 u32 phy_addr; member 465 static int netsec_phy_read(struct mii_bus *bus, int phy_addr, int reg_addr); 468 int phy_addr, int reg, u16 val) in netsec_phy_write() argument 476 phy_addr << NETSEC_GMAC_GAR_REG_SHIFT_PA | in netsec_phy_write() 493 netsec_phy_read(bus, phy_addr, MII_PHYSID1); in netsec_phy_write() 498 static int netsec_phy_read(struct mii_bus *bus, int phy_addr, int reg_addr) in netsec_phy_read() argument 505 phy_addr << NETSEC_GMAC_GAR_REG_SHIFT_PA | in netsec_phy_read() 1696 data = netsec_phy_read(priv->mii_bus, priv->phy_addr, MII_BMCR) | in netsec_netdev_init() 1698 netsec_phy_write(priv->mii_bus, priv->phy_addr, MII_BMCR, data); in netsec_netdev_init() 1829 struct netsec_priv *priv, u32 *phy_addr) in netsec_of_probe() argument [all …]
|