Searched refs:free_space (Results 1 – 4 of 4) sorted by relevance
/Zephyr-Core-3.4.0/lib/os/ |
D | spsc_pbuf.c | 157 int32_t free_space; in spsc_pbuf_alloc() local 177 free_space = remaining - ((rd_idx > 0) ? 0 : FREE_SPACE_DISTANCE); in spsc_pbuf_alloc() 188 free_space = rd_idx - FREE_SPACE_DISTANCE; in spsc_pbuf_alloc() 192 free_space = rd_idx - wr_idx - FREE_SPACE_DISTANCE; in spsc_pbuf_alloc() 195 len = MIN(len, MAX(free_space - (int32_t)LEN_SZ, 0)); in spsc_pbuf_alloc()
|
D | mpsc_pbuf.c | 59 static inline bool free_space(struct mpsc_pbuf_buffer *buffer, uint32_t *res) in free_space() function 100 if (free_space(buffer, &f)) { in get_usage() 306 (void)free_space(buffer, &free_wlen); in mpsc_pbuf_put_word() 361 wrap = free_space(buffer, &free_wlen); in mpsc_pbuf_alloc() 444 wrap = free_space(buffer, &free_wlen); in mpsc_pbuf_put_word_ext() 497 wrap = free_space(buffer, &free_wlen); in mpsc_pbuf_put_data()
|
D | ring_buffer.c | 14 uint32_t free_space, wrap_size; in ring_buf_put_claim() local 26 free_space = ring_buf_space_get(buf); in ring_buf_put_claim() 27 size = MIN(size, free_space); in ring_buf_put_claim()
|
/Zephyr-Core-3.4.0/subsys/fs/nvs/ |
D | nvs.c | 1227 size_t ate_size, free_space; in nvs_calc_free_space() local 1236 free_space = 0; in nvs_calc_free_space() 1238 free_space += (fs->sector_size - ate_size); in nvs_calc_free_space() 1265 free_space -= nvs_al_size(fs, step_ate.len); in nvs_calc_free_space() 1266 free_space -= ate_size; in nvs_calc_free_space() 1273 return free_space; in nvs_calc_free_space()
|