Home
last modified time | relevance | path

Searched refs:phyaddr (Results 1 – 25 of 31) sorted by relevance

12

/linux-6.12.1/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_mdio.c52 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()
80 int phyaddr, int phyreg, u16 phydata) in sxgbe_mdio_access_c22() argument
90 if (phyaddr >= 4) in sxgbe_mdio_access_c22()
93 sxgbe_mdio_c22(sp, cmd, phyaddr, phyreg, phydata); in sxgbe_mdio_access_c22()
99 int phyaddr, int devad, int phyreg, in sxgbe_mdio_access_c45() argument
109 sxgbe_mdio_c45(sp, cmd, phyaddr, devad, phyreg, phydata); in sxgbe_mdio_access_c45()
[all …]
/linux-6.12.1/drivers/net/ethernet/broadcom/
Dbgmac-bcma-mdio.c36 static u16 bcma_mdio_phy_read(struct bgmac *bgmac, u8 phyaddr, u8 reg) in bcma_mdio_phy_read() argument
67 tmp |= phyaddr; in bcma_mdio_phy_read()
71 tmp |= phyaddr << BGMAC_PA_ADDR_SHIFT; in bcma_mdio_phy_read()
78 phyaddr, reg); in bcma_mdio_phy_read()
86 static int bcma_mdio_phy_write(struct bgmac *bgmac, u8 phyaddr, u8 reg, in bcma_mdio_phy_write() argument
106 tmp |= phyaddr; in bcma_mdio_phy_write()
115 tmp |= phyaddr << BGMAC_PA_ADDR_SHIFT; in bcma_mdio_phy_write()
123 phyaddr, reg); in bcma_mdio_phy_write()
182 u8 phyaddr = bgmac->phyaddr; in bcma_mdio_phy_reset() local
184 if (phyaddr == BGMAC_PHY_NOREGS) in bcma_mdio_phy_reset()
[all …]
Dbgmac-bcma.c97 if (bgmac->mii_bus && bgmac->phyaddr != BGMAC_PHY_NOREGS) { in bcma_phy_connect()
99 bgmac->phyaddr); in bcma_phy_connect()
179 bgmac->phyaddr = sprom->et0phyaddr; in bgmac_probe()
182 bgmac->phyaddr = sprom->et1phyaddr; in bgmac_probe()
185 bgmac->phyaddr = sprom->et2phyaddr; in bgmac_probe()
188 bgmac->phyaddr &= BGMAC_PHY_MASK; in bgmac_probe()
189 if (bgmac->phyaddr == BGMAC_PHY_MASK) { in bgmac_probe()
194 dev_info(bgmac->dev, "Found PHY addr: %d%s\n", bgmac->phyaddr, in bgmac_probe()
195 bgmac->phyaddr == BGMAC_PHY_NOREGS ? " (NOREGS)" : ""); in bgmac_probe()
208 phydev = mdiobus_get_phy(bgmac->mii_bus, bgmac->phyaddr); in bgmac_probe()
Dsb1250-mac.c309 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()
Dbgmac.h481 u8 phyaddr; member
/linux-6.12.1/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_mdio.c48 static void 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()
62 static void stmmac_xgmac2_c22_format(struct stmmac_priv *priv, int phyaddr, in stmmac_xgmac2_c22_format() argument
75 tmp |= BIT(phyaddr); in stmmac_xgmac2_c22_format()
78 *hw_addr = (phyaddr << MII_XGMAC_PA_SHIFT) | (phyreg & 0x1f); in stmmac_xgmac2_c22_format()
131 static int stmmac_xgmac2_mdio_read_c22(struct mii_bus *bus, int phyaddr, in stmmac_xgmac2_mdio_read_c22() argument
142 phyaddr > MII_XGMAC_MAX_C22ADDR) in stmmac_xgmac2_mdio_read_c22()
145 stmmac_xgmac2_c22_format(priv, phyaddr, phyreg, &addr); in stmmac_xgmac2_mdio_read_c22()
150 static int stmmac_xgmac2_mdio_read_c45(struct mii_bus *bus, int phyaddr, in stmmac_xgmac2_mdio_read_c45() argument
[all …]
Ddwmac-intel.c61 static int serdes_status_poll(struct stmmac_priv *priv, int phyaddr, in serdes_status_poll() argument
68 val_rd = mdiobus_read(priv->mii, phyaddr, phyreg); in serdes_status_poll()
/linux-6.12.1/include/linux/
Dmbus.h60 int mvebu_mbus_get_io_win_info(phys_addr_t phyaddr, u32 *size, u8 *target,
71 static inline int mvebu_mbus_get_io_win_info(phys_addr_t phyaddr, u32 *size, in mvebu_mbus_get_io_win_info() argument
89 int mvebu_mbus_get_dram_win_info(phys_addr_t phyaddr, u8 *target, u8 *attr);
102 static inline int mvebu_mbus_get_dram_win_info(phys_addr_t phyaddr, u8 *target, in mvebu_mbus_get_dram_win_info() argument
/linux-6.12.1/drivers/net/ethernet/nvidia/
Dforcedeth.c768 int phyaddr; member
1185 if (mii_rw(dev, np->phyaddr, MII_BMCR, miicontrol)) in phy_reset()
1194 miicontrol = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); in phy_reset()
1219 if (mii_rw(dev, np->phyaddr, ri[i].reg, ri[i].init)) in init_realtek_8211b()
1241 reg = mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG6, MII_READ); in init_realtek_8211c()
1243 if (mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG6, reg)) in init_realtek_8211c()
1245 if (mii_rw(dev, np->phyaddr, in init_realtek_8211c()
1248 reg = mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG7, MII_READ); in init_realtek_8211c()
1251 if (mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG7, reg)) in init_realtek_8211c()
1254 if (mii_rw(dev, np->phyaddr, in init_realtek_8211c()
[all …]
/linux-6.12.1/drivers/net/ethernet/smsc/
Dsmc91x.c809 static int smc_phy_read(struct net_device *dev, int phyaddr, int phyreg) in smc_phy_read() argument
821 smc_mii_out(dev, 6 << 10 | phyaddr << 5 | phyreg, 14); in smc_phy_read()
830 __func__, phyaddr, phyreg, phydata); in smc_phy_read()
839 static void smc_phy_write(struct net_device *dev, int phyaddr, int phyreg, in smc_phy_write() argument
851 smc_mii_out(dev, 5 << 28 | phyaddr << 23 | phyreg << 18 | 2 << 16 | phydata, 32); in smc_phy_write()
857 __func__, phyaddr, phyreg, phydata); in smc_phy_write()
868 int phyaddr; in smc_phy_detect() local
878 for (phyaddr = 1; phyaddr < 33; ++phyaddr) { in smc_phy_detect()
882 id1 = smc_phy_read(dev, phyaddr & 31, MII_PHYSID1); in smc_phy_detect()
883 id2 = smc_phy_read(dev, phyaddr & 31, MII_PHYSID2); in smc_phy_detect()
[all …]
Dsmsc9420.c104 static int smsc9420_mii_read(struct mii_bus *bus, int phyaddr, int regidx) in smsc9420_mii_read() argument
120 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6) | in smsc9420_mii_read()
141 static int smsc9420_mii_write(struct mii_bus *bus, int phyaddr, int regidx, in smsc9420_mii_write() argument
161 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6) | in smsc9420_mii_write()
Dsmsc911x.c553 static int smsc911x_mii_read(struct mii_bus *bus, int phyaddr, int regidx) in smsc911x_mii_read() argument
571 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6); in smsc911x_mii_read()
591 static int smsc911x_mii_write(struct mii_bus *bus, int phyaddr, int regidx, in smsc911x_mii_write() argument
613 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6) | in smsc911x_mii_write()
/linux-6.12.1/drivers/input/rmi4/
Drmi_f34v7.c370 struct physical_address *phyaddr) in rmi_f34v7_parse_partition_table() argument
389 phyaddr->ui_firmware = physical_address; in rmi_f34v7_parse_partition_table()
396 phyaddr->ui_config = physical_address; in rmi_f34v7_parse_partition_table()
403 phyaddr->dp_config = physical_address; in rmi_f34v7_parse_partition_table()
416 phyaddr->guest_code = physical_address; in rmi_f34v7_parse_partition_table()
584 &f34->v7.blkcount, &f34->v7.phyaddr); in rmi_f34v7_read_queries()
1022 &f34->v7.img.blkcount, &f34->v7.img.phyaddr); in rmi_f34v7_parse_image_info()
1177 memset(&f34->v7.phyaddr, 0x00, sizeof(f34->v7.phyaddr)); in rmi_f34v7_probe()
Drmi_f34.h222 struct physical_address phyaddr; member
266 struct physical_address phyaddr; member
/linux-6.12.1/drivers/bus/
Dmvebu-mbus.c931 int mvebu_mbus_get_dram_win_info(phys_addr_t phyaddr, u8 *target, u8 *attr) in mvebu_mbus_get_dram_win_info() argument
947 if (cs->base <= phyaddr && in mvebu_mbus_get_dram_win_info()
948 phyaddr <= (cs->base + cs->size - 1)) { in mvebu_mbus_get_dram_win_info()
955 pr_err("invalid dram address %pa\n", &phyaddr); in mvebu_mbus_get_dram_win_info()
960 int mvebu_mbus_get_io_win_info(phys_addr_t phyaddr, u32 *size, u8 *target, in mvebu_mbus_get_io_win_info() argument
975 if (wbase <= phyaddr && phyaddr <= wbase + *size) in mvebu_mbus_get_io_win_info()
/linux-6.12.1/arch/sh/drivers/pci/
Dpcie-sh7786.c185 unsigned long phyaddr; in phy_write_reg() local
187 phyaddr = (1 << BITS_CMD) + ((lane & 0xf) << BITS_LANE) + in phy_write_reg()
192 pci_write_reg(chan, phyaddr, SH4A_PCIEPHYADRR); in phy_write_reg()
/linux-6.12.1/drivers/acpi/
Dacpi_extlog.c69 #define ELOG_ENTRY_ADDR(phyaddr) \ argument
70 (phyaddr - elog_base + (u8 *)elog_addr)
/linux-6.12.1/Documentation/devicetree/bindings/timer/
Dcsky,gx6605s-timer.txt23 Definition: <phyaddr size> in soc from cpu view
/linux-6.12.1/drivers/net/ethernet/xircom/
Dxirc2ps_cs.c258 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()
/linux-6.12.1/drivers/net/ethernet/aeroflex/
Dgreth.h134 u8 phyaddr; member
/linux-6.12.1/Documentation/devicetree/bindings/interrupt-controller/
Dcsky,apb-intc.txt33 Definition: <phyaddr size> in soc from cpu view
/linux-6.12.1/drivers/scsi/lpfc/
Dlpfc_mbox.c1738 dma_addr_t phyaddr, uint32_t length) in lpfc_sli4_mbx_sge_set() argument
1744 nembed_sge->sge[sgentry].pa_lo = putPaddrLow(phyaddr); in lpfc_sli4_mbx_sge_set()
1745 nembed_sge->sge[sgentry].pa_hi = putPaddrHigh(phyaddr); in lpfc_sli4_mbx_sge_set()
1785 dma_addr_t phyaddr; in lpfc_sli4_mbox_cmd_free() local
1806 phyaddr = getPaddr(sge.pa_hi, sge.pa_lo); in lpfc_sli4_mbox_cmd_free()
1808 mbox->sge_array->addr[sgentry], phyaddr); in lpfc_sli4_mbox_cmd_free()
1843 dma_addr_t phyaddr; in lpfc_sli4_config() local
1887 SLI4_PAGE_SIZE, &phyaddr, in lpfc_sli4_config()
1898 lpfc_sli4_mbx_sge_set(mbox, pagen, phyaddr, in lpfc_sli4_config()
1902 lpfc_sli4_mbx_sge_set(mbox, pagen, phyaddr, in lpfc_sli4_config()
/linux-6.12.1/arch/arm64/boot/dts/airoha/
Den7581.dtsi31 npu-phyaddr@86b00000 {
/linux-6.12.1/drivers/usb/gadget/udc/
Dmv_u3d.h189 u32 phyaddr; /* PHY address register */ member
/linux-6.12.1/drivers/pci/controller/
Dpcie-rcar-host.c414 u32 phyaddr; in phy_write_reg() local
416 phyaddr = WRITE_CMD | in phy_write_reg()
423 rcar_pci_write_reg(pcie, phyaddr, H1_PCIEPHYADRR); in phy_write_reg()

12