Searched refs:P2ALIGN (Results 1 – 12 of 12) sorted by relevance
| /freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| H A D | vdev_cache.c | 172 uint64_t offset = P2ALIGN(zio->io_offset, VCBS); in vdev_cache_allocate() 269 uint64_t cache_offset = P2ALIGN(zio->io_offset, VCBS); in vdev_cache_read() 348 uint64_t min_offset = P2ALIGN(io_start, VCBS); in vdev_cache_write()
|
| H A D | vdev.c | 366 return (P2ALIGN(vd->vdev_asize, 1ULL << vd->vdev_ms_shift)); in vdev_get_min_asize() 1640 osize = P2ALIGN(osize, (uint64_t)sizeof (vdev_label_t)); in vdev_open() 1641 max_osize = P2ALIGN(max_osize, (uint64_t)sizeof (vdev_label_t)); in vdev_open() 3663 vs->vs_esize = P2ALIGN(vd->vdev_max_asize - vd->vdev_asize - in vdev_get_stats()
|
| H A D | vdev_geom.c | 463 psize = P2ALIGN(psize, (uint64_t)sizeof(vdev_label_t)); in vdev_geom_read_config()
|
| H A D | dmu.c | 476 P2ALIGN(offset, 1ULL << blkshift)) >> blkshift; in dmu_buf_hold_array_by_dnode() 726 *start = P2ALIGN(*start, iblkrange); in get_next_chunk()
|
| H A D | zvol.c | 1376 offset = P2ALIGN(offset, size);
|
| H A D | metaslab.c | 540 space += P2ALIGN(tspace, 1ULL << tvd->vdev_ms_shift); in metaslab_class_expandable_space()
|
| H A D | zfs_vnops.c | 777 nblk = (P2ROUNDUP(offset + n, blksz) - P2ALIGN(offset, in zfs_read()
|
| /freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/sys/ |
| H A D | sysmacros.h | 243 #define P2ALIGN(x, align) ((x) & -(align)) macro
|
| /freebsd-12.1/sys/cddl/boot/zfs/ |
| H A D | zfsimpl.h | 75 #define P2ALIGN(x, align) ((x) & -(align)) macro
|
| /freebsd-12.1/stand/libsa/zfs/ |
| H A D | zfsimpl.c | 1550 psize = P2ALIGN(ldi_get_size(read_priv), in vdev_probe()
|
| /freebsd-12.1/cddl/contrib/opensolaris/cmd/ztest/ |
| H A D | ztest.c | 2005 offset = P2ALIGN(offset, size); in ztest_get_data() 5367 uint64_t psize = P2ALIGN(fsize, sizeof (vdev_label_t)); in ztest_fault_inject()
|
| /freebsd-12.1/cddl/contrib/opensolaris/cmd/zdb/ |
| H A D | zdb.c | 2676 psize = P2ALIGN(psize, (uint64_t)sizeof (vdev_label_t)); in dump_label()
|