Searched refs:mod_srv (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | blob.c | 506 static const struct bt_mesh_model *mod_srv; variable 514 if (!mod_srv && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_BLOB_SRV, &mod_srv)) { in cmd_rx() 533 err = bt_mesh_blob_srv_recv((struct bt_mesh_blob_srv *)mod_srv->rt->user_data, in cmd_rx() 546 if (!mod_srv && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_BLOB_SRV, &mod_srv)) { in cmd_rx_cancel() 551 err = bt_mesh_blob_srv_cancel((struct bt_mesh_blob_srv *)mod_srv->rt->user_data); in cmd_rx_cancel() 565 BT_MESH_SHELL_MDL_INSTANCE_CMDS(srv_instance_cmds, BT_MESH_MODEL_ID_BLOB_SRV, mod_srv);
|
D | dfu.c | 899 static const struct bt_mesh_model *mod_srv; variable 903 if (!mod_srv && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_DFU_SRV, &mod_srv)) { in cmd_dfu_applied() 907 bt_mesh_dfu_srv_applied((struct bt_mesh_dfu_srv *)mod_srv->rt->user_data); in cmd_dfu_applied() 913 if (!mod_srv && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_DFU_SRV, &mod_srv)) { in cmd_dfu_rx_cancel() 917 bt_mesh_dfu_srv_cancel((struct bt_mesh_dfu_srv *)mod_srv->rt->user_data); in cmd_dfu_rx_cancel() 923 if (!mod_srv && !bt_mesh_shell_mdl_first_get(BT_MESH_MODEL_ID_DFU_SRV, &mod_srv)) { in cmd_dfu_rx_progress() 928 bt_mesh_dfu_srv_progress((struct bt_mesh_dfu_srv *)mod_srv->rt->user_data)); in cmd_dfu_rx_progress() 939 BT_MESH_SHELL_MDL_INSTANCE_CMDS(srv_instance_cmds, BT_MESH_MODEL_ID_DFU_SRV, mod_srv);
|
/Zephyr-latest/samples/boards/nordic/mesh/onoff-app/src/ |
D | main.c | 468 const struct bt_mesh_model *mod_cli, *mod_srv; in button_pressed_worker() local 477 mod_srv = mod_srv_sw[sw_idx]; in button_pressed_worker() 478 pub_srv = mod_srv->pub; in button_pressed_worker() 501 (void)gen_onoff_set_unack(mod_srv, &ctx, &msg); in button_pressed_worker()
|