/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 | 12 int k, w = 0, lim = bits/BITS_PER_LONG; in __bitmap_weight() local 15 w += hweight_long(bitmap[k]); in __bitmap_weight() 18 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight() 20 return w; in __bitmap_weight()
|
/tools/include/linux/ |
D | bitops.h | 21 extern unsigned int __sw_hweight8(unsigned int w); 22 extern unsigned int __sw_hweight16(unsigned int w); 23 extern unsigned int __sw_hweight32(unsigned int w); 24 extern unsigned long __sw_hweight64(__u64 w); 50 static inline unsigned long hweight_long(unsigned long w) in hweight_long() argument 52 return sizeof(w) == 4 ? hweight32(w) : hweight64(w); in hweight_long()
|
/tools/perf/bench/ |
D | futex-lock-pi.c | 79 struct worker *w = (struct worker *) arg; in workerfn() local 80 unsigned long ops = w->ops; in workerfn() 92 ret = futex_lock_pi(w->futex, NULL, futex_flag); in workerfn() 97 w->tid, w->futex, ret); in workerfn() 105 ret = futex_unlock_pi(w->futex, futex_flag); in workerfn() 108 w->tid, w->futex, ret); in workerfn() 112 w->ops = ops; in workerfn() 116 static void create_threads(struct worker *w, pthread_attr_t thread_attr) in create_threads() argument 139 if (pthread_create(&w[i].thread, &thread_attr, workerfn, &worker[i])) in create_threads()
|
D | futex-hash.c | 68 struct worker *w = (struct worker *) arg; in workerfn() local 70 unsigned long ops = w->ops; /* avoid cacheline bouncing */ in workerfn() 87 ret = futex_wait(&w->futex[i], 1234, NULL, futex_flag); in workerfn() 94 w->ops = ops; in workerfn()
|
D | futex-wake.c | 91 static void block_threads(pthread_t *w, in block_threads() argument 107 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) in block_threads()
|
D | futex-requeue.c | 85 static void block_threads(pthread_t *w, in block_threads() argument 101 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) in block_threads()
|
D | futex-wake-parallel.c | 122 static void block_threads(pthread_t *w, pthread_attr_t thread_attr) in block_threads() argument 137 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 | 289 WINDOW *w = dialogue_window; in show_dialogue() local 291 if (tui_disabled || !w) in show_dialogue() 294 getmaxyx(w, rows, cols); in show_dialogue() 299 werase(w); in show_dialogue() 300 box(w, 0, 0); in show_dialogue() 301 mvwprintw(w, 0, maxx/4, DIAG_TITLE); in show_dialogue() 309 mvwprintw(w, y+1, x+1, "%C-%.12s", 'A'+j, "Set Temp"); in show_dialogue() 311 mvwprintw(w, y+1, x+1, "%C-%.10s-%2d", 'A'+j, in show_dialogue() 314 wattron(w, A_BOLD); in show_dialogue() 315 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 | Build | 166 CFLAGS_parse-events-flex.o += -w 167 CFLAGS_pmu-flex.o += -w 168 CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w 169 CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w 170 CFLAGS_expr-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
|
D | svghelper.c | 157 double w = time2pixels(end) - time2pixels(start); in svg_ubox() local 167 w, in svg_ubox() 176 double w = time2pixels(end) - time2pixels(start); in svg_lbox() local 186 w, in svg_lbox() 195 double w = time2pixels(end) - time2pixels(start); in svg_fbox() local 205 w, in svg_fbox()
|
D | pmu.c | 757 int w; in pmu_format_max_value() local 759 w = bitmap_weight(format, PERF_PMU_FORMAT_BITS); in pmu_format_max_value() 760 if (!w) in pmu_format_max_value() 762 if (w < 64) in pmu_format_max_value() 763 return (1ULL << w) - 1; in pmu_format_max_value()
|
/tools/iio/ |
D | iio_utils.c | 35 char *w, *r; in iioutils_break_up_name() local 56 w = working; in iioutils_break_up_name() 61 *w = *r; in iioutils_break_up_name() 62 w++; in iioutils_break_up_name() 67 *w = '\0'; in iioutils_break_up_name()
|
/tools/perf/Documentation/ |
D | itrace.txt | 6 w synthesize ptwrite events
|
D | Makefile | 140 ifneq ($(findstring $(MAKEFLAGS),w),w)
|
D | perf-timechart.txt | 41 -w::
|
/tools/scripts/ |
D | Makefile.include | 76 ifneq ($(findstring $(MAKEFLAGS), w),w)
|
/tools/hv/ |
D | hv_kvp_daemon.c | 813 static unsigned int hweight32(unsigned int *w) in hweight32() argument 815 unsigned int res = *w - ((*w >> 1) & 0x55555555); in hweight32() 874 unsigned int *w; in kvp_get_ip_info() local 959 w = addr6->sin6_addr.s6_addr32; in kvp_get_ip_info() 962 weight += hweight32(&w[i]); in kvp_get_ip_info()
|
/tools/testing/selftests/bpf/ |
D | test_maps.c | 479 fd_set w; in test_sockmap() local 731 FD_ZERO(&w); in test_sockmap() 732 FD_SET(sfd[3], &w); in test_sockmap() 735 s = select(sfd[3] + 1, &w, NULL, NULL, &to); in test_sockmap() 744 if (!FD_ISSET(sfd[3], &w)) { in test_sockmap()
|
/tools/objtool/arch/x86/lib/ |
D | x86-opcode-map.txt | 657 26: vptestmb/w Vk,Hx,Wx (66),(ev) | vptestnmb/w Vk,Hx,Wx (F3),(ev) 659 28: vpmuldq Vx,Hx,Wx (66),(v1) | vpmovm2b/w Vx,Uk (F3),(ev) 706 66: vpblendmb/w Vx,Hx,Wx (66),(ev) 708 75: vpermi2b/w Vx,Hx,Wx (66),(ev) 716 7d: vpermt2b/w Vx,Hx,Wx (66),(ev) 728 8d: vpermb/w Vx,Hx,Wx (66),(ev) 837 30: kshiftrb/w Vk,Uk,Ib (66),(v) 839 32: kshiftlb/w Vk,Uk,Ib (66),(v) 845 3e: vpcmpub/w Vk,Hk,Wx,Ib (66),(ev) 846 3f: vpcmpb/w Vk,Hk,Wx,Ib (66),(ev)
|
/tools/perf/util/intel-pt-decoder/ |
D | x86-opcode-map.txt | 657 26: vptestmb/w Vk,Hx,Wx (66),(ev) | vptestnmb/w Vk,Hx,Wx (F3),(ev) 659 28: vpmuldq Vx,Hx,Wx (66),(v1) | vpmovm2b/w Vx,Uk (F3),(ev) 706 66: vpblendmb/w Vx,Hx,Wx (66),(ev) 708 75: vpermi2b/w Vx,Hx,Wx (66),(ev) 716 7d: vpermt2b/w Vx,Hx,Wx (66),(ev) 728 8d: vpermb/w Vx,Hx,Wx (66),(ev) 835 30: kshiftrb/w Vk,Uk,Ib (66),(v) 837 32: kshiftlb/w Vk,Uk,Ib (66),(v) 843 3e: vpcmpub/w Vk,Hk,Wx,Ib (66),(ev) 844 3f: vpcmpb/w Vk,Hk,Wx,Ib (66),(ev)
|