Home
last modified time | relevance | path

Searched refs:rounddown (Results 1 – 25 of 66) sorted by relevance

123

/freebsd/sys/powerpc/fpu/
H A Dfpu_implode.c96 goto rounddown; in round()
110 goto rounddown; in round()
113 goto rounddown; in round()
117 goto rounddown; in round()
123 goto rounddown; in round()
129 goto rounddown; in round()
145 rounddown: in round()
/freebsd/sys/riscv/thead/
H A Dthead.c58 register vm_offset_t t0 __asm("t0") = rounddown(va, dcache_line_size); in thead_cpu_dcache_wbinv_range()
70 register vm_offset_t t0 __asm("t0") = rounddown(va, dcache_line_size); in thead_cpu_dcache_inv_range()
82 register vm_offset_t t0 __asm("t0") = rounddown(va, dcache_line_size); in thead_cpu_dcache_wb_range()
/freebsd/tools/build/cross-build/include/common/sys/
H A Dparam.h74 #ifndef rounddown
75 #define rounddown(x, y) (((x) / (y)) * (y)) macro
/freebsd/sbin/fdisk/
H A Dfdisk.c394 partp->dp_size = rounddown(disksecs, dos_cylsecs) - in main()
553 partp->dp_size = rounddown(disksecs, dos_cylsecs) - start; in init_sector0()
1167 prev_head_boundary = rounddown(partp->dp_start, in process_partition()
1182 partp->dp_size = rounddown(disksecs, dos_cylsecs) - in process_partition()
1189 prev_cyl_boundary = rounddown(partp->dp_start + partp->dp_size, in process_partition()
1214 prev_head_boundary = rounddown(partp->dp_start, dos_sectors); in process_partition()
1238 prev_cyl_boundary = rounddown(partp->dp_start + partp->dp_size, in process_partition()
1430 prev_head_boundary = rounddown(start, dos_sectors); in sanitize_partition()
1447 prev_cyl_boundary = rounddown(start + size, dos_cylsecs); in sanitize_partition()
/freebsd/sys/crypto/openssl/
H A Dossl_chacha20.c103 todo = rounddown(MIN(resid, MIN(inlen, outlen)), in ossl_chacha20()
231 todo = rounddown(MIN(resid, MIN(inlen, outlen)), in ossl_chacha20_poly1305_encrypt()
400 todo = rounddown(MIN(resid, MIN(inlen, outlen)), in ossl_chacha20_poly1305_decrypt()
H A Dossl_aes.c144 seglen = rounddown(MIN(plen, MIN(inlen, outlen)), blocklen); in ossl_aes_cbc()
/freebsd/tools/boot/smbios/
H A Dmain.c44 pa2 = rounddown(pa, PAGE); in ptov()
/freebsd/sys/vm/
H A Dphys_pager.c237 base = rounddown(pidx, phys_pager_cluster); in default_phys_pager_populate()
282 base = rounddown(pindex, phys_pager_cluster); in default_phys_pager_haspage()
H A Dswap_pager.c546 rounddown(pindex, SWAP_META_PAGES))); in swblk_lookup()
565 rounddown(pindex, SWAP_META_PAGES))); in swblk_iter_lookup_ge()
591 rounddown(pindex, SWAP_META_PAGES))); in swblk_iter_reinit()
614 rounddown(pindex, SWAP_META_PAGES))); in swblk_iter_lookup()
2188 sb->p = rounddown(pindex, SWAP_META_PAGES); in swp_pager_meta_build()
2250 MPASS(sb->p == rounddown(pindex, SWAP_META_PAGES)); in swp_pager_meta_build()
/freebsd/usr.bin/truncate/tests/
H A Dtruncate_test.sh401 atf_test_case rounddown
460 atf_add_test_case rounddown
/freebsd/sys/sys/
H A Dgmon.h148 #define ROUNDDOWN(x,y) rounddown(x,y)
H A Dparam.h314 #define rounddown(x, y) (((x)/(y))*(y)) macro
/freebsd/sys/dev/random/
H A Dfortuna.c590 chunk_size = rounddown(chunk_size, RANDOM_BLOCKSIZE); in random_fortuna_genbytes()
633 chunk_size = rounddown(bytecount, in random_fortuna_genbytes()
H A Dhash.c156 rounddown((size_t)UINT32_MAX, CHACHA_BLOCKLEN)); in randomdev_keystream()
/freebsd/sys/dev/qat/qat_common/
H A Dadf_gen4_timer.c22 return rounddown(jiffies + timeout, timeout); in adf_get_next_timeout()
/freebsd/sbin/growfs/
H A Dgrowfs.c506 for (f = rounddown(frag, sblock.fs_frag); in frag_adjust()
676 k = rounddown(osblock.fs_size - cbase, in updjcg()
687 (i >= rounddown(osblock.fs_size - cbase, in updjcg()
712 (i >= rounddown(osblock.fs_size - cbase, in updjcg()
933 for (d = rounddown(d, sblock.fs_frag); d >= osblock.fs_csaddr; in updcsloc()
/freebsd/lib/libc/gen/
H A Dgetutxent.c83 rounddown(BUFSIZ, sizeof(struct futx))); in setutxdb()
/freebsd/sys/libkern/
H A Dgsb_crc32.c688 running_length = rounddown(length - init_bytes, 8); in crc32c_sb8_64_bit()
/freebsd/sys/dev/random/fenestrasX/
H A Dfx_rng.c70 rounddown((size_t)UINT32_MAX, CHACHA_BLOCKLEN)); in fxrng_rng_keystream_internal()
/freebsd/sys/dev/firewire/
H A Dfwdma.c159 ssize = rounddown(PAGE_SIZE, esize); in fwdma_malloc_multiseg()
/freebsd/sys/ddb/
H A Ddb_output.c74 #define NEXT_TAB(i) rounddown((i) + db_tab_stop_width, db_tab_stop_width)
/freebsd/sbin/recoverdisk/
H A Drecoverdisk.c489 bigsize = rounddown(bigsize, sectorsize); in main()
504 medsize = rounddown(medsize, minsize); in main()
/freebsd/sys/dev/syscons/
H A Dscmouse.c499 rounddown(scp->mouse_pos, scp->xsize) + i; in mouse_cut_start()
544 sol = rounddown(scp->mouse_pos, scp->xsize); in mouse_cut_word()
593 from = rounddown(scp->mouse_pos, scp->xsize); in mouse_cut_line()
/freebsd/usr.sbin/quot/
H A Dquot.c145 last = rounddown(ino, INOCNT(super)); in get_inode()
417 fp->fsz_first = rounddown(ksz, FSZCNT); in dofsizes()
/freebsd/lib/msun/tests/
H A Dcsqrt_test.c269 mantdig = rounddown(mantdig, 2); in test_precision()

123