Home
last modified time | relevance | path

Searched refs:va (Results 1 – 22 of 22) sorted by relevance

/Zephyr-latest/subsys/bluetooth/mesh/
Dva.c51 struct bt_mesh_va *va = NULL; in bt_mesh_va_add() local
56 if (!va) { in bt_mesh_va_add()
57 va = &virtual_addrs[i]; in bt_mesh_va_add()
74 if (!va) { 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()
81 va->addr = BT_MESH_ADDR_UNASSIGNED; in bt_mesh_va_add()
85 va->ref = 1; in bt_mesh_va_add()
86 va_store(va); in bt_mesh_va_add()
89 *entry = va; in bt_mesh_va_add()
[all …]
Dcfg_srv.c844 const struct bt_mesh_va *va; in mod_pub_va_set() local
899 status = bt_mesh_va_add(uuid, &va); in mod_pub_va_set()
904 pub_addr = va->addr; in mod_pub_va_set()
906 status = _mod_pub_set(mod, pub_addr, va->uuid, pub_app_idx, cred_flag, pub_ttl, in mod_pub_va_set()
909 (void)bt_mesh_va_del(va->uuid); in mod_pub_va_set()
1382 const struct bt_mesh_va *va; in mod_sub_va_add() local
1423 status = bt_mesh_va_add(uuid, &va); in mod_sub_va_add()
1428 if (bt_mesh_model_find_uuid(&mod, va->uuid)) { in mod_sub_va_add()
1431 (void)bt_mesh_va_del(va->uuid); in mod_sub_va_add()
1438 (void)bt_mesh_va_del(va->uuid); in mod_sub_va_add()
[all …]
DCMakeLists.txt20 va.c
/Zephyr-latest/drivers/mm/
Dmm_drv_intel_adsp_tlb.c83 uintptr_t va = POINTER_TO_UINT(sys_cache_cached_ptr_get(virt)); in sys_mm_drv_map_page() local
89 !sys_mm_drv_is_addr_aligned(va)) { in sys_mm_drv_map_page()
102 CHECKIF((va < CONFIG_KERNEL_VM_BASE) || in sys_mm_drv_map_page()
103 (va >= (CONFIG_KERNEL_VM_BASE + CONFIG_KERNEL_VM_SIZE))) { in sys_mm_drv_map_page()
110 entry_idx = get_tlb_entry_idx(va); in sys_mm_drv_map_page()
147 void *va = (__sparse_force void *)sys_cache_cached_ptr_get(virt); in sys_mm_drv_map_region() local
149 return sys_mm_drv_simple_map_region(va, phys, size, flags); in sys_mm_drv_map_region()
155 void *va = (__sparse_force void *)sys_cache_cached_ptr_get(virt); in sys_mm_drv_map_array() local
157 return sys_mm_drv_simple_map_array(va, phys, cnt, flags); in sys_mm_drv_map_array()
168 uintptr_t va = POINTER_TO_UINT(sys_cache_cached_ptr_get(virt)); in sys_mm_drv_unmap_page() local
[all …]
Dmm_drv_intel_adsp_mtl_tlb.c188 uintptr_t va = POINTER_TO_UINT(sys_cache_cached_ptr_get(virt)); in sys_mm_drv_map_page() local
191 CHECKIF(!sys_mm_drv_is_addr_aligned(va)) { in sys_mm_drv_map_page()
197 CHECKIF((va < UNUSED_L2_START_ALIGNED) || in sys_mm_drv_map_page()
198 (va >= (CONFIG_KERNEL_VM_BASE + CONFIG_KERNEL_VM_SIZE))) { in sys_mm_drv_map_page()
235 entry_idx = get_tlb_entry_idx(va); in sys_mm_drv_map_page()
271 arch_mem_map(virt, va, CONFIG_MM_DRV_PAGE_SIZE, flags); in sys_mm_drv_map_page()
292 uint8_t *va; in sys_mm_drv_map_region() local
301 va = (__sparse_force uint8_t *)sys_cache_cached_ptr_get(virt); in sys_mm_drv_map_region()
307 int ret2 = sys_mm_drv_map_page(va, pa, flags); in sys_mm_drv_map_region()
310 __ASSERT(false, "cannot map 0x%lx to %p\n", pa, va); in sys_mm_drv_map_region()
[all …]
Dmm_drv_common.c53 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_is_virt_region_mapped() local
55 if (sys_mm_drv_page_phys_get(va, NULL) != 0) { in sys_mm_drv_is_virt_region_mapped()
70 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_is_virt_region_unmapped() local
72 if (sys_mm_drv_page_phys_get(va, NULL) != -EFAULT) { in sys_mm_drv_is_virt_region_unmapped()
98 uint8_t *va = (uint8_t *)virt + offset; in unmap_locked() local
100 int ret2 = sys_mm_drv_unmap_page(va); in unmap_locked()
104 __ASSERT(false, "cannot reset mapping %p\n", va); in unmap_locked()
106 __ASSERT(false, "cannot unmap %p\n", va); in unmap_locked()
133 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_simple_map_region() local
136 ret = sys_mm_drv_map_page(va, pa, flags); in sys_mm_drv_simple_map_region()
[all …]
Dmm_drv_ti_rat.c104 uintptr_t *va = phys; in sys_mm_drv_page_phys_get() local
134 *va = (translate_config.region_config[regionId].local_addr + offset); in sys_mm_drv_page_phys_get()
137 *va = pa; in sys_mm_drv_page_phys_get()
140 if (va == NULL) { in sys_mm_drv_page_phys_get()
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dtest_friendship.c296 const struct bt_mesh_va *va; in test_friend_group() local
307 ASSERT_OK(bt_mesh_va_add(test_va_uuid, &va)); in test_friend_group()
321 ASSERT_OK_MSG(bt_mesh_test_send(va->addr, va->uuid, 5, 0, K_SECONDS(1)), in test_friend_group()
363 const struct bt_mesh_va *va[2]; in test_friend_va_collision() local
375 ASSERT_OK(bt_mesh_va_add(test_va_col_uuid[i], &va[i])); in test_friend_va_collision()
376 ASSERT_EQUAL(test_va_col_addr, va[i]->addr); in test_friend_va_collision()
386 ASSERT_OK_MSG(bt_mesh_test_send(test_va_col_addr, va[i]->uuid, 5, 0, K_SECONDS(1)), in test_friend_va_collision()
403 ASSERT_OK_MSG(bt_mesh_test_send(test_va_col_addr, va[i]->uuid, 5, 0, K_SECONDS(1)), in test_friend_va_collision()
422 ASSERT_OK_MSG(bt_mesh_test_send(test_va_col_addr, va[i]->uuid, 5, 0, K_SECONDS(1)), in test_friend_va_collision()
744 const struct bt_mesh_va *va; in test_lpn_group() local
[all …]
Dtest_transport.c194 const struct bt_mesh_va *va; in test_tx_va() local
199 err = bt_mesh_va_add(test_va_uuid, &va); in test_tx_va()
206 err = bt_mesh_test_send(va->addr, va->uuid, test_vector[i].len, in test_tx_va()
218 const struct bt_mesh_va *va[ARRAY_SIZE(test_va_col_uuid)]; in test_tx_va_collision() local
224 err = bt_mesh_va_add(test_va_col_uuid[i], &va[i]); in test_tx_va_collision()
226 ASSERT_EQUAL(test_va_col_addr, va[i]->addr); in test_tx_va_collision()
236 err = bt_mesh_test_send(test_va_col_addr, va[j]->uuid, test_vector[i].len, in test_tx_va_collision()
684 TEST_CASE(tx, va, "Transport: send to virtual addr"),
697 TEST_CASE(rx, va, "Transport: receive on virtual addr"),
Dtest_persistence.c544 uint16_t va; in node_configure() local
597 va_subs[i].uuid, TEST_MOD_ID, &va, &status); in node_configure()
601 ASSERT_EQUAL(va_subs[i].addr, va); in node_configure()
638 TEST_VND_COMPANY_ID, &va, &status); in node_configure()
642 ASSERT_EQUAL(va_subs[i].addr, va); in node_configure()
761 uint16_t va; in test_access_sub_overwrite() local
789 TEST_VND_COMPANY_ID, &va, &status); in test_access_sub_overwrite()
793 ASSERT_EQUAL(TEST_VA_0_ADDR, va); in test_access_sub_overwrite()
/Zephyr-latest/arch/arm/core/mmu/
Darm_mmu.c113 static void arm_mmu_l2_map_page(uint32_t va, uint32_t pa,
140 static struct arm_mmu_l2_page_table *arm_mmu_assign_l2_table(uint32_t va) in arm_mmu_assign_l2_table() argument
147 va); in arm_mmu_assign_l2_table()
152 va, arm_mmu_l2_next_free_table, in arm_mmu_assign_l2_table()
161 ((va >> ARM_MMU_PTE_L1_INDEX_PA_SHIFT) & ARM_MMU_PTE_L1_INDEX_MASK); in arm_mmu_assign_l2_table()
406 static void arm_mmu_l1_map_section(uint32_t va, uint32_t pa, in arm_mmu_l1_map_section() argument
409 uint32_t l1_index = (va >> ARM_MMU_PTE_L1_INDEX_PA_SHIFT) & in arm_mmu_l1_map_section()
415 va, pa); in arm_mmu_l1_map_section()
465 static void arm_mmu_remap_l1_section_to_l2_table(uint32_t va, in arm_mmu_remap_l1_section_to_l2_table() argument
469 uint32_t l1_index = (va >> ARM_MMU_PTE_L1_INDEX_PA_SHIFT) & in arm_mmu_remap_l1_section_to_l2_table()
[all …]
/Zephyr-latest/arch/xtensa/core/
Dptables.c401 static inline void __arch_mem_map(void *va, uintptr_t pa, uint32_t xtensa_flags, bool is_user) in __arch_mem_map() argument
409 if (sys_cache_is_ptr_cached(va)) { in __arch_mem_map()
410 vaddr = va; in __arch_mem_map()
411 vaddr_uc = sys_cache_uncached_ptr_get(va); in __arch_mem_map()
413 vaddr = sys_cache_cached_ptr_get(va); in __arch_mem_map()
414 vaddr_uc = va; in __arch_mem_map()
428 vaddr = va; in __arch_mem_map()
435 __ASSERT(ret, "Virtual address (%p) already mapped", va); in __arch_mem_map()
475 uint32_t va = (uint32_t)virt; in arch_mem_map() local
514 __arch_mem_map((void *)va, pa, xtensa_flags, is_user); in arch_mem_map()
[all …]
/Zephyr-latest/tests/boards/intel_adsp/mm/src/
Dmain.c40 void *va = (void *)ROUND_UP(L2_SRAM_BASE + L2_SRAM_SIZE, PAGE_SZ); local
48 ret = sys_mm_drv_map_region(va, pa[0], N_PAGES * PAGE_SZ, 0U);
53 struct pagemem *vps = va;
166 void *va = (void *)ROUND_UP(L2_SRAM_BASE + L2_SRAM_SIZE, PAGE_SZ); in ZTEST() local
174 ret = sys_mm_drv_map_array(va, pa, N_PAGES, 0U); in ZTEST()
179 struct pagemem *vps = va; in ZTEST()
/Zephyr-latest/lib/posix/options/
Dsemaphore.c223 va_list va; in sem_open() local
229 va_start(va, oflags); in sem_open()
231 mode = va_arg(va, int); in sem_open()
232 value = va_arg(va, unsigned int); in sem_open()
233 va_end(va); in sem_open()
Dmqueue.c57 va_list va; in mq_open() local
65 va_start(va, oflags); in mq_open()
68 mode = va_arg(va, unsigned int); in mq_open()
69 attrs = va_arg(va, struct mq_attr*); in mq_open()
71 va_end(va); in mq_open()
/Zephyr-latest/subsys/net/lib/http/
Dhttp_client.c72 va_list va; in http_send_data() local
77 va_start(va, req_end_timepoint); in http_send_data()
79 data = va_arg(va, const char *); in http_send_data()
120 data = va_arg(va, const char *); in http_send_data()
123 va_end(va); in http_send_data()
136 va_end(va); in http_send_data()
/Zephyr-latest/subsys/bluetooth/mesh/shell/
Dcfg.c1829 SHELL_CMD_ARG(pub-va, NULL,
1838 SHELL_CMD_ARG(sub-add-va, NULL,
1840 SHELL_CMD_ARG(sub-del-va, NULL,
1844 SHELL_CMD_ARG(sub-ow-va, NULL, "<ElemAddr> <LabelUUID(1-16 hex)> <MID> [CID]",
/Zephyr-latest/kernel/
Dmmu.c462 uintptr_t va = (uintptr_t)addr & ~flags_mask; in frame_mapped_set() local
465 pf->va_and_flags |= va | K_MEM_PAGE_FRAME_MAPPED; in frame_mapped_set()
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_mesh.c1723 const struct bt_mesh_va *va; in va_add() local
1726 err = bt_mesh_va_add(cp->label_uuid, &va); in va_add()
1732 rp->addr = sys_cpu_to_le16(va->addr); in va_add()
1742 const struct bt_mesh_va *va; in va_del() local
1745 va = bt_mesh_va_find(cp->label_uuid); in va_del()
1746 if (!va) { in va_del()
1751 err = bt_mesh_va_del(va->uuid); in va_del()
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Drunner.py1647 for va in self.testsuite.extra_args.copy():
1648 cond_args = va.split(":")
1661 args.append(va)
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/
Dshell.rst763 ``mesh models cfg model pub-va <Addr> <UUID(1-16 hex)> <AppKeyIdx> <Cred(off, on)> <TTL> <PerRes> <…
813 ``mesh models cfg model sub-add-va <ElemAddr> <LabelUUID(1-16 hex)> <MID> [CID]``
826 ``mesh models cfg model sub-del-va <ElemAddr> <LabelUUID(1-16 hex)> <MID> [CID]``
846 ``mesh models cfg model sub-ow-va <ElemAddr> <LabelUUID(1-16 hex)> <MID> [CID]``
/Zephyr-latest/samples/modules/tflite-micro/hello_world/train/
Dtrain_hello_world_model.ipynb3145 …GwniVbbPwSaonhX/B/wfQGLZ/c+SSkPoxh1twD/oNSBNX0Ao1lNMBjFtlMY5FbvX6KoNhLNZc1+va+iCJ4DKPd0DVDTxjlyu+8…