Home
last modified time | relevance | path

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

/Zephyr-latest/samples/subsys/fs/zms/src/
Dmain.c89 ssize_t free_space = 0; in main() local
223 free_space = zms_calc_free_space(&fs); in main()
224 if (free_space < 0) { in main()
225 printk("Error while computing free space, rc=%d\n", free_space); in main()
228 if (free_space > 0) { in main()
229 printk("Error: free_space should be 0, computed %u\n", free_space); in main()
259 free_space = zms_calc_free_space(&fs); in main()
260 if (free_space < 0) { in main()
261 printk("Error while computing free space, rc=%d\n", free_space); in main()
264 printk("Free space in storage is %u bytes\n", free_space); in main()
/Zephyr-latest/lib/os/
Dspsc_pbuf.c157 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()
Dmpsc_pbuf.c61 static inline bool free_space(struct mpsc_pbuf_buffer *buffer, uint32_t *res) in free_space() function
102 if (free_space(buffer, &f)) { in get_usage()
308 (void)free_space(buffer, &free_wlen); in mpsc_pbuf_put_word()
363 wrap = free_space(buffer, &free_wlen); in mpsc_pbuf_alloc()
447 wrap = free_space(buffer, &free_wlen); in mpsc_pbuf_put_word_ext()
500 wrap = free_space(buffer, &free_wlen); in mpsc_pbuf_put_data()
/Zephyr-latest/lib/utils/
Dring_buffer.c14 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-latest/subsys/ipc/ipc_service/lib/
Dpbuf.c137 uint32_t free_space = blen - idx_occupied(blen, wr_idx, rd_idx) - _PBUF_IDX_SIZE; in pbuf_write() local
143 if (free_space < plen) { in pbuf_write()
/Zephyr-latest/subsys/fs/nvs/
Dnvs.c1309 size_t ate_size, free_space; in nvs_calc_free_space() local
1324 free_space = (fs->sector_count - 1) * (fs->sector_size - (2 * ate_size)); in nvs_calc_free_space()
1351 free_space -= ate_size; in nvs_calc_free_space()
1355 free_space -= nvs_al_size(fs, step_ate.len); in nvs_calc_free_space()
1356 free_space -= ate_size; in nvs_calc_free_space()
1364 return free_space; in nvs_calc_free_space()
/Zephyr-latest/subsys/fs/zms/
Dzms.c1673 ssize_t free_space = 0; in zms_calc_free_space() local
1686 free_space = (fs->sector_count - 1) * (fs->sector_size - 4 * fs->ate_size); in zms_calc_free_space()
1726 free_space -= zms_al_size(fs, step_ate.len); in zms_calc_free_space()
1728 free_space -= fs->ate_size; in zms_calc_free_space()
1753 free_space -= fs->ate_size; in zms_calc_free_space()
1762 free_space -= fs->ate_size; in zms_calc_free_space()
1769 return free_space; in zms_calc_free_space()