Home
last modified time | relevance | path

Searched refs:drv_data (Results 1 – 25 of 107) sorted by relevance

12345

/Zephyr-latest/drivers/sensor/tdk/icm42605/
Dicm42605.c71 const struct icm42605_data *drv_data = dev->data; in icm42605_channel_get() local
75 icm42605_convert_accel(val, drv_data->accel_x, in icm42605_channel_get()
76 drv_data->accel_sensitivity_shift); in icm42605_channel_get()
77 icm42605_convert_accel(val + 1, drv_data->accel_y, in icm42605_channel_get()
78 drv_data->accel_sensitivity_shift); in icm42605_channel_get()
79 icm42605_convert_accel(val + 2, drv_data->accel_z, in icm42605_channel_get()
80 drv_data->accel_sensitivity_shift); in icm42605_channel_get()
83 icm42605_convert_accel(val, drv_data->accel_x, in icm42605_channel_get()
84 drv_data->accel_sensitivity_shift); in icm42605_channel_get()
87 icm42605_convert_accel(val, drv_data->accel_y, in icm42605_channel_get()
[all …]
Dicm42605_trigger.c22 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
[all …]
/Zephyr-latest/drivers/sensor/adi/adxl362/
Dadxl362_trigger.c23 struct adxl362_data *drv_data = dev->data; in adxl362_thread_cb() local
32 k_mutex_lock(&drv_data->trigger_mutex, K_FOREVER); in adxl362_thread_cb()
33 if (drv_data->inact_handler != NULL) { in adxl362_thread_cb()
35 drv_data->inact_handler(dev, drv_data->inact_trigger); in adxl362_thread_cb()
39 if (drv_data->act_handler != NULL) { in adxl362_thread_cb()
41 drv_data->act_handler(dev, drv_data->act_trigger); in adxl362_thread_cb()
45 if (drv_data->drdy_handler != NULL && in adxl362_thread_cb()
47 drv_data->drdy_handler(dev, drv_data->drdy_trigger); in adxl362_thread_cb()
49 k_mutex_unlock(&drv_data->trigger_mutex); in adxl362_thread_cb()
56 struct adxl362_data *drv_data = in adxl362_gpio_callback() local
[all …]
/Zephyr-latest/drivers/i2s/
Di2s_nrfx.c190 static bool get_next_tx_buffer(struct i2s_nrfx_drv_data *drv_data, in get_next_tx_buffer() argument
194 int ret = k_msgq_get(&drv_data->tx_queue, in get_next_tx_buffer()
204 static bool get_next_rx_buffer(struct i2s_nrfx_drv_data *drv_data, in get_next_rx_buffer() argument
207 int ret = k_mem_slab_alloc(drv_data->rx.cfg.mem_slab, in get_next_rx_buffer()
219 static void free_tx_buffer(struct i2s_nrfx_drv_data *drv_data, in free_tx_buffer() argument
222 k_mem_slab_free(drv_data->tx.cfg.mem_slab, (void *)buffer); in free_tx_buffer()
226 static void free_rx_buffer(struct i2s_nrfx_drv_data *drv_data, void *buffer) in free_rx_buffer() argument
228 k_mem_slab_free(drv_data->rx.cfg.mem_slab, buffer); in free_rx_buffer()
232 static bool supply_next_buffers(struct i2s_nrfx_drv_data *drv_data, in supply_next_buffers() argument
235 if (drv_data->active_dir != I2S_DIR_TX) { /* -> RX active */ in supply_next_buffers()
[all …]
/Zephyr-latest/drivers/sensor/ti/tmp108/
Dtmp108_trigger.c20 struct tmp108_data *drv_data = CONTAINER_OF(delayable_work, in tmp108_trigger_handle_one_shot() local
27 tmp108_reg_read(drv_data->tmp108_dev, TI_TMP108_REG_CONF, &config); in tmp108_trigger_handle_one_shot()
30 shutdown_mode = (config & (TI_TMP108_CONF_M1(drv_data->tmp108_dev) | in tmp108_trigger_handle_one_shot()
31 TI_TMP108_CONF_M0(drv_data->tmp108_dev))) == 0; in tmp108_trigger_handle_one_shot()
34 ti_tmp108_read_temp(drv_data->tmp108_dev); in tmp108_trigger_handle_one_shot()
41 k_work_reschedule(&drv_data->scheduled_work, in tmp108_trigger_handle_one_shot()
47 if (drv_data->data_ready_handler) { in tmp108_trigger_handle_one_shot()
48 drv_data->data_ready_handler(drv_data->tmp108_dev, in tmp108_trigger_handle_one_shot()
49 drv_data->data_ready_trigger); in tmp108_trigger_handle_one_shot()
58 struct tmp108_data *drv_data = CONTAINER_OF(cb, in tmp108_trigger_handle_alert() local
[all …]
/Zephyr-latest/drivers/sensor/adi/adt7310/
Dadt7310_trigger.c23 struct adt7310_data *drv_data = CONTAINER_OF(cb, struct adt7310_data, gpio_cb); in adt7310_gpio_callback() local
26 k_sem_give(&drv_data->gpio_sem); in adt7310_gpio_callback()
28 k_work_submit(&drv_data->work); in adt7310_gpio_callback()
38 struct adt7310_data *drv_data = p1; in adt7310_thread() local
41 k_sem_take(&drv_data->gpio_sem, K_FOREVER); in adt7310_thread()
42 if (drv_data->th_handler != NULL) { in adt7310_thread()
43 drv_data->th_handler(drv_data->dev, drv_data->th_trigger); in adt7310_thread()
51 struct adt7310_data *drv_data = CONTAINER_OF(work, struct adt7310_data, work); in adt7310_work_cb() local
53 if (drv_data->th_handler != NULL) { in adt7310_work_cb()
54 drv_data->th_handler(drv_data->dev, drv_data->th_trigger); in adt7310_work_cb()
[all …]
/Zephyr-latest/drivers/audio/
Ddmic_mcux.c64 static uint8_t dmic_mcux_hw_chan(struct mcux_dmic_drv_data *drv_data, in dmic_mcux_hw_chan() argument
74 dmic_parse_channel_map(drv_data->chan_map_lo, in dmic_mcux_hw_chan()
75 drv_data->chan_map_hi, in dmic_mcux_hw_chan()
84 static void dmic_mcux_activate_channels(struct mcux_dmic_drv_data *drv_data, in dmic_mcux_activate_channels() argument
95 for (uint8_t chan = 0; chan < drv_data->act_num_chan; chan++) { in dmic_mcux_activate_channels()
97 mask |= BIT(dmic_mcux_hw_chan(drv_data, chan)); in dmic_mcux_activate_channels()
101 DMIC_EnableChannnel(drv_data->base_address, mask); in dmic_mcux_activate_channels()
104 drv_data->base_address->CHANEN &= ~mask; in dmic_mcux_activate_channels()
108 static int dmic_mcux_enable_dma(struct mcux_dmic_drv_data *drv_data, bool enable) in dmic_mcux_enable_dma() argument
111 uint8_t num_chan = drv_data->act_num_chan; in dmic_mcux_enable_dma()
[all …]
/Zephyr-latest/drivers/ieee802154/
Dieee802154_cc13xx_cc26xx.c63 struct ieee802154_cc13xx_cc26xx_data *drv_data);
78 struct ieee802154_cc13xx_cc26xx_data *drv_data = dev->data; in cmd_ieee_csma_callback() local
80 update_saved_cmdhandle(ch, (RF_CmdHandle *) &drv_data->saved_cmdhandle); in cmd_ieee_csma_callback()
94 struct ieee802154_cc13xx_cc26xx_data *drv_data = dev->data; in cmd_ieee_rx_callback() local
96 update_saved_cmdhandle(ch, (RF_CmdHandle *) &drv_data->saved_cmdhandle); in cmd_ieee_rx_callback()
109 ieee802154_cc13xx_cc26xx_rx_done(drv_data); in cmd_ieee_rx_callback()
136 struct ieee802154_cc13xx_cc26xx_data *drv_data = dev->data; in ieee802154_cc13xx_cc26xx_cca() local
139 status = RF_runImmediateCmd(drv_data->rf_handle, in ieee802154_cc13xx_cc26xx_cca()
140 (uint32_t *)&drv_data->cmd_ieee_cca_req); in ieee802154_cc13xx_cc26xx_cca()
146 switch (drv_data->cmd_ieee_cca_req.ccaInfo.ccaState) { in ieee802154_cc13xx_cc26xx_cca()
[all …]
Dieee802154_cc13xx_cc26xx_subg.c305 struct ieee802154_cc13xx_cc26xx_subg_data *drv_data = dev->data; in drv_power_down() local
307 (void)RF_yield(drv_data->rf_handle); in drv_power_down()
316 struct ieee802154_cc13xx_cc26xx_subg_data *drv_data = dev->data; in cmd_prop_tx_adv_callback() local
321 op->commandNo, op->status, drv_data->cmd_prop_tx_adv.status, e); in cmd_prop_tx_adv_callback()
324 static void drv_rx_done(struct ieee802154_cc13xx_cc26xx_subg_data *drv_data) in drv_rx_done() argument
337 if (drv_data->rx_entry[i].status == DATA_ENTRY_FINISHED) { in drv_rx_done()
338 len = drv_data->rx_data[i][0]; in drv_rx_done()
339 sdu = drv_data->rx_data[i] + 1; in drv_rx_done()
340 status = drv_data->rx_data[i][len--]; in drv_rx_done()
341 rssi = drv_data->rx_data[i][len--]; in drv_rx_done()
[all …]
/Zephyr-latest/drivers/sensor/tdk/mpu9250/
Dmpu9250.c102 struct mpu9250_data *drv_data = dev->data; in mpu9250_channel_get() local
109 mpu9250_convert_accel(val, drv_data->accel_x, in mpu9250_channel_get()
110 drv_data->accel_sensitivity_shift); in mpu9250_channel_get()
111 mpu9250_convert_accel(val + 1, drv_data->accel_y, in mpu9250_channel_get()
112 drv_data->accel_sensitivity_shift); in mpu9250_channel_get()
113 mpu9250_convert_accel(val + 2, drv_data->accel_z, in mpu9250_channel_get()
114 drv_data->accel_sensitivity_shift); in mpu9250_channel_get()
117 mpu9250_convert_accel(val, drv_data->accel_x, in mpu9250_channel_get()
118 drv_data->accel_sensitivity_shift); in mpu9250_channel_get()
121 mpu9250_convert_accel(val, drv_data->accel_y, in mpu9250_channel_get()
[all …]
Dmpu9250_trigger.c23 struct mpu9250_data *drv_data = dev->data; in mpu9250_trigger_set() local
37 drv_data->data_ready_handler = handler; in mpu9250_trigger_set()
42 drv_data->data_ready_trigger = trig; in mpu9250_trigger_set()
57 struct mpu9250_data *drv_data = in mpu9250_gpio_callback() local
59 const struct mpu9250_config *cfg = drv_data->dev->config; in mpu9250_gpio_callback()
71 k_sem_give(&drv_data->gpio_sem); in mpu9250_gpio_callback()
73 k_work_submit(&drv_data->work); in mpu9250_gpio_callback()
79 struct mpu9250_data *drv_data = dev->data; in mpu9250_thread_cb() local
83 if (drv_data->data_ready_handler != NULL) { in mpu9250_thread_cb()
84 drv_data->data_ready_handler(dev, in mpu9250_thread_cb()
[all …]
/Zephyr-latest/drivers/sensor/adi/adxl367/
Dadxl367_trigger.c21 struct adxl367_data *drv_data = dev->data; in adxl367_thread_cb() local
26 ret = drv_data->hw_tf->read_reg(dev, ADXL367_STATUS, &status); in adxl367_thread_cb()
31 if (drv_data->th_handler != NULL) { in adxl367_thread_cb()
34 drv_data->th_handler(dev, drv_data->th_trigger); in adxl367_thread_cb()
38 if ((drv_data->drdy_handler != NULL) && in adxl367_thread_cb()
40 drv_data->drdy_handler(dev, drv_data->drdy_trigger); in adxl367_thread_cb()
52 struct adxl367_data *drv_data = in adxl367_gpio_callback() local
54 const struct adxl367_dev_config *cfg = drv_data->dev->config; in adxl367_gpio_callback()
59 adxl367_stream_irq_handler(drv_data->dev); in adxl367_gpio_callback()
63 k_sem_give(&drv_data->gpio_sem); in adxl367_gpio_callback()
[all …]
/Zephyr-latest/drivers/sensor/adi/adxl372/
Dadxl372_trigger.c23 struct adxl372_data *drv_data = dev->data; in adxl372_thread_cb() local
32 if (drv_data->th_handler != NULL) { in adxl372_thread_cb()
38 drv_data->th_handler(dev, drv_data->th_trigger); in adxl372_thread_cb()
42 drv_data->th_handler(dev, drv_data->th_trigger); in adxl372_thread_cb()
46 if ((drv_data->drdy_handler != NULL) && in adxl372_thread_cb()
48 drv_data->drdy_handler(dev, drv_data->drdy_trigger); in adxl372_thread_cb()
61 struct adxl372_data *drv_data = in adxl372_gpio_callback() local
63 const struct adxl372_dev_config *cfg = drv_data->dev->config; in adxl372_gpio_callback()
68 adxl372_stream_irq_handler(drv_data->dev); in adxl372_gpio_callback()
72 k_sem_give(&drv_data->gpio_sem); in adxl372_gpio_callback()
[all …]
/Zephyr-latest/drivers/sensor/ti/fdc2x1x/
Dfdc2x1x_trigger.c23 struct fdc2x1x_data *drv_data = dev->data; in fdc2x1x_thread_cb() local
42 k_mutex_lock(&drv_data->trigger_mutex, K_FOREVER); in fdc2x1x_thread_cb()
43 if ((drv_data->drdy_handler != NULL) && FDC2X1X_STATUS_DRDY(status)) { in fdc2x1x_thread_cb()
44 drv_data->drdy_handler(dev, drv_data->drdy_trigger); in fdc2x1x_thread_cb()
46 k_mutex_unlock(&drv_data->trigger_mutex); in fdc2x1x_thread_cb()
52 struct fdc2x1x_data *drv_data = in fdc2x1x_gpio_callback() local
56 k_sem_give(&drv_data->gpio_sem); in fdc2x1x_gpio_callback()
58 k_work_submit(&drv_data->work); in fdc2x1x_gpio_callback()
68 struct fdc2x1x_data *drv_data = p1; in fdc2x1x_thread() local
71 k_sem_take(&drv_data->gpio_sem, K_FOREVER); in fdc2x1x_thread()
[all …]
/Zephyr-latest/drivers/sensor/tdk/mpu6050/
Dmpu6050.c67 struct mpu6050_data *drv_data = dev->data; in mpu6050_channel_get() local
71 mpu6050_convert_accel(val, drv_data->accel_x, in mpu6050_channel_get()
72 drv_data->accel_sensitivity_shift); in mpu6050_channel_get()
73 mpu6050_convert_accel(val + 1, drv_data->accel_y, in mpu6050_channel_get()
74 drv_data->accel_sensitivity_shift); in mpu6050_channel_get()
75 mpu6050_convert_accel(val + 2, drv_data->accel_z, in mpu6050_channel_get()
76 drv_data->accel_sensitivity_shift); in mpu6050_channel_get()
79 mpu6050_convert_accel(val, drv_data->accel_x, in mpu6050_channel_get()
80 drv_data->accel_sensitivity_shift); in mpu6050_channel_get()
83 mpu6050_convert_accel(val, drv_data->accel_y, in mpu6050_channel_get()
[all …]
Dmpu6050_trigger.c21 struct mpu6050_data *drv_data = dev->data; in mpu6050_trigger_set() local
34 drv_data->data_ready_handler = handler; in mpu6050_trigger_set()
39 drv_data->data_ready_trigger = trig; in mpu6050_trigger_set()
50 struct mpu6050_data *drv_data = in mpu6050_gpio_callback() local
52 const struct mpu6050_config *cfg = drv_data->dev->config; in mpu6050_gpio_callback()
59 k_sem_give(&drv_data->gpio_sem); in mpu6050_gpio_callback()
61 k_work_submit(&drv_data->work); in mpu6050_gpio_callback()
67 struct mpu6050_data *drv_data = dev->data; in mpu6050_thread_cb() local
70 if (drv_data->data_ready_handler != NULL) { in mpu6050_thread_cb()
71 drv_data->data_ready_handler(dev, in mpu6050_thread_cb()
[all …]
/Zephyr-latest/drivers/sensor/grow_r502a/
Dgrow_r502a_trigger.c32 struct grow_r502a_data *drv_data = dev->data; in process_int() local
34 if (drv_data->th_handler != NULL) { in process_int()
35 drv_data->th_handler(dev, drv_data->th_trigger); in process_int()
44 struct grow_r502a_data *drv_data = dev->data; in grow_r502a_trigger_set() local
47 drv_data->th_handler = handler; in grow_r502a_trigger_set()
48 drv_data->th_trigger = trig; in grow_r502a_trigger_set()
61 struct grow_r502a_data *drv_data = in grow_r502a_gpio_callback() local
64 setup_int(drv_data->gpio_dev, false); in grow_r502a_gpio_callback()
67 k_sem_give(&drv_data->gpio_sem); in grow_r502a_gpio_callback()
69 k_work_submit(&drv_data->work); in grow_r502a_gpio_callback()
[all …]
/Zephyr-latest/drivers/sensor/honeywell/hmc5883l/
Dhmc5883l_trigger.c24 struct hmc5883l_data *drv_data = dev->data; in hmc5883l_trigger_set() local
35 drv_data->data_ready_handler = handler; in hmc5883l_trigger_set()
40 drv_data->data_ready_trigger = trig; in hmc5883l_trigger_set()
51 struct hmc5883l_data *drv_data = in hmc5883l_gpio_callback() local
53 const struct hmc5883l_config *config = drv_data->dev->config; in hmc5883l_gpio_callback()
60 k_sem_give(&drv_data->gpio_sem); in hmc5883l_gpio_callback()
62 k_work_submit(&drv_data->work); in hmc5883l_gpio_callback()
68 struct hmc5883l_data *drv_data = dev->data; in hmc5883l_thread_cb() local
71 if (drv_data->data_ready_handler != NULL) { in hmc5883l_thread_cb()
72 drv_data->data_ready_handler(dev, in hmc5883l_thread_cb()
[all …]
/Zephyr-latest/drivers/gpio/
Dgpio_emul.c120 struct gpio_emul_data *drv_data = in get_pins_with_flags() local
126 if ((drv_data->flags[i] & mask) == flags) { in get_pins_with_flags()
192 struct gpio_emul_data *drv_data = in gpio_emul_gen_interrupt_bits() local
206 switch (drv_data->flags[i] & GPIO_EMUL_INT_BITMASK) { in gpio_emul_gen_interrupt_bits()
210 drv_data->interrupts |= BIT(i); in gpio_emul_gen_interrupt_bits()
211 *interrupts |= (BIT(i) & drv_data->enabled_interrupts); in gpio_emul_gen_interrupt_bits()
218 drv_data->interrupts |= BIT(i); in gpio_emul_gen_interrupt_bits()
219 *interrupts |= (BIT(i) & drv_data->enabled_interrupts); in gpio_emul_gen_interrupt_bits()
227 drv_data->interrupts |= BIT(i); in gpio_emul_gen_interrupt_bits()
228 *interrupts |= (BIT(i) & drv_data->enabled_interrupts); in gpio_emul_gen_interrupt_bits()
[all …]
Dgpio_mcp23xxx.c88 struct mcp23xxx_drv_data *drv_data = dev->data; in write_iocon() local
94 drv_data->reg_cache.iocon = extended_value; in write_iocon()
110 struct mcp23xxx_drv_data *drv_data = dev->data; in setup_pin_dir() local
111 uint16_t dir = drv_data->reg_cache.iodir; in setup_pin_dir()
112 uint16_t output = drv_data->reg_cache.gpio; in setup_pin_dir()
131 drv_data->reg_cache.gpio = output; in setup_pin_dir()
135 drv_data->reg_cache.iodir = dir; in setup_pin_dir()
151 struct mcp23xxx_drv_data *drv_data = dev->data; in setup_pin_pull() local
155 port = drv_data->reg_cache.gppu; in setup_pin_pull()
165 drv_data->reg_cache.gppu = port; in setup_pin_pull()
[all …]
/Zephyr-latest/drivers/sensor/adi/adt7420/
Dadt7420_trigger.c32 struct adt7420_data *drv_data = dev->data; in handle_int() local
37 k_sem_give(&drv_data->gpio_sem); in handle_int()
39 k_work_submit(&drv_data->work); in handle_int()
45 struct adt7420_data *drv_data = dev->data; in process_int() local
55 if (drv_data->th_handler != NULL) { in process_int()
56 drv_data->th_handler(dev, drv_data->th_trigger); in process_int()
72 struct adt7420_data *drv_data = in adt7420_gpio_callback() local
75 handle_int(drv_data->dev); in adt7420_gpio_callback()
84 struct adt7420_data *drv_data = p1; in adt7420_thread() local
87 k_sem_take(&drv_data->gpio_sem, K_FOREVER); in adt7420_thread()
[all …]
/Zephyr-latest/drivers/sensor/st/lis3mdl/
Dlis3mdl_trigger.c24 struct lis3mdl_data *drv_data = dev->data; in lis3mdl_trigger_set() local
44 drv_data->data_ready_handler = handler; in lis3mdl_trigger_set()
49 drv_data->data_ready_trigger = trig; in lis3mdl_trigger_set()
60 struct lis3mdl_data *drv_data = in lis3mdl_gpio_callback() local
62 const struct lis3mdl_config *config = drv_data->dev->config; in lis3mdl_gpio_callback()
69 k_sem_give(&drv_data->gpio_sem); in lis3mdl_gpio_callback()
71 k_work_submit(&drv_data->work); in lis3mdl_gpio_callback()
77 struct lis3mdl_data *drv_data = dev->data; in lis3mdl_thread_cb() local
80 if (drv_data->data_ready_handler != NULL) { in lis3mdl_thread_cb()
81 drv_data->data_ready_handler(dev, in lis3mdl_thread_cb()
[all …]
/Zephyr-latest/drivers/sensor/st/lsm6dsl/
Dlsm6dsl_trigger.c33 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()
[all …]
/Zephyr-latest/drivers/sensor/ti/tmp007/
Dtmp007_trigger.c72 struct tmp007_data *drv_data = in tmp007_gpio_callback() local
75 setup_int(drv_data->dev, false); in tmp007_gpio_callback()
78 k_sem_give(&drv_data->gpio_sem); in tmp007_gpio_callback()
80 k_work_submit(&drv_data->work); in tmp007_gpio_callback()
86 struct tmp007_data *drv_data = dev->data; in tmp007_thread_cb() local
95 drv_data->drdy_handler != NULL) { in tmp007_thread_cb()
96 drv_data->drdy_handler(dev, drv_data->drdy_trigger); in tmp007_thread_cb()
100 drv_data->th_handler != NULL) { in tmp007_thread_cb()
101 drv_data->th_handler(dev, drv_data->th_trigger); in tmp007_thread_cb()
113 struct tmp007_data *drv_data = p1; in tmp007_thread() local
[all …]
/Zephyr-latest/drivers/sensor/adi/adxl345/
Dadxl345_trigger.c23 struct adxl345_dev_data *drv_data = dev->data; in adxl345_thread_cb() local
32 if ((drv_data->drdy_handler != NULL) && in adxl345_thread_cb()
34 drv_data->drdy_handler(dev, drv_data->drdy_trigger); in adxl345_thread_cb()
46 struct adxl345_dev_data *drv_data = in adxl345_gpio_callback() local
48 const struct adxl345_dev_config *cfg = drv_data->dev->config; in adxl345_gpio_callback()
53 adxl345_stream_irq_handler(drv_data->dev); in adxl345_gpio_callback()
57 k_sem_give(&drv_data->gpio_sem); in adxl345_gpio_callback()
59 k_work_submit(&drv_data->work); in adxl345_gpio_callback()
69 struct adxl345_dev_data *drv_data = p1; in adxl345_thread() local
72 k_sem_take(&drv_data->gpio_sem, K_FOREVER); in adxl345_thread()
[all …]

12345