/tools/lib/ |
D | hweight.c | 19 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 …]
|
D | string.c | 46 int strtobool(const char *s, bool *res) in strtobool() argument 52 *res = true; in strtobool() 57 *res = false; in strtobool()
|
/tools/testing/nvdimm/test/ |
D | iomap.c | 63 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 …]
|
D | nfit_test.h | 21 struct resource res; member 27 struct resource res; member
|
/tools/include/linux/ |
D | compiler.h | 73 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 …]
|
D | string.h | 9 int strtobool(const char *s, bool *res);
|
/tools/testing/selftests/futex/functional/ |
D | futex_wait_wouldblock.c | 46 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()
|
D | futex_requeue_pi_signal_restart.c | 98 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 …]
|
D | futex_wait_private_mapped_file.c | 79 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()
|
D | futex_wait_timeout.c | 46 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()
|
D | futex_wait_uninitialized_heap.c | 56 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/ |
D | timestamping.c | 140 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/ |
D | json.c | 87 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 | .gitignore | 5 res
|
/tools/usb/usbip/src/ |
D | usbip_network.c | 263 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/ |
D | tm-tar.c | 62 : [res]"=r"(result) in test_tar()
|
D | tm-vmxcopy.c | 81 : [res]"=r"(aborted) in test_vmxcopy()
|
/tools/hv/ |
D | hv_kvp_daemon.c | 826 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/ |
D | strbuf.c | 40 char *res = sb->alloc ? sb->buf : NULL; in strbuf_detach() local 44 return res; in strbuf_detach()
|
D | cpumap.h | 67 int cpu_map__build_map(struct cpu_map *cpus, struct cpu_map **res,
|
/tools/perf/arch/x86/util/ |
D | intel-pt.c | 107 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/ |
D | aio_simple.c | 315 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/ |
D | mq_perf_tests.c | 427 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/ |
D | libbpf.h | 161 struct bpf_prog_prep_result *res);
|
/tools/testing/selftests/x86/ |
D | sigreturn.c | 612 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()
|