Home
last modified time | relevance | path

Searched refs:chdata (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.5.0/drivers/dma/
Ddma_mchp_xec.c242 static int check_blocks(struct dma_xec_channel *chdata, struct dma_block_config *block, in check_blocks() argument
245 if (!block || !chdata) { in check_blocks()
250 chdata->total_req_xfr_len = 0; in check_blocks()
264 chdata->total_req_xfr_len += block->block_size; in check_blocks()
354 struct dma_xec_channel *chdata = &data->channels[channel]; in dma_xec_configure() local
356 chdata->total_req_xfr_len = 0; in dma_xec_configure()
357 chdata->total_curr_xfr_len = 0; in dma_xec_configure()
367 ret = check_blocks(chdata, block, config->block_count, config->source_data_size); in dma_xec_configure()
373 chdata->unit_size = unit_size; in dma_xec_configure()
374 chdata->head = block; in dma_xec_configure()
[all …]
Ddma_sam0.c34 struct dma_sam0_channel *chdata; in dma_sam0_isr() local
42 chdata = &data->channels[channel]; in dma_sam0_isr()
45 if (chdata->cb) { in dma_sam0_isr()
46 chdata->cb(dev, chdata->user_data, in dma_sam0_isr()
50 if (chdata->cb) { in dma_sam0_isr()
51 chdata->cb(dev, chdata->user_data, channel, 0); in dma_sam0_isr()
/Zephyr-Core-3.5.0/drivers/counter/
Dcounter_rpi_pico_timer.c75 struct counter_rpi_pico_timer_ch_data *chdata = &data->ch_data[id]; in counter_rpi_pico_timer_set_alarm() local
86 if (chdata->callback) { in counter_rpi_pico_timer_set_alarm()
90 chdata->callback = alarm_cfg->callback; in counter_rpi_pico_timer_set_alarm()
91 chdata->user_data = alarm_cfg->user_data; in counter_rpi_pico_timer_set_alarm()
99 chdata->callback = NULL; in counter_rpi_pico_timer_set_alarm()
100 chdata->user_data = NULL; in counter_rpi_pico_timer_set_alarm()
Dcounter_nrfx_timer.c211 struct counter_nrfx_ch_data *chdata = &nrfx_config->ch_data[chan]; in set_alarm() local
217 if (chdata->callback) { in set_alarm()
221 chdata->callback = alarm_cfg->callback; in set_alarm()
222 chdata->user_data = alarm_cfg->user_data; in set_alarm()
347 struct counter_nrfx_ch_data *chdata; in alarm_irq_handle() local
354 chdata = &config->ch_data[id]; in alarm_irq_handle()
355 cb = chdata->callback; in alarm_irq_handle()
356 chdata->callback = NULL; in alarm_irq_handle()
361 cb(dev, id, cc_val, chdata->user_data); in alarm_irq_handle()
Dcounter_ll_stm32_timer.c276 struct counter_stm32_ch_data *chdata = &config->ch_data[chan]; in counter_stm32_set_alarm() local
282 if (chdata->callback) { in counter_stm32_set_alarm()
286 chdata->callback = alarm_cfg->callback; in counter_stm32_set_alarm()
287 chdata->user_data = alarm_cfg->user_data; in counter_stm32_set_alarm()
562 struct counter_stm32_ch_data *chdata; in counter_stm32_alarm_irq_handle() local
568 chdata = &config->ch_data[id]; in counter_stm32_alarm_irq_handle()
569 cb = chdata->callback; in counter_stm32_alarm_irq_handle()
570 chdata->callback = NULL; in counter_stm32_alarm_irq_handle()
575 cb(dev, id, cc_val, chdata->user_data); in counter_stm32_alarm_irq_handle()
Dcounter_nrfx_rtc.c333 struct counter_nrfx_ch_data *chdata = &nrfx_config->ch_data[chan]; in set_channel_alarm() local
339 if (chdata->callback) { in set_channel_alarm()
343 chdata->callback = alarm_cfg->callback; in set_channel_alarm()
344 chdata->user_data = alarm_cfg->user_data; in set_channel_alarm()
625 struct counter_nrfx_ch_data *chdata; in alarm_irq_handle() local
632 chdata = &config->ch_data[chan]; in alarm_irq_handle()
633 cb = chdata->callback; in alarm_irq_handle()
634 chdata->callback = NULL; in alarm_irq_handle()
643 cb(dev, chan, cc, chdata->user_data); in alarm_irq_handle()
Dcounter_gd32_timer.c283 struct counter_gd32_ch_data *chdata = &data->alarm[chan]; in counter_gd32_timer_set_alarm() local
289 if (chdata->callback) { in counter_gd32_timer_set_alarm()
293 chdata->callback = alarm_cfg->callback; in counter_gd32_timer_set_alarm()
294 chdata->user_data = alarm_cfg->user_data; in counter_gd32_timer_set_alarm()