Lines Matching refs:drv_cfg
64 const struct pcf857x_drv_cfg *drv_cfg = dev->config; in pcf857x_process_input() local
69 rc = i2c_read_dt(&drv_cfg->i2c, rx_buf, drv_data->num_bytes); in pcf857x_process_input()
170 const struct pcf857x_drv_cfg *drv_cfg = dev->config; in pcf857x_port_set_raw() local
190 rc = i2c_write_dt(&drv_cfg->i2c, tx_buf_p, drv_data->num_bytes); in pcf857x_port_set_raw()
312 const struct pcf857x_drv_cfg *drv_cfg = dev->config; in pcf857x_pin_interrupt_configure() local
314 if (!drv_cfg->gpio_int.port) { in pcf857x_pin_interrupt_configure()
338 const struct pcf857x_drv_cfg *drv_cfg = dev->config; in pcf857x_init() local
342 if (!device_is_ready(drv_cfg->i2c.bus)) { in pcf857x_init()
343 LOG_ERR("%s is not ready", drv_cfg->i2c.bus->name); in pcf857x_init()
348 if (drv_cfg->gpio_int.port) { in pcf857x_init()
349 if (!gpio_is_ready_dt(&drv_cfg->gpio_int)) { in pcf857x_init()
354 rc = gpio_pin_configure_dt(&drv_cfg->gpio_int, GPIO_INPUT); in pcf857x_init()
360 rc = gpio_pin_interrupt_configure_dt(&drv_cfg->gpio_int, GPIO_INT_EDGE_TO_ACTIVE); in pcf857x_init()
367 BIT(drv_cfg->gpio_int.pin)); in pcf857x_init()
368 rc = gpio_add_callback(drv_cfg->gpio_int.port, &drv_data->int_gpio_cb); in pcf857x_init()