Home
last modified time | relevance | path

Searched refs:P2ROUNDUP (Results 1 – 25 of 33) sorted by relevance

12

/f-stack/freebsd/contrib/openzfs/module/nvpair/
H A Dnvpair_alloc_fixed.c61 nvbuf_t *nvb = (nvbuf_t *)P2ROUNDUP(base, sizeof (uintptr_t)); in nv_fixed_init()
83 nvb->nvb_cur = P2ROUNDUP(new + size, sizeof (uintptr_t)); in nv_fixed_alloc()
/f-stack/freebsd/contrib/openzfs/lib/libspl/include/os/linux/sys/
H A Dsysmacros.h57 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) macro
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Ddmu_zfetch.c415 ipf_istart = P2ROUNDUP(ipf_start, 1 << epbs) >> epbs; in dmu_zfetch()
416 ipf_iend = P2ROUNDUP(zs->zs_ipf_blkid, 1 << epbs) >> epbs; in dmu_zfetch()
H A Dsa.c585 *total = P2ROUNDUP(*total, 8); in sa_find_sizes()
608 (*total + P2ROUNDUP(tmp_hdrsize, 8)) > in sa_find_sizes()
639 if ((*total + P2ROUNDUP(hdrsize, 8)) > full_space && in sa_find_sizes()
647 hdrsize = P2ROUNDUP(hdrsize, 8); in sa_find_sizes()
768 data_start = (void *)P2ROUNDUP(((uintptr_t)data_start + in sa_build_layouts()
1192 data_start = (void *)P2ROUNDUP(((uintptr_t)hdr + in sa_attr_iter()
1216 data_start = (void *)P2ROUNDUP(((uintptr_t)data_start + in sa_attr_iter()
H A Dvdev_cache.c337 uint64_t max_offset = P2ROUNDUP(io_end, VCBS); in vdev_cache_write()
H A Ddmu_object.c218 object = P2ROUNDUP(object + 1, DNODES_PER_BLOCK); in dmu_object_alloc_impl()
H A Dvdev_mirror.c875 uint64_t psize = MIN(P2ROUNDUP(max_segment, 1 << vd->vdev_ashift), in vdev_mirror_rebuild_asize()
H A Dvdev_removal.c1354 thismax = P2ROUNDUP(attempted / 2, in spa_vdev_copy_impl()
1387 return (P2ROUNDUP(zfs_remove_max_segment, 1 << spa->spa_max_ashift)); in spa_remove_max_segment()
H A Ddnode.c587 blocksize = P2ROUNDUP(blocksize, SPA_MINBLOCKSIZE); in dnode_allocate()
1749 size = P2ROUNDUP(size, SPA_MINBLOCKSIZE); in dnode_set_blksz()
H A Ddmu_send.c582 if (dump_record(dscp, buf, P2ROUNDUP(drrw->drr_psize, 8)) != 0) in dump_write_embedded()
741 bonuslen = P2ROUNDUP(dnp->dn_bonuslen, 8); in dump_dnode()
H A Dzio.c2878 lsize = P2ROUNDUP(resid / (SPA_GBH_NBLKPTRS - g), in zio_write_gang_block()
3729 uint64_t asize = P2ROUNDUP(zio->io_size, align); in zio_vdev_io_start()
4544 uint64_t asize = P2ROUNDUP(psize, align); in zio_done()
/f-stack/freebsd/contrib/openzfs/cmd/zstream/
H A Dzstream_dump.c692 P2ROUNDUP(drrwe->drr_psize, 8), &zc); in zstream_do_dump()
695 P2ROUNDUP(drrwe->drr_psize, 8)); in zstream_do_dump()
697 payload_size = P2ROUNDUP(drrwe->drr_psize, 8); in zstream_do_dump()
H A Dzstream_redup.c350 P2ROUNDUP((uint64_t)drrwe->drr_psize, 8); in zfs_redup_stream()
/f-stack/freebsd/contrib/openzfs/include/os/linux/spl/sys/
H A Dsysmacros.h155 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) macro
/f-stack/freebsd/contrib/openzfs/include/sys/
H A Dsa_impl.h268 (tb->lot_var_sizes > 1 ? P2ROUNDUP((tb->lot_var_sizes - 1) * \
H A Dzfs_ioctl.h224 (drro)->drr_raw_bonuslen : P2ROUNDUP((drro)->drr_bonuslen, 8))
/f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dccompile.h238 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) macro
H A Dsysmacros.h216 #define P2ROUNDUP(x, align) (-(-(x) & -(align))) macro
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dabd_os.c112 return (P2ROUNDUP(size, zfs_abd_chunk_size) / zfs_abd_chunk_size); in abd_chunkcnt_for_bytes()
/f-stack/freebsd/contrib/openzfs/module/os/linux/zfs/
H A Dabd_os.c184 return (P2ROUNDUP(size, PAGESIZE) / PAGESIZE); in abd_chunkcnt_for_bytes()
635 int waste = P2ROUNDUP(abd->abd_size, PAGESIZE) - abd->abd_size; in abd_update_scatter_stats()
H A Dzvol_os.c207 start = P2ROUNDUP(start, zv->zv_volblocksize); in zvol_discard()
H A Dzfs_vfsops.c1124 refdbytes = P2ROUNDUP(refdbytes, statp->f_bsize); in zfs_statvfs()
/f-stack/freebsd/contrib/openzfs/module/zstd/
H A Dzfs_zstd.c681 P2ROUNDUP(ZSTD_estimateDCtxSize() + sizeof (struct zstd_kmem), in zstd_meminit()
/f-stack/freebsd/contrib/openzfs/lib/libzpool/
H A Dkernel.c111 stksize = P2ROUNDUP(MAX(stksize, TS_STACK_MIN), PAGESIZE); in zk_thread_create()
/f-stack/freebsd/contrib/openzfs/cmd/ztest/
H A Dztest.c7572 hdr = (void *)mmap(0, P2ROUNDUP(sizeof (*hdr), getpagesize()), in setup_hdr()
7589 (void) munmap((caddr_t)hdr, P2ROUNDUP(sizeof (*hdr), getpagesize())); in setup_hdr()
7599 hdr = (void *)mmap(0, P2ROUNDUP(sizeof (*hdr), getpagesize()), in setup_data()
7605 (void) munmap((caddr_t)hdr, P2ROUNDUP(sizeof (*hdr), getpagesize())); in setup_data()
7606 hdr = ztest_shared_hdr = (void *)mmap(0, P2ROUNDUP(size, getpagesize()), in setup_data()

12