Lines Matching refs:phy_reg
1563 u16 phy_reg; in uli526x_set_phyxcer() local
1566 phy_reg = phy->read(db, db->phy_addr, 4) & ~0x01e0; in uli526x_set_phyxcer()
1570 phy_reg |= db->PHY_reg4; in uli526x_set_phyxcer()
1574 case ULI526X_10MHF: phy_reg |= 0x20; break; in uli526x_set_phyxcer()
1575 case ULI526X_10MFD: phy_reg |= 0x40; break; in uli526x_set_phyxcer()
1576 case ULI526X_100MHF: phy_reg |= 0x80; break; in uli526x_set_phyxcer()
1577 case ULI526X_100MFD: phy_reg |= 0x100; break; in uli526x_set_phyxcer()
1583 if ( !(phy_reg & 0x01e0)) { in uli526x_set_phyxcer()
1584 phy_reg|=db->PHY_reg4; in uli526x_set_phyxcer()
1587 phy->write(db, db->phy_addr, 4, phy_reg); in uli526x_set_phyxcer()
1605 u16 phy_reg; in uli526x_process_mode() local
1618 phy_reg = phy->read(db, db->phy_addr, 6); in uli526x_process_mode()
1619 if (!(phy_reg & 0x1)) { in uli526x_process_mode()
1621 phy_reg = 0x0; in uli526x_process_mode()
1623 case ULI526X_10MHF: phy_reg = 0x0; break; in uli526x_process_mode()
1624 case ULI526X_10MFD: phy_reg = 0x100; break; in uli526x_process_mode()
1625 case ULI526X_100MHF: phy_reg = 0x2000; break; in uli526x_process_mode()
1626 case ULI526X_100MFD: phy_reg = 0x2100; break; in uli526x_process_mode()
1628 phy->write(db, db->phy_addr, 0, phy_reg); in uli526x_process_mode()