Lines Matching refs:phy_data
214 u16 phy_data;
245 for (phy_data=0, i=0; i<16; i++) {
246 phy_data<<=1;
247 phy_data|=phy_read_1bit(io_dcr9);
250 return phy_data;
256 static void phy_write(int location, u16 phy_data)
291 phy_write_1bit(io_dcr9, phy_data&i ? PHY_DATA_1: PHY_DATA_0);
297 static void phy_write_1bit(u32 ee_addr, u32 phy_data)
300 outl(phy_data, ee_addr); /* MII Clock Low */
302 outl(phy_data|MDCLKH, ee_addr); /* MII Clock High */
304 outl(phy_data, ee_addr); /* MII Clock Low */
313 int phy_data;
320 phy_data=(inl(ee_addr)>>19) & 0x1;
325 return phy_data;