Lines Matching refs:mask
63 const uint8_t mask = BIT(pin % 8); in gpio_aw9523b_pin_configure() local
64 const uint8_t input_en = (flags & GPIO_INPUT) ? mask : 0x00; in gpio_aw9523b_pin_configure()
65 const uint8_t out_high = (flags & GPIO_OUTPUT_INIT_HIGH) ? mask : 0x00; in gpio_aw9523b_pin_configure()
98 err = i2c_reg_update_byte_dt(&config->i2c, AW9523B_REG_CONFIG(port), mask, input_en); in gpio_aw9523b_pin_configure()
127 err = i2c_reg_update_byte_dt(&config->i2c, AW9523B_REG_OUTPUT(port), mask, out_high); in gpio_aw9523b_pin_configure()
149 static int gpio_aw9523b_port_read_write_toggle(const struct device *dev, gpio_port_pins_t mask, in gpio_aw9523b_port_read_write_toggle() argument
188 new_value = (old_value & ~mask) | (*value & mask); in gpio_aw9523b_port_read_write_toggle()
190 new_value = (old_value & ~mask) | (~old_value & mask); in gpio_aw9523b_port_read_write_toggle()
218 static int gpio_aw9523b_port_set_masked_raw(const struct device *dev, gpio_port_pins_t mask, in gpio_aw9523b_port_set_masked_raw() argument
221 return gpio_aw9523b_port_read_write_toggle(dev, mask, &value, WRITE); in gpio_aw9523b_port_set_masked_raw()
283 const uint8_t mask = BIT(port ? pin - 8 : pin); in gpio_aw9523b_pin_interrupt_configure() local
306 err = i2c_reg_update_byte_dt(&config->i2c, AW9523B_REG_INT(port), mask, n_int_en); in gpio_aw9523b_pin_interrupt_configure()