Home
last modified time | relevance | path

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

/external/u-boot/drivers/net/phy/
Dcortina.c355 int phy_reg; in get_phy_id() local
358 phy_reg = bus->read(bus, addr, 0, VILLA_GLOBAL_CHIP_ID_LSB); in get_phy_id()
359 if (phy_reg < 0) in get_phy_id()
361 *phy_id = (phy_reg & 0xffff) << 16; in get_phy_id()
363 phy_reg = bus->read(bus, addr, 0, VILLA_GLOBAL_CHIP_ID_MSB); in get_phy_id()
364 if (phy_reg < 0) in get_phy_id()
366 *phy_id |= (phy_reg & 0xffff); in get_phy_id()
375 phy_reg = bus->read(bus, addr, devad, MII_PHYSID1); in get_phy_id()
376 if (phy_reg < 0) in get_phy_id()
378 *phy_id = (phy_reg & 0xffff) << 16; in get_phy_id()
[all …]
Dphy.c673 int phy_reg; in get_phy_id() local
679 phy_reg = bus->read(bus, addr, devad, MII_PHYSID1); in get_phy_id()
681 if (phy_reg < 0) in get_phy_id()
684 *phy_id = (phy_reg & 0xffff) << 16; in get_phy_id()
687 phy_reg = bus->read(bus, addr, devad, MII_PHYSID2); in get_phy_id()
689 if (phy_reg < 0) in get_phy_id()
692 *phy_id |= (phy_reg & 0xffff); in get_phy_id()
/external/u-boot/drivers/usb/host/
Dehci-mx6.c74 void __iomem *phy_reg; in usb_internal_phy_clock_gate() local
79 phy_reg = (void __iomem *)phy_bases[index]; in usb_internal_phy_clock_gate()
80 phy_reg += on ? USBPHY_CTRL_CLR : USBPHY_CTRL_SET; in usb_internal_phy_clock_gate()
81 writel(USBPHY_CTRL_CLKGATE, phy_reg); in usb_internal_phy_clock_gate()
130 void __iomem *phy_reg; in usb_phy_enable() local
138 phy_reg = (void __iomem *)phy_bases[index]; in usb_phy_enable()
139 phy_ctrl = (void __iomem *)(phy_reg + USBPHY_CTRL); in usb_phy_enable()
162 writel(0, phy_reg + USBPHY_PWD); in usb_phy_enable()
172 void __iomem *phy_reg; in usb_phy_mode() local
176 phy_reg = (void __iomem *)phy_bases[port]; in usb_phy_mode()
[all …]
Dehci-vf.c52 void __iomem *phy_reg; in usb_internal_phy_clock_gate() local
54 phy_reg = (void __iomem *)phy_bases[index]; in usb_internal_phy_clock_gate()
55 clrbits_le32(phy_reg + USBPHY_CTRL, USBPHY_CTRL_CLKGATE); in usb_internal_phy_clock_gate()
86 void __iomem *phy_reg; in usb_phy_enable() local
90 phy_reg = (void __iomem *)phy_bases[index]; in usb_phy_enable()
91 phy_ctrl = (void __iomem *)(phy_reg + USBPHY_CTRL); in usb_phy_enable()
112 writel(0, phy_reg + USBPHY_PWD); in usb_phy_enable()
/external/u-boot/drivers/net/
Darmada100_fec.c60 int phy_reg) in smi_reg_read() argument
68 if (phy_addr == PHY_ADR_REQ && phy_reg == PHY_ADR_REQ) { in smi_reg_read()
80 if (phy_reg > PHY_MASK) { in smi_reg_read()
82 __func__, phy_reg); in smi_reg_read()
92 writel((phy_addr << 16) | (phy_reg << 21) | SMI_OP_R, &regs->smi); in smi_reg_read()
108 int phy_reg, u16 value) in smi_reg_write() argument
114 if (phy_addr == PHY_ADR_REQ && phy_reg == PHY_ADR_REQ) { in smi_reg_write()
124 if (phy_reg > PHY_MASK) { in smi_reg_write()
135 writel((phy_addr << 16) | (phy_reg << 21) | SMI_OP_W | (value & 0xffff), in smi_reg_write()
Duli526x.c775 u16 phy_reg; in uli526x_set_phyxcer() local
778 phy_reg = uli_phy_read(db->ioaddr, in uli526x_set_phyxcer()
783 phy_reg |= db->PHY_reg4; in uli526x_set_phyxcer()
787 case ULI526X_10MHF: phy_reg |= 0x20; break; in uli526x_set_phyxcer()
788 case ULI526X_10MFD: phy_reg |= 0x40; break; in uli526x_set_phyxcer()
789 case ULI526X_100MHF: phy_reg |= 0x80; break; in uli526x_set_phyxcer()
790 case ULI526X_100MFD: phy_reg |= 0x100; break; in uli526x_set_phyxcer()
796 if (!(phy_reg & 0x01e0)) { in uli526x_set_phyxcer()
797 phy_reg |= db->PHY_reg4; in uli526x_set_phyxcer()
800 uli_phy_write(db->ioaddr, db->phy_addr, 4, phy_reg, db->chip_id); in uli526x_set_phyxcer()
Dcpsw.c528 int dev_addr, int phy_reg) in cpsw_mdio_read() argument
533 if (phy_reg & ~PHY_REG_MASK || phy_id & ~PHY_ID_MASK) in cpsw_mdio_read()
537 reg = (USERACCESS_GO | USERACCESS_READ | (phy_reg << 21) | in cpsw_mdio_read()
547 int phy_reg, u16 data) in cpsw_mdio_write() argument
551 if (phy_reg & ~PHY_REG_MASK || phy_id & ~PHY_ID_MASK) in cpsw_mdio_write()
555 reg = (USERACCESS_GO | USERACCESS_WRITE | (phy_reg << 21) | in cpsw_mdio_write()
/external/u-boot/drivers/qe/
Duec_phy.c820 u16 phy_reg; in uec_get_phy_info() local
826 phy_reg = uec_phy_read(mii_info, MII_PHYSID1); in uec_get_phy_info()
827 phy_ID = (phy_reg & 0xffff) << 16; in uec_get_phy_info()
830 phy_reg = uec_phy_read(mii_info, MII_PHYSID2); in uec_get_phy_info()
831 phy_ID |= (phy_reg & 0xffff); in uec_get_phy_info()