Searched refs:i2cctl (Results 1 – 3 of 3) sorted by relevance
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_phy.c | 19 static void ixgbe_raise_i2c_clk(struct ixgbe_hw *hw, u32 *i2cctl); 20 static void ixgbe_lower_i2c_clk(struct ixgbe_hw *hw, u32 *i2cctl); 21 static s32 ixgbe_set_i2c_data(struct ixgbe_hw *hw, u32 *i2cctl, bool data); 22 static bool ixgbe_get_i2c_data(struct ixgbe_hw *hw, u32 *i2cctl); 2231 u32 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL(hw)); in ixgbe_i2c_start() local 2233 i2cctl |= IXGBE_I2C_BB_EN(hw); in ixgbe_i2c_start() 2236 ixgbe_set_i2c_data(hw, &i2cctl, 1); in ixgbe_i2c_start() 2237 ixgbe_raise_i2c_clk(hw, &i2cctl); in ixgbe_i2c_start() 2242 ixgbe_set_i2c_data(hw, &i2cctl, 0); in ixgbe_i2c_start() 2247 ixgbe_lower_i2c_clk(hw, &i2cctl); in ixgbe_i2c_start() [all …]
|
/drivers/usb/dwc2/ |
D | core.c | 1066 u32 usbcfg, ggpio, i2cctl; in dwc2_fs_phy_init() local 1122 i2cctl = dwc2_readl(hsotg, GI2CCTL); in dwc2_fs_phy_init() 1123 i2cctl &= ~GI2CCTL_I2CDEVADDR_MASK; in dwc2_fs_phy_init() 1124 i2cctl |= 1 << GI2CCTL_I2CDEVADDR_SHIFT; in dwc2_fs_phy_init() 1125 i2cctl &= ~GI2CCTL_I2CEN; in dwc2_fs_phy_init() 1126 dwc2_writel(hsotg, i2cctl, GI2CCTL); in dwc2_fs_phy_init() 1127 i2cctl |= GI2CCTL_I2CEN; in dwc2_fs_phy_init() 1128 dwc2_writel(hsotg, i2cctl, GI2CCTL); in dwc2_fs_phy_init()
|
/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 562 s32 i2cctl = rd32(E1000_I2CPARAMS); in igb_get_i2c_data() local 564 return !!(i2cctl & E1000_I2C_DATA_IN); in igb_get_i2c_data() 578 s32 i2cctl = rd32(E1000_I2CPARAMS); in igb_set_i2c_data() local 581 i2cctl |= E1000_I2C_DATA_OUT; in igb_set_i2c_data() 583 i2cctl &= ~E1000_I2C_DATA_OUT; in igb_set_i2c_data() 585 i2cctl &= ~E1000_I2C_DATA_OE_N; in igb_set_i2c_data() 586 i2cctl |= E1000_I2C_CLK_OE_N; in igb_set_i2c_data() 587 wr32(E1000_I2CPARAMS, i2cctl); in igb_set_i2c_data() 603 s32 i2cctl = rd32(E1000_I2CPARAMS); in igb_set_i2c_clk() local 606 i2cctl |= E1000_I2C_CLK_OUT; in igb_set_i2c_clk() [all …]
|