/Zephyr-Core-3.5.0/subsys/bluetooth/controller/ll_sw/ |
D | lll_chan.c | 18 static uint16_t chan_prn_s(uint16_t counter, uint16_t chan_id); 19 static uint16_t chan_prn_e(uint16_t counter, uint16_t chan_id); 23 static uint16_t chan_prn_subevent_se(uint16_t chan_id, 71 uint8_t lll_chan_sel_2(uint16_t counter, uint16_t chan_id, uint8_t *chan_map, in lll_chan_sel_2() argument 77 prn_e = chan_prn_e(counter, chan_id); in lll_chan_sel_2() 99 uint8_t lll_chan_iso_event(uint16_t counter, uint16_t chan_id, in lll_chan_iso_event() argument 106 *prn_s = chan_prn_s(counter, chan_id); in lll_chan_iso_event() 107 prn_e = *prn_s ^ chan_id; in lll_chan_iso_event() 126 uint8_t lll_chan_iso_subevent(uint16_t chan_id, uint8_t *chan_map, in lll_chan_iso_subevent() argument 134 prn_subevent_se = chan_prn_subevent_se(chan_id, prn_subevent_lu); in lll_chan_iso_subevent() [all …]
|
D | lll_chan.h | 11 uint8_t lll_chan_sel_2(uint16_t counter, uint16_t chan_id, uint8_t *chan_map, 14 uint8_t lll_chan_iso_event(uint16_t counter, uint16_t chan_id, 17 uint8_t lll_chan_iso_subevent(uint16_t chan_id, const uint8_t *chan_map,
|
/Zephyr-Core-3.5.0/tests/drivers/dma/loop_transfer/src/ |
D | test_dma_loop.c | 98 static int chan_id; in test_loop() local 135 chan_id = dma_request_channel(dma, NULL); in test_loop() 136 if (chan_id < 0) { in test_loop() 138 chan_id = CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR; in test_loop() 142 TC_PRINT("Starting the transfer on channel %d and waiting for 1 second\n", chan_id); in test_loop() 152 if (dma_config(dma, chan_id, &dma_cfg)) { in test_loop() 153 TC_PRINT("ERROR: transfer config (%d)\n", chan_id); in test_loop() 157 if (dma_start(dma, chan_id)) { in test_loop() 158 TC_PRINT("ERROR: transfer start (%d)\n", chan_id); in test_loop() 167 if (dma_stop(dma, chan_id)) { in test_loop() [all …]
|
/Zephyr-Core-3.5.0/drivers/watchdog/ |
D | wdt_counter.c | 52 uint8_t chan_id, uint32_t ticks, in counter_alarm_callback() argument 59 if (data->callback[chan_id]) { in counter_alarm_callback() 60 data->callback[chan_id](wdt_dev, chan_id); in counter_alarm_callback() 63 if (data->flags[chan_id] & WDT_FLAG_RESET_SOC) { in counter_alarm_callback() 69 static int timeout_set(const struct device *dev, int chan_id, bool cancel) in timeout_set() argument 76 .ticks = data->timeout[chan_id], in timeout_set() 82 int err = counter_cancel_channel_alarm(counter, chan_id); in timeout_set() 89 return counter_set_channel_alarm(counter, chan_id, &alarm_cfg); in timeout_set() 98 int chan_id; in wdt_counter_install_timeout() local 126 chan_id = data->alloc_cnt; in wdt_counter_install_timeout() [all …]
|
/Zephyr-Core-3.5.0/tests/bluetooth/tester/src/btp/ |
D | btp_l2cap.h | 33 uint8_t chan_id[]; member 38 uint8_t chan_id; member 43 uint8_t chan_id; member 67 uint8_t chan_id; member 76 uint8_t chan_id[]; member 81 uint8_t chan_id; member 93 uint8_t chan_id; member 100 uint8_t chan_id; member 112 uint8_t chan_id; member 119 uint8_t chan_id; member [all …]
|
/Zephyr-Core-3.5.0/drivers/counter/ |
D | counter_gecko_stimer.c | 45 uint8_t chan_id; member 81 alarm_data->dev, alarm_data->chan_id, count, in alarm_callback() 175 static int counter_gecko_set_alarm(const struct device *dev, uint8_t chan_id, in counter_gecko_set_alarm() argument 188 if (chan_id >= STIMER_ALARM_NUM) { in counter_gecko_set_alarm() 193 error_code = sl_sleeptimer_is_timer_running(&alarm_timer[chan_id], &is_alarm_timer_running); in counter_gecko_set_alarm() 195 sl_sleeptimer_stop_timer(&alarm_timer[chan_id]); in counter_gecko_set_alarm() 202 dev_data->alarm[chan_id].ticks = top_val + (alarm_cfg->ticks - now_ticks); in counter_gecko_set_alarm() 204 dev_data->alarm[chan_id].ticks = in counter_gecko_set_alarm() 210 dev_data->alarm[chan_id].ticks = alarm_cfg->ticks; in counter_gecko_set_alarm() 213 dev_data->alarm[chan_id].callback = alarm_cfg->callback; in counter_gecko_set_alarm() [all …]
|
D | counter_gecko_rtcc.c | 49 static uint8_t chan_id2cc_idx(uint8_t chan_id) in chan_id2cc_idx() argument 53 switch (chan_id) { in chan_id2cc_idx() 150 static int counter_gecko_set_alarm(const struct device *dev, uint8_t chan_id, in counter_gecko_set_alarm() argument 161 if (dev_data->alarm[chan_id].callback != NULL) { in counter_gecko_set_alarm() 177 uint8_t cc_idx = chan_id2cc_idx(chan_id); in counter_gecko_set_alarm() 181 dev_data->alarm[chan_id].callback = alarm_cfg->callback; in counter_gecko_set_alarm() 182 dev_data->alarm[chan_id].user_data = alarm_cfg->user_data; in counter_gecko_set_alarm() 186 LOG_DBG("set alarm: channel %u, count %u", chan_id, ccv); in counter_gecko_set_alarm() 195 uint8_t chan_id) in counter_gecko_cancel_alarm() argument 199 uint8_t cc_idx = chan_id2cc_idx(chan_id); in counter_gecko_cancel_alarm() [all …]
|
D | counter_native_posix.c | 98 static int ctr_set_alarm(const struct device *dev, uint8_t chan_id, in ctr_set_alarm() argument 103 if (chan_id >= DRIVER_CONFIG_INFO_CHANNELS) { in ctr_set_alarm() 104 posix_print_warning("channel %u is not supported\n", chan_id); in ctr_set_alarm() 122 static int ctr_cancel_alarm(const struct device *dev, uint8_t chan_id) in ctr_cancel_alarm() argument 126 if (chan_id >= DRIVER_CONFIG_INFO_CHANNELS) { in ctr_cancel_alarm() 127 posix_print_warning("channel %u is not supported\n", chan_id); in ctr_cancel_alarm()
|
D | counter_nxp_s32_sys_timer.c | 70 static int nxp_s32_sys_timer_set_alarm(const struct device *dev, uint8_t chan_id, in nxp_s32_sys_timer_set_alarm() argument 75 struct nxp_s32_sys_timer_chan_data *ch_data = &data->ch_data[chan_id]; in nxp_s32_sys_timer_set_alarm() 91 Stm_Ip_DisableChannel(config->instance, chan_id); in nxp_s32_sys_timer_set_alarm() 94 Stm_Ip_StartCountingAbsolute(config->instance, chan_id, ticks); in nxp_s32_sys_timer_set_alarm() 96 Stm_Ip_StartCounting(config->instance, chan_id, ticks); in nxp_s32_sys_timer_set_alarm() 102 static int nxp_s32_sys_timer_cancel_alarm(const struct device *dev, uint8_t chan_id) in nxp_s32_sys_timer_cancel_alarm() argument 106 struct nxp_s32_sys_timer_chan_data *ch_data = &data->ch_data[chan_id]; in nxp_s32_sys_timer_cancel_alarm() 108 Stm_Ip_DisableChannel(config->instance, chan_id); in nxp_s32_sys_timer_cancel_alarm() 218 void nxp_s32_sys_timer_##n##_callback(uint8_t chan_id) \ 223 struct nxp_s32_sys_timer_chan_data *ch_data = &data->ch_data[chan_id]; \ [all …]
|
D | counter_sam_tc.c | 132 static int counter_sam_tc_set_alarm(const struct device *dev, uint8_t chan_id, in counter_sam_tc_set_alarm() argument 156 if (data->alarm[chan_id].callback != NULL) { in counter_sam_tc_set_alarm() 160 if (chan_id == 0) { in counter_sam_tc_set_alarm() 166 data->alarm[chan_id].callback = alarm_cfg->callback; in counter_sam_tc_set_alarm() 167 data->alarm[chan_id].user_data = alarm_cfg->user_data; in counter_sam_tc_set_alarm() 178 if (chan_id == 0) { in counter_sam_tc_set_alarm() 190 LOG_DBG("set alarm: channel %u, count %u", chan_id, alarm_value); in counter_sam_tc_set_alarm() 195 static int counter_sam_tc_cancel_alarm(const struct device *dev, uint8_t chan_id) in counter_sam_tc_cancel_alarm() argument 202 if (chan_id == 0) { in counter_sam_tc_cancel_alarm() 210 data->alarm[chan_id].callback = NULL; in counter_sam_tc_cancel_alarm() [all …]
|
D | counter_andes_atcpit100.c | 213 static int atcpit100_set_alarm(const struct device *dev, uint8_t chan_id, in atcpit100_set_alarm() argument 222 if (chan_id >= CH_NUM_PER_COUNTER) { in atcpit100_set_alarm() 230 if (data->ch_data[chan_id].alarm_callback) { in atcpit100_set_alarm() 247 data->ch_data[chan_id].alarm_callback = alarm_cfg->callback; in atcpit100_set_alarm() 248 data->ch_data[chan_id].alarm_user_data = alarm_cfg->user_data; in atcpit100_set_alarm() 270 data->ch_data[chan_id].alarm_callback = NULL; in atcpit100_set_alarm() 289 sys_write32((reg - 1), PIT_CH_RELD(dev, chan_id)); in atcpit100_set_alarm() 293 reg |= TIMER0_CHANNEL(chan_id); in atcpit100_set_alarm() 298 reg |= TIMER0_CHANNEL(chan_id); in atcpit100_set_alarm() 307 static int atcpit100_cancel_alarm(const struct device *dev, uint8_t chan_id) in atcpit100_cancel_alarm() argument [all …]
|
D | counter_mcux_ctimer.c | 94 static int mcux_lpc_ctimer_set_alarm(const struct device *dev, uint8_t chan_id, in mcux_lpc_ctimer_set_alarm() argument 107 if (data->channels[chan_id].alarm_callback != NULL) { in mcux_lpc_ctimer_set_alarm() 119 data->channels[chan_id].alarm_callback = alarm_cfg->callback; in mcux_lpc_ctimer_set_alarm() 120 data->channels[chan_id].alarm_user_data = alarm_cfg->user_data; in mcux_lpc_ctimer_set_alarm() 129 CTIMER_SetupMatch(config->base, chan_id, &match_config); in mcux_lpc_ctimer_set_alarm() 134 static int mcux_lpc_ctimer_cancel_alarm(const struct device *dev, uint8_t chan_id) in mcux_lpc_ctimer_cancel_alarm() argument 139 CTIMER_DisableInterrupts(config->base, (1 << chan_id)); in mcux_lpc_ctimer_cancel_alarm() 141 data->channels[chan_id].alarm_callback = NULL; in mcux_lpc_ctimer_cancel_alarm() 142 data->channels[chan_id].alarm_user_data = NULL; in mcux_lpc_ctimer_cancel_alarm()
|
D | counter_handlers.c | 86 uint8_t chan_id, in z_vrfy_counter_set_channel_alarm() argument 96 (uint8_t)chan_id, in z_vrfy_counter_set_channel_alarm() 103 uint8_t chan_id) in z_vrfy_counter_cancel_channel_alarm() argument 107 (uint8_t)chan_id); in z_vrfy_counter_cancel_channel_alarm()
|
D | counter_ambiq_timer.c | 90 static int counter_ambiq_set_alarm(const struct device *dev, uint8_t chan_id, in counter_ambiq_set_alarm() argument 93 ARG_UNUSED(chan_id); in counter_ambiq_set_alarm() 115 static int counter_ambiq_cancel_alarm(const struct device *dev, uint8_t chan_id) in counter_ambiq_cancel_alarm() argument 117 ARG_UNUSED(chan_id); in counter_ambiq_cancel_alarm()
|
D | counter_esp32_rtc.c | 103 static int counter_esp32_set_alarm(const struct device *dev, uint8_t chan_id, in counter_esp32_set_alarm() argument 106 ARG_UNUSED(chan_id); in counter_esp32_set_alarm() 133 static int counter_esp32_cancel_alarm(const struct device *dev, uint8_t chan_id) in counter_esp32_cancel_alarm() argument 136 ARG_UNUSED(chan_id); in counter_esp32_cancel_alarm()
|
D | counter_mcux_snvs.c | 72 uint8_t chan_id, in mcux_snvs_set_alarm() argument 92 if (chan_id == 0) { in mcux_snvs_set_alarm() 111 } else if (chan_id == 1) { in mcux_snvs_set_alarm() 138 uint8_t chan_id) in mcux_snvs_cancel_alarm() argument 143 if (chan_id == 0) { in mcux_snvs_cancel_alarm() 153 } else if (chan_id == 1) { in mcux_snvs_cancel_alarm()
|
D | counter_mchp_xec.c | 110 static int counter_xec_set_alarm(const struct device *dev, uint8_t chan_id, in counter_xec_set_alarm() argument 116 if (chan_id != 0) { in counter_xec_set_alarm() 117 LOG_ERR("Invalid channel id %u", chan_id); in counter_xec_set_alarm() 155 static int counter_xec_cancel_alarm(const struct device *dev, uint8_t chan_id) in counter_xec_cancel_alarm() argument 160 if (chan_id != 0) { in counter_xec_cancel_alarm() 161 LOG_ERR("Invalid channel id %u", chan_id); in counter_xec_cancel_alarm()
|
D | counter_mcux_gpt.c | 60 static int mcux_gpt_set_alarm(const struct device *dev, uint8_t chan_id, in mcux_gpt_set_alarm() argument 69 if (chan_id != 0) { in mcux_gpt_set_alarm() 92 static int mcux_gpt_cancel_alarm(const struct device *dev, uint8_t chan_id) in mcux_gpt_cancel_alarm() argument 97 if (chan_id != 0) { in mcux_gpt_cancel_alarm()
|
/Zephyr-Core-3.5.0/tests/drivers/dma/scatter_gather/src/ |
D | test_dma_sg.c | 57 static int chan_id; in test_sg() local 95 chan_id = dma_request_channel(dma, NULL); in test_sg() 96 if (chan_id < 0) { in test_sg() 99 chan_id = CONFIG_DMA_SG_CHANNEL_NR; in test_sg() 125 TC_PRINT("Configuring the scatter-gather transfer on channel %d\n", chan_id); in test_sg() 127 if (dma_config(dma, chan_id, &dma_cfg)) { in test_sg() 128 TC_PRINT("ERROR: transfer config (%d)\n", chan_id); in test_sg() 132 TC_PRINT("Starting the transfer on channel %d and waiting completion\n", chan_id); in test_sg() 134 if (dma_start(dma, chan_id)) { in test_sg() 135 TC_PRINT("ERROR: transfer start (%d)\n", chan_id); in test_sg()
|
/Zephyr-Core-3.5.0/tests/boards/intel_adsp/ssp/src/ |
D | main.c | 104 static int config_output_dma(const struct dai_properties *props, uint32_t *chan_id) in config_output_dma() argument 121 *chan_id = dma_request_channel(dev_dma_dw, NULL); in config_output_dma() 122 if (*chan_id < 0) { in config_output_dma() 262 static int chan_id; in ZTEST() local 270 if (config_output_dma(props, &chan_id)) { in ZTEST() 271 TC_PRINT("ERROR: config tx dma (%d)\n", chan_id); in ZTEST() 275 TC_PRINT("Configuring the dma tx transfer on channel %d\n", chan_id); in ZTEST() 277 if (dma_config(dev_dma_dw, chan_id, &dma_cfg)) { in ZTEST() 278 TC_PRINT("ERROR: dma tx config (%d)\n", chan_id); in ZTEST() 289 TC_PRINT("ERROR: config rx dma (%d)\n", chan_id); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/bluetooth/tester/src/ |
D | btp_l2cap.c | 34 uint8_t chan_id; /* Internal number that identifies L2CAP channel. */ member 58 ev->chan_id = chan->chan_id; in recv_cb() 84 ev.chan_id = chan->chan_id; in connected_cb() 122 ev.chan_id = chan->chan_id; in disconnected_cb() 151 ev.chan_id = chan->chan_id; in reconfigured_cb() 184 chan->chan_id = i; in get_free_channel() 224 rp->chan_id[i] = chan->chan_id; in connect() 251 *rsp_len = sizeof(*rp) + (rp->num * sizeof(rp->chan_id[0])); in connect() 271 if (cp->chan_id >= CHANNELS) { in disconnect() 275 chan = &channels[cp->chan_id]; in disconnect() [all …]
|
/Zephyr-Core-3.5.0/tests/boards/altera_max10/msgdma/src/ |
D | dma.c | 44 static uint32_t chan_id; in ZTEST() local 69 chan_id = 0U; in ZTEST() 77 zassert_true(dma_config(dma, chan_id, &dma_cfg) == 0, in ZTEST() 84 zassert_true(dma_start(dma, chan_id) == 0, "DMA start error"); in ZTEST()
|
/Zephyr-Core-3.5.0/include/zephyr/drivers/ |
D | counter.h | 121 uint8_t chan_id, uint32_t ticks, 217 uint8_t chan_id, 220 uint8_t chan_id); 453 uint8_t chan_id, 457 uint8_t chan_id, in z_impl_counter_set_channel_alarm() argument 463 if (chan_id >= counter_get_num_of_channels(dev)) { in z_impl_counter_set_channel_alarm() 467 return api->set_alarm(dev, chan_id, alarm_cfg); in z_impl_counter_set_channel_alarm() 483 uint8_t chan_id); 486 uint8_t chan_id) in z_impl_counter_cancel_channel_alarm() argument 491 if (chan_id >= counter_get_num_of_channels(dev)) { in z_impl_counter_cancel_channel_alarm() [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/dma/chan_blen_transfer/src/ |
D | test_dma.c | 46 static int test_task(const struct device *dma, uint32_t chan_id, uint32_t blen) in test_task() argument 75 dma->name, chan_id, blen >> 3); in test_task() 88 if (dma_config(dma, chan_id, &dma_cfg)) { in test_task() 93 if (dma_start(dma, chan_id)) { in test_task()
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/host/l2cap/general/src/ |
D | main_l2cap_ecred.c | 42 uint8_t chan_id; /* Internal number that identifies L2CAP channel. */ member 90 received_iterration, chan->sdus_received, chan->chan_id, buf->len); in chan_recv_cb() 103 if (chan->chan_id == 0) { in chan_recv_cb() 124 LOG_DBG("chan_id: %d", chan->chan_id); in chan_sent_cb() 133 LOG_DBG("chan_id: %d", chan->chan_id); in chan_connected_cb() 153 LOG_DBG("chan_id: %d", chan->chan_id); in chan_disconnected_cb() 170 LOG_DBG("chan_id: %d, status: %ld", chan->chan_id, *status); in chan_status_cb() 179 LOG_DBG("chan_id: %d", chan->chan_id); in chan_released_cb() 188 LOG_DBG("chan_id: %d", chan->chan_id); in chan_reconfigured_cb() 211 chan->chan_id = idx; in get_free_channel() [all …]
|