Searched refs:i2c_context (Results 1 – 1 of 1) sorted by relevance
184 static i2c_context_t i2c_context[I2C_NUM_MAX] = { variable215 I2C_ENTER_CRITICAL(&(i2c_context[i2c_num].spinlock)); in i2c_hw_disable()216 if (i2c_context[i2c_num].hw_enabled != false) { in i2c_hw_disable()218 i2c_context[i2c_num].hw_enabled = false; in i2c_hw_disable()220 I2C_EXIT_CRITICAL(&(i2c_context[i2c_num].spinlock)); in i2c_hw_disable()225 I2C_ENTER_CRITICAL(&(i2c_context[i2c_num].spinlock)); in i2c_hw_enable()226 if (i2c_context[i2c_num].hw_enabled != true) { in i2c_hw_enable()228 i2c_context[i2c_num].hw_enabled = true; in i2c_hw_enable()230 I2C_EXIT_CRITICAL(&(i2c_context[i2c_num].spinlock)); in i2c_hw_enable()346 i2c_hal_disable_intr_mask(&(i2c_context[i2c_num].hal), I2C_LL_INTR_MASK); in i2c_driver_install()[all …]