Home
last modified time | relevance | path

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

12

/f-stack/tools/compat/
H A Dcompat.h44 #ifndef rounddown
45 #define rounddown(x, y) (((x)/(y))*(y)) macro
/f-stack/freebsd/vm/
H A Dphys_pager.c239 base = rounddown(pidx, phys_pager_cluster); in default_phys_pager_populate()
284 base = rounddown(pindex, phys_pager_cluster); in default_phys_pager_haspage()
H A Dswap_pager.c1202 rounddown(m->pindex, SWAP_META_PAGES)); in swap_pager_unswapped()
2020 rdpi = rounddown(pindex, SWAP_META_PAGES); in swp_pager_meta_build()
2129 rounddown(pindex, SWAP_META_PAGES)); in swp_pager_meta_transfer()
2232 rounddown(pindex, SWAP_META_PAGES)); in swp_pager_meta_lookup()
2256 rounddown(pindex, SWAP_META_PAGES)); in swap_pager_find_least()
/f-stack/freebsd/sys/
H A Dgmon.h151 #define ROUNDDOWN(x,y) rounddown(x,y)
H A Dparam.h307 #define rounddown(x, y) (((x)/(y))*(y)) macro
/f-stack/freebsd/libkern/
H A Dgsb_crc32.c687 running_length = rounddown(length - init_bytes, 8); in crc32c_sb8_64_bit()
/f-stack/freebsd/amd64/cloudabi64/
H A Dcloudabi64_sysvec.c171 tcbptr = rounddown(attr->stack + attr->stack_len - sizeof(tcbptr), in cloudabi64_thread_setregs()
/f-stack/freebsd/ddb/
H A Ddb_output.c76 #define NEXT_TAB(i) rounddown((i) + db_tab_stop_width, db_tab_stop_width)
/f-stack/freebsd/mips/atheros/
H A Dqca955x_chip.c372 reg = QCA955X_GPIO_REG_OUT_FUNC0 + rounddown(gpio, 4); in qca955x_chip_gpio_output_configure()
H A Dqca953x_chip.c363 reg = QCA953X_GPIO_REG_OUT_FUNC0 + rounddown(gpio, 4); in qca953x_chip_gpio_output_configure()
H A Dar934x_chip.c445 reg = AR934X_GPIO_REG_OUT_FUNC0 + rounddown(gpio, 4); in ar934x_chip_gpio_output_configure()
/f-stack/freebsd/arm64/nvidia/tegra210/
H A Dtegra210_cpufreq.c173 #define ROUND_DOWN(val, div) rounddown(val, div)
/f-stack/freebsd/opencrypto/
H A Dcryptosoft.c421 len = rounddown(MIN(len, resid), blksz); in swcr_gmac()
507 len = rounddown(crp->crp_aad_length, blksz); in swcr_gcm()
524 len = rounddown(MIN(len, resid), blksz); in swcr_gcm()
H A Dcriov.c187 skip -= rounddown(skip, PAGE_SIZE); in cvm_page_contiguous_segment()
/f-stack/freebsd/arm/nvidia/tegra124/
H A Dtegra124_cpufreq.c216 #define ROUND_DOWN(val, div) rounddown(val, div)
/f-stack/freebsd/amd64/include/
H A Dpmap.h241 #define DMPML4I rounddown(KPML4BASE-NDMPML4E, NDMPML4E) /* Below KVM */
/f-stack/freebsd/kern/
H A Dsubr_compressor.c361 bytes_to_dump = rounddown(s->zst_outbuffer.pos, 4096); in zst_flush_intermediate()
H A Dsys_generic.c1047 addr += rounddown(b, sizeof(fd_mask)) + in select_check_badfd()
1050 addr += rounddown(b, sizeof(uint32_t)) + in select_check_badfd()
H A Dvfs_default.c1117 bstart = rounddown(ap->a_start, bsize); in vop_stdadvise()
H A Dkern_shutdown.c1465 rlength = rounddown(length, di->blocksize); in kerneldumpcomp_write_cb()
H A Dvfs_vnops.c3128 len = savlen = rounddown(len - rem, blksize) + rem; in vn_generic_copy_file_range()
/f-stack/dpdk/drivers/net/hns3/
H A Dhns3_ethdev.h833 #define rounddown(x, y) ((x) - ((x) % (y))) macro
H A Dhns3_ethdev.c3420 shared_buf = rounddown(rx_all - rx_priv, HNS3_BUF_SIZE_UNIT); in hns3_is_rx_buf_ok()
3444 hi_thrd = rounddown(hi_thrd, HNS3_BUF_SIZE_UNIT); in hns3_is_rx_buf_ok()
3605 rx_priv = rounddown(rx_priv, HNS3_BUF_SIZE_UNIT); in hns3_only_alloc_priv_buff()
/f-stack/freebsd/arm/broadcom/bcm2835/
H A Dbcm2835_sdhci.c88 rounddown(BCM_SDHCI_SLOT_LEFT(slot), BCM_SDHCI_BUFFER_SIZE))
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vnops_os.c4052 rounddown(start, blksz), in zfs_getpages()
4053 roundup(end, blksz) - rounddown(start, blksz), RL_READER); in zfs_getpages()
4083 pgsin_b = OFF_TO_IDX(start - rounddown(start, blksz)); in zfs_getpages()
4176 lo_off = rounddown(off, blksz); in zfs_putpages()

12