Home
last modified time | relevance | path

Searched refs:unit_shift (Results 1 – 2 of 2) sorted by relevance

/freebsd-12.1/sys/cddl/boot/zfs/
H A Dzfssubr.c1190 vdev_raidz_map_alloc(void *data, off_t offset, size_t size, uint64_t unit_shift, in vdev_raidz_map_alloc() argument
1194 uint64_t b = offset >> unit_shift; in vdev_raidz_map_alloc()
1195 uint64_t s = size >> unit_shift; in vdev_raidz_map_alloc()
1197 uint64_t o = (b / dcols) << unit_shift; in vdev_raidz_map_alloc()
1235 coff += 1ULL << unit_shift; in vdev_raidz_map_alloc()
1247 rm->rm_col[c].rc_size = (q + 1) << unit_shift; in vdev_raidz_map_alloc()
1249 rm->rm_col[c].rc_size = q << unit_shift; in vdev_raidz_map_alloc()
1254 ASSERT3U(asize, ==, tot << unit_shift); in vdev_raidz_map_alloc()
1255 rm->rm_asize = roundup(asize, (nparity + 1) << unit_shift); in vdev_raidz_map_alloc()
1257 ASSERT3U(rm->rm_asize - asize, ==, rm->rm_nskip << unit_shift); in vdev_raidz_map_alloc()
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dvdev_raidz.c470 uint64_t unit_shift, uint64_t dcols, uint64_t nparity) in vdev_raidz_map_alloc() argument
474 uint64_t b = offset >> unit_shift; in vdev_raidz_map_alloc()
476 uint64_t s = size >> unit_shift; in vdev_raidz_map_alloc()
480 uint64_t o = (b / dcols) << unit_shift; in vdev_raidz_map_alloc()
539 coff += 1ULL << unit_shift; in vdev_raidz_map_alloc()
552 rm->rm_col[c].rc_size = (q + 1) << unit_shift; in vdev_raidz_map_alloc()
554 rm->rm_col[c].rc_size = q << unit_shift; in vdev_raidz_map_alloc()
559 ASSERT3U(asize, ==, tot << unit_shift); in vdev_raidz_map_alloc()
560 rm->rm_asize = roundup(asize, (nparity + 1) << unit_shift); in vdev_raidz_map_alloc()
562 ASSERT3U(rm->rm_asize - asize, ==, rm->rm_nskip << unit_shift); in vdev_raidz_map_alloc()