Lines Matching full:pins

28 /* Number of pins supported by the device */
31 /* Max to select all pins supported on the device. */
37 /** Cache of the output configuration and data of the pins. */
150 /* Intensity register addresses for all 16 pins */
240 uint32_t pins) in sx1509_int_cb() argument
245 ARG_UNUSED(pins); in sx1509_int_cb()
253 struct sx1509b_pin_state *pins, bool data_first) in write_pin_state() argument
257 struct sx1509b_pin_state pins; in write_pin_state() member
262 pin_buf.pins.input_disable = sys_cpu_to_be16(pins->input_disable); in write_pin_state()
263 pin_buf.pins.long_slew = sys_cpu_to_be16(pins->long_slew); in write_pin_state()
264 pin_buf.pins.low_drive = sys_cpu_to_be16(pins->low_drive); in write_pin_state()
265 pin_buf.pins.pull_up = sys_cpu_to_be16(pins->pull_up); in write_pin_state()
266 pin_buf.pins.pull_down = sys_cpu_to_be16(pins->pull_down); in write_pin_state()
267 pin_buf.pins.open_drain = sys_cpu_to_be16(pins->open_drain); in write_pin_state()
268 pin_buf.pins.polarity = sys_cpu_to_be16(pins->polarity); in write_pin_state()
269 pin_buf.pins.dir = sys_cpu_to_be16(pins->dir); in write_pin_state()
270 pin_buf.pins.data = sys_cpu_to_be16(pins->data); in write_pin_state()
275 SX1509B_REG_DATA, pins->data); in write_pin_state()
278 sizeof(pin_buf) - sizeof(pins->data), in write_pin_state()
295 struct sx1509b_pin_state *pins = &drv_data->pin_state; in sx1509b_config() local
335 pins->open_drain &= ~BIT(pin); in sx1509b_config()
338 pins->open_drain |= BIT(pin); in sx1509b_config()
347 pins->pull_up |= BIT(pin); in sx1509b_config()
349 pins->pull_up &= ~BIT(pin); in sx1509b_config()
352 pins->pull_down |= BIT(pin); in sx1509b_config()
354 pins->pull_down &= ~BIT(pin); in sx1509b_config()
358 pins->input_disable &= ~BIT(pin); in sx1509b_config()
360 pins->input_disable |= BIT(pin); in sx1509b_config()
364 pins->dir &= ~BIT(pin); in sx1509b_config()
366 pins->data &= ~BIT(pin); in sx1509b_config()
369 pins->data |= BIT(pin); in sx1509b_config()
373 pins->dir |= BIT(pin); in sx1509b_config()
384 pins->input_disable, pins->pull_up, pins->pull_down, in sx1509b_config()
385 pins->dir, pins->data); in sx1509b_config()
387 rc = write_pin_state(cfg, drv_data, pins, data_first); in sx1509b_config()
483 gpio_port_pins_t pins) in port_set_bits() argument
485 return port_write(dev, pins, pins, 0); in port_set_bits()
489 gpio_port_pins_t pins) in port_clear_bits() argument
491 return port_write(dev, pins, 0, 0); in port_clear_bits()
495 gpio_port_pins_t pins) in port_toggle_bits() argument
497 return port_write(dev, 0, 0, pins); in port_toggle_bits()
701 struct sx1509b_pin_state *pins = &drv_data->pin_state; in sx1509b_led_intensity_pin_configure() local
730 pins->input_disable |= BIT(pin); in sx1509b_led_intensity_pin_configure()
731 pins->pull_up &= ~BIT(pin); in sx1509b_led_intensity_pin_configure()
732 pins->dir &= ~BIT(pin); in sx1509b_led_intensity_pin_configure()
733 pins->data &= ~BIT(pin); in sx1509b_led_intensity_pin_configure()
736 rc = write_pin_state(cfg, drv_data, pins, false); in sx1509b_led_intensity_pin_configure()