Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/lib/os/
Dspsc_pbuf.c14 #define LEN_SZ sizeof(uint32_t) macro
122 __ASSERT_NO_MSG(blen > (sizeof(*pb) + LEN_SZ)); in spsc_pbuf_init()
145 uint32_t space = len + LEN_SZ; /* data + length field */ in spsc_pbuf_alloc()
168 space = LEN_SZ + 1; in spsc_pbuf_alloc()
195 len = MIN(len, MAX(free_space - (int32_t)LEN_SZ, 0)); in spsc_pbuf_alloc()
196 *buf = &data_loc[wr_idx + LEN_SZ]; in spsc_pbuf_alloc()
217 cache_wb(&data_loc[wr_idx], len + LEN_SZ, flags); in spsc_pbuf_commit()
219 wr_idx += len + LEN_SZ; in spsc_pbuf_commit()
284 cache_inv(&data_loc[rd_idx], LEN_SZ, flags); in spsc_pbuf_claim()
311 __ASSERT_NO_MSG(bytes_stored >= (len + LEN_SZ)); in spsc_pbuf_claim()
[all …]