/openbmc/linux/drivers/input/joystick/ |
H A D | walkera0701.c | 62 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 …]
|
/openbmc/linux/tools/include/asm-generic/bitops/ |
H A D | const_hweight.h | 8 #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 …]
|
/openbmc/linux/include/asm-generic/bitops/ |
H A D | const_hweight.h | 8 #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 …]
|
/openbmc/linux/net/ipv4/ |
H A D | tcp_westwood.c | 63 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 …]
|
/openbmc/qemu/tests/tcg/hexagon/ |
H A D | hvx_histogram_row.S | 105 v0.w = vdmpy(v0.h, r10.h):sat 108 v1.w = vdmpy(v1.h, r10.h):sat 111 v2.w = vdmpy(v2.h, r10.h):sat 114 v3.w = vdmpy(v3.h, r10.h):sat 117 v4.w = vdmpy(v4.h, r10.h):sat 120 v5.w = vdmpy(v5.h, r10.h):sat 123 v6.w = vdmpy(v6.h, r10.h):sat 126 v7.w = vdmpy(v7.h, r10.h):sat 129 v8.w = vdmpy(v8.h, r10.h):sat 132 v9.w = vdmpy(v9.h, r10.h):sat [all …]
|
H A D | mem_noshuf.c | 190 int32_t w[4]; member 207 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() 224 res32 = mem_noshuf_sb_lw(&n.b[0], &n.w[0], 0x87); in main() 234 n.w[0] = ~0; in main() 238 n.w[0] = ~0; in main() 242 n.w[0] = ~0; in main() [all …]
|
/openbmc/linux/tools/lib/ |
H A D | hweight.c | 12 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 …]
|
/openbmc/linux/lib/ |
H A D | hweight.c | 13 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 …]
|
/openbmc/u-boot/drivers/usb/musb/ |
H A D | musb_debug.h | 27 static inline void musb_print_csr0(u16 w) in musb_print_csr0() argument 29 serial_printf("\tcsr0 0x%4.4x\n", w); in musb_print_csr0() 30 MUSB_FLAGS_PRINT(w, CSR0, FLUSHFIFO); in musb_print_csr0() 31 MUSB_FLAGS_PRINT(w, CSR0_P, SVDSETUPEND); in musb_print_csr0() 32 MUSB_FLAGS_PRINT(w, CSR0_P, SVDRXPKTRDY); in musb_print_csr0() 33 MUSB_FLAGS_PRINT(w, CSR0_P, SENDSTALL); in musb_print_csr0() 34 MUSB_FLAGS_PRINT(w, CSR0_P, SETUPEND); in musb_print_csr0() 35 MUSB_FLAGS_PRINT(w, CSR0_P, DATAEND); in musb_print_csr0() 36 MUSB_FLAGS_PRINT(w, CSR0_P, SENTSTALL); in musb_print_csr0() 37 MUSB_FLAGS_PRINT(w, CSR0, TXPKTRDY); in musb_print_csr0() [all …]
|
/openbmc/qemu/hw/display/ |
H A D | exynos4210_fimd.c | 109 #define IS_PALETTIZED_MODE(w) (w->wincon & 0xC) argument 111 #define WIN_BPP_MODE(w) ((w->wincon >> 2) & 0xF) argument 112 #define WIN_BPP_MODE_WITH_ALPHA(w) \ argument 113 (WIN_BPP_MODE(w) == 0xD || WIN_BPP_MODE(w) == 0xE) 117 #define FIMD_WINDOW_PROTECTED(s, w) ((s) & (1 << (10 + (w)))) argument 284 void (*draw_line)(Exynos4210fimdWindow *w, uint8_t *src, uint8_t *dst, 286 uint32_t (*get_alpha)(Exynos4210fimdWindow *w, uint32_t pix_a); 587 static uint32_t fimd_get_alpha_pix(Exynos4210fimdWindow *w, uint32_t pix_a) in fimd_get_alpha_pix() argument 593 fimd_get_alpha_pix_extlow(Exynos4210fimdWindow *w, uint32_t pix_a) in fimd_get_alpha_pix_extlow() argument 599 fimd_get_alpha_pix_exthigh(Exynos4210fimdWindow *w, uint32_t pix_a) in fimd_get_alpha_pix_exthigh() argument [all …]
|
/openbmc/linux/sound/soc/ |
H A D | soc-dapm.c | 183 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 …]
|
/openbmc/linux/arch/loongarch/include/asm/ |
H A D | asm.h | 55 #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 …]
|
/openbmc/qemu/util/ |
H A D | timed-average.c | 59 static void update_expiration(TimedAverageWindow *w, int64_t now, in update_expiration() argument 63 int64_t elapsed = (now - w->expiration) % period; in update_expiration() 67 w->expiration = now + remaining; in update_expiration() 74 static void window_reset(TimedAverageWindow *w) in window_reset() argument 76 w->min = UINT64_MAX; in window_reset() 77 w->max = 0; in window_reset() 78 w->sum = 0; in window_reset() 79 w->count = 0; in window_reset() 137 TimedAverageWindow *w = &ta->windows[i]; in check_expirations() local 138 if (w->expiration <= now) { in check_expirations() [all …]
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | iowait.h | 299 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 …]
|
/openbmc/linux/arch/m68k/ifpsp060/src/ |
H A D | itest.S | 173 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 …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | util.h | 58 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 …]
|
/openbmc/qemu/tcg/aarch64/ |
H A D | tcg-target-con-set.h | 15 C_O0_I2(w, r) 18 C_O1_I1(w, r) 19 C_O1_I1(w, w) 20 C_O1_I1(w, wr) 29 C_O1_I2(w, 0, w) 30 C_O1_I2(w, w, w) 31 C_O1_I2(w, w, wN) 32 C_O1_I2(w, w, wO) 33 C_O1_I2(w, w, wZ) 34 C_O1_I3(w, w, w, w)
|
/openbmc/linux/drivers/media/platform/samsung/s5p-g2d/ |
H A D | g2d-hw.c | 14 #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 …]
|
/openbmc/qemu/host/include/i386/host/ |
H A D | bufferiszero.c.inc | 20 __m128i w = *(__m128i_u *)(buf + len - 16); 27 v |= e[-1]; w |= e[-2]; 28 SSE_REASSOC_BARRIER(v, w); 29 v |= e[-3]; w |= e[-4]; 30 SSE_REASSOC_BARRIER(v, w); 31 v |= e[-5]; w |= e[-6]; 32 SSE_REASSOC_BARRIER(v, w); 33 v |= e[-7]; v |= w; 45 v = p[0]; w = p[1]; 46 SSE_REASSOC_BARRIER(v, w); [all …]
|
/openbmc/linux/arch/m68k/include/asm/ |
H 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
|
/openbmc/linux/drivers/media/platform/ti/omap/ |
H 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() 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 …]
|
/openbmc/qemu/tests/tcg/mips/include/ |
H A D | wrappers_msa.h | 172 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) 197 DO_MSA__WD__WS_WT(BINSL_W, binsl.w) 198 DO_MSA__WD__WD_WT(BINSL_W__DDT, binsl.w) 199 DO_MSA__WD__WS_WD(BINSL_W__DSD, binsl.w) 210 DO_MSA__WD__WS_WT(BINSR_W, binsr.w) 211 DO_MSA__WD__WD_WT(BINSR_W__DDT, binsr.w) 212 DO_MSA__WD__WS_WD(BINSR_W__DSD, binsr.w) 235 DO_MSA__WD__WS_WT(BCLR_W, bclr.w) [all …]
|
/openbmc/linux/lib/crypto/mpi/ |
H A D | mpi-sub-ui.c | 37 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 …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-cache-background-tracker.c | 52 struct bt_work *w, *tmp; in btracker_destroy() local 55 list_for_each_entry_safe (w, tmp, &b->queued, list) { in btracker_destroy() 56 list_del(&w->list); in btracker_destroy() 57 kmem_cache_free(btracker_work_cache, w); in btracker_destroy() 79 struct bt_work *w; in __insert_pending() local 83 w = container_of(*new, struct bt_work, node); in __insert_pending() 86 cmp = cmp_oblock(w->work.oblock, nw->work.oblock); in __insert_pending() 108 struct bt_work *w; in __find_pending() local 112 w = container_of(*new, struct bt_work, node); in __find_pending() 114 cmp = cmp_oblock(w->work.oblock, oblock); in __find_pending() [all …]
|
/openbmc/qemu/tcg/arm/ |
H A D | tcg-target-con-set.h | 16 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)
|