/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_mdio.c | 52 static void sxgbe_mdio_c45(struct sxgbe_priv_data *sp, u32 cmd, int phyaddr, in sxgbe_mdio_c45() argument 59 reg |= (phyaddr << 16) | (phyreg & 0xffff); in sxgbe_mdio_c45() 65 static void sxgbe_mdio_c22(struct sxgbe_priv_data *sp, u32 cmd, int phyaddr, in sxgbe_mdio_c22() argument 70 writel(1 << phyaddr, sp->ioaddr + SXGBE_MDIO_CLAUSE22_PORT_REG); in sxgbe_mdio_c22() 73 reg = (phyaddr << 16) | (phyreg & 0x1f); in sxgbe_mdio_c22() 79 static int sxgbe_mdio_access(struct sxgbe_priv_data *sp, u32 cmd, int phyaddr, in sxgbe_mdio_access() argument 90 sxgbe_mdio_c45(sp, cmd, phyaddr, phyreg, phydata); in sxgbe_mdio_access() 93 if (phyaddr >= 4) in sxgbe_mdio_access() 96 sxgbe_mdio_c22(sp, cmd, phyaddr, phyreg, phydata); in sxgbe_mdio_access() 109 static int sxgbe_mdio_read(struct mii_bus *bus, int phyaddr, int phyreg) in sxgbe_mdio_read() argument [all …]
|
/drivers/net/ethernet/broadcom/ |
D | bgmac-bcma-mdio.c | 35 static u16 bcma_mdio_phy_read(struct bgmac *bgmac, u8 phyaddr, u8 reg) in bcma_mdio_phy_read() argument 66 tmp |= phyaddr; in bcma_mdio_phy_read() 70 tmp |= phyaddr << BGMAC_PA_ADDR_SHIFT; in bcma_mdio_phy_read() 77 phyaddr, reg); in bcma_mdio_phy_read() 85 static int bcma_mdio_phy_write(struct bgmac *bgmac, u8 phyaddr, u8 reg, in bcma_mdio_phy_write() argument 105 tmp |= phyaddr; in bcma_mdio_phy_write() 114 tmp |= phyaddr << BGMAC_PA_ADDR_SHIFT; in bcma_mdio_phy_write() 122 phyaddr, reg); in bcma_mdio_phy_write() 181 u8 phyaddr = bgmac->phyaddr; in bcma_mdio_phy_reset() local 183 if (phyaddr == BGMAC_PHY_NOREGS) in bcma_mdio_phy_reset() [all …]
|
D | bgmac-bcma.c | 91 bgmac->phyaddr); in bcma_phy_connect() 167 bgmac->phyaddr = sprom->et0phyaddr; in bgmac_probe() 170 bgmac->phyaddr = sprom->et1phyaddr; in bgmac_probe() 173 bgmac->phyaddr = sprom->et2phyaddr; in bgmac_probe() 176 bgmac->phyaddr &= BGMAC_PHY_MASK; in bgmac_probe() 177 if (bgmac->phyaddr == BGMAC_PHY_MASK) { in bgmac_probe() 182 dev_info(bgmac->dev, "Found PHY addr: %d%s\n", bgmac->phyaddr, in bgmac_probe() 183 bgmac->phyaddr == BGMAC_PHY_NOREGS ? " (NOREGS)" : ""); in bgmac_probe() 196 phydev = mdiobus_get_phy(bgmac->mii_bus, bgmac->phyaddr); in bgmac_probe()
|
D | sb1250-mac.c | 309 static int sbmac_mii_read(struct mii_bus *bus, int phyaddr, int regidx); 310 static int sbmac_mii_write(struct mii_bus *bus, int phyaddr, int regidx, 421 static int sbmac_mii_read(struct mii_bus *bus, int phyaddr, int regidx) in sbmac_mii_read() argument 445 sbmac_mii_senddata(sbm_mdio, phyaddr, 5); in sbmac_mii_read() 514 static int sbmac_mii_write(struct mii_bus *bus, int phyaddr, int regidx, in sbmac_mii_write() argument 525 sbmac_mii_senddata(sbm_mdio, phyaddr, 5); in sbmac_mii_write()
|
D | bgmac.h | 521 u8 phyaddr; member
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_mdio.c | 48 static int stmmac_xgmac2_c45_format(struct stmmac_priv *priv, int phyaddr, in stmmac_xgmac2_c45_format() argument 55 tmp &= ~BIT(phyaddr); in stmmac_xgmac2_c45_format() 58 *hw_addr = (phyaddr << MII_XGMAC_PA_SHIFT) | (phyreg & 0xffff); in stmmac_xgmac2_c45_format() 63 static int stmmac_xgmac2_c22_format(struct stmmac_priv *priv, int phyaddr, in stmmac_xgmac2_c22_format() argument 69 if (phyaddr > MII_XGMAC_MAX_C22ADDR) in stmmac_xgmac2_c22_format() 75 tmp |= BIT(phyaddr); in stmmac_xgmac2_c22_format() 78 *hw_addr = (phyaddr << MII_XGMAC_PA_SHIFT) | (phyreg & 0x1f); in stmmac_xgmac2_c22_format() 82 static int stmmac_xgmac2_mdio_read(struct mii_bus *bus, int phyaddr, int phyreg) in stmmac_xgmac2_mdio_read() argument 107 ret = stmmac_xgmac2_c45_format(priv, phyaddr, phyreg, &addr); in stmmac_xgmac2_mdio_read() 111 ret = stmmac_xgmac2_c22_format(priv, phyaddr, phyreg, &addr); in stmmac_xgmac2_mdio_read() [all …]
|
D | dwmac-intel.c | 58 static int serdes_status_poll(struct stmmac_priv *priv, int phyaddr, in serdes_status_poll() argument 65 val_rd = mdiobus_read(priv->mii, phyaddr, phyreg); in serdes_status_poll()
|
D | stmmac_main.c | 70 static int phyaddr = -1; variable 71 module_param(phyaddr, int, 0444); 72 MODULE_PARM_DESC(phyaddr, "Physical device address"); 5039 if ((phyaddr >= 0) && (phyaddr <= 31)) in stmmac_dvr_probe() 5040 priv->plat->phy_addr = phyaddr; in stmmac_dvr_probe() 5449 if (kstrtoint(opt + 8, 0, &phyaddr)) in stmmac_cmdline_opt()
|
/drivers/net/ethernet/nvidia/ |
D | forcedeth.c | 768 int phyaddr; member 1186 if (mii_rw(dev, np->phyaddr, MII_BMCR, miicontrol)) in phy_reset() 1195 miicontrol = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); in phy_reset() 1220 if (mii_rw(dev, np->phyaddr, ri[i].reg, ri[i].init)) in init_realtek_8211b() 1242 reg = mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG6, MII_READ); in init_realtek_8211c() 1244 if (mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG6, reg)) in init_realtek_8211c() 1246 if (mii_rw(dev, np->phyaddr, in init_realtek_8211c() 1249 reg = mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG7, MII_READ); in init_realtek_8211c() 1252 if (mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG7, reg)) in init_realtek_8211c() 1255 if (mii_rw(dev, np->phyaddr, in init_realtek_8211c() [all …]
|
/drivers/net/ethernet/smsc/ |
D | smc911x.c | 626 static int smc911x_phy_read(struct net_device *dev, int phyaddr, int phyreg) in smc911x_phy_read() argument 631 SMC_GET_MII(lp, phyreg, phyaddr, phydata); in smc911x_phy_read() 634 __func__, phyaddr, phyreg, phydata); in smc911x_phy_read() 642 static void smc911x_phy_write(struct net_device *dev, int phyaddr, int phyreg, in smc911x_phy_write() argument 648 __func__, phyaddr, phyreg, phydata); in smc911x_phy_write() 650 SMC_SET_MII(lp, phyreg, phyaddr, phydata); in smc911x_phy_write() 660 int phyaddr; in smc911x_phy_detect() local 695 for (phyaddr = 1; phyaddr < 32; ++phyaddr) { in smc911x_phy_detect() 698 SMC_GET_PHY_ID1(lp, phyaddr & 31, id1); in smc911x_phy_detect() 699 SMC_GET_PHY_ID2(lp, phyaddr & 31, id2); in smc911x_phy_detect() [all …]
|
D | smc91x.c | 807 static int smc_phy_read(struct net_device *dev, int phyaddr, int phyreg) in smc_phy_read() argument 819 smc_mii_out(dev, 6 << 10 | phyaddr << 5 | phyreg, 14); in smc_phy_read() 828 __func__, phyaddr, phyreg, phydata); in smc_phy_read() 837 static void smc_phy_write(struct net_device *dev, int phyaddr, int phyreg, in smc_phy_write() argument 849 smc_mii_out(dev, 5 << 28 | phyaddr << 23 | phyreg << 18 | 2 << 16 | phydata, 32); in smc_phy_write() 855 __func__, phyaddr, phyreg, phydata); in smc_phy_write() 866 int phyaddr; in smc_phy_detect() local 876 for (phyaddr = 1; phyaddr < 33; ++phyaddr) { in smc_phy_detect() 880 id1 = smc_phy_read(dev, phyaddr & 31, MII_PHYSID1); in smc_phy_detect() 881 id2 = smc_phy_read(dev, phyaddr & 31, MII_PHYSID2); in smc_phy_detect() [all …]
|
D | smsc9420.c | 103 static int smsc9420_mii_read(struct mii_bus *bus, int phyaddr, int regidx) in smsc9420_mii_read() argument 119 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6) | in smsc9420_mii_read() 140 static int smsc9420_mii_write(struct mii_bus *bus, int phyaddr, int regidx, in smsc9420_mii_write() argument 160 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6) | in smsc9420_mii_write()
|
D | smsc911x.c | 553 static int smsc911x_mii_read(struct mii_bus *bus, int phyaddr, int regidx) in smsc911x_mii_read() argument 570 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6); in smsc911x_mii_read() 589 static int smsc911x_mii_write(struct mii_bus *bus, int phyaddr, int regidx, in smsc911x_mii_write() argument 610 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6) | in smsc911x_mii_write()
|
/drivers/input/rmi4/ |
D | rmi_f34v7.c | 348 struct physical_address *phyaddr) in rmi_f34v7_parse_partition_table() argument 367 phyaddr->ui_firmware = physical_address; in rmi_f34v7_parse_partition_table() 374 phyaddr->ui_config = physical_address; in rmi_f34v7_parse_partition_table() 381 phyaddr->dp_config = physical_address; in rmi_f34v7_parse_partition_table() 394 phyaddr->guest_code = physical_address; in rmi_f34v7_parse_partition_table() 569 &f34->v7.blkcount, &f34->v7.phyaddr); in rmi_f34v7_read_queries() 1012 if (f34->v7.phyaddr.ui_firmware != f34->v7.img.phyaddr.ui_firmware) { in rmi_f34v7_compare_partition_tables() 1017 if (f34->v7.phyaddr.ui_config != f34->v7.img.phyaddr.ui_config) { in rmi_f34v7_compare_partition_tables() 1023 f34->v7.phyaddr.dp_config != f34->v7.img.phyaddr.dp_config) { in rmi_f34v7_compare_partition_tables() 1029 f34->v7.phyaddr.guest_code != f34->v7.img.phyaddr.guest_code) { in rmi_f34v7_compare_partition_tables() [all …]
|
D | rmi_f34.h | 222 struct physical_address phyaddr; member 283 struct physical_address phyaddr; member
|
/drivers/bus/ |
D | mvebu-mbus.c | 951 int mvebu_mbus_get_dram_win_info(phys_addr_t phyaddr, u8 *target, u8 *attr) in mvebu_mbus_get_dram_win_info() argument 967 if (cs->base <= phyaddr && in mvebu_mbus_get_dram_win_info() 968 phyaddr <= (cs->base + cs->size - 1)) { in mvebu_mbus_get_dram_win_info() 975 pr_err("invalid dram address %pa\n", &phyaddr); in mvebu_mbus_get_dram_win_info() 980 int mvebu_mbus_get_io_win_info(phys_addr_t phyaddr, u32 *size, u8 *target, in mvebu_mbus_get_io_win_info() argument 995 if (wbase <= phyaddr && phyaddr <= wbase + *size) in mvebu_mbus_get_io_win_info()
|
/drivers/acpi/ |
D | acpi_extlog.c | 69 #define ELOG_ENTRY_ADDR(phyaddr) \ argument 70 (phyaddr - elog_base + (u8 *)elog_addr)
|
/drivers/net/ethernet/xircom/ |
D | xirc2ps_cs.c | 258 static unsigned mii_rd(unsigned int ioaddr, u_char phyaddr, u_char phyreg); 259 static void mii_wr(unsigned int ioaddr, u_char phyaddr, u_char phyreg, 420 mii_rd(unsigned int ioaddr, u_char phyaddr, u_char phyreg) in mii_rd() argument 429 mii_wbits(ioaddr, phyaddr, 5); /* PHY address to be accessed */ in mii_rd() 442 mii_wr(unsigned int ioaddr, u_char phyaddr, u_char phyreg, unsigned data, in mii_wr() argument 451 mii_wbits(ioaddr, phyaddr, 5); /* PHY address to be accessed */ in mii_wr()
|
/drivers/scsi/lpfc/ |
D | lpfc_mbox.c | 1686 dma_addr_t phyaddr, uint32_t length) in lpfc_sli4_mbx_sge_set() argument 1692 nembed_sge->sge[sgentry].pa_lo = putPaddrLow(phyaddr); in lpfc_sli4_mbx_sge_set() 1693 nembed_sge->sge[sgentry].pa_hi = putPaddrHigh(phyaddr); in lpfc_sli4_mbx_sge_set() 1731 dma_addr_t phyaddr; in lpfc_sli4_mbox_cmd_free() local 1752 phyaddr = getPaddr(sge.pa_hi, sge.pa_lo); in lpfc_sli4_mbox_cmd_free() 1754 mbox->sge_array->addr[sgentry], phyaddr); in lpfc_sli4_mbox_cmd_free() 1787 dma_addr_t phyaddr; in lpfc_sli4_config() local 1831 SLI4_PAGE_SIZE, &phyaddr, in lpfc_sli4_config() 1842 lpfc_sli4_mbx_sge_set(mbox, pagen, phyaddr, in lpfc_sli4_config() 1846 lpfc_sli4_mbx_sge_set(mbox, pagen, phyaddr, in lpfc_sli4_config()
|
/drivers/net/ethernet/aeroflex/ |
D | greth.h | 134 u8 phyaddr; member
|
/drivers/pci/controller/ |
D | pcie-rcar-host.c | 324 u32 phyaddr; in phy_write_reg() local 326 phyaddr = WRITE_CMD | in phy_write_reg() 333 rcar_pci_write_reg(pcie, phyaddr, H1_PCIEPHYADRR); in phy_write_reg()
|
/drivers/usb/gadget/udc/ |
D | mv_u3d.h | 189 u32 phyaddr; /* PHY address register */ member
|
/drivers/net/ethernet/dec/tulip/ |
D | de4x5.c | 970 static int mii_rd(u_char phyreg, u_char phyaddr, u_long ioaddr); 971 static void mii_wr(int data, u_char phyreg, u_char phyaddr, u_long ioaddr); 979 static int mii_get_oui(u_char phyaddr, u_long ioaddr); 4810 mii_rd(u_char phyreg, u_char phyaddr, u_long ioaddr) in mii_rd() argument 4815 mii_address(phyaddr, ioaddr); /* PHY address to be accessed */ in mii_rd() 4823 mii_wr(int data, u_char phyreg, u_char phyaddr, u_long ioaddr) in mii_wr() argument 4828 mii_address(phyaddr, ioaddr); /* PHY address to be accessed */ in mii_wr() 4924 mii_get_oui(u_char phyaddr, u_long ioaddr) in mii_get_oui() argument 4935 r2 = mii_rd(MII_ID0, phyaddr, ioaddr); in mii_get_oui() 4936 mii_rd(MII_ID1, phyaddr, ioaddr); in mii_get_oui()
|
/drivers/dma/ipu/ |
D | ipu_idmac.c | 730 int buffer_n, dma_addr_t phyaddr) in ipu_update_channel_buffer() argument 748 idmac_write_ipureg(&ipu_data, phyaddr, IPU_IMA_DATA); in ipu_update_channel_buffer() 766 idmac_write_ipureg(&ipu_data, phyaddr, IPU_IMA_DATA); in ipu_update_channel_buffer()
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_pf.c | 1529 u32 phyaddr = (u32)(dma_mask >> 32); in fm10k_set_dma_mask_pf() local 1531 fm10k_write_reg(hw, FM10K_PHYADDR, phyaddr); in fm10k_set_dma_mask_pf()
|