Lines Matching refs:phy_data
812 u16 phy_data, u32 chip_id) in uli_phy_write() argument
818 phy_writeby_cr10(iobase, phy_addr, offset, phy_data); in uli_phy_write()
852 phy_write_1bit(ioaddr, phy_data & i ? in uli_phy_write()
864 u16 phy_data; in uli_phy_read() local
898 for (phy_data = 0, i = 0; i < 16; i++) { in uli_phy_read()
899 phy_data <<= 1; in uli_phy_read()
900 phy_data |= phy_read_1bit(ioaddr, chip_id); in uli_phy_read()
903 return phy_data; in uli_phy_read()
925 u8 offset, u16 phy_data) in phy_writeby_cr10() argument
932 cr10_value = (cr10_value<<16) + 0x04000000 + phy_data; in phy_writeby_cr10()
940 static void phy_write_1bit(unsigned long ioaddr, u32 phy_data, u32 chip_id) in phy_write_1bit() argument
942 outl(phy_data , ioaddr); /* MII Clock Low */ in phy_write_1bit()
944 outl(phy_data | MDCLKH, ioaddr); /* MII Clock High */ in phy_write_1bit()
946 outl(phy_data , ioaddr); /* MII Clock Low */ in phy_write_1bit()
956 u16 phy_data; in phy_read_1bit() local
960 phy_data = (inl(ioaddr) >> 19) & 0x1; in phy_read_1bit()
964 return phy_data; in phy_read_1bit()