Lines Matching refs:stripe
21 struct stripe { struct
44 struct stripe stripe[]; member
62 unsigned int stripe, char **argv) in get_stripe() argument
72 &sc->stripe[stripe].dev); in get_stripe()
76 sc->stripe[stripe].physical_start = start; in get_stripe()
132 sc = kmalloc(struct_size(sc, stripe, stripes), GFP_KERNEL); in stripe_ctr()
179 dm_put_device(ti, sc->stripe[i].dev); in stripe_ctr()
183 atomic_set(&(sc->stripe[i].error_count), 0); in stripe_ctr()
197 dm_put_device(ti, sc->stripe[i].dev); in stripe_dtr()
204 uint32_t *stripe, sector_t *result) in stripe_map_sector() argument
217 *stripe = sector_div(chunk, sc->stripes); in stripe_map_sector()
219 *stripe = chunk & (sc->stripes - 1); in stripe_map_sector()
234 uint32_t stripe; in stripe_map_range_sector() local
236 stripe_map_sector(sc, sector, &stripe, result); in stripe_map_range_sector()
237 if (stripe == target_stripe) in stripe_map_range_sector()
247 if (target_stripe < stripe) in stripe_map_range_sector()
261 bio_set_dev(bio, sc->stripe[target_stripe].dev->bdev); in stripe_map_range()
263 sc->stripe[target_stripe].physical_start; in stripe_map_range()
276 uint32_t stripe; in stripe_map() local
282 bio_set_dev(bio, sc->stripe[target_bio_nr].dev->bdev); in stripe_map()
295 &stripe, &bio->bi_iter.bi_sector); in stripe_map()
297 bio->bi_iter.bi_sector += sc->stripe[stripe].physical_start; in stripe_map()
298 bio_set_dev(bio, sc->stripe[stripe].dev->bdev); in stripe_map()
311 uint32_t stripe; in stripe_dax_direct_access() local
314 stripe_map_sector(sc, sector, &stripe, &dev_sector); in stripe_dax_direct_access()
315 dev_sector += sc->stripe[stripe].physical_start; in stripe_dax_direct_access()
316 dax_dev = sc->stripe[stripe].dev->dax_dev; in stripe_dax_direct_access()
317 bdev = sc->stripe[stripe].dev->bdev; in stripe_dax_direct_access()
332 uint32_t stripe; in stripe_dax_copy_from_iter() local
334 stripe_map_sector(sc, sector, &stripe, &dev_sector); in stripe_dax_copy_from_iter()
335 dev_sector += sc->stripe[stripe].physical_start; in stripe_dax_copy_from_iter()
336 dax_dev = sc->stripe[stripe].dev->dax_dev; in stripe_dax_copy_from_iter()
337 bdev = sc->stripe[stripe].dev->bdev; in stripe_dax_copy_from_iter()
351 uint32_t stripe; in stripe_dax_copy_to_iter() local
353 stripe_map_sector(sc, sector, &stripe, &dev_sector); in stripe_dax_copy_to_iter()
354 dev_sector += sc->stripe[stripe].physical_start; in stripe_dax_copy_to_iter()
355 dax_dev = sc->stripe[stripe].dev->dax_dev; in stripe_dax_copy_to_iter()
356 bdev = sc->stripe[stripe].dev->bdev; in stripe_dax_copy_to_iter()
371 uint32_t stripe; in stripe_dax_zero_page_range() local
373 stripe_map_sector(sc, sector, &stripe, &dev_sector); in stripe_dax_zero_page_range()
374 dev_sector += sc->stripe[stripe].physical_start; in stripe_dax_zero_page_range()
375 dax_dev = sc->stripe[stripe].dev->dax_dev; in stripe_dax_zero_page_range()
376 bdev = sc->stripe[stripe].dev->bdev; in stripe_dax_zero_page_range()
415 DMEMIT("%s ", sc->stripe[i].dev->name); in stripe_status()
419 DMEMIT("%c", atomic_read(&(sc->stripe[i].error_count)) ? in stripe_status()
428 DMEMIT(" %s %llu", sc->stripe[i].dev->name, in stripe_status()
429 (unsigned long long)sc->stripe[i].physical_start); in stripe_status()
460 if (!strcmp(sc->stripe[i].dev->name, major_minor)) { in stripe_end_io()
461 atomic_inc(&(sc->stripe[i].error_count)); in stripe_end_io()
462 if (atomic_read(&(sc->stripe[i].error_count)) < in stripe_end_io()
478 ret = fn(ti, sc->stripe[i].dev, in stripe_iterate_devices()
479 sc->stripe[i].physical_start, in stripe_iterate_devices()