Lines Matching refs:disks
19 static void raid6_2data_recov_intx1(int disks, size_t bytes, int faila, in raid6_2data_recov_intx1() argument
27 p = (u8 *)ptrs[disks-2]; in raid6_2data_recov_intx1()
28 q = (u8 *)ptrs[disks-1]; in raid6_2data_recov_intx1()
35 ptrs[disks-2] = dp; in raid6_2data_recov_intx1()
38 ptrs[disks-1] = dq; in raid6_2data_recov_intx1()
40 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_intx1()
45 ptrs[disks-2] = p; in raid6_2data_recov_intx1()
46 ptrs[disks-1] = q; in raid6_2data_recov_intx1()
63 static void raid6_datap_recov_intx1(int disks, size_t bytes, int faila, in raid6_datap_recov_intx1() argument
69 p = (u8 *)ptrs[disks-2]; in raid6_datap_recov_intx1()
70 q = (u8 *)ptrs[disks-1]; in raid6_datap_recov_intx1()
76 ptrs[disks-1] = dq; in raid6_datap_recov_intx1()
78 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_datap_recov_intx1()
82 ptrs[disks-1] = q; in raid6_datap_recov_intx1()
107 void raid6_dual_recov(int disks, size_t bytes, int faila, int failb, void **ptrs) in raid6_dual_recov() argument
115 if ( failb == disks-1 ) { in raid6_dual_recov()
116 if ( faila == disks-2 ) { in raid6_dual_recov()
118 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_dual_recov()
125 if ( failb == disks-2 ) { in raid6_dual_recov()
127 raid6_datap_recov(disks, bytes, faila, ptrs); in raid6_dual_recov()
130 raid6_2data_recov(disks, bytes, faila, failb, ptrs); in raid6_dual_recov()