Lines Matching refs:mod

108 	bt_mesh_model_send(srv->mod, ctx, &buf, NULL, NULL);  in receivers_status_rsp()
111 static int handle_receivers_add(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_receivers_add() argument
115 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_receivers_add()
142 static int handle_receivers_delete_all(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_receivers_delete_all() argument
145 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_receivers_delete_all()
152 static int handle_receivers_get(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_receivers_get() argument
155 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_receivers_get()
190 bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL); in handle_receivers_get()
205 static int handle_capabilities_get(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_capabilities_get() argument
225 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_capabilities_get()
237 bt_mesh_model_send(mod, ctx, &rsp, NULL, NULL); in handle_capabilities_get()
252 bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL); in status_rsp()
264 bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL); in status_rsp()
267 static int handle_get(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_get() argument
270 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_get()
277 static int handle_start(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_start() argument
280 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_start()
309 static int handle_suspend(const struct bt_mesh_model *mod, in handle_suspend() argument
313 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_suspend()
320 static int handle_cancel(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_cancel() argument
323 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_cancel()
330 static int handle_apply(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_apply() argument
333 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_apply()
354 bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL); in upload_status_rsp_with_progress()
371 bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL); in upload_status_rsp_with_progress()
392 static int handle_upload_get(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_upload_get() argument
395 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_upload_get()
437 static int handle_upload_start(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_upload_start() argument
440 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_upload_start()
559 static int handle_upload_start_oob(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_upload_start_oob() argument
562 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_upload_start_oob()
650 static int handle_upload_cancel(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_upload_cancel() argument
653 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_upload_cancel()
686 bt_mesh_model_send(srv->mod, ctx, &rsp, NULL, NULL); in fw_status_rsp()
689 static int handle_fw_get(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_fw_get() argument
692 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_fw_get()
713 static int handle_fw_get_by_index(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_fw_get_by_index() argument
716 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_fw_get_by_index()
734 static int handle_fw_delete(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_fw_delete() argument
737 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_fw_delete()
763 static int handle_fw_delete_all(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_fw_delete_all() argument
766 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in handle_fw_delete_all()
922 static int dfd_srv_init(const struct bt_mesh_model *mod) in dfd_srv_init() argument
925 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in dfd_srv_init()
927 srv->mod = mod; in dfd_srv_init()
930 bt_mesh_model_find(bt_mesh_model_elem(mod), BT_MESH_MODEL_ID_BLOB_SRV); in dfd_srv_init()
941 bt_mesh_model_find(bt_mesh_model_elem(mod), BT_MESH_MODEL_ID_DFU_CLI); in dfd_srv_init()
948 err = bt_mesh_model_extend(mod, srv->upload.blob.mod); in dfd_srv_init()
957 static void dfd_srv_reset(const struct bt_mesh_model *mod) in dfd_srv_reset() argument
959 struct bt_mesh_dfd_srv *srv = mod->rt->user_data; in dfd_srv_reset()