/Zephyr-latest/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-latest/tests/drivers/dma/loop_transfer/src/ |
D | test_dma_loop.c | 88 static int chan_id; in test_loop() local 125 chan_id = dma_request_channel(dma, NULL); in test_loop() 126 if (chan_id < 0) { in test_loop() 128 chan_id = CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR; in test_loop() 132 TC_PRINT("Starting the transfer on channel %d and waiting for 1 second\n", chan_id); in test_loop() 142 if (dma_config(dma, chan_id, &dma_cfg)) { in test_loop() 143 TC_PRINT("ERROR: transfer config (%d)\n", chan_id); in test_loop() 147 if (dma_start(dma, chan_id)) { in test_loop() 148 TC_PRINT("ERROR: transfer start (%d)\n", chan_id); in test_loop() 157 if (dma_stop(dma, chan_id)) { in test_loop() [all …]
|
/Zephyr-latest/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-latest/drivers/dma/ |
D | dma_nxp_edma.c | 72 uint32_t chan_id) in lookup_channel() argument 88 if (chan_id >= data->ctx.dma_channels) { in lookup_channel() 92 return &data->channels[chan_id]; in lookup_channel() 100 if (data->channels[i].id == chan_id) { in lookup_channel() 108 static int edma_config(const struct device *dev, uint32_t chan_id, in edma_config() argument 241 chan = lookup_channel(dev, chan_id); in edma_config() 243 LOG_ERR("channel ID %u is not valid", chan_id); in edma_config() 283 chan_id, chan->state); in edma_config() 296 ret = EDMA_ConfigureTransfer(data->hal_cfg, chan_id, in edma_config() 311 ret = EDMA_SetChannelMux(data->hal_cfg, chan_id, dma_cfg->dma_slot); in edma_config() [all …]
|
D | dma_nxp_sof_host_dma.c | 79 static int sof_host_dma_reload(const struct device *dev, uint32_t chan_id, in sof_host_dma_reload() argument 92 if (chan_id >= data->ctx.dma_channels) { in sof_host_dma_reload() 93 LOG_ERR("channel %d is not a valid channel ID", chan_id); in sof_host_dma_reload() 98 chan = &data->channels[chan_id]; in sof_host_dma_reload() 102 LOG_ERR("attempting to reload unconfigured DMA channel %d", chan_id); in sof_host_dma_reload() 162 static int sof_host_dma_config(const struct device *dev, uint32_t chan_id, in sof_host_dma_config() argument 171 if (chan_id >= data->ctx.dma_channels) { in sof_host_dma_config() 172 LOG_ERR("channel %d is not a valid channel ID", chan_id); in sof_host_dma_config() 177 chan = &data->channels[chan_id]; in sof_host_dma_config() 182 LOG_ERR("failed to change channel %d's state to CONFIGURED", chan_id); in sof_host_dma_config() [all …]
|
D | dma_nxp_edma.h | 426 uint32_t chan_id) in edma_dump_channel_registers() argument 430 LOG_DBG("dumping channel data for channel %d", chan_id); in edma_dump_channel_registers() 433 EDMA_ChannelRegRead(data->hal_cfg, chan_id, EDMA_TCD_CH_CSR)); in edma_dump_channel_registers() 435 EDMA_ChannelRegRead(data->hal_cfg, chan_id, EDMA_TCD_CH_ES)); in edma_dump_channel_registers() 437 EDMA_ChannelRegRead(data->hal_cfg, chan_id, EDMA_TCD_CH_INT)); in edma_dump_channel_registers() 439 EDMA_ChannelRegRead(data->hal_cfg, chan_id, EDMA_TCD_CH_SBR)); in edma_dump_channel_registers() 441 EDMA_ChannelRegRead(data->hal_cfg, chan_id, EDMA_TCD_CH_PRI)); in edma_dump_channel_registers() 450 LOG_DBG("CH_MUX: 0x%x", EDMA_ChannelRegRead(data->hal_cfg, chan_id, mux_reg)); in edma_dump_channel_registers() 454 EDMA_ChannelRegRead(data->hal_cfg, chan_id, EDMA_TCD_SADDR)); in edma_dump_channel_registers() 456 EDMA_ChannelRegRead(data->hal_cfg, chan_id, EDMA_TCD_SOFF)); in edma_dump_channel_registers() [all …]
|
/Zephyr-latest/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-latest/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() 176 static int counter_gecko_set_alarm(const struct device *dev, uint8_t chan_id, in counter_gecko_set_alarm() argument 189 if (chan_id >= STIMER_ALARM_NUM) { in counter_gecko_set_alarm() 194 error_code = sl_sleeptimer_is_timer_running(&alarm_timer[chan_id], &is_alarm_timer_running); in counter_gecko_set_alarm() 196 sl_sleeptimer_stop_timer(&alarm_timer[chan_id]); in counter_gecko_set_alarm() 203 dev_data->alarm[chan_id].ticks = top_val + (alarm_cfg->ticks - now_ticks); in counter_gecko_set_alarm() 205 dev_data->alarm[chan_id].ticks = in counter_gecko_set_alarm() 211 dev_data->alarm[chan_id].ticks = alarm_cfg->ticks; in counter_gecko_set_alarm() 214 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 | 179 static int ctr_set_alarm(const struct device *dev, uint8_t chan_id, in ctr_set_alarm() argument 184 if (is_alarm_pending[chan_id]) { in ctr_set_alarm() 205 pending_alarm[chan_id] = *alarm_cfg; in ctr_set_alarm() 206 pending_alarm[chan_id].ticks = ticks; in ctr_set_alarm() 207 is_alarm_pending[chan_id] = true; in ctr_set_alarm() 214 static int ctr_cancel_alarm(const struct device *dev, uint8_t chan_id) in ctr_cancel_alarm() argument 223 is_alarm_pending[chan_id] = false; in ctr_cancel_alarm()
|
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 | 218 static int atcpit100_set_alarm(const struct device *dev, uint8_t chan_id, in atcpit100_set_alarm() argument 227 if (chan_id >= CH_NUM_PER_COUNTER) { in atcpit100_set_alarm() 235 if (data->ch_data[chan_id].alarm_callback) { in atcpit100_set_alarm() 252 data->ch_data[chan_id].alarm_callback = alarm_cfg->callback; in atcpit100_set_alarm() 253 data->ch_data[chan_id].alarm_user_data = alarm_cfg->user_data; in atcpit100_set_alarm() 275 data->ch_data[chan_id].alarm_callback = NULL; in atcpit100_set_alarm() 294 sys_write32((reg - 1), PIT_CH_RELD(dev, chan_id)); in atcpit100_set_alarm() 298 reg |= TIMER0_CHANNEL(chan_id); in atcpit100_set_alarm() 303 reg |= TIMER0_CHANNEL(chan_id); in atcpit100_set_alarm() 312 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_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_esp32_rtc.c | 108 static int counter_esp32_set_alarm(const struct device *dev, uint8_t chan_id, in counter_esp32_set_alarm() argument 111 ARG_UNUSED(chan_id); in counter_esp32_set_alarm() 145 static int counter_esp32_cancel_alarm(const struct device *dev, uint8_t chan_id) in counter_esp32_cancel_alarm() argument 148 ARG_UNUSED(chan_id); in counter_esp32_cancel_alarm()
|
/Zephyr-latest/tests/drivers/dma/scatter_gather/src/ |
D | test_dma_sg.c | 56 static int chan_id; in test_sg() local 94 chan_id = dma_request_channel(dma, NULL); in test_sg() 95 if (chan_id < 0) { in test_sg() 98 chan_id = CONFIG_DMA_SG_CHANNEL_NR; in test_sg() 124 TC_PRINT("Configuring the scatter-gather transfer on channel %d\n", chan_id); in test_sg() 126 if (dma_config(dma, chan_id, &dma_cfg)) { in test_sg() 127 TC_PRINT("ERROR: transfer config (%d)\n", chan_id); in test_sg() 131 TC_PRINT("Starting the transfer on channel %d and waiting completion\n", chan_id); in test_sg() 133 if (dma_start(dma, chan_id)) { in test_sg() 134 TC_PRINT("ERROR: transfer start (%d)\n", chan_id); in test_sg()
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | common.c | 287 const uint chan_id = get_chan_id_from_chan_num(get_chan_num((uint16_t)dev)); in backchannel_sync_send() local 290 printk("Sending sync to %u\n", chan_id); in backchannel_sync_send() 291 bs_bc_send_msg(chan_id, sync_msg, ARRAY_SIZE(sync_msg)); in backchannel_sync_send() 307 const uint chan_id = get_chan_id_from_chan_num(get_chan_num((uint16_t)dev)); in backchannel_sync_wait() local 309 printk("Waiting for sync to %u\n", chan_id); in backchannel_sync_wait() 312 if (bs_bc_is_msg_received(chan_id) > 0) { in backchannel_sync_wait() 315 bs_bc_receive_msg(chan_id, sync_msg, ARRAY_SIZE(sync_msg)); in backchannel_sync_wait() 342 const uint chan_id = in backchannel_sync_wait_any() local 345 if (bs_bc_is_msg_received(chan_id) > 0) { in backchannel_sync_wait_any() 348 bs_bc_receive_msg(chan_id, sync_msg, ARRAY_SIZE(sync_msg)); in backchannel_sync_wait_any() [all …]
|
/Zephyr-latest/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-latest/tests/bluetooth/tester/src/ |
D | btp_l2cap.c | 36 uint8_t chan_id; /* Internal number that identifies L2CAP channel. */ member 65 ev->chan_id = chan->chan_id; in seg_recv_cb() 93 ev->chan_id = chan->chan_id; in recv_cb() 120 ev.chan_id = chan->chan_id; in connected_cb() 160 ev.chan_id = chan->chan_id; in disconnected_cb() 189 ev.chan_id = chan->chan_id; in reconfigured_cb() 226 chan->chan_id = i; in get_free_channel() 269 rp->chan_id[i] = chan->chan_id; in connect() 298 *rsp_len = sizeof(*rp) + (rp->num * sizeof(rp->chan_id[0])); in connect() 318 if (cp->chan_id >= CHANNELS) { in disconnect() [all …]
|
/Zephyr-latest/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-latest/include/zephyr/drivers/ |
D | counter.h | 123 uint8_t chan_id, uint32_t ticks, 219 uint8_t chan_id, 222 uint8_t chan_id); 455 uint8_t chan_id, 459 uint8_t chan_id, in z_impl_counter_set_channel_alarm() argument 465 if (chan_id >= counter_get_num_of_channels(dev)) { in z_impl_counter_set_channel_alarm() 469 return api->set_alarm(dev, chan_id, alarm_cfg); in z_impl_counter_set_channel_alarm() 485 uint8_t chan_id); 488 uint8_t chan_id) in z_impl_counter_cancel_channel_alarm() argument 493 if (chan_id >= counter_get_num_of_channels(dev)) { in z_impl_counter_cancel_channel_alarm() [all …]
|
/Zephyr-latest/tests/drivers/dma/chan_blen_transfer/src/ |
D | test_dma.c | 35 static int test_task(const struct device *dma, uint32_t chan_id, uint32_t blen) in test_task() argument 60 dma->name, chan_id, blen >> 3); in test_task() 73 if (dma_config(dma, chan_id, &dma_cfg)) { in test_task() 78 if (dma_start(dma, chan_id)) { in test_task()
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/general/src/ |
D | main_l2cap_ecred.c | 44 uint8_t chan_id; /* Internal number that identifies L2CAP channel. */ member 92 received_iterration, chan->sdus_received, chan->chan_id, buf->len); in chan_recv_cb() 105 if (chan->chan_id == 0) { in chan_recv_cb() 126 LOG_DBG("chan_id: %d", chan->chan_id); in chan_sent_cb() 135 LOG_DBG("chan_id: %d", chan->chan_id); in chan_connected_cb() 155 LOG_DBG("chan_id: %d", chan->chan_id); in chan_disconnected_cb() 172 LOG_DBG("chan_id: %d, status: %ld", chan->chan_id, *status); in chan_status_cb() 181 LOG_DBG("chan_id: %d", chan->chan_id); in chan_released_cb() 190 LOG_DBG("chan_id: %d", chan->chan_id); in chan_reconfigured_cb() 213 chan->chan_id = idx; in get_free_channel() [all …]
|