/tools/include/asm-generic/bitops/ |
D | const_hweight.h | 8 #define __const_hweight8(w) \ argument 10 ((!!((w) & (1ULL << 0))) + \ 11 (!!((w) & (1ULL << 1))) + \ 12 (!!((w) & (1ULL << 2))) + \ 13 (!!((w) & (1ULL << 3))) + \ 14 (!!((w) & (1ULL << 4))) + \ 15 (!!((w) & (1ULL << 5))) + \ 16 (!!((w) & (1ULL << 6))) + \ 17 (!!((w) & (1ULL << 7))))) 19 #define __const_hweight16(w) (__const_hweight8(w) + __const_hweight8((w) >> 8 )) argument [all …]
|
D | arch_hweight.h | 7 static inline unsigned int __arch_hweight32(unsigned int w) in __arch_hweight32() argument 9 return __sw_hweight32(w); in __arch_hweight32() 12 static inline unsigned int __arch_hweight16(unsigned int w) in __arch_hweight16() argument 14 return __sw_hweight16(w); in __arch_hweight16() 17 static inline unsigned int __arch_hweight8(unsigned int w) in __arch_hweight8() argument 19 return __sw_hweight8(w); in __arch_hweight8() 22 static inline unsigned long __arch_hweight64(__u64 w) in __arch_hweight64() argument 24 return __sw_hweight64(w); in __arch_hweight64()
|
/tools/lib/ |
D | hweight.c | 12 unsigned int __sw_hweight32(unsigned int w) in __sw_hweight32() argument 15 w -= (w >> 1) & 0x55555555; in __sw_hweight32() 16 w = (w & 0x33333333) + ((w >> 2) & 0x33333333); in __sw_hweight32() 17 w = (w + (w >> 4)) & 0x0f0f0f0f; in __sw_hweight32() 18 return (w * 0x01010101) >> 24; in __sw_hweight32() 20 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32() 28 unsigned int __sw_hweight16(unsigned int w) in __sw_hweight16() argument 30 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16() 36 unsigned int __sw_hweight8(unsigned int w) in __sw_hweight8() argument 38 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8() [all …]
|
D | bitmap.c | 10 int k, w = 0, lim = bits/BITS_PER_LONG; in __bitmap_weight() local 13 w += hweight_long(bitmap[k]); in __bitmap_weight() 16 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight() 18 return w; in __bitmap_weight()
|
/tools/bpf/bpftool/ |
D | btf.c | 111 json_writer_t *w = json_wtr; in dump_btf_type() local 115 jsonw_start_object(w); in dump_btf_type() 116 jsonw_uint_field(w, "id", id); in dump_btf_type() 117 jsonw_string_field(w, "kind", btf_kind_str[btf_kind_safe(kind)]); in dump_btf_type() 118 jsonw_string_field(w, "name", btf_str(btf, t->name_off)); in dump_btf_type() 132 jsonw_uint_field(w, "size", t->size); in dump_btf_type() 133 jsonw_uint_field(w, "bits_offset", BTF_INT_OFFSET(v)); in dump_btf_type() 134 jsonw_uint_field(w, "nr_bits", BTF_INT_BITS(v)); in dump_btf_type() 135 jsonw_string_field(w, "encoding", enc); in dump_btf_type() 149 jsonw_uint_field(w, "type_id", t->type); in dump_btf_type() [all …]
|
/tools/include/linux/ |
D | bitops.h | 23 extern unsigned int __sw_hweight8(unsigned int w); 24 extern unsigned int __sw_hweight16(unsigned int w); 25 extern unsigned int __sw_hweight32(unsigned int w); 26 extern unsigned long __sw_hweight64(__u64 w); 52 static inline unsigned long hweight_long(unsigned long w) in hweight_long() argument 54 return sizeof(w) == 4 ? hweight32(w) : hweight64(w); in hweight_long()
|
/tools/perf/bench/ |
D | epoll-ctl.c | 131 static inline void do_epoll_op(struct worker *w, int op, int fd) in do_epoll_op() argument 156 w->ops[op]++; in do_epoll_op() 159 static inline void do_random_epoll_op(struct worker *w) in do_random_epoll_op() argument 164 fd = w->fdmap[rnd1 % nfds]; in do_random_epoll_op() 167 do_epoll_op(w, op, fd); in do_random_epoll_op() 173 struct worker *w = (struct worker *) arg; in workerfn() local 188 do_random_epoll_op(w); in workerfn() 191 do_epoll_op(w, OP_EPOLL_ADD, w->fdmap[i]); in workerfn() 192 do_epoll_op(w, OP_EPOLL_MOD, w->fdmap[i]); in workerfn() 193 do_epoll_op(w, OP_EPOLL_DEL, w->fdmap[i]); in workerfn() [all …]
|
D | epoll-wait.c | 185 struct worker *w = (struct worker *) arg; in workerfn() local 186 unsigned long ops = w->ops; in workerfn() 190 int efd = multiq ? w->epollfd : epollfd; in workerfn() 233 close(w->epollfd); in workerfn() 235 w->ops = ops; in workerfn() 239 static void nest_epollfd(struct worker *w) in nest_epollfd() argument 243 int efd = multiq ? w->epollfd : epollfd; in nest_epollfd() 310 struct worker *w = &worker[i]; in do_threads() local 313 w->epollfd = epoll_create(1); in do_threads() 314 if (w->epollfd < 0) in do_threads() [all …]
|
D | futex-lock-pi.c | 83 struct worker *w = (struct worker *) arg; in workerfn() local 84 unsigned long ops = w->ops; in workerfn() 96 ret = futex_lock_pi(w->futex, NULL, futex_flag); in workerfn() 101 w->tid, w->futex, ret); in workerfn() 109 ret = futex_unlock_pi(w->futex, futex_flag); in workerfn() 112 w->tid, w->futex, ret); in workerfn() 116 w->ops = ops; in workerfn() 120 static void create_threads(struct worker *w, pthread_attr_t thread_attr, in create_threads() argument 144 if (pthread_create(&w[i].thread, &thread_attr, workerfn, &worker[i])) in create_threads()
|
D | futex-hash.c | 72 struct worker *w = (struct worker *) arg; in workerfn() local 74 unsigned long ops = w->ops; /* avoid cacheline bouncing */ in workerfn() 91 ret = futex_wait(&w->futex[i], 1234, NULL, futex_flag); in workerfn() 98 w->ops = ops; in workerfn()
|
D | futex-wake.c | 97 static void block_threads(pthread_t *w, in block_threads() argument 113 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) in block_threads()
|
D | futex-requeue.c | 123 static void block_threads(pthread_t *w, in block_threads() argument 139 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) in block_threads()
|
D | futex-wake-parallel.c | 144 static void block_threads(pthread_t *w, pthread_attr_t thread_attr, in block_threads() argument 160 if (pthread_create(&w[i], &thread_attr, blocked_workerfn, NULL)) in block_threads()
|
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/ |
D | workqueues.h | 76 #define INIT_WORK(w, f) \ argument 78 (w)->data = 0; \ 79 (w)->func = (f); \ 82 #define INIT_DELAYED_WORK(w, f) INIT_WORK(&(w)->work, (f)) argument
|
/tools/thermal/tmon/ |
D | tui.c | 280 WINDOW *w = dialogue_window; in show_dialogue() local 282 if (tui_disabled || !w) in show_dialogue() 285 getmaxyx(w, rows, cols); in show_dialogue() 290 werase(w); in show_dialogue() 291 box(w, 0, 0); in show_dialogue() 292 mvwprintw(w, 0, maxx/4, DIAG_TITLE); in show_dialogue() 300 mvwprintw(w, y+1, x+1, "%C-%.12s", 'A'+j, "Set Temp"); in show_dialogue() 302 mvwprintw(w, y+1, x+1, "%C-%.10s-%2d", 'A'+j, in show_dialogue() 305 wattron(w, A_BOLD); in show_dialogue() 306 mvwprintw(w, diag_dev_rows()+1, 1, "Enter Choice [A-Z]?"); in show_dialogue() [all …]
|
/tools/perf/util/ |
D | levenshtein.c | 45 int w, int s, int a, int d) in levenshtein() argument 65 row2[j + 1] > row0[j - 1] + w) in levenshtein() 66 row2[j + 1] = row0[j - 1] + w; in levenshtein()
|
D | svghelper.c | 155 double w = time2pixels(end) - time2pixels(start); in svg_ubox() local 165 w, in svg_ubox() 174 double w = time2pixels(end) - time2pixels(start); in svg_lbox() local 184 w, in svg_lbox() 193 double w = time2pixels(end) - time2pixels(start); in svg_fbox() local 203 w, in svg_fbox()
|
/tools/testing/selftests/bpf/progs/ |
D | test_subprogs.c | 34 static __noinline int sub4(int w) in sub4() argument 39 return w + sub3(5) + sub1(6); in sub4()
|
/tools/memory-model/ |
D | linux-kernel.cat | 71 let to-w = rwdep | (overwrite & int) | (addr ; [Plain] ; wmb) 73 let ppo = to-r | to-w | fence | (po-unlock-rf-lock-po & int) 174 let w-pre-bounded = [Marked] ; (addr | fence)? 177 let w-post-bounded = fence? ; [Marked] 182 let ww-vis = fence | (strong-fence ; xbstar ; w-pre-bounded) | 183 (w-post-bounded ; vis ; w-pre-bounded) 185 (w-post-bounded ; vis ; r-pre-bounded) 186 let rw-xbstar = fence | (r-post-bounded ; xbstar ; w-pre-bounded)
|
/tools/testing/selftests/kvm/x86_64/ |
D | kvm_pv_test.c | 50 bool r, w; in guest_gp_handler() local 53 w = rip == &wrmsr_start; in guest_gp_handler() 54 GUEST_ASSERT(r || w); in guest_gp_handler()
|
/tools/testing/selftests/safesetid/ |
D | safesetid-test.c | 207 pid_t cpid, w; in test_setuid() local 224 w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED); in test_setuid() 225 if (w == -1) { in test_setuid()
|
/tools/testing/selftests/resctrl/ |
D | resctrl_val.c | 337 struct imc_counter_config *w = in get_mem_bw_imc() local 347 if (read(w->fd, &w->return_value, in get_mem_bw_imc() 361 __u64 w_time_enabled = w->return_value.time_enabled; in get_mem_bw_imc() 362 __u64 w_time_running = w->return_value.time_running; in get_mem_bw_imc() 368 writes += w->return_value.value * of_mul_write * SCALE; in get_mem_bw_imc()
|
/tools/iio/ |
D | iio_utils.c | 32 char *w, *r; in iioutils_break_up_name() local 53 w = working; in iioutils_break_up_name() 58 *w = *r; in iioutils_break_up_name() 59 w++; in iioutils_break_up_name() 64 *w = '\0'; in iioutils_break_up_name()
|
/tools/testing/selftests/bpf/ |
D | test_sockmap.c | 596 fd_set w; in msg_loop() local 628 FD_ZERO(&w); in msg_loop() 629 FD_SET(fd, &w); in msg_loop() 631 slct = select(max_fd + 1, &w, NULL, NULL, &timeout); in msg_loop() 843 fd_set w; in forever_ping_pong() local 846 FD_ZERO(&w); in forever_ping_pong() 847 FD_SET(c1, &w); in forever_ping_pong() 848 FD_SET(c2, &w); in forever_ping_pong() 849 FD_SET(p1, &w); in forever_ping_pong() 850 FD_SET(p2, &w); in forever_ping_pong() [all …]
|
/tools/testing/selftests/powerpc/nx-gzip/ |
D | gunz_test.c | 314 char w[1024]; in decompress_file() local 325 strcpy(w, wp); in decompress_file() 326 strcat(w, ".nx.gunzip"); in decompress_file() 328 outf = fopen(w, "w"); in decompress_file() 330 perror(w); in decompress_file()
|