Home
last modified time | relevance | path

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

12345678910>>...52

/Linux-v4.19/drivers/input/joystick/
Dwalkera0701.c66 static inline void walkera0701_parse_frame(struct walkera_dev *w) in walkera0701_parse_frame() argument
74 crc1 += w->buf[i] & 7; in walkera0701_parse_frame()
75 crc2 += (w->buf[i] & 8) >> 3; in walkera0701_parse_frame()
77 if ((w->buf[10] & 7) != (crc1 & 7)) in walkera0701_parse_frame()
79 if (((w->buf[10] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) in walkera0701_parse_frame()
82 crc1 += w->buf[i] & 7; in walkera0701_parse_frame()
83 crc2 += (w->buf[i] & 8) >> 3; in walkera0701_parse_frame()
85 if ((w->buf[23] & 7) != (crc1 & 7)) in walkera0701_parse_frame()
87 if (((w->buf[23] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) in walkera0701_parse_frame()
89 val1 = ((w->buf[0] & 7) * 256 + w->buf[1] * 16 + w->buf[2]) >> 2; in walkera0701_parse_frame()
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/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 …]
/Linux-v4.19/net/ipv4/
Dtcp_westwood.c62 struct westwood *w = inet_csk_ca(sk); in tcp_westwood_init() local
64 w->bk = 0; in tcp_westwood_init()
65 w->bw_ns_est = 0; in tcp_westwood_init()
66 w->bw_est = 0; in tcp_westwood_init()
67 w->accounted = 0; in tcp_westwood_init()
68 w->cumul_ack = 0; in tcp_westwood_init()
69 w->reset_rtt_min = 1; in tcp_westwood_init()
70 w->rtt_min = w->rtt = TCP_WESTWOOD_INIT_RTT; in tcp_westwood_init()
71 w->rtt_win_sx = tcp_jiffies32; in tcp_westwood_init()
72 w->snd_una = tcp_sk(sk)->snd_una; in tcp_westwood_init()
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/lib/
Dhweight.c14 unsigned int __sw_hweight32(unsigned int w) in __sw_hweight32() argument
17 w -= (w >> 1) & 0x55555555; in __sw_hweight32()
18 w = (w & 0x33333333) + ((w >> 2) & 0x33333333); in __sw_hweight32()
19 w = (w + (w >> 4)) & 0x0f0f0f0f; in __sw_hweight32()
20 return (w * 0x01010101) >> 24; in __sw_hweight32()
22 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32()
32 unsigned int __sw_hweight16(unsigned int w) in __sw_hweight16() argument
34 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16()
41 unsigned int __sw_hweight8(unsigned int w) in __sw_hweight8() argument
43 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8()
[all …]
/Linux-v4.19/sound/soc/
Dsoc-dapm.c157 static bool dapm_dirty_widget(struct snd_soc_dapm_widget *w) in dapm_dirty_widget() argument
159 return !list_empty(&w->dirty); in dapm_dirty_widget()
162 static void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason) in dapm_mark_dirty() argument
164 dapm_assert_locked(w->dapm); in dapm_mark_dirty()
166 if (!dapm_dirty_widget(w)) { in dapm_mark_dirty()
167 dev_vdbg(w->dapm->dev, "Marking %s dirty due to %s\n", in dapm_mark_dirty()
168 w->name, reason); in dapm_mark_dirty()
169 list_add_tail(&w->dirty, &w->dapm->card->dapm_dirty); in dapm_mark_dirty()
181 struct snd_soc_dapm_widget *w, enum snd_soc_dapm_direction dir) in dapm_widget_invalidate_paths() argument
188 dapm_assert_locked(w->dapm); in dapm_widget_invalidate_paths()
[all …]
/Linux-v4.19/arch/m68k/ifpsp060/src/
Ditest.S173 mov.w &0x0004,ICCR(%a6)
174 mov.w &0x0000,%cc
179 mov.w %cc,SCCR(%a6)
197 mov.w &0x0004,ICCR(%a6)
198 mov.w &0x0000,%cc
203 mov.w %cc,SCCR(%a6)
220 mov.w &0x0000,ICCR(%a6)
221 mov.w &0x0000,%cc
226 mov.w %cc,SCCR(%a6)
243 mov.w &0x0000,ICCR(%a6)
[all …]
/Linux-v4.19/arch/m68k/include/asm/
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-v4.19/drivers/media/platform/s5p-g2d/
Dg2d-hw.c18 #define w(x, a) writel((x), d->regs + (a)) macro
24 w(1, SOFT_RESET_REG); in g2d_reset()
31 w(0, SRC_SELECT_REG); in g2d_set_src_size()
32 w(f->stride & 0xFFFF, SRC_STRIDE_REG); in g2d_set_src_size()
37 w(n, SRC_LEFT_TOP_REG); in g2d_set_src_size()
42 w(n, SRC_RIGHT_BOTTOM_REG); in g2d_set_src_size()
44 w(f->fmt->hw, SRC_COLOR_MODE_REG); in g2d_set_src_size()
49 w(a, SRC_BASE_ADDR_REG); in g2d_set_src_addr()
56 w(0, DST_SELECT_REG); in g2d_set_dst_size()
57 w(f->stride & 0xFFFF, DST_STRIDE_REG); in g2d_set_dst_size()
[all …]
/Linux-v4.19/drivers/media/platform/omap/
Domap_voutlib.c69 try_win = new_win->w; in omap_vout_try_window()
97 new_win->w = try_win; in omap_vout_try_window()
122 win->w = new_win->w; in omap_vout_new_window()
129 if ((crop->height/win->w.height) >= 2) in omap_vout_new_window()
130 crop->height = win->w.height * 2; in omap_vout_new_window()
132 if ((crop->width/win->w.width) >= 2) in omap_vout_new_window()
133 crop->width = win->w.width * 2; in omap_vout_new_window()
140 if (crop->height != win->w.height) in omap_vout_new_window()
145 if ((crop->height/win->w.height) >= 4) in omap_vout_new_window()
146 crop->height = win->w.height * 4; in omap_vout_new_window()
[all …]
/Linux-v4.19/fs/xfs/libxfs/
Dxfs_trans_space.h28 #define XFS_EXTENTADD_SPACE_RES(mp,w) (XFS_BM_MAXLEVELS(mp,w) - 1) argument
29 #define XFS_NEXTENTADD_SPACE_RES(mp,b,w)\ argument
32 XFS_EXTENTADD_SPACE_RES(mp,w))
35 #define XFS_SWAP_RMAP_SPACE_RES(mp,b,w)\ argument
36 (XFS_NEXTENTADD_SPACE_RES((mp), (b), (w)) + \
39 #define XFS_DAENTER_1B(mp,w) \ argument
40 ((w) == XFS_DATA_FORK ? (mp)->m_dir_geo->fsbcount : 1)
41 #define XFS_DAENTER_DBS(mp,w) \ argument
42 (XFS_DA_NODE_MAXDEPTH + (((w) == XFS_DATA_FORK) ? 2 : 0))
43 #define XFS_DAENTER_BLOCKS(mp,w) \ argument
[all …]
/Linux-v4.19/arch/arm/mach-omap1/
Dlcd_dma.c138 u16 w; in set_b1_regs() local
257 w = omap_readw(OMAP1610_DMA_LCD_CSDP); in set_b1_regs()
258 w &= ~0x03; in set_b1_regs()
259 w |= lcd_dma.data_type; in set_b1_regs()
260 omap_writew(w, OMAP1610_DMA_LCD_CSDP); in set_b1_regs()
262 w = omap_readw(OMAP1610_DMA_LCD_CTRL); in set_b1_regs()
264 w &= ~(0x03 << 6); in set_b1_regs()
266 w |= 1 << 1; /* Block interrupt enable */ in set_b1_regs()
268 w &= ~(1 << 1); in set_b1_regs()
269 omap_writew(w, OMAP1610_DMA_LCD_CTRL); in set_b1_regs()
[all …]
/Linux-v4.19/drivers/md/
Ddm-cache-background-tracker.c83 struct bt_work *w; in __insert_pending() local
87 w = container_of(*new, struct bt_work, node); in __insert_pending()
90 cmp = cmp_oblock(w->work.oblock, nw->work.oblock); in __insert_pending()
112 struct bt_work *w; in __find_pending() local
116 w = container_of(*new, struct bt_work, node); in __find_pending()
118 cmp = cmp_oblock(w->work.oblock, oblock); in __find_pending()
129 return *new ? w : NULL; in __find_pending()
133 static void update_stats(struct background_tracker *b, struct policy_work *w, int delta) in update_stats() argument
135 switch (w->op) { in update_stats()
181 struct bt_work *w; in btracker_queue() local
[all …]
/Linux-v4.19/drivers/gpu/drm/i915/selftests/
Digt_wedge_me.h24 struct igt_wedge_me *w = container_of(work, typeof(*w), work.work); in __igt_wedge_me() local
26 pr_err("%s timed out, cancelling test.\n", w->name); in __igt_wedge_me()
28 GEM_TRACE("%s timed out.\n", w->name); in __igt_wedge_me()
31 i915_gem_set_wedged(w->i915); in __igt_wedge_me()
34 static void __igt_init_wedge(struct igt_wedge_me *w, in __igt_init_wedge() argument
39 w->i915 = i915; in __igt_init_wedge()
40 w->name = name; in __igt_init_wedge()
42 INIT_DELAYED_WORK_ONSTACK(&w->work, __igt_wedge_me); in __igt_init_wedge()
43 schedule_delayed_work(&w->work, timeout); in __igt_init_wedge()
46 static void __igt_fini_wedge(struct igt_wedge_me *w) in __igt_fini_wedge() argument
[all …]
/Linux-v4.19/arch/arm64/include/asm/
Dcmpxchg.h33 #define __XCHG_CASE(w, sz, name, mb, nop_lse, acq, acq_lse, rel, cl) \ argument
42 "1: ld" #acq "xr" #sz "\t%" #w "0, %2\n" \
43 " st" #rel "xr" #sz "\t%w1, %" #w "3, %2\n" \
47 " swp" #acq_lse #rel #sz "\t%" #w "3, %" #w "0, %2\n" \
57 __XCHG_CASE(w, b, 1, , , , , , )
58 __XCHG_CASE(w, h, 2, , , , , , )
59 __XCHG_CASE(w, , 4, , , , , , )
61 __XCHG_CASE(w, b, acq_1, , , a, a, , "memory")
62 __XCHG_CASE(w, h, acq_2, , , a, a, , "memory")
63 __XCHG_CASE(w, , acq_4, , , a, a, , "memory")
[all …]
/Linux-v4.19/arch/x86/include/asm/
Darch_hweight.h23 static __always_inline unsigned int __arch_hweight32(unsigned int w) in __arch_hweight32() argument
29 : REG_IN (w)); in __arch_hweight32()
34 static inline unsigned int __arch_hweight16(unsigned int w) in __arch_hweight16() argument
36 return __arch_hweight32(w & 0xffff); in __arch_hweight16()
39 static inline unsigned int __arch_hweight8(unsigned int w) in __arch_hweight8() argument
41 return __arch_hweight32(w & 0xff); in __arch_hweight8()
45 static inline unsigned long __arch_hweight64(__u64 w) in __arch_hweight64() argument
47 return __arch_hweight32((u32)w) + in __arch_hweight64()
48 __arch_hweight32((u32)(w >> 32)); in __arch_hweight64()
51 static __always_inline unsigned long __arch_hweight64(__u64 w) in __arch_hweight64() argument
[all …]
/Linux-v4.19/arch/xtensa/mm/
Dtlb.c26 int w, i; in __flush_itlb_all() local
28 for (w = 0; w < ITLB_ARF_WAYS; w++) { in __flush_itlb_all()
30 int e = w + (i << PAGE_SHIFT); in __flush_itlb_all()
39 int w, i; in __flush_dtlb_all() local
41 for (w = 0; w < DTLB_ARF_WAYS; w++) { in __flush_dtlb_all()
43 int e = w + (i << PAGE_SHIFT); in __flush_dtlb_all()
214 static int check_tlb_entry(unsigned w, unsigned e, bool dtlb) in check_tlb_entry() argument
216 unsigned tlbidx = w | (e << PAGE_SHIFT); in check_tlb_entry()
228 dtlb ? 'D' : 'I', w, e, vpn, in check_tlb_entry()
238 dtlb ? 'D' : 'I', w, e, r0, r1, pte); in check_tlb_entry()
[all …]
/Linux-v4.19/net/ipv6/
Dip6_fib.c44 struct fib6_walker w; member
63 static int fib6_walk(struct net *net, struct fib6_walker *w);
64 static int fib6_walk_continue(struct fib6_walker *w);
75 #define FOR_WALKERS(net, w) \ argument
76 list_for_each_entry(w, &(net)->ipv6.fib6_walkers, lh)
78 static void fib6_walker_link(struct net *net, struct fib6_walker *w) in fib6_walker_link() argument
81 list_add(&w->lh, &net->ipv6.fib6_walkers); in fib6_walker_link()
85 static void fib6_walker_unlink(struct net *net, struct fib6_walker *w) in fib6_walker_unlink() argument
88 list_del(&w->lh); in fib6_walker_unlink()
430 static int fib6_node_dump(struct fib6_walker *w) in fib6_node_dump() argument
[all …]
/Linux-v4.19/arch/h8300/lib/
Dudivsi3.S7 mov.w A1E,A1E ; denominator top word 0?
11 mov.w A0E,A2
13 divxu.w A1,A2P
14 mov.w A2E,A0E
15 divxu.w A1,A0P
16 mov.w A0E,A3
17 mov.w A2,A0E
32 mov.w e2,e2
36 mov.w e2,e2
42 mov.w e2,e2
[all …]
/Linux-v4.19/arch/mips/kernel/
Dcpu-bugs64.c45 static inline void mult_sh_align_mod(long *v1, long *v2, long *w, in mult_sh_align_mod() argument
117 *w = lw; in mult_sh_align_mod()
122 long v1[8], v2[8], w[8]; in check_mult_sh() local
136 mult_sh_align_mod(&v1[0], &v2[0], &w[0], 32, 0); in check_mult_sh()
137 mult_sh_align_mod(&v1[1], &v2[1], &w[1], 32, 1); in check_mult_sh()
138 mult_sh_align_mod(&v1[2], &v2[2], &w[2], 32, 2); in check_mult_sh()
139 mult_sh_align_mod(&v1[3], &v2[3], &w[3], 32, 3); in check_mult_sh()
140 mult_sh_align_mod(&v1[4], &v2[4], &w[4], 32, 4); in check_mult_sh()
141 mult_sh_align_mod(&v1[5], &v2[5], &w[5], 32, 5); in check_mult_sh()
142 mult_sh_align_mod(&v1[6], &v2[6], &w[6], 32, 6); in check_mult_sh()
[all …]
/Linux-v4.19/arch/arm/mach-omap1/include/mach/
Dusb.h38 # define USB2_TRX_MODE(w) (((w)>>24)&0x07) argument
39 # define USB1_TRX_MODE(w) (((w)>>20)&0x07) argument
40 # define USB0_TRX_MODE(w) (((w)>>16)&0x07) argument
52 # define SRP_GPUVBUS(w) (((w)>>24)&0x07) argument
53 # define A_WAIT_VRISE(w) (((w)>>20)&0x07) argument
54 # define B_ASE_BRST(w) (((w)>>16)&0x07) argument
63 # define OTG_HMC(w) (((w)>>0)&0x3f) argument
/Linux-v4.19/drivers/gpu/drm/i915/
Dintel_workarounds.c552 struct i915_workarounds *w = &rq->i915->workarounds; in intel_ctx_workarounds_emit() local
556 if (w->count == 0) in intel_ctx_workarounds_emit()
563 cs = intel_ring_begin(rq, (w->count * 2 + 2)); in intel_ctx_workarounds_emit()
567 *cs++ = MI_LOAD_REGISTER_IMM(w->count); in intel_ctx_workarounds_emit()
568 for (i = 0; i < w->count; i++) { in intel_ctx_workarounds_emit()
569 *cs++ = w->reg[i].addr; in intel_ctx_workarounds_emit()
570 *cs++ = w->reg[i].value; in intel_ctx_workarounds_emit()
942 static void whitelist_reg(struct whitelist *w, i915_reg_t reg) in whitelist_reg() argument
944 if (GEM_WARN_ON(w->count >= RING_MAX_NONPRIV_SLOTS)) in whitelist_reg()
947 w->reg[w->count++] = reg; in whitelist_reg()
[all …]
/Linux-v4.19/drivers/input/gameport/
Dfm801-gp.c46 unsigned short w; in fm801_gp_cooked_read() local
48 w = inw(gameport->io + 2); in fm801_gp_cooked_read()
49 *buttons = (~w >> 14) & 0x03; in fm801_gp_cooked_read()
50 axes[0] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
51 w = inw(gameport->io + 4); in fm801_gp_cooked_read()
52 axes[1] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
53 w = inw(gameport->io + 6); in fm801_gp_cooked_read()
54 *buttons |= ((~w >> 14) & 0x03) << 2; in fm801_gp_cooked_read()
55 axes[2] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
56 w = inw(gameport->io + 8); in fm801_gp_cooked_read()
[all …]
/Linux-v4.19/include/linux/ceph/
Dmdsmap.h43 ceph_mdsmap_get_addr(struct ceph_mdsmap *m, int w) in ceph_mdsmap_get_addr() argument
45 if (w >= m->m_num_mds) in ceph_mdsmap_get_addr()
47 return &m->m_info[w].addr; in ceph_mdsmap_get_addr()
50 static inline int ceph_mdsmap_get_state(struct ceph_mdsmap *m, int w) in ceph_mdsmap_get_state() argument
52 BUG_ON(w < 0); in ceph_mdsmap_get_state()
53 if (w >= m->m_num_mds) in ceph_mdsmap_get_state()
55 return m->m_info[w].state; in ceph_mdsmap_get_state()
58 static inline bool ceph_mdsmap_is_laggy(struct ceph_mdsmap *m, int w) in ceph_mdsmap_is_laggy() argument
60 if (w >= 0 && w < m->m_num_mds) in ceph_mdsmap_is_laggy()
61 return m->m_info[w].laggy; in ceph_mdsmap_is_laggy()

12345678910>>...52