Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/bluetooth/mesh/
Dblob.h85 static inline size_t blob_block_size(size_t xfer_size, uint8_t block_size_log, in blob_block_size() argument
88 if (((idx + 1U) << block_size_log) <= xfer_size) { in blob_block_size()
89 return (1U << block_size_log); in blob_block_size()
92 return xfer_size & BIT_MASK(block_size_log); in blob_block_size()
Dblob_srv.c50 (1U << srv->state.xfer.block_size_log)); in block_count_get()
342 net_buf_simple_add_u8(&buf, srv->state.xfer.block_size_log); in xfer_status_rsp()
445 uint8_t block_size_log; in handle_xfer_start() local
453 block_size_log = net_buf_simple_pull_u8(buf); in handle_xfer_start()
457 size, (1U << block_size_log), mtu_size, in handle_xfer_start()
485 srv->state.xfer.block_size_log != block_size_log || in handle_xfer_start()
509 if (((1U << block_size_log) < CONFIG_BT_MESH_BLOB_BLOCK_SIZE_MIN) || in handle_xfer_start()
510 ((1U << block_size_log) > CONFIG_BT_MESH_BLOB_BLOCK_SIZE_MAX)) { in handle_xfer_start()
511 LOG_WRN("Invalid block size: %u", block_size_log); in handle_xfer_start()
522 srv->state.xfer.block_size_log = block_size_log; in handle_xfer_start()
[all …]
Dblob_cli.c267 cli->block.offset = block_idx * (1UL << cli->xfer->block_size_log); in block_set()
268 cli->block.size = blob_block_size(cli->xfer->size, cli->xfer->block_size_log, in block_set()
640 net_buf_simple_add_u8(&buf, cli->xfer->block_size_log); in xfer_start_tx()
1226 info.block_size_log = net_buf_simple_pull_u8(buf); in handle_xfer_status()
1524 if (!(xfer->mode & BT_MESH_BLOB_XFER_MODE_ALL) || xfer->block_size_log < 0x06 || in bt_mesh_blob_cli_send()
1525 xfer->block_size_log > 0x20 || xfer->chunk_size < 8 || in bt_mesh_blob_cli_send()
1535 if (cli->xfer->block_size_log == 0x20) { in bt_mesh_blob_cli_send()
1538 cli->block_count = DIV_ROUND_UP(cli->xfer->size, (1U << cli->xfer->block_size_log)); in bt_mesh_blob_cli_send()
1555 cli->xfer->block_size_log, cli->xfer->chunk_size, in bt_mesh_blob_cli_send()
Ddfu_cli.c190 cli->xfer.blob.block_size_log = caps->max_block_size_log; in blob_caps()
1041 cli->xfer.blob.block_size_log = xfer->blob_params->block_size_log; in bt_mesh_dfu_cli_send()
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dblob.h131 uint8_t block_size_log; member
Ddfu_cli.h217 uint8_t block_size_log; member
Dblob_cli.h94 uint8_t block_size_log; member
/Zephyr-latest/tests/bluetooth/mesh/blob_io_flash/src/
Dmain.c36 uint8_t block_size_log = 0; in block_size_to_log() local
40 block_size_log++; in block_size_to_log()
43 return block_size_log; in block_size_to_log()
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dtest_blob.c929 blob_cli_xfer.xfer.block_size_log = 9; in test_cli_trans_complete()
1004 blob_cli_xfer.xfer.block_size_log = 9; in test_cli_trans_resume()
1105 blob_cli_xfer.xfer.block_size_log = 8; in cli_pull_mode_setup()
1225 blob_cli_xfer.xfer.block_size_log = 9; in cli_common_fail_on_init()
1427 blob_cli_xfer.xfer.block_size_log = 9; in cli_stop_setup()
1530 ASSERT_EQUAL(9, blob_srv.state.xfer.block_size_log); in srv_check_reboot_and_continue()
/Zephyr-latest/subsys/bluetooth/mesh/shell/
Dblob.c137 total_blocks = DIV_ROUND_UP(info->size, 1U << info->block_size_log); in get_progress()
310 blob_cli_xfer.xfer.block_size_log = shell_strtoul(argv[3], 0, &err); in cmd_tx()
Ddfu.c738 blob_params.block_size_log = shell_strtoul(argv[4], 0, &err); in cmd_dfu_send()
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/
Dblob.rst63 determined by the transfer's ``block_size_log`` parameter, and is the same for all blocks in the
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_mesh.c4429 .block_size_log = cp->block_size, in dfu_firmware_update_start()
4627 blob_cli_xfer.xfer.block_size_log = cp->block_size; in blob_transfer_start()