Lines Matching refs:chunk_size
35 uint32_t chunk_size; member
90 uint32_t chunk_size; in stripe_ctr() local
104 if (kstrtouint(argv[1], 10, &chunk_size) || !chunk_size) { in stripe_ctr()
117 if (sector_div(tmp_len, chunk_size)) { in stripe_ctr()
151 r = dm_set_target_max_io_len(ti, chunk_size); in stripe_ctr()
162 sc->chunk_size = chunk_size; in stripe_ctr()
163 if (chunk_size & (chunk_size - 1)) in stripe_ctr()
166 sc->chunk_size_shift = __ffs(chunk_size); in stripe_ctr()
209 chunk_offset = sector_div(chunk, sc->chunk_size); in stripe_map_sector()
211 chunk_offset = chunk & (sc->chunk_size - 1); in stripe_map_sector()
223 chunk *= sc->chunk_size; in stripe_map_sector()
242 *result -= sector_div(sector, sc->chunk_size); in stripe_map_range_sector()
244 *result = sector & ~(sector_t)(sc->chunk_size - 1); in stripe_map_range_sector()
247 *result += sc->chunk_size; /* next chunk */ in stripe_map_range_sector()
383 (unsigned long long)sc->chunk_size); in stripe_status()
392 (unsigned long long)sc->chunk_size); in stripe_status()
462 unsigned chunk_size = sc->chunk_size << SECTOR_SHIFT; in stripe_io_hints() local
464 blk_limits_io_min(limits, chunk_size); in stripe_io_hints()
465 blk_limits_io_opt(limits, chunk_size * sc->stripes); in stripe_io_hints()