Lines Matching refs:phy_reg

1669 	u16 phy_reg;  in dmfe_set_phyxcer()  local
1677 phy_reg = dmfe_phy_read(db->ioaddr, in dmfe_set_phyxcer()
1681 db->phy_addr, 18, phy_reg, db->chip_id); in dmfe_set_phyxcer()
1685 phy_reg = dmfe_phy_read(db->ioaddr, db->phy_addr, 4, db->chip_id) & ~0x01e0; in dmfe_set_phyxcer()
1689 phy_reg |= db->PHY_reg4; in dmfe_set_phyxcer()
1693 case DMFE_10MHF: phy_reg |= 0x20; break; in dmfe_set_phyxcer()
1694 case DMFE_10MFD: phy_reg |= 0x40; break; in dmfe_set_phyxcer()
1695 case DMFE_100MHF: phy_reg |= 0x80; break; in dmfe_set_phyxcer()
1696 case DMFE_100MFD: phy_reg |= 0x100; break; in dmfe_set_phyxcer()
1698 if (db->chip_id == PCI_DM9009_ID) phy_reg &= 0x61; in dmfe_set_phyxcer()
1702 if ( !(phy_reg & 0x01e0)) { in dmfe_set_phyxcer()
1703 phy_reg|=db->PHY_reg4; in dmfe_set_phyxcer()
1706 dmfe_phy_write(db->ioaddr, db->phy_addr, 4, phy_reg, db->chip_id); in dmfe_set_phyxcer()
1725 u16 phy_reg; in dmfe_process_mode() local
1744 phy_reg = dmfe_phy_read(db->ioaddr, db->phy_addr, 6, db->chip_id); in dmfe_process_mode()
1745 if ( !(phy_reg & 0x1) ) { in dmfe_process_mode()
1747 phy_reg = 0x0; in dmfe_process_mode()
1749 case DMFE_10MHF: phy_reg = 0x0; break; in dmfe_process_mode()
1750 case DMFE_10MFD: phy_reg = 0x100; break; in dmfe_process_mode()
1751 case DMFE_100MHF: phy_reg = 0x2000; break; in dmfe_process_mode()
1752 case DMFE_100MFD: phy_reg = 0x2100; break; in dmfe_process_mode()
1755 db->phy_addr, 0, phy_reg, db->chip_id); in dmfe_process_mode()
1759 db->phy_addr, 0, phy_reg, db->chip_id); in dmfe_process_mode()
2039 uint phy_reg; in dmfe_program_DM9802() local
2043 phy_reg = dmfe_phy_read(db->ioaddr, db->phy_addr, 25, db->chip_id); in dmfe_program_DM9802()
2044 phy_reg = ( phy_reg & 0xff00) + HPNA_NoiseFloor; in dmfe_program_DM9802()
2045 dmfe_phy_write(db->ioaddr, db->phy_addr, 25, phy_reg, db->chip_id); in dmfe_program_DM9802()
2056 uint phy_reg; in dmfe_HPNA_remote_cmd_chk() local
2059 phy_reg = dmfe_phy_read(db->ioaddr, db->phy_addr, 17, db->chip_id) & 0x60; in dmfe_HPNA_remote_cmd_chk()
2060 switch(phy_reg) { in dmfe_HPNA_remote_cmd_chk()
2061 case 0x00: phy_reg = 0x0a00;break; /* LP/LS */ in dmfe_HPNA_remote_cmd_chk()
2062 case 0x20: phy_reg = 0x0900;break; /* LP/HS */ in dmfe_HPNA_remote_cmd_chk()
2063 case 0x40: phy_reg = 0x0600;break; /* HP/LS */ in dmfe_HPNA_remote_cmd_chk()
2064 case 0x60: phy_reg = 0x0500;break; /* HP/HS */ in dmfe_HPNA_remote_cmd_chk()
2068 if ( phy_reg != (db->HPNA_command & 0x0f00) ) { in dmfe_HPNA_remote_cmd_chk()