Lines Matching refs:dfu_tx

515 } dfu_tx;  variable
519 sys_slist_init(&dfu_tx.inputs.targets); in dfu_tx_prepare()
521 for (size_t i = 0; i < dfu_tx.target_cnt; i++) { 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()
526 memset(&dfu_tx.pull[i], 0, sizeof(struct bt_mesh_blob_target_pull)); 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()
553 for (size_t i = 0; i < dfu_tx.target_cnt; i++) { 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()
563 dfu_tx.target_cnt++; in cmd_dfu_target()
750 if (!dfu_tx.target_cnt) { in cmd_dfu_send()
762 dfu_tx.target_cnt); in cmd_dfu_send()
764 dfu_tx.inputs.group = group; in cmd_dfu_send()
765 dfu_tx.inputs.app_idx = bt_mesh_shell_target_ctx.app_idx; in cmd_dfu_send()
766 dfu_tx.inputs.ttl = BT_MESH_TTL_DEFAULT; in cmd_dfu_send()
769 &dfu_tx.inputs, bt_mesh_shell_blob_io, &xfer); in cmd_dfu_send()