Lines Matching defs:phy_data
218 u16 phy_data;
249 for (phy_data=0, i=0; i<16; i++) {
250 phy_data<<=1;
251 phy_data|=phy_read_1bit(io_dcr9);
254 return phy_data;
260 static void phy_write(int location, u16 phy_data)
295 phy_write_1bit(io_dcr9, phy_data&i ? PHY_DATA_1: PHY_DATA_0);
301 static void phy_write_1bit(u32 ee_addr, u32 phy_data)
304 outl(phy_data, ee_addr); /* MII Clock Low */
306 outl(phy_data|MDCLKH, ee_addr); /* MII Clock High */
308 outl(phy_data, ee_addr); /* MII Clock Low */
317 int phy_data;
324 phy_data=(inl(ee_addr)>>19) & 0x1;
329 return phy_data;