Lines Matching refs:bmg160

34 	struct bmg160_device_data *bmg160 =  in bmg160_gpio_callback()  local
41 k_sem_give(&bmg160->trig_sem); in bmg160_gpio_callback()
43 k_work_submit(&bmg160->work); in bmg160_gpio_callback()
51 struct bmg160_device_data *bmg160 = dev->data; in bmg160_anymotion_set() local
65 bmg160->anymotion_handler = handler; in bmg160_anymotion_set()
66 bmg160->anymotion_trig = trig; in bmg160_anymotion_set()
75 struct bmg160_device_data *bmg160 = dev->data; in bmg160_drdy_set() local
83 bmg160->drdy_handler = handler; in bmg160_drdy_set()
84 bmg160->drdy_trig = trig; in bmg160_drdy_set()
92 struct bmg160_device_data *bmg160 = dev->data; in bmg160_slope_config() local
99 range_dps = BMG160_SCALE_TO_RANGE(bmg160->scale); in bmg160_slope_config()
145 struct bmg160_device_data *bmg160 = dev->data; in bmg160_handle_anymotion_int() local
147 if (bmg160->anymotion_handler) { in bmg160_handle_anymotion_int()
148 bmg160->anymotion_handler(dev, bmg160->anymotion_trig); in bmg160_handle_anymotion_int()
156 struct bmg160_device_data *bmg160 = dev->data; in bmg160_handle_dataready_int() local
158 if (bmg160->drdy_handler) { in bmg160_handle_dataready_int()
159 bmg160->drdy_handler(dev, bmg160->drdy_trig); in bmg160_handle_dataready_int()
189 struct bmg160_device_data *bmg160 = p1; in bmg160_thread_main() local
192 k_sem_take(&bmg160->trig_sem, K_FOREVER); in bmg160_thread_main()
194 bmg160_handle_int(bmg160->dev); in bmg160_thread_main()
202 struct bmg160_device_data *bmg160 = in bmg160_work_cb() local
205 bmg160_handle_int(bmg160->dev); in bmg160_work_cb()
212 struct bmg160_device_data *bmg160 = dev->data; in bmg160_trigger_init() local
247 bmg160->dev = dev; in bmg160_trigger_init()
250 k_sem_init(&bmg160->trig_sem, 0, K_SEM_MAX_LIMIT); in bmg160_trigger_init()
254 bmg160, NULL, NULL, in bmg160_trigger_init()
259 bmg160->work.handler = bmg160_work_cb; in bmg160_trigger_init()
267 gpio_init_callback(&bmg160->gpio_cb, bmg160_gpio_callback, in bmg160_trigger_init()
270 ret = gpio_add_callback(cfg->int_gpio.port, &bmg160->gpio_cb); in bmg160_trigger_init()