Home
last modified time | relevance | path

Searched full:disks (Results 1 – 25 of 206) sorted by relevance

123456789

/linux/crypto/async_tx/
H A Dasync_pq.c22 * blocks[disks-2] and the 'Q' destination address at blocks[disks-1]
36 const unsigned char *scfs, int disks, in do_async_gen_syndrome() argument
46 int src_cnt = disks - 2; in do_async_gen_syndrome()
76 dma_dest[0] = unmap->addr[disks - 2]; in do_async_gen_syndrome()
77 dma_dest[1] = unmap->addr[disks - 1]; in do_async_gen_syndrome()
107 do_sync_gen_syndrome(struct page **blocks, unsigned int *offsets, int disks, in do_sync_gen_syndrome() argument
112 int start = -1, stop = disks - 3; in do_sync_gen_syndrome()
119 for (i = 0; i < disks; i++) { in do_sync_gen_syndrome()
121 BUG_ON(i > disks - 3); /* P or Q can't be zero */ in do_sync_gen_syndrome()
126 if (i < disks - 2) { in do_sync_gen_syndrome()
[all …]
H A Draid6test.c35 static void makedata(int disks) in makedata() argument
39 for (i = 0; i < disks; i++) { in makedata()
46 static char disk_type(int d, int disks) in disk_type() argument
48 if (d == disks - 2) in disk_type()
50 else if (d == disks - 1) in disk_type()
57 static void raid6_dual_recov(int disks, size_t bytes, int faila, int failb, in raid6_dual_recov() argument
68 if (failb == disks-1) { in raid6_dual_recov()
69 if (faila == disks-2) { in raid6_dual_recov()
73 disks, bytes, &submit); in raid6_dual_recov()
80 BUG_ON(disks > NDISKS); in raid6_dual_recov()
[all …]
H A Dasync_raid6_recov.c153 __2data_recov_4(int disks, size_t bytes, int faila, int failb, in __2data_recov_4() argument
168 p = blocks[disks-2]; in __2data_recov_4()
169 p_off = offs[disks-2]; in __2data_recov_4()
170 q = blocks[disks-1]; in __2data_recov_4()
171 q_off = offs[disks-1]; in __2data_recov_4()
203 __2data_recov_5(int disks, size_t bytes, int faila, int failb, in __2data_recov_5() argument
221 for (i = 0; i < disks-2; i++) { in __2data_recov_5()
231 p = blocks[disks-2]; in __2data_recov_5()
232 p_off = offs[disks-2]; in __2data_recov_5()
233 q = blocks[disks-1]; in __2data_recov_5()
[all …]
/linux/lib/raid6/
H A Drecov.c19 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()
[all …]
H A Drecov_neon.c23 static void raid6_2data_recov_neon(int disks, size_t bytes, int faila, in raid6_2data_recov_neon() argument
30 p = (u8 *)ptrs[disks - 2]; in raid6_2data_recov_neon()
31 q = (u8 *)ptrs[disks - 1]; in raid6_2data_recov_neon()
40 ptrs[disks - 2] = dp; in raid6_2data_recov_neon()
43 ptrs[disks - 1] = dq; in raid6_2data_recov_neon()
45 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_neon()
50 ptrs[disks - 2] = p; in raid6_2data_recov_neon()
51 ptrs[disks - 1] = q; in raid6_2data_recov_neon()
63 static void raid6_datap_recov_neon(int disks, size_t bytes, int faila, in raid6_datap_recov_neon() argument
69 p = (u8 *)ptrs[disks - 2]; in raid6_datap_recov_neon()
[all …]
H A Drecov_s390xc.c23 static void raid6_2data_recov_s390xc(int disks, size_t bytes, int faila, in raid6_2data_recov_s390xc() argument
31 p = (u8 *)ptrs[disks-2]; in raid6_2data_recov_s390xc()
32 q = (u8 *)ptrs[disks-1]; in raid6_2data_recov_s390xc()
39 ptrs[disks-2] = dp; in raid6_2data_recov_s390xc()
42 ptrs[disks-1] = dq; in raid6_2data_recov_s390xc()
44 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_s390xc()
49 ptrs[disks-2] = p; in raid6_2data_recov_s390xc()
50 ptrs[disks-1] = q; in raid6_2data_recov_s390xc()
72 static void raid6_datap_recov_s390xc(int disks, size_t bytes, int faila, in raid6_datap_recov_s390xc() argument
79 p = (u8 *)ptrs[disks-2]; in raid6_datap_recov_s390xc()
[all …]
H A Dneon.h3 void raid6_neon1_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs);
4 void raid6_neon1_xor_syndrome_real(int disks, int start, int stop,
6 void raid6_neon2_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs);
7 void raid6_neon2_xor_syndrome_real(int disks, int start, int stop,
9 void raid6_neon4_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs);
10 void raid6_neon4_xor_syndrome_real(int disks, int start, int stop,
12 void raid6_neon8_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs);
13 void raid6_neon8_xor_syndrome_real(int disks, int start, int stop,
H A Dalgos.c156 void *(*const dptrs)[RAID6_TEST_DISKS], const int disks) in raid6_choose_gen() argument
159 int start = (disks>>1)-1, stop = disks-3; /* work on the second half of the disks */ in raid6_choose_gen()
181 (*algo)->gen_syndrome(disks, PAGE_SIZE, *dptrs); in raid6_choose_gen()
191 (perf * HZ * (disks-2)) >> in raid6_choose_gen()
211 (bestgenperf * HZ * (disks - 2)) >> in raid6_choose_gen()
223 best->xor_syndrome(disks, start, stop, in raid6_choose_gen()
230 (perf * HZ * (disks - 2)) >> in raid6_choose_gen()
244 const int disks = RAID6_TEST_DISKS; in raid6_select_algo() local
260 for (i = 0; i < disks; i++) in raid6_select_algo()
263 cycle = ((disks - 2) * PAGE_SIZE) / 65536; in raid6_select_algo()
[all …]
H A Drecov_loongarch_simd.c29 static void raid6_2data_recov_lsx(int disks, size_t bytes, int faila, in raid6_2data_recov_lsx() argument
36 p = (u8 *)ptrs[disks - 2]; in raid6_2data_recov_lsx()
37 q = (u8 *)ptrs[disks - 1]; in raid6_2data_recov_lsx()
46 ptrs[disks - 2] = dp; in raid6_2data_recov_lsx()
49 ptrs[disks - 1] = dq; in raid6_2data_recov_lsx()
51 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_lsx()
56 ptrs[disks - 2] = p; in raid6_2data_recov_lsx()
57 ptrs[disks - 1] = q; in raid6_2data_recov_lsx()
186 static void raid6_datap_recov_lsx(int disks, size_t bytes, int faila, in raid6_datap_recov_lsx() argument
192 p = (u8 *)ptrs[disks - 2]; in raid6_datap_recov_lsx()
[all …]
H A Drecov_avx512.c24 static void raid6_2data_recov_avx512(int disks, size_t bytes, int faila, in raid6_2data_recov_avx512() argument
32 p = (u8 *)ptrs[disks-2]; in raid6_2data_recov_avx512()
33 q = (u8 *)ptrs[disks-1]; in raid6_2data_recov_avx512()
43 ptrs[disks-2] = dp; in raid6_2data_recov_avx512()
46 ptrs[disks-1] = dq; in raid6_2data_recov_avx512()
48 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_avx512()
53 ptrs[disks-2] = p; in raid6_2data_recov_avx512()
54 ptrs[disks-1] = q; in raid6_2data_recov_avx512()
227 static void raid6_datap_recov_avx512(int disks, size_t bytes, int faila, in raid6_datap_recov_avx512() argument
234 p = (u8 *)ptrs[disks-2]; in raid6_datap_recov_avx512()
[all …]
H A Drecov_ssse3.c16 static void raid6_2data_recov_ssse3(int disks, size_t bytes, int faila, in raid6_2data_recov_ssse3() argument
26 p = (u8 *)ptrs[disks-2]; in raid6_2data_recov_ssse3()
27 q = (u8 *)ptrs[disks-1]; in raid6_2data_recov_ssse3()
34 ptrs[disks-2] = dp; in raid6_2data_recov_ssse3()
37 ptrs[disks-1] = dq; in raid6_2data_recov_ssse3()
39 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_ssse3()
44 ptrs[disks-2] = p; in raid6_2data_recov_ssse3()
45 ptrs[disks-1] = q; in raid6_2data_recov_ssse3()
191 static void raid6_datap_recov_ssse3(int disks, size_t bytes, int faila, in raid6_datap_recov_ssse3() argument
200 p = (u8 *)ptrs[disks-2]; in raid6_datap_recov_ssse3()
[all …]
H A Drecov_avx2.c16 static void raid6_2data_recov_avx2(int disks, size_t bytes, int faila, in raid6_2data_recov_avx2() argument
24 p = (u8 *)ptrs[disks-2]; in raid6_2data_recov_avx2()
25 q = (u8 *)ptrs[disks-1]; in raid6_2data_recov_avx2()
32 ptrs[disks-2] = dp; in raid6_2data_recov_avx2()
35 ptrs[disks-1] = dq; in raid6_2data_recov_avx2()
37 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_avx2()
42 ptrs[disks-2] = p; in raid6_2data_recov_avx2()
43 ptrs[disks-1] = q; in raid6_2data_recov_avx2()
186 static void raid6_datap_recov_avx2(int disks, size_t bytes, int faila, in raid6_datap_recov_avx2() argument
193 p = (u8 *)ptrs[disks-2]; in raid6_datap_recov_avx2()
[all …]
H A Dneon.c30 static void raid6_neon ## _n ## _gen_syndrome(int disks, \
36 raid6_neon ## _n ## _gen_syndrome_real(disks, \
40 static void raid6_neon ## _n ## _xor_syndrome(int disks, \
47 raid6_neon ## _n ## _xor_syndrome_real(disks, \
H A Dsse2.c36 static void raid6_sse21_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse21_gen_syndrome() argument
42 z0 = disks - 3; /* Highest data disk */ in raid6_sse21_gen_syndrome()
87 static void raid6_sse21_xor_syndrome(int disks, int start, int stop, in raid6_sse21_xor_syndrome() argument
95 p = dptr[disks-2]; /* XOR parity */ in raid6_sse21_xor_syndrome()
96 q = dptr[disks-1]; /* RS syndrome */ in raid6_sse21_xor_syndrome()
146 static void raid6_sse22_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse22_gen_syndrome() argument
152 z0 = disks - 3; /* Highest data disk */ in raid6_sse22_gen_syndrome()
198 static void raid6_sse22_xor_syndrome(int disks, int start, int stop, in raid6_sse22_xor_syndrome() argument
206 p = dptr[disks-2]; /* XOR parity */ in raid6_sse22_xor_syndrome()
207 q = dptr[disks-1]; /* RS syndrome */ in raid6_sse22_xor_syndrome()
[all …]
H A Ds390vx.uc46 static void raid6_s390vx$#_gen_syndrome(int disks, size_t bytes, void **ptrs)
56 z0 = disks - 3; /* Highest data disk */
78 static void raid6_s390vx$#_xor_syndrome(int disks, int start, int stop,
87 p = dptr[disks - 2]; /* XOR parity */
88 q = dptr[disks - 1]; /* RS syndrome */
H A Dint.uc75 static void raid6_int$#_gen_syndrome(int disks, size_t bytes, void **ptrs)
83 z0 = disks - 3; /* Highest data disk */
103 static void raid6_int$#_xor_syndrome(int disks, int start, int stop,
113 p = dptr[disks-2]; /* XOR parity */
114 q = dptr[disks-1]; /* RS syndrome */
H A Davx2.c34 static void raid6_avx21_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_avx21_gen_syndrome() argument
40 z0 = disks - 3; /* Highest data disk */ in raid6_avx21_gen_syndrome()
82 static void raid6_avx21_xor_syndrome(int disks, int start, int stop, in raid6_avx21_xor_syndrome() argument
90 p = dptr[disks-2]; /* XOR parity */ in raid6_avx21_xor_syndrome()
91 q = dptr[disks-1]; /* RS syndrome */ in raid6_avx21_xor_syndrome()
141 static void raid6_avx22_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_avx22_gen_syndrome() argument
147 z0 = disks - 3; /* Highest data disk */ in raid6_avx22_gen_syndrome()
192 static void raid6_avx22_xor_syndrome(int disks, int start, int stop, in raid6_avx22_xor_syndrome() argument
200 p = dptr[disks-2]; /* XOR parity */ in raid6_avx22_xor_syndrome()
201 q = dptr[disks-1]; /* RS syndrome */ in raid6_avx22_xor_syndrome()
[all …]
H A Davx512.c44 static void raid6_avx5121_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_avx5121_gen_syndrome() argument
50 z0 = disks - 3; /* Highest data disk */ in raid6_avx5121_gen_syndrome()
101 static void raid6_avx5121_xor_syndrome(int disks, int start, int stop, in raid6_avx5121_xor_syndrome() argument
109 p = dptr[disks-2]; /* XOR parity */ in raid6_avx5121_xor_syndrome()
110 q = dptr[disks-1]; /* RS syndrome */ in raid6_avx5121_xor_syndrome()
171 static void raid6_avx5122_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_avx5122_gen_syndrome() argument
177 z0 = disks - 3; /* Highest data disk */ in raid6_avx5122_gen_syndrome()
233 static void raid6_avx5122_xor_syndrome(int disks, int start, int stop, in raid6_avx5122_xor_syndrome() argument
241 p = dptr[disks-2]; /* XOR parity */ in raid6_avx5122_xor_syndrome()
242 q = dptr[disks-1]; /* RS syndrome */ in raid6_avx5122_xor_syndrome()
[all …]
/linux/Documentation/driver-api/md/
H A Draid5-cache.rst6 disks. The role of RAID disks isn't changed with the cache disk. The cache disk
7 caches data to the RAID disks. The cache can be in write-through (supported
28 disks and it's possible the writes don't hit all RAID disks yet before the
35 is safe on the cache disk, the data will be flushed onto RAID disks. The
40 filesystems) after the data is safe on RAID disks, so cache disk failure
52 write. If a write crosses all RAID disks of a stripe, we call it full-stripe
57 RAID disks only after the data becomes a full stripe write. This will
63 disks later after specific conditions met. So cache disk failure will cause
90 order in which MD writes data to cache disk and RAID disks. Specifically, in
92 parity to the log, writes the data and parity to RAID disks after the data and
[all …]
H A Draid5-ppl.rst7 may become inconsistent with data on other member disks. If the array is also
9 disks is missing. This can lead to silent data corruption when rebuilding the
19 which chunk writes have completed. If one of the not modified data disks of
22 unclean shutdown and all disks are available, eliminating the need to resync
27 parity are dispatched to disks. PPL is a distributed log - it is stored on
44 There is a limitation of maximum 64 disks in the array for PPL. It allows to
45 keep data structures and implementation simple. RAID5 arrays with so many disks
46 are not likely due to high risk of multiple disks failure. Such restriction
/linux/drivers/md/
H A Draid5.c126 if (sh->qd_idx == sh->disks - 1) in raid6_d0()
137 /* When walking through the disks in a raid5, starting at raid6_d0,
138 * We need to map each disk to a 'slot', where the data disks are slot
232 for (i = sh->disks; i--; ) in do_release_stripe()
501 init_stripe_shared_pages(struct stripe_head *sh, struct r5conf *conf, int disks) in init_stripe_shared_pages() argument
510 nr_pages = (disks + cnt - 1) / cnt; in init_stripe_shared_pages()
591 sh->disks = previous ? conf->previous_raid_disks : conf->raid_disks; in init_stripe()
596 for (i = sh->disks; i--; ) { in init_stripe()
698 struct md_rdev *rdev = READ_ONCE(conf->disks[i].rdev); in raid5_calc_degraded()
701 rdev = READ_ONCE(conf->disks[i].replacement); in raid5_calc_degraded()
[all …]
/linux/tools/testing/selftests/zram/
H A DREADME6 (<id> = 0, 1, ...). Pages written to these disks are compressed and stored
7 in memory itself. These disks allow very fast I/O and compression provides
9 use as swap disks, various caches under /var and maybe many more :)
26 zram01.sh: creates general purpose ram disks with ext4 filesystems
/linux/drivers/s390/block/
H A DKconfig33 prompt "Support for ECKD Disks"
41 prompt "Support for FBA Disks"
49 prompt "Support for DIAG access to Disks"
53 Disks under VM. If you are not running under VM or unsure what it is,
/linux/Documentation/admin-guide/
H A Diostats.rst41 if you are watching a known, small set of disks. ``/proc/diskstats`` may
42 be a better choice if you are watching a large number of disks because
137 read I/Os issued per partition should equal those made to the disks ...
149 Disks vs Partitions
158 partitions from that for disks. There are only *four* fields available
179 of queuing for partitions, and at completion for whole disks. This is
183 reads/writes before merges for partitions and after for disks. Since a
/linux/Documentation/admin-guide/blockdev/
H A Dramdisk.rst26 The RAM disk supports up to 16 RAM disks by default, and can be reconfigured
27 to support an unlimited number of RAM disks (at your own risk). Just change
32 directory. RAM disks are all major number 1, and start with minor number 0
48 This parameter tells the RAM disk driver to set up RAM disks of N k size. The
99 area (esp. for disks) so that maximal compression is achieved for

123456789