Lines Matching refs:uuid
37 uint8_t uuid[16]; member
49 uint8_t bt_mesh_va_add(const uint8_t uuid[16], const struct bt_mesh_va **entry) in bt_mesh_va_add()
63 if (!memcmp(uuid, virtual_addrs[i].uuid, in bt_mesh_va_add()
64 ARRAY_SIZE(virtual_addrs[i].uuid))) { in bt_mesh_va_add()
78 memcpy(va->uuid, uuid, ARRAY_SIZE(va->uuid)); in bt_mesh_va_add()
79 err = bt_mesh_virtual_addr(uuid, &va->addr); in bt_mesh_va_add()
95 uint8_t bt_mesh_va_del(const uint8_t *uuid) in bt_mesh_va_del() argument
103 va = CONTAINER_OF(uuid, struct bt_mesh_va, uuid[0]); in bt_mesh_va_del()
115 const uint8_t *bt_mesh_va_uuid_get(uint16_t addr, const uint8_t *uuid, uint16_t *retaddr) in bt_mesh_va_uuid_get() argument
123 if (uuid != NULL) { in bt_mesh_va_uuid_get()
126 va = CONTAINER_OF(uuid, struct bt_mesh_va, uuid[0]); in bt_mesh_va_uuid_get()
133 if (!uuid) { in bt_mesh_va_uuid_get()
135 bt_hex(virtual_addrs[i].uuid, 16)); in bt_mesh_va_uuid_get()
141 return virtual_addrs[i].uuid; in bt_mesh_va_uuid_get()
142 } else if (uuid == virtual_addrs[i].uuid) { in bt_mesh_va_uuid_get()
143 uuid = NULL; in bt_mesh_va_uuid_get()
156 const uint8_t *uuid = NULL; in bt_mesh_va_collision_check() local
159 uuid = bt_mesh_va_uuid_get(addr, uuid, NULL); in bt_mesh_va_collision_check()
160 } while (uuid && ++count); in bt_mesh_va_collision_check()
165 const struct bt_mesh_va *bt_mesh_va_find(const uint8_t *uuid) in bt_mesh_va_find() argument
170 if (virtual_addrs[i].ref && !memcmp(virtual_addrs[i].uuid, uuid, 16)) { in bt_mesh_va_find()
192 return (va && va->ref > 0) ? va->uuid : NULL; in bt_mesh_va_get_uuid_by_idx()
195 int bt_mesh_va_get_idx_by_uuid(const uint8_t *uuid, uint16_t *uuidx) in bt_mesh_va_get_idx_by_uuid() argument
203 va = CONTAINER_OF(uuid, struct bt_mesh_va, uuid[0]); in bt_mesh_va_get_idx_by_uuid()
251 memcpy(lab->uuid, va.uuid, 16); in va_set()
285 memcpy(va.uuid, lab->uuid, 16); in bt_mesh_va_pending_store()