/linux/drivers/input/joystick/ |
A D | walkera0701.c | 85 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/ |
A D | const_hweight.h | 19 #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/ |
A D | const_hweight.h | 19 #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/ |
A D | tcp_westwood.c | 89 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/ |
A D | hweight.c | 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() 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/ |
A D | hweight.c | 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() 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/sound/soc/ |
A D | soc-dapm.c | 607 w->new_power = w->power; in dapm_reset() 1089 w, w->name, NULL); in dapm_new_dai_link() 1431 w->new_power = w->power_check(w); in dapm_widget_power_check() 1575 ret = w->event(w, NULL, event); in dapm_seq_check_event() 1599 w->power = w->new_power; in dapm_seq_run_coalesced() 1601 mask |= w->mask << w->shift; in dapm_seq_run_coalesced() 1694 ret = w->event(w, in dapm_seq_run() 1697 ret = w->event(w, in dapm_seq_run() 1707 ret = w->event(w, in dapm_seq_run() 1710 ret = w->event(w, in dapm_seq_run() [all …]
|
/linux/arch/m68k/ifpsp060/src/ |
A D | itest.S | 4877 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/infiniband/hw/hfi1/ |
A D | iowait.h | 309 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/ |
A D | util.h | 72 w->fn = fn; in mt76_worker_setup() 73 w->task = kthread_run(__mt76_worker_fn, w, in mt76_worker_setup() 76 if (IS_ERR(w->task)) { in mt76_worker_setup() 78 w->task = NULL; in mt76_worker_setup() 87 if (!w->task) in mt76_worker_schedule() 97 if (!w->task) in mt76_worker_disable() 100 kthread_park(w->task); in mt76_worker_disable() 106 if (!w->task) in mt76_worker_enable() 115 if (!w->task) in mt76_worker_teardown() 118 kthread_stop(w->task); in mt76_worker_teardown() [all …]
|
/linux/drivers/media/platform/omap/ |
A D | omap_voutlib.c | 69 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/drivers/media/platform/s5p-g2d/ |
A D | g2d-hw.c | 20 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/ |
A D | mcf8390.h | 30 #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/lib/mpi/ |
A D | mpi-sub-ui.c | 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() 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 …]
|
A D | mpiutil.c | 237 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 …]
|
A D | mpi-add.c | 37 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/arm/mach-omap1/ |
A D | lcd_dma.c | 134 u16 w; in set_b1_regs() local 254 w &= ~0x03; in set_b1_regs() 283 u16 w; in lcd_dma_irq_handler() local 291 w |= (1 << 3); in lcd_dma_irq_handler() 347 u16 w; in omap_enable_lcd_dma() local 358 w |= 1 << 8; in omap_enable_lcd_dma() 364 w |= 1 << 7; in omap_enable_lcd_dma() 380 u16 w; in omap_setup_lcd_dma() local 398 u16 w; in omap_stop_lcd_dma() local 405 w &= ~(1 << 7); in omap_stop_lcd_dma() [all …]
|
/linux/fs/xfs/libxfs/ |
A D | xfs_trans_space.h | 35 #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 …]
|
/linux/drivers/md/ |
A D | dm-cache-background-tracker.c | 83 struct bt_work *w; in __insert_pending() local 112 struct bt_work *w; in __find_pending() local 129 return *new ? w : NULL; in __find_pending() 135 switch (w->op) { in update_stats() 181 struct bt_work *w; in btracker_queue() local 186 w = alloc_work(b); in btracker_queue() 187 if (!w) in btracker_queue() 202 *pwork = &w->work; in btracker_queue() 217 struct bt_work *w; in btracker_issue() local 224 *work = &w->work; in btracker_issue() [all …]
|
/linux/drivers/staging/greybus/ |
A D | audio_helper.c | 28 switch (w->id) { in gbaudio_dapm_link_dai_widget() 36 if (!w->sname || !strstr(w->sname, dai_w->sname)) in gbaudio_dapm_link_dai_widget() 47 sink = w; in gbaudio_dapm_link_dai_widget() 49 src = w; in gbaudio_dapm_link_dai_widget() 96 list_del(&w->list); in gbaudio_dapm_free_widget() 107 kfree(w->kcontrols); in gbaudio_dapm_free_widget() 108 kfree_const(w->name); in gbaudio_dapm_free_widget() 109 kfree_const(w->sname); in gbaudio_dapm_free_widget() 110 kfree(w); in gbaudio_dapm_free_widget() 133 w = NULL; in gbaudio_dapm_free_controls() [all …]
|
/linux/net/ipv6/ |
A D | ip6_fib.c | 461 err = fib6_rt_dump(w->leaf, w->args); in fib6_node_dump() 487 w = kzalloc(sizeof(*w), GFP_ATOMIC); in fib6_tables_dump() 599 w->node = w->root; in fib6_dump_table() 600 w->skip = w->count; in fib6_dump_table() 2111 err = w->func(w); in fib6_walk_continue() 2156 w->node = w->root; in fib6_walk() 2543 iter->w.node = iter->w.root; in ipv6_route_seq_setup_walk() 2576 iter->w.node = iter->w.root; in ipv6_route_check_sernum() 2578 iter->w.skip = iter->w.count; in ipv6_route_check_sernum() 2640 struct fib6_walker *w = &iter->w; in ipv6_route_iter_active() local [all …]
|
/linux/tools/bpf/bpftool/ |
A D | btf.c | 112 jsonw_start_object(w); in dump_btf_type() 173 jsonw_start_array(w); in dump_btf_type() 198 jsonw_end_object(w); in dump_btf_type() 207 jsonw_end_array(w); in dump_btf_type() 219 jsonw_start_array(w); in dump_btf_type() 230 jsonw_end_object(w); in dump_btf_type() 236 jsonw_end_array(w); in dump_btf_type() 269 jsonw_start_array(w); in dump_btf_type() 280 jsonw_end_object(w); in dump_btf_type() 286 jsonw_end_array(w); in dump_btf_type() [all …]
|
/linux/arch/xtensa/mm/ |
A D | tlb.c | 26 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() 238 dtlb ? 'D' : 'I', w, e, vpn, in check_tlb_entry() 267 unsigned w, e; in check_tlb_sanity() local 271 for (w = 0; w < DTLB_ARF_WAYS; ++w) in check_tlb_sanity() 273 bug |= check_tlb_entry(w, e, true); in check_tlb_sanity() [all …]
|
/linux/arch/h8300/lib/ |
A D | udivsi3.S | 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 45 rotxl.w r2 [all …]
|
/linux/arch/mips/kernel/ |
A D | r4k-bugs64.c | 43 void mult_sh_align_mod(long *v1, long *v2, long *w, in mult_sh_align_mod() argument 115 *w = lw; in mult_sh_align_mod() 120 long v1[8], v2[8], w[8]; in check_mult_sh() local 134 mult_sh_align_mod(&v1[0], &v2[0], &w[0], 32, 0); in check_mult_sh() 145 if (v1[i] != w[i]) in check_mult_sh() 157 if (v2[i] != w[i]) in check_mult_sh() 249 long v, w, tmp; in check_daddiu() local 283 : "=&r" (v), "=&r" (w), "=&r" (tmp) in check_daddiu() 286 daddiu_bug = v != w; in check_daddiu() 301 : "=&r" (v), "=&r" (w), "=&r" (tmp) in check_daddiu() [all …]
|