Lines Matching refs:drv_data

22 	struct icm42605_data *drv_data = dev->data;  in icm42605_trigger_set()  local
39 drv_data->data_ready_handler = handler; in icm42605_trigger_set()
40 drv_data->data_ready_trigger = trig; in icm42605_trigger_set()
42 drv_data->tap_handler = handler; in icm42605_trigger_set()
43 drv_data->tap_trigger = trig; in icm42605_trigger_set()
44 drv_data->tap_en = true; in icm42605_trigger_set()
46 drv_data->double_tap_handler = handler; in icm42605_trigger_set()
47 drv_data->double_tap_trigger = trig; in icm42605_trigger_set()
48 drv_data->tap_en = true; in icm42605_trigger_set()
63 struct icm42605_data *drv_data = in icm42605_gpio_callback() local
65 const struct icm42605_config *cfg = drv_data->dev->config; in icm42605_gpio_callback()
71 k_sem_give(&drv_data->gpio_sem); in icm42605_gpio_callback()
76 struct icm42605_data *drv_data = dev->data; in icm42605_thread_cb() local
79 if (drv_data->data_ready_handler != NULL) { in icm42605_thread_cb()
80 drv_data->data_ready_handler(dev, in icm42605_thread_cb()
81 drv_data->data_ready_trigger); in icm42605_thread_cb()
84 if (drv_data->tap_handler != NULL || in icm42605_thread_cb()
85 drv_data->double_tap_handler != NULL) { in icm42605_thread_cb()
97 struct icm42605_data *drv_data = p1; in icm42605_thread() local
100 k_sem_take(&drv_data->gpio_sem, K_FOREVER); in icm42605_thread()
101 icm42605_thread_cb(drv_data->dev); in icm42605_thread()
107 struct icm42605_data *drv_data = dev->data; in icm42605_init_interrupt() local
116 drv_data->dev = dev; in icm42605_init_interrupt()
119 gpio_init_callback(&drv_data->gpio_cb, icm42605_gpio_callback, BIT(cfg->gpio_int.pin)); in icm42605_init_interrupt()
120 result = gpio_add_callback(cfg->gpio_int.port, &drv_data->gpio_cb); in icm42605_init_interrupt()
127 k_sem_init(&drv_data->gpio_sem, 0, K_SEM_MAX_LIMIT); in icm42605_init_interrupt()
129 k_thread_create(&drv_data->thread, drv_data->thread_stack, in icm42605_init_interrupt()
130 CONFIG_ICM42605_THREAD_STACK_SIZE, icm42605_thread, drv_data, NULL, NULL, in icm42605_init_interrupt()