Lines Matching refs:rsp
172 rsp, BT_MESH_MODEL_BUF_LEN(BT_MESH_DFD_OP_RECEIVERS_LIST, in handle_receivers_get()
174 bt_mesh_model_msg_init(&rsp, BT_MESH_DFD_OP_RECEIVERS_LIST); in handle_receivers_get()
176 net_buf_simple_add_le16(&rsp, srv->target_cnt); in handle_receivers_get()
177 net_buf_simple_add_le16(&rsp, first); in handle_receivers_get()
182 for (i = 0; i < cnt && net_buf_simple_tailroom(&rsp) >= 5 + BT_MESH_MIC_SHORT; i++) { in handle_receivers_get()
186 &rsp, ((t->blob.addr & BIT_MASK(15)) | in handle_receivers_get()
191 net_buf_simple_add_u8(&rsp, t->img_idx); in handle_receivers_get()
194 bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL); in handle_receivers_get()
214 BT_MESH_MODEL_BUF_DEFINE(rsp, BT_MESH_DFD_OP_CAPABILITIES_STATUS, 17); in handle_capabilities_get()
215 bt_mesh_model_msg_init(&rsp, BT_MESH_DFD_OP_CAPABILITIES_STATUS); in handle_capabilities_get()
217 net_buf_simple_add_le16(&rsp, CONFIG_BT_MESH_DFD_SRV_TARGETS_MAX); in handle_capabilities_get()
218 net_buf_simple_add_le16(&rsp, CONFIG_BT_MESH_DFU_SLOT_CNT); in handle_capabilities_get()
219 net_buf_simple_add_le32(&rsp, CONFIG_BT_MESH_DFD_SRV_SLOT_MAX_SIZE); in handle_capabilities_get()
220 net_buf_simple_add_le32(&rsp, CONFIG_BT_MESH_DFD_SRV_SLOT_SPACE); in handle_capabilities_get()
226 net_buf_simple_add_le32(&rsp, CONFIG_BT_MESH_DFD_SRV_SLOT_SPACE - size); in handle_capabilities_get()
232 net_buf_simple_add_u8(&rsp, 1); in handle_capabilities_get()
233 net_buf_simple_add_mem(&rsp, srv->oob_schemes.schemes, in handle_capabilities_get()
238 net_buf_simple_add_u8(&rsp, 0); in handle_capabilities_get()
241 bt_mesh_model_send(mod, ctx, &rsp, NULL, NULL); in handle_capabilities_get()
249 BT_MESH_MODEL_BUF_DEFINE(rsp, BT_MESH_DFD_OP_STATUS, 12); in status_rsp()
250 bt_mesh_model_msg_init(&rsp, BT_MESH_DFD_OP_STATUS); in status_rsp()
252 net_buf_simple_add_u8(&rsp, status); in status_rsp()
253 net_buf_simple_add_u8(&rsp, srv->phase); in status_rsp()
256 bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL); in status_rsp()
260 net_buf_simple_add_le16(&rsp, srv->inputs.group); in status_rsp()
261 net_buf_simple_add_le16(&rsp, srv->inputs.app_idx); in status_rsp()
262 net_buf_simple_add_u8(&rsp, srv->inputs.ttl); in status_rsp()
263 net_buf_simple_add_le16(&rsp, srv->inputs.timeout_base); in status_rsp()
264 net_buf_simple_add_u8(&rsp, ((srv->dfu.xfer.blob.mode & BIT_MASK(2)) | in status_rsp()
266 net_buf_simple_add_le16(&rsp, srv->slot_idx); in status_rsp()
268 bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL); in status_rsp()
349 BT_MESH_MODEL_BUF_DEFINE(rsp, BT_MESH_DFD_OP_UPLOAD_STATUS, in upload_status_rsp_with_progress()
351 bt_mesh_model_msg_init(&rsp, BT_MESH_DFD_OP_UPLOAD_STATUS); in upload_status_rsp_with_progress()
353 net_buf_simple_add_u8(&rsp, status); in upload_status_rsp_with_progress()
354 net_buf_simple_add_u8(&rsp, srv->upload.phase); in upload_status_rsp_with_progress()
358 bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL); in upload_status_rsp_with_progress()
364 net_buf_simple_add_u8(&rsp, progress | BIT(7)); in upload_status_rsp_with_progress()
365 net_buf_simple_add_mem(&rsp, srv->upload.oob.current_fwid, in upload_status_rsp_with_progress()
370 net_buf_simple_add_u8(&rsp, progress); in upload_status_rsp_with_progress()
371 net_buf_simple_add_mem(&rsp, srv->upload.slot->fwid, in upload_status_rsp_with_progress()
375 bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL); in upload_status_rsp_with_progress()
678 BT_MESH_MODEL_BUF_DEFINE(rsp, BT_MESH_DFD_OP_FW_STATUS, in fw_status_rsp()
680 bt_mesh_model_msg_init(&rsp, BT_MESH_DFD_OP_FW_STATUS); in fw_status_rsp()
682 net_buf_simple_add_u8(&rsp, status); in fw_status_rsp()
683 net_buf_simple_add_le16(&rsp, bt_mesh_dfu_slot_count()); in fw_status_rsp()
685 net_buf_simple_add_le16(&rsp, idx); in fw_status_rsp()
687 net_buf_simple_add_mem(&rsp, fwid, fwid_len); in fw_status_rsp()
690 bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL); in fw_status_rsp()