Lines Matching refs:drv_data
33 struct lsm6dsl_data *drv_data = dev->data; in handle_irq() local
38 k_sem_give(&drv_data->gpio_sem); in handle_irq()
40 k_work_submit(&drv_data->work); in handle_irq()
49 struct lsm6dsl_data *drv_data = dev->data; in lsm6dsl_trigger_set() local
61 drv_data->data_ready_handler = handler; in lsm6dsl_trigger_set()
66 drv_data->data_ready_trigger = trig; in lsm6dsl_trigger_set()
79 struct lsm6dsl_data *drv_data = in lsm6dsl_gpio_callback() local
84 handle_irq(drv_data->dev); in lsm6dsl_gpio_callback()
89 struct lsm6dsl_data *drv_data = dev->data; in lsm6dsl_thread_cb() local
91 if (drv_data->data_ready_handler != NULL) { in lsm6dsl_thread_cb()
92 drv_data->data_ready_handler(dev, in lsm6dsl_thread_cb()
93 drv_data->data_ready_trigger); in lsm6dsl_thread_cb()
106 struct lsm6dsl_data *drv_data = dev->data; in lsm6dsl_thread() local
109 k_sem_take(&drv_data->gpio_sem, K_FOREVER); in lsm6dsl_thread()
118 struct lsm6dsl_data *drv_data = in lsm6dsl_work_cb() local
121 lsm6dsl_thread_cb(drv_data->dev); in lsm6dsl_work_cb()
128 struct lsm6dsl_data *drv_data = dev->data; in lsm6dsl_init_interrupt() local
137 gpio_init_callback(&drv_data->gpio_cb, in lsm6dsl_init_interrupt()
140 if (gpio_add_callback(config->int_gpio.port, &drv_data->gpio_cb) < 0) { in lsm6dsl_init_interrupt()
146 if (drv_data->hw_tf->update_reg(dev, in lsm6dsl_init_interrupt()
156 drv_data->dev = dev; in lsm6dsl_init_interrupt()
159 k_sem_init(&drv_data->gpio_sem, 0, K_SEM_MAX_LIMIT); in lsm6dsl_init_interrupt()
161 k_thread_create(&drv_data->thread, drv_data->thread_stack, in lsm6dsl_init_interrupt()
167 drv_data->work.handler = lsm6dsl_work_cb; in lsm6dsl_init_interrupt()