Home
last modified time | relevance | path

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

12345678910>>...63

/linux-6.6.21/drivers/input/joystick/
Dwalkera0701.c62 static inline void walkera0701_parse_frame(struct walkera_dev *w) in walkera0701_parse_frame() argument
70 crc1 += w->buf[i] & 7; in walkera0701_parse_frame()
71 crc2 += (w->buf[i] & 8) >> 3; in walkera0701_parse_frame()
73 if ((w->buf[10] & 7) != (crc1 & 7)) in walkera0701_parse_frame()
75 if (((w->buf[10] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) in walkera0701_parse_frame()
78 crc1 += w->buf[i] & 7; in walkera0701_parse_frame()
79 crc2 += (w->buf[i] & 8) >> 3; in walkera0701_parse_frame()
81 if ((w->buf[23] & 7) != (crc1 & 7)) in walkera0701_parse_frame()
83 if (((w->buf[23] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) in walkera0701_parse_frame()
85 val1 = ((w->buf[0] & 7) * 256 + w->buf[1] * 16 + w->buf[2]) >> 2; in walkera0701_parse_frame()
[all …]
/linux-6.6.21/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-6.6.21/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-6.6.21/net/ipv4/
Dtcp_westwood.c63 struct westwood *w = inet_csk_ca(sk); in tcp_westwood_init() local
65 w->bk = 0; in tcp_westwood_init()
66 w->bw_ns_est = 0; in tcp_westwood_init()
67 w->bw_est = 0; in tcp_westwood_init()
68 w->accounted = 0; in tcp_westwood_init()
69 w->cumul_ack = 0; in tcp_westwood_init()
70 w->reset_rtt_min = 1; in tcp_westwood_init()
71 w->rtt_min = w->rtt = TCP_WESTWOOD_INIT_RTT; in tcp_westwood_init()
72 w->rtt_win_sx = tcp_jiffies32; in tcp_westwood_init()
73 w->snd_una = tcp_sk(sk)->snd_una; in tcp_westwood_init()
[all …]
/linux-6.6.21/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-6.6.21/lib/
Dhweight.c13 unsigned int __sw_hweight32(unsigned int w) in __sw_hweight32() argument
16 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()
30 unsigned int __sw_hweight16(unsigned int w) in __sw_hweight16() argument
32 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16()
39 unsigned int __sw_hweight8(unsigned int w) in __sw_hweight8() argument
41 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8()
[all …]
/linux-6.6.21/arch/loongarch/include/asm/
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
70 #define INT_ADD add.w
71 #define INT_ADDI addi.w
72 #define INT_SUB sub.w
73 #define INT_L ld.w
74 #define INT_S st.w
75 #define INT_SLL slli.w
[all …]
/linux-6.6.21/sound/soc/
Dsoc-dapm.c183 static bool dapm_dirty_widget(struct snd_soc_dapm_widget *w) in dapm_dirty_widget() argument
185 return !list_empty(&w->dirty); in dapm_dirty_widget()
188 static void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason) in dapm_mark_dirty() argument
190 dapm_assert_locked(w->dapm); in dapm_mark_dirty()
192 if (!dapm_dirty_widget(w)) { in dapm_mark_dirty()
193 dev_vdbg(w->dapm->dev, "Marking %s dirty due to %s\n", in dapm_mark_dirty()
194 w->name, reason); in dapm_mark_dirty()
195 list_add_tail(&w->dirty, &w->dapm->card->dapm_dirty); in dapm_mark_dirty()
207 struct snd_soc_dapm_widget *w, enum snd_soc_dapm_direction dir) in dapm_widget_invalidate_paths() argument
214 dapm_assert_locked(w->dapm); in dapm_widget_invalidate_paths()
[all …]
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Diowait.h299 static inline u16 iowait_get_desc(struct iowait_work *w) in iowait_get_desc() argument
304 if (!list_empty(&w->tx_head)) { in iowait_get_desc()
305 tx = list_first_entry(&w->tx_head, struct sdma_txreq, in iowait_get_desc()
309 w->iow->priority++; in iowait_get_desc()
314 static inline u32 iowait_get_all_desc(struct iowait *w) in iowait_get_all_desc() argument
318 num_desc = iowait_get_desc(&w->wait[IOWAIT_IB_SE]); in iowait_get_all_desc()
319 num_desc += iowait_get_desc(&w->wait[IOWAIT_TID_SE]); in iowait_get_all_desc()
323 static inline void iowait_update_priority(struct iowait_work *w) in iowait_update_priority() argument
327 if (!list_empty(&w->tx_head)) { in iowait_update_priority()
328 tx = list_first_entry(&w->tx_head, struct sdma_txreq, in iowait_update_priority()
[all …]
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/
Dutil.h58 mt76_worker_setup(struct ieee80211_hw *hw, struct mt76_worker *w, in mt76_worker_setup() argument
66 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()
71 ret = PTR_ERR(w->task); in mt76_worker_setup()
72 w->task = NULL; in mt76_worker_setup()
79 static inline void mt76_worker_schedule(struct mt76_worker *w) in mt76_worker_schedule() argument
81 if (!w->task) in mt76_worker_schedule()
84 if (!test_and_set_bit(MT76_WORKER_SCHEDULED, &w->state) && in mt76_worker_schedule()
85 !test_bit(MT76_WORKER_RUNNING, &w->state)) in mt76_worker_schedule()
[all …]
/linux-6.6.21/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-6.6.21/drivers/media/platform/samsung/s5p-g2d/
Dg2d-hw.c14 #define w(x, a) writel((x), d->regs + (a)) macro
20 w(1, SOFT_RESET_REG); in g2d_reset()
27 w(0, SRC_SELECT_REG); in g2d_set_src_size()
28 w(f->stride & 0xFFFF, SRC_STRIDE_REG); in g2d_set_src_size()
33 w(n, SRC_LEFT_TOP_REG); in g2d_set_src_size()
38 w(n, SRC_RIGHT_BOTTOM_REG); in g2d_set_src_size()
40 w(f->fmt->hw, SRC_COLOR_MODE_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()
53 w(f->stride & 0xFFFF, DST_STRIDE_REG); in g2d_set_dst_size()
[all …]
/linux-6.6.21/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-6.6.21/drivers/media/platform/ti/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()
126 win->w = new_win->w; in omap_vout_new_window()
133 if ((crop->height/win->w.height) >= 2) in omap_vout_new_window()
134 crop->height = win->w.height * 2; in omap_vout_new_window()
136 if ((crop->width/win->w.width) >= 2) in omap_vout_new_window()
137 crop->width = win->w.width * 2; in omap_vout_new_window()
144 if (crop->height != win->w.height) in omap_vout_new_window()
149 if ((crop->height/win->w.height) >= 4) in omap_vout_new_window()
150 crop->height = win->w.height * 4; in omap_vout_new_window()
[all …]
/linux-6.6.21/lib/crypto/mpi/
Dmpi-sub-ui.c37 int mpi_sub_ui(MPI w, MPI u, unsigned long vval) in mpi_sub_ui() argument
40 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()
49 if (mpi_resize(w, u->nlimbs + 1)) in mpi_sub_ui()
55 cy = mpihelp_add_1(w->d, u->d, u->nlimbs, (mpi_limb_t) vval); in mpi_sub_ui()
56 w->d[u->nlimbs] = cy; in mpi_sub_ui()
57 w->nlimbs = u->nlimbs + cy; in mpi_sub_ui()
58 w->sign = 1; in mpi_sub_ui()
[all …]
Dmpiutil.c235 void mpi_snatch(MPI w, MPI u) in mpi_snatch() argument
237 if (w) { in mpi_snatch()
238 mpi_assign_limb_space(w, u->d, u->alloced); in mpi_snatch()
239 w->nlimbs = u->nlimbs; in mpi_snatch()
240 w->sign = u->sign; in mpi_snatch()
241 w->flags = u->flags; in mpi_snatch()
250 MPI mpi_set(MPI w, MPI u) in mpi_set() argument
256 if (!w) in mpi_set()
257 w = mpi_alloc(mpi_get_nlimbs(u)); in mpi_set()
258 RESIZE_IF_NEEDED(w, usize); in mpi_set()
[all …]
Dmpi-add.c20 void mpi_add_ui(MPI w, MPI u, unsigned long v) in mpi_add_ui() argument
32 if (w->alloced < wsize) in mpi_add_ui()
33 mpi_resize(w, wsize); in mpi_add_ui()
37 wp = w->d; in mpi_add_ui()
62 w->nlimbs = wsize; in mpi_add_ui()
63 w->sign = wsign; in mpi_add_ui()
67 void mpi_add(MPI w, MPI u, MPI v) in mpi_add() argument
79 RESIZE_IF_NEEDED(w, wsize); in mpi_add()
89 RESIZE_IF_NEEDED(w, wsize); in mpi_add()
94 wp = w->d; in mpi_add()
[all …]
/linux-6.6.21/drivers/md/
Ddm-cache-background-tracker.c64 struct bt_work *w, *tmp; in btracker_destroy() local
67 list_for_each_entry_safe (w, tmp, &b->queued, list) { in btracker_destroy()
68 list_del(&w->list); in btracker_destroy()
69 kmem_cache_free(b->work_cache, w); in btracker_destroy()
92 struct bt_work *w; in __insert_pending() local
96 w = container_of(*new, struct bt_work, node); in __insert_pending()
99 cmp = cmp_oblock(w->work.oblock, nw->work.oblock); in __insert_pending()
121 struct bt_work *w; in __find_pending() local
125 w = container_of(*new, struct bt_work, node); in __find_pending()
127 cmp = cmp_oblock(w->work.oblock, oblock); in __find_pending()
[all …]
/linux-6.6.21/include/linux/
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);
45 static inline void prepare_to_rcuwait(struct rcuwait *w) in prepare_to_rcuwait() argument
47 rcu_assign_pointer(w->task, current); in prepare_to_rcuwait()
50 extern void finish_rcuwait(struct rcuwait *w);
52 #define ___rcuwait_wait_event(w, condition, state, ret, cmd) \ argument
55 prepare_to_rcuwait(w); \
[all …]
/linux-6.6.21/fs/xfs/libxfs/
Dxfs_trans_space.h35 #define XFS_EXTENTADD_SPACE_RES(mp,w) (XFS_BM_MAXLEVELS(mp,w) - 1) argument
36 #define XFS_NEXTENTADD_SPACE_RES(mp,b,w)\ argument
39 XFS_EXTENTADD_SPACE_RES(mp,w))
42 #define XFS_SWAP_RMAP_SPACE_RES(mp,b,w)\ argument
43 (XFS_NEXTENTADD_SPACE_RES((mp), (b), (w)) + \
46 #define XFS_DAENTER_1B(mp,w) \ argument
47 ((w) == XFS_DATA_FORK ? (mp)->m_dir_geo->fsbcount : 1)
48 #define XFS_DAENTER_DBS(mp,w) \ argument
49 (XFS_DA_NODE_MAXDEPTH + (((w) == XFS_DATA_FORK) ? 2 : 0))
50 #define XFS_DAENTER_BLOCKS(mp,w) \ argument
[all …]
/linux-6.6.21/drivers/video/fbdev/omap/
Dlcd_dma.c137 u16 w; in set_b1_regs() local
256 w = omap_readw(OMAP1610_DMA_LCD_CSDP); in set_b1_regs()
257 w &= ~0x03; in set_b1_regs()
258 w |= lcd_dma.data_type; in set_b1_regs()
259 omap_writew(w, OMAP1610_DMA_LCD_CSDP); in set_b1_regs()
261 w = omap_readw(OMAP1610_DMA_LCD_CTRL); in set_b1_regs()
263 w &= ~(0x03 << 6); in set_b1_regs()
265 w |= 1 << 1; /* Block interrupt enable */ in set_b1_regs()
267 w &= ~(1 << 1); in set_b1_regs()
268 omap_writew(w, OMAP1610_DMA_LCD_CTRL); in set_b1_regs()
[all …]
/linux-6.6.21/tools/bpf/bpftool/
Dbtf.c105 json_writer_t *w = json_wtr; in dump_btf_type() local
109 jsonw_start_object(w); in dump_btf_type()
110 jsonw_uint_field(w, "id", id); in dump_btf_type()
111 jsonw_string_field(w, "kind", btf_kind_str[btf_kind_safe(kind)]); in dump_btf_type()
112 jsonw_string_field(w, "name", btf_str(btf, t->name_off)); in dump_btf_type()
126 jsonw_uint_field(w, "size", t->size); in dump_btf_type()
127 jsonw_uint_field(w, "bits_offset", BTF_INT_OFFSET(v)); in dump_btf_type()
128 jsonw_uint_field(w, "nr_bits", BTF_INT_BITS(v)); in dump_btf_type()
129 jsonw_string_field(w, "encoding", enc); in dump_btf_type()
144 jsonw_uint_field(w, "type_id", t->type); in dump_btf_type()
[all …]
/linux-6.6.21/fs/smb/client/
Ddfs.h29 #define ref_walk_start(w) ((w)->refs) argument
30 #define ref_walk_end(w) (&(w)->refs[ARRAY_SIZE((w)->refs) - 1]) argument
31 #define ref_walk_cur(w) ((w)->ref) argument
32 #define ref_walk_descend(w) (--ref_walk_cur(w) >= ref_walk_start(w)) argument
34 #define ref_walk_tit(w) (ref_walk_cur(w)->tit) argument
35 #define ref_walk_empty(w) (!ref_walk_tit(w)) argument
36 #define ref_walk_path(w) (ref_walk_cur(w)->path) argument
37 #define ref_walk_fpath(w) (ref_walk_cur(w)->full_path) argument
38 #define ref_walk_tl(w) (&ref_walk_cur(w)->tl) argument
/linux-6.6.21/drivers/staging/greybus/
Daudio_helper.c18 struct snd_soc_dapm_widget *w; in gbaudio_dapm_link_dai_widget() local
23 list_for_each_entry(w, &card->widgets, list) { in gbaudio_dapm_link_dai_widget()
24 if (w->dapm != dai_w->dapm) in gbaudio_dapm_link_dai_widget()
27 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()
90 static void gbaudio_dapm_free_widget(struct snd_soc_dapm_widget *w) in gbaudio_dapm_free_widget() argument
95 list_del(&w->list); in gbaudio_dapm_free_widget()
102 snd_soc_dapm_widget_for_each_path_safe(w, dir, p, next_p) in gbaudio_dapm_free_widget()
[all …]
/linux-6.6.21/include/linux/soc/ti/
Domap1-usb.h24 # define USB2_TRX_MODE(w) (((w)>>24)&0x07) argument
25 # define USB1_TRX_MODE(w) (((w)>>20)&0x07) argument
26 # define USB0_TRX_MODE(w) (((w)>>16)&0x07) argument
38 # define SRP_GPUVBUS(w) (((w)>>24)&0x07) argument
39 # define A_WAIT_VRISE(w) (((w)>>20)&0x07) argument
40 # define B_ASE_BRST(w) (((w)>>16)&0x07) argument
49 # define OTG_HMC(w) (((w)>>0)&0x3f) argument

12345678910>>...63