Lines Matching refs:dfd_srv
73 struct bt_mesh_dfd_srv *dfd_srv = mod->rt->user_data; in cmd_dfd_receivers_add() local
75 if (bt_mesh_dfu_cli_is_busy(&dfd_srv->dfu)) { in cmd_dfd_receivers_add()
76 print_receivers_status(sh, dfd_srv, in cmd_dfd_receivers_add()
103 dfd_srv, addr, img_idx); in cmd_dfd_receivers_add()
106 print_receivers_status(sh, dfd_srv, status); in cmd_dfd_receivers_add()
114 print_receivers_status(sh, dfd_srv, BT_MESH_DFD_SUCCESS); in cmd_dfd_receivers_add()
125 struct bt_mesh_dfd_srv *dfd_srv = mod->rt->user_data; in cmd_dfd_receivers_delete_all() local
128 dfd_srv); in cmd_dfd_receivers_delete_all()
130 print_receivers_status(sh, dfd_srv, status); in cmd_dfd_receivers_delete_all()
145 struct bt_mesh_dfd_srv *dfd_srv = mod->rt->user_data; in cmd_dfd_receivers_get() local
156 if (cnt == 0 || dfd_srv->target_cnt <= first) { in cmd_dfd_receivers_get()
160 cnt = MIN(cnt, dfd_srv->target_cnt - first); in cmd_dfd_receivers_get()
161 uint8_t progress = bt_mesh_dfu_cli_progress(&dfd_srv->dfu) / 2; in cmd_dfd_receivers_get()
164 dfd_srv->target_cnt); in cmd_dfd_receivers_get()
166 const struct bt_mesh_dfu_target *t = &dfd_srv->targets[i + first]; in cmd_dfd_receivers_get()
200 struct bt_mesh_dfd_srv *dfd_srv = mod->rt->user_data; in cmd_dfd_get() local
202 print_dfd_status(sh, dfd_srv, BT_MESH_DFD_SUCCESS); in cmd_dfd_get()
213 struct bt_mesh_dfd_srv *dfd_srv = mod->rt->user_data; in cmd_dfd_start() local
254 enum bt_mesh_dfd_status status = bt_mesh_dfd_srv_start(dfd_srv, ¶ms); in cmd_dfd_start()
256 print_dfd_status(sh, dfd_srv, status); in cmd_dfd_start()
270 struct bt_mesh_dfd_srv *dfd_srv = mod->rt->user_data; in cmd_dfd_suspend() local
272 enum bt_mesh_dfd_status status = bt_mesh_dfd_srv_suspend(dfd_srv); in cmd_dfd_suspend()
274 print_dfd_status(sh, dfd_srv, status); in cmd_dfd_suspend()
288 struct bt_mesh_dfd_srv *dfd_srv = mod->rt->user_data; in cmd_dfd_cancel() local
290 enum bt_mesh_dfd_status status = bt_mesh_dfd_srv_cancel(dfd_srv, NULL); in cmd_dfd_cancel()
292 print_dfd_status(sh, dfd_srv, status); in cmd_dfd_cancel()
306 struct bt_mesh_dfd_srv *dfd_srv = mod->rt->user_data; in cmd_dfd_apply() local
308 enum bt_mesh_dfd_status status = bt_mesh_dfd_srv_apply(dfd_srv); in cmd_dfd_apply()
310 print_dfd_status(sh, dfd_srv, status); in cmd_dfd_apply()
367 struct bt_mesh_dfd_srv *dfd_srv = mod->rt->user_data; in cmd_dfd_fw_delete() local
379 enum bt_mesh_dfd_status status = bt_mesh_dfd_srv_fw_delete(dfd_srv, in cmd_dfd_fw_delete()
397 struct bt_mesh_dfd_srv *dfd_srv = mod->rt->user_data; in cmd_dfd_fw_delete_all() local
399 enum bt_mesh_dfd_status status = bt_mesh_dfd_srv_fw_delete_all(dfd_srv); in cmd_dfd_fw_delete_all()