Lines Matching refs:control

63 	uint8_t new_value, control;  in gpio_it8801_configure()  local
74 ret = i2c_reg_read_byte_dt(&config->i2c_dev, reg_gpcr, &control); in gpio_it8801_configure()
81 control &= ~(IT8801_GPIODIR | IT8801_GPIOPDE | IT8801_GPIOPUE); in gpio_it8801_configure()
101 control |= IT8801_GPIODIR; in gpio_it8801_configure()
104 control |= IT8801_GPIOIOT_OD; in gpio_it8801_configure()
106 control &= ~IT8801_GPIOIOT_OD; in gpio_it8801_configure()
110 control &= ~IT8801_GPIODIR; in gpio_it8801_configure()
115 control = (control | IT8801_GPIOPUE) & ~IT8801_GPIOPDE; in gpio_it8801_configure()
117 control = (control | IT8801_GPIOPDE) & ~IT8801_GPIOPUE; in gpio_it8801_configure()
120 control &= ~(IT8801_GPIOPUE | IT8801_GPIOPDE); in gpio_it8801_configure()
125 ret = i2c_reg_write_byte_dt(&config->i2c_dev, reg_gpcr, control); in gpio_it8801_configure()
142 uint8_t control, value; in gpio_it8801_get_config() local
148 ret = i2c_reg_read_byte_dt(&config->i2c_dev, reg_gpcr, &control); in gpio_it8801_get_config()
155 if (control & IT8801_GPIODIR) { in gpio_it8801_get_config()
159 if (control & IT8801_GPIOIOT_OD) { in gpio_it8801_get_config()
180 if (control & IT8801_GPIOPUE) { in gpio_it8801_get_config()
182 } else if (control & IT8801_GPIOPDE) { in gpio_it8801_get_config()
327 uint8_t control; in gpio_it8801_pin_interrupt_configure() local
359 ret = i2c_reg_read_byte_dt(&config->i2c_dev, reg_gpcr, &control); in gpio_it8801_pin_interrupt_configure()
368 control |= IT8801_GPIOIOT_INT_FALL | IT8801_GPIOIOT_INT_RISE; in gpio_it8801_pin_interrupt_configure()
370 control |= IT8801_GPIOIOT_INT_FALL; in gpio_it8801_pin_interrupt_configure()
372 control |= IT8801_GPIOIOT_INT_RISE; in gpio_it8801_pin_interrupt_configure()
380 control &= ~IT8801_GPIOPOL; in gpio_it8801_pin_interrupt_configure()
382 control |= IT8801_GPIOPOL; in gpio_it8801_pin_interrupt_configure()
387 ret = i2c_reg_write_byte_dt(&config->i2c_dev, reg_gpcr, control); in gpio_it8801_pin_interrupt_configure()