Lines Matching refs:dfu_tx
4140 } dfu_tx; variable
4144 sys_slist_init(&dfu_tx.inputs.targets); in dfu_tx_prepare()
4146 for (int i = 0; i < dfu_tx.target_cnt; i++) { in dfu_tx_prepare()
4148 uint16_t addr = dfu_tx.targets[i].blob.addr; in dfu_tx_prepare()
4150 memset(&dfu_tx.targets[i].blob, 0, in dfu_tx_prepare()
4152 memset(&dfu_tx.pull[i], 0, in dfu_tx_prepare()
4154 dfu_tx.targets[i].blob.addr = addr; in dfu_tx_prepare()
4155 dfu_tx.targets[i].blob.pull = &dfu_tx.pull[i]; in dfu_tx_prepare()
4157 sys_slist_append(&dfu_tx.inputs.targets, in dfu_tx_prepare()
4158 &dfu_tx.targets[i].blob.n); in dfu_tx_prepare()
4164 if (dfu_tx.target_cnt == ARRAY_SIZE(dfu_tx.targets)) { in dfu_target()
4169 for (int i = 0; i < dfu_tx.target_cnt; i++) { in dfu_target()
4170 if (dfu_tx.targets[i].blob.addr == addr) { in dfu_target()
4176 dfu_tx.targets[dfu_tx.target_cnt].blob.addr = addr; in dfu_target()
4177 dfu_tx.targets[dfu_tx.target_cnt].img_idx = img_idx; in dfu_target()
4178 sys_slist_append(&dfu_tx.inputs.targets, in dfu_target()
4179 &dfu_tx.targets[dfu_tx.target_cnt].blob.n); in dfu_target()
4180 dfu_tx.target_cnt++; in dfu_target()
4464 if (!dfu_tx.target_cnt) { in dfu_firmware_update_start()
4470 dfu_tx.inputs.group = BT_MESH_ADDR_UNASSIGNED; in dfu_firmware_update_start()
4472 dfu_tx.inputs.group = addr; in dfu_firmware_update_start()
4475 dfu_tx.inputs.app_idx = model_bound->appkey_idx; in dfu_firmware_update_start()
4476 dfu_tx.inputs.ttl = BT_MESH_TTL_DEFAULT; in dfu_firmware_update_start()
4478 err = bt_mesh_dfu_cli_send(&dfd_srv.dfu, &dfu_tx.inputs, &dummy_blob_io, &xfer); in dfu_firmware_update_start()