Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/net/
Dsmc911x.c636 static int smc911x_phy_read(struct net_device *dev, int phyaddr, int phyreg) in smc911x_phy_read() argument
641 SMC_GET_MII(lp, phyreg, phyaddr, phydata); in smc911x_phy_read()
644 __func__, phyaddr, phyreg, phydata); in smc911x_phy_read()
652 static void smc911x_phy_write(struct net_device *dev, int phyaddr, int phyreg, in smc911x_phy_write() argument
658 __func__, phyaddr, phyreg, phydata); in smc911x_phy_write()
660 SMC_SET_MII(lp, phyreg, phyaddr, phydata); in smc911x_phy_write()
670 int phyaddr; in smc911x_phy_detect() local
705 for (phyaddr = 1; phyaddr < 32; ++phyaddr) { in smc911x_phy_detect()
708 SMC_GET_PHY_ID1(lp, phyaddr & 31, id1); in smc911x_phy_detect()
709 SMC_GET_PHY_ID2(lp, phyaddr & 31, id2); in smc911x_phy_detect()
[all …]
Dforcedeth.c755 int phyaddr; member
1159 if (mii_rw(dev, np->phyaddr, MII_BMCR, miicontrol)) in phy_reset()
1168 miicontrol = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); in phy_reset()
1193 if (mii_rw(dev, np->phyaddr, ri[i].reg, ri[i].init)) in init_realtek_8211b()
1215 reg = mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG6, MII_READ); in init_realtek_8211c()
1217 if (mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG6, reg)) in init_realtek_8211c()
1219 if (mii_rw(dev, np->phyaddr, in init_realtek_8211c()
1222 reg = mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG7, MII_READ); in init_realtek_8211c()
1225 if (mii_rw(dev, np->phyaddr, PHY_REALTEK_INIT_REG7, reg)) in init_realtek_8211c()
1228 if (mii_rw(dev, np->phyaddr, in init_realtek_8211c()
[all …]
Dsmc91x.c815 static int smc_phy_read(struct net_device *dev, int phyaddr, int phyreg) in smc_phy_read() argument
827 smc_mii_out(dev, 6 << 10 | phyaddr << 5 | phyreg, 14); in smc_phy_read()
836 __func__, phyaddr, phyreg, phydata); in smc_phy_read()
845 static void smc_phy_write(struct net_device *dev, int phyaddr, int phyreg, in smc_phy_write() argument
857 smc_mii_out(dev, 5 << 28 | phyaddr << 23 | phyreg << 18 | 2 << 16 | phydata, 32); in smc_phy_write()
863 __func__, phyaddr, phyreg, phydata); in smc_phy_write()
874 int phyaddr; in smc_phy_detect() local
884 for (phyaddr = 1; phyaddr < 33; ++phyaddr) { in smc_phy_detect()
888 id1 = smc_phy_read(dev, phyaddr & 31, MII_PHYSID1); in smc_phy_detect()
889 id2 = smc_phy_read(dev, phyaddr & 31, MII_PHYSID2); in smc_phy_detect()
[all …]
Dipg.c447 unsigned int phyaddr, i; in ipg_find_phyaddr() local
453 phyaddr = (IPG_NIC_PHY_ADDRESS + i) % 32; in ipg_find_phyaddr()
459 status = mdio_read(dev, phyaddr, MII_BMSR); in ipg_find_phyaddr()
462 return phyaddr; in ipg_find_phyaddr()
2016 int phyaddr; in ipg_init_mii() local
2024 mii_if->phy_id = phyaddr = ipg_find_phyaddr(dev); in ipg_init_mii()
2026 if (phyaddr != 0x1f) { in ipg_init_mii()
2029 mii_1000cr = mdio_read(dev, phyaddr, MII_CTRL1000); in ipg_init_mii()
2032 mdio_write(dev, phyaddr, MII_CTRL1000, mii_1000cr); in ipg_init_mii()
2034 mii_phyctrl = mdio_read(dev, phyaddr, MII_BMCR); in ipg_init_mii()
[all …]
Dgreth.h138 u8 phyaddr; member
Dsb1250-mac.c325 static int sbmac_mii_read(struct mii_bus *bus, int phyaddr, int regidx);
326 static int sbmac_mii_write(struct mii_bus *bus, int phyaddr, int regidx,
437 static int sbmac_mii_read(struct mii_bus *bus, int phyaddr, int regidx) in sbmac_mii_read() argument
461 sbmac_mii_senddata(sbm_mdio, phyaddr, 5); in sbmac_mii_read()
530 static int sbmac_mii_write(struct mii_bus *bus, int phyaddr, int regidx, in sbmac_mii_write() argument
541 sbmac_mii_senddata(sbm_mdio, phyaddr, 5); in sbmac_mii_write()
Dbfin_mac.c1686 unsigned short phyaddr = mii_bus_pd->phydev_data[i].addr; in bfin_mii_bus_probe() local
1687 if (phyaddr < PHY_MAX_ADDR) in bfin_mii_bus_probe()
1688 miibus->irq[phyaddr] = mii_bus_pd->phydev_data[i].irq; in bfin_mii_bus_probe()
1692 phyaddr, i); in bfin_mii_bus_probe()
Dsmsc9420.c130 static int smsc9420_mii_read(struct mii_bus *bus, int phyaddr, int regidx) in smsc9420_mii_read() argument
146 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6) | in smsc9420_mii_read()
167 static int smsc9420_mii_write(struct mii_bus *bus, int phyaddr, int regidx, in smsc9420_mii_write() argument
187 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6) | in smsc9420_mii_write()
Dsmsc911x.c318 static int smsc911x_mii_read(struct mii_bus *bus, int phyaddr, int regidx) in smsc911x_mii_read() argument
336 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6); in smsc911x_mii_read()
355 static int smsc911x_mii_write(struct mii_bus *bus, int phyaddr, int regidx, in smsc911x_mii_write() argument
377 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6) | in smsc911x_mii_write()
Dgreth.c1476 greth->phyaddr = (GRETH_REGLOAD(regs->mdio) >> 11) & 0x1F; in greth_of_probe()
/linux-2.6.39/drivers/net/stmmac/
Dstmmac_mdio.c46 static int stmmac_mdio_read(struct mii_bus *bus, int phyaddr, int phyreg) in stmmac_mdio_read() argument
54 u16 regValue = (((phyaddr << 11) & (0x0000F800)) | in stmmac_mdio_read()
76 static int stmmac_mdio_write(struct mii_bus *bus, int phyaddr, int phyreg, in stmmac_mdio_write() argument
85 (((phyaddr << 11) & (0x0000F800)) | ((phyreg << 6) & (0x000007C0))) in stmmac_mdio_write()
Dstmmac_main.c92 static int phyaddr = -1; variable
93 module_param(phyaddr, int, S_IRUGO);
94 MODULE_PARM_DESC(phyaddr, "Physical device address");
1631 if ((phyaddr >= 0) && (phyaddr <= 31)) in stmmac_associate_phy()
1632 plat_dat->phy_addr = phyaddr; in stmmac_associate_phy()
1970 strict_strtoul(opt + 8, 0, (unsigned long *)&phyaddr); in stmmac_cmdline_opt()
/linux-2.6.39/arch/sh/drivers/pci/
Dpcie-sh7786.c183 unsigned long phyaddr; in phy_write_reg() local
185 phyaddr = (1 << BITS_CMD) + ((lane & 0xf) << BITS_LANE) + in phy_write_reg()
190 pci_write_reg(chan, phyaddr, SH4A_PCIEPHYADRR); in phy_write_reg()
/linux-2.6.39/drivers/scsi/lpfc/
Dlpfc_mbox.c1615 dma_addr_t phyaddr, uint32_t length) in lpfc_sli4_mbx_sge_set() argument
1621 nembed_sge->sge[sgentry].pa_lo = putPaddrLow(phyaddr); in lpfc_sli4_mbx_sge_set()
1622 nembed_sge->sge[sgentry].pa_hi = putPaddrHigh(phyaddr); in lpfc_sli4_mbx_sge_set()
1659 dma_addr_t phyaddr; in lpfc_sli4_mbox_cmd_free() local
1680 phyaddr = getPaddr(sge.pa_hi, sge.pa_lo); in lpfc_sli4_mbox_cmd_free()
1682 mbox->sge_array->addr[sgentry], phyaddr); in lpfc_sli4_mbox_cmd_free()
1714 dma_addr_t phyaddr; in lpfc_sli4_config() local
1758 &phyaddr, GFP_KERNEL); in lpfc_sli4_config()
1769 lpfc_sli4_mbx_sge_set(mbox, pagen, phyaddr, in lpfc_sli4_config()
1773 lpfc_sli4_mbx_sge_set(mbox, pagen, phyaddr, in lpfc_sli4_config()
/linux-2.6.39/drivers/net/pcmcia/
Dxirc2ps_cs.c260 static unsigned mii_rd(unsigned int ioaddr, u_char phyaddr, u_char phyreg);
261 static void mii_wr(unsigned int ioaddr, u_char phyaddr, u_char phyreg,
422 mii_rd(unsigned int ioaddr, u_char phyaddr, u_char phyreg) in mii_rd() argument
431 mii_wbits(ioaddr, phyaddr, 5); /* PHY address to be accessed */ in mii_rd()
444 mii_wr(unsigned int ioaddr, u_char phyaddr, u_char phyreg, unsigned data, in mii_wr() argument
453 mii_wbits(ioaddr, phyaddr, 5); /* PHY address to be accessed */ in mii_wr()
/linux-2.6.39/drivers/net/tulip/
Dde4x5.c970 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);
4826 mii_rd(u_char phyreg, u_char phyaddr, u_long ioaddr) in mii_rd() argument
4831 mii_address(phyaddr, ioaddr); /* PHY address to be accessed */ in mii_rd()
4839 mii_wr(int data, u_char phyreg, u_char phyaddr, u_long ioaddr) in mii_wr() argument
4844 mii_address(phyaddr, ioaddr); /* PHY address to be accessed */ in mii_wr()
4940 mii_get_oui(u_char phyaddr, u_long ioaddr) in mii_get_oui() argument
4951 r2 = mii_rd(MII_ID0, phyaddr, ioaddr); in mii_get_oui()
4952 r3 = mii_rd(MII_ID1, phyaddr, ioaddr); in mii_get_oui()
/linux-2.6.39/drivers/dma/ipu/
Dipu_idmac.c754 int buffer_n, dma_addr_t phyaddr) in ipu_update_channel_buffer() argument
772 idmac_write_ipureg(&ipu_data, phyaddr, IPU_IMA_DATA); in ipu_update_channel_buffer()
790 idmac_write_ipureg(&ipu_data, phyaddr, IPU_IMA_DATA); in ipu_update_channel_buffer()
/linux-2.6.39/Documentation/networking/
Dstmmac.txt25 phyaddr: to manually provide the physical address to the PHY device;
/linux-2.6.39/arch/microblaze/platform/generic/
Dsystem.dts233 xlnx,phyaddr = <0x1>;
/linux-2.6.39/arch/powerpc/boot/dts/
Dvirtex440-ml507.dts269 xlnx,phyaddr = <1>;
Dvirtex440-ml510.dts240 xlnx,phyaddr = <0x1>;
/linux-2.6.39/arch/microblaze/boot/dts/
Dsystem.dts233 xlnx,phyaddr = <0x1>;