Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 39) sorted by relevance

12

/tools/include/asm-generic/bitops/
Dconst_hweight.h8 #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 …]
Darch_hweight.h7 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/
Dhweight.c12 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 …]
Dbitmap.c12 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/
Dbitops.h21 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/
Dfutex-lock-pi.c79 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()
Dfutex-hash.c68 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()
Dfutex-wake.c91 static void block_threads(pthread_t *w, in block_threads() argument
107 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) in block_threads()
Dfutex-requeue.c85 static void block_threads(pthread_t *w, in block_threads() argument
101 if (pthread_create(&w[i], &thread_attr, workerfn, NULL)) in block_threads()
Dfutex-wake-parallel.c122 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/
Dworkqueues.h76 #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/
Dtui.c289 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/
Dlevenshtein.c45 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()
DBuild166 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
Dsvghelper.c157 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()
Dpmu.c757 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/
Diio_utils.c35 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/
Ditrace.txt6 w synthesize ptwrite events
DMakefile140 ifneq ($(findstring $(MAKEFLAGS),w),w)
Dperf-timechart.txt41 -w::
/tools/scripts/
DMakefile.include76 ifneq ($(findstring $(MAKEFLAGS), w),w)
/tools/hv/
Dhv_kvp_daemon.c813 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/
Dtest_maps.c479 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/
Dx86-opcode-map.txt657 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/
Dx86-opcode-map.txt657 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)

12