Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/bluetooth/mesh/
Dblob.h109 size_t bytes = block->chunk_count / 8; in blob_chunk_missing_set_all()
112 if (block->chunk_count % 8) { in blob_chunk_missing_set_all()
113 block->missing[bytes] = BIT_MASK(block->chunk_count % 8); in blob_chunk_missing_set_all()
Dblob_srv.c196 for (i = 0; i < srv->block.chunk_count && count; ++i) { in block_report()
366 missing = srv->block.chunk_count; in block_status_rsp()
375 } else if (missing == srv->block.chunk_count) { in block_status_rsp()
383 LOG_DBG("Status: %u, missing: %u/%u", status, missing, srv->block.chunk_count); in block_status_rsp()
391 DIV_ROUND_UP(srv->block.chunk_count, in block_status_rsp()
396 DIV_ROUND_UP(srv->block.chunk_count, 8))); in block_status_rsp()
401 for (i = 0; (i < srv->block.chunk_count) && count; ++i) { in block_status_rsp()
676 srv->block.chunk_count = DIV_ROUND_UP(srv->block.size, chunk_size); in handle_block_start()
697 srv->block.size, chunk_size, srv->block.chunk_count); in handle_block_start()
737 idx >= srv->block.chunk_count) { in handle_chunk()
[all …]
Dblob_cli.c193 } while (++idx < cli->block.chunk_count); in next_missing_chunk()
210 for (size_t idx = 0; idx < cli->block.chunk_count; idx++) { in update_missing_chunks()
222 if ((chunk_idx == block->chunk_count - 1) && in chunk_size()
270 cli->block.chunk_count = in block_set()
287 cli->block.chunk_count); in block_set()
867 cli->block.chunk_count, cli->block.number + 1, cli->block_count); in block_start()
906 if (chunk_idx < cli->block.chunk_count) { in chunk_tx_complete()
952 LOG_DBG("%u / %u size: %u", cli->chunk_idx + 1, cli->block.chunk_count, in chunk_send()
970 if (cli->chunk_idx < cli->block.chunk_count) { in chunk_send_end()
1008 if (next_missing_chunk(cli, cli->block.missing, 0) >= cli->block.chunk_count) { in block_report_wait()
[all …]
/Zephyr-latest/tests/bluetooth/mesh/blob_io_flash/src/
Dmain.c26 if ((chunk_idx == block->chunk_count - 1) && in chunk_size()
98 block.chunk_count = in ZTEST()
120 for (i = 0; i < block.chunk_count; i++) { in ZTEST()
195 block.chunk_count = in ZTEST()
214 for (i = 0; i < block.chunk_count; i++) { in ZTEST()
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dblob.h106 uint16_t chunk_count; member