Searched defs:ret (Results 1 - 25 of 45) sorted by relevance

12

/lib/
H A Dratelimit.c31 int ret; local
58 ret = 1;
61 ret = 0;
65 return ret;
H A Dis_single_threaded.c23 bool ret; local
31 ret = false;
53 ret = true;
57 return ret;
H A Dmemweight.c12 size_t ret = 0; local
18 ret += hweight8(*bitmap);
23 ret += bitmap_weight((unsigned long *)bitmap,
34 ret += hweight8(*bitmap);
36 return ret;
H A Dstmp_device.c43 int ret; local
47 ret = stmp_clear_poll_bit(reset_addr, STMP_MODULE_SFTRST);
48 if (unlikely(ret))
65 ret = stmp_clear_poll_bit(reset_addr, STMP_MODULE_SFTRST);
66 if (unlikely(ret))
70 ret = stmp_clear_poll_bit(reset_addr, STMP_MODULE_CLKGATE);
71 if (unlikely(ret))
H A Dtest_user_copy.c38 int ret = 0; local
62 ret |= test(copy_from_user(kmem, usermem, PAGE_SIZE),
64 ret |= test(copy_to_user(usermem, kmem, PAGE_SIZE),
66 ret |= test(get_user(value, (unsigned long __user *)usermem),
68 ret |= test(put_user(value, (unsigned long __user *)usermem),
72 ret |= test(!copy_from_user(kmem, (char __user *)(kmem + PAGE_SIZE),
75 ret |= test(!copy_from_user(bad_usermem, (char __user *)kmem,
78 ret |= test(!copy_to_user((char __user *)kmem, kmem + PAGE_SIZE,
81 ret |= test(!copy_to_user((char __user *)kmem, bad_usermem,
84 ret |
[all...]
H A Datomic64.c158 int ret = 0; local
163 ret = 1;
166 return ret;
H A Dcmdline.c131 unsigned long long ret = simple_strtoull(ptr, &endptr, 0); local
136 ret <<= 10;
139 ret <<= 10;
142 ret <<= 10;
145 ret <<= 10;
148 ret <<= 10;
151 ret <<= 10;
160 return ret;
H A Dcpumask.c187 int ret = 0; local
219 ret = -EAGAIN;
224 if (!ret)
227 return ret;
H A Ddecompress_unlz4.c40 int ret = -1; local
155 ret = lz4_decompress(inp, &chunksize, outp, dest_len);
158 ret = lz4_decompress_unknownoutputsize(inp, chunksize, outp,
161 if (ret < 0) {
166 ret = -1;
187 ret = 0;
195 return ret;
H A Ddecompress_unlzo.c122 int ret = -1; local
279 ret = 0;
287 return ret;
H A Doid_registry.c115 size_t ret; local
122 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40);
143 ret += count = snprintf(buffer, bufsize, ".%lu", num);
150 return ret;
165 int ret; local
169 ret = sprint_oid(oid_data + oid_index[oid],
172 BUG_ON(ret == -EBADMSG);
173 return ret;
H A Dasn1_decoder.c175 int ret; local
306 ret = actions[machine[pc + 1]](context, hdr, tag, data + dp, len);
307 if (ret < 0)
308 return ret;
314 ret = actions[machine[pc + 2]](context, hdr, tag, data + dp, len);
315 if (ret < 0)
316 return ret;
327 ret = asn1_find_indefinite_length(
329 if (ret < 0)
420 ret
[all...]
H A Ddecompress_unxz.c259 enum xz_ret ret; local
300 ret = xz_dec_run(s, &b);
316 ret = XZ_BUF_ERROR;
323 ret = xz_dec_run(s, &b);
326 || (ret != XZ_OK && b.out_pos > 0))) {
328 * Setting ret here may hide an error
333 ret = XZ_BUF_ERROR;
337 } while (ret == XZ_OK);
351 switch (ret) {
H A Dflex_array.c91 struct flex_array *ret; local
105 ret = kzalloc(sizeof(struct flex_array), flags);
106 if (!ret)
108 ret->element_size = element_size;
109 ret->total_nr_elements = total;
110 ret->elems_per_part = elems_per_part;
111 ret->reciprocal_elems = reciprocal_elems;
112 if (elements_fit_in_base(ret) && !(flags & __GFP_ZERO))
113 memset(&ret->parts[0], FLEX_ARRAY_FREE,
115 return ret;
380 int ret = 0; local
[all...]
H A Dparser.c132 int ret; local
142 ret = 0;
145 ret = -EINVAL;
147 ret = -ERANGE;
151 return ret;
262 size_t ret = src->to - src->from; local
265 size_t len = ret >= size ? size - 1 : ret;
269 return ret;
H A Dpercpu_counter.c100 s64 ret; local
105 ret = fbc->count;
108 ret += *pcount;
111 return ret;
H A Dtest-string_helpers.c318 int rc = -ENOMEM, ret; local
320 ret = string_escape_str_any_np(in, &buf, strlen(in), NULL);
321 if (ret == rc)
324 pr_err("Test 'escape nomem' failed: got %d instead of %d\n", ret, rc);
H A Dts_bm.c102 int x = i+g-1, y = j+g-1, ret = 0; local
106 ret = 1;
110 ret = pattern[i-1] != pattern[j-1];
115 return ret;
H A Dkfifo.c195 unsigned long ret; local
205 ret = copy_from_user(fifo->data + off, from, l);
206 if (unlikely(ret))
207 ret = DIV_ROUND_UP(ret + len - l, esize);
209 ret = copy_from_user(fifo->data, from + l, len - l);
210 if (unlikely(ret))
211 ret = DIV_ROUND_UP(ret, esize);
218 *copied = len - ret * esiz
227 unsigned long ret; local
253 unsigned long ret; local
287 unsigned long ret; local
515 unsigned long ret; local
539 unsigned long ret; local
[all...]
H A Dkobject_uevent.c69 int ret = -EINVAL; local
83 ret = 0;
87 return ret;
H A Dstring_helpers.c445 int ret = 0; local
466 ret = escape_space(c, &p, &osz);
467 if (ret < 0)
469 if (ret > 0)
474 ret = escape_special(c, &p, &osz);
475 if (ret < 0)
477 if (ret > 0)
482 ret = escape_null(c, &p, &osz);
483 if (ret < 0)
485 if (ret >
[all...]
/lib/xz/
H A Dxz_dec_test.c39 static enum xz_ret ret; variable in typeref:enum:xz_ret
72 ret = XZ_OK;
87 if (ret == XZ_OK)
107 if (ret != XZ_OK) {
121 && ret == XZ_OK) {
133 ret = xz_dec_run(state, &buffers);
137 switch (ret) {
H A Dxz_dec_bcj.c35 enum xz_ret ret; member in struct:xz_dec_bcj
433 if (s->ret == XZ_STREAM_END)
454 s->ret = xz_dec_lzma2_run(lzma2, b);
455 if (s->ret != XZ_STREAM_END
456 && (s->ret != XZ_OK || s->single_call))
457 return s->ret;
466 if (s->ret == XZ_STREAM_END)
499 s->ret = xz_dec_lzma2_run(lzma2, b);
506 if (s->ret != XZ_OK && s->ret !
[all...]
/lib/lz4/
H A Dlz4_compress.c421 int ret = -1; local
438 return ret;
H A Dlz4_decompress.c306 int ret = -1; local
316 return ret;
325 int ret = -1; local
336 return ret;

Completed in 972 milliseconds

12