Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmmap_seek.c133 seek_hole(fd, 0, P2ROUNDUP(file_size / 2, block_size)); in main()
134 seek_hole(fd, block_size, P2ROUNDUP(file_size / 2, block_size)); in main()
140 P2ROUNDUP(file_size * 3 / 4, block_size)); in main()
/freebsd/sys/contrib/openzfs/module/nvpair/
H A Dnvpair_alloc_fixed.c52 nvbuf_t *nvb = (nvbuf_t *)P2ROUNDUP(base, sizeof (uintptr_t)); in nv_fixed_init()
74 nvb->nvb_cur = P2ROUNDUP(new + size, sizeof (uintptr_t)); in nv_fixed_alloc()
/freebsd/sys/contrib/openzfs/lib/libspl/
H A Dthread.c90 stksize = P2ROUNDUP(MAX(stksize, TS_STACK_MIN), PAGESIZE); in zk_thread_create()
/freebsd/sys/contrib/openzfs/lib/libzpool/
H A Dabd_os.c49 return (P2ROUNDUP(size, ABD_PAGESIZE) / ABD_PAGESIZE); in abd_iovcnt_for_bytes()
130 int waste = P2ROUNDUP(abd->abd_size, ABD_PAGESIZE) - abd->abd_size; in abd_update_scatter_stats()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddmu_zfetch.c726 ipf_start = P2ROUNDUP(ipf_start, 1 << epbs) >> epbs; in dmu_zfetch_prepare()
727 ipf_end = P2ROUNDUP(end_blkid, 1 << epbs) >> epbs; in dmu_zfetch_prepare()
778 ipf_start = P2ROUNDUP(ipf_start, 1 << epbs) >> epbs; in dmu_zfetch_run()
779 ipf_end = P2ROUNDUP(ipf_end, 1 << epbs) >> epbs; in dmu_zfetch_run()
H A Dsa.c576 *total = P2ROUNDUP(*total, 8); in sa_find_sizes()
599 (*total + P2ROUNDUP(tmp_hdrsize, 8)) > in sa_find_sizes()
630 if ((*total + P2ROUNDUP(hdrsize, 8)) > full_space && in sa_find_sizes()
638 hdrsize = P2ROUNDUP(hdrsize, 8); in sa_find_sizes()
759 data_start = (void *)P2ROUNDUP(((uintptr_t)data_start + in sa_build_layouts()
1187 data_start = (void *)P2ROUNDUP(((uintptr_t)hdr + in sa_attr_iter()
1212 data_start = (void *)P2ROUNDUP(((uintptr_t)data_start + in sa_attr_iter()
H A Ddmu_object.c209 object = P2ROUNDUP(object + 1, DNODES_PER_BLOCK); in dmu_object_alloc_impl()
H A Ddmu.c510 nblks = (P2ROUNDUP(offset + length, 1ULL << blkshift) - in dmu_buf_hold_array_by_dnode()
834 uint_t limit = P2ROUNDUP(cap, 1 << bs) >> bs; in dmu_prefetch_by_dnode_impl()
841 limit = P2ROUNDUP(cap, 1 << ibs) >> ibs; in dmu_prefetch_by_dnode_impl()
846 start2 = P2ROUNDUP(start2, 1 << ibps) >> ibps; in dmu_prefetch_by_dnode_impl()
847 end2 = P2ROUNDUP(end2, 1 << ibps) >> ibps; in dmu_prefetch_by_dnode_impl()
H A Dzap_micro.c66 P2ROUNDUP(zap_micro_max_size, SPA_MINBLOCKSIZE)); in zap_get_micro_max_size()
H A Dvdev_mirror.c963 uint64_t psize = MIN(P2ROUNDUP(max_segment, 1 << vd->vdev_ashift), in vdev_mirror_rebuild_asize()
/freebsd/sys/contrib/openzfs/lib/libspl/include/sys/
H A Dsysmacros.h67 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) macro
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dccompile.h131 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) macro
H A Dsysmacros.h208 #define P2ROUNDUP(x, align) (-(-(x) & -(align))) macro
/freebsd/sys/contrib/openzfs/cmd/zstream/
H A Dzstream_util.c211 rounded = P2ROUNDUP(csize, SPA_MINBLOCKSIZE); in compress_buffer()
H A Dzstream_raw.c218 uint64_t start = P2ROUNDUP(offset, sectorsize); in free_blocks()
H A Dzstream_io.c192 return (round ? P2ROUNDUP(size, 8) : size); in calc_payload_size()
H A Dzstream_queue.c335 size_t qpis_rounded = P2ROUNDUP(params->qp_item_size, in zstream_queue_create()
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dsysmacros.h163 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) macro
/freebsd/sys/contrib/openzfs/include/sys/
H A Dsa_impl.h259 (tb->lot_var_sizes > 1 ? P2ROUNDUP((tb->lot_var_sizes - 1) * \
H A Dzfs_ioctl.h222 (drro)->drr_raw_bonuslen : P2ROUNDUP((drro)->drr_bonuslen, 8))
/freebsd/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dsysmacros.h272 #define P2ROUNDUP(x, align) (-(-(x) & -(align))) macro
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_cg.c168 size = clp2(P2ROUNDUP(e.cte_bits, NBBY) / NBBY); in dt_cg_load()
270 shift = clp2(P2ROUNDUP(e.cte_bits, NBBY) / NBBY) * NBBY - in dt_cg_field_get()
284 shift = clp2(P2ROUNDUP(e.cte_bits, NBBY) / NBBY) * NBBY - in dt_cg_field_get()
371 shift = clp2(P2ROUNDUP(e.cte_bits, NBBY) / NBBY) * NBBY - in dt_cg_field_set()
419 size = clp2(P2ROUNDUP(e.cte_bits, NBBY) / NBBY); in dt_cg_store()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dabd_os.c195 return (P2ROUNDUP(size, PAGESIZE) / PAGESIZE); in abd_chunkcnt_for_bytes()
520 int waste = P2ROUNDUP(abd->abd_size, PAGESIZE) - abd->abd_size; in abd_update_scatter_stats()
/freebsd/sys/cddl/dev/dtrace/i386/
H A Ddtrace_isa.c
/freebsd/sys/contrib/openzfs/module/zstd/
H A Dzfs_zstd.c876 P2ROUNDUP(ZSTD_estimateDCtxSize() + sizeof (struct zstd_kmem), in zstd_meminit()

12