Lines Matching refs:elem
88 static const struct bt_mesh_model *get_model(const struct bt_mesh_elem *elem, in get_model() argument
96 LOG_DBG("ID 0x%04x addr 0x%04x", id, elem->rt->addr); in get_model()
100 return bt_mesh_model_find(elem, id); in get_model()
107 LOG_DBG("Company 0x%04x ID 0x%04x addr 0x%04x", company, id, elem->rt->addr); in get_model()
111 return bt_mesh_model_find_vnd(elem, company, id); in get_model()
338 const struct bt_mesh_elem *elem, bool vnd, bool primary, in mod_app_key_del() argument
698 const struct bt_mesh_elem *elem; in mod_pub_get() local
717 elem = bt_mesh_elem_find(elem_addr); in mod_pub_get()
718 if (!elem) { in mod_pub_get()
725 mod = get_model(elem, buf, &vnd); in mod_pub_get()
751 const struct bt_mesh_elem *elem; in mod_pub_set() local
787 elem = bt_mesh_elem_find(elem_addr); in mod_pub_set()
788 if (!elem) { in mod_pub_set()
795 mod = get_model(elem, buf, &vnd); in mod_pub_set()
849 const struct bt_mesh_elem *elem; in mod_pub_va_set() local
885 elem = bt_mesh_elem_find(elem_addr); in mod_pub_va_set()
886 if (!elem) { in mod_pub_va_set()
893 mod = get_model(elem, buf, &vnd); in mod_pub_va_set()
951 const struct bt_mesh_elem *elem; in mod_sub_add() local
974 elem = bt_mesh_elem_find(elem_addr); in mod_sub_add()
975 if (!elem) { in mod_sub_add()
982 mod = get_model(elem, buf, &vnd); in mod_sub_add()
1029 const struct bt_mesh_elem *elem; in mod_sub_del() local
1052 elem = bt_mesh_elem_find(elem_addr); in mod_sub_del()
1053 if (!elem) { in mod_sub_del()
1060 mod = get_model(elem, buf, &vnd); in mod_sub_del()
1111 const struct bt_mesh_elem *elem; in mod_sub_overwrite() local
1133 elem = bt_mesh_elem_find(elem_addr); in mod_sub_overwrite()
1134 if (!elem) { in mod_sub_overwrite()
1141 mod = get_model(elem, buf, &vnd); in mod_sub_overwrite()
1181 const struct bt_mesh_elem *elem; in mod_sub_del_all() local
1202 elem = bt_mesh_elem_find(elem_addr); in mod_sub_del_all()
1203 if (!elem) { in mod_sub_del_all()
1210 mod = get_model(elem, buf, &vnd); in mod_sub_del_all()
1271 const struct bt_mesh_elem *elem; in mod_sub_get() local
1286 elem = bt_mesh_elem_find(addr); in mod_sub_get()
1287 if (!elem) { in mod_sub_get()
1294 mod = bt_mesh_model_find(elem, id); in mod_sub_get()
1326 const struct bt_mesh_elem *elem; in mod_sub_get_vnd() local
1342 elem = bt_mesh_elem_find(addr); in mod_sub_get_vnd()
1343 if (!elem) { in mod_sub_get_vnd()
1351 mod = bt_mesh_model_find_vnd(elem, company, id); in mod_sub_get_vnd()
1385 const struct bt_mesh_elem *elem; in mod_sub_va_add() local
1409 elem = bt_mesh_elem_find(elem_addr); in mod_sub_va_add()
1410 if (!elem) { in mod_sub_va_add()
1417 mod = get_model(elem, buf, &vnd); in mod_sub_va_add()
1488 const struct bt_mesh_elem *elem; in mod_sub_va_del() local
1512 elem = bt_mesh_elem_find(elem_addr); in mod_sub_va_del()
1513 if (!elem) { in mod_sub_va_del()
1520 mod = get_model(elem, buf, &vnd); in mod_sub_va_del()
1572 const struct bt_mesh_elem *elem; in mod_sub_va_overwrite() local
1595 elem = bt_mesh_elem_find(elem_addr); in mod_sub_va_overwrite()
1596 if (!elem) { in mod_sub_va_overwrite()
1603 mod = get_model(elem, buf, &vnd); in mod_sub_va_overwrite()
1851 const struct bt_mesh_elem *elem; in mod_app_bind() local
1869 elem = bt_mesh_elem_find(elem_addr); in mod_app_bind()
1870 if (!elem) { in mod_app_bind()
1877 mod = get_model(elem, buf, &vnd); in mod_app_bind()
1915 const struct bt_mesh_elem *elem; in mod_app_unbind() local
1933 elem = bt_mesh_elem_find(elem_addr); in mod_app_unbind()
1934 if (!elem) { in mod_app_unbind()
1941 mod = get_model(elem, buf, &vnd); in mod_app_unbind()
1977 const struct bt_mesh_elem *elem; in mod_app_get() local
1997 elem = bt_mesh_elem_find(elem_addr); in mod_app_get()
1998 if (!elem) { in mod_app_get()
2005 mod = get_model(elem, buf, &vnd); in mod_app_get()
2532 static void mod_reset(const struct bt_mesh_model *mod, const struct bt_mesh_elem *elem, in mod_reset() argument