/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 | 87 json_writer_t *w = json_wtr; in dump_btf_type() local 94 jsonw_start_object(w); in dump_btf_type() 95 jsonw_uint_field(w, "id", id); in dump_btf_type() 96 jsonw_string_field(w, "kind", btf_kind_str[safe_kind]); in dump_btf_type() 97 jsonw_string_field(w, "name", btf_str(btf, t->name_off)); in dump_btf_type() 111 jsonw_uint_field(w, "size", t->size); in dump_btf_type() 112 jsonw_uint_field(w, "bits_offset", BTF_INT_OFFSET(v)); in dump_btf_type() 113 jsonw_uint_field(w, "nr_bits", BTF_INT_BITS(v)); in dump_btf_type() 114 jsonw_string_field(w, "encoding", enc); in dump_btf_type() 128 jsonw_uint_field(w, "type_id", t->type); in dump_btf_type() [all …]
|
/tools/include/linux/ |
D | bitops.h | 22 extern unsigned int __sw_hweight8(unsigned int w); 23 extern unsigned int __sw_hweight16(unsigned int w); 24 extern unsigned int __sw_hweight32(unsigned int w); 25 extern unsigned long __sw_hweight64(__u64 w); 51 static inline unsigned long hweight_long(unsigned long w) in hweight_long() argument 53 return sizeof(w) == 4 ? hweight32(w) : hweight64(w); in hweight_long()
|
/tools/perf/bench/ |
D | epoll-ctl.c | 132 static inline void do_epoll_op(struct worker *w, int op, int fd) in do_epoll_op() argument 157 w->ops[op]++; in do_epoll_op() 160 static inline void do_random_epoll_op(struct worker *w) in do_random_epoll_op() argument 165 fd = w->fdmap[rnd1 % nfds]; in do_random_epoll_op() 168 do_epoll_op(w, op, fd); in do_random_epoll_op() 174 struct worker *w = (struct worker *) arg; in workerfn() local 189 do_random_epoll_op(w); in workerfn() 192 do_epoll_op(w, OP_EPOLL_ADD, w->fdmap[i]); in workerfn() 193 do_epoll_op(w, OP_EPOLL_MOD, w->fdmap[i]); in workerfn() 194 do_epoll_op(w, OP_EPOLL_DEL, w->fdmap[i]); in workerfn() [all …]
|
D | epoll-wait.c | 186 struct worker *w = (struct worker *) arg; in workerfn() local 187 unsigned long ops = w->ops; in workerfn() 191 int efd = multiq ? w->epollfd : epollfd; in workerfn() 234 close(w->epollfd); in workerfn() 236 w->ops = ops; in workerfn() 240 static void nest_epollfd(struct worker *w) in nest_epollfd() argument 244 int efd = multiq ? w->epollfd : epollfd; in nest_epollfd() 311 struct worker *w = &worker[i]; in do_threads() local 314 w->epollfd = epoll_create(1); in do_threads() 315 if (w->epollfd < 0) in do_threads() [all …]
|
D | futex-lock-pi.c | 81 struct worker *w = (struct worker *) arg; in workerfn() local 82 unsigned long ops = w->ops; in workerfn() 94 ret = futex_lock_pi(w->futex, NULL, futex_flag); in workerfn() 99 w->tid, w->futex, ret); in workerfn() 107 ret = futex_unlock_pi(w->futex, futex_flag); in workerfn() 110 w->tid, w->futex, ret); in workerfn() 114 w->ops = ops; in workerfn() 118 static void create_threads(struct worker *w, pthread_attr_t thread_attr, in create_threads() argument 142 if (pthread_create(&w[i].thread, &thread_attr, workerfn, &worker[i])) in create_threads()
|
D | futex-hash.c | 70 struct worker *w = (struct worker *) arg; in workerfn() local 72 unsigned long ops = w->ops; /* avoid cacheline bouncing */ in workerfn() 89 ret = futex_wait(&w->futex[i], 1234, NULL, futex_flag); in workerfn() 96 w->ops = ops; in workerfn()
|
D | futex-wake.c | 93 static void block_threads(pthread_t *w, in block_threads() argument 109 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) in block_threads()
|
D | futex-requeue.c | 87 static void block_threads(pthread_t *w, in block_threads() argument 103 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) in block_threads()
|
D | futex-wake-parallel.c | 141 static void block_threads(pthread_t *w, pthread_attr_t thread_attr, in block_threads() argument 157 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()
|
D | Build | 200 CFLAGS_parse-events-flex.o += -w 201 CFLAGS_pmu-flex.o += -w 202 CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w 203 CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w 204 CFLAGS_expr-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
|
/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/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/bpf/ |
D | test_sockmap.c | 486 fd_set w; in msg_loop() local 517 FD_ZERO(&w); in msg_loop() 518 FD_SET(fd, &w); in msg_loop() 520 slct = select(max_fd + 1, &w, NULL, NULL, &timeout); in msg_loop() 728 fd_set w; in forever_ping_pong() local 731 FD_ZERO(&w); in forever_ping_pong() 732 FD_SET(c1, &w); in forever_ping_pong() 733 FD_SET(c2, &w); in forever_ping_pong() 734 FD_SET(p1, &w); in forever_ping_pong() 735 FD_SET(p2, &w); in forever_ping_pong() [all …]
|
/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/bpf/bpftool/bash-completion/ |
D | bpftool | 12 local w idx found 13 for w in $*; do 16 if [[ $w == ${words[idx]} ]]; then 22 COMPREPLY+=( $( compgen -W "$w" -- "$cur" ) ) 30 local w idx 31 for w in $*; do 33 [[ $w == ${words[idx]} ]] && return 0
|
/tools/perf/Documentation/ |
D | itrace.txt | 6 w synthesize ptwrite events
|
/tools/hv/ |
D | hv_kvp_daemon.c | 755 static unsigned int hweight32(unsigned int *w) in hweight32() argument 757 unsigned int res = *w - ((*w >> 1) & 0x55555555); in hweight32() 816 unsigned int *w; in kvp_get_ip_info() local 901 w = addr6->sin6_addr.s6_addr32; in kvp_get_ip_info() 904 weight += hweight32(&w[i]); in kvp_get_ip_info()
|