Lines Matching refs:phy_reg
1519 u16 phy_reg; in uli526x_set_phyxcer() local
1522 phy_reg = phy->read(db, db->phy_addr, 4) & ~0x01e0; in uli526x_set_phyxcer()
1526 phy_reg |= db->PHY_reg4; in uli526x_set_phyxcer()
1530 case ULI526X_10MHF: phy_reg |= 0x20; break; in uli526x_set_phyxcer()
1531 case ULI526X_10MFD: phy_reg |= 0x40; break; in uli526x_set_phyxcer()
1532 case ULI526X_100MHF: phy_reg |= 0x80; break; in uli526x_set_phyxcer()
1533 case ULI526X_100MFD: phy_reg |= 0x100; break; in uli526x_set_phyxcer()
1539 if ( !(phy_reg & 0x01e0)) { in uli526x_set_phyxcer()
1540 phy_reg|=db->PHY_reg4; in uli526x_set_phyxcer()
1543 phy->write(db, db->phy_addr, 4, phy_reg); in uli526x_set_phyxcer()
1561 u16 phy_reg; in uli526x_process_mode() local
1574 phy_reg = phy->read(db, db->phy_addr, 6); in uli526x_process_mode()
1575 if (!(phy_reg & 0x1)) { in uli526x_process_mode()
1577 phy_reg = 0x0; in uli526x_process_mode()
1579 case ULI526X_10MHF: phy_reg = 0x0; break; in uli526x_process_mode()
1580 case ULI526X_10MFD: phy_reg = 0x100; break; in uli526x_process_mode()
1581 case ULI526X_100MHF: phy_reg = 0x2000; break; in uli526x_process_mode()
1582 case ULI526X_100MFD: phy_reg = 0x2100; break; in uli526x_process_mode()
1584 phy->write(db, db->phy_addr, 0, phy_reg); in uli526x_process_mode()