Lines Matching refs:lsm6dso16is
157 struct lsm6dso16is_data *lsm6dso16is = dev->data; in lsm6dso16is_trigger_set() local
165 lsm6dso16is->handler_drdy_acc = handler; in lsm6dso16is_trigger_set()
166 lsm6dso16is->trig_drdy_acc = trig; in lsm6dso16is_trigger_set()
173 lsm6dso16is->handler_drdy_gyr = handler; in lsm6dso16is_trigger_set()
174 lsm6dso16is->trig_drdy_gyr = trig; in lsm6dso16is_trigger_set()
183 lsm6dso16is->handler_drdy_temp = handler; in lsm6dso16is_trigger_set()
184 lsm6dso16is->trig_drdy_temp = trig; in lsm6dso16is_trigger_set()
202 struct lsm6dso16is_data *lsm6dso16is = dev->data; in lsm6dso16is_handle_interrupt() local
221 if ((status.xlda) && (lsm6dso16is->handler_drdy_acc != NULL)) { in lsm6dso16is_handle_interrupt()
222 lsm6dso16is->handler_drdy_acc(dev, lsm6dso16is->trig_drdy_acc); in lsm6dso16is_handle_interrupt()
225 if ((status.gda) && (lsm6dso16is->handler_drdy_gyr != NULL)) { in lsm6dso16is_handle_interrupt()
226 lsm6dso16is->handler_drdy_gyr(dev, lsm6dso16is->trig_drdy_gyr); in lsm6dso16is_handle_interrupt()
230 if ((status.tda) && (lsm6dso16is->handler_drdy_temp != NULL)) { in lsm6dso16is_handle_interrupt()
231 lsm6dso16is->handler_drdy_temp(dev, lsm6dso16is->trig_drdy_temp); in lsm6dso16is_handle_interrupt()
243 struct lsm6dso16is_data *lsm6dso16is = in lsm6dso16is_gpio_callback() local
245 const struct lsm6dso16is_config *cfg = lsm6dso16is->dev->config; in lsm6dso16is_gpio_callback()
252 k_sem_give(&lsm6dso16is->gpio_sem); in lsm6dso16is_gpio_callback()
254 k_work_submit(&lsm6dso16is->work); in lsm6dso16is_gpio_callback()
264 struct lsm6dso16is_data *lsm6dso16is = p1; in lsm6dso16is_thread() local
267 k_sem_take(&lsm6dso16is->gpio_sem, K_FOREVER); in lsm6dso16is_thread()
268 lsm6dso16is_handle_interrupt(lsm6dso16is->dev); in lsm6dso16is_thread()
276 struct lsm6dso16is_data *lsm6dso16is = in lsm6dso16is_work_cb() local
279 lsm6dso16is_handle_interrupt(lsm6dso16is->dev); in lsm6dso16is_work_cb()
285 struct lsm6dso16is_data *lsm6dso16is = dev->data; in lsm6dso16is_init_interrupt() local
297 k_sem_init(&lsm6dso16is->gpio_sem, 0, K_SEM_MAX_LIMIT); in lsm6dso16is_init_interrupt()
299 k_thread_create(&lsm6dso16is->thread, lsm6dso16is->thread_stack, in lsm6dso16is_init_interrupt()
301 lsm6dso16is_thread, lsm6dso16is, in lsm6dso16is_init_interrupt()
304 k_thread_name_set(&lsm6dso16is->thread, "lsm6dso16is"); in lsm6dso16is_init_interrupt()
306 lsm6dso16is->work.handler = lsm6dso16is_work_cb; in lsm6dso16is_init_interrupt()
315 gpio_init_callback(&lsm6dso16is->gpio_cb, in lsm6dso16is_init_interrupt()
319 if (gpio_add_callback(cfg->gpio_drdy.port, &lsm6dso16is->gpio_cb) < 0) { in lsm6dso16is_init_interrupt()