Lines Matching refs:i2ccmd
229 u32 i, i2ccmd = 0; in igb_read_phy_reg_i2c() local
235 i2ccmd = ((offset << E1000_I2CCMD_REG_ADDR_SHIFT) | in igb_read_phy_reg_i2c()
239 wr32(E1000_I2CCMD, i2ccmd); in igb_read_phy_reg_i2c()
244 i2ccmd = rd32(E1000_I2CCMD); in igb_read_phy_reg_i2c()
245 if (i2ccmd & E1000_I2CCMD_READY) in igb_read_phy_reg_i2c()
248 if (!(i2ccmd & E1000_I2CCMD_READY)) { in igb_read_phy_reg_i2c()
252 if (i2ccmd & E1000_I2CCMD_ERROR) { in igb_read_phy_reg_i2c()
258 *data = ((i2ccmd >> 8) & 0x00FF) | ((i2ccmd << 8) & 0xFF00); in igb_read_phy_reg_i2c()
274 u32 i, i2ccmd = 0; in igb_write_phy_reg_i2c() local
291 i2ccmd = ((offset << E1000_I2CCMD_REG_ADDR_SHIFT) | in igb_write_phy_reg_i2c()
296 wr32(E1000_I2CCMD, i2ccmd); in igb_write_phy_reg_i2c()
301 i2ccmd = rd32(E1000_I2CCMD); in igb_write_phy_reg_i2c()
302 if (i2ccmd & E1000_I2CCMD_READY) in igb_write_phy_reg_i2c()
305 if (!(i2ccmd & E1000_I2CCMD_READY)) { in igb_write_phy_reg_i2c()
309 if (i2ccmd & E1000_I2CCMD_ERROR) { in igb_write_phy_reg_i2c()
333 u32 i2ccmd = 0; in igb_read_sfp_data_byte() local
345 i2ccmd = ((offset << E1000_I2CCMD_REG_ADDR_SHIFT) | in igb_read_sfp_data_byte()
348 wr32(E1000_I2CCMD, i2ccmd); in igb_read_sfp_data_byte()