Lines Matching full:spsc_pbuf
11 #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()
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()
352 int spsc_pbuf_read(struct spsc_pbuf *pb, char *buf, uint16_t len) in spsc_pbuf_read()
376 int spsc_pbuf_get_utilization(struct spsc_pbuf *pb) in spsc_pbuf_get_utilization()