Lines Matching refs:stripe_nr

599 					     unsigned int stripe_nr,  in rbio_stripe_sector_index()  argument
602 ASSERT(stripe_nr < rbio->real_stripes); in rbio_stripe_sector_index()
605 return stripe_nr * rbio->stripe_nsectors + sector_nr; in rbio_stripe_sector_index()
610 unsigned int stripe_nr, in rbio_stripe_sector() argument
613 return &rbio->stripe_sectors[rbio_stripe_sector_index(rbio, stripe_nr, in rbio_stripe_sector()
882 int stripe_nr, int sector_nr, in sector_in_rbio() argument
888 ASSERT(stripe_nr >= 0 && stripe_nr < rbio->real_stripes); in sector_in_rbio()
891 index = stripe_nr * rbio->stripe_nsectors + sector_nr; in sector_in_rbio()
1009 int stripe_nr; in get_rbio_veritical_errors() local
1022 for (stripe_nr = 0; stripe_nr < rbio->real_stripes; stripe_nr++) { in get_rbio_veritical_errors()
1023 int total_sector_nr = stripe_nr * rbio->stripe_nsectors + sector_nr; in get_rbio_veritical_errors()
1030 *faila = stripe_nr; in get_rbio_veritical_errors()
1032 *failb = stripe_nr; in get_rbio_veritical_errors()
1048 unsigned int stripe_nr, in rbio_add_io_sector() argument
1064 ASSERT(stripe_nr >= 0 && stripe_nr < rbio->bioc->num_stripes); in rbio_add_io_sector()
1068 stripe = &rbio->bioc->stripes[stripe_nr]; in rbio_add_io_sector()
1075 set_bit(stripe_nr * rbio->stripe_nsectors + sector_nr, in rbio_add_io_sector()
1173 trace_info->stripe_nr = i; in bio_get_trace_info()
1183 trace_info->stripe_nr = -1; in bio_get_trace_info()
1351 int stripe_nr; in set_rbio_range_error() local
1353 for (stripe_nr = 0; stripe_nr < rbio->real_stripes; stripe_nr++) { in set_rbio_range_error()
1354 if (!rbio->bioc->stripes[stripe_nr].dev->bdev) { in set_rbio_range_error()
1357 stripe_nr * rbio->stripe_nsectors, in set_rbio_range_error()
1678 int stripe_nr, int sector_nr) in verify_one_sector() argument
1690 if (stripe_nr >= rbio->nr_data) in verify_one_sector()
1698 sector = sector_in_rbio(rbio, stripe_nr, sector_nr, 0); in verify_one_sector()
1700 sector = rbio_stripe_sector(rbio, stripe_nr, sector_nr); in verify_one_sector()
1706 (stripe_nr * rbio->stripe_nsectors + sector_nr) * in verify_one_sector()
1727 int stripe_nr; in recover_vertical() local
1756 for (stripe_nr = 0; stripe_nr < rbio->real_stripes; stripe_nr++) { in recover_vertical()
1763 sector = sector_in_rbio(rbio, stripe_nr, sector_nr, 0); in recover_vertical()
1765 sector = rbio_stripe_sector(rbio, stripe_nr, sector_nr); in recover_vertical()
1768 pointers[stripe_nr] = kmap_local_page(sector->page) + in recover_vertical()
1770 unmap_array[stripe_nr] = pointers[stripe_nr]; in recover_vertical()
1833 for (stripe_nr = faila; stripe_nr < rbio->nr_data - 1; in recover_vertical()
1834 stripe_nr++) in recover_vertical()
1835 pointers[stripe_nr] = pointers[stripe_nr + 1]; in recover_vertical()
1871 for (stripe_nr = rbio->real_stripes - 1; stripe_nr >= 0; stripe_nr--) in recover_vertical()
1872 kunmap_local(unmap_array[stripe_nr]); in recover_vertical()