Home
last modified time | relevance | path

Searched refs:rounddown2 (Results 1 – 25 of 69) sorted by relevance

123

/freebsd-14.2/tools/build/cross-build/include/common/sys/
H A Dparam.h77 #ifndef rounddown2
78 #define rounddown2(x, y) ((x) & (~((y)-1))) /* if y is power of two */ macro
/freebsd-14.2/sys/crypto/
H A Dchacha20_poly1305.c58 todo = rounddown2(resid, CHACHA20_NATIVE_BLOCK_LEN); in chacha20_poly1305_encrypt()
124 todo = rounddown2(resid, CHACHA20_NATIVE_BLOCK_LEN); in chacha20_poly1305_decrypt()
161 todo = rounddown2(resid, CHACHA20_NATIVE_BLOCK_LEN); in xchacha20_poly1305_encrypt()
227 todo = rounddown2(resid, CHACHA20_NATIVE_BLOCK_LEN); in xchacha20_poly1305_decrypt()
/freebsd-14.2/stand/uboot/
H A Dcopy.c101 subldr = rounddown2((uintptr_t)_start, KERN_ALIGN); in uboot_loadaddr()
108 eblock = rounddown2((uint64_t)si->mr[i].start + in uboot_loadaddr()
/freebsd-14.2/stand/arm64/libarm64/
H A Dcache.c95 addr = rounddown2(addr, cl_size); in cpu_flush_dcache()
/freebsd-14.2/sys/opencrypto/
H A Dcryptosoft.c183 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), blksz); in swcr_encdec()
441 inlen = rounddown2(crp->crp_aad_length, blksz); in swcr_gcm()
457 inlen = rounddown2(MIN(inlen, resid), blksz); in swcr_gcm()
501 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), in swcr_gcm()
516 todo = rounddown2(MIN(resid, inlen), blksz); in swcr_gcm()
580 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), in swcr_gcm()
831 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), in swcr_ccm()
917 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), in swcr_ccm()
1040 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), in swcr_chacha20_poly1305()
1121 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), in swcr_chacha20_poly1305()
/freebsd-14.2/stand/kboot/kboot/
H A Dmain.c475 sz = MIN(sz, rounddown2(mem_avail * 45 / 100, SEGALIGN)); in get_phys_buffer()
479 rounddown2((commit_limit - committed_as) * 95 / 100, SEGALIGN)); in get_phys_buffer()
485 loaded_segments[nkexec_segments].mem = (void *)rounddown2(dest,SEGALIGN); in get_phys_buffer()
/freebsd-14.2/sys/compat/linux/
H A Dlinux_elf.c349 destp = rounddown2(destp, sizeof(void *)); in __linuxN()
371 destp = rounddown2(destp, sizeof(void *)); in __linuxN()
380 destp = rounddown2(destp, sizeof(void *)); in __linuxN()
/freebsd-14.2/sys/dev/agp/
H A Dagp_nvidia.c212 sc->pg_offset = rounddown2(apbase & (64 * 1024 * 1024 - 1), in agp_nvidia_attach()
406 mask = (0xfULL << 32) | rounddown2(0xfffff000, size) | 0x800; in nvidia_init_iorr()
/freebsd-14.2/tools/test/stress2/misc/
H A Dcollapse.sh109 off = rounddown2(arc4random() % ADRSPACE, PAGE_SIZE);
/freebsd-14.2/sys/kern/
H A Dkern_exec.c1246 stack_top -= rounddown2(stack_off & PAGE_MASK, sizeof(void *)); in exec_map_stack()
1678 destp = rounddown2(destp, sizeof(void *)); in exec_copyout_strings()
1690 destp = rounddown2(destp, sizeof(void *)); in exec_copyout_strings()
1713 destp = rounddown2(destp, sizeof(void *)); in exec_copyout_strings()
1723 destp = rounddown2(destp, sizeof(void *)); in exec_copyout_strings()
1732 destp = rounddown2(destp, sizeof(void *)); in exec_copyout_strings()
/freebsd-14.2/sys/sys/
H A Dparam.h325 #define rounddown2(x, y) __align_down(x, y) /* if y is power of two */ macro
/freebsd-14.2/sys/dev/hyperv/hvsock/
H A Dhv_sock.c1387 "%s: available size is %u\n", __func__, rounddown2(ret, 8)); in hvsock_canwrite_check()
1389 return (rounddown2(ret, 8)); in hvsock_canwrite_check()
1412 sndbuf = rounddown2(sndbuf, PAGE_SIZE); in hvsock_open_channel()
1415 rcvbuf = rounddown2(rcvbuf, PAGE_SIZE); in hvsock_open_channel()
/freebsd-14.2/libexec/rtld-elf/
H A Drtld_malloc.c306 offset = (uintptr_t)pagepool_start - rounddown2( in morepages()
/freebsd-14.2/stand/libsa/geli/
H A Dgelidev.c133 alnstart = rounddown2(reqstart, (int)gdesc->gdev->md.md_sectorsize); in geli_dev_strategy()
H A Dgeliboot.c153 alignsector = rounddown2(lastsector * DEV_BSIZE, DEV_GELIBOOT_BSIZE); in geli_taste()
/freebsd-14.2/sys/amd64/linux32/
H A Dlinux32_sysvec.c633 destp = rounddown2(destp, sizeof(uint32_t)); in linux_copyout_strings()
650 destp = rounddown2(destp, sizeof(uint32_t)); in linux_copyout_strings()
659 destp = rounddown2(destp, sizeof(uint32_t)); in linux_copyout_strings()
/freebsd-14.2/sys/dev/usb/
H A Dusb_busdma.c460 pg->physaddr = rounddown2(segs->ds_addr, USB_PAGE_SIZE); in usb_pc_common_mem_cb()
495 pg->physaddr = rounddown2(segs->ds_addr + off, USB_PAGE_SIZE); in usb_pc_common_mem_cb()
/freebsd-14.2/usr.sbin/makefs/
H A Dzfs.c153 vdevsize = rounddown2(fsopts->maxsize, 1 << zfs->ashift); in zfs_size_vdev()
189 vdevsize1 = rounddown2(asize, mssize) + VDEV_LABEL_SPACE; in zfs_size_vdev()
/freebsd-14.2/sys/geom/part/
H A Dg_part_bsd64.c451 rounddown2(pp->mediasize - table->d_bbase * pp->sectorsize, in g_part_bsd64_resize()
480 v = rounddown2(pp->sectorsize + offsetof(struct disklabel64, d_magic), in g_part_bsd64_probe()
/freebsd-14.2/sys/compat/linuxkpi/common/include/linux/
H A Dkernel.h125 #define ALIGN_DOWN(x, y) rounddown2(x, y)
/freebsd-14.2/usr.sbin/bhyve/amd64/
H A De820.c357 address = rounddown2(end - length, alignment); in e820_alloc_highest()
/freebsd-14.2/sys/geom/bde/
H A Dg_bde_crypt.c312 ko = rounddown2(kp->lsector[u], (uint64_t)kp->sectorsize); in g_bde_map_sector()
/freebsd-14.2/sys/ufs/ufs/
H A Dufs_lookup.c560 dp->i_diroff = rounddown2(i_offset, DIRBLKSIZ); in ufs_lookup_ino()
1064 rounddown2(I_OFFSET(dp), DIRBLKSIZ)); in ufs_direnter()
1192 rounddown2(I_OFFSET(dp), DIRBLKSIZ)); in ufs_dirremove()
/freebsd-14.2/lib/libkvm/
H A Dkvm_minidump_aarch64.c49 #define aarch64_trunc_page(x, size) rounddown2((kvaddr_t)(x), size)
/freebsd-14.2/stand/efi/loader/
H A Dcopy.c407 addr = rounddown2(addr, M(2)); in efi_check_space()

123