• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/ixgbe/

Lines Matching refs:i2cctl

42 static s32 ixgbe_raise_i2c_clk(struct ixgbe_hw *hw, u32 *i2cctl);
43 static void ixgbe_lower_i2c_clk(struct ixgbe_hw *hw, u32 *i2cctl);
44 static s32 ixgbe_set_i2c_data(struct ixgbe_hw *hw, u32 *i2cctl, bool data);
45 static bool ixgbe_get_i2c_data(u32 *i2cctl);
991 u32 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL);
994 ixgbe_set_i2c_data(hw, &i2cctl, 1);
995 ixgbe_raise_i2c_clk(hw, &i2cctl);
1000 ixgbe_set_i2c_data(hw, &i2cctl, 0);
1005 ixgbe_lower_i2c_clk(hw, &i2cctl);
1020 u32 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL);
1023 ixgbe_set_i2c_data(hw, &i2cctl, 0);
1024 ixgbe_raise_i2c_clk(hw, &i2cctl);
1029 ixgbe_set_i2c_data(hw, &i2cctl, 1);
1070 u32 i2cctl;
1082 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL);
1083 i2cctl |= IXGBE_I2C_DATA_OUT;
1084 IXGBE_WRITE_REG(hw, IXGBE_I2CCTL, i2cctl);
1099 u32 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL);
1103 status = ixgbe_raise_i2c_clk(hw, &i2cctl);
1114 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL);
1115 ack = ixgbe_get_i2c_data(&i2cctl);
1127 ixgbe_lower_i2c_clk(hw, &i2cctl);
1146 u32 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL);
1148 status = ixgbe_raise_i2c_clk(hw, &i2cctl);
1153 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL);
1154 *data = ixgbe_get_i2c_data(&i2cctl);
1156 ixgbe_lower_i2c_clk(hw, &i2cctl);
1174 u32 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL);
1176 status = ixgbe_set_i2c_data(hw, &i2cctl, data);
1178 status = ixgbe_raise_i2c_clk(hw, &i2cctl);
1183 ixgbe_lower_i2c_clk(hw, &i2cctl);
1199 * @i2cctl: Current value of I2CCTL register
1203 static s32 ixgbe_raise_i2c_clk(struct ixgbe_hw *hw, u32 *i2cctl)
1207 *i2cctl |= IXGBE_I2C_CLK_OUT;
1209 IXGBE_WRITE_REG(hw, IXGBE_I2CCTL, *i2cctl);
1220 * @i2cctl: Current value of I2CCTL register
1224 static void ixgbe_lower_i2c_clk(struct ixgbe_hw *hw, u32 *i2cctl)
1227 *i2cctl &= ~IXGBE_I2C_CLK_OUT;
1229 IXGBE_WRITE_REG(hw, IXGBE_I2CCTL, *i2cctl);
1238 * @i2cctl: Current value of I2CCTL register
1243 static s32 ixgbe_set_i2c_data(struct ixgbe_hw *hw, u32 *i2cctl, bool data)
1248 *i2cctl |= IXGBE_I2C_DATA_OUT;
1250 *i2cctl &= ~IXGBE_I2C_DATA_OUT;
1252 IXGBE_WRITE_REG(hw, IXGBE_I2CCTL, *i2cctl);
1258 *i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL);
1259 if (data != ixgbe_get_i2c_data(i2cctl)) {
1270 * @i2cctl: Current value of I2CCTL register
1274 static bool ixgbe_get_i2c_data(u32 *i2cctl)
1278 if (*i2cctl & IXGBE_I2C_DATA_IN)
1295 u32 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL);
1298 ixgbe_set_i2c_data(hw, &i2cctl, 1);
1301 ixgbe_raise_i2c_clk(hw, &i2cctl);
1306 ixgbe_lower_i2c_clk(hw, &i2cctl);