Home
last modified time | relevance | path

Searched refs:spsc_pbuf (Results 1 – 10 of 10) sorted by relevance

/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
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);
264 int spsc_pbuf_get_utilization(struct spsc_pbuf *pb);
/Zephyr-latest/lib/os/
Dspsc_pbuf.c62 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()
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()
249 uint16_t spsc_pbuf_claim(struct spsc_pbuf *pb, char **buf) in spsc_pbuf_claim()
319 void spsc_pbuf_free(struct spsc_pbuf *pb, uint16_t len) in spsc_pbuf_free()
[all …]
DCMakeLists.txt34 zephyr_sources_ifdef(CONFIG_SPSC_PBUF spsc_pbuf.c)
/Zephyr-latest/tests/lib/spsc_pbuf/src/
Dmain.c31 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()
265 struct spsc_pbuf *pb; in ZTEST()
301 struct spsc_pbuf *pb; in ZTEST()
[all …]
/Zephyr-latest/tests/lib/spsc_pbuf/
DCMakeLists.txt5 project(spsc_pbuf) project
/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/
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