Home
last modified time | relevance | path

Searched refs:chan_id (Results 1 – 25 of 31) sorted by relevance

12

/Zephyr-Core-2.7.6/subsys/bluetooth/controller/ll_sw/
Dlll_chan.c20 static uint16_t chan_prn_s(uint16_t counter, uint16_t chan_id);
21 static uint16_t chan_prn_e(uint16_t counter, uint16_t chan_id);
25 static uint16_t chan_prn_subevent_se(uint16_t chan_id,
73 uint8_t lll_chan_sel_2(uint16_t counter, uint16_t chan_id, uint8_t *chan_map, in lll_chan_sel_2() argument
79 prn_e = chan_prn_e(counter, chan_id); in lll_chan_sel_2()
101 uint8_t lll_chan_iso_event(uint16_t counter, uint16_t chan_id, in lll_chan_iso_event() argument
108 *prn_s = chan_prn_s(counter, chan_id); in lll_chan_iso_event()
109 prn_e = *prn_s ^ chan_id; in lll_chan_iso_event()
128 uint8_t lll_chan_iso_subevent(uint16_t chan_id, uint8_t *chan_map, in lll_chan_iso_subevent() argument
137 prn_subevent_se = chan_prn_subevent_se(chan_id, prn_subevent_lu); in lll_chan_iso_subevent()
[all …]
Dlll_chan.h11 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, uint8_t *chan_map,
/Zephyr-Core-2.7.6/tests/drivers/dma/loop_transfer/src/
Dtest_dma_loop.c96 static int chan_id; in test_loop() local
133 chan_id = dma_request_channel(dma, NULL); in test_loop()
134 if (chan_id < 0) { in test_loop()
136 chan_id = CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR; in test_loop()
139 TC_PRINT("Starting the transfer on channel %d and waiting for 1 second\n", chan_id); in test_loop()
144 if (dma_config(dma, chan_id, &dma_cfg)) { in test_loop()
145 TC_PRINT("ERROR: transfer config (%d)\n", chan_id); in test_loop()
149 if (dma_start(dma, chan_id)) { in test_loop()
150 TC_PRINT("ERROR: transfer start (%d)\n", chan_id); in test_loop()
159 if (dma_stop(dma, chan_id)) { in test_loop()
/Zephyr-Core-2.7.6/drivers/counter/
Dcounter_gecko_rtcc.c55 static uint8_t chan_id2cc_idx(uint8_t chan_id) in chan_id2cc_idx() argument
59 switch (chan_id) { in chan_id2cc_idx()
156 static int counter_gecko_set_alarm(const struct device *dev, uint8_t chan_id, in counter_gecko_set_alarm() argument
167 if (dev_data->alarm[chan_id].callback != NULL) { in counter_gecko_set_alarm()
183 uint8_t cc_idx = chan_id2cc_idx(chan_id); in counter_gecko_set_alarm()
187 dev_data->alarm[chan_id].callback = alarm_cfg->callback; in counter_gecko_set_alarm()
188 dev_data->alarm[chan_id].user_data = alarm_cfg->user_data; in counter_gecko_set_alarm()
192 LOG_DBG("set alarm: channel %u, count %u", chan_id, ccv); in counter_gecko_set_alarm()
201 uint8_t chan_id) in counter_gecko_cancel_alarm() argument
205 uint8_t cc_idx = chan_id2cc_idx(chan_id); in counter_gecko_cancel_alarm()
[all …]
Dcounter_native_posix.c95 static int ctr_set_alarm(const struct device *dev, uint8_t chan_id, in ctr_set_alarm() argument
100 if (chan_id >= DRIVER_CONFIG_INFO_CHANNELS) { in ctr_set_alarm()
101 posix_print_warning("channel %u is not supported\n", chan_id); in ctr_set_alarm()
119 static int ctr_cancel_alarm(const struct device *dev, uint8_t chan_id) in ctr_cancel_alarm() argument
123 if (chan_id >= DRIVER_CONFIG_INFO_CHANNELS) { in ctr_cancel_alarm()
124 posix_print_warning("channel %u is not supported\n", chan_id); in ctr_cancel_alarm()
Dcounter_mcux_ctimer.c67 static int mcux_lpc_ctimer_set_alarm(const struct device *dev, uint8_t chan_id, in mcux_lpc_ctimer_set_alarm() argument
76 if (data->channels[chan_id].alarm_callback != NULL) { in mcux_lpc_ctimer_set_alarm()
85 data->channels[chan_id].alarm_callback = alarm_cfg->callback; in mcux_lpc_ctimer_set_alarm()
86 data->channels[chan_id].alarm_user_data = alarm_cfg->user_data; in mcux_lpc_ctimer_set_alarm()
95 CTIMER_SetupMatch(config->base, chan_id, &match_config); in mcux_lpc_ctimer_set_alarm()
100 static int mcux_lpc_ctimer_cancel_alarm(const struct device *dev, uint8_t chan_id) in mcux_lpc_ctimer_cancel_alarm() argument
105 CTIMER_DisableInterrupts(config->base, (1 << chan_id)); in mcux_lpc_ctimer_cancel_alarm()
107 data->channels[chan_id].alarm_callback = NULL; in mcux_lpc_ctimer_cancel_alarm()
108 data->channels[chan_id].alarm_user_data = NULL; in mcux_lpc_ctimer_cancel_alarm()
Dcounter_mcux_pit.c138 static int mcux_pit_set_alarm(const struct device *dev, uint8_t chan_id, in mcux_pit_set_alarm() argument
146 if (chan_id != DT_PROP(DT_DRV_INST(0), pit_channel)) { in mcux_pit_set_alarm()
156 PIT_StopTimer(config->base, chan_id); in mcux_pit_set_alarm()
157 PIT_SetTimerPeriod(config->base, chan_id, ticks); in mcux_pit_set_alarm()
161 PIT_StartTimer(config->base, chan_id); in mcux_pit_set_alarm()
165 static int mcux_pit_cancel_alarm(const struct device *dev, uint8_t chan_id) in mcux_pit_cancel_alarm() argument
170 if (chan_id != DT_PROP(DT_DRV_INST(0), pit_channel)) { in mcux_pit_cancel_alarm()
175 PIT_DisableInterrupts(config->base, chan_id, kPIT_TimerInterruptEnable); in mcux_pit_cancel_alarm()
176 PIT_StopTimer(config->base, chan_id); in mcux_pit_cancel_alarm()
Dcounter_sam_tc.c134 static int counter_sam_tc_set_alarm(const struct device *dev, uint8_t chan_id, in counter_sam_tc_set_alarm() argument
158 if (data->alarm[chan_id].callback != NULL) { in counter_sam_tc_set_alarm()
162 if (chan_id == 0) { in counter_sam_tc_set_alarm()
168 data->alarm[chan_id].callback = alarm_cfg->callback; in counter_sam_tc_set_alarm()
169 data->alarm[chan_id].user_data = alarm_cfg->user_data; in counter_sam_tc_set_alarm()
180 if (chan_id == 0) { in counter_sam_tc_set_alarm()
192 LOG_DBG("set alarm: channel %u, count %u", chan_id, alarm_value); in counter_sam_tc_set_alarm()
197 static int counter_sam_tc_cancel_alarm(const struct device *dev, uint8_t chan_id) in counter_sam_tc_cancel_alarm() argument
204 if (chan_id == 0) { in counter_sam_tc_cancel_alarm()
212 data->alarm[chan_id].callback = NULL; in counter_sam_tc_cancel_alarm()
[all …]
Dcounter_handlers.c77 uint8_t chan_id, in z_vrfy_counter_set_channel_alarm() argument
87 (uint8_t)chan_id, in z_vrfy_counter_set_channel_alarm()
94 uint8_t chan_id) in z_vrfy_counter_cancel_channel_alarm() argument
98 (uint8_t)chan_id); in z_vrfy_counter_cancel_channel_alarm()
Dcounter_mchp_xec.c109 static int counter_xec_set_alarm(const struct device *dev, uint8_t chan_id, in counter_xec_set_alarm() argument
115 if (chan_id != 0) { in counter_xec_set_alarm()
116 LOG_ERR("Invalid channel id %u", chan_id); in counter_xec_set_alarm()
154 static int counter_xec_cancel_alarm(const struct device *dev, uint8_t chan_id) in counter_xec_cancel_alarm() argument
159 if (chan_id != 0) { in counter_xec_cancel_alarm()
160 LOG_ERR("Invalid channel id %u", chan_id); in counter_xec_cancel_alarm()
Dcounter_mcux_gpt.c58 static int mcux_gpt_set_alarm(const struct device *dev, uint8_t chan_id, in mcux_gpt_set_alarm() argument
67 if (chan_id != 0) { in mcux_gpt_set_alarm()
90 static int mcux_gpt_cancel_alarm(const struct device *dev, uint8_t chan_id) in mcux_gpt_cancel_alarm() argument
95 if (chan_id != 0) { in mcux_gpt_cancel_alarm()
Dcounter_mcux_lpc_rtc.c70 static int mcux_lpc_rtc_set_alarm(const struct device *dev, uint8_t chan_id, in mcux_lpc_rtc_set_alarm() argument
83 if (chan_id != 0U) { in mcux_lpc_rtc_set_alarm()
110 static int mcux_lpc_rtc_cancel_alarm(const struct device *dev, uint8_t chan_id) in mcux_lpc_rtc_cancel_alarm() argument
114 if (chan_id != 0U) { in mcux_lpc_rtc_cancel_alarm()
Dcounter_esp32.c144 static int counter_esp32_set_alarm(const struct device *dev, uint8_t chan_id, in counter_esp32_set_alarm() argument
147 ARG_UNUSED(chan_id); in counter_esp32_set_alarm()
163 static int counter_esp32_cancel_alarm(const struct device *dev, uint8_t chan_id) in counter_esp32_cancel_alarm() argument
165 ARG_UNUSED(chan_id); in counter_esp32_cancel_alarm()
Dcounter_mcux_rtc.c90 static int mcux_rtc_set_alarm(const struct device *dev, uint8_t chan_id, in mcux_rtc_set_alarm() argument
103 if (chan_id != 0U) { in mcux_rtc_set_alarm()
130 static int mcux_rtc_cancel_alarm(const struct device *dev, uint8_t chan_id) in mcux_rtc_cancel_alarm() argument
134 if (chan_id != 0U) { in mcux_rtc_cancel_alarm()
Dcounter_xlnx_axi_timer.c118 static int xlnx_axi_timer_set_alarm(const struct device *dev, uint8_t chan_id, in xlnx_axi_timer_set_alarm() argument
125 ARG_UNUSED(chan_id); in xlnx_axi_timer_set_alarm()
170 uint8_t chan_id) in xlnx_axi_timer_cancel_alarm() argument
174 ARG_UNUSED(chan_id); in xlnx_axi_timer_cancel_alarm()
Dcounter_sam0_tc32.c185 uint8_t chan_id, in counter_sam0_tc32_set_alarm() argument
192 ARG_UNUSED(chan_id); in counter_sam0_tc32_set_alarm()
223 uint8_t chan_id) in counter_sam0_tc32_cancel_alarm() argument
231 ARG_UNUSED(chan_id); in counter_sam0_tc32_cancel_alarm()
Dcounter_ll_stm32_rtc.c142 static int rtc_stm32_set_alarm(const struct device *dev, uint8_t chan_id, in rtc_stm32_set_alarm() argument
207 static int rtc_stm32_cancel_alarm(const struct device *dev, uint8_t chan_id) in rtc_stm32_cancel_alarm() argument
/Zephyr-Core-2.7.6/include/drivers/
Dcounter.h109 uint8_t chan_id, uint32_t ticks,
178 uint8_t chan_id,
181 uint8_t chan_id);
391 uint8_t chan_id,
395 uint8_t chan_id, in z_impl_counter_set_channel_alarm() argument
401 if (chan_id >= counter_get_num_of_channels(dev)) { in z_impl_counter_set_channel_alarm()
405 return api->set_alarm(dev, chan_id, alarm_cfg); in z_impl_counter_set_channel_alarm()
421 uint8_t chan_id);
424 uint8_t chan_id) in z_impl_counter_cancel_channel_alarm() argument
429 if (chan_id >= counter_get_num_of_channels(dev)) { in z_impl_counter_cancel_channel_alarm()
[all …]
/Zephyr-Core-2.7.6/tests/boards/altera_max10/msgdma/src/
Ddma.c44 static uint32_t chan_id; in test_msgdma() local
69 chan_id = 0U; in test_msgdma()
77 zassert_true(dma_config(dma, chan_id, &dma_cfg) == 0, in test_msgdma()
84 zassert_true(dma_start(dma, chan_id) == 0, "DMA start error"); in test_msgdma()
/Zephyr-Core-2.7.6/tests/bluetooth/tester/src/
Dl2cap.c35 uint8_t chan_id; /* Internal number that identifies L2CAP channel. */ member
57 ev->chan_id = chan->chan_id; in recv_cb()
81 ev.chan_id = chan->chan_id; in connected_cb()
120 ev.chan_id = chan->chan_id; in disconnected_cb()
149 ev.chan_id = chan->chan_id; in reconfigured_cb()
180 chan->chan_id = i; in get_free_channel()
222 rp->chan_id[i] = chan->chan_id; in connect()
268 struct channel *chan = &channels[cmd->chan_id]; in disconnect()
314 if (cmd->chan_id[i] > CHANNELS) { in reconfigure()
319 reconf_channels[i] = &channels[cmd->chan_id[i]].le.chan; in reconfigure()
[all …]
Dbttester.h779 uint8_t chan_id[]; member
784 uint8_t chan_id; member
789 uint8_t chan_id; member
812 uint8_t chan_id; member
822 uint8_t chan_id[]; member
827 uint8_t chan_id; member
840 uint8_t chan_id; member
848 uint8_t chan_id; member
861 uint8_t chan_id; member
869 uint8_t chan_id; member
[all …]
/Zephyr-Core-2.7.6/tests/drivers/dma/chan_blen_transfer/src/
Dtest_dma.c48 static int test_task(uint32_t chan_id, uint32_t blen) in test_task() argument
77 chan_id, blen >> 3); in test_task()
90 if (dma_config(dma, chan_id, &dma_cfg)) { in test_task()
95 if (dma_start(dma, chan_id)) { in test_task()
/Zephyr-Core-2.7.6/tests/boards/intel_s1000_crb/main/src/
Ddma_test.c125 static int test_task(uint32_t chan_id, uint32_t blen, uint32_t block_count) in test_task() argument
160 chan_id, blen); in test_task()
173 if (dma_config(dma_device, chan_id, &dma_cfg)) { in test_task()
183 if (dma_start(dma_device, chan_id)) { in test_task()
/Zephyr-Core-2.7.6/drivers/pcie/endpoint/
Dpcie_ep_iproc.c184 uint32_t chan_id; in iproc_pcie_pl330_dma_xfer() local
202 chan_id = cfg->pl330_tx_chan_id; in iproc_pcie_pl330_dma_xfer()
206 chan_id = cfg->pl330_rx_chan_id; in iproc_pcie_pl330_dma_xfer()
209 ret = dma_config(cfg->pl330_dev, chan_id, &dma_cfg); in iproc_pcie_pl330_dma_xfer()
216 ret = dma_start(cfg->pl330_dev, chan_id); in iproc_pcie_pl330_dma_xfer()
/Zephyr-Core-2.7.6/samples/drivers/counter/alarm/src/
Dmain.c39 uint8_t chan_id, uint32_t ticks, in test_counter_interrupt_fn() argument

12