Home
last modified time | relevance | path

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

12345678910>>...79

/openbmc/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 …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/qemu/tests/tcg/hexagon/
H A Dhvx_histogram_row.S202 v0.w = vadd(v1.w, v0.w)
203 v2.w = vadd(v3.w, v2.w)
209 v4.w = vadd(v5.w, v4.w)
210 v6.w = vadd(v7.w, v6.w)
214 v8.w = vadd(v9.w, v8.w)
243 v0.w = vadd(v0.w, v2.w)
247 v0.w = vadd(v0.w, v1.w)
251 v4.w = vadd(v4.w, v6.w)
252 v8.w = vadd(v8.w, v10.w)
256 v4.w = vadd(v4.w, v1.w)
[all …]
H A Dmem_noshuf.c207 n.w[0] = ~0; in main()
211 n.w[0] = ~0; in main()
215 n.w[0] = ~0; in main()
219 n.w[0] = ~0; in main()
223 n.w[0] = ~0; in main()
234 n.w[0] = ~0; in main()
238 n.w[0] = ~0; in main()
242 n.w[0] = ~0; in main()
278 res32 = mem_noshuf_sw_lw(&n.w[0], &n.w[0], 0x12345678); in main()
362 res32 = mem_noshuf_sw_lw(&n.w[0], &n.w[1], 0x12345678); in main()
[all …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/u-boot/drivers/usb/musb/
H A Dmusb_debug.h37 MUSB_FLAGS_PRINT(w, CSR0, TXPKTRDY); in musb_print_csr0()
38 MUSB_FLAGS_PRINT(w, CSR0, RXPKTRDY); in musb_print_csr0()
146 if (w & MUSB_RXCSR_P_ISO) in musb_print_rxcsr()
169 if (w & MUSB_TXCSR_MODE) in musb_print_txcsr()
180 #define musb_print_csr0(w) argument
182 #define musb_print_intrtx(w) argument
183 #define musb_print_intrrx(w) argument
186 #define musb_print_rxmaxp(w) argument
187 #define musb_print_rxcsr(w) argument
188 #define musb_print_txmaxp(w) argument
[all …]
/openbmc/qemu/hw/display/
H A Dexynos4210_fimd.c796 p.a = w->get_alpha(w, p.a); \
854 p.a = w->get_alpha(w, p.a); in draw_line_mapcolor()
1139 w->fb_len = fb_mapped_len = (w->virtpage_width + w->virtpage_offsize) * in fimd_update_memory_section()
1197 for (w = 0; w < NUM_OF_WINDOWS; w++) { in exynos4210_fimd_enable()
1353 for (w = 0; w < NUM_OF_WINDOWS; w++) { in exynos4210_fimd_reset()
1446 for (w = 0; w < NUM_OF_WINDOWS; w++) { in exynos4210_fimd_write()
1494 if (w != 1 && w != 2) { in exynos4210_fimd_write()
1565 for (w = 0; w < NUM_OF_WINDOWS; w++) { in exynos4210_fimd_write()
1618 for (w = 0; w < NUM_OF_WINDOWS; w++) { in exynos4210_fimd_write()
1728 if (w != 1 && w != 2) { in exynos4210_fimd_read()
[all …]
/openbmc/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 …]
/openbmc/qemu/util/
H A Dtimed-average.c74 w->min = UINT64_MAX; in window_reset()
75 w->max = 0; in window_reset()
76 w->sum = 0; in window_reset()
77 w->count = 0; in window_reset()
170 w->sum += value; in timed_average_account()
171 w->count++; in timed_average_account()
190 TimedAverageWindow *w; in timed_average_min() local
193 return w->min < UINT64_MAX ? w->min : 0; in timed_average_min()
203 TimedAverageWindow *w; in timed_average_avg() local
206 return w->count > 0 ? w->sum / w->count : 0; in timed_average_avg()
[all …]
/openbmc/linux/sound/soc/
H A Dsoc-dapm.c612 w->new_power = w->power; in dapm_reset()
1088 w, w->name, NULL); in dapm_new_dai_link()
1428 w->new_power = w->power_check(w); in dapm_widget_power_check()
1572 ret = w->event(w, NULL, event); in dapm_seq_check_event()
1596 w->power = w->new_power; in dapm_seq_run_coalesced()
1598 mask |= w->mask << w->shift; in dapm_seq_run_coalesced()
1690 ret = w->event(w, in dapm_seq_run()
1693 ret = w->event(w, in dapm_seq_run()
1702 ret = w->event(w, in dapm_seq_run()
1705 ret = w->event(w, in dapm_seq_run()
[all …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/qemu/tcg/aarch64/
H A Dtcg-target-con-set.h15 C_O0_I2(w, r)
18 C_O1_I1(w, r)
19 C_O1_I1(w, w)
20 C_O1_I1(w, wr)
28 C_O1_I2(w, 0, w)
29 C_O1_I2(w, w, w)
30 C_O1_I2(w, w, wN)
31 C_O1_I2(w, w, wO)
32 C_O1_I2(w, w, wZ)
33 C_O1_I3(w, w, w, w)
/openbmc/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
/openbmc/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 …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/qemu/tcg/arm/
H A Dtcg-target-con-set.h16 C_O0_I2(w, r)
23 C_O1_I1(w, r)
24 C_O1_I1(w, w)
25 C_O1_I1(w, wr)
34 C_O1_I2(w, 0, w)
35 C_O1_I2(w, w, w)
36 C_O1_I2(w, w, wO)
37 C_O1_I2(w, w, wV)
38 C_O1_I2(w, w, wZ)
39 C_O1_I3(w, w, w, w)
/openbmc/qemu/tests/tcg/mips/include/
H A Dwrappers_msa.h172 DO_MSA__WD__WS(NLOC_W, nloc.w)
177 DO_MSA__WD__WS(NLZC_W, nlzc.w)
182 DO_MSA__WD__WS(PCNT_W, pcnt.w)
235 DO_MSA__WD__WS_WT(BCLR_W, bclr.w)
240 DO_MSA__WD__WS_WT(BSET_W, bset.w)
245 DO_MSA__WD__WS_WT(BNEG_W, bneg.w)
294 DO_MSA__WD__WS_WT(FMAX_W, fmax.w)
379 DO_MSA__WD__WS_WT(CEQ_W, ceq.w)
708 DO_MSA__WD__WS_WT(SLL_W, sll.w)
713 DO_MSA__WD__WS_WT(SRA_W, sra.w)
[all …]
/openbmc/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 …]
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_trans_space.h35 #define XFS_EXTENTADD_SPACE_RES(mp,w) (XFS_BM_MAXLEVELS(mp,w) - 1) argument
39 XFS_EXTENTADD_SPACE_RES(mp,w))
46 #define XFS_DAENTER_1B(mp,w) \ argument
48 #define XFS_DAENTER_DBS(mp,w) \ argument
50 #define XFS_DAENTER_BLOCKS(mp,w) \ argument
51 (XFS_DAENTER_1B(mp,w) * XFS_DAENTER_DBS(mp,w))
52 #define XFS_DAENTER_BMAP1B(mp,w) \ argument
53 XFS_NEXTENTADD_SPACE_RES(mp, XFS_DAENTER_1B(mp, w), w)
55 (XFS_DAENTER_DBS(mp,w) * XFS_DAENTER_BMAP1B(mp,w))
57 (XFS_DAENTER_BLOCKS(mp,w) + XFS_DAENTER_BMAPS(mp,w))
[all …]

12345678910>>...79