Home
last modified time | relevance | path

Searched refs:channel_id (Results 1 – 25 of 162) sorted by relevance

1234567

/Zephyr-Core-3.7.0/include/zephyr/drivers/
Dmbox.h91 mbox_channel_id_t channel_id; member
125 .channel_id = DT_MBOX_CHANNEL_BY_NAME(node_id, name), \
156 mbox_channel_id_t channel_id, void *user_data,
170 mbox_channel_id_t channel_id,
196 mbox_channel_id_t channel_id,
210 mbox_channel_id_t channel_id, bool enabled);
263 __syscall int mbox_send(const struct device *dev, mbox_channel_id_t channel_id,
267 mbox_channel_id_t channel_id, in z_impl_mbox_send() argument
277 return api->send(dev, channel_id, msg); in z_impl_mbox_send()
291 return mbox_send(spec->dev, spec->channel_id, msg); in mbox_send_dt()
[all …]
Dwatchdog.h87 typedef void (*wdt_callback_t)(const struct device *dev, int channel_id);
134 typedef int (*wdt_api_feed)(const struct device *dev, int channel_id);
240 __syscall int wdt_feed(const struct device *dev, int channel_id);
242 static inline int z_impl_wdt_feed(const struct device *dev, int channel_id) in z_impl_wdt_feed() argument
247 return api->feed(dev, channel_id); in z_impl_wdt_feed()
/Zephyr-Core-3.7.0/subsys/task_wdt/
Dtask_wdt.c104 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-Core-3.7.0/drivers/dma/
Ddma_esp32_gdma.c57 uint8_t channel_id; member
83 gdma_ll_rx_clear_interrupt_status(data->hal.dev, rx->channel_id, intr_status); in dma_esp32_isr_handle_rx()
90 rx->cb(dev, rx->user_data, rx->channel_id*2, -intr_status); in dma_esp32_isr_handle_rx()
99 gdma_ll_tx_clear_interrupt_status(data->hal.dev, tx->channel_id, intr_status); in dma_esp32_isr_handle_tx()
104 tx->cb(dev, tx->user_data, tx->channel_id*2 + 1, -intr_status); in dma_esp32_isr_handle_tx()
117 intr_status = gdma_ll_rx_get_interrupt_status(data->hal.dev, dma_channel_rx->channel_id); in dma_esp32_isr_handle()
122 intr_status = gdma_ll_tx_get_interrupt_status(data->hal.dev, dma_channel_tx->channel_id); in dma_esp32_isr_handle()
154 gdma_ll_rx_reset_channel(data->hal.dev, dma_channel->channel_id); in dma_esp32_config_rx()
157 data->hal.dev, dma_channel->channel_id, in dma_esp32_config_rx()
167 gdma_ll_rx_enable_data_burst(data->hal.dev, dma_channel->channel_id, in dma_esp32_config_rx()
[all …]
/Zephyr-Core-3.7.0/drivers/counter/
Dcounter_nxp_mrt.c67 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-Core-3.7.0/drivers/watchdog/
Dwdt_nrfx.c67 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
129 &channel_id); in wdt_nrf_install_timeout()
136 data->m_callbacks[channel_id] = cfg->callback; in wdt_nrf_install_timeout()
140 return channel_id; in wdt_nrf_install_timeout()
143 static int wdt_nrf_feed(const struct device *dev, int channel_id) in wdt_nrf_feed() argument
148 if ((channel_id >= data->m_allocated_channels) || (channel_id < 0)) { in wdt_nrf_feed()
157 (nrfx_wdt_channel_id)channel_id); in wdt_nrf_feed()
Dwdt_intel_adsp.c119 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()
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()
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()
210 intel_adsp_wdt_resume(dev_config->base, channel_id); in intel_adsp_watchdog_resume()
Dwdt_shell.c38 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()
/Zephyr-Core-3.7.0/drivers/ps2/
Dps2_npcx_controller.c73 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 …]
Dps2_npcx_channel.c32 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), \
Dps2_npcx_controller.h27 int ps2_npcx_ctrl_write(const struct device *dev, uint8_t channel_id,
53 int ps2_npcx_ctrl_configure(const struct device *dev, uint8_t channel_id,
/Zephyr-Core-3.7.0/drivers/adc/
Dadc_esp32.c260 for (uint8_t channel_id = 0; channel_id < conf->channel_count; channel_id++) { in adc_esp32_fill_digi_pattern() local
263 *unit_attenuation = data->attenuation[channel_id]; in adc_esp32_fill_digi_pattern()
264 } else if (*unit_attenuation != data->attenuation[channel_id]) { in adc_esp32_fill_digi_pattern()
266 (unsigned int)channel_id, (unsigned int)conf->unit); in adc_esp32_fill_digi_pattern()
270 adc_digi_pattern_config->atten = data->attenuation[channel_id]; in adc_esp32_fill_digi_pattern()
271 adc_digi_pattern_config->channel = channel_id; in adc_esp32_fill_digi_pattern()
394 uint8_t channel_id = find_lsb_set(seq->channels) - 1; in adc_esp32_read() local
402 if (seq->channels > BIT(channel_id)) { in adc_esp32_read()
433 data->resolution[channel_id] = seq->resolution; in adc_esp32_read()
441 adc_set_data_width(conf->unit, data->resolution[channel_id]); in adc_esp32_read()
[all …]
Dadc_nrfx_saadc.c177 uint8_t channel_id = channel_cfg->channel_id; in adc_nrfx_channel_setup() local
180 if (channel_id >= SAADC_CH_NUM) { in adc_nrfx_channel_setup()
269 m_data.single_ended_channels &= ~BIT(channel_cfg->channel_id); in adc_nrfx_channel_setup()
272 m_data.single_ended_channels |= BIT(channel_cfg->channel_id); in adc_nrfx_channel_setup()
301 m_data.positive_inputs[channel_id] = saadc_psels[channel_cfg->input_positive]; in adc_nrfx_channel_setup()
303 m_data.positive_inputs[channel_id] = channel_cfg->input_positive; in adc_nrfx_channel_setup()
306 nrf_saadc_channel_init(NRF_SAADC, channel_id, &config); in adc_nrfx_channel_setup()
308 channel_id, in adc_nrfx_channel_setup()
474 uint8_t channel_id; in start_read() local
490 channel_id = 0U; in start_read()
[all …]
Dadc_sam_afec.c61 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 …]
Dadc_sam.c72 uint8_t channel_id = channel_cfg->channel_id; in adc_sam_channel_setup() local
75 if (channel_id != (channel_cfg->input_positive / 2U) in adc_sam_channel_setup()
76 || channel_id != (channel_cfg->input_negative / 2U)) { in adc_sam_channel_setup()
77 LOG_ERR("Invalid ADC differential input for channel %u", channel_id); in adc_sam_channel_setup()
81 if (channel_id != channel_cfg->input_positive) { in adc_sam_channel_setup()
82 LOG_ERR("Invalid ADC single-ended input for channel %u", channel_id); in adc_sam_channel_setup()
98 if (channel_cfg->channel_id == SAM_ADC_TEMP_CHANNEL) { in adc_sam_channel_setup()
104 adc->ADC_COR |= (ADC_COR_DIFF0 | ADC_COR_DIFF1) << (channel_id * 2U); in adc_sam_channel_setup()
106 adc->ADC_COR &= ~((ADC_COR_DIFF0 | ADC_COR_DIFF1) << (channel_id * 2U)); in adc_sam_channel_setup()
110 adc->ADC_CGR &= ~(ADC_CGR_GAIN0_Msk << (channel_id * 2U)); in adc_sam_channel_setup()
[all …]
Dadc_nrfx_adc.c50 uint8_t channel_id = channel_cfg->channel_id; in adc_nrfx_channel_setup() local
51 nrf_adc_config_t *config = &m_channels[channel_id].config; in adc_nrfx_channel_setup()
53 if (channel_id >= CONFIG_ADC_NRFX_ADC_CHANNEL_COUNT) { in adc_nrfx_channel_setup()
158 uint8_t channel_id; in start_read() local
197 channel_id = 0U; in start_read()
203 m_channels[channel_id].config.resolution = in start_read()
205 nrfx_adc_channel_enable(&m_channels[channel_id]); in start_read()
209 ++channel_id; in start_read()
Dadc_vf610.c31 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()
Dadc_mcux_12b1msps_sar.c41 uint8_t channel_id; member
47 uint8_t channel_id = channel_cfg->channel_id; in mcux_12b1msps_sar_adc_channel_setup() local
49 if (channel_id > (ADC_HC_ADCH_MASK >> ADC_HC_ADCH_SHIFT)) { in mcux_12b1msps_sar_adc_channel_setup()
50 LOG_ERR("Invalid channel %d", channel_id); in mcux_12b1msps_sar_adc_channel_setup()
165 data->channel_id = find_lsb_set(data->channels) - 1; in mcux_12b1msps_sar_adc_start_channel()
167 LOG_DBG("Starting channel %d", data->channel_id); in mcux_12b1msps_sar_adc_start_channel()
169 channel_config.channelNumber = data->channel_id; in mcux_12b1msps_sar_adc_start_channel()
204 LOG_DBG("Finished channel %d. Result is 0x%04x", data->channel_id, in mcux_12b1msps_sar_adc_isr()
208 data->channels &= ~BIT(data->channel_id); in mcux_12b1msps_sar_adc_isr()
/Zephyr-Core-3.7.0/drivers/mbox/
Dmbox_handlers.c11 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-Core-3.7.0/include/zephyr/task_wdt/
Dtask_wdt.h38 typedef void (*task_wdt_callback_t)(int channel_id, void *user_data);
89 int task_wdt_delete(int channel_id);
103 int task_wdt_feed(int channel_id);
/Zephyr-Core-3.7.0/samples/drivers/mbox/remote/src/
Dmain.c16 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()
/Zephyr-Core-3.7.0/samples/drivers/mbox/src/
Dmain.c12 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-Core-3.7.0/soc/intel/intel_adsp/ace/include/ace15_mtpm/
Dadsp_watchdog.h19 int intel_adsp_watchdog_pause(const struct device *dev, const int channel_id);
29 int intel_adsp_watchdog_resume(const struct device *dev, const int channel_id);
/Zephyr-Core-3.7.0/samples/drivers/mbox_data/src/
Dmain.c18 static void callback(const struct device *dev, mbox_channel_id_t channel_id, void *user_data, in callback() argument
22 g_mbox_received_channel = channel_id; in callback()
57 printk("Client send (on channel %d) value: %d\n", tx_channel.channel_id, message); in main()
/Zephyr-Core-3.7.0/samples/drivers/mbox_data/remote/src/
Dmain.c18 static void callback(const struct device *dev, mbox_channel_id_t channel_id, void *user_data, in callback() argument
22 g_mbox_received_channel = channel_id; in callback()
65 printk("Server send (on channel %d) value: %d\n", tx_channel.channel_id, message); in main()

1234567