Home
last modified time | relevance | path

Searched refs:phy_reg (Results 1 – 10 of 10) sorted by relevance

/u-boot/drivers/net/phy/
A Dcortina.c362 int phy_reg; in get_phy_id() local
366 if (phy_reg < 0) in get_phy_id()
368 *phy_id = (phy_reg & 0xffff) << 16; in get_phy_id()
371 if (phy_reg < 0) in get_phy_id()
373 *phy_id |= (phy_reg & 0xffff); in get_phy_id()
382 phy_reg = bus->read(bus, addr, devad, MII_PHYSID1); in get_phy_id()
383 if (phy_reg < 0) in get_phy_id()
385 *phy_id = (phy_reg & 0xffff) << 16; in get_phy_id()
387 phy_reg = bus->read(bus, addr, devad, MII_PHYSID2); in get_phy_id()
388 if (phy_reg < 0) in get_phy_id()
[all …]
A Dphy.c716 int phy_reg; in get_phy_id() local
722 phy_reg = bus->read(bus, addr, devad, MII_PHYSID1); in get_phy_id()
724 if (phy_reg < 0) in get_phy_id()
727 *phy_id = (phy_reg & 0xffff) << 16; in get_phy_id()
730 phy_reg = bus->read(bus, addr, devad, MII_PHYSID2); in get_phy_id()
732 if (phy_reg < 0) in get_phy_id()
735 *phy_id |= (phy_reg & 0xffff); in get_phy_id()
/u-boot/drivers/net/ti/
A Dcpsw_mdio.c76 int dev_addr, int phy_reg) in cpsw_mdio_read() argument
82 if (phy_reg & ~PHY_REG_MASK || phy_id & ~PHY_ID_MASK) in cpsw_mdio_read()
89 (phy_reg << USERACCESS_PHY_REG_SHIFT) | in cpsw_mdio_read()
102 int phy_reg, u16 data) in cpsw_mdio_write() argument
108 if (phy_reg & ~PHY_REG_MASK || phy_id & ~PHY_ID_MASK) in cpsw_mdio_write()
115 (phy_reg << USERACCESS_PHY_REG_SHIFT) | in cpsw_mdio_write()
/u-boot/board/freescale/lx2160a/
A Deth_lx2160ardb.c29 int phy_reg; in get_inphi_phy_id() local
32 phy_reg = bus->read(bus, addr, devad, MII_PHYSID1); in get_inphi_phy_id()
33 phy_id = (phy_reg & 0xffff) << 16; in get_inphi_phy_id()
35 phy_reg = bus->read(bus, addr, devad, MII_PHYSID2); in get_inphi_phy_id()
36 phy_id |= (phy_reg & 0xffff); in get_inphi_phy_id()
/u-boot/drivers/usb/host/
A Dehci-mx6.c80 void __iomem *phy_reg; in usb_internal_phy_clock_gate() local
85 phy_reg = (void __iomem *)phy_bases[index]; in usb_internal_phy_clock_gate()
86 phy_reg += on ? USBPHY_CTRL_CLR : USBPHY_CTRL_SET; in usb_internal_phy_clock_gate()
87 writel(USBPHY_CTRL_CLKGATE, phy_reg); in usb_internal_phy_clock_gate()
152 void __iomem *phy_reg; in usb_phy_enable() local
160 phy_reg = (void __iomem *)phy_bases[index]; in usb_phy_enable()
161 phy_ctrl = (void __iomem *)(phy_reg + USBPHY_CTRL); in usb_phy_enable()
184 writel(0, phy_reg + USBPHY_PWD); in usb_phy_enable()
194 void __iomem *phy_reg; in usb_phy_mode() local
198 phy_reg = (void __iomem *)phy_bases[port]; in usb_phy_mode()
[all …]
A Dehci-vf.c55 void __iomem *phy_reg; in usb_internal_phy_clock_gate() local
57 phy_reg = (void __iomem *)phy_bases[index]; in usb_internal_phy_clock_gate()
58 clrbits_le32(phy_reg + USBPHY_CTRL, USBPHY_CTRL_CLKGATE); in usb_internal_phy_clock_gate()
89 void __iomem *phy_reg; in usb_phy_enable() local
93 phy_reg = (void __iomem *)phy_bases[index]; in usb_phy_enable()
94 phy_ctrl = (void __iomem *)(phy_reg + USBPHY_CTRL); in usb_phy_enable()
115 writel(0, phy_reg + USBPHY_PWD); in usb_phy_enable()
/u-boot/drivers/net/
A Darmada100_fec.c62 int phy_reg) in smi_reg_read() argument
70 if (phy_addr == PHY_ADR_REQ && phy_reg == PHY_ADR_REQ) { in smi_reg_read()
82 if (phy_reg > PHY_MASK) { in smi_reg_read()
84 __func__, phy_reg); in smi_reg_read()
94 writel((phy_addr << 16) | (phy_reg << 21) | SMI_OP_R, &regs->smi); in smi_reg_read()
110 int phy_reg, u16 value) in smi_reg_write() argument
116 if (phy_addr == PHY_ADR_REQ && phy_reg == PHY_ADR_REQ) { in smi_reg_write()
126 if (phy_reg > PHY_MASK) { in smi_reg_write()
137 writel((phy_addr << 16) | (phy_reg << 21) | SMI_OP_W | (value & 0xffff), in smi_reg_write()
A Duli526x.c776 u16 phy_reg; in uli526x_set_phyxcer() local
779 phy_reg = uli_phy_read(db->ioaddr, in uli526x_set_phyxcer()
784 phy_reg |= db->PHY_reg4; in uli526x_set_phyxcer()
788 case ULI526X_10MHF: phy_reg |= 0x20; break; in uli526x_set_phyxcer()
789 case ULI526X_10MFD: phy_reg |= 0x40; break; in uli526x_set_phyxcer()
790 case ULI526X_100MHF: phy_reg |= 0x80; break; in uli526x_set_phyxcer()
791 case ULI526X_100MFD: phy_reg |= 0x100; break; in uli526x_set_phyxcer()
797 if (!(phy_reg & 0x01e0)) { in uli526x_set_phyxcer()
798 phy_reg |= db->PHY_reg4; in uli526x_set_phyxcer()
801 uli_phy_write(db->ioaddr, db->phy_addr, 4, phy_reg, db->chip_id); in uli526x_set_phyxcer()
/u-boot/drivers/qe/
A Duec_phy.c839 u16 phy_reg; in uec_get_phy_info() local
845 phy_reg = uec_phy_read(mii_info, MII_PHYSID1); in uec_get_phy_info()
846 phy_ID = (phy_reg & 0xffff) << 16; in uec_get_phy_info()
849 phy_reg = uec_phy_read(mii_info, MII_PHYSID2); in uec_get_phy_info()
850 phy_ID |= (phy_reg & 0xffff); in uec_get_phy_info()
/u-boot/drivers/phy/rockchip/
A Dphy-rockchip-typec.c354 struct phy_reg { struct
359 static struct phy_reg usb3_pll_cfg[] = { argument

Completed in 39 milliseconds