Lines Matching defs:pointers
1180 * Both @faila and @failb should be valid pointers if any of
1408 void **pointers = rbio->finish_pointers;
1415 pointers[stripe] = kmap_local_paddr(
1419 pointers[stripe++] = kmap_local_paddr(rbio_pstripe_paddr(rbio, sector_nr, step_nr));
1426 pointers[stripe++] = kmap_local_paddr(
1430 raid6_call.gen_syndrome(rbio->real_stripes, step, pointers);
1433 memcpy(pointers[rbio->nr_data], pointers[0], step);
1434 run_xor(pointers + 1, rbio->nr_data - 1, step);
1437 kunmap_local(pointers[stripe]);
1938 void **pointers, void **unmap_array)
1948 * Setup our array of pointers with sectors from each stripe
1950 * NOTE: store a duplicate array of pointers to preserve the
1965 pointers[stripe_nr] = kmap_local_paddr(paddr);
1966 unmap_array[stripe_nr] = pointers[stripe_nr];
2012 faila, pointers);
2015 faila, failb, pointers);
2024 memcpy(pointers[faila], pointers[rbio->nr_data], step);
2027 p = pointers[faila];
2030 pointers[stripe_nr] = pointers[stripe_nr + 1];
2031 pointers[rbio->nr_data - 1] = p;
2034 run_xor(pointers, rbio->nr_data - 1, step);
2044 * @*pointers are the pre-allocated pointers by the caller, so we don't
2045 * need to allocate/free the pointers again and again.
2048 void **pointers, void **unmap_array)
2077 pointers, unmap_array);
2099 void **pointers = NULL;
2105 * @pointers array stores the pointer for each sector.
2107 * @unmap_array stores copy of pointers that does not get reordered
2110 pointers = kcalloc(rbio->real_stripes, sizeof(void *), GFP_NOFS);
2112 if (!pointers || !unmap_array) {
2126 ret = recover_vertical(rbio, sectornr, pointers, unmap_array);
2132 kfree(pointers);
2640 void *pointers[], unsigned int sector_nr,
2653 pointers[stripe] = kmap_local_paddr(
2660 raid6_call.gen_syndrome(rbio->real_stripes, step, pointers);
2663 memcpy(pointers[nr_data], pointers[0], step);
2664 run_xor(pointers + 1, nr_data - 1, step);
2669 if (memcmp(parity, pointers[rbio->scrubp], step) != 0)
2670 memcpy(parity, pointers[rbio->scrubp], step);
2676 kunmap_local(pointers[stripe]);
2681 * The @pointers array should have the P/Q parity already mapped.
2684 void *pointers[], unsigned int sector_nr)
2691 match = verify_one_parity_step(rbio, pointers, sector_nr, step_nr);
2702 void **pointers = rbio->finish_pointers;
2744 pointers[nr_data] = kmap_local_paddr(p_paddr);
2756 pointers[rbio->real_stripes - 1] = kmap_local_paddr(q_paddr);
2764 verify_one_parity_sector(rbio, pointers, sectornr);
2766 kunmap_local(pointers[nr_data]);
2825 void **pointers = NULL;
2831 * @pointers array stores the pointer for each sector.
2833 * @unmap_array stores copy of pointers that does not get reordered
2836 pointers = kcalloc(rbio->real_stripes, sizeof(void *), GFP_NOFS);
2838 if (!pointers || !unmap_array) {
2897 ret = recover_vertical(rbio, sector_nr, pointers, unmap_array);
2902 kfree(pointers);