Home
last modified time | relevance | path

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

12345678910>>...55

/linux/drivers/input/joystick/
H A Dwalkera0701.c85 val1 = ((w->buf[0] & 7) * 256 + w->buf[1] * 16 + w->buf[2]) >> 2; in walkera0701_parse_frame()
87 val2 = (w->buf[2] & 1) << 8 | (w->buf[3] << 4) | w->buf[4]; in walkera0701_parse_frame()
89 val3 = ((w->buf[5] & 7) * 256 + w->buf[6] * 16 + w->buf[7]) >> 2; in walkera0701_parse_frame()
91 val4 = (w->buf[7] & 1) << 8 | (w->buf[8] << 4) | w->buf[9]; in walkera0701_parse_frame()
93 val5 = ((w->buf[11] & 7) * 256 + w->buf[12] * 16 + w->buf[13]) >> 2; in walkera0701_parse_frame()
95 val6 = (w->buf[13] & 1) << 8 | (w->buf[14] << 4) | w->buf[15]; in walkera0701_parse_frame()
99 val8 = (w->buf[18] & 1) << 8 | (w->buf[19] << 4) | w->buf[20]; in walkera0701_parse_frame()
130 w->irq_lasttime = w->irq_time; in walkera0701_irq_handler()
141 w->buf[w->counter] = 8; in walkera0701_irq_handler()
144 w->buf[w->counter] = 0; in walkera0701_irq_handler()
[all …]
/linux/include/asm-generic/bitops/
H A Dconst_hweight.h19 #define __const_hweight16(w) (__const_hweight8(w) + __const_hweight8((w) >> 8 )) argument
20 #define __const_hweight32(w) (__const_hweight16(w) + __const_hweight16((w) >> 16)) argument
21 #define __const_hweight64(w) (__const_hweight32(w) + __const_hweight32((w) >> 32)) argument
26 #define hweight8(w) (__builtin_constant_p(w) ? __const_hweight8(w) : __arch_hweight8(w)) argument
27 #define hweight16(w) (__builtin_constant_p(w) ? __const_hweight16(w) : __arch_hweight16(w)) argument
28 #define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w)) argument
29 #define hweight64(w) (__builtin_constant_p(w) ? __const_hweight64(w) : __arch_hweight64(w)) argument
34 #define HWEIGHT8(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight8(w)) argument
35 #define HWEIGHT16(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight16(w)) argument
36 #define HWEIGHT32(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight32(w)) argument
[all …]
/linux/tools/include/asm-generic/bitops/
H A Dconst_hweight.h19 #define __const_hweight16(w) (__const_hweight8(w) + __const_hweight8((w) >> 8 )) argument
20 #define __const_hweight32(w) (__const_hweight16(w) + __const_hweight16((w) >> 16)) argument
21 #define __const_hweight64(w) (__const_hweight32(w) + __const_hweight32((w) >> 32)) argument
26 #define hweight8(w) (__builtin_constant_p(w) ? __const_hweight8(w) : __arch_hweight8(w)) argument
27 #define hweight16(w) (__builtin_constant_p(w) ? __const_hweight16(w) : __arch_hweight16(w)) argument
28 #define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w)) argument
29 #define hweight64(w) (__builtin_constant_p(w) ? __const_hweight64(w) : __arch_hweight64(w)) argument
34 #define HWEIGHT8(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight8(w)) argument
35 #define HWEIGHT16(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight16(w)) argument
36 #define HWEIGHT32(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight32(w)) argument
[all …]
/linux/net/ipv4/
H A Dtcp_westwood.c89 if (w->bw_ns_est == 0 && w->bw_est == 0) { in westwood_filter()
90 w->bw_ns_est = w->bk / delta; in westwood_filter()
91 w->bw_est = w->bw_ns_est; in westwood_filter()
93 w->bw_ns_est = westwood_do_filter(w->bw_ns_est, w->bk / delta); in westwood_filter()
94 w->bw_est = westwood_do_filter(w->bw_est, w->bw_ns_est); in westwood_filter()
151 w->rtt_min = w->rtt; in update_rtt_min()
154 w->rtt_min = min(w->rtt, w->rtt_min); in update_rtt_min()
170 w->bk += tp->snd_una - w->snd_una; in westwood_fast_bw()
197 if (w->accounted >= w->cumul_ack) { in westwood_acked_count()
198 w->accounted -= w->cumul_ack; in westwood_acked_count()
[all …]
/linux/tools/lib/
H A Dhweight.c15 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()
30 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16()
38 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8()
50 w -= (w >> 1) & 0x5555555555555555ul; in __sw_hweight64()
51 w = (w & 0x3333333333333333ul) + ((w >> 2) & 0x3333333333333333ul); in __sw_hweight64()
52 w = (w + (w >> 4)) & 0x0f0f0f0f0f0f0f0ful; in __sw_hweight64()
[all …]
/linux/lib/
H A Dhweight.c16 w -= (w >> 1) & 0x55555555; in __sw_hweight32()
17 w = (w & 0x33333333) + ((w >> 2) & 0x33333333); in __sw_hweight32()
18 w = (w + (w >> 4)) & 0x0f0f0f0f; in __sw_hweight32()
19 return (w * 0x01010101) >> 24; in __sw_hweight32()
21 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32()
32 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16()
41 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8()
54 w -= (w >> 1) & 0x5555555555555555ul; in __sw_hweight64()
55 w = (w & 0x3333333333333333ul) + ((w >> 2) & 0x3333333333333333ul); in __sw_hweight64()
56 w = (w + (w >> 4)) & 0x0f0f0f0f0f0f0f0ful; in __sw_hweight64()
[all …]
/linux/arch/loongarch/include/asm/
H A Dasm.h55 #define REG_L ld.w
56 #define REG_S st.w
57 #define REG_ADD add.w
58 #define REG_SUB sub.w
73 #define INT_L ld.w
74 #define INT_S st.w
104 #define LONG_L ld.w
105 #define LONG_S st.w
149 #define PTR_L ld.w
150 #define PTR_S st.w
[all …]
/linux/sound/soc/
H A Dsoc-dapm.c619 w->new_power = w->power; in dapm_reset()
1095 w, w->name, NULL); in dapm_new_dai_link()
1435 w->new_power = w->power_check(w); in dapm_widget_power_check()
1579 ret = w->event(w, NULL, event); in dapm_seq_check_event()
1603 w->power = w->new_power; in dapm_seq_run_coalesced()
1605 mask |= w->mask << w->shift; in dapm_seq_run_coalesced()
1697 ret = w->event(w, in dapm_seq_run()
1700 ret = w->event(w, in dapm_seq_run()
1709 ret = w->event(w, in dapm_seq_run()
1712 ret = w->event(w, in dapm_seq_run()
[all …]
/linux/drivers/infiniband/hw/hfi1/
H A Diowait.h309 w->iow->priority++; in iowait_get_desc()
343 w->priority = 0; in iowait_init_priority()
345 w->init_priority(w); in iowait_init_priority()
374 w->starved_cnt = 0; in iowait_queue()
376 w->starved_cnt++; in iowait_queue()
395 w->starved_cnt = 0; in iowait_starve_clear()
419 if (!w) in iowait_inc_wait_count()
421 w->iow->tx_count++; in iowait_inc_wait_count()
422 w->iow->count += n; in iowait_inc_wait_count()
449 if (likely(w)) in iowait_ioww_to_iow()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/
H A Dutil.h66 w->fn = fn; in mt76_worker_setup()
67 w->task = kthread_run(__mt76_worker_fn, w, in mt76_worker_setup()
70 if (IS_ERR(w->task)) { in mt76_worker_setup()
72 w->task = NULL; in mt76_worker_setup()
81 if (!w->task) in mt76_worker_schedule()
91 if (!w->task) in mt76_worker_disable()
94 kthread_park(w->task); in mt76_worker_disable()
100 if (!w->task) in mt76_worker_enable()
109 if (!w->task) in mt76_worker_teardown()
112 kthread_stop(w->task); in mt76_worker_teardown()
[all …]
/linux/arch/m68k/ifpsp060/src/
H A Ditest.S4877 mulu.l ([0x10.w,%a4,%d4.w*1],0x1000.w),%d2:%d3
4903 mulu.l ([0x10.w,%a4,%d4.w*2],0x1000.w),%d2:%d3
4929 mulu.l ([0x10.w,%a4,%d4.w*4],0x1000.w),%d2:%d3
4955 mulu.l ([0x10.w,%a4,%d4.w*8],0x1000.w),%d2:%d3
5277 mulu.l ([0x10.w,%a4],%d4.w*1,0x10.w),%d2:%d3
5304 mulu.l ([0x10.w,%a4],%d4.w*2,0x10.w),%d2:%d3
5331 mulu.l ([0x10.w,%a4],%d4.w*4,0x10.w),%d2:%d3
5358 mulu.l ([0x10.w,%a4],%d4.w*8,0x10.w),%d2:%d3
5412 mulu.l ([0x10.w,%a4],%d4.w*2,0x10.w),%d2:%d3
6025 mulu.l ([EASTORE.w,%pc],%d4.w*1,0x10.w),%d2:%d3
[all …]
/linux/drivers/media/platform/samsung/s5p-g2d/
H A Dg2d-hw.c20 w(1, SOFT_RESET_REG); in g2d_reset()
27 w(0, SRC_SELECT_REG); in g2d_set_src_size()
33 w(n, SRC_LEFT_TOP_REG); in g2d_set_src_size()
45 w(a, SRC_BASE_ADDR_REG); in g2d_set_src_addr()
52 w(0, DST_SELECT_REG); in g2d_set_dst_size()
58 w(n, DST_LEFT_TOP_REG); in g2d_set_dst_size()
70 w(a, DST_BASE_ADDR_REG); in g2d_set_dst_addr()
75 w(r, ROP4_REG); in g2d_set_rop4()
102 w(0x7, CACHECTL_REG); in g2d_start()
105 w(1, INTEN_REG); in g2d_start()
[all …]
/linux/arch/m68k/include/asm/
H A Dmcf8390.h30 #define BSWAP(w) (((w) << 8) | ((w) >> 8)) argument
31 #define RSWAP(w) (w) argument
81 #define BSWAP(w) (w) argument
84 #define RSWAP(w) (((w) << 8) | ((w) >> 8)) argument
95 #define BSWAP(w) (w) argument
98 #define RSWAP(w) (((w) << 8) | ((w) >> 8)) argument
107 #define BSWAP(w) (w) argument
110 #define RSWAP(w) (((w) << 8) | ((w) >> 8)) argument
/linux/drivers/media/platform/ti/omap/
H A Domap_voutlib.c69 try_win = new_win->w; in omap_vout_try_window()
97 new_win->w = try_win; in omap_vout_try_window()
126 win->w = new_win->w; in omap_vout_new_window()
221 win->w.height = 2; in omap_vout_new_crop()
222 if (win->w.height + win->w.top > fbuf->fmt.height) { in omap_vout_new_crop()
227 win->w.height = (fbuf->fmt.height - win->w.top) & ~1; in omap_vout_new_crop()
240 win->w.width = 2; in omap_vout_new_crop()
241 if (win->w.width + win->w.left > fbuf->fmt.width) { in omap_vout_new_crop()
246 win->w.width = (fbuf->fmt.width - win->w.left) & ~1; in omap_vout_new_crop()
297 win->w.left = ((fbuf->fmt.width - win->w.width) >> 1) & ~1; in omap_vout_new_format()
[all …]
/linux/lib/crypto/mpi/
H A Dmpi-sub-ui.c40 if (mpi_resize(w, 1) < 0) in mpi_sub_ui()
42 w->d[0] = vval; in mpi_sub_ui()
43 w->nlimbs = (vval != 0); in mpi_sub_ui()
44 w->sign = (vval != 0); in mpi_sub_ui()
56 w->d[u->nlimbs] = cy; in mpi_sub_ui()
58 w->sign = 1; in mpi_sub_ui()
65 w->nlimbs = 1; in mpi_sub_ui()
66 w->sign = 1; in mpi_sub_ui()
70 w->nlimbs = (u->nlimbs - (w->d[u->nlimbs - 1] == 0)); in mpi_sub_ui()
71 w->sign = 0; in mpi_sub_ui()
[all …]
H A Dmpiutil.c237 if (w) { in mpi_snatch()
256 if (!w) in mpi_set()
259 wp = w->d; in mpi_set()
266 return w; in mpi_set()
272 if (!w) in mpi_set_ui()
278 w->d[0] = u; in mpi_set_ui()
280 w->sign = 0; in mpi_set_ui()
282 return w; in mpi_set_ui()
289 w->d[0] = u; in mpi_alloc_set_ui()
291 w->sign = 0; in mpi_alloc_set_ui()
[all …]
H A Dmpi-add.c37 wp = w->d; in mpi_add_ui()
62 w->nlimbs = wsize; in mpi_add_ui()
63 w->sign = wsign; in mpi_add_ui()
94 wp = w->d; in mpi_add()
129 w->nlimbs = wsize; in mpi_add()
130 w->sign = wsign; in mpi_add()
138 mpi_add(w, u, vv); in mpi_sub()
145 mpi_add(w, u, v); in mpi_addm()
146 mpi_mod(w, w, m); in mpi_addm()
152 mpi_sub(w, u, v); in mpi_subm()
[all …]
/linux/arch/riscv/include/asm/
H A Darch_hweight.h31 : "+r" (w) : :); in __arch_hweight32()
33 return w; in __arch_hweight32()
37 return __sw_hweight32(w); in __arch_hweight32()
42 return __arch_hweight32(w & 0xffff); in __arch_hweight16()
47 return __arch_hweight32(w & 0xff); in __arch_hweight8()
62 : "+r" (w) : :); in __arch_hweight64()
64 return w; in __arch_hweight64()
68 return __sw_hweight64(w); in __arch_hweight64()
71 static inline unsigned long __arch_hweight64(__u64 w) in __arch_hweight64() argument
73 return __arch_hweight32((u32)w) + in __arch_hweight64()
[all …]
/linux/drivers/md/
H A Ddm-cache-background-tracker.c68 list_del(&w->list); in btracker_destroy()
92 struct bt_work *w; in __insert_pending() local
121 struct bt_work *w; in __find_pending() local
144 switch (w->op) { in update_stats()
190 struct bt_work *w; in btracker_queue() local
195 w = alloc_work(b); in btracker_queue()
196 if (!w) in btracker_queue()
211 *pwork = &w->work; in btracker_queue()
226 struct bt_work *w; in btracker_issue() local
233 *work = &w->work; in btracker_issue()
[all …]
/linux/include/linux/
H A Drcuwait.h23 static inline void rcuwait_init(struct rcuwait *w) in rcuwait_init() argument
25 w->task = NULL; in rcuwait_init()
32 static inline int rcuwait_active(struct rcuwait *w) in rcuwait_active() argument
34 return !!rcu_access_pointer(w->task); in rcuwait_active()
37 extern int rcuwait_wake_up(struct rcuwait *w);
47 rcu_assign_pointer(w->task, current); in prepare_to_rcuwait()
50 extern void finish_rcuwait(struct rcuwait *w);
55 prepare_to_rcuwait(w); \
72 finish_rcuwait(w); \
76 #define rcuwait_wait_event(w, condition, state) \ argument
[all …]
/linux/fs/xfs/libxfs/
H A Dxfs_trans_space.h39 #define XFS_EXTENTADD_SPACE_RES(mp,w) (XFS_BM_MAXLEVELS(mp,w) - 1) argument
43 XFS_EXTENTADD_SPACE_RES(mp,w))
50 #define XFS_DAENTER_1B(mp,w) \ argument
52 #define XFS_DAENTER_DBS(mp,w) \ argument
54 #define XFS_DAENTER_BLOCKS(mp,w) \ argument
55 (XFS_DAENTER_1B(mp,w) * XFS_DAENTER_DBS(mp,w))
56 #define XFS_DAENTER_BMAP1B(mp,w) \ argument
57 XFS_NEXTENTADD_SPACE_RES(mp, XFS_DAENTER_1B(mp, w), w)
59 (XFS_DAENTER_DBS(mp,w) * XFS_DAENTER_BMAP1B(mp,w))
61 (XFS_DAENTER_BLOCKS(mp,w) + XFS_DAENTER_BMAPS(mp,w))
[all …]
/linux/drivers/video/fbdev/omap/
H A Dlcd_dma.c137 u16 w; in set_b1_regs() local
257 w &= ~0x03; in set_b1_regs()
286 u16 w; in lcd_dma_irq_handler() local
294 w |= (1 << 3); in lcd_dma_irq_handler()
350 u16 w; in omap_enable_lcd_dma() local
361 w |= 1 << 8; in omap_enable_lcd_dma()
367 w |= 1 << 7; in omap_enable_lcd_dma()
383 u16 w; in omap_setup_lcd_dma() local
401 u16 w; in omap_stop_lcd_dma() local
408 w &= ~(1 << 7); in omap_stop_lcd_dma()
[all …]
/linux/tools/bpf/bpftool/
H A Dbtf.c109 jsonw_start_object(w); in dump_btf_type()
171 jsonw_start_array(w); in dump_btf_type()
196 jsonw_end_object(w); in dump_btf_type()
205 jsonw_end_array(w); in dump_btf_type()
220 jsonw_start_array(w); in dump_btf_type()
234 jsonw_end_object(w); in dump_btf_type()
243 jsonw_end_array(w); in dump_btf_type()
258 jsonw_start_array(w); in dump_btf_type()
284 jsonw_end_array(w); in dump_btf_type()
334 jsonw_end_array(w); in dump_btf_type()
[all …]
/linux/drivers/staging/greybus/
H A Daudio_helper.c27 switch (w->id) { in gbaudio_dapm_link_dai_widget()
35 if (!w->sname || !strstr(w->sname, dai_w->sname)) in gbaudio_dapm_link_dai_widget()
46 sink = w; in gbaudio_dapm_link_dai_widget()
48 src = w; in gbaudio_dapm_link_dai_widget()
95 list_del(&w->list); in gbaudio_dapm_free_widget()
106 kfree(w->kcontrols); in gbaudio_dapm_free_widget()
107 kfree_const(w->name); in gbaudio_dapm_free_widget()
109 kfree(w); in gbaudio_dapm_free_widget()
122 w = NULL; in gbaudio_dapm_free_controls()
126 w = tmp_w; in gbaudio_dapm_free_controls()
[all …]
/linux/fs/smb/client/
H A Ddfs.h31 #define ref_walk_start(w) ((w)->refs) argument
32 #define ref_walk_end(w) (&(w)->refs[ARRAY_SIZE((w)->refs) - 1]) argument
33 #define ref_walk_cur(w) ((w)->ref) argument
34 #define ref_walk_descend(w) (--ref_walk_cur(w) >= ref_walk_start(w)) argument
36 #define ref_walk_tit(w) (ref_walk_cur(w)->tit) argument
37 #define ref_walk_empty(w) (!ref_walk_tit(w)) argument
38 #define ref_walk_path(w) (ref_walk_cur(w)->path) argument
39 #define ref_walk_fpath(w) (ref_walk_cur(w)->full_path) argument
40 #define ref_walk_tl(w) (&ref_walk_cur(w)->tl) argument

12345678910>>...55