/subsys/bluetooth/mesh/ |
A D | health_srv.c | 272 bt_mesh_attention(model, time); in attention_set_unrel() 333 model->pub->period_div = period; in health_period_set_unrel() 416 srv->cb->attn_off(srv->model); in attention_off() 429 if (!model->pub) { in health_srv_init() 434 model->pub->update = health_pub_update; in health_srv_init() 438 srv->model = model; in health_srv_init() 440 if (bt_mesh_model_in_primary(model)) { in health_srv_init() 455 if (!model) { in bt_mesh_attention() 462 model = srv->model; in bt_mesh_attention() 464 srv = model->rt->user_data; in bt_mesh_attention() [all …]
|
A D | sar_cfg_srv.c | 89 transmitter_status(model, ctx); in transmitter_get() 102 transmitter_status(model, ctx); in transmitter_set() 105 sar_tx_store(model, false); in transmitter_set() 116 receiver_status(model, ctx); in receiver_get() 129 receiver_status(model, ctx); in receiver_set() 132 sar_rx_store(model, false); in receiver_set() 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() 172 sar_rx_store(model, true); in sar_cfg_srv_reset() [all …]
|
A D | cfg_srv.c | 119 if (!model->pub) { in _mod_pub_set() 137 model->pub->key = 0U; in _mod_pub_set() 138 model->pub->cred = 0U; in _mod_pub_set() 139 model->pub->ttl = 0U; in _mod_pub_set() 140 model->pub->period = 0U; in _mod_pub_set() 142 model->pub->count = 0U; in _mod_pub_set() 143 model->pub->uuid = NULL; in _mod_pub_set() 172 model->pub->ttl = ttl; in _mod_pub_set() 175 model->pub->uuid = uuid; in _mod_pub_set() 212 LOG_DBG("model %p id 0x%04x i %d key 0x%03x", model, model->id, i, model->keys[i]); in mod_bind() [all …]
|
A D | brg_cfg_srv.c | 25 if (bt_mesh_model_send(model, ctx, &msg, NULL, NULL)) { in bridge_status_send() 33 bridge_status_send(model, ctx); in subnet_bridge_get() 48 bridge_status_send(model, ctx); in subnet_bridge_set() 66 if (bt_mesh_model_send(model, ctx, &msg, NULL, NULL)) { in bridging_table_status_send() 94 bridging_table_status_send(model, ctx, status, &entry); in bridging_table_add() 117 bridging_table_status_send(model, ctx, status, &entry); in bridging_table_remove() 205 if (bt_mesh_model_send(model, ctx, &msg, NULL, NULL)) { in bridged_subnets_get() 259 if (bt_mesh_model_send(model, ctx, &msg, NULL, NULL)) { in bridging_table_get() 306 model->keys[0] = BT_MESH_KEY_DEV_LOCAL; in brg_cfg_srv_init() 307 model->rt->flags |= BT_MESH_MOD_DEVKEY_ONLY; in brg_cfg_srv_init() [all …]
|
A D | health_cli.c | 43 struct bt_mesh_health_cli *cli = model->rt->user_data; in health_fault_status() 96 struct bt_mesh_health_cli *cli = model->rt->user_data; in health_current_status() 124 struct bt_mesh_health_cli *cli = model->rt->user_data; in health_period_status() 158 struct bt_mesh_health_cli *cli = model->rt->user_data; in health_attention_status() 239 return bt_mesh_msg_send(cli->model, ctx, &msg); in bt_mesh_health_cli_attention_set_unack() 291 return bt_mesh_msg_send(cli->model, ctx, &msg); in bt_mesh_health_cli_period_set_unack() 329 return bt_mesh_msg_send(cli->model, ctx, &msg); in bt_mesh_health_cli_fault_test_unack() 354 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, in bt_mesh_health_cli_fault_clear() 366 return bt_mesh_msg_send(cli->model, ctx, &msg); in bt_mesh_health_cli_fault_clear_unack() 391 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, in bt_mesh_health_cli_fault_get() [all …]
|
A D | sar_cfg_cli.c | 24 static int transmitter_status(const struct bt_mesh_model *model, in transmitter_status() argument 48 static int receiver_status(const struct bt_mesh_model *model, in receiver_status() argument 92 if (!bt_mesh_model_in_primary(model)) { in bt_mesh_sar_cfg_cli_init() 97 if (!model->rt->user_data) { in bt_mesh_sar_cfg_cli_init() 102 cli = model->rt->user_data; in bt_mesh_sar_cfg_cli_init() 103 cli->model = model; in bt_mesh_sar_cfg_cli_init() 106 model->keys[0] = BT_MESH_KEY_DEV_ANY; in bt_mesh_sar_cfg_cli_init() 107 model->rt->flags |= BT_MESH_MOD_DEVKEY_ONLY; in bt_mesh_sar_cfg_cli_init() 118 model_cli = model->rt->user_data; in bt_mesh_sar_cfg_cli_reset() 142 err = bt_mesh_model_send(cli->model, &ctx, &msg, NULL, NULL); in bt_mesh_sar_cfg_cli_transmitter_get() [all …]
|
A D | large_comp_data_cli.c | 36 static int data_status(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in data_status() argument 81 static int large_comp_data_status(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in large_comp_data_status() argument 84 return data_status(model, ctx, buf, OP_LARGE_COMP_DATA_STATUS, in large_comp_data_status() 92 return data_status(model, ctx, buf, OP_MODELS_METADATA_STATUS, in models_metadata_status() 103 static int large_comp_data_cli_init(const struct bt_mesh_model *model) in large_comp_data_cli_init() argument 105 if (!bt_mesh_model_in_primary(model)) { in large_comp_data_cli_init() 110 model->keys[0] = BT_MESH_KEY_DEV_ANY; in large_comp_data_cli_init() 111 model->rt->flags |= BT_MESH_MOD_DEVKEY_ONLY; in large_comp_data_cli_init() 113 cli = model->rt->user_data; in large_comp_data_cli_init() 114 cli->model = model; in large_comp_data_cli_init() [all …]
|
A D | large_comp_data_srv.c | 40 const struct bt_mesh_model *model; member 43 static int handle_large_comp_data_get(const struct bt_mesh_model *model, in handle_large_comp_data_get() argument 98 if (bt_mesh_model_send(model, ctx, &rsp, NULL, NULL)) { in handle_large_comp_data_get() 105 static int handle_models_metadata_get(const struct bt_mesh_model *model, in handle_models_metadata_get() argument 158 if (bt_mesh_model_send(model, ctx, &rsp, NULL, NULL)) { in handle_models_metadata_get() 171 static int large_comp_data_srv_init(const struct bt_mesh_model *model) in large_comp_data_srv_init() argument 174 bt_mesh_model_find(bt_mesh_model_elem(model), BT_MESH_MODEL_ID_CFG_SRV); in large_comp_data_srv_init() 182 model->keys[0] = BT_MESH_KEY_DEV; in large_comp_data_srv_init() 183 model->rt->flags |= BT_MESH_MOD_DEVKEY_ONLY; in large_comp_data_srv_init() 185 srv.model = model; in large_comp_data_srv_init() [all …]
|
A D | msg.c | 90 int bt_mesh_msg_send(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in bt_mesh_msg_send() argument 93 if (!ctx && !model->pub) { in bt_mesh_msg_send() 98 return bt_mesh_model_send(model, ctx, buf, NULL, 0); in bt_mesh_msg_send() 101 net_buf_simple_reset(model->pub->msg); in bt_mesh_msg_send() 102 net_buf_simple_add_mem(model->pub->msg, buf->data, buf->len); in bt_mesh_msg_send() 104 return bt_mesh_model_publish(model); in bt_mesh_msg_send() 107 int bt_mesh_msg_ackd_send(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in bt_mesh_msg_ackd_send() argument 114 ctx ? ctx->addr : model->pub->addr, in bt_mesh_msg_ackd_send() 121 err = bt_mesh_msg_send(model, ctx, buf); in bt_mesh_msg_ackd_send()
|
A D | priv_beacon_cli.c | 21 static int handle_beacon_status(const struct bt_mesh_model *model, in handle_beacon_status() argument 59 static int handle_gatt_proxy_status(const struct bt_mesh_model *model, in handle_gatt_proxy_status() argument 89 static int handle_node_id_status(const struct bt_mesh_model *model, in handle_node_id_status() argument 137 static int priv_beacon_cli_init(const struct bt_mesh_model *model) in priv_beacon_cli_init() argument 139 if (!bt_mesh_model_in_primary(model)) { in priv_beacon_cli_init() 144 cli = model->rt->user_data; in priv_beacon_cli_init() 145 cli->model = model; in priv_beacon_cli_init() 147 model->keys[0] = BT_MESH_KEY_DEV_ANY; in priv_beacon_cli_init() 148 model->rt->flags |= BT_MESH_MOD_DEVKEY_ONLY; in priv_beacon_cli_init() 178 return bt_mesh_msg_ackd_send(cli->model, &ctx, &buf, rsp ? &rsp_ctx : NULL); in bt_mesh_priv_beacon_cli_set() [all …]
|
A D | op_agg_srv.c | 25 const struct bt_mesh_model *model; member 36 static int handle_sequence(const struct bt_mesh_model *model, in handle_sequence() argument 103 err = bt_mesh_model_send(model, ctx, srv.ctx.sdu, NULL, NULL); in handle_sequence() 117 static int op_agg_srv_init(const struct bt_mesh_model *model) in op_agg_srv_init() argument 119 if (!bt_mesh_model_in_primary(model)) { in op_agg_srv_init() 127 model->keys[0] = BT_MESH_KEY_DEV_ANY; in op_agg_srv_init() 129 srv.model = model; in op_agg_srv_init() 134 int bt_mesh_op_agg_srv_send(const struct bt_mesh_model *model, struct net_buf_simple *msg) in bt_mesh_op_agg_srv_send() argument
|
A D | brg_cfg_cli.c | 20 static int bridge_status(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in bridge_status() argument 177 static int brg_cfg_cli_init(const struct bt_mesh_model *model) in brg_cfg_cli_init() argument 179 if (!bt_mesh_model_in_primary(model)) { in brg_cfg_cli_init() 184 if (!model->rt->user_data) { in brg_cfg_cli_init() 189 cli = model->rt->user_data; in brg_cfg_cli_init() 190 cli->model = model; in brg_cfg_cli_init() 193 model->keys[0] = BT_MESH_KEY_DEV_ANY; in brg_cfg_cli_init() 194 model->rt->flags |= BT_MESH_MOD_DEVKEY_ONLY; in brg_cfg_cli_init() 290 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !rsp ? NULL : &rsp_ctx); in bt_mesh_brg_cfg_cli_table_add() 319 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !rsp ? NULL : &rsp_ctx); in bt_mesh_brg_cfg_cli_table_remove() [all …]
|
A D | op_agg_cli.c | 27 const struct bt_mesh_model *model; member 42 static int handle_status(const struct bt_mesh_model *model, in handle_status() argument 105 static int op_agg_cli_init(const struct bt_mesh_model *model) in op_agg_cli_init() argument 107 if (!bt_mesh_model_in_primary(model)) { in op_agg_cli_init() 115 model->keys[0] = BT_MESH_KEY_DEV_ANY; in op_agg_cli_init() 118 cli.model = model; in op_agg_cli_init() 171 err = bt_mesh_model_send(cli.model, &ctx, cli.ctx.sdu, NULL, NULL); in bt_mesh_op_agg_cli_seq_send() 206 int bt_mesh_op_agg_cli_send(const struct bt_mesh_model *model, struct net_buf_simple *msg) in bt_mesh_op_agg_cli_send() argument 208 uint16_t src = bt_mesh_model_elem(model)->rt->addr; in bt_mesh_op_agg_cli_send()
|
A D | testing.h | 28 void (*model_bound)(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx); 29 void (*model_unbound)(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx); 84 void bt_mesh_test_model_bound(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx); 85 void bt_mesh_test_model_unbound(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx);
|
A D | cfg_cli.c | 114 static int beacon_status(const struct bt_mesh_model *model, in beacon_status() argument 129 static int ttl_status(const struct bt_mesh_model *model, in ttl_status() argument 226 static int relay_status(const struct bt_mesh_model *model, in relay_status() argument 1092 if (!bt_mesh_model_in_primary(model)) { in cfg_cli_init() 1097 if (!model->rt->user_data) { in cfg_cli_init() 1102 cli = model->rt->user_data; in cfg_cli_init() 1103 cli->model = model; in cfg_cli_init() 1110 model->keys[0] = BT_MESH_KEY_DEV_ANY; in cfg_cli_init() 1111 model->rt->flags |= BT_MESH_MOD_DEVKEY_ONLY; in cfg_cli_init() 1497 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, in bt_mesh_cfg_cli_app_key_get() [all …]
|
A D | testing.c | 63 void bt_mesh_test_model_bound(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx) in bt_mesh_test_model_bound() argument 69 cb->model_bound(addr, model, key_idx); in bt_mesh_test_model_bound() 74 void bt_mesh_test_model_unbound(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx) in bt_mesh_test_model_unbound() argument 80 cb->model_unbound(addr, model, key_idx); in bt_mesh_test_model_unbound()
|
A D | access.c | 332 if (!model->metadata) { in bt_mesh_metadata_get_page_0() 349 if (!model->metadata) { in bt_mesh_metadata_get_page_0() 1266 model = &elem->models[i]; in bt_mesh_elem_find_group() 1270 return model; in bt_mesh_elem_find_group() 1275 model = &elem->vnd_models[i]; in bt_mesh_elem_find_group() 1279 return model; in bt_mesh_elem_find_group() 1424 *model = &models[i]; in find_op() 1433 *model = NULL; in find_op() 1708 (void)cb(model, user_data); in bt_mesh_model_extensions_walk() 1713 if (cb(model, user_data) == BT_MESH_WALK_STOP || !model->rt->next) { in bt_mesh_model_extensions_walk() [all …]
|
A D | msg.h | 21 int bt_mesh_msg_send(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, 54 int bt_mesh_msg_ackd_send(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx,
|
A D | od_priv_proxy_cli.c | 70 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, val_rsp ? &rsp : NULL); in bt_mesh_od_priv_proxy_cli_get() 88 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, val_rsp ? &rsp : NULL); in bt_mesh_od_priv_proxy_cli_set() 104 cli->model = mod; in on_demand_proxy_cli_init()
|
A D | op_agg.h | 22 int bt_mesh_op_agg_cli_send(const struct bt_mesh_model *model, struct net_buf_simple *msg); 24 int bt_mesh_op_agg_srv_send(const struct bt_mesh_model *model, struct net_buf_simple *msg);
|
A D | od_priv_proxy_srv.c | 111 static void od_priv_proxy_srv_reset(const struct bt_mesh_model *model) in od_priv_proxy_srv_reset() argument 118 static int od_priv_proxy_srv_settings_set(const struct bt_mesh_model *model, const char *name, in od_priv_proxy_srv_settings_set() argument 138 static void od_priv_proxy_srv_pending_store(const struct bt_mesh_model *model) in od_priv_proxy_srv_pending_store() argument
|
A D | sol_pdu_rpl_cli.c | 124 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, in bt_mesh_sol_pdu_rpl_clear() 148 return bt_mesh_msg_send(cli->model, ctx, &msg); in bt_mesh_sol_pdu_rpl_clear_unack() 173 cli->model = mod; in sol_pdu_rpl_cli_init()
|
A D | Kconfig | 785 layer to know about mesh model relationships. 898 Enable support for the health client model. 913 bool "Support for BLOB Transfer Server model" 979 bool "Support for BLOB Transfer Client model" 1070 bool "Support for Firmware Update Server model" 1074 Enable the Firmware Update Server model. 1081 Enable the Firmware Update Client model. 1083 menu "Firmware Update model configuration" 1120 endmenu # Firmware Update model configuration 1127 for the Firmware Update Client model. [all …]
|
A D | priv_beacon_srv.c | 219 static void priv_beacon_srv_reset(const struct bt_mesh_model *model) in priv_beacon_srv_reset() argument 226 static int priv_beacon_srv_settings_set(const struct bt_mesh_model *model, const char *name, in priv_beacon_srv_settings_set() argument 248 static void priv_beacon_srv_pending_store(const struct bt_mesh_model *model) in priv_beacon_srv_pending_store() argument
|
/subsys/bluetooth/services/ |
A D | Kconfig.dis | 31 Enable model number characteristic in Device Information Service. 38 Configure model number string that can be read with the model number characteristic 44 The device model inside Device Information Service. 203 specific version or model of a device.
|