Home
last modified time | relevance | path

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

/lib/
Diov_iter.c138 static size_t copy_page_to_iter_iovec(struct page *page, size_t offset, size_t bytes, in copy_page_to_iter_iovec() argument
146 if (unlikely(bytes > i->count)) in copy_page_to_iter_iovec()
147 bytes = i->count; in copy_page_to_iter_iovec()
149 if (unlikely(!bytes)) in copy_page_to_iter_iovec()
152 wanted = bytes; in copy_page_to_iter_iovec()
156 copy = min(bytes, iov->iov_len - skip); in copy_page_to_iter_iovec()
167 bytes -= copy; in copy_page_to_iter_iovec()
169 while (unlikely(!left && bytes)) { in copy_page_to_iter_iovec()
172 copy = min(bytes, iov->iov_len); in copy_page_to_iter_iovec()
177 bytes -= copy; in copy_page_to_iter_iovec()
[all …]
Dmemweight.c10 size_t memweight(const void *ptr, size_t bytes) in memweight() argument
16 for (; bytes > 0 && ((unsigned long)bitmap) % sizeof(long); in memweight()
17 bytes--, bitmap++) in memweight()
20 longs = bytes / sizeof(long); in memweight()
25 bytes -= longs * sizeof(long); in memweight()
33 for (; bytes > 0; bytes--, bitmap++) in memweight()
Drandom32.c71 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t bytes) in prandom_bytes_state() argument
75 while (bytes >= sizeof(u32)) { in prandom_bytes_state()
78 bytes -= sizeof(u32); in prandom_bytes_state()
81 if (bytes > 0) { in prandom_bytes_state()
85 bytes--; in prandom_bytes_state()
87 } while (bytes > 0); in prandom_bytes_state()
390 void prandom_bytes(void *buf, size_t bytes) in prandom_bytes() argument
395 while (bytes >= sizeof(u32)) { in prandom_bytes()
398 bytes -= sizeof(u32); in prandom_bytes()
401 if (bytes > 0) { in prandom_bytes()
[all …]
Dswiotlb.c147 unsigned long bytes = io_tlb_nslabs << IO_TLB_SHIFT; in swiotlb_print_info() local
157 bytes >> 20); in swiotlb_print_info()
163 unsigned long i, bytes; in swiotlb_init_with_tbl() local
165 bytes = nslabs << IO_TLB_SHIFT; in swiotlb_init_with_tbl()
169 io_tlb_end = io_tlb_start + bytes; in swiotlb_init_with_tbl()
215 unsigned long bytes; in swiotlb_init() local
222 bytes = io_tlb_nslabs << IO_TLB_SHIFT; in swiotlb_init()
225 vstart = memblock_virt_alloc_low_nopanic(PAGE_ALIGN(bytes), PAGE_SIZE); in swiotlb_init()
246 unsigned long bytes, req_nslabs = io_tlb_nslabs; in swiotlb_late_init_with_default_size() local
261 bytes = io_tlb_nslabs << IO_TLB_SHIFT; in swiotlb_late_init_with_default_size()
[all …]
Dstring.c990 static void *check_bytes8(const u8 *start, u8 value, unsigned int bytes) in check_bytes8() argument
992 while (bytes) { in check_bytes8()
996 bytes--; in check_bytes8()
1010 void *memchr_inv(const void *start, int c, size_t bytes) in memchr_inv() argument
1016 if (bytes <= 16) in memchr_inv()
1017 return check_bytes8(start, value, bytes); in memchr_inv()
1040 bytes -= prefix; in memchr_inv()
1043 words = bytes / 8; in memchr_inv()
1052 return check_bytes8(start, value, bytes % 8); in memchr_inv()
DKconfig.kmemcheck65 int "kmemcheck: shadow copy size (5 => 32 bytes, 6 => 64 bytes)"
70 Select the number of shadow bytes to save along with each entry of
71 the queue. These bytes indicate what parts of an allocation are
Dcrc32.c981 int bytes = 0; local
992 bytes += 2*test[i].length;
1022 bytes, nsec);
1067 int bytes = 0; local
1078 bytes += 2*test[i].length;
1116 bytes, nsec);
DKconfig113 and computes the total elapsed time and number of bytes processed.
125 bool "Slice by 8 bytes"
127 Calculate checksum 8 bytes at a time with a clever slicing algorithm.
136 bool "Slice by 4 bytes"
138 Calculate checksum 4 bytes at a time with a clever slicing algorithm.
/lib/raid6/
Drecov.c25 static void raid6_2data_recov_intx1(int disks, size_t bytes, int faila, in raid6_2data_recov_intx1() argument
46 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_intx1()
59 while ( bytes-- ) { in raid6_2data_recov_intx1()
69 static void raid6_datap_recov_intx1(int disks, size_t bytes, int faila, in raid6_datap_recov_intx1() argument
84 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_datap_recov_intx1()
94 while ( bytes-- ) { in raid6_datap_recov_intx1()
113 void raid6_dual_recov(int disks, size_t bytes, int faila, int failb, void **ptrs) in raid6_dual_recov() argument
124 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_dual_recov()
133 raid6_datap_recov(disks, bytes, faila, ptrs); in raid6_dual_recov()
136 raid6_2data_recov(disks, bytes, faila, failb, ptrs); in raid6_dual_recov()
Drecov_avx2.c22 static void raid6_2data_recov_avx2(int disks, size_t bytes, int faila, in raid6_2data_recov_avx2() argument
43 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_avx2()
61 while (bytes) { in raid6_2data_recov_avx2()
134 bytes -= 64; in raid6_2data_recov_avx2()
181 bytes -= 32; in raid6_2data_recov_avx2()
192 static void raid6_datap_recov_avx2(int disks, size_t bytes, int faila, in raid6_datap_recov_avx2() argument
208 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_datap_recov_avx2()
221 while (bytes) { in raid6_datap_recov_avx2()
269 bytes -= 64; in raid6_datap_recov_avx2()
299 bytes -= 32; in raid6_datap_recov_avx2()
Drecov_ssse3.c22 static void raid6_2data_recov_ssse3(int disks, size_t bytes, int faila, in raid6_2data_recov_ssse3() argument
45 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_ssse3()
69 while (bytes) { in raid6_2data_recov_ssse3()
138 bytes -= 32; in raid6_2data_recov_ssse3()
185 bytes -= 16; in raid6_2data_recov_ssse3()
197 static void raid6_datap_recov_ssse3(int disks, size_t bytes, int faila, in raid6_datap_recov_ssse3() argument
215 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_datap_recov_ssse3()
228 while (bytes) { in raid6_datap_recov_ssse3()
283 bytes -= 32; in raid6_datap_recov_ssse3()
314 bytes -= 16; in raid6_datap_recov_ssse3()
Dsse2.c41 static void raid6_sse21_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse21_gen_syndrome() argument
56 for ( d = 0 ; d < bytes ; d += 16 ) { in raid6_sse21_gen_syndrome()
93 size_t bytes, void **ptrs) in raid6_sse21_xor_syndrome() argument
107 for ( d = 0 ; d < bytes ; d += 16 ) { in raid6_sse21_xor_syndrome()
151 static void raid6_sse22_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse22_gen_syndrome() argument
168 for ( d = 0 ; d < bytes ; d += 32 ) { in raid6_sse22_gen_syndrome()
204 size_t bytes, void **ptrs) in raid6_sse22_xor_syndrome() argument
218 for ( d = 0 ; d < bytes ; d += 32 ) { in raid6_sse22_xor_syndrome()
283 static void raid6_sse24_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse24_gen_syndrome() argument
309 for ( d = 0 ; d < bytes ; d += 64 ) { in raid6_sse24_gen_syndrome()
[all …]
Dneon.c34 size_t bytes, void **ptrs) \
40 (unsigned long)bytes, ptrs); \
45 size_t bytes, void **ptrs) \
51 start, stop, (unsigned long)bytes, ptrs); \
Davx2.c42 static void raid6_avx21_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_avx21_gen_syndrome() argument
57 for (d = 0; d < bytes; d += 32) { in raid6_avx21_gen_syndrome()
101 static void raid6_avx22_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_avx22_gen_syndrome() argument
117 for (d = 0; d < bytes; d += 64) { in raid6_avx22_gen_syndrome()
165 static void raid6_avx24_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_avx24_gen_syndrome() argument
188 for (d = 0; d < bytes; d += 128) { in raid6_avx24_gen_syndrome()
Dmmx.c40 static void raid6_mmx1_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_mmx1_gen_syndrome() argument
55 for ( d = 0 ; d < bytes ; d += 8 ) { in raid6_mmx1_gen_syndrome()
88 static void raid6_mmx2_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_mmx2_gen_syndrome() argument
104 for ( d = 0 ; d < bytes ; d += 16 ) { in raid6_mmx2_gen_syndrome()
Dsse1.c45 static void raid6_sse11_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse11_gen_syndrome() argument
60 for ( d = 0 ; d < bytes ; d += 8 ) { in raid6_sse11_gen_syndrome()
104 static void raid6_sse12_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse12_gen_syndrome() argument
121 for ( d = 0 ; d < bytes ; d += 16 ) { in raid6_sse12_gen_syndrome()
Daltivec.uc68 raid6_altivec$#_gen_syndrome_real(int disks, size_t bytes, void **ptrs)
81 for ( d = 0 ; d < bytes ; d += NSIZE*$# ) {
97 static void raid6_altivec$#_gen_syndrome(int disks, size_t bytes, void **ptrs)
102 raid6_altivec$#_gen_syndrome_real(disks, bytes, ptrs);
Dneon.uc53 void raid6_neon$#_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs)
66 for ( d = 0 ; d < bytes ; d += NSIZE*$# ) {
84 unsigned long bytes, void **ptrs)
97 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*$# ) {
Dtilegx.uc50 void raid6_tilegx$#_gen_syndrome(int disks, size_t bytes, void **ptrs)
65 for ( d = 0 ; d < bytes ; d += NSIZE*$# ) {
/lib/842/
D842_decompress.c287 u64 op, rep, tmp, bytes, total; in sw842_decompress() local
346 ret = next_bits(&p, &bytes, SHORT_DATA_BITS); in sw842_decompress()
350 if (!bytes || bytes > SHORT_DATA_BITS_MAX) in sw842_decompress()
353 while (bytes-- > 0) { in sw842_decompress()