Lines Matching full:pins
24 /** Cache of the output configuration and data of the pins. */
56 static int write_pin_state(const struct cy8c95xx_config *cfg, struct cy8c95xx_pin_state *pins) in write_pin_state() argument
61 pins->data_out); in write_pin_state()
71 rc = i2c_reg_write_byte_dt(&cfg->i2c, CY8C95XX_REG_DIR, pins->dir); in write_pin_state()
76 rc = i2c_reg_write_byte_dt(&cfg->i2c, CY8C95XX_REG_PULL_UP, pins->pull_up); in write_pin_state()
81 rc = i2c_reg_write_byte_dt(&cfg->i2c, CY8C95XX_REG_PULL_DOWN, pins->pull_down); in write_pin_state()
92 struct cy8c95xx_pin_state *pins = &drv_data->pin_state; in cy8c95xx_config() local
106 WRITE_BIT(pins->pull_up, pin, (flags & GPIO_PULL_UP) != 0U); in cy8c95xx_config()
107 WRITE_BIT(pins->pull_down, pin, (flags & GPIO_PULL_DOWN) != 0U); in cy8c95xx_config()
118 pins->dir &= ~BIT(pin); in cy8c95xx_config()
120 pins->data_out &= ~BIT(pin); in cy8c95xx_config()
122 pins->data_out |= BIT(pin); in cy8c95xx_config()
125 pins->dir |= BIT(pin); in cy8c95xx_config()
129 pin, flags, pins->dir, pins->data_out); in cy8c95xx_config()
131 rc = write_pin_state(cfg, pins); in cy8c95xx_config()
200 gpio_port_pins_t pins) in port_set_bits() argument
202 return port_write(dev, pins, pins, 0); in port_set_bits()
206 gpio_port_pins_t pins) in port_clear_bits() argument
208 return port_write(dev, pins, 0, 0); in port_clear_bits()
212 gpio_port_pins_t pins) in port_toggle_bits() argument
214 return port_write(dev, 0, 0, pins); in port_toggle_bits()