Home
last modified time | relevance | path

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

/reactos/base/services/nfsd/
H A Dpnfs.h330 IN uint32_t unit_size) in stripe_unit_number() argument
333 return relative_offset / unit_size; in stripe_unit_number()
342 IN uint32_t unit_size) in stripe_unit_offset() argument
344 return layout->pattern_offset + unit_size * sui; in stripe_unit_offset()
H A Dpnfs_io.c298 const uint32_t unit_size = layout_unit_size(layout); in stripe_next_unit() local
300 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()