Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 64) sorted by relevance

123

/lib/livepatch/
Dtest_klp_shadow_vars.c63 void *ret = klp_shadow_get(obj, id); in shadow_get() local
66 __func__, ptr_id(obj), id, ptr_id(ret)); in shadow_get()
68 return ret; in shadow_get()
75 void *ret = klp_shadow_alloc(obj, id, size, gfp_flags, ctor, in shadow_alloc() local
79 ptr_id(ctor_data), ptr_id(ret)); in shadow_alloc()
80 return ret; in shadow_alloc()
87 void *ret = klp_shadow_get_or_alloc(obj, id, size, gfp_flags, ctor, in shadow_get_or_alloc() local
91 ptr_id(ctor_data), ptr_id(ret)); in shadow_get_or_alloc()
92 return ret; in shadow_get_or_alloc()
137 void *ret; in test_klp_shadow_vars_init() local
[all …]
/lib/
Dtest_siphash.c118 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 …]
Dtest_user_copy.c49 int ret = 0; in test_check_nonzero_user() local
87 ret |= test(copy_to_user(umem, kmem, size), in test_check_nonzero_user()
96 ret |= test(retval != expected, in test_check_nonzero_user()
102 return ret; in test_check_nonzero_user()
108 int ret = 0; in test_copy_struct_from_user() local
113 ret = test(umem_src == NULL, "kmalloc failed"); in test_copy_struct_from_user()
114 if (ret) in test_copy_struct_from_user()
118 ret = test(expected == NULL, "kmalloc failed"); in test_copy_struct_from_user()
119 if (ret) in test_copy_struct_from_user()
124 ret |= test(copy_to_user(umem, umem_src, size), in test_copy_struct_from_user()
[all …]
Dlocking-selftest.c1310 int ret; in ww_test_fail_acquire() local
1315 ret = WWL(&o, &t); in ww_test_fail_acquire()
1318 WARN_ON(ret)) in ww_test_fail_acquire()
1322 ret = WWL(&o, &t); in ww_test_fail_acquire()
1323 WARN_ON(ret != -EALREADY); in ww_test_fail_acquire()
1325 ret = WWT(&o); in ww_test_fail_acquire()
1326 WARN_ON(ret); in ww_test_fail_acquire()
1330 ret = WWL(&o, &t2); in ww_test_fail_acquire()
1331 WARN_ON(ret != -EDEADLK); in ww_test_fail_acquire()
1344 int ret; in ww_test_normal() local
[all …]
Dtest_kmod.c297 int ret = 0; in tally_up_work() local
305 ret = tally_work_test(info); in tally_up_work()
306 if (ret) in tally_up_work()
307 err_ret = ret; in tally_up_work()
392 int ret; in try_requests() local
401 ret = try_one_request(test_dev, idx); in try_requests()
402 if (ret) { in try_requests()
530 int ret; in trigger_config_run() local
535 ret = __trigger_config_run(test_dev); in trigger_config_run()
536 if (ret < 0) in trigger_config_run()
[all …]
Dtest_static_keys.c71 bool ret, init; in verify_keys() local
74 ret = static_key_enabled(keys[i].key); in verify_keys()
76 if (ret != (invert ? !init : init)) in verify_keys()
78 ret = keys[i].test_key(); in verify_keys()
80 if (!ret) in verify_keys()
83 if (ret) in verify_keys()
111 int ret; in test_key_func() local
213 ret = verify_keys(static_key_tests, size, false); in test_key_func()
214 if (ret) in test_key_func()
218 ret = verify_keys(static_key_tests, size, true); in test_key_func()
[all …]
Dkfifo.c182 unsigned long ret; in kfifo_copy_from_user() local
192 ret = copy_from_user(fifo->data + off, from, l); in kfifo_copy_from_user()
193 if (unlikely(ret)) in kfifo_copy_from_user()
194 ret = DIV_ROUND_UP(ret + len - l, esize); in kfifo_copy_from_user()
196 ret = copy_from_user(fifo->data, from + l, len - l); in kfifo_copy_from_user()
197 if (unlikely(ret)) in kfifo_copy_from_user()
198 ret = DIV_ROUND_UP(ret, esize); in kfifo_copy_from_user()
205 *copied = len - ret * esize; in kfifo_copy_from_user()
207 return ret; in kfifo_copy_from_user()
214 unsigned long ret; in __kfifo_from_user() local
[all …]
Dstmp_device.c40 int ret; in stmp_reset_block() local
44 ret = stmp_clear_poll_bit(reset_addr, STMP_MODULE_SFTRST); in stmp_reset_block()
45 if (unlikely(ret)) in stmp_reset_block()
62 ret = stmp_clear_poll_bit(reset_addr, STMP_MODULE_SFTRST); in stmp_reset_block()
63 if (unlikely(ret)) in stmp_reset_block()
67 ret = stmp_clear_poll_bit(reset_addr, STMP_MODULE_CLKGATE); in stmp_reset_block()
68 if (unlikely(ret)) in stmp_reset_block()
Dparser.c130 int ret; in match_number() local
137 ret = 0; in match_number()
140 ret = -EINVAL; in match_number()
142 ret = -ERANGE; in match_number()
146 return ret; in match_number()
162 int ret; in match_u64int() local
169 ret = kstrtoull(buf, base, &val); in match_u64int()
170 if (!ret) in match_u64int()
173 return ret; in match_u64int()
301 size_t ret = src->to - src->from; in match_strlcpy() local
[all …]
Ddecompress_unlz4.c37 int ret = -1; in unlz4() local
153 ret = LZ4_decompress_fast(inp, outp, dest_len); in unlz4()
154 chunksize = ret; in unlz4()
158 ret = LZ4_decompress_safe(inp, outp, chunksize, dest_len); in unlz4()
159 dest_len = ret; in unlz4()
161 if (ret < 0) { in unlz4()
166 ret = -1; in unlz4()
187 ret = 0; in unlz4()
195 return ret; in unlz4()
Dmemweight.c13 size_t ret = 0; in memweight() local
19 ret += hweight8(*bitmap); in memweight()
24 ret += bitmap_weight((unsigned long *)bitmap, in memweight()
35 ret += hweight8(*bitmap); in memweight()
37 return ret; in memweight()
Dcmdline.c129 unsigned long long ret = simple_strtoull(ptr, &endptr, 0); in memparse() local
134 ret <<= 10; in memparse()
138 ret <<= 10; in memparse()
142 ret <<= 10; in memparse()
146 ret <<= 10; in memparse()
150 ret <<= 10; in memparse()
154 ret <<= 10; in memparse()
163 return ret; in memparse()
Dkobject_uevent.c69 int ret = -EINVAL; in kobject_action_type() local
92 ret = 0; in kobject_action_type()
96 return ret; in kobject_action_type()
348 int ret = 0; in uevent_net_broadcast_tagged() local
371 ret = netlink_broadcast(usk, skb, 0, 1, GFP_KERNEL); in uevent_net_broadcast_tagged()
373 if (ret == -ENOBUFS || ret == -ESRCH) in uevent_net_broadcast_tagged()
374 ret = 0; in uevent_net_broadcast_tagged()
376 return ret; in uevent_net_broadcast_tagged()
385 int ret = 0; in kobject_uevent_net_broadcast() local
408 ret = uevent_net_broadcast_untagged(env, action_string, in kobject_uevent_net_broadcast()
[all …]
Dseq_buf.c86 int ret; in seq_buf_printf() local
89 ret = seq_buf_vprintf(s, fmt, ap); in seq_buf_printf()
92 return ret; in seq_buf_printf()
116 int ret; in seq_buf_bprintf() local
121 ret = bstr_printf(s->buffer + s->len, len, fmt, binary); in seq_buf_bprintf()
122 if (s->len + ret < s->size) { in seq_buf_bprintf()
123 s->len += ret; in seq_buf_bprintf()
309 int ret; local
322 ret = copy_to_user(ubuf, s->buffer + s->readpos, cnt);
323 if (ret == cnt)
[all …]
Doid_registry.c111 size_t ret; in sprint_oid() local
118 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40); in sprint_oid()
139 ret += count = snprintf(buffer, bufsize, ".%lu", num); in sprint_oid()
146 return ret; in sprint_oid()
165 int ret; in sprint_OID() local
169 ret = sprint_oid(oid_data + oid_index[oid], in sprint_OID()
172 BUG_ON(ret == -EBADMSG); in sprint_OID()
173 return ret; in sprint_OID()
Dhexdump.c113 int ret; in hex_dump_to_buffer() local
138 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
141 if (ret >= linebuflen - lx) in hex_dump_to_buffer()
143 lx += ret; in hex_dump_to_buffer()
149 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
152 if (ret >= linebuflen - lx) in hex_dump_to_buffer()
154 lx += ret; in hex_dump_to_buffer()
160 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
163 if (ret >= linebuflen - lx) in hex_dump_to_buffer()
165 lx += ret; in hex_dump_to_buffer()
Dnodemask.c8 int ret = __next_node(node, srcp); in __next_node_in() local
10 if (ret == MAX_NUMNODES) in __next_node_in()
11 ret = __first_node(srcp); in __next_node_in()
12 return ret; in __next_node_in()
Dradix-tree.c247 struct radix_tree_node *ret = NULL; in radix_tree_node_alloc() local
262 ret = kmem_cache_alloc(radix_tree_node_cachep, in radix_tree_node_alloc()
264 if (ret) in radix_tree_node_alloc()
274 ret = rtp->nodes; in radix_tree_node_alloc()
275 rtp->nodes = ret->parent; in radix_tree_node_alloc()
282 kmemleak_update_trace(ret); in radix_tree_node_alloc()
285 ret = kmem_cache_alloc(radix_tree_node_cachep, gfp_mask); in radix_tree_node_alloc()
287 BUG_ON(radix_tree_is_internal_node(ret)); in radix_tree_node_alloc()
288 if (ret) { in radix_tree_node_alloc()
289 ret->shift = shift; in radix_tree_node_alloc()
[all …]
Dis_single_threaded.c20 bool ret; in current_is_single_threaded() local
28 ret = false; in current_is_single_threaded()
49 ret = true; in current_is_single_threaded()
53 return ret; in current_is_single_threaded()
Dpercpu_counter.c107 s64 ret; in __percpu_counter_sum() local
112 ret = fbc->count; in __percpu_counter_sum()
115 ret += *pcount; in __percpu_counter_sum()
118 return ret; in __percpu_counter_sum()
227 int ret; in percpu_counter_startup() local
229 ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "lib/percpu_cnt:online", in percpu_counter_startup()
231 WARN_ON(ret < 0); in percpu_counter_startup()
232 ret = cpuhp_setup_state_nocalls(CPUHP_PERCPU_CNT_DEAD, in percpu_counter_startup()
235 WARN_ON(ret < 0); in percpu_counter_startup()
/lib/842/
D842_compress.c156 int ret; in __split_add_bits() local
161 ret = add_bits(p, d >> s, n - s); in __split_add_bits()
162 if (ret) in __split_add_bits()
163 return ret; in __split_add_bits()
224 int ret, i, b = 0; in add_template() local
233 ret = add_bits(p, t[4], OP_BITS); in add_template()
234 if (ret) in add_template()
235 return ret; in add_template()
245 ret = add_bits(p, p->index8[0], I8_BITS); in add_template()
247 ret = add_bits(p, p->data8[0], 64); in add_template()
[all …]
D842_decompress.c70 int ret; in __split_next_bits() local
77 ret = next_bits(p, &tmp, n - s); in __split_next_bits()
78 if (ret) in __split_next_bits()
79 return ret; in __split_next_bits()
80 ret = next_bits(p, d, s); in __split_next_bits()
81 if (ret) in __split_next_bits()
82 return ret; in __split_next_bits()
134 int ret; in do_data() local
139 ret = next_bits(p, &v, n * 8); in do_data()
140 if (ret) in do_data()
[all …]
/lib/vdso/
Dgettimeofday.c113 int ret = __cvdso_clock_gettime_common(clock, ts); in __cvdso_clock_gettime() local
115 if (unlikely(ret)) in __cvdso_clock_gettime()
124 int ret; in __cvdso_clock_gettime32() local
126 ret = __cvdso_clock_gettime_common(clock, &ts); in __cvdso_clock_gettime32()
129 if (unlikely(ret)) in __cvdso_clock_gettime32()
132 if (unlikely(ret)) in __cvdso_clock_gettime32()
133 ret = clock_gettime_fallback(clock, &ts); in __cvdso_clock_gettime32()
136 if (likely(!ret)) { in __cvdso_clock_gettime32()
140 return ret; in __cvdso_clock_gettime32()
226 int ret = __cvdso_clock_getres_common(clock, res); in __cvdso_clock_getres() local
[all …]
/lib/xz/
Dxz_dec_stream.c220 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 …]
Dxz_dec_test.c39 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()

123