/openbsd/sys/arch/sh/sh/ |
H A D | cache_sh4.c | 234 va = trunc_line(va); in sh4_icache_sync_range() 236 sh4_dcache_wbinv_range(va, (eva - va)); in sh4_icache_sync_range() 252 va = trunc_line(va); in sh4_icache_sync_range_index() 254 sh4_dcache_wbinv_range_index(va, eva - va); in sh4_icache_sync_range_index() 288 va = trunc_line(va); in sh4_dcache_wbinv_range() 300 va = trunc_line(va); in sh4_dcache_wbinv_range_index() 321 va = trunc_line(va); in sh4_dcache_inv_range() 333 va = trunc_line(va); in sh4_dcache_wb_range() 423 va = trunc_line(va); in sh4_emode_icache_sync_range_index() 425 sh4_emode_dcache_wbinv_range_index(va, eva - va); in sh4_emode_icache_sync_range_index() [all …]
|
H A D | cache_sh3.c | 142 va &= sh_cache_entry_mask; in cache_sh3_op_line_16_nway() 164 va &= sh_cache_entry_mask; in cache_sh3_op_8lines_16_nway() 184 vaddr_t va; in sh3_cache_wbinv_all() local 186 for (va = 0; va < sh_cache_way_size; va += 16 * 8) in sh3_cache_wbinv_all() 195 va = trunc_line(va); in sh3_cache_wbinv_range_index() 199 va += 16 * 8; in sh3_cache_wbinv_range_index() 202 while (va < eva) { in sh3_cache_wbinv_range_index() 204 va += 16; in sh3_cache_wbinv_range_index() 214 va = trunc_line(va); in sh3_cache_wbinv_range() 216 while (va < eva) { in sh3_cache_wbinv_range() [all …]
|
H A D | pmap.c | 125 vaddr_t va; in pmap_steal_memory() local 159 return (va); in pmap_steal_memory() 485 vaddr_t va; in pmap_remove() local 489 for (va = sva; va < eva; va += PAGE_SIZE) { in pmap_remove() 585 for (; va < eva; va += PAGE_SIZE) { in pmap_kremove() 626 vaddr_t va; in pmap_protect() local 655 for (va = sva; va < eva; va += PAGE_SIZE) { in pmap_protect() 709 vaddr_t va; in pmap_page_protect() local 727 pmap_protect(pmap, va, va + PAGE_SIZE, prot); in pmap_page_protect() 737 pmap_remove(pv->pv_pmap, va, va + PAGE_SIZE); in pmap_page_protect() [all …]
|
/openbsd/sys/arch/mips64/mips64/ |
H A D | cache_loongson2.c | 222 for (va = sva; va != eva; va += LS2F_CACHE_LINE) in Loongson2_SyncDCachePage() 224 for (va = sva; va != eva; va += LS2F_CACHE_LINE) in Loongson2_SyncDCachePage() 239 eva = va + sz; in ls2f_hitwbinv_primary() 240 while (va != eva) { in ls2f_hitwbinv_primary() 251 eva = va + sz; in ls2f_hitwbinv_secondary() 252 while (va != eva) { in ls2f_hitwbinv_secondary() 261 vaddr_t va; in Loongson2_HitSyncDCache() local 285 eva = va + sz; in ls2f_hitinv_primary() 297 eva = va + sz; in ls2f_hitinv_secondary() 307 vaddr_t va; in Loongson2_HitInvalidateDCache() local [all …]
|
H A D | cache_mips64r2.c | 142 eva = va + sz; in mips64r2_hitwbinv_primary() 145 va += line; in mips64r2_hitwbinv_primary() 154 eva = va + sz; in mips64r2_hitwbinv_secondary() 157 va += line; in mips64r2_hitwbinv_secondary() 169 va += line; in mips64r2_hitwbinv_ternary() 181 va += line; in mips64r2_hitinv_primary() 193 va += line; in mips64r2_hitinv_secondary() 205 va += line; in mips64r2_hitinv_ternary() 341 vaddr_t va; in mips64r2_HitSyncDCache() local 359 vaddr_t va; in mips64r2_HitInvalidateDCache() local [all …]
|
H A D | pmap.c | 261 ii_args.va = va; in pmap_invalidate_icache() 314 for (va = sva; va < eva; va += SHOOTDOWN_MAX * PAGE_SIZE) { in pmap_shootdown_range() 333 for (va = sr_arg->sva; va < sr_arg->eva; va += PAGE_SIZE) in pmap_shootdown_range_action() 336 for (va = sr_arg->sva; va < sr_arg->eva; va += PAGE_SIZE) in pmap_shootdown_range_action() 713 for (va = sva; va < eva; va += PAGE_SIZE, pte++) { in pmap_do_remove() 743 for (va = sva ; va < eva; va = nssva, seg++) { in pmap_do_remove() 748 for ( ; va < eva && va < nssva; va = ndsva, pde++) { in pmap_do_remove() 753 for ( ; va < eva && va < ndsva; in pmap_do_remove() 973 for (va = sva; va < eva; va += PAGE_SIZE, pte++) { in pmap_protect() 1001 for (va = sva ; va < eva; va = nssva, seg++) { in pmap_protect() [all …]
|
/openbsd/sys/arch/loongson/include/ |
H A D | cpu.h | 62 #define Mips_InvalidateICache(ci, va, l) \ argument 64 #define Mips_InvalidateICachePage(ci, va) \ argument 68 #define Mips_SyncDCachePage(ci, va, pa) \ argument 72 #define Mips_HitSyncDCache(ci, va, l) \ argument 73 Loongson2_HitSyncDCache((ci), (va), (l)) 74 #define Mips_IOSyncDCache(ci, va, l, h) \ argument 83 #define Mips_InvalidateICache(ci, va, l) \ argument 89 #define Mips_SyncDCachePage(ci, va, pa) \ argument 93 #define Mips_HitSyncDCache(ci, va, l) \ argument 94 Loongson3_HitSyncDCache((ci), (va), (l)) [all …]
|
/openbsd/sys/arch/hppa/hppa/ |
H A D | pmap.c | 304 pde, va, pte)); in pmap_pte_set() 365 va < 0xfffff000; va += PAGE_SIZE) { in pmap_dump_table() 455 pve->pv_va = va; in pmap_pv_enter() 571 for (va = 0; va < (vaddr_t)&etext; va += size) { in pmap_bootstrap() 576 if (btlb_insert(HPPA_SID_KERNEL, va, va, &size, in pmap_bootstrap() 599 for (va = 0; npdes--; va += PDE_SIZE, addr += PAGE_SIZE) { in pmap_bootstrap() 603 va = SYSCALLGATE; in pmap_bootstrap() 621 for (va = 0; va < ptoa(physmem); va += PAGE_SIZE) { in pmap_bootstrap() 632 pmap_kenter_pa(va, va, prot); in pmap_bootstrap() 1082 va); in pmap_changebit() [all …]
|
/openbsd/gnu/usr.bin/gcc/gcc/ |
H A D | varray.c | 85 varray_grow (va, n) in varray_grow() argument 86 varray_type va; in varray_grow() 98 va = (varray_type) ggc_realloc (va, VARRAY_HDR_SIZE + data_size); 100 va = (varray_type) xrealloc ((char *) va, VARRAY_HDR_SIZE + data_size); 106 return va; 111 varray_clear (va) in varray_clear() argument 112 varray_type va; in varray_clear() 114 size_t data_size = element_size[va->type] * va->num_elements; 117 va->elements_used = 0; 128 varray_type va; in varray_check_failed() [all …]
|
H A D | varray.h | 145 #define VARRAY_CHAR_INIT(va, num, name) \ argument 148 #define VARRAY_UCHAR_INIT(va, num, name) \ argument 151 #define VARRAY_SHORT_INIT(va, num, name) \ argument 157 #define VARRAY_INT_INIT(va, num, name) \ argument 160 #define VARRAY_UINT_INIT(va, num, name) \ argument 163 #define VARRAY_LONG_INIT(va, num, name) \ argument 166 #define VARRAY_ULONG_INIT(va, num, name) \ argument 181 #define VARRAY_RTX_INIT(va, num, name) \ argument 187 #define VARRAY_TREE_INIT(va, num, name) \ argument 193 #define VARRAY_REG_INIT(va, num, name) \ argument [all …]
|
/openbsd/sys/arch/i386/i386/ |
H A D | pmapae.c | 449 #define VASLEW(va,id) ((va)+(id)*NPTECL*NBPG) argument 452 #define VASLEW(va,id) (va) argument 683 for (va = KERNBASE, eva = va + (nkpde << PDSHIFT86); in pmap_bootstrap_pae() 684 va < eva; va += PAGE_SIZE) { in pmap_bootstrap_pae() 710 (va >= (vaddr_t)atdevbase && va <= in pmap_bootstrap_pae() 717 pmap_pte_set_pae(va, pmap_pte_paddr_86(va), bits); in pmap_bootstrap_pae() 727 for (va = KERNBASE, eva = va + (nkpde << PDSHIFT86); va < eva; in pmap_bootstrap_pae() 822 for (va = (vaddr_t)&PTmap; va < KERNBASE; va += NBPD) { in pmap_bootstrap_pae() 971 vaddr_t va; in pmap_pinit_pd_pae() local 1272 for (va = sva ; va < eva ; va = blkendva) { in pmap_do_remove_pae() [all …]
|
H A D | bios.c | 174 va[5], va[6], va[8], va[9], va[11], va[12]); in biosattach() 249 if (!(va[0] == '_' && va[1] == 'D' && va[2] == 'M' && in biosattach() 250 va[3] == 'I' && va[4] == '_')) in biosattach() 452 va < eva; va += 512) { in biosattach() 715 pmap_remove(pmap_kernel(), va, va + PAGE_SIZE); in bios32_cleanup() 855 for (; va + 1 < end; va++) in smbios_find_table() 856 if (*va == 0 && *(va + 1) == 0) in smbios_find_table() 876 for (; va + 1 < end; va++) in smbios_find_table() 877 if (*va == 0 && *(va + 1) == 0) in smbios_find_table() 879 va += 2; in smbios_find_table() [all …]
|
H A D | pmap.c | 409 #define VASLEW(va,id) ((va)+(id)*NPTECL*NBPG) argument 412 #define VASLEW(va,id) (va) argument 781 return ((*vtopte(va) & PG_FRAME) | (va & ~PG_FRAME)); in vtophys() 876 for (va = sva; va != eva; va += PAGE_SIZE) { in pmap_kremove() 893 vaddr_t va; in pmap_alloc_pdir_intel_x86() local 1666 caddr_t va; in pmap_flush_page() local 1829 vaddr_t va; in pmap_do_remove_86() local 1845 for (va = sva ; va < eva ; va = blkendva) { in pmap_do_remove_86() 2156 for (va = sva; va < eva; va = blockend) { in pmap_write_protect_86() 2749 for (va = sva; va < eva; va += PAGE_SIZE) in pmap_tlb_shootrange() [all …]
|
/openbsd/gnu/gcc/gcc/ |
H A D | varray.c | 154 varray_type oldva = va; in varray_grow() 162 if (element[va->type].uses_ggc) in varray_grow() 163 va = ggc_realloc (va, VARRAY_HDR_SIZE + data_size); in varray_grow() 165 va = xrealloc (va, VARRAY_HDR_SIZE + data_size); in varray_grow() 166 va->num_elements = n; in varray_grow() 170 if (oldva != va) in varray_grow() 175 return va; in varray_grow() 180 varray_clear (varray_type va) in varray_clear() argument 182 size_t data_size = element[va->type].size * va->num_elements; in varray_clear() 185 va->elements_used = 0; in varray_clear() [all …]
|
H A D | varray.h | 129 #define VARRAY_CHAR_INIT(va, num, name) \ argument 132 #define VARRAY_UCHAR_INIT(va, num, name) \ argument 135 #define VARRAY_SHORT_INIT(va, num, name) \ argument 141 #define VARRAY_INT_INIT(va, num, name) \ argument 144 #define VARRAY_UINT_INIT(va, num, name) \ argument 147 #define VARRAY_LONG_INIT(va, num, name) \ argument 168 #define VARRAY_RTX_INIT(va, num, name) \ argument 174 #define VARRAY_TREE_INIT(va, num, name) \ argument 180 #define VARRAY_REG_INIT(va, num, name) \ argument 183 #define VARRAY_BB_INIT(va, num, name) \ argument [all …]
|
/openbsd/sys/arch/m88k/m88k/ |
H A D | pmap.c | 184 #define SDTENT(pm, va) ((pm)->pm_stab + SDTIDX(va)) argument 270 *pap = va; in pmap_translation_info() 542 vaddr_t va; in pmap_steal_memory() local 564 return (va); in pmap_steal_memory() 957 vaddr_t va; in pmap_collect() local 975 pmap_remove_range(pmap, va, va + (1 << SDT_SHIFT)); in pmap_collect() 1297 va = sva; in pmap_remove_range() 1399 vaddr_t va; in pmap_remove_page() local 1451 va = sva; in pmap_protect() 1553 vaddr_t va; in pmap_changebit() local [all …]
|
/openbsd/lib/libkvm/ |
H A D | kvm_sh.c | 58 #define __PMAP_PTP_INDEX(va) (((va) >> __PMAP_PTP_SHIFT) & (__PMAP_PTP_N - 1)) argument 59 #define __PMAP_PTP_OFSET(va) ((va / kd->nbpg) & (__PMAP_PTP_PG_N - 1)) argument 62 _kvm_kvatop(kvm_t *kd, u_long va, paddr_t *pa) in _kvm_kvatop() argument 78 if (va >= SH3_P1SEG_BASE && va <= SH3_P1SEG_END) { in _kvm_kvatop() 79 *pa = SH3_P1SEG_TO_PHYS(va); in _kvm_kvatop() 80 return (int)((vaddr_t)SH3_P1SEG_END + 1 - va); in _kvm_kvatop() 82 if (va >= SH3_P2SEG_BASE && va <= SH3_P2SEG_END) { in _kvm_kvatop() 83 *pa = SH3_P2SEG_TO_PHYS(va); in _kvm_kvatop() 90 if (va >= SH3_P3SEG_BASE && va < SH3_P3SEG_END) { in _kvm_kvatop() 92 l2idx = __PMAP_PTP_OFSET(va); in _kvm_kvatop() [all …]
|
H A D | kvm_sparc64.c | 101 _kvm_kvatop(kvm_t *kd, u_long va, paddr_t *pa) in _kvm_kvatop() argument 108 if (va < kernbase) in _kvm_kvatop() 112 if (va > cpup->ktextbase && va < (cpup->ktextbase + cpup->ktextsz)) { in _kvm_kvatop() 115 vaddr = va - cpup->ktextbase; in _kvm_kvatop() 120 if (va > cpup->kdatabase && va < (cpup->kdatabase + cpup->kdatasz)) { in _kvm_kvatop() 123 vaddr = va - cpup->kdatabase; in _kvm_kvatop() 134 _kvm_pa2off(kd, (u_long)&pseg[va_to_seg(va)])) != sizeof(pdir)) { in _kvm_kvatop() 171 va = va & (kd->nbpg - 1); in _kvm_kvatop() 173 *pa = data + va; in _kvm_kvatop() 178 return (kd->nbpg - va); in _kvm_kvatop() [all …]
|
/openbsd/bin/ksh/ |
H A D | io.c | 29 va_list va; in errorf() local 37 va_end(va); in errorf() 48 va_list va; in warningf() local 53 va_end(va); in warningf() 64 va_list va; in bi_errorf() local 75 va_end(va); in bi_errorf() 104 va_list va; in internal_warningf() local 108 va_end(va); in internal_warningf() 115 va_list va; in internal_errorf() local 119 va_end(va); in internal_errorf() [all …]
|
/openbsd/sys/arch/arm/arm/ |
H A D | pmap7.c | 312 #define L1_IDX(va) (((vaddr_t)(va)) >> L1_S_SHIFT) 356 #define L2_NEXT_BUCKET(va) (((va) & L1_S_FRAME) + L1_S_SIZE) 451 pmap_tlb_flushID_SE(pmap_t pm, vaddr_t va) 454 cpu_tlb_flushID_SE(va); 469 pmap_get_l2_bucket(pmap_t pm, vaddr_t va) 475 l1idx = L1_IDX(va); 503 vaddr_t va, u_int flags) in pmap_enter_pv() 510 pve->pv_va = va; 298 L1_IDX(va) global() argument 342 L2_NEXT_BUCKET(va) global() argument 437 pmap_tlb_flushID_SE(pmap_t pm,vaddr_t va) pmap_tlb_flushID_SE() argument 455 pmap_get_l2_bucket(pmap_t pm,vaddr_t va) pmap_get_l2_bucket() argument 489 pmap_enter_pv(struct vm_page * pg,struct pv_entry * pve,pmap_t pm,vaddr_t va,u_int flags) pmap_enter_pv() argument 514 pmap_find_pv(struct vm_page * pg,pmap_t pm,vaddr_t va) pmap_find_pv() argument 536 pmap_remove_pv(struct vm_page * pg,pmap_t pm,vaddr_t va) pmap_remove_pv() argument 573 pmap_modify_pv(struct vm_page * pg,pmap_t pm,vaddr_t va,u_int clr_mask,u_int set_mask) pmap_modify_pv() argument 617 vaddr_t va, eva; pmap_alloc_l1() local 670 vaddr_t va; pmap_free_l1() local 719 pmap_alloc_l2_bucket(pmap_t pm,vaddr_t va) pmap_alloc_l2_bucket() argument 871 vaddr_t va; pmap_clearbit() local 1064 pmap_enter(pmap_t pm,vaddr_t va,paddr_t pa,vm_prot_t prot,int flags) pmap_enter() argument 1374 pmap_kenter_pa(vaddr_t va,paddr_t pa,vm_prot_t prot) pmap_kenter_pa() argument 1412 pmap_kenter_cache(vaddr_t va,paddr_t pa,vm_prot_t prot,int cacheable) pmap_kenter_cache() argument 1420 pmap_kremove(vaddr_t va,vsize_t len) pmap_kremove() argument 1461 pmap_extract(pmap_t pm,vaddr_t va,paddr_t * pap) pmap_extract() argument 1680 vaddr_t va = trunc_page(far); dab_access() local 1746 pmap_proc_iflush(struct process * pr,vaddr_t va,vsize_t len) pmap_proc_iflush() argument 1761 pmap_unwire(pmap_t pm,vaddr_t va) pmap_unwire() argument 1944 pmap_grow_map(vaddr_t va,pt_entry_t cache_mode,paddr_t * pap) pmap_grow_map() argument 1984 pmap_grow_l2_bucket(pmap_t pm,vaddr_t va) pmap_grow_l2_bucket() argument 2167 pmap_get_pde_pte(pmap_t pm,vaddr_t va,pd_entry_t ** pdp,pt_entry_t ** ptp) pmap_get_pde_pte() argument 2376 vaddr_t va = *availp; pmap_alloc_specials() local 2482 pmap_map_section(vaddr_t l1pt,vaddr_t va,paddr_t pa,int prot,int cache) pmap_map_section() argument 2513 pmap_map_entry(vaddr_t l1pt,vaddr_t va,paddr_t pa,int prot,int cache) pmap_map_entry() argument 2564 pmap_link_l2pt(vaddr_t l1pt,vaddr_t va,pv_addr_t * l2pv) pmap_link_l2pt() argument 2590 pmap_map_chunk(vaddr_t l1pt,vaddr_t va,paddr_t pa,vsize_t size,int prot,int cache) pmap_map_chunk() argument [all...] |
H A D | sys_machdep.c | 64 vaddr_t va; in arm32_sync_icache() local 71 va = ua.addr; in arm32_sync_icache() 76 if (va + sz <= vm_map_min(map) || va >= vm_map_max(map) || in arm32_sync_icache() 77 va + sz < va) in arm32_sync_icache() 80 if (va < vm_map_min(map)) { in arm32_sync_icache() 81 sz -= vm_map_min(map) - va; in arm32_sync_icache() 82 va = vm_map_min(map); in arm32_sync_icache() 84 sz = vm_map_max(map) - va; in arm32_sync_icache() 87 chunk = PAGE_SIZE - (va & PAGE_MASK); in arm32_sync_icache() 93 cpu_icache_sync_range(va, chunk); in arm32_sync_icache() [all …]
|
/openbsd/sys/arch/octeon/include/ |
H A D | cpu.h | 85 #define Mips_InvalidateICache(ci, va, l) \ argument 86 Octeon_InvalidateICache((ci), (va), (l)) 87 #define Mips_InvalidateICachePage(ci, va) \ argument 88 Octeon_InvalidateICachePage((ci), (va)) 91 #define Mips_SyncDCachePage(ci, va, pa) \ argument 92 Octeon_SyncDCachePage((ci), (va), (pa)) 94 Octeon_SyncDCachePage((ci), (va), (pa)) 95 #define Mips_HitSyncDCache(ci, va, l) \ argument 96 Octeon_HitSyncDCache((ci), (va), (l)) 97 #define Mips_IOSyncDCache(ci, va, l, h) \ argument [all …]
|
/openbsd/sys/arch/hppa/include/ |
H A D | cpufunc.h | 105 iitlba(u_int pg, pa_space_t sp, vaddr_t va) in iitlba() argument 112 idtlba(u_int pg, pa_space_t sp, vaddr_t va) in idtlba() argument 119 iitlbp(u_int prot, pa_space_t sp, vaddr_t va) in iitlbp() argument 126 idtlbp(u_int prot, pa_space_t sp, vaddr_t va) in idtlbp() argument 133 pitlb(pa_space_t sp, vaddr_t va) in pitlb() argument 136 __asm volatile("pitlb %%r0(%%sr1, %0)":: "r" (va)); in pitlb() 140 pdtlb(pa_space_t sp, vaddr_t va) in pdtlb() argument 143 __asm volatile("pdtlb %%r0(%%sr1, %0)":: "r" (va)); in pdtlb() 147 pitlbe(pa_space_t sp, vaddr_t va) in pitlbe() argument 154 pdtlbe(pa_space_t sp, vaddr_t va) in pdtlbe() argument [all …]
|
/openbsd/sys/arch/powerpc64/powerpc64/ |
H A D | pmap.c | 170 VP_IDX1(vaddr_t va) in VP_IDX1() argument 299 vaddr_t va; in pmap_ptedinhash() local 751 vaddr_t va; in pte_insert() local 1145 vaddr_t va; in pmap_remove() local 1148 for (va = sva; va < eva; va += PAGE_SIZE) { in pmap_remove() 1422 va >= (vaddr_t)_start && va < (vaddr_t)_end) { in pmap_extract() 1423 *pa = va; in pmap_extract() 1516 clen = round_page(va + 1) - va; in pmap_proc_iflush() 1528 va += clen; in pmap_proc_iflush() 1633 vaddr_t va; in pmap_bootstrap() local [all …]
|
/openbsd/sys/arch/sparc64/include/ |
H A D | ctlreg.h | 618 LDC_GEN((va), asi, op, op ## a, type) : op ## a_nc((va), asi)) 620 #define LD_GENERIC(va, asi, op, type) (op ## a_nc((va), asi)) argument 623 #define lduba(va, asi) LD_GENERIC(va, asi, ldub, u_int8_t) argument 624 #define lduha(va, asi) LD_GENERIC(va, asi, lduh, u_int16_t) argument 625 #define lduwa(va, asi) LD_GENERIC(va, asi, lduw, u_int32_t) argument 626 #define ldxa(va, asi) LD_GENERIC(va, asi, ldx, u_int64_t) argument 669 #define ST_GENERIC(va, asi, val, op, type) (op ## a_nc((va), asi, (val))) argument 672 #define stba(va, asi, val) ST_GENERIC(va, asi, val, stb, u_int8_t) argument 673 #define stha(va, asi, val) ST_GENERIC(va, asi, val, sth, u_int16_t) argument 674 #define stwa(va, asi, val) ST_GENERIC(va, asi, val, stw, u_int32_t) argument [all …]
|