Lines Matching refs:pointers

1004 		 * Both @faila and @failb should be valid pointers if any of
1187 void **pointers = rbio->finish_pointers;
1196 pointers[stripe] = kmap_local_page(sector->page) +
1203 pointers[stripe++] = kmap_local_page(sector->page) + sector->pgoff;
1212 pointers[stripe++] = kmap_local_page(sector->page) +
1216 pointers);
1219 memcpy(pointers[rbio->nr_data], pointers[0], sectorsize);
1220 run_xor(pointers + 1, rbio->nr_data - 1, sectorsize);
1223 kunmap_local(pointers[stripe]);
1715 * @*pointers are the pre-allocated pointers by the caller, so we don't
1716 * need to allocate/free the pointers again and again.
1719 void **pointers, void **unmap_array)
1751 * Setup our array of pointers with sectors from each stripe
1753 * NOTE: store a duplicate array of pointers to preserve the
1767 pointers[stripe_nr] = kmap_local_page(sector->page) +
1769 unmap_array[stripe_nr] = pointers[stripe_nr];
1815 faila, pointers);
1818 faila, failb, pointers);
1827 memcpy(pointers[faila], pointers[rbio->nr_data], sectorsize);
1830 p = pointers[faila];
1833 pointers[stripe_nr] = pointers[stripe_nr + 1];
1834 pointers[rbio->nr_data - 1] = p;
1837 run_xor(pointers, rbio->nr_data - 1, sectorsize);
1876 void **pointers = NULL;
1882 * @pointers array stores the pointer for each sector.
1884 * @unmap_array stores copy of pointers that does not get reordered
1887 pointers = kcalloc(rbio->real_stripes, sizeof(void *), GFP_NOFS);
1889 if (!pointers || !unmap_array) {
1903 ret = recover_vertical(rbio, sectornr, pointers, unmap_array);
1909 kfree(pointers);
2404 void **pointers = rbio->finish_pointers;
2457 pointers[rbio->real_stripes - 1] = kmap_local_page(q_sector.page);
2463 pointers[nr_data] = kmap_local_page(p_sector.page);
2472 pointers[stripe] = kmap_local_page(sector->page) +
2479 pointers);
2482 memcpy(pointers[nr_data], pointers[0], sectorsize);
2483 run_xor(pointers + 1, nr_data - 1, sectorsize);
2489 if (memcmp(parity, pointers[rbio->scrubp], sectorsize) != 0)
2490 memcpy(parity, pointers[rbio->scrubp], sectorsize);
2497 kunmap_local(pointers[stripe]);
2500 kunmap_local(pointers[nr_data]);
2504 kunmap_local(pointers[rbio->real_stripes - 1]);
2561 void **pointers = NULL;
2567 * @pointers array stores the pointer for each sector.
2569 * @unmap_array stores copy of pointers that does not get reordered
2572 pointers = kcalloc(rbio->real_stripes, sizeof(void *), GFP_NOFS);
2574 if (!pointers || !unmap_array) {
2633 ret = recover_vertical(rbio, sector_nr, pointers, unmap_array);
2638 kfree(pointers);