Home
last modified time | relevance | path

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

1234567

/Zephyr-Core-3.7.0/tests/bsim/bluetooth/ll/edtt/common/
Dedtt_driver_bsim.c42 static int fifo[2] = { -1, -1 }; variable
141 if (write(fifo[TO_EDTT], ptr, size) != size) { in edtt_write()
204 fifo[TO_EDTT] = open(fifo_path[TO_EDTT], O_WRONLY); in edptd_create_fifo_if()
205 if (fifo[TO_EDTT] == -1) { in edptd_create_fifo_if()
209 flags = fcntl(fifo[TO_EDTT], F_GETFL); in edptd_create_fifo_if()
211 fcntl(fifo[TO_EDTT], F_SETFL, flags); in edptd_create_fifo_if()
214 fifo[TO_DEVICE] = open(fifo_path[TO_DEVICE], O_RDONLY); in edptd_create_fifo_if()
215 if (fifo[TO_DEVICE] == -1) { in edptd_create_fifo_if()
219 flags = fcntl(fifo[TO_DEVICE], F_GETFL); in edptd_create_fifo_if()
221 fcntl(fifo[TO_DEVICE], F_SETFL, flags); in edptd_create_fifo_if()
[all …]
/Zephyr-Core-3.7.0/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 ZTEST()
141 tfifo_thread_thread(&fifo); in ZTEST()
154 k_fifo_init(&fifo); in ZTEST()
155 tfifo_thread_isr(&fifo); in ZTEST()
168 k_fifo_init(&fifo); in ZTEST()
169 tfifo_isr_thread(&fifo); in ZTEST()
181 k_fifo_init(&fifo); in ZTEST()
[all …]
Dtest_fifo_fail.c24 static struct k_fifo fifo; in ZTEST() local
26 k_fifo_init(&fifo); in ZTEST()
28 zassert_is_null(k_fifo_get(&fifo, K_NO_WAIT), NULL); in ZTEST()
29 zassert_is_null(k_fifo_get(&fifo, TIMEOUT), NULL); in ZTEST()
Dtest_fifo_loop.c14 static struct k_fifo fifo; variable
101 k_fifo_init(&fifo); in ZTEST()
104 tfifo_read_write(&fifo); in ZTEST()
/Zephyr-Core-3.7.0/tests/drivers/uart/uart_emul/
Duart_emul.overlay12 rx-fifo-size = <256>;
13 tx-fifo-size = <256>;
20 rx-fifo-size = <256>;
21 tx-fifo-size = <256>;
/Zephyr-Core-3.7.0/tests/subsys/logging/log_backend_uart/
Dmulti.overlay21 rx-fifo-size = <256>;
22 tx-fifo-size = <256>;
29 rx-fifo-size = <256>;
30 tx-fifo-size = <256>;
Dsingle.overlay21 rx-fifo-size = <256>;
22 tx-fifo-size = <256>;
/Zephyr-Core-3.7.0/subsys/bluetooth/controller/util/
Dmfifo.h117 static inline void mfifo_by_idx_enqueue(uint8_t *fifo, uint8_t size, in mfifo_by_idx_enqueue() argument
121 void **p = (void **)(fifo + (*last) * size); /* buffer preceding idx */ in mfifo_by_idx_enqueue()
143 static inline uint8_t mfifo_enqueue_get(uint8_t *fifo, uint8_t size, in mfifo_enqueue_get() argument
160 *mem = (void *)(fifo + last * size); /* preceding buffer */ in mfifo_enqueue_get()
232 static inline void *mfifo_dequeue_get(uint8_t *fifo, uint8_t size, 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, 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, in mfifo_dequeue_iter_get() argument
293 p = (void *)(fifo + (*idx) * size); in mfifo_dequeue_iter_get()
[all …]
/Zephyr-Core-3.7.0/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-3.7.0/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()
248 struct k_fifo *fifo = p1; in tc_rx_handler() local
252 pkt = k_fifo_get(fifo, K_FOREVER); in tc_rx_handler()
268 struct k_fifo *fifo = p1; in tc_tx_handler() local
272 pkt = k_fifo_get(fifo, K_FOREVER); in tc_tx_handler()
319 k_fifo_init(&tx_classes[i].fifo); in net_tc_tx_init()
324 &tx_classes[i].fifo, NULL, NULL, in net_tc_tx_init()
377 k_fifo_init(&rx_classes[i].fifo); in net_tc_rx_init()
382 &rx_classes[i].fifo, NULL, NULL, in net_tc_rx_init()
/Zephyr-Core-3.7.0/tests/benchmarks/latency_measure/src/
Dfifo.c30 static K_FIFO_DEFINE(fifo);
49 k_fifo_put(&fifo, fifo_data); in fifo_put_get_thread_entry()
53 data = k_fifo_get(&fifo, K_NO_WAIT); in fifo_put_get_thread_entry()
74 k_fifo_alloc_put(&fifo, fifo_data); in fifo_put_get_thread_entry()
78 data = k_fifo_get(&fifo, K_NO_WAIT); in fifo_put_get_thread_entry()
110 k_thread_access_grant(&start_thread, &pause_sem, &fifo); in fifo_ops()
187 data = k_fifo_get(&fifo, K_FOREVER); in alt_thread_entry()
208 data = k_fifo_get(&fifo, K_FOREVER); in alt_thread_entry()
247 k_fifo_put(&fifo, fifo_data); in start_thread_entry()
258 k_fifo_alloc_put(&fifo, fifo_data); in start_thread_entry()
[all …]
/Zephyr-Core-3.7.0/include/zephyr/tracing/
Dtracing.h1079 #define sys_port_trace_k_fifo_init_enter(fifo) argument
1085 #define sys_port_trace_k_fifo_init_exit(fifo) argument
1091 #define sys_port_trace_k_fifo_cancel_wait_enter(fifo) argument
1097 #define sys_port_trace_k_fifo_cancel_wait_exit(fifo) argument
1104 #define sys_port_trace_k_fifo_put_enter(fifo, data) argument
1111 #define sys_port_trace_k_fifo_put_exit(fifo, data) argument
1118 #define sys_port_trace_k_fifo_alloc_put_enter(fifo, data) argument
1126 #define sys_port_trace_k_fifo_alloc_put_exit(fifo, data, ret) argument
1134 #define sys_port_trace_k_fifo_put_list_enter(fifo, head, tail) argument
1142 #define sys_port_trace_k_fifo_put_list_exit(fifo, head, tail) argument
[all …]
/Zephyr-Core-3.7.0/subsys/mgmt/mcumgr/transport/src/
Dsmp.c139 while ((nb = net_buf_get(&smpt->fifo, K_NO_WAIT)) != NULL) { in smp_handle_reqs()
158 k_fifo_init(&smpt->fifo); in smp_transport_init()
202 net_buf_put(&smpt->fifo, nb); in smp_rx_req()
233 while ((nb = net_buf_get(&zst->fifo, K_NO_WAIT)) != NULL) { in smp_rx_remove_invalid()
243 net_buf_put(&zst->fifo, nb); in smp_rx_remove_invalid()
247 if (!k_fifo_is_empty(&zst->fifo)) { in smp_rx_remove_invalid()
262 while ((nb = net_buf_get(&zst->fifo, K_NO_WAIT)) != NULL) { in smp_rx_clear()
/Zephyr-Core-3.7.0/tests/drivers/uart/uart_async_api/boards/
Dxmc45_relax_kit.overlay15 fifo-start-offset = <0>;
16 fifo-tx-size = <0>;
17 fifo-rx-size = <0>;
Dxmc47_relax_kit.overlay20 fifo-start-offset = <0>;
21 fifo-tx-size = <0>;
22 fifo-rx-size = <0>;
/Zephyr-Core-3.7.0/samples/subsys/logging/logger/
Dbt.overlay14 rx-fifo-size = <1024>;
15 tx-fifo-size = <1024>;
/Zephyr-Core-3.7.0/tests/subsys/shell/shell_backend_uart/
Dapp.overlay12 rx-fifo-size = <256>;
13 tx-fifo-size = <256>;
/Zephyr-Core-3.7.0/snippets/nus-console/
Dnus-console.overlay15 rx-fifo-size = <1024>;
16 tx-fifo-size = <1024>;
/Zephyr-Core-3.7.0/samples/subsys/shell/shell_module/
Dbt.overlay15 rx-fifo-size = <1024>;
16 tx-fifo-size = <1024>;
/Zephyr-Core-3.7.0/subsys/tracing/user/
Dtracing_user.h207 #define sys_port_trace_k_fifo_init_enter(fifo) argument
208 #define sys_port_trace_k_fifo_init_exit(fifo) argument
209 #define sys_port_trace_k_fifo_cancel_wait_enter(fifo) argument
210 #define sys_port_trace_k_fifo_cancel_wait_exit(fifo) argument
211 #define sys_port_trace_k_fifo_put_enter(fifo, data) argument
212 #define sys_port_trace_k_fifo_put_exit(fifo, data) argument
213 #define sys_port_trace_k_fifo_alloc_put_enter(fifo, data) argument
214 #define sys_port_trace_k_fifo_alloc_put_exit(fifo, data, ret) argument
215 #define sys_port_trace_k_fifo_put_list_enter(fifo, head, tail) argument
216 #define sys_port_trace_k_fifo_put_list_exit(fifo, head, tail) argument
[all …]
/Zephyr-Core-3.7.0/subsys/tracing/sysview/
Dtracing_sysview.h413 #define sys_port_trace_k_fifo_init_enter(fifo) \ argument
414 SEGGER_SYSVIEW_RecordU32(TID_FIFO_INIT, (uint32_t)(uintptr_t)fifo)
415 #define sys_port_trace_k_fifo_init_exit(fifo) SEGGER_SYSVIEW_RecordEndCall(TID_FIFO_INIT) argument
417 #define sys_port_trace_k_fifo_cancel_wait_enter(fifo) \ argument
418 SEGGER_SYSVIEW_RecordU32(TID_FIFO_CANCEL_WAIT, (uint32_t)(uintptr_t)fifo)
419 #define sys_port_trace_k_fifo_cancel_wait_exit(fifo) \ argument
422 #define sys_port_trace_k_fifo_put_enter(fifo, data) \ argument
423 SEGGER_SYSVIEW_RecordU32x2(TID_FIFO_PUT, (uint32_t)(uintptr_t)fifo, \
426 #define sys_port_trace_k_fifo_put_exit(fifo, data) SEGGER_SYSVIEW_RecordEndCall(TID_FIFO_PUT) argument
428 #define sys_port_trace_k_fifo_alloc_put_enter(fifo, data) \ argument
[all …]
/Zephyr-Core-3.7.0/tests/kernel/common/src/
Derrno.c44 struct k_fifo fifo; variable
60 k_fifo_put(&fifo, &result[n]); in errno_thread()
75 k_fifo_init(&fifo); in ZTEST()
93 struct result *p = k_fifo_get(&fifo, K_MSEC(100)); in ZTEST()
/Zephyr-Core-3.7.0/drivers/serial/
DKconfig.xmc4xxx20 bool "Continue to trigger fifo rx interrupt"
24 if there is data in the receive fifo. Otherwise, an interrupt will
25 trigger only once on the first received byte. The receive fifo will
/Zephyr-Core-3.7.0/include/zephyr/
Dkernel.h2500 #define k_fifo_init(fifo) \ argument
2502 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_fifo, init, fifo); \
2503 k_queue_init(&(fifo)->_queue); \
2504 K_OBJ_CORE_INIT(K_OBJ_CORE(fifo), _obj_type_fifo); \
2505 K_OBJ_CORE_LINK(K_OBJ_CORE(fifo)); \
2506 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_fifo, init, fifo); \
2520 #define k_fifo_cancel_wait(fifo) \ argument
2522 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_fifo, cancel_wait, fifo); \
2523 k_queue_cancel_wait(&(fifo)->_queue); \
2524 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_fifo, cancel_wait, fifo); \
[all …]
/Zephyr-Core-3.7.0/drivers/can/
Dcan_xmc4xxx.c246 static void can_xmc4xxx_deinit_fifo(const struct device *dev, struct can_xmc4xxx_rx_fifo *fifo) in can_xmc4xxx_deinit_fifo() argument
248 CAN_MO_TypeDef *mo = fifo->base; in can_xmc4xxx_deinit_fifo()
260 if ((uint32_t)mo == (uint32_t)fifo->top) { in can_xmc4xxx_deinit_fifo()
276 struct can_xmc4xxx_rx_fifo *fifo, bool is_rtr) in can_xmc4xxx_init_fifo() argument
291 fifo->base = mo; in can_xmc4xxx_init_fifo()
292 fifo->tail = mo; in can_xmc4xxx_init_fifo()
346 fifo->base->MOFGPR = reg; in can_xmc4xxx_init_fifo()
347 fifo->top = mo; in can_xmc4xxx_init_fifo()
565 static inline void can_xmc4xxx_increment_fifo_tail(struct can_xmc4xxx_rx_fifo *fifo) in can_xmc4xxx_increment_fifo_tail() argument
569 if ((uint32_t)fifo->tail == (uint32_t)fifo->top) { in can_xmc4xxx_increment_fifo_tail()
[all …]

1234567