Home
last modified time | relevance | path

Searched refs:fifo (Results 1 – 25 of 86) sorted by relevance

1234

/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/edtt_ble_test_app/common/
Dedtt_driver_bsim.c42 static int fifo[2] = { -1, -1 }; variable
142 if (write(fifo[TO_BRIDGE], ptr, size) != size) { in edtt_write()
205 fifo[TO_BRIDGE] = open(fifo_path[TO_BRIDGE], O_WRONLY); in edptd_create_fifo_if()
206 if (fifo[TO_BRIDGE] == -1) { in edptd_create_fifo_if()
210 flags = fcntl(fifo[TO_BRIDGE], F_GETFL); in edptd_create_fifo_if()
212 fcntl(fifo[TO_BRIDGE], F_SETFL, flags); in edptd_create_fifo_if()
215 fifo[TO_DEVICE] = open(fifo_path[TO_DEVICE], O_RDONLY); in edptd_create_fifo_if()
216 if (fifo[TO_DEVICE] == -1) { in edptd_create_fifo_if()
220 flags = fcntl(fifo[TO_DEVICE], F_GETFL); in edptd_create_fifo_if()
222 fcntl(fifo[TO_DEVICE], F_SETFL, flags); in edptd_create_fifo_if()
[all …]
/Zephyr-Core-2.7.6/tests/kernel/fifo/fifo_api/src/
Dtest_fifo_contexts.c14 struct k_fifo fifo; variable
119 tfifo_put(&fifo); in tfifo_is_empty()
123 tfifo_get(&fifo); in tfifo_is_empty()
140 k_fifo_init(&fifo); in test_fifo_thread2thread()
141 tfifo_thread_thread(&fifo); in test_fifo_thread2thread()
154 k_fifo_init(&fifo); in test_fifo_thread2isr()
155 tfifo_thread_isr(&fifo); in test_fifo_thread2isr()
168 k_fifo_init(&fifo); in test_fifo_isr2thread()
169 tfifo_isr_thread(&fifo); in test_fifo_isr2thread()
181 k_fifo_init(&fifo); in test_fifo_is_empty_thread()
[all …]
Dtest_fifo_fail.c24 static struct k_fifo fifo; in test_fifo_get_fail() local
26 k_fifo_init(&fifo); in test_fifo_get_fail()
28 zassert_is_null(k_fifo_get(&fifo, K_NO_WAIT), NULL); in test_fifo_get_fail()
29 zassert_is_null(k_fifo_get(&fifo, TIMEOUT), NULL); in test_fifo_get_fail()
Dtest_fifo_loop.c14 static struct k_fifo fifo; variable
101 k_fifo_init(&fifo); in test_fifo_loop()
104 tfifo_read_write(&fifo); in test_fifo_loop()
/Zephyr-Core-2.7.6/subsys/bluetooth/controller/util/
Dmfifo.h119 static inline void mfifo_by_idx_enqueue(uint8_t *fifo, uint8_t size, uint8_t idx, in mfifo_by_idx_enqueue() argument
123 void **p = (void **)(fifo + (*last) * size); /* buffer preceding idx */ in mfifo_by_idx_enqueue()
145 static inline uint8_t mfifo_enqueue_get(uint8_t *fifo, uint8_t size, uint8_t count, in mfifo_enqueue_get() argument
161 *mem = (void *)(fifo + last * size); /* preceding buffer */ in mfifo_enqueue_get()
232 static inline void *mfifo_dequeue_get(uint8_t *fifo, uint8_t size, uint8_t first, in mfifo_dequeue_get() argument
240 return (void *)(fifo + first * size); in mfifo_dequeue_get()
254 static inline void *mfifo_dequeue_peek(uint8_t *fifo, uint8_t size, uint8_t first, in mfifo_dequeue_peek() argument
262 return *((void **)(fifo + first * size)); in mfifo_dequeue_peek()
273 static inline void *mfifo_dequeue_iter_get(uint8_t *fifo, uint8_t size, uint8_t count, in mfifo_dequeue_iter_get() argument
292 p = (void *)(fifo + (*idx) * size); in mfifo_dequeue_iter_get()
[all …]
/Zephyr-Core-2.7.6/subsys/tracing/test/
Dtracing_test.h205 #define sys_port_trace_k_fifo_init_enter(fifo) sys_trace_k_fifo_init_enter(fifo) argument
207 #define sys_port_trace_k_fifo_init_exit(fifo) sys_trace_k_fifo_init_exit(fifo) argument
209 #define sys_port_trace_k_fifo_cancel_wait_enter(fifo) sys_trace_k_fifo_cancel_wait_enter(fifo) argument
211 #define sys_port_trace_k_fifo_cancel_wait_exit(fifo) sys_trace_k_fifo_cancel_wait_exit(fifo) argument
213 #define sys_port_trace_k_fifo_put_enter(fifo, data) sys_trace_k_fifo_put_enter(fifo, data) argument
215 #define sys_port_trace_k_fifo_put_exit(fifo, data) sys_trace_k_fifo_put_exit(fifo, data) argument
217 #define sys_port_trace_k_fifo_alloc_put_enter(fifo, data) \ argument
218 sys_trace_k_fifo_alloc_put_enter(fifo, data)
220 #define sys_port_trace_k_fifo_alloc_put_exit(fifo, data, ret) \ argument
221 sys_trace_k_fifo_alloc_put_exit(fifo, data, ret)
[all …]
/Zephyr-Core-2.7.6/scripts/tests/twister/test_data/
Dtwister_keyerror.csv4 scripts/tests/twister/test_data/testcases/tests/test_kernel/test_fifo_api/kernel.fifo,nios2,demo_bo…
5 scripts/tests/twister/test_data/testcases/tests/test_kernel/test_fifo_api/kernel.fifo.poll,nios2,de…
6 scripts/tests/twister/test_data/testcases/tests/test_kernel/test_fifo_timeout/kernel.fifo.timeout,n…
7 scripts/tests/twister/test_data/testcases/tests/test_kernel/test_fifo_timeout/kernel.fifo.timeout.p…
8 scripts/tests/twister/test_data/testcases/tests/test_kernel/test_fifo_usage/kernel.fifo.usage,nios2…
9 scripts/tests/twister/test_data/testcases/tests/test_kernel/test_fifo_usage/kernel.fifo.usage.poll,…
/Zephyr-Core-2.7.6/subsys/tracing/user/
Dtracing_user.h183 #define sys_port_trace_k_fifo_init_enter(fifo) argument
184 #define sys_port_trace_k_fifo_init_exit(fifo) argument
185 #define sys_port_trace_k_fifo_cancel_wait_enter(fifo) argument
186 #define sys_port_trace_k_fifo_cancel_wait_exit(fifo) argument
187 #define sys_port_trace_k_fifo_put_enter(fifo, data) argument
188 #define sys_port_trace_k_fifo_put_exit(fifo, data) argument
189 #define sys_port_trace_k_fifo_alloc_put_enter(fifo, data) argument
190 #define sys_port_trace_k_fifo_alloc_put_exit(fifo, data, ret) argument
191 #define sys_port_trace_k_fifo_put_list_enter(fifo, head, tail) argument
192 #define sys_port_trace_k_fifo_put_list_exit(fifo, head, tail) argument
[all …]
/Zephyr-Core-2.7.6/include/tracing/
Dtracing.h1125 #define sys_port_trace_k_fifo_init_enter(fifo) argument
1131 #define sys_port_trace_k_fifo_init_exit(fifo) argument
1137 #define sys_port_trace_k_fifo_cancel_wait_enter(fifo) argument
1143 #define sys_port_trace_k_fifo_cancel_wait_exit(fifo) argument
1150 #define sys_port_trace_k_fifo_put_enter(fifo, data) argument
1157 #define sys_port_trace_k_fifo_put_exit(fifo, data) argument
1164 #define sys_port_trace_k_fifo_alloc_put_enter(fifo, data) argument
1172 #define sys_port_trace_k_fifo_alloc_put_exit(fifo, data, ret) argument
1180 #define sys_port_trace_k_fifo_alloc_put_list_enter(fifo, head, tail) argument
1188 #define sys_port_trace_k_fifo_alloc_put_list_exit(fifo, head, tail) argument
[all …]
/Zephyr-Core-2.7.6/subsys/net/ip/
Dnet_tc.c55 submit_to_queue(&tx_classes[tc].fifo, pkt); in net_tc_submit_to_tx_queue()
68 submit_to_queue(&rx_classes[tc].fifo, pkt); in net_tc_submit_to_rx_queue()
240 static void tc_rx_handler(struct k_fifo *fifo) in tc_rx_handler() argument
245 pkt = k_fifo_get(fifo, K_FOREVER); in tc_rx_handler()
256 static void tc_tx_handler(struct k_fifo *fifo) in tc_tx_handler() argument
261 pkt = k_fifo_get(fifo, K_FOREVER); in tc_tx_handler()
308 k_fifo_init(&tx_classes[i].fifo); in net_tc_tx_init()
313 &tx_classes[i].fifo, NULL, NULL, in net_tc_tx_init()
366 k_fifo_init(&rx_classes[i].fifo); in net_tc_rx_init()
371 &rx_classes[i].fifo, NULL, NULL, in net_tc_rx_init()
/Zephyr-Core-2.7.6/subsys/tracing/ctf/
Dtracing_ctf.h202 #define sys_port_trace_k_fifo_init_enter(fifo) argument
203 #define sys_port_trace_k_fifo_init_exit(fifo) argument
204 #define sys_port_trace_k_fifo_cancel_wait_enter(fifo) argument
205 #define sys_port_trace_k_fifo_cancel_wait_exit(fifo) argument
206 #define sys_port_trace_k_fifo_put_enter(fifo, data) argument
207 #define sys_port_trace_k_fifo_put_exit(fifo, data) argument
208 #define sys_port_trace_k_fifo_alloc_put_enter(fifo, data) argument
209 #define sys_port_trace_k_fifo_alloc_put_exit(fifo, data, ret) argument
210 #define sys_port_trace_k_fifo_put_list_enter(fifo, head, tail) argument
211 #define sys_port_trace_k_fifo_put_list_exit(fifo, head, tail) argument
[all …]
/Zephyr-Core-2.7.6/include/
Dkernel.h2047 #define k_fifo_init(fifo) \ argument
2049 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_fifo, init, fifo); \
2050 k_queue_init(&(fifo)->_queue); \
2051 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_fifo, init, fifo); \
2067 #define k_fifo_cancel_wait(fifo) \ argument
2069 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_fifo, cancel_wait, fifo); \
2070 k_queue_cancel_wait(&(fifo)->_queue); \
2071 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_fifo, cancel_wait, fifo); \
2088 #define k_fifo_put(fifo, data) \ argument
2090 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_fifo, put, fifo, data); \
[all …]
/Zephyr-Core-2.7.6/drivers/bluetooth/hci/
Dh4.c43 struct k_fifo fifo; member
61 .fifo = Z_FIFO_INITIALIZER(rx.fifo),
67 struct k_fifo fifo; member
69 .fifo = Z_FIFO_INITIALIZER(tx.fifo),
234 buf = net_buf_get(&rx.fifo, K_FOREVER); in rx_thread()
248 buf = net_buf_get(&rx.fifo, K_NO_WAIT); in rx_thread()
325 net_buf_put(&rx.fifo, buf); in read_payload()
368 tx.buf = net_buf_get(&tx.fifo, K_NO_WAIT); in process_tx()
413 tx.buf = net_buf_get(&tx.fifo, K_NO_WAIT); in process_tx()
457 net_buf_put(&tx.fifo, buf); in h4_send()
/Zephyr-Core-2.7.6/tests/kernel/pending/src/
Dmain.c62 static struct k_fifo fifo; variable
91 static inline void *my_fifo_get(struct k_fifo *fifo, int32_t timeout) in my_fifo_get() argument
93 return k_fifo_get(fifo, K_MSEC(timeout)); in my_fifo_get()
134 data = get(&fifo, timeout); in fifo_tests()
146 data = get(&fifo, timeout); in fifo_tests()
241 k_fifo_init(&fifo); in task_high()
351 k_fifo_put(&fifo, &fifo_test_data[0]); in test_pending_fifo()
352 k_fifo_put(&fifo, &fifo_test_data[1]); in test_pending_fifo()
353 k_fifo_put(&fifo, &fifo_test_data[2]); in test_pending_fifo()
354 k_fifo_put(&fifo, &fifo_test_data[3]); in test_pending_fifo()
/Zephyr-Core-2.7.6/subsys/tracing/sysview/
Dtracing_sysview.h548 #define sys_port_trace_k_fifo_init_enter(fifo) \ argument
549 SEGGER_SYSVIEW_RecordU32(TID_FIFO_INIT, (uint32_t)(uintptr_t)fifo)
550 #define sys_port_trace_k_fifo_init_exit(fifo) SEGGER_SYSVIEW_RecordEndCall(TID_FIFO_INIT) argument
552 #define sys_port_trace_k_fifo_cancel_wait_enter(fifo) \ argument
553 SEGGER_SYSVIEW_RecordU32(TID_FIFO_CANCEL_WAIT, (uint32_t)(uintptr_t)fifo)
554 #define sys_port_trace_k_fifo_cancel_wait_exit(fifo) \ argument
557 #define sys_port_trace_k_fifo_put_enter(fifo, data) \ argument
558 SEGGER_SYSVIEW_RecordU32x2(TID_FIFO_PUT, (uint32_t)(uintptr_t)fifo, \
561 #define sys_port_trace_k_fifo_put_exit(fifo, data) SEGGER_SYSVIEW_RecordEndCall(TID_FIFO_PUT) argument
563 #define sys_port_trace_k_fifo_alloc_put_enter(fifo, data) \ argument
[all …]
DSYSVIEW_Zephyr.txt149 142 k_fifo_init fifo=%I
150 143 k_fifo_cancel_wait fifo=%I
151 144 k_fifo_alloc_put fifo=%I, data=%I
152 145 k_fifo_put_list fifo=%I
153 146 k_fifo_put_slist fifo=%I
154 147 k_fifo_peak_head fifo=%I
155 148 k_fifo_peak_tail fifo=%I
156 149 k_fifo_put fifo=%I, data=%I
157 150 k_fifo_get fifo=%I, Timeout=%TimeOut
/Zephyr-Core-2.7.6/tests/kernel/common/src/
Derrno.c43 struct k_fifo fifo; variable
59 k_fifo_put(&fifo, &result[n]); in errno_thread()
74 k_fifo_init(&fifo); in test_thread_context()
92 struct result *p = k_fifo_get(&fifo, K_MSEC(100)); in test_thread_context()
/Zephyr-Core-2.7.6/tests/kernel/fifo/fifo_timeout/src/
Dmain.c42 struct k_fifo *fifo; member
129 packet = k_fifo_get(d->fifo, K_MSEC(d->timeout)); in test_thread_pend_and_timeout()
164 data->q_order, data->timeout, data->fifo); in test_multiple_threads_pending()
184 data->q_order, data->timeout, data->fifo); in test_multiple_threads_pending()
203 packet = k_fifo_get(d->fifo, K_MSEC(d->timeout)); in test_thread_pend_and_get_data()
230 k_fifo_put(test_data[ii].fifo, get_scratch_packet()); in test_multiple_threads_get_data()
246 data->q_order, data->timeout, data->fifo); in test_multiple_threads_get_data()
263 data->q_order, data->timeout, data->fifo); in test_multiple_threads_get_data()
/Zephyr-Core-2.7.6/tests/net/buf/src/
Dmain.c124 static struct k_fifo fifo; in test_net_buf_2() local
137 k_fifo_init(&fifo); in test_net_buf_2()
138 net_buf_put(&fifo, head); in test_net_buf_2()
139 head = net_buf_get(&fifo, K_NO_WAIT); in test_net_buf_2()
149 struct k_fifo *fifo = (struct k_fifo *)arg1; in test_3_thread() local
155 buf = net_buf_get(fifo, TEST_TIMEOUT); in test_3_thread()
172 static struct k_fifo fifo; in test_net_buf_3() local
186 k_fifo_init(&fifo); in test_net_buf_3()
191 (k_thread_entry_t) test_3_thread, &fifo, &sema, NULL, in test_net_buf_3()
197 net_buf_put(&fifo, head); in test_net_buf_3()
/Zephyr-Core-2.7.6/drivers/i2s/
Di2s_litex.h51 #define I2S_RX_FIFO_ADDR DT_REG_ADDR_BY_NAME(DT_NODELABEL(i2s_rx), fifo)
67 #define I2S_TX_FIFO_ADDR DT_REG_ADDR_BY_NAME(DT_NODELABEL(i2s_tx), fifo)
/Zephyr-Core-2.7.6/subsys/canbus/isotp/
Disotp.c73 static inline int _k_fifo_wait_non_empty(struct k_fifo *fifo, in _k_fifo_wait_non_empty() argument
78 K_POLL_MODE_NOTIFY_ONLY, fifo), in _k_fifo_wait_non_empty()
278 net_buf_put(&ctx->fifo, ctx->buf); in receive_state_machine()
303 net_buf_put(&ctx->fifo, ctx->buf); in receive_state_machine()
352 k_fifo_cancel_wait(&ctx->fifo); in receive_state_machine()
526 net_buf_put(&ctx->fifo, ctx->buf); in process_cf()
534 net_buf_put(&ctx->fifo, ctx->buf); in process_cf()
614 k_fifo_init(&ctx->fifo); in isotp_bind()
663 while ((buf = net_buf_get(&ctx->fifo, K_NO_WAIT))) { in isotp_unbind()
667 k_fifo_cancel_wait(&ctx->fifo); in isotp_unbind()
[all …]
/Zephyr-Core-2.7.6/drivers/serial/
Duart_esp32.c32 uint32_t fifo; member
144 *p_char = DEV_BASE(dev)->fifo; in uart_esp32_poll_in()
157 DEV_BASE(dev)->fifo = (uint32_t)c; in uart_esp32_poll_out()
264 (void) DEV_BASE(dev)->fifo; in uart_esp32_configure()
344 DEV_BASE(dev)->fifo = (uint32_t)tx_data[num_tx++]; in uart_esp32_fifo_fill()
357 rx_data[num_rx++] = DEV_BASE(dev)->fifo; in uart_esp32_fifo_read()
/Zephyr-Core-2.7.6/dts/arm/st/f3/
Dstm32f302.dtsi43 compatible = "st,stm32-spi-fifo", "st,stm32-spi";
54 compatible = "st,stm32-spi-fifo", "st,stm32-spi";
/Zephyr-Core-2.7.6/dts/arm/st/mp1/
Dstm32mp157.dtsi166 compatible = "st,stm32-spi-fifo", "st,stm32-spi";
176 compatible = "st,stm32-spi-fifo", "st,stm32-spi";
186 compatible = "st,stm32-spi-fifo", "st,stm32-spi";
196 compatible = "st,stm32-spi-fifo", "st,stm32-spi";
206 compatible = "st,stm32-spi-fifo", "st,stm32-spi";
/Zephyr-Core-2.7.6/dts/arm/st/f0/
Dstm32f030X8.dtsi22 compatible = "st,stm32-spi-fifo", "st,stm32-spi";

1234