Lines Matching refs:targets
511 struct bt_mesh_dfu_target targets[32]; member
519 sys_slist_init(&dfu_tx.inputs.targets); in dfu_tx_prepare()
523 uint16_t addr = dfu_tx.targets[i].blob.addr; in dfu_tx_prepare()
525 memset(&dfu_tx.targets[i].blob, 0, sizeof(struct bt_mesh_blob_target)); in dfu_tx_prepare()
527 dfu_tx.targets[i].blob.addr = addr; in dfu_tx_prepare()
528 dfu_tx.targets[i].blob.pull = &dfu_tx.pull[i]; in dfu_tx_prepare()
530 sys_slist_append(&dfu_tx.inputs.targets, &dfu_tx.targets[i].blob.n); in dfu_tx_prepare()
548 if (dfu_tx.target_cnt == ARRAY_SIZE(dfu_tx.targets)) { in cmd_dfu_target()
554 if (dfu_tx.targets[i].blob.addr == addr) { in cmd_dfu_target()
560 dfu_tx.targets[dfu_tx.target_cnt].blob.addr = addr; in cmd_dfu_target()
561 dfu_tx.targets[dfu_tx.target_cnt].img_idx = img_idx; in cmd_dfu_target()
562 sys_slist_append(&dfu_tx.inputs.targets, &dfu_tx.targets[dfu_tx.target_cnt].blob.n); in cmd_dfu_target()
976 SHELL_CMD_ARG(targets-reset, NULL, NULL, cmd_dfu_targets_reset, 1, 0),