Home
last modified time | relevance | path

Searched full:spsc_pbuf (Results 1 – 14 of 14) sorted by relevance

/Zephyr-latest/tests/lib/spsc_pbuf/
Dtestcase.yaml2 libraries.spsc_pbuf:
9 libraries.spsc_pbuf.cache:
19 libraries.spsc_pbuf.nocache.:
28 libraries.spsc_pbuf.utilization:
37 libraries.spsc_pbuf.stress:
DCMakeLists.txt5 project(spsc_pbuf) project
/Zephyr-latest/lib/os/
Dspsc_pbuf.c11 #include <zephyr/sys/spsc_pbuf.h>
62 static uint32_t *get_rd_idx_loc(struct spsc_pbuf *pb, uint32_t flags) in get_rd_idx_loc()
67 static uint32_t *get_wr_idx_loc(struct spsc_pbuf *pb, uint32_t flags) in get_wr_idx_loc()
77 static uint8_t *get_data_loc(struct spsc_pbuf *pb, uint32_t flags) in get_data_loc()
109 struct spsc_pbuf *spsc_pbuf_init(void *buf, size_t blen, uint32_t flags) in spsc_pbuf_init()
116 /* blen must be big enough to contain spsc_pbuf struct, byte of data in spsc_pbuf_init()
119 struct spsc_pbuf *pb = buf; in spsc_pbuf_init()
136 int spsc_pbuf_alloc(struct spsc_pbuf *pb, uint16_t len, char **buf) in spsc_pbuf_alloc()
201 void spsc_pbuf_commit(struct spsc_pbuf *pb, uint16_t len) in spsc_pbuf_commit()
228 int spsc_pbuf_write(struct spsc_pbuf *pb, const char *buf, uint16_t len) in spsc_pbuf_write()
[all …]
DKconfig39 config SPSC_PBUF config
46 if SPSC_PBUF
100 endif # SPSC_PBUF
DCMakeLists.txt34 zephyr_sources_ifdef(CONFIG_SPSC_PBUF spsc_pbuf.c)
/Zephyr-latest/include/zephyr/sys/
Dspsc_pbuf.h105 struct spsc_pbuf { struct
123 static inline uint32_t spsc_pbuf_capacity(struct spsc_pbuf *pb) in spsc_pbuf_capacity() argument
143 * @retval struct spsc_pbuf* Pointer to the created buffer. The pointer
147 struct spsc_pbuf *spsc_pbuf_init(void *buf, size_t blen, uint32_t flags);
162 int spsc_pbuf_write(struct spsc_pbuf *pb, const char *buf, uint16_t len);
192 int spsc_pbuf_alloc(struct spsc_pbuf *pb, uint16_t len, char **buf);
203 void spsc_pbuf_commit(struct spsc_pbuf *pb, uint16_t len);
222 int spsc_pbuf_read(struct spsc_pbuf *pb, char *buf, uint16_t len);
241 uint16_t spsc_pbuf_claim(struct spsc_pbuf *pb, char **buf);
251 void spsc_pbuf_free(struct spsc_pbuf *pb, uint16_t len);
[all …]
/Zephyr-latest/tests/lib/spsc_pbuf/src/
Dmain.c9 #include <zephyr/sys/spsc_pbuf.h>
17 * 212 - sizeof(struct spsc_pbuf) - 1 = 199.
31 struct spsc_pbuf *ib; in test_spsc_pbuf_flags()
35 (sizeof(memory_area) - offsetof(struct spsc_pbuf, ext.cache.data)) : in test_spsc_pbuf_flags()
36 (sizeof(memory_area) - offsetof(struct spsc_pbuf, ext.nocache.data))) - in test_spsc_pbuf_flags()
127 static void packet_write(struct spsc_pbuf *pb, in packet_write()
156 static void packet_consume(struct spsc_pbuf *pb, in packet_consume()
183 struct spsc_pbuf *pb = spsc_pbuf_init(buffer, sizeof(buffer), 0); in ZTEST()
215 struct spsc_pbuf *pb = spsc_pbuf_init(buffer, sizeof(buffer), 0); in ZTEST()
235 struct spsc_pbuf *pb = spsc_pbuf_init(buffer, sizeof(buffer), 0); in ZTEST()
[all …]
/Zephyr-latest/doc/services/logging/
Dcs_stm.rst204 [00:00:00.154,790] <inf> app/spsc_pbuf: alloc in 0x2f0df800
205 [00:00:00.163,319] <inf> app/spsc_pbuf: alloc 0x2f0df800 wr_idx:20
206 [00:00:00.181,112] <inf> app/spsc_pbuf: commit in 0x2f0df800
207 [00:00:00.189,090] <inf> app/spsc_pbuf: commit 0x2f0df800, len:20 wr_idx: 44
209 [00:00:00.214,750] <inf> rad/spsc_pbuf: claim 0x2f0df800 rd_idx:20
210 [00:00:00.235,823] <inf> rad/spsc_pbuf: free 0x2f0df800 len:20 rd_idx: 44
211 [00:00:00.244,507] <inf> rad/spsc_pbuf: read done 0x2f0df800 len:20
215 [00:00:05.077,026] <inf> rad/spsc_pbuf: alloc in 0x2f0df000
216 [00:00:05.077,068] <inf> rad/spsc_pbuf: alloc 0x2f0df000 wr_idx:44
217 [00:00:05.077,098] <inf> rad/spsc_pbuf: commit in 0x2f0df000
[all …]
/Zephyr-latest/doc/kernel/data_structures/
Dspsc_pbuf.rst6 A :dfn:`Single Producer Single Consumer Packet Buffer (SPSC_PBUF)` is a circular
Dindex.rst36 spsc_pbuf.rst
/Zephyr-latest/doc/services/ipc/ipc_service/backends/
Dipc_service_icmsg.rst8 memory footprint. The ICMsg backend is build on top of :ref:`spsc_pbuf`.
/Zephyr-latest/doc/releases/
Drelease-notes-3.2.rst1466 * ``icmsg_buf`` library was renamed to ``spsc_pbuf``.
1467 * Added cache handling support to ``spsc_pbuf``.
2257 * :github:`47300` - Intel CAVS: Failure in tests/lib/spsc_pbuf
Drelease-notes-3.3.rst2748 - :github:`53933` - tests: lib: spsc_pbuf: lib.spsc_pbuf... hangs
/Zephyr-latest/
DMAINTAINERS.yml2648 - tests/lib/spsc_pbuf/