Lines Matching refs:iis2dlpc

98 	struct iis2dlpc_data *iis2dlpc = dev->data;  in iis2dlpc_trigger_set()  local
104 iis2dlpc->drdy_handler = handler; in iis2dlpc_trigger_set()
105 iis2dlpc->drdy_trig = trig; in iis2dlpc_trigger_set()
113 iis2dlpc->tap_handler = handler; in iis2dlpc_trigger_set()
114 iis2dlpc->tap_trig = trig; in iis2dlpc_trigger_set()
117 iis2dlpc->double_tap_handler = handler; in iis2dlpc_trigger_set()
118 iis2dlpc->double_tap_trig = trig; in iis2dlpc_trigger_set()
123 iis2dlpc->activity_handler = handler; in iis2dlpc_trigger_set()
124 iis2dlpc->activity_trig = trig; in iis2dlpc_trigger_set()
220 struct iis2dlpc_data *iis2dlpc = in iis2dlpc_gpio_callback() local
222 const struct iis2dlpc_config *cfg = iis2dlpc->dev->config; in iis2dlpc_gpio_callback()
229 k_sem_give(&iis2dlpc->gpio_sem); in iis2dlpc_gpio_callback()
231 k_work_submit(&iis2dlpc->work); in iis2dlpc_gpio_callback()
241 struct iis2dlpc_data *iis2dlpc = p1; in iis2dlpc_thread() local
244 k_sem_take(&iis2dlpc->gpio_sem, K_FOREVER); in iis2dlpc_thread()
245 iis2dlpc_handle_interrupt(iis2dlpc->dev); in iis2dlpc_thread()
253 struct iis2dlpc_data *iis2dlpc = in iis2dlpc_work_cb() local
256 iis2dlpc_handle_interrupt(iis2dlpc->dev); in iis2dlpc_work_cb()
262 struct iis2dlpc_data *iis2dlpc = dev->data; in iis2dlpc_init_interrupt() local
274 k_sem_init(&iis2dlpc->gpio_sem, 0, K_SEM_MAX_LIMIT); in iis2dlpc_init_interrupt()
276 k_thread_create(&iis2dlpc->thread, iis2dlpc->thread_stack, in iis2dlpc_init_interrupt()
278 iis2dlpc_thread, iis2dlpc, in iis2dlpc_init_interrupt()
282 iis2dlpc->work.handler = iis2dlpc_work_cb; in iis2dlpc_init_interrupt()
291 gpio_init_callback(&iis2dlpc->gpio_cb, in iis2dlpc_init_interrupt()
295 if (gpio_add_callback(cfg->gpio_drdy.port, &iis2dlpc->gpio_cb) < 0) { in iis2dlpc_init_interrupt()