Home
last modified time | relevance | path

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

12

/tools/lib/
Dhweight.c19 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32()
20 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in __sw_hweight32()
21 res = (res + (res >> 4)) & 0x0F0F0F0F; in __sw_hweight32()
22 res = res + (res >> 8); in __sw_hweight32()
23 return (res + (res >> 16)) & 0x000000FF; in __sw_hweight32()
29 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16() local
30 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16()
31 res = (res + (res >> 4)) & 0x0F0F; in __sw_hweight16()
32 return (res + (res >> 8)) & 0x00FF; in __sw_hweight16()
37 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8() local
[all …]
Dstring.c46 int strtobool(const char *s, bool *res) in strtobool() argument
52 *res = true; in strtobool()
57 *res = false; in strtobool()
/tools/testing/nvdimm/test/
Diomap.c63 struct nfit_test_resource *res; in get_nfit_res() local
66 res = __get_nfit_res(resource); in get_nfit_res()
69 return res; in get_nfit_res()
80 - nfit_res->res.start; in __nfit_test_ioremap()
91 - nfit_res->res.start; in __wrap_devm_ioremap_nocache()
102 return nfit_res->buf + offset - nfit_res->res.start; in __wrap_devm_memremap()
107 void *__wrap_devm_memremap_pages(struct device *dev, struct resource *res, in __wrap_devm_memremap_pages() argument
110 resource_size_t offset = res->start; in __wrap_devm_memremap_pages()
114 return nfit_res->buf + offset - nfit_res->res.start; in __wrap_devm_memremap_pages()
115 return devm_memremap_pages(dev, res, ref, altmap); in __wrap_devm_memremap_pages()
[all …]
Dnfit_test.h21 struct resource res; member
27 struct resource res; member
/tools/include/linux/
Dcompiler.h73 static __always_inline void __read_once_size(const volatile void *p, void *res, int size) in __read_once_size() argument
76 case 1: *(__u8_alias_t *) res = *(volatile __u8_alias_t *) p; break; in __read_once_size()
77 case 2: *(__u16_alias_t *) res = *(volatile __u16_alias_t *) p; break; in __read_once_size()
78 case 4: *(__u32_alias_t *) res = *(volatile __u32_alias_t *) p; break; in __read_once_size()
79 case 8: *(__u64_alias_t *) res = *(volatile __u64_alias_t *) p; break; in __read_once_size()
82 __builtin_memcpy((void *)res, (const void *)p, size); in __read_once_size()
87 static __always_inline void __write_once_size(volatile void *p, void *res, int size) in __write_once_size() argument
90 case 1: *(volatile __u8_alias_t *) p = *(__u8_alias_t *) res; break; in __write_once_size()
91 case 2: *(volatile __u16_alias_t *) p = *(__u16_alias_t *) res; break; in __write_once_size()
92 case 4: *(volatile __u32_alias_t *) p = *(__u32_alias_t *) res; break; in __write_once_size()
[all …]
Dstring.h9 int strtobool(const char *s, bool *res);
/tools/testing/selftests/futex/functional/
Dfutex_wait_wouldblock.c46 int res, ret = RET_PASS; in main() local
70 res = futex_wait(&f1, f1+1, &to, FUTEX_PRIVATE_FLAG); in main()
71 if (!res || errno != EWOULDBLOCK) { in main()
73 res ? errno : res, res ? strerror(errno) : ""); in main()
Dfutex_requeue_pi_signal_restart.c98 int res; in waiterfn() local
105 res = futex_wait_requeue_pi(&f1, old_val, &(f2), NULL, in waiterfn()
109 res, strerror(errno)); in waiterfn()
111 if (!res) in waiterfn()
126 int c, res, ret = RET_PASS; in main() local
159 res = create_rt_thread(&waiter, waiterfn, NULL, SCHED_FIFO, 1); in main()
160 if (res) { in main()
161 error("Creating waiting thread failed", res); in main()
183 res = futex_cmp_requeue_pi(&f1, old_val, &(f2), 1, 0, in main()
191 if (res > 0) { in main()
[all …]
Dfutex_wait_private_mapped_file.c79 int res; in main() local
112 res = futex_wake(&val, 1, 0); in main()
113 info("futex_wake %d\n", res); in main()
114 if (res != 1) { in main()
Dfutex_wait_timeout.c46 int res, ret = RET_PASS; in main() local
78 res = futex_wait(&f1, f1, &to, FUTEX_PRIVATE_FLAG); in main()
79 if (!res || errno != ETIMEDOUT) { in main()
Dfutex_wait_uninitialized_heap.c56 int res; in wait_thread() local
59 res = futex_wait(buf, 1, NULL, 0); in wait_thread()
62 if (res != 0 && errno != EWOULDBLOCK) { in wait_thread()
/tools/testing/selftests/networking/timestamping/
Dtimestamping.c140 int res; in sendpacket() local
142 res = sendto(sock, sync, sizeof(sync), 0, in sendpacket()
145 if (res < 0) in sendpacket()
150 res); in sendpacket()
153 static void printpacket(struct msghdr *msg, int res, in printpacket() argument
169 res, in printpacket()
232 if (res < sizeof(sync)) in printpacket()
234 else if (!memcmp(sync, data + res - sizeof(sync), in printpacket()
289 int res; in recvpacket() local
301 res = recvmsg(sock, &msg, recvmsg_flags|MSG_DONTWAIT); in recvpacket()
[all …]
/tools/perf/pmu-events/
Djson.c87 jsmnerr_t res; in parse_json() local
99 res = jsmn_parse(&parser, *map, *size, tokens, in parse_json()
101 if (res != JSMN_SUCCESS) { in parse_json()
102 pr_err("%s: json error %s\n", fn, jsmn_strerror(res)); in parse_json()
/tools/testing/selftests/rcutorture/
D.gitignore5 res
/tools/usb/usbip/src/
Dusbip_network.c263 struct addrinfo hints, *res, *rp; in usbip_net_tcp_connect() local
272 ret = getaddrinfo(hostname, service, &hints, &res); in usbip_net_tcp_connect()
280 for (rp = res; rp; rp = rp->ai_next) { in usbip_net_tcp_connect()
297 freeaddrinfo(res); in usbip_net_tcp_connect()
/tools/testing/selftests/powerpc/tm/
Dtm-tar.c62 : [res]"=r"(result) in test_tar()
Dtm-vmxcopy.c81 : [res]"=r"(aborted) in test_vmxcopy()
/tools/hv/
Dhv_kvp_daemon.c826 unsigned int res = *w - ((*w >> 1) & 0x55555555); in hweight32() local
827 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in hweight32()
828 res = (res + (res >> 4)) & 0x0F0F0F0F; in hweight32()
829 res = res + (res >> 8); in hweight32()
830 return (res + (res >> 16)) & 0x000000FF; in hweight32()
/tools/perf/util/
Dstrbuf.c40 char *res = sb->alloc ? sb->buf : NULL; in strbuf_detach() local
44 return res; in strbuf_detach()
Dcpumap.h67 int cpu_map__build_map(struct cpu_map *cpus, struct cpu_map **res,
/tools/perf/arch/x86/util/
Dintel-pt.c107 u64 res = 0; in intel_pt_masked_bits() local
112 res <<= 1; in intel_pt_masked_bits()
114 res |= 1; in intel_pt_masked_bits()
120 return res; in intel_pt_masked_bits()
124 struct perf_evlist *evlist, u64 *res) in intel_pt_read_config() argument
129 *res = 0; in intel_pt_read_config()
137 *res = intel_pt_masked_bits(mask, evsel->attr.config); in intel_pt_read_config()
/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c315 printf("ev=in; ret=%lu\n", e[i].res); in main()
318 printf("ev=out; ret=%lu\n", e[i].res); in main()
/tools/testing/selftests/mqueue/
Dmq_perf_tests.c427 struct timespec res, start, middle, end, send_total, recv_total; in perf_test_thread() local
440 if (clock_getres(clock, &res)) in perf_test_thread()
444 printf("\t\tClock resolution:\t\t%lu nsec%s\n", res.tv_nsec, in perf_test_thread()
445 res.tv_nsec > 1 ? "s" : ""); in perf_test_thread()
/tools/lib/bpf/
Dlibbpf.h161 struct bpf_prog_prep_result *res);
/tools/testing/selftests/x86/
Dsigreturn.c612 greg_t req = requested_regs[i], res = resulting_regs[i]; in test_valid_sigreturn() local
617 (unsigned long long)res); in test_valid_sigreturn()
626 if (res == (req & 0xFFFFFFFF)) in test_valid_sigreturn()

12