Lines Matching refs:model
30 static int sar_rx_store(const struct bt_mesh_model *model, bool delete) in sar_rx_store() argument
35 return bt_mesh_model_data_store(model, false, "sar_rx", data, len); in sar_rx_store()
38 static int sar_tx_store(const struct bt_mesh_model *model, bool delete) in sar_tx_store() argument
43 return bt_mesh_model_data_store(model, false, "sar_tx", data, len); in sar_tx_store()
46 static void transmitter_status(const struct bt_mesh_model *model, in transmitter_status() argument
61 if (bt_mesh_model_send(model, ctx, &msg, NULL, NULL)) { in transmitter_status()
66 static void receiver_status(const struct bt_mesh_model *model, in receiver_status() argument
79 if (bt_mesh_model_send(model, ctx, &msg, NULL, NULL)) { in receiver_status()
84 static int transmitter_get(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in transmitter_get() argument
89 transmitter_status(model, ctx); in transmitter_get()
94 static int transmitter_set(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in transmitter_set() argument
102 transmitter_status(model, ctx); in transmitter_set()
105 sar_tx_store(model, false); in transmitter_set()
111 static int receiver_get(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in receiver_get() argument
116 receiver_status(model, ctx); in receiver_get()
121 static int receiver_set(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in receiver_set() argument
129 receiver_status(model, ctx); in receiver_set()
132 sar_rx_store(model, false); in receiver_set()
146 static int sar_cfg_srv_init(const struct bt_mesh_model *model) in sar_cfg_srv_init() argument
148 if (!bt_mesh_model_in_primary(model)) { in sar_cfg_srv_init()
157 model->keys[0] = BT_MESH_KEY_DEV_LOCAL; in sar_cfg_srv_init()
158 model->rt->flags |= BT_MESH_MOD_DEVKEY_ONLY; in sar_cfg_srv_init()
163 static void sar_cfg_srv_reset(const struct bt_mesh_model *model) in sar_cfg_srv_reset() argument
172 sar_rx_store(model, true); in sar_cfg_srv_reset()
173 sar_tx_store(model, true); in sar_cfg_srv_reset()
178 static int sar_cfg_srv_settings_set(const struct bt_mesh_model *model, const char *name, in sar_cfg_srv_settings_set() argument