Lines Matching full:pins

29 /* Number of pins supported by the device */
32 /* Max to select all pins supported on the device. */
38 /** Cache of the output configuration and data of the pins. */
146 /* Intensity register addresses for all 16 pins */
231 uint32_t pins) in sx1509_int_cb() argument
236 ARG_UNUSED(pins); in sx1509_int_cb()
244 struct sx1509b_pin_state *pins, bool data_first) in write_pin_state() argument
248 struct sx1509b_pin_state pins; in write_pin_state() member
253 pin_buf.pins.input_disable = sys_cpu_to_be16(pins->input_disable); in write_pin_state()
254 pin_buf.pins.long_slew = sys_cpu_to_be16(pins->long_slew); in write_pin_state()
255 pin_buf.pins.low_drive = sys_cpu_to_be16(pins->low_drive); in write_pin_state()
256 pin_buf.pins.pull_up = sys_cpu_to_be16(pins->pull_up); in write_pin_state()
257 pin_buf.pins.pull_down = sys_cpu_to_be16(pins->pull_down); in write_pin_state()
258 pin_buf.pins.open_drain = sys_cpu_to_be16(pins->open_drain); in write_pin_state()
259 pin_buf.pins.polarity = sys_cpu_to_be16(pins->polarity); in write_pin_state()
260 pin_buf.pins.dir = sys_cpu_to_be16(pins->dir); in write_pin_state()
261 pin_buf.pins.data = sys_cpu_to_be16(pins->data); in write_pin_state()
265 pins->data); in write_pin_state()
268 sizeof(pin_buf) - sizeof(pins->data)); in write_pin_state()
283 struct sx1509b_pin_state *pins = &drv_data->pin_state; in sx1509b_config() local
307 pins->open_drain &= ~BIT(pin); in sx1509b_config()
310 pins->open_drain |= BIT(pin); in sx1509b_config()
319 pins->pull_up |= BIT(pin); in sx1509b_config()
321 pins->pull_up &= ~BIT(pin); in sx1509b_config()
324 pins->pull_down |= BIT(pin); in sx1509b_config()
326 pins->pull_down &= ~BIT(pin); in sx1509b_config()
330 pins->input_disable &= ~BIT(pin); in sx1509b_config()
332 pins->input_disable |= BIT(pin); in sx1509b_config()
336 pins->dir &= ~BIT(pin); in sx1509b_config()
338 pins->data &= ~BIT(pin); in sx1509b_config()
341 pins->data |= BIT(pin); in sx1509b_config()
345 pins->dir |= BIT(pin); in sx1509b_config()
356 pins->input_disable, pins->pull_up, pins->pull_down, in sx1509b_config()
357 pins->dir, pins->data); in sx1509b_config()
359 rc = write_pin_state(cfg, drv_data, pins, data_first); in sx1509b_config()
454 gpio_port_pins_t pins) in port_set_bits() argument
456 return port_write(dev, pins, pins, 0); in port_set_bits()
460 gpio_port_pins_t pins) in port_clear_bits() argument
462 return port_write(dev, pins, 0, 0); in port_clear_bits()
466 gpio_port_pins_t pins) in port_toggle_bits() argument
468 return port_write(dev, 0, 0, pins); in port_toggle_bits()
656 struct sx1509b_pin_state *pins = &drv_data->pin_state; in sx1509b_led_intensity_pin_configure() local
682 pins->input_disable |= BIT(pin); in sx1509b_led_intensity_pin_configure()
683 pins->pull_up &= ~BIT(pin); in sx1509b_led_intensity_pin_configure()
684 pins->dir &= ~BIT(pin); in sx1509b_led_intensity_pin_configure()
685 pins->data &= ~BIT(pin); in sx1509b_led_intensity_pin_configure()
688 rc = write_pin_state(cfg, drv_data, pins, false); in sx1509b_led_intensity_pin_configure()