Lines Matching full:pointers

1091 		 * Both @faila and @failb should be valid pointers if any of  in get_rbio_veritical_errors()
1296 void **pointers = rbio->finish_pointers; in generate_pq_vertical() local
1305 pointers[stripe] = kmap_local_page(sector->page) + in generate_pq_vertical()
1312 pointers[stripe++] = kmap_local_page(sector->page) + sector->pgoff; in generate_pq_vertical()
1321 pointers[stripe++] = kmap_local_page(sector->page) + in generate_pq_vertical()
1326 pointers); in generate_pq_vertical()
1329 memcpy(pointers[rbio->nr_data], pointers[0], sectorsize); in generate_pq_vertical()
1330 run_xor(pointers + 1, rbio->nr_data - 1, sectorsize); in generate_pq_vertical()
1333 kunmap_local(pointers[stripe]); in generate_pq_vertical()
1825 * @*pointers are the pre-allocated pointers by the caller, so we don't
1826 * need to allocate/free the pointers again and again.
1829 void **pointers, void **unmap_array) in recover_vertical() argument
1861 * Setup our array of pointers with sectors from each stripe in recover_vertical()
1863 * NOTE: store a duplicate array of pointers to preserve the in recover_vertical()
1877 pointers[stripe_nr] = kmap_local_page(sector->page) + in recover_vertical()
1879 unmap_array[stripe_nr] = pointers[stripe_nr]; in recover_vertical()
1925 faila, pointers); in recover_vertical()
1928 faila, failb, pointers); in recover_vertical()
1937 memcpy(pointers[faila], pointers[rbio->nr_data], sectorsize); in recover_vertical()
1940 p = pointers[faila]; in recover_vertical()
1943 pointers[stripe_nr] = pointers[stripe_nr + 1]; in recover_vertical()
1944 pointers[rbio->nr_data - 1] = p; in recover_vertical()
1947 run_xor(pointers, rbio->nr_data - 1, sectorsize); in recover_vertical()
1986 void **pointers = NULL; in recover_sectors() local
1992 * @pointers array stores the pointer for each sector. in recover_sectors()
1994 * @unmap_array stores copy of pointers that does not get reordered in recover_sectors()
1997 pointers = kcalloc(rbio->real_stripes, sizeof(void *), GFP_NOFS); in recover_sectors()
1999 if (!pointers || !unmap_array) { in recover_sectors()
2013 ret = recover_vertical(rbio, sectornr, pointers, unmap_array); in recover_sectors()
2019 kfree(pointers); in recover_sectors()
2514 void **pointers = rbio->finish_pointers; in finish_parity_scrub() local
2567 pointers[rbio->real_stripes - 1] = kmap_local_page(q_sector.page); in finish_parity_scrub()
2573 pointers[nr_data] = kmap_local_page(p_sector.page); in finish_parity_scrub()
2582 pointers[stripe] = kmap_local_page(sector->page) + in finish_parity_scrub()
2590 pointers); in finish_parity_scrub()
2593 memcpy(pointers[nr_data], pointers[0], sectorsize); in finish_parity_scrub()
2594 run_xor(pointers + 1, nr_data - 1, sectorsize); in finish_parity_scrub()
2600 if (memcmp(parity, pointers[rbio->scrubp], sectorsize) != 0) in finish_parity_scrub()
2601 memcpy(parity, pointers[rbio->scrubp], sectorsize); in finish_parity_scrub()
2608 kunmap_local(pointers[stripe]); in finish_parity_scrub()
2611 kunmap_local(pointers[nr_data]); in finish_parity_scrub()
2615 kunmap_local(pointers[rbio->real_stripes - 1]); in finish_parity_scrub()
2672 void **pointers = NULL; in recover_scrub_rbio() local
2678 * @pointers array stores the pointer for each sector. in recover_scrub_rbio()
2680 * @unmap_array stores copy of pointers that does not get reordered in recover_scrub_rbio()
2683 pointers = kcalloc(rbio->real_stripes, sizeof(void *), GFP_NOFS); in recover_scrub_rbio()
2685 if (!pointers || !unmap_array) { in recover_scrub_rbio()
2744 ret = recover_vertical(rbio, sector_nr, pointers, unmap_array); in recover_scrub_rbio()
2749 kfree(pointers); in recover_scrub_rbio()