| /f-stack/tools/compat/ |
| H A D | compat.h | 48 #ifndef rounddown2 49 #define rounddown2(x, y) ((x)&(~((y)-1))) /* if y is power of two */ macro
|
| /f-stack/freebsd/arm64/linux/ |
| H A D | linux_sysvec.c | 242 destp = rounddown2(destp, sizeof(void *)); in linux_copyout_strings() 259 destp = rounddown2(destp, sizeof(void *)); in linux_copyout_strings() 268 destp = rounddown2(destp, sizeof(void *)); in linux_copyout_strings()
|
| /f-stack/freebsd/sys/ |
| H A D | param.h | 308 #define rounddown2(x, y) ((x)&(~((y)-1))) /* if y is power of two */ macro
|
| /f-stack/freebsd/i386/linux/ |
| H A D | linux_sysvec.c | 291 destp = rounddown2(destp, sizeof(void *)); in linux_copyout_strings() 298 destp = rounddown2(destp, sizeof(void *)); in linux_copyout_strings() 315 destp = rounddown2(destp, sizeof(void *)); in linux_copyout_strings() 324 destp = rounddown2(destp, sizeof(void *)); in linux_copyout_strings()
|
| /f-stack/freebsd/amd64/linux/ |
| H A D | linux_sysvec.c | 342 destp = rounddown2(destp, sizeof(void *)); in linux_copyout_strings() 359 destp = rounddown2(destp, sizeof(void *)); in linux_copyout_strings() 368 destp = rounddown2(destp, sizeof(void *)); in linux_copyout_strings()
|
| /f-stack/freebsd/kern/ |
| H A D | kern_exec.c | 1596 destp = rounddown2(destp, sizeof(void *)); in exec_copyout_strings() 1608 destp = rounddown2(destp, sizeof(void *)); in exec_copyout_strings() 1630 destp = rounddown2(destp, sizeof(void *)); in exec_copyout_strings() 1641 destp = rounddown2(destp, sizeof(void *)); in exec_copyout_strings() 1652 destp = rounddown2(destp, sizeof(void *)); in exec_copyout_strings()
|
| H A D | uipc_shm.c | 272 *first = rounddown2(pidx, pagesizes[psind] / PAGE_SIZE); in shm_largepage_phys_populate() 297 *before = pindex - rounddown2(pindex, pagesizes[psind] / in shm_largepage_phys_haspage()
|
| H A D | sysv_shm.c | 437 attach_va = rounddown2((vm_offset_t)shmaddr, SHMLBA); in kern_shmat_locked()
|
| H A D | imgact_elf.c | 200 #define aligned(a, t) (rounddown2((u_long)(a), sizeof(t)) == (u_long)(a))
|
| H A D | vfs_bio.c | 5203 pgsin_b = OFF_TO_IDX(lb - rounddown2(lb, bo_bs)); in vfs_bio_getpages()
|
| /f-stack/freebsd/amd64/linux32/ |
| H A D | linux32_sysvec.c | 756 destp = rounddown2(destp, sizeof(uint32_t)); in linux_copyout_strings() 773 destp = rounddown2(destp, sizeof(uint32_t)); in linux_copyout_strings() 782 destp = rounddown2(destp, sizeof(uint32_t)); in linux_copyout_strings()
|
| /f-stack/freebsd/vm/ |
| H A D | vm_fault.c | 323 rounddown2(vaddr, pagesizes[m_super->psind]) >= fs->entry->start && in vm_fault_soft_fast() 343 vaddr = rounddown2(vaddr, pagesizes[psind]); in vm_fault_soft_fast() 1667 end = rounddown2(vaddr, size); in vm_fault_dontneed()
|
| H A D | vm_page.c | 2607 if (rounddown2(pa ^ (pa + ptoa(npages) - 1), in vm_page_scan_contig() 5032 if ((frag = rounddown2(base, DEV_BSIZE)) != base && in vm_page_set_valid_range() 5042 if ((frag = rounddown2(endoff, DEV_BSIZE)) != endoff && in vm_page_set_valid_range() 5133 if ((frag = rounddown2(base, DEV_BSIZE)) != base && in vm_page_set_validclean() 5143 if ((frag = rounddown2(endoff, DEV_BSIZE)) != endoff && in vm_page_set_validclean()
|
| H A D | vm_phys.c | 1470 rounddown2(pa ^ (pa_end - 1), boundary) == 0) in vm_phys_alloc_seg_contig()
|
| /f-stack/freebsd/x86/x86/ |
| H A D | x86_mem.c | 404 rounddown2(mtrr_physmask, mrd->mr_len); in x86_mrstoreone()
|
| /f-stack/freebsd/i386/i386/ |
| H A D | sys_machdep.c | 69 #define NEW_MAX_LD(num) rounddown2(num + LD_PER_PAGE, LD_PER_PAGE)
|
| H A D | pmap.c | 6297 sva = rounddown2(sva, NBPDR); in __CONCAT()
|
| /f-stack/freebsd/arm64/arm64/ |
| H A D | pmap.c | 925 l2 = (pd_entry_t *)rounddown2((uintptr_t)l2, PAGE_SIZE); in pmap_bootstrap_l3() 2960 KASSERT(rounddown2(sva, L2_SIZE) + L2_SIZE == roundup2(eva, L2_SIZE), in pmap_remove_l3_range() 5892 rounddown2(pa, L2_SIZE)) >> L2_SHIFT; in pmap_mapbios() 5935 pa = rounddown2(pa, L2_SIZE); in pmap_mapbios() 5989 (roundup2(va + size, L2_SIZE) - rounddown2(va, L2_SIZE)) >> L2_SHIFT; in pmap_unmapbios() 6005 va_trunc = rounddown2(va, L2_SIZE) + offset; in pmap_unmapbios()
|
| H A D | machdep.c | 388 addr = rounddown2(addr, 4); in set_dbregs()
|
| H A D | gicv3_its.c | 842 phys = rounddown2(vtophys(rman_get_virtual(sc->sc_its_res)) + in gicv3_its_attach()
|
| /f-stack/freebsd/net80211/ |
| H A D | ieee80211_freebsd.c | 465 (m)->m_data += rounddown2(MCLBYTES - (len), sizeof(long)); \
|
| /f-stack/freebsd/amd64/amd64/ |
| H A D | pmap.c | 10252 if ((amd_feature & AMDID_PAGE1GB) != 0 && rounddown2(spa + len, in pmap_large_map() 10256 if (error != 0 && rounddown2(spa + len, NBPDR) >= roundup2(spa, in pmap_large_map() 10845 sva = rounddown2(sva, PAGE_SIZE); in pmap_pti_remove_kva() 11335 sva = rounddown2(sva, NBPML4); in sysctl_kmaps() 11346 sva = rounddown2(sva, NBPDP); in sysctl_kmaps() 11353 sva = rounddown2(sva, NBPDP); in sysctl_kmaps() 11374 sva = rounddown2(sva, NBPDR); in sysctl_kmaps() 11381 sva = rounddown2(sva, NBPDR); in sysctl_kmaps()
|
| /f-stack/freebsd/mips/mips/ |
| H A D | trap.c | 1557 if (!useracc((void *)rounddown2((vm_offset_t)addr, size), size * 2, mode)) in mips_unaligned_load_store()
|
| /f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | zfs_vnops_os.c | 330 end = rounddown2(off + nbytes, DEV_BSIZE); in page_busy()
|