Home
last modified time | relevance | path

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

/Zephyr-latest/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 …]
/Zephyr-latest/subsys/logging/frontends/
Dlog_frontend_stmesp.c25 #define LEN_SZ sizeof(uint32_t) macro
130 early_buf_idx += LEN_SZ; in early_buf_len_loc()
151 return (uint32_t)((uintptr_t)&early_buf[early_buf_idx] - (uintptr_t)len_loc - LEN_SZ); in early_buf_get_len()
162 if (early_buf_has_space(len + LEN_SZ)) { in early_buf_alloc()
164 early_buf_idx += LEN_SZ; in early_buf_alloc()
168 if (early_buf_has_space(LEN_SZ)) { in early_buf_alloc()
186 if (early_buf_has_space(LEN_SZ)) { in early_buf_get_data()
189 *buf = &early_buf[early_buf_idx + LEN_SZ]; in early_buf_get_data()
190 early_buf_idx += len + LEN_SZ; in early_buf_get_data()