/Zephyr-latest/drivers/dma/ |
D | dma_esp32_gdma.c | 59 uint8_t channel_id; member 86 gdma_ll_rx_clear_interrupt_status(data->hal.dev, rx->channel_id, intr_status); in dma_esp32_isr_handle_rx() 101 rx->cb(dev, rx->user_data, rx->channel_id * 2, status); in dma_esp32_isr_handle_rx() 110 gdma_ll_tx_clear_interrupt_status(data->hal.dev, tx->channel_id, intr_status); in dma_esp32_isr_handle_tx() 115 tx->cb(dev, tx->user_data, tx->channel_id * 2 + 1, -intr_status); in dma_esp32_isr_handle_tx() 128 intr_status = gdma_ll_rx_get_interrupt_status(data->hal.dev, dma_channel_rx->channel_id); in dma_esp32_isr_handle() 133 intr_status = gdma_ll_tx_get_interrupt_status(data->hal.dev, dma_channel_tx->channel_id); in dma_esp32_isr_handle() 194 gdma_ll_rx_reset_channel(data->hal.dev, dma_channel->channel_id); in dma_esp32_config_rx() 197 data->hal.dev, dma_channel->channel_id, in dma_esp32_config_rx() 207 gdma_ll_rx_enable_data_burst(data->hal.dev, dma_channel->channel_id, in dma_esp32_config_rx() [all …]
|
/Zephyr-latest/subsys/task_wdt/ |
D | task_wdt.c | 104 uintptr_t channel_id = (uintptr_t)k_timer_user_data_get(timer_id); in task_wdt_trigger() local 106 (channel_id == TASK_WDT_BACKGROUND_CHANNEL); in task_wdt_trigger() 113 if (bg_channel || channels[channel_id].reload_period == 0) { in task_wdt_trigger() 118 if (channels[channel_id].callback) { in task_wdt_trigger() 119 channels[channel_id].callback(channel_id, in task_wdt_trigger() 120 channels[channel_id].user_data); in task_wdt_trigger() 200 int task_wdt_delete(int channel_id) in task_wdt_delete() argument 204 if (channel_id < 0 || channel_id >= ARRAY_SIZE(channels)) { in task_wdt_delete() 210 channels[channel_id].reload_period = 0; in task_wdt_delete() 217 int task_wdt_feed(int channel_id) in task_wdt_feed() argument [all …]
|
/Zephyr-latest/soc/intel/intel_adsp/ace/include/ace15_mtpm/ |
D | adsp_watchdog.h | 17 * @param channel_id Channel identifier 19 int intel_adsp_watchdog_pause(const struct device *dev, const int channel_id); 27 * @param channel_id Channel identifier 29 int intel_adsp_watchdog_resume(const struct device *dev, const int channel_id);
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/caching/src/ |
D | common.c | 23 #define CHANNEL_ID 0 macro 31 uint channel_numbers[] = { CHANNEL_ID }; in backchannel_init() 46 bs_bc_send_msg(CHANNEL_ID, sync_msg, ARRAY_SIZE(sync_msg)); in backchannel_sync_send() 54 if (bs_bc_is_msg_received(CHANNEL_ID) > 0) { in backchannel_sync_wait() 55 bs_bc_receive_msg(CHANNEL_ID, sync_msg, ARRAY_SIZE(sync_msg)); in backchannel_sync_wait()
|
/Zephyr-latest/tests/bsim/babblekit/src/ |
D | sync.c | 18 #define CHANNEL_ID 0 macro 26 uint channel_numbers[] = { CHANNEL_ID }; in bk_sync_init() 45 bs_bc_send_msg(CHANNEL_ID, sync_msg, ARRAY_SIZE(sync_msg)); in bk_sync_send() 55 if (bs_bc_is_msg_received(CHANNEL_ID) > 0) { in bk_sync_wait() 56 bs_bc_receive_msg(CHANNEL_ID, sync_msg, ARRAY_SIZE(sync_msg)); in bk_sync_wait()
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disconnect/common/ |
D | sync.c | 19 #define CHANNEL_ID 0 macro 27 uint channel_numbers[] = { CHANNEL_ID }; in backchannel_init() 45 bs_bc_send_msg(CHANNEL_ID, sync_msg, ARRAY_SIZE(sync_msg)); in backchannel_sync_send() 53 if (bs_bc_is_msg_received(CHANNEL_ID) > 0) { in backchannel_sync_wait() 54 bs_bc_receive_msg(CHANNEL_ID, sync_msg, ARRAY_SIZE(sync_msg)); in backchannel_sync_wait()
|
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/legacy/src/ |
D | bs_bt_utils.c | 30 #define CHANNEL_ID 0 macro 37 uint channel_numbers[] = { CHANNEL_ID }; in backchannel_init() 52 bs_bc_send_msg(CHANNEL_ID, sync_msg, ARRAY_SIZE(sync_msg)); in backchannel_sync_send() 60 if (bs_bc_is_msg_received(CHANNEL_ID) > 0) { in backchannel_sync_wait() 61 bs_bc_receive_msg(CHANNEL_ID, sync_msg, in backchannel_sync_wait()
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_nrfx.c | 67 int channel_id; in wdt_nrf_disable() local 78 for (channel_id = 0; channel_id < data->m_allocated_channels; channel_id++) { in wdt_nrf_disable() 79 data->m_callbacks[channel_id] = NULL; in wdt_nrf_disable() 97 nrfx_wdt_channel_id channel_id; in wdt_nrf_install_timeout() local 130 &channel_id); in wdt_nrf_install_timeout() 137 data->m_callbacks[channel_id] = cfg->callback; in wdt_nrf_install_timeout() 141 return channel_id; in wdt_nrf_install_timeout() 144 static int wdt_nrf_feed(const struct device *dev, int channel_id) in wdt_nrf_feed() argument 149 if ((channel_id >= data->m_allocated_channels) || (channel_id < 0)) { in wdt_nrf_feed() 158 (nrfx_wdt_channel_id)channel_id); in wdt_nrf_feed()
|
D | wdt_shell.c | 25 "<device> <channel_id>" 38 uint8_t channel_id; member 46 .channel_id = 2, 146 int channel_id; in cmd_feed() local 154 channel_id = parse_named_int(argv[args_indx.channel_id], NULL, 0); in cmd_feed() 155 if (channel_id < 0) { in cmd_feed() 156 shell_error(sh, "Unable to convert '%s' to integer", argv[args_indx.channel_id]); in cmd_feed() 160 return wdt_feed(dev, channel_id); in cmd_feed()
|
D | wdt_intel_adsp.c | 119 static int intel_adsp_wdt_feed(const struct device *dev, int channel_id) in intel_adsp_wdt_feed() argument 123 if (channel_id >= arch_num_cpus()) { in intel_adsp_wdt_feed() 127 dw_wdt_counter_restart(dev_data->core_wdt[channel_id]); in intel_adsp_wdt_feed() 180 * @param channel_id Channel identifier 182 int intel_adsp_watchdog_pause(const struct device *dev, const int channel_id) in intel_adsp_watchdog_pause() argument 186 if (channel_id >= arch_num_cpus()) { in intel_adsp_watchdog_pause() 190 intel_adsp_wdt_pause(dev_config->base, channel_id); in intel_adsp_watchdog_pause() 200 * @param channel_id Channel identifier 202 int intel_adsp_watchdog_resume(const struct device *dev, const int channel_id) in intel_adsp_watchdog_resume() argument 206 if (channel_id >= arch_num_cpus()) { in intel_adsp_watchdog_resume() [all …]
|
/Zephyr-latest/drivers/counter/ |
D | counter_nxp_mrt.c | 67 int channel_id = MRT_CHANNEL_ID(dev); in nxp_mrt_stop() local 69 LOG_DBG("MRT@%p channel %d stopped", base, channel_id); in nxp_mrt_stop() 73 base->CHANNEL[channel_id].INTVAL = MRT_CHANNEL_INTVAL_LOAD(1); in nxp_mrt_stop() 83 int channel_id = MRT_CHANNEL_ID(dev); in nxp_mrt_start() local 88 base, channel_id, config->info.max_top_value); in nxp_mrt_start() 93 base->CHANNEL[channel_id].INTVAL = data->top; in nxp_mrt_start() 95 LOG_DBG("MRT@%p channel %d started with top value %d", base, channel_id, data->top); in nxp_mrt_start() 104 int channel_id = MRT_CHANNEL_ID(dev); in nxp_mrt_get_value() local 106 *ticks = base->CHANNEL[channel_id].TIMER & MRT_CHANNEL_TIMER_VALUE_MASK; in nxp_mrt_get_value() 117 int channel_id = MRT_CHANNEL_ID(dev); in nxp_mrt_set_top_value() local [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/central/src/ |
D | bs_bt_utils.c | 13 #define CHANNEL_ID 0 macro 35 uint channel_numbers[] = {CHANNEL_ID}; in backchannel_init() 49 bs_bc_send_msg(CHANNEL_ID, sync_msg, ARRAY_SIZE(sync_msg)); in backchannel_sync_send() 57 if (bs_bc_is_msg_received(CHANNEL_ID) > 0) { in backchannel_sync_wait() 58 bs_bc_receive_msg(CHANNEL_ID, sync_msg, ARRAY_SIZE(sync_msg)); in backchannel_sync_wait()
|
/Zephyr-latest/drivers/ps2/ |
D | ps2_npcx_controller.h | 20 * @param channel_id Channel ID of the PS/2 to write data. 27 int ps2_npcx_ctrl_write(const struct device *dev, uint8_t channel_id, 34 * @param channel_id Channel ID of the PS/2 to enable or disable. 47 * @param channel_id Channel ID of the PS/2 to configure the callback_isr. 53 int ps2_npcx_ctrl_configure(const struct device *dev, uint8_t channel_id,
|
D | ps2_npcx_channel.c | 32 uint8_t channel_id; member 45 ret = ps2_npcx_ctrl_configure(config->ps2_ctrl, config->channel_id, in ps2_npcx_ch_configure() 52 config->channel_id, 1); in ps2_npcx_ch_configure() 59 return ps2_npcx_ctrl_write(config->ps2_ctrl, config->channel_id, value); in ps2_npcx_ch_write() 67 config->channel_id, 1); in ps2_npcx_ch_enable_interface() 75 config->channel_id, 0); in ps2_npcx_ch_inhibit_interface() 113 .channel_id = DT_INST_PROP(inst, channel), \
|
D | ps2_npcx_controller.c | 73 static uint8_t ps2_npcx_ctrl_get_ch_clk_mask(uint8_t channel_id) in ps2_npcx_ctrl_get_ch_clk_mask() argument 75 return BIT(NPCX_PSOSIG_CLK(channel_id)); in ps2_npcx_ctrl_get_ch_clk_mask() 78 int ps2_npcx_ctrl_configure(const struct device *dev, uint8_t channel_id, in ps2_npcx_ctrl_configure() argument 83 if (channel_id >= NPCX_PS2_CH_COUNT) { in ps2_npcx_ctrl_configure() 84 LOG_ERR("unexpected channel ID: %d", channel_id); in ps2_npcx_ctrl_configure() 93 data->callback_isr[channel_id] = callback_isr; in ps2_npcx_ctrl_configure() 99 int ps2_npcx_ctrl_enable_interface(const struct device *dev, uint8_t channel_id, in ps2_npcx_ctrl_enable_interface() argument 113 if (channel_id >= NPCX_PS2_CH_COUNT) { in ps2_npcx_ctrl_enable_interface() 114 LOG_ERR("unexpected channel ID: %d", channel_id); in ps2_npcx_ctrl_enable_interface() 120 ch_clk_mask = ps2_npcx_ctrl_get_ch_clk_mask(channel_id); in ps2_npcx_ctrl_enable_interface() [all …]
|
/Zephyr-latest/drivers/adc/ |
D | adc_esp32.c | 258 for (uint8_t channel_id = 0; channel_id < conf->channel_count; channel_id++) { in adc_esp32_fill_digi_pattern() local 261 *unit_attenuation = data->attenuation[channel_id]; in adc_esp32_fill_digi_pattern() 262 } else if (*unit_attenuation != data->attenuation[channel_id]) { in adc_esp32_fill_digi_pattern() 264 (unsigned int)channel_id, (unsigned int)conf->unit); in adc_esp32_fill_digi_pattern() 268 adc_digi_pattern_config->atten = data->attenuation[channel_id]; in adc_esp32_fill_digi_pattern() 269 adc_digi_pattern_config->channel = channel_id; in adc_esp32_fill_digi_pattern() 392 uint8_t channel_id = find_lsb_set(seq->channels) - 1; in adc_esp32_read() local 400 if (seq->channels > BIT(channel_id)) { in adc_esp32_read() 431 data->resolution[channel_id] = seq->resolution; in adc_esp32_read() 439 adc_set_data_width(conf->unit, data->resolution[channel_id]); in adc_esp32_read() [all …]
|
D | adc_vf610.c | 31 uint8_t channel_id; member 37 uint8_t channel_id = channel_cfg->channel_id; in vf610_adc_channel_setup() local 39 if (channel_id > (ADC_HC0_ADCH_MASK >> ADC_HC0_ADCH_SHIFT)) { in vf610_adc_channel_setup() 40 LOG_ERR("Channel %d is not valid", channel_id); in vf610_adc_channel_setup() 157 data->channel_id = find_lsb_set(data->channels) - 1; in vf610_adc_start_channel() 159 LOG_DBG("Starting channel %d", data->channel_id); in vf610_adc_start_channel() 163 ADC_TriggerSingleConvert(config->base, data->channel_id); in vf610_adc_start_channel() 198 data->channel_id, result); in vf610_adc_isr() 201 data->channels &= ~BIT(data->channel_id); in vf610_adc_isr()
|
D | adc_nrfx_saadc.c | 182 uint8_t channel_id = channel_cfg->channel_id; in adc_nrfx_channel_setup() local 185 if (channel_id >= SAADC_CH_NUM) { in adc_nrfx_channel_setup() 274 m_data.single_ended_channels &= ~BIT(channel_cfg->channel_id); in adc_nrfx_channel_setup() 277 m_data.single_ended_channels |= BIT(channel_cfg->channel_id); in adc_nrfx_channel_setup() 301 m_data.positive_inputs[channel_id] = channel_cfg->input_positive; in adc_nrfx_channel_setup() 303 nrf_saadc_channel_init(NRF_SAADC, channel_id, &config); in adc_nrfx_channel_setup() 309 channel_id, in adc_nrfx_channel_setup() 475 uint8_t channel_id; in start_read() local 491 channel_id = 0U; in start_read() 493 if (selected_channels & BIT(channel_id)) { in start_read() [all …]
|
D | adc_sam_afec.c | 61 uint8_t channel_id; member 77 uint8_t channel_id = channel_cfg->channel_id; in adc_sam_channel_setup() local 80 afec->AFEC_CGR &= ~(3 << channel_id * 2U); in adc_sam_channel_setup() 87 afec->AFEC_CGR |= (1 << (channel_id * 2U)); in adc_sam_channel_setup() 90 afec->AFEC_CGR |= (2 << (channel_id * 2U)); in adc_sam_channel_setup() 129 data->channel_id = find_lsb_set(data->channels) - 1; in adc_sam_start_conversion() 131 LOG_DBG("Starting channel %d", data->channel_id); in adc_sam_start_conversion() 140 afec->AFEC_CHER = (1 << data->channel_id); in adc_sam_start_conversion() 143 afec->AFEC_IER = (1 << data->channel_id); in adc_sam_start_conversion() 349 afec->AFEC_CHDR |= BIT(data->channel_id); in adc_sam_isr() [all …]
|
D | adc_mcux_adc12.c | 40 uint8_t channel_id; member 46 uint8_t channel_id = channel_cfg->channel_id; in mcux_adc12_channel_setup() local 48 if (channel_id > (ADC_SC1_ADCH_MASK >> ADC_SC1_ADCH_SHIFT)) { in mcux_adc12_channel_setup() 49 LOG_ERR("Invalid channel %d", channel_id); in mcux_adc12_channel_setup() 164 data->channel_id = find_lsb_set(data->channels) - 1; in mcux_adc12_start_channel() 166 LOG_DBG("Starting channel %d", data->channel_id); in mcux_adc12_start_channel() 168 channel_config.channelNumber = data->channel_id; in mcux_adc12_start_channel() 170 if (data->channel_id >= 16) { in mcux_adc12_start_channel() 213 data->channel_id, result); in mcux_adc12_isr() 216 data->channels &= ~BIT(data->channel_id); in mcux_adc12_isr()
|
/Zephyr-latest/drivers/mbox/ |
D | mbox_handlers.c | 11 mbox_channel_id_t channel_id, in z_vrfy_mbox_send() argument 18 return z_impl_mbox_send(dev, channel_id, msg); in z_vrfy_mbox_send() 39 mbox_channel_id_t channel_id, in z_vrfy_mbox_set_enabled() argument 44 return z_impl_mbox_set_enabled(dev, channel_id, enabled); in z_vrfy_mbox_set_enabled()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | mbox.h | 91 mbox_channel_id_t channel_id; member 125 .channel_id = DT_MBOX_CHANNEL_BY_NAME(node_id, name), \ 151 * @param channel_id Channel ID 156 mbox_channel_id_t channel_id, void *user_data, 163 * @param channel_id Channel ID 170 mbox_channel_id_t channel_id, 187 * @param channel_id Channel ID 196 mbox_channel_id_t channel_id, 203 * @param channel_id Channel ID 210 mbox_channel_id_t channel_id, bool enabled); [all …]
|
/Zephyr-latest/include/zephyr/task_wdt/ |
D | task_wdt.h | 38 typedef void (*task_wdt_callback_t)(int channel_id, void *user_data); 68 * @retval channel_id If successful, a non-negative value indicating the index 84 * @param channel_id Index of the channel as returned by task_wdt_add(). 89 int task_wdt_delete(int channel_id); 98 * @param channel_id Index of the fed channel as returned by task_wdt_add(). 103 int task_wdt_feed(int channel_id);
|
/Zephyr-latest/samples/drivers/mbox/src/ |
D | main.c | 12 static void callback(const struct device *dev, mbox_channel_id_t channel_id, in callback() argument 15 printk("Pong (on channel %d)\n", channel_id); in callback() 38 printk("Could not enable RX channel %d (%d)\n", rx_channel.channel_id, ret); in main() 56 printk("Ping (on channel %d)\n", tx_channel.channel_id); in main()
|
/Zephyr-latest/samples/drivers/mbox/remote/src/ |
D | main.c | 16 static void callback(const struct device *dev, mbox_channel_id_t channel_id, in callback() argument 19 printk("Pong (on channel %d)\n", channel_id); in callback() 42 printk("Could not enable RX channel %d (%d)\n", rx_channel.channel_id, ret); in main() 60 printk("Ping (on channel %d)\n", tx_channel.channel_id); in main()
|