/lib/ |
D | test_siphash.c | 118 int ret = 0; in siphash_test_init() local 126 ret = -EINVAL; in siphash_test_init() 131 ret = -EINVAL; in siphash_test_init() 136 ret = -EINVAL; in siphash_test_init() 141 ret = -EINVAL; in siphash_test_init() 147 ret = -EINVAL; in siphash_test_init() 152 ret = -EINVAL; in siphash_test_init() 158 ret = -EINVAL; in siphash_test_init() 164 ret = -EINVAL; in siphash_test_init() 169 ret = -EINVAL; in siphash_test_init() [all …]
|
D | test_user_copy.c | 38 int ret = 0; in test_user_copy_init() local 64 ret |= test(copy_from_user(kmem, usermem, PAGE_SIZE), in test_user_copy_init() 66 ret |= test(copy_to_user(usermem, kmem, PAGE_SIZE), in test_user_copy_init() 68 ret |= test(get_user(value, (unsigned long __user *)usermem), in test_user_copy_init() 70 ret |= test(put_user(value, (unsigned long __user *)usermem), in test_user_copy_init() 78 ret |= test(!copy_from_user(kmem, (char __user *)(kmem + PAGE_SIZE), in test_user_copy_init() 89 ret |= test(!copy_from_user(bad_usermem, (char __user *)kmem, in test_user_copy_init() 93 ret |= test(!copy_to_user((char __user *)kmem, kmem + PAGE_SIZE, in test_user_copy_init() 96 ret |= test(!copy_to_user((char __user *)kmem, bad_usermem, in test_user_copy_init() 100 ret |= test(!get_user(value, (unsigned long __user *)kmem), in test_user_copy_init() [all …]
|
D | locking-selftest.c | 1136 int ret; in ww_test_fail_acquire() local 1141 ret = WWL(&o, &t); in ww_test_fail_acquire() 1144 WARN_ON(ret)) in ww_test_fail_acquire() 1148 ret = WWL(&o, &t); in ww_test_fail_acquire() 1149 WARN_ON(ret != -EALREADY); in ww_test_fail_acquire() 1151 ret = WWT(&o); in ww_test_fail_acquire() 1152 WARN_ON(ret); in ww_test_fail_acquire() 1156 ret = WWL(&o, &t2); in ww_test_fail_acquire() 1157 WARN_ON(ret != -EDEADLK); in ww_test_fail_acquire() 1170 int ret; in ww_test_normal() local [all …]
|
D | stmp_device.c | 44 int ret; in stmp_reset_block() local 48 ret = stmp_clear_poll_bit(reset_addr, STMP_MODULE_SFTRST); in stmp_reset_block() 49 if (unlikely(ret)) in stmp_reset_block() 66 ret = stmp_clear_poll_bit(reset_addr, STMP_MODULE_SFTRST); in stmp_reset_block() 67 if (unlikely(ret)) in stmp_reset_block() 71 ret = stmp_clear_poll_bit(reset_addr, STMP_MODULE_CLKGATE); in stmp_reset_block() 72 if (unlikely(ret)) in stmp_reset_block()
|
D | test_static_keys.c | 76 bool ret, init; in verify_keys() local 79 ret = static_key_enabled(keys[i].key); in verify_keys() 81 if (ret != (invert ? !init : init)) in verify_keys() 83 ret = keys[i].test_key(); in verify_keys() 85 if (!ret) in verify_keys() 88 if (ret) in verify_keys() 97 int ret; in test_static_key_init() local 199 ret = verify_keys(static_key_tests, size, false); in test_static_key_init() 200 if (ret) in test_static_key_init() 204 ret = verify_keys(static_key_tests, size, true); in test_static_key_init() [all …]
|
D | kfifo.c | 196 unsigned long ret; in kfifo_copy_from_user() local 206 ret = copy_from_user(fifo->data + off, from, l); in kfifo_copy_from_user() 207 if (unlikely(ret)) in kfifo_copy_from_user() 208 ret = DIV_ROUND_UP(ret + len - l, esize); in kfifo_copy_from_user() 210 ret = copy_from_user(fifo->data, from + l, len - l); in kfifo_copy_from_user() 211 if (unlikely(ret)) in kfifo_copy_from_user() 212 ret = DIV_ROUND_UP(ret, esize); in kfifo_copy_from_user() 219 *copied = len - ret * esize; in kfifo_copy_from_user() 221 return ret; in kfifo_copy_from_user() 228 unsigned long ret; in __kfifo_from_user() local [all …]
|
D | cmdline.c | 131 unsigned long long ret = simple_strtoull(ptr, &endptr, 0); in memparse() local 136 ret <<= 10; in memparse() 139 ret <<= 10; in memparse() 142 ret <<= 10; in memparse() 145 ret <<= 10; in memparse() 148 ret <<= 10; in memparse() 151 ret <<= 10; in memparse() 160 return ret; in memparse()
|
D | memweight.c | 12 size_t ret = 0; in memweight() local 18 ret += hweight8(*bitmap); in memweight() 23 ret += bitmap_weight((unsigned long *)bitmap, in memweight() 34 ret += hweight8(*bitmap); in memweight() 36 return ret; in memweight()
|
D | flex_array.c | 91 struct flex_array *ret; in flex_array_alloc() local 105 ret = kzalloc(sizeof(struct flex_array), flags); in flex_array_alloc() 106 if (!ret) in flex_array_alloc() 108 ret->element_size = element_size; in flex_array_alloc() 109 ret->total_nr_elements = total; in flex_array_alloc() 110 ret->elems_per_part = elems_per_part; in flex_array_alloc() 111 ret->reciprocal_elems = reciprocal_elems; in flex_array_alloc() 112 if (elements_fit_in_base(ret) && !(flags & __GFP_ZERO)) in flex_array_alloc() 113 memset(&ret->parts[0], FLEX_ARRAY_FREE, in flex_array_alloc() 115 return ret; in flex_array_alloc() [all …]
|
D | oid_registry.c | 115 size_t ret; in sprint_oid() local 122 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40); in sprint_oid() 143 ret += count = snprintf(buffer, bufsize, ".%lu", num); in sprint_oid() 150 return ret; in sprint_oid() 169 int ret; in sprint_OID() local 173 ret = sprint_oid(oid_data + oid_index[oid], in sprint_OID() 176 BUG_ON(ret == -EBADMSG); in sprint_OID() 177 return ret; in sprint_OID()
|
D | seq_buf.c | 85 int ret; in seq_buf_printf() local 88 ret = seq_buf_vprintf(s, fmt, ap); in seq_buf_printf() 91 return ret; in seq_buf_printf() 115 int ret; in seq_buf_bprintf() local 120 ret = bstr_printf(s->buffer + s->len, len, fmt, binary); in seq_buf_bprintf() 121 if (s->len + ret < s->size) { in seq_buf_bprintf() 122 s->len += ret; in seq_buf_bprintf() 312 int ret; local 323 ret = copy_to_user(ubuf, s->buffer + s->readpos, cnt); 324 if (ret == cnt) [all …]
|
D | parser.c | 132 int ret; in match_number() local 142 ret = 0; in match_number() 145 ret = -EINVAL; in match_number() 147 ret = -ERANGE; in match_number() 151 return ret; in match_number() 262 size_t ret = src->to - src->from; in match_strlcpy() local 265 size_t len = ret >= size ? size - 1 : ret; in match_strlcpy() 269 return ret; in match_strlcpy()
|
D | hexdump.c | 116 int ret; in hex_dump_to_buffer() local 141 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer() 144 if (ret >= linebuflen - lx) in hex_dump_to_buffer() 146 lx += ret; in hex_dump_to_buffer() 152 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer() 155 if (ret >= linebuflen - lx) in hex_dump_to_buffer() 157 lx += ret; in hex_dump_to_buffer() 163 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer() 166 if (ret >= linebuflen - lx) in hex_dump_to_buffer() 168 lx += ret; in hex_dump_to_buffer()
|
D | is_single_threaded.c | 23 bool ret; in current_is_single_threaded() local 31 ret = false; in current_is_single_threaded() 52 ret = true; in current_is_single_threaded() 56 return ret; in current_is_single_threaded()
|
D | ratelimit.c | 31 int ret; in ___ratelimit() local 58 ret = 1; in ___ratelimit() 61 ret = 0; in ___ratelimit() 65 return ret; in ___ratelimit()
|
D | decompress_unlz4.c | 40 int ret = -1; in unlz4() local 162 ret = lz4_decompress(inp, &chunksize, outp, dest_len); in unlz4() 165 ret = lz4_decompress_unknownoutputsize(inp, chunksize, outp, in unlz4() 168 if (ret < 0) { in unlz4() 173 ret = -1; in unlz4() 195 ret = 0; in unlz4() 203 return ret; in unlz4()
|
D | radix-tree.c | 183 struct radix_tree_node *ret = NULL; in radix_tree_node_alloc() local 201 ret = rtp->nodes; in radix_tree_node_alloc() 202 rtp->nodes = ret->private_data; in radix_tree_node_alloc() 203 ret->private_data = NULL; in radix_tree_node_alloc() 210 kmemleak_update_trace(ret); in radix_tree_node_alloc() 212 if (ret == NULL) in radix_tree_node_alloc() 213 ret = kmem_cache_alloc(radix_tree_node_cachep, gfp_mask); in radix_tree_node_alloc() 215 BUG_ON(radix_tree_is_indirect_ptr(ret)); in radix_tree_node_alloc() 216 return ret; in radix_tree_node_alloc() 258 int ret = -ENOMEM; in __radix_tree_preload() local [all …]
|
D | decompress_unxz.c | 259 enum xz_ret ret; in unxz() local 300 ret = xz_dec_run(s, &b); in unxz() 316 ret = XZ_BUF_ERROR; in unxz() 323 ret = xz_dec_run(s, &b); in unxz() 326 || (ret != XZ_OK && b.out_pos > 0))) { in unxz() 333 ret = XZ_BUF_ERROR; in unxz() 337 } while (ret == XZ_OK); in unxz() 351 switch (ret) { in unxz()
|
D | asn1_decoder.c | 182 int ret; in asn1_ber_decoder() local 334 ret = asn1_find_indefinite_length( in asn1_ber_decoder() 336 if (ret < 0) in asn1_ber_decoder() 349 ret = actions[act](context, hdr, tag, data + dp, len); in asn1_ber_decoder() 350 if (ret < 0) in asn1_ber_decoder() 351 return ret; in asn1_ber_decoder() 440 ret = actions[act](context, hdr, 0, data + tdp, len); in asn1_ber_decoder() 441 if (ret < 0) in asn1_ber_decoder() 442 return ret; in asn1_ber_decoder() 453 ret = actions[machine[pc + 1]](context, hdr, tag, data + tdp, len); in asn1_ber_decoder() [all …]
|
D | sg_split.c | 156 int i, ret; in sg_split() local 163 ret = sg_calculate_split(in, sg_nents(in), nb_splits, skip, split_sizes, in sg_split() 165 if (ret < 0) in sg_split() 168 ret = -ENOMEM; in sg_split() 181 ret = sg_calculate_split(in, in_mapped_nents, nb_splits, skip, in sg_split() 183 if (ret < 0) in sg_split() 200 return ret; in sg_split()
|
D | libcrc32c.c | 45 u32 ret, *ctx = (u32 *)shash_desc_ctx(shash); in crc32c() local 55 ret = *ctx; in crc32c() 57 return ret; in crc32c()
|
/lib/842/ |
D | 842_decompress.c | 79 int ret; in __split_next_bits() local 86 ret = next_bits(p, &tmp, n - s); in __split_next_bits() 87 if (ret) in __split_next_bits() 88 return ret; in __split_next_bits() 89 ret = next_bits(p, d, s); in __split_next_bits() 90 if (ret) in __split_next_bits() 91 return ret; in __split_next_bits() 143 int ret; in do_data() local 148 ret = next_bits(p, &v, n * 8); in do_data() 149 if (ret) in do_data() [all …]
|
D | 842_compress.c | 165 int ret; in __split_add_bits() local 170 ret = add_bits(p, d >> s, n - s); in __split_add_bits() 171 if (ret) in __split_add_bits() 172 return ret; in __split_add_bits() 233 int ret, i, b = 0; in add_template() local 242 ret = add_bits(p, t[4], OP_BITS); in add_template() 243 if (ret) in add_template() 244 return ret; in add_template() 254 ret = add_bits(p, p->index8[0], I8_BITS); in add_template() 256 ret = add_bits(p, p->data8[0], 64); in add_template() [all …]
|
/lib/xz/ |
D | xz_dec_stream.c | 220 enum xz_ret ret; in dec_block() local 227 ret = xz_dec_bcj_run(s->bcj, s->lzma2, b); in dec_block() 230 ret = xz_dec_lzma2_run(s->lzma2, b); in dec_block() 248 if (ret == XZ_STREAM_END) { in dec_block() 277 return ret; in dec_block() 298 enum xz_ret ret; in dec_index() local 301 ret = dec_vli(s, b->in, &b->in_pos, b->in_size); in dec_index() 302 if (ret != XZ_STREAM_END) { in dec_index() 304 return ret; in dec_index() 451 enum xz_ret ret; in dec_block_header() local [all …]
|
D | xz_dec_test.c | 39 static enum xz_ret ret; variable 72 ret = XZ_OK; in xz_dec_test_open() 87 if (ret == XZ_OK) in xz_dec_test_release() 107 if (ret != XZ_OK) { in xz_dec_test_write() 121 && ret == XZ_OK) { in xz_dec_test_write() 133 ret = xz_dec_run(state, &buffers); in xz_dec_test_write() 137 switch (ret) { in xz_dec_test_write()
|