Lines Matching +full:all +full:- +full:inputs
4 * SPDX-License-Identifier: Apache-2.0
42 for (i = 0; i < chunk->size; ++i) { in blob_chunk_wr()
43 blob_rx_sum += chunk->data[i]; in blob_chunk_wr()
44 if (chunk->data[i] != in blob_chunk_wr()
45 blob_data[(i + chunk->offset) % sizeof(blob_data)]) { in blob_chunk_wr()
58 for (int i = 0; i < chunk->size; ++i) { in blob_chunk_rd()
59 chunk->data[i] = in blob_chunk_rd()
60 blob_data[(i + chunk->offset) % sizeof(blob_data)]; in blob_chunk_rd()
77 struct bt_mesh_blob_cli_inputs inputs; member
89 target->addr, reason); in blob_cli_lost_target()
99 "all", in blob_cli_caps()
109 shell_print(bt_mesh_shell_ctx_shell, "\tMax BLOB size: %u bytes", caps->max_size); in blob_cli_caps()
110 shell_print(bt_mesh_shell_ctx_shell, "\tBlock size: %u-%u (%u-%u bytes)", in blob_cli_caps()
111 caps->min_block_size_log, caps->max_block_size_log, in blob_cli_caps()
112 1 << caps->min_block_size_log, in blob_cli_caps()
113 1 << caps->max_block_size_log); in blob_cli_caps()
114 shell_print(bt_mesh_shell_ctx_shell, "\tMax chunks: %u", caps->max_chunks); in blob_cli_caps()
115 shell_print(bt_mesh_shell_ctx_shell, "\tChunk size: %u", caps->max_chunk_size); in blob_cli_caps()
116 shell_print(bt_mesh_shell_ctx_shell, "\tMTU size: %u", caps->mtu_size); in blob_cli_caps()
117 shell_print(bt_mesh_shell_ctx_shell, "\tModes: %s", modes[caps->modes]); in blob_cli_caps()
137 total_blocks = DIV_ROUND_UP(info->size, 1U << info->block_size_log); in get_progress()
142 blocks_not_rxed += info->missing_blocks[i % 8] & (1 << (i % 8)); in get_progress()
145 return (total_blocks - blocks_not_rxed) / total_blocks; in get_progress()
158 target->addr, info->phase, progress); in xfer_progress()
238 return -EINVAL; in cmd_flash_stream_set()
280 blob_cli_xfer.inputs.ttl = BT_MESH_TTL_DEFAULT; in blob_cli_inputs_prepare()
281 blob_cli_xfer.inputs.group = group; in blob_cli_inputs_prepare()
282 blob_cli_xfer.inputs.app_idx = bt_mesh_shell_target_ctx.app_idx; in blob_cli_inputs_prepare()
283 sys_slist_init(&blob_cli_xfer.inputs.targets); in blob_cli_inputs_prepare()
294 sys_slist_append(&blob_cli_xfer.inputs.targets, in blob_cli_inputs_prepare()
305 return -ENODEV; in cmd_tx()
325 return -EINVAL; in cmd_tx()
329 blob_cli_xfer.inputs.timeout_base = shell_strtoul(argv[7], 0, &err); in cmd_tx()
331 blob_cli_xfer.inputs.timeout_base = 0; in cmd_tx()
354 err = bt_mesh_blob_cli_send((struct bt_mesh_blob_cli *)mod_cli->rt->user_data, in cmd_tx()
355 &blob_cli_xfer.inputs, in cmd_tx()
376 t->addr = shell_strtoul(argv[1], 0, &err); in cmd_target()
383 shell_print(sh, "Added target 0x%04x", t->addr); in cmd_target()
395 return -ENODEV; in cmd_caps()
407 blob_cli_xfer.inputs.timeout_base = shell_strtoul(argv[2], 0, &err); in cmd_caps()
409 blob_cli_xfer.inputs.timeout_base = 0; in cmd_caps()
424 err = bt_mesh_blob_cli_caps_get((struct bt_mesh_blob_cli *)mod_cli->rt->user_data, in cmd_caps()
425 &blob_cli_xfer.inputs); in cmd_caps()
437 return -ENODEV; in cmd_tx_cancel()
441 bt_mesh_blob_cli_cancel((struct bt_mesh_blob_cli *)mod_cli->rt->user_data); in cmd_tx_cancel()
452 return -ENODEV; in cmd_tx_get()
463 return -EINVAL; in cmd_tx_get()
468 err = bt_mesh_blob_cli_xfer_progress_get((struct bt_mesh_blob_cli *)mod_cli->rt->user_data, in cmd_tx_get()
469 &blob_cli_xfer.inputs); in cmd_tx_get()
481 return -ENODEV; in cmd_tx_suspend()
485 bt_mesh_blob_cli_suspend((struct bt_mesh_blob_cli *)mod_cli->rt->user_data); in cmd_tx_suspend()
493 return -ENODEV; in cmd_tx_resume()
497 bt_mesh_blob_cli_resume((struct bt_mesh_blob_cli *)mod_cli->rt->user_data); in cmd_tx_resume()
515 return -ENODEV; in cmd_rx()
533 err = bt_mesh_blob_srv_recv((struct bt_mesh_blob_srv *)mod_srv->rt->user_data, in cmd_rx()
547 return -ENODEV; in cmd_rx_cancel()
551 err = bt_mesh_blob_srv_cancel((struct bt_mesh_blob_srv *)mod_srv->rt->user_data); in cmd_rx_cancel()
577 SHELL_CMD_ARG(tx-cancel, NULL, NULL, cmd_tx_cancel, 1, 0),
578 SHELL_CMD_ARG(tx-get, NULL, "[Group]", cmd_tx_get, 1, 1),
579 SHELL_CMD_ARG(tx-suspend, NULL, NULL, cmd_tx_suspend, 1, 0),
580 SHELL_CMD_ARG(tx-resume, NULL, NULL, cmd_tx_resume, 1, 0),
590 SHELL_CMD_ARG(rx-cancel, NULL, NULL, cmd_rx_cancel, 1, 0),
598 SHELL_CMD_ARG(flash-stream-set, NULL, "<AreaID> [<Offset>]",
600 SHELL_CMD_ARG(flash-stream-unset, NULL, NULL, cmd_flash_stream_unset, 1, 0),