Home
last modified time | relevance | path

Searched refs:P2ROUNDUP (Results 1 – 25 of 47) 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.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()
/freebsd/sys/contrib/openzfs/cmd/zstream/
H A Dzstream_recompress.c294 P2ROUNDUP(csize, SPA_MINBLOCKSIZE); in zstream_do_recompress()
322 P2ROUNDUP((uint64_t)drrwe->drr_psize, 8); in zstream_do_recompress()
H A Dzstream_dump.c705 P2ROUNDUP(drrwe->drr_psize, 8), &zc); in zstream_do_dump()
708 P2ROUNDUP(drrwe->drr_psize, 8)); in zstream_do_dump()
710 payload_size = P2ROUNDUP(drrwe->drr_psize, 8); in zstream_do_dump()
H A Dzstream_decompress.c338 P2ROUNDUP((uint64_t)drrwe->drr_psize, 8); in zstream_do_decompress()
H A Dzstream_redup.c362 P2ROUNDUP((uint64_t)drrwe->drr_psize, 8); in zfs_redup_stream()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddmu_zfetch.c674 ipf_start = P2ROUNDUP(ipf_start, 1 << epbs) >> epbs; in dmu_zfetch_prepare()
675 ipf_end = P2ROUNDUP(end_blkid, 1 << epbs) >> epbs; in dmu_zfetch_prepare()
726 ipf_start = P2ROUNDUP(ipf_start, 1 << epbs) >> epbs; in dmu_zfetch_run()
727 ipf_end = P2ROUNDUP(ipf_end, 1 << epbs) >> epbs; in dmu_zfetch_run()
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()
1196 data_start = (void *)P2ROUNDUP(((uintptr_t)hdr + in sa_attr_iter()
1221 data_start = (void *)P2ROUNDUP(((uintptr_t)data_start + in sa_attr_iter()
H A Ddmu.c543 nblks = (P2ROUNDUP(offset + length, 1ULL << blkshift) - in dmu_buf_hold_array_by_dnode()
764 uint_t limit = P2ROUNDUP(dmu_prefetch_max, 1 << bs) >> bs; in dmu_prefetch_by_dnode()
771 limit = P2ROUNDUP(dmu_prefetch_max, 1 << ibs) >> ibs; in dmu_prefetch_by_dnode()
774 start2 = P2ROUNDUP(start2, 1 << ibps) >> ibps; in dmu_prefetch_by_dnode()
775 end2 = P2ROUNDUP(end2, 1 << ibps) >> ibps; in dmu_prefetch_by_dnode()
H A Ddmu_object.c218 object = P2ROUNDUP(object + 1, DNODES_PER_BLOCK); in dmu_object_alloc_impl()
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/libzpool/
H A Dabd_os.c58 return (P2ROUNDUP(size, ABD_PAGESIZE) / ABD_PAGESIZE); in abd_iovcnt_for_bytes()
139 int waste = P2ROUNDUP(abd->abd_size, ABD_PAGESIZE) - abd->abd_size; in abd_update_scatter_stats()
H A Dkernel.c129 stksize = P2ROUNDUP(MAX(stksize, TS_STACK_MIN), PAGESIZE); in zk_thread_create()
/freebsd/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/
H A Dsysmacros.h58 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) macro
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dccompile.h144 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) macro
H A Dsysmacros.h217 #define P2ROUNDUP(x, align) (-(-(x) & -(align))) macro
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dsysmacros.h165 #define P2ROUNDUP(x, align) ((((x) - 1) | ((align) - 1)) + 1) macro
/freebsd/sys/contrib/openzfs/include/sys/
H A Dsa_impl.h268 (tb->lot_var_sizes > 1 ? P2ROUNDUP((tb->lot_var_sizes - 1) * \
H A Dzfs_ioctl.h231 (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.c203 return (P2ROUNDUP(size, PAGESIZE) / PAGESIZE); in abd_chunkcnt_for_bytes()
532 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.c902 P2ROUNDUP(ZSTD_estimateDCtxSize() + sizeof (struct zstd_kmem), in zstd_meminit()
/freebsd/sys/cddl/contrib/opensolaris/uts/common/dtrace/
H A Ddtrace.c2155 ksize += P2ROUNDUP(key[i].dttk_size, sizeof (uint64_t)); in dtrace_dynvar()
2303 kdata += P2ROUNDUP(kesize, sizeof (uint64_t)); in dtrace_dynvar()
4474 uintptr_t dest = P2ROUNDUP(mstate->dtms_scratch_ptr, 8);
6039 uintptr_t *memref = (uintptr_t *) P2ROUNDUP(mstate->dtms_scratch_ptr, sizeof(uintptr_t));
6808 uintptr_t ptr = P2ROUNDUP(mstate->dtms_scratch_ptr, 8);
7121 fps = (uint64_t *)P2ROUNDUP(mstate->dtms_scratch_ptr, 8);
10584 ksize += P2ROUNDUP(key[i].dttk_size, sizeof (uint64_t));
10611 size = P2ROUNDUP(size, sizeof (uint64_t));
11232 curneeded = P2ROUNDUP(curneeded, rec->dtrd_alignment);
11258 curneeded = P2ROUNDUP(curneeded, rec->dtrd_alignment);
[all …]

12