Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 26) sorted by relevance

12

/lib/
Diov_iter.c156 static size_t copy_page_to_iter_iovec(struct page *page, size_t offset, size_t bytes, in copy_page_to_iter_iovec() argument
164 if (unlikely(bytes > i->count)) in copy_page_to_iter_iovec()
165 bytes = i->count; in copy_page_to_iter_iovec()
167 if (unlikely(!bytes)) in copy_page_to_iter_iovec()
171 wanted = bytes; in copy_page_to_iter_iovec()
175 copy = min(bytes, iov->iov_len - skip); in copy_page_to_iter_iovec()
186 bytes -= copy; in copy_page_to_iter_iovec()
188 while (unlikely(!left && bytes)) { in copy_page_to_iter_iovec()
191 copy = min(bytes, iov->iov_len); in copy_page_to_iter_iovec()
196 bytes -= copy; in copy_page_to_iter_iovec()
[all …]
Dmemweight.c11 size_t memweight(const void *ptr, size_t bytes) in memweight() argument
17 for (; bytes > 0 && ((unsigned long)bitmap) % sizeof(long); in memweight()
18 bytes--, bitmap++) in memweight()
21 longs = bytes / sizeof(long); in memweight()
26 bytes -= longs * sizeof(long); in memweight()
34 for (; bytes > 0; bytes--, bitmap++) in memweight()
Drandom32.c101 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t bytes) in prandom_bytes_state() argument
105 while (bytes >= sizeof(u32)) { in prandom_bytes_state()
108 bytes -= sizeof(u32); in prandom_bytes_state()
111 if (bytes > 0) { in prandom_bytes_state()
115 bytes--; in prandom_bytes_state()
117 } while (bytes > 0); in prandom_bytes_state()
127 void prandom_bytes(void *buf, size_t bytes) in prandom_bytes() argument
131 prandom_bytes_state(state, buf, bytes); in prandom_bytes()
Dcrc32test.c668 int bytes = 0; in crc32c_test() local
678 bytes += 2*test[i].length; in crc32c_test()
705 bytes, nsec); in crc32c_test()
750 int bytes = 0; in crc32_test() local
760 bytes += 2*test[i].length; in crc32_test()
795 bytes, nsec); in crc32_test()
Dtest_meminit.c169 int bytes; in check_buf() local
172 bytes = count_nonzero_bytes(buf, size); in check_buf()
175 return bytes; in check_buf()
180 if (bytes) in check_buf()
304 int num, bytes; in do_kmem_cache_size_bulk() local
313 bytes = count_nonzero_bytes(objects[i], size); in do_kmem_cache_size_bulk()
314 if (bytes) in do_kmem_cache_size_bulk()
Dstring.c1010 static void *check_bytes8(const u8 *start, u8 value, unsigned int bytes) in check_bytes8() argument
1012 while (bytes) { in check_bytes8()
1016 bytes--; in check_bytes8()
1030 void *memchr_inv(const void *start, int c, size_t bytes) in memchr_inv() argument
1036 if (bytes <= 16) in memchr_inv()
1037 return check_bytes8(start, value, bytes); in memchr_inv()
1060 bytes -= prefix; in memchr_inv()
1063 words = bytes / 8; in memchr_inv()
1072 return check_bytes8(start, value, bytes % 8); in memchr_inv()
/lib/raid6/
Drecov.c20 static void raid6_2data_recov_intx1(int disks, size_t bytes, int faila, in raid6_2data_recov_intx1() argument
41 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_intx1()
54 while ( bytes-- ) { in raid6_2data_recov_intx1()
64 static void raid6_datap_recov_intx1(int disks, size_t bytes, int faila, in raid6_datap_recov_intx1() argument
79 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_datap_recov_intx1()
89 while ( bytes-- ) { in raid6_datap_recov_intx1()
108 void raid6_dual_recov(int disks, size_t bytes, int faila, int failb, void **ptrs) in raid6_dual_recov() argument
119 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_dual_recov()
128 raid6_datap_recov(disks, bytes, faila, ptrs); in raid6_dual_recov()
131 raid6_2data_recov(disks, bytes, faila, failb, ptrs); in raid6_dual_recov()
Drecov_avx2.c18 static void raid6_2data_recov_avx2(int disks, size_t bytes, int faila, in raid6_2data_recov_avx2() argument
39 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_avx2()
57 while (bytes) { in raid6_2data_recov_avx2()
130 bytes -= 64; in raid6_2data_recov_avx2()
177 bytes -= 32; in raid6_2data_recov_avx2()
188 static void raid6_datap_recov_avx2(int disks, size_t bytes, int faila, in raid6_datap_recov_avx2() argument
204 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_datap_recov_avx2()
217 while (bytes) { in raid6_datap_recov_avx2()
265 bytes -= 64; in raid6_datap_recov_avx2()
295 bytes -= 32; in raid6_datap_recov_avx2()
Drecov_avx512.c24 static void raid6_2data_recov_avx512(int disks, size_t bytes, int faila, in raid6_2data_recov_avx512() argument
48 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_avx512()
66 while (bytes) { in raid6_2data_recov_avx512()
155 bytes -= 128; in raid6_2data_recov_avx512()
216 bytes -= 64; 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
246 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_datap_recov_avx512()
259 while (bytes) { in raid6_datap_recov_avx512()
319 bytes -= 128; in raid6_datap_recov_avx512()
359 bytes -= 64; in raid6_datap_recov_avx512()
Drecov_ssse3.c18 static void raid6_2data_recov_ssse3(int disks, size_t bytes, int faila, in raid6_2data_recov_ssse3() argument
41 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_ssse3()
65 while (bytes) { in raid6_2data_recov_ssse3()
134 bytes -= 32; in raid6_2data_recov_ssse3()
181 bytes -= 16; in raid6_2data_recov_ssse3()
193 static void raid6_datap_recov_ssse3(int disks, size_t bytes, int faila, in raid6_datap_recov_ssse3() argument
211 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_datap_recov_ssse3()
224 while (bytes) { in raid6_datap_recov_ssse3()
279 bytes -= 32; in raid6_datap_recov_ssse3()
310 bytes -= 16; in raid6_datap_recov_ssse3()
Drecov_neon.c22 void __raid6_2data_recov_neon(int bytes, uint8_t *p, uint8_t *q, uint8_t *dp,
26 void __raid6_datap_recov_neon(int bytes, uint8_t *p, uint8_t *q, uint8_t *dq,
29 static void raid6_2data_recov_neon(int disks, size_t bytes, int faila, in raid6_2data_recov_neon() argument
51 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_neon()
65 __raid6_2data_recov_neon(bytes, p, q, dp, dq, pbmul, qmul); in raid6_2data_recov_neon()
69 static void raid6_datap_recov_neon(int disks, size_t bytes, int faila, in raid6_datap_recov_neon() argument
86 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_datap_recov_neon()
96 __raid6_datap_recov_neon(bytes, p, q, dq, qmul); in raid6_datap_recov_neon()
Drecov_s390xc.c23 static void raid6_2data_recov_s390xc(int disks, size_t bytes, int faila, in raid6_2data_recov_s390xc() argument
44 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_s390xc()
57 while (bytes) { in raid6_2data_recov_s390xc()
67 bytes -= 256; 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
88 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_datap_recov_s390xc()
98 while (bytes) { in raid6_datap_recov_s390xc()
106 bytes -= 256; in raid6_datap_recov_s390xc()
Davx512.c44 static void raid6_avx5121_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_avx5121_gen_syndrome() argument
61 for (d = 0; d < bytes; d += 64) { in raid6_avx5121_gen_syndrome()
102 size_t bytes, void **ptrs) in raid6_avx5121_xor_syndrome() argument
117 for (d = 0 ; d < bytes ; d += 64) { 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
189 for (d = 0; d < bytes; d += 128) { in raid6_avx5122_gen_syndrome()
234 size_t bytes, void **ptrs) in raid6_avx5122_xor_syndrome() argument
249 for (d = 0 ; d < bytes ; d += 128) { in raid6_avx5122_xor_syndrome()
330 static void raid6_avx5124_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_avx5124_gen_syndrome() argument
355 for (d = 0; d < bytes; d += 256) { in raid6_avx5124_gen_syndrome()
[all …]
Dsse2.c36 static void raid6_sse21_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse21_gen_syndrome() argument
51 for ( d = 0 ; d < bytes ; d += 16 ) { in raid6_sse21_gen_syndrome()
88 size_t bytes, void **ptrs) in raid6_sse21_xor_syndrome() argument
102 for ( d = 0 ; d < bytes ; d += 16 ) { 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
163 for ( d = 0 ; d < bytes ; d += 32 ) { in raid6_sse22_gen_syndrome()
199 size_t bytes, void **ptrs) in raid6_sse22_xor_syndrome() argument
213 for ( d = 0 ; d < bytes ; d += 32 ) { in raid6_sse22_xor_syndrome()
278 static void raid6_sse24_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse24_gen_syndrome() argument
304 for ( d = 0 ; d < bytes ; d += 64 ) { in raid6_sse24_gen_syndrome()
[all …]
Davx2.c36 static void raid6_avx21_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_avx21_gen_syndrome() argument
51 for (d = 0; d < bytes; d += 32) { in raid6_avx21_gen_syndrome()
85 size_t bytes, void **ptrs) in raid6_avx21_xor_syndrome() argument
99 for (d = 0 ; d < bytes ; d += 32) { in raid6_avx21_xor_syndrome()
143 static void raid6_avx22_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_avx22_gen_syndrome() argument
159 for (d = 0; d < bytes; d += 64) { in raid6_avx22_gen_syndrome()
195 size_t bytes, void **ptrs) in raid6_avx22_xor_syndrome() argument
209 for (d = 0 ; d < bytes ; d += 64) { in raid6_avx22_xor_syndrome()
275 static void raid6_avx24_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_avx24_gen_syndrome() argument
298 for (d = 0; d < bytes; d += 128) { in raid6_avx24_gen_syndrome()
[all …]
Dneon.c31 size_t bytes, void **ptrs) \
37 (unsigned long)bytes, ptrs); \
42 size_t bytes, void **ptrs) \
48 start, stop, (unsigned long)bytes, ptrs); \
Drecov_neon_inner.c27 void __raid6_2data_recov_neon(int bytes, uint8_t *p, uint8_t *q, uint8_t *dp, in __raid6_2data_recov_neon() argument
49 while (bytes) { in __raid6_2data_recov_neon()
69 bytes -= 16; in __raid6_2data_recov_neon()
77 void __raid6_datap_recov_neon(int bytes, uint8_t *p, uint8_t *q, uint8_t *dq, in __raid6_datap_recov_neon() argument
91 while (bytes) { in __raid6_datap_recov_neon()
105 bytes -= 16; in __raid6_datap_recov_neon()
Dmmx.c35 static void raid6_mmx1_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_mmx1_gen_syndrome() argument
50 for ( d = 0 ; d < bytes ; d += 8 ) { in raid6_mmx1_gen_syndrome()
83 static void raid6_mmx2_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_mmx2_gen_syndrome() argument
99 for ( d = 0 ; d < bytes ; d += 16 ) { in raid6_mmx2_gen_syndrome()
Dsse1.c40 static void raid6_sse11_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse11_gen_syndrome() argument
55 for ( d = 0 ; d < bytes ; d += 8 ) { in raid6_sse11_gen_syndrome()
99 static void raid6_sse12_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse12_gen_syndrome() argument
116 for ( d = 0 ; d < bytes ; d += 16 ) { in raid6_sse12_gen_syndrome()
Ds390vx.uc28 * The SHLBYTE() operation shifts each of the 16 bytes in
38 * For each of the 16 bytes in the vector register y the MASK()
83 static void raid6_s390vx$#_gen_syndrome(int disks, size_t bytes, void **ptrs)
97 for (d = 0; d < bytes; d += $#*NSIZE) {
116 size_t bytes, void **ptrs)
130 for (d = 0; d < bytes; d += $#*NSIZE) {
Dvpermxor.uc43 static void noinline raid6_vpermxor$#_gen_syndrome_real(int disks, size_t bytes,
55 for (d = 0; d < bytes; d += NSIZE*$#) {
72 static void raid6_vpermxor$#_gen_syndrome(int disks, size_t bytes, void **ptrs)
77 raid6_vpermxor$#_gen_syndrome_real(disks, bytes, ptrs);
Daltivec.uc71 raid6_altivec$#_gen_syndrome_real(int disks, size_t bytes, void **ptrs)
84 for ( d = 0 ; d < bytes ; d += NSIZE*$# ) {
100 static void raid6_altivec$#_gen_syndrome(int disks, size_t bytes, void **ptrs)
105 raid6_altivec$#_gen_syndrome_real(disks, bytes, ptrs);
Dneon.uc56 void raid6_neon$#_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
69 for ( d = 0 ; d < bytes ; d += NSIZE*$# ) {
87 unsigned long bytes, void **ptrs)
100 for ( d = 0 ; d < bytes ; d += NSIZE*$# ) {
Dint.uc82 static void raid6_int$#_gen_syndrome(int disks, size_t bytes, void **ptrs)
94 for ( d = 0 ; d < bytes ; d += NSIZE*$# ) {
111 size_t bytes, void **ptrs)
123 for ( d = 0 ; d < bytes ; d += NSIZE*$# ) {
/lib/842/
D842_decompress.c282 u64 op, rep, tmp, bytes, total; in sw842_decompress() local
341 ret = next_bits(&p, &bytes, SHORT_DATA_BITS); in sw842_decompress()
345 if (!bytes || bytes > SHORT_DATA_BITS_MAX) in sw842_decompress()
348 while (bytes-- > 0) { in sw842_decompress()

12