Lines Matching refs:mod

30 	bt_mesh_model_data_store(srv->mod, false, NULL, &srv->update,  in store_state()
36 bt_mesh_model_data_store(srv->mod, false, NULL, NULL, 0); in erase_state()
133 static int handle_info_get(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_info_get() argument
136 struct bt_mesh_dfu_srv *srv = mod->rt->user_data; in handle_info_get()
190 bt_mesh_model_send(mod, ctx, &rsp, NULL, NULL); in handle_info_get()
195 static int handle_metadata_check(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_metadata_check() argument
198 struct bt_mesh_dfu_srv *srv = mod->rt->user_data; in handle_metadata_check()
218 bt_mesh_model_send(mod, ctx, &rsp, NULL, NULL); in handle_metadata_check()
244 bt_mesh_model_send(srv->mod, ctx, &buf, send_cb, srv); in update_status_rsp()
247 static int handle_get(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_get() argument
250 struct bt_mesh_dfu_srv *srv = mod->rt->user_data; in handle_get()
270 static int handle_start(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_start() argument
273 struct bt_mesh_dfu_srv *srv = mod->rt->user_data; in handle_start()
379 static int handle_cancel(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_cancel() argument
382 struct bt_mesh_dfu_srv *srv = mod->rt->user_data; in handle_cancel()
400 static int handle_apply(const struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx, in handle_apply() argument
403 struct bt_mesh_dfu_srv *srv = mod->rt->user_data; in handle_apply()
441 static int dfu_srv_init(const struct bt_mesh_model *mod) in dfu_srv_init() argument
444 struct bt_mesh_dfu_srv *srv = mod->rt->user_data; in dfu_srv_init()
446 srv->mod = mod; in dfu_srv_init()
456 bt_mesh_model_find(bt_mesh_model_elem(mod), BT_MESH_MODEL_ID_BLOB_SRV); in dfu_srv_init()
463 err = bt_mesh_model_extend(mod, srv->blob.mod); in dfu_srv_init()
472 static int dfu_srv_settings_set(const struct bt_mesh_model *mod, const char *name, in dfu_srv_settings_set() argument
476 struct bt_mesh_dfu_srv *srv = mod->rt->user_data; in dfu_srv_settings_set()
501 static void dfu_srv_reset(const struct bt_mesh_model *mod) in dfu_srv_reset() argument
503 struct bt_mesh_dfu_srv *srv = mod->rt->user_data; in dfu_srv_reset()