Home
last modified time | relevance | path

Searched refs:res (Results 1 – 22 of 22) sorted by relevance

/lib/
Dhweight.c21 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32()
22 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in __sw_hweight32()
23 res = (res + (res >> 4)) & 0x0F0F0F0F; in __sw_hweight32()
24 res = res + (res >> 8); in __sw_hweight32()
25 return (res + (res >> 16)) & 0x000000FF; in __sw_hweight32()
33 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16() local
34 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16()
35 res = (res + (res >> 4)) & 0x0F0F; in __sw_hweight16()
36 return (res + (res >> 8)) & 0x00FF; in __sw_hweight16()
42 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8() local
[all …]
Dkstrtox.c49 unsigned long long res; in _parse_integer() local
52 res = 0; in _parse_integer()
70 if (unlikely(res & (~0ull << 60))) { in _parse_integer()
71 if (res > div_u64(ULLONG_MAX - val, base)) in _parse_integer()
74 res = res * base + val; in _parse_integer()
78 *p = res; in _parse_integer()
82 static int _kstrtoull(const char *s, unsigned int base, unsigned long long *res) in _kstrtoull() argument
98 *res = _res; in _kstrtoull()
118 int kstrtoull(const char *s, unsigned int base, unsigned long long *res) in kstrtoull() argument
122 return _kstrtoull(s, base, res); in kstrtoull()
[all …]
Dstrncpy_from_user.c28 long res = 0; in do_strncpy_from_user() local
44 unsafe_get_user(c, (unsigned long __user *)(src+res), byte_at_a_time); in do_strncpy_from_user()
46 *(unsigned long *)(dst+res) = c; in do_strncpy_from_user()
50 return res + find_zero(data); in do_strncpy_from_user()
52 res += sizeof(unsigned long); in do_strncpy_from_user()
60 unsafe_get_user(c,src+res, efault); in do_strncpy_from_user()
61 dst[res] = c; in do_strncpy_from_user()
63 return res; in do_strncpy_from_user()
64 res++; in do_strncpy_from_user()
72 if (res >= count) in do_strncpy_from_user()
[all …]
Ddevres.c7 void devm_ioremap_release(struct device *dev, void *res) in devm_ioremap_release() argument
9 iounmap(*(void __iomem **)res); in devm_ioremap_release()
12 static int devm_ioremap_match(struct device *dev, void *res, void *match_data) in devm_ioremap_match() argument
14 return *(void **)res == match_data; in devm_ioremap_match()
134 void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res) in devm_ioremap_resource() argument
142 if (!res || resource_type(res) != IORESOURCE_MEM) { in devm_ioremap_resource()
147 size = resource_size(res); in devm_ioremap_resource()
148 name = res->name ?: dev_name(dev); in devm_ioremap_resource()
150 if (!devm_request_mem_region(dev, res->start, size, name)) { in devm_ioremap_resource()
151 dev_err(dev, "can't request region for resource %pR\n", res); in devm_ioremap_resource()
[all …]
Dstrnlen_user.c30 long align, res = 0; in do_strnlen_user() local
56 return res + find_zero(data) + 1 - align; in do_strnlen_user()
58 res += sizeof(unsigned long); in do_strnlen_user()
63 unsafe_get_user(c, (unsigned long __user *)(src+res), efault); in do_strnlen_user()
65 res -= align; in do_strnlen_user()
71 if (res >= count) in do_strnlen_user()
Dcmdline.c91 int res, i = 1; in get_options() local
94 res = get_option((char **)&str, ints + i); in get_options()
95 if (res == 0) in get_options()
97 if (res == 3) { in get_options()
110 if (res == 1) in get_options()
Dstring.c181 long res = 0; in strscpy() local
205 c = *(unsigned long *)(src+res); in strscpy()
209 *(unsigned long *)(dest+res) = c & zero_bytemask(data); in strscpy()
210 return res + find_zero(data); in strscpy()
212 *(unsigned long *)(dest+res) = c; in strscpy()
213 res += sizeof(unsigned long); in strscpy()
221 c = src[res]; in strscpy()
222 dest[res] = c; in strscpy()
224 return res; in strscpy()
225 res++; in strscpy()
[all …]
Ddigsig.c81 MPI in = NULL, res = NULL, pkey[2]; in digsig_verify_rsa() local
144 res = mpi_alloc(mpi_get_nlimbs(in) * 2); in digsig_verify_rsa()
145 if (!res) in digsig_verify_rsa()
148 err = mpi_powm(res, in, pkey[1], pkey[0]); in digsig_verify_rsa()
152 if (mpi_get_nlimbs(res) * BYTES_PER_MPI_LIMB > mlen) { in digsig_verify_rsa()
157 p = mpi_get_buffer(res, &l, NULL); in digsig_verify_rsa()
177 mpi_free(res); in digsig_verify_rsa()
Ddiv64.c32 uint64_t res, d = 1; in __div64_32() local
36 res = 0; in __div64_32()
39 res = (uint64_t) high << 32; in __div64_32()
51 res += d; in __div64_32()
57 *n = res; in __div64_32()
Dstring_helpers.c577 int i, res; in kstrdup_quotable_cmdline() local
583 res = get_cmdline(task, buffer, PAGE_SIZE - 1); in kstrdup_quotable_cmdline()
584 buffer[res] = '\0'; in kstrdup_quotable_cmdline()
587 while (--res >= 0 && buffer[res] == '\0') in kstrdup_quotable_cmdline()
591 for (i = 0; i <= res; i++) in kstrdup_quotable_cmdline()
Dseq_buf.c264 int res = -1; local
273 res = end - buf;
276 seq_buf_commit(s, res);
278 return res;
Dtest-kstrtox.c51 type res; \
54 rv = fn(t->str, t->base, &res); \
60 if (res != t->expected_res) { \
62 t->str, t->base, t->expected_res, res); \
Diov_iter.c858 unsigned long res = 0; in iov_iter_alignment() local
870 (res |= (unsigned long)v.iov_base | v.iov_len, 0), in iov_iter_alignment()
871 res |= v.bv_offset | v.bv_len, in iov_iter_alignment()
872 res |= (unsigned long)v.iov_base | v.iov_len in iov_iter_alignment()
874 return res; in iov_iter_alignment()
880 unsigned long res = 0; in iov_iter_gap_alignment() local
891 (res |= (!res ? 0 : (unsigned long)v.iov_base) | in iov_iter_gap_alignment()
893 (res |= (!res ? 0 : (unsigned long)v.bv_offset) | in iov_iter_gap_alignment()
895 (res |= (!res ? 0 : (unsigned long)v.iov_base) | in iov_iter_gap_alignment()
898 return res; in iov_iter_gap_alignment()
[all …]
Dkstrtox.h6 unsigned int _parse_integer(const char *s, unsigned int base, unsigned long long *res);
Dtest-string_helpers.c341 char *res, in test_string_get_size_check() argument
345 if (!memcmp(res, exp, strlen(exp) + 1)) in test_string_get_size_check()
348 res[string_get_size_maxbuf - 1] = '\0'; in test_string_get_size_check()
353 pr_warn("expected: '%s', got '%s'\n", exp, res); in test_string_get_size_check()
Drandom32.c81 u32 res; in prandom_u32() local
83 res = prandom_u32_state(state); in prandom_u32()
86 return res; in prandom_u32()
Dvsprintf.c695 char *resource_string(char *buf, char *end, struct resource *res, in resource_string() argument
742 #define FLAG_BUF_SIZE (2 * sizeof(res->flags)) in resource_string()
753 if (res->flags & IORESOURCE_IO) { in resource_string()
756 } else if (res->flags & IORESOURCE_MEM) { in resource_string()
759 } else if (res->flags & IORESOURCE_IRQ) { in resource_string()
762 } else if (res->flags & IORESOURCE_DMA) { in resource_string()
765 } else if (res->flags & IORESOURCE_BUS) { in resource_string()
773 if (decode && res->flags & IORESOURCE_UNSET) { in resource_string()
775 p = number(p, pend, resource_size(res), *specp); in resource_string()
777 p = number(p, pend, res->start, *specp); in resource_string()
[all …]
Dgenalloc.c651 static void devm_gen_pool_release(struct device *dev, void *res) in devm_gen_pool_release() argument
653 gen_pool_destroy(*(struct gen_pool **)res); in devm_gen_pool_release()
656 static int devm_gen_pool_match(struct device *dev, void *res, void *data) in devm_gen_pool_match() argument
658 struct gen_pool **p = res; in devm_gen_pool_match()
Ddebugobjects.c908 int res = -EINVAL; in check_results() local
934 res = 0; in check_results()
937 if (res) in check_results()
939 return res; in check_results()
Dinflate.c1200 int res; in gunzip() local
1257 if ((res = inflate())) { in gunzip()
1258 switch (res) { in gunzip()
Ddma-debug.c1066 int res; in dma_debug_entries_cmdline() local
1071 res = get_option(&str, &req_entries); in dma_debug_entries_cmdline()
1073 if (!res) in dma_debug_entries_cmdline()
/lib/mpi/
Dmpi-pow.c37 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) in mpi_powm() argument
59 rp = res->d; in mpi_powm()
68 res->nlimbs = (msize == 1 && mod->d[0] == 1) ? 0 : 1; in mpi_powm()
69 if (res->nlimbs) { in mpi_powm()
70 if (mpi_resize(res, 1) < 0) in mpi_powm()
72 rp = res->d; in mpi_powm()
75 res->sign = 0; in mpi_powm()
112 res->nlimbs = 0; in mpi_powm()
113 res->sign = 0; in mpi_powm()
117 if (res->alloced < size) { in mpi_powm()
[all …]