Searched refs:unit_size (Results 1 – 2 of 2) sorted by relevance
330 IN uint32_t unit_size) in stripe_unit_number() argument333 return relative_offset / unit_size; in stripe_unit_number()342 IN uint32_t unit_size) in stripe_unit_offset() argument344 return layout->pattern_offset + unit_size * sui; in stripe_unit_offset()
298 const uint32_t unit_size = layout_unit_size(layout); in stripe_next_unit() local300 uint64_t sui = stripe_unit_number(layout, *position, unit_size); in stripe_next_unit()305 io->offset = stripe_unit_offset(layout, sui, unit_size); in stripe_next_unit()311 io->length = stripe_unit_offset(layout, sui + 1, unit_size); in stripe_next_unit()322 const uint64_t remainder = positive_remainder(rel_offset, unit_size); in stripe_next_unit()323 const uint32_t stride = unit_size * stripe_count; in stripe_next_unit()325 io->offset = (rel_offset / stride) * unit_size + remainder; in stripe_next_unit()