Lines Matching refs:bt_mesh_model

122 void bt_mesh_model_foreach(void (*func)(const struct bt_mesh_model *mod,  in bt_mesh_model_foreach()
134 const struct bt_mesh_model *model = &elem->models[j]; in bt_mesh_model_foreach()
140 const struct bt_mesh_model *model = &elem->vnd_models[j]; in bt_mesh_model_foreach()
189 static void comp_add_model(const struct bt_mesh_model *mod, const struct bt_mesh_elem *elem, in comp_add_model()
204 static size_t metadata_model_size(const struct bt_mesh_model *mod, in metadata_model_size()
245 const struct bt_mesh_model *model = &elem->models[j]; in bt_mesh_metadata_page_0_size()
251 const struct bt_mesh_model *model = &elem->vnd_models[j]; in bt_mesh_metadata_page_0_size()
260 static int metadata_add_model(const struct bt_mesh_model *mod, in metadata_add_model()
330 const struct bt_mesh_model *model = &elem->models[j]; in bt_mesh_metadata_get_page_0()
347 const struct bt_mesh_model *model = &elem->vnd_models[j]; in bt_mesh_metadata_get_page_0()
404 const struct bt_mesh_model *model = &elem->models[i]; in comp_add_elem()
410 const struct bt_mesh_model *model = &elem->vnd_models[i]; in comp_add_elem()
460 static uint8_t count_mod_ext(const struct bt_mesh_model *mod, in count_mod_ext()
485 static bool is_cor_present(const struct bt_mesh_model *mod, uint8_t *cor_id, uint8_t sig_offset) in is_cor_present()
503 static void prep_model_item_header(const struct bt_mesh_model *mod, uint8_t *cor_id, in prep_model_item_header()
532 static void add_items_to_page(struct net_buf_simple *buf, const struct bt_mesh_model *mod, in add_items_to_page()
565 static size_t mod_items_size(const struct bt_mesh_model *mod, uint8_t sig_offset) in mod_items_size()
711 int32_t bt_mesh_model_pub_period_get(const struct bt_mesh_model *mod) in bt_mesh_model_pub_period_get()
751 static int32_t next_period(const struct bt_mesh_model *mod) in next_period()
805 const struct bt_mesh_model *mod = user_data; in publish_sent()
835 static int publish_transmit(const struct bt_mesh_model *mod) in publish_transmit()
960 const struct bt_mesh_elem *bt_mesh_model_elem(const struct bt_mesh_model *mod) in bt_mesh_model_elem()
965 const struct bt_mesh_model *bt_mesh_model_get(bool vnd, uint8_t elem_idx, uint8_t mod_idx) in bt_mesh_model_get()
994 static int bt_mesh_vnd_mod_msg_cid_check(const struct bt_mesh_model *mod) in bt_mesh_vnd_mod_msg_cid_check()
1017 static void mod_init(const struct bt_mesh_model *mod, const struct bt_mesh_elem *elem, in mod_init()
1145 static uint16_t *model_group_get(const struct bt_mesh_model *mod, uint16_t addr) in model_group_get()
1160 const struct bt_mesh_model *mod;
1164 static enum bt_mesh_walk find_group_mod_visitor(const struct bt_mesh_model *mod, void *user_data) in find_group_mod_visitor()
1181 uint16_t *bt_mesh_model_find_group(const struct bt_mesh_model **mod, uint16_t addr) in bt_mesh_model_find_group()
1196 static const uint8_t **model_uuid_get(const struct bt_mesh_model *mod, const uint8_t *uuid) in model_uuid_get()
1218 const struct bt_mesh_model *mod;
1222 static enum bt_mesh_walk find_uuid_mod_visitor(const struct bt_mesh_model *mod, void *user_data) in find_uuid_mod_visitor()
1240 const uint8_t **bt_mesh_model_find_uuid(const struct bt_mesh_model **mod, const uint8_t *uuid) in bt_mesh_model_find_uuid()
1258 static const struct bt_mesh_model *bt_mesh_elem_find_group(const struct bt_mesh_elem *elem, in bt_mesh_elem_find_group()
1261 const struct bt_mesh_model *model; in bt_mesh_elem_find_group()
1358 bool bt_mesh_model_has_key(const struct bt_mesh_model *mod, uint16_t key) in bt_mesh_model_has_key()
1373 static bool model_has_dst(const struct bt_mesh_model *mod, uint16_t dst, const uint8_t *uuid) in model_has_dst()
1392 uint32_t opcode, const struct bt_mesh_model **model) in find_op()
1398 const struct bt_mesh_model *models; in find_op()
1479 const struct bt_mesh_model *model; in element_model_recv()
1589 int bt_mesh_model_send(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in bt_mesh_model_send()
1616 int bt_mesh_model_publish(const struct bt_mesh_model *model) in bt_mesh_model_publish()
1668 const struct bt_mesh_model *bt_mesh_model_find_vnd(const struct bt_mesh_elem *elem, in bt_mesh_model_find_vnd()
1683 const struct bt_mesh_model *bt_mesh_model_find(const struct bt_mesh_elem *elem, in bt_mesh_model_find()
1702 void bt_mesh_model_extensions_walk(const struct bt_mesh_model *model, in bt_mesh_model_extensions_walk()
1703 enum bt_mesh_walk (*cb)(const struct bt_mesh_model *mod, in bt_mesh_model_extensions_walk()
1711 const struct bt_mesh_model *it; in bt_mesh_model_extensions_walk()
1730 static uint8_t get_sig_offset(const struct bt_mesh_model *mod) in get_sig_offset()
1743 static int mod_rel_register(const struct bt_mesh_model *base, in mod_rel_register()
1744 const struct bt_mesh_model *ext, in mod_rel_register()
1772 int bt_mesh_model_extend(const struct bt_mesh_model *extending_mod, in bt_mesh_model_extend()
1773 const struct bt_mesh_model *base_mod) in bt_mesh_model_extend()
1775 const struct bt_mesh_model *a = extending_mod; in bt_mesh_model_extend()
1776 const struct bt_mesh_model *b = base_mod; in bt_mesh_model_extend()
1777 const struct bt_mesh_model *a_next = a->rt->next; in bt_mesh_model_extend()
1778 const struct bt_mesh_model *b_next = b->rt->next; in bt_mesh_model_extend()
1779 const struct bt_mesh_model *it; in bt_mesh_model_extend()
1818 int bt_mesh_model_correspond(const struct bt_mesh_model *corresponding_mod, in bt_mesh_model_correspond()
1819 const struct bt_mesh_model *base_mod) in bt_mesh_model_correspond()
1853 bool bt_mesh_model_is_extended(const struct bt_mesh_model *model) in bt_mesh_model_is_extended()
1858 static int mod_set_bind(const struct bt_mesh_model *mod, size_t len_rd, in mod_set_bind()
1886 static int mod_set_sub(const struct bt_mesh_model *mod, size_t len_rd, in mod_set_sub()
1913 static int mod_set_sub_va(const struct bt_mesh_model *mod, size_t len_rd, in mod_set_sub_va()
1950 static int mod_set_pub(const struct bt_mesh_model *mod, size_t len_rd, in mod_set_pub()
2004 static int mod_data_set(const struct bt_mesh_model *mod, in mod_data_set()
2023 const struct bt_mesh_model *mod; in mod_set()
2112 static void encode_mod_path(const struct bt_mesh_model *mod, bool vnd, in encode_mod_path()
2124 static void store_pending_mod_bind(const struct bt_mesh_model *mod, bool vnd) in store_pending_mod_bind()
2152 static void store_pending_mod_sub(const struct bt_mesh_model *mod, bool vnd) in store_pending_mod_sub()
2179 static void store_pending_mod_sub_va(const struct bt_mesh_model *mod, bool vnd) in store_pending_mod_sub_va()
2211 static void store_pending_mod_pub(const struct bt_mesh_model *mod, bool vnd) in store_pending_mod_pub()
2244 static void store_pending_mod(const struct bt_mesh_model *mod, in store_pending_mod()
2279 void bt_mesh_model_bind_store(const struct bt_mesh_model *mod) in bt_mesh_model_bind_store()
2285 void bt_mesh_model_sub_store(const struct bt_mesh_model *mod) in bt_mesh_model_sub_store()
2291 void bt_mesh_model_pub_store(const struct bt_mesh_model *mod) in bt_mesh_model_pub_store()
2477 int bt_mesh_model_data_store(const struct bt_mesh_model *mod, bool vnd, in bt_mesh_model_data_store()
2626 static void commit_mod(const struct bt_mesh_model *mod, const struct bt_mesh_elem *elem, in commit_mod()
2668 void bt_mesh_model_data_store_schedule(const struct bt_mesh_model *mod) in bt_mesh_model_data_store_schedule()