| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/u-boot/drivers/usb/musb/ |
| H A D | musb_debug.h | 28 static inline void musb_print_csr0(u16 w) in musb_print_csr0() argument 30 serial_printf("\tcsr0 0x%4.4x\n", w); in musb_print_csr0() 31 MUSB_FLAGS_PRINT(w, CSR0, FLUSHFIFO); in musb_print_csr0() 32 MUSB_FLAGS_PRINT(w, CSR0_P, SVDSETUPEND); in musb_print_csr0() 33 MUSB_FLAGS_PRINT(w, CSR0_P, SVDRXPKTRDY); in musb_print_csr0() 34 MUSB_FLAGS_PRINT(w, CSR0_P, SENDSTALL); in musb_print_csr0() 35 MUSB_FLAGS_PRINT(w, CSR0_P, SETUPEND); in musb_print_csr0() 36 MUSB_FLAGS_PRINT(w, CSR0_P, DATAEND); in musb_print_csr0() 37 MUSB_FLAGS_PRINT(w, CSR0_P, SENTSTALL); in musb_print_csr0() 38 MUSB_FLAGS_PRINT(w, CSR0, TXPKTRDY); in musb_print_csr0() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/external/xserver/include/ |
| H A D | windowstr.h | 179 #define wTrackParent(w,field) ((w)->optional ? \ argument 180 (w)->optional->field \ 181 : FindWindowWithOptional(w)->optional->field) 182 #define wUseDefault(w,field,def) ((w)->optional ? \ argument 183 (w)->optional->field \ 186 #define wVisual(w) wTrackParent(w, visual) argument 187 #define wCursor(w) ((w)->cursorIsNone ? None : wTrackParent(w, cursor)) argument 188 #define wColormap(w) ((w)->drawable.class == InputOnly ? None : wTrackParent(w, colormap)) argument 189 #define wDontPropagateMask(w) wUseDefault(w, dontPropagateMask, DontPropagateMasks[(w)->dontPropaga… argument 190 #define wOtherEventMasks(w) wUseDefault(w, otherEventMasks, 0) argument [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/vendor/nunicode/src/libnu/gen/ |
| H A D | _ducet_switch.c | 73 int32_t _nu_ducet_weight_switch(uint32_t u, int32_t *w, void *context) { in _nu_ducet_weight_switch() argument 76 if (w == 0) { /* first entry, root states */ in _nu_ducet_weight_switch() 85 if (w != 0) { /* re-entry, intermediate states */ in _nu_ducet_weight_switch() 86 int32_t weight = *w; in _nu_ducet_weight_switch() 87 *w = 0; in _nu_ducet_weight_switch() 95 *w = 1; in _nu_ducet_weight_switch() 104 *w = 1; in _nu_ducet_weight_switch() 156 *w = 1; in _nu_ducet_weight_switch() 208 *w = 1; in _nu_ducet_weight_switch() 217 *w = 1; in _nu_ducet_weight_switch() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/watchdog/ |
| H A D | bd70528_wdt.c | 131 static int bd70528_wdt_set_locked(struct wdtbd70528 *w, int enable) in bd70528_wdt_set_locked() argument 133 return bd70528_wdt_set(w->mfd, enable, NULL); in bd70528_wdt_set_locked() 136 static int bd70528_wdt_change(struct wdtbd70528 *w, int enable) in bd70528_wdt_change() argument 140 bd70528_wdt_lock(w->mfd); in bd70528_wdt_change() 141 ret = bd70528_wdt_set_locked(w, enable); in bd70528_wdt_change() 142 bd70528_wdt_unlock(w->mfd); in bd70528_wdt_change() 149 struct wdtbd70528 *w = watchdog_get_drvdata(wdt); in bd70528_wdt_start() local 151 dev_dbg(w->dev, "WDT ping...\n"); in bd70528_wdt_start() 152 return bd70528_wdt_change(w, 1); in bd70528_wdt_start() 157 struct wdtbd70528 *w = watchdog_get_drvdata(wdt); in bd70528_wdt_stop() local [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/ |
| H A D | iowait.h | 340 static inline u16 iowait_get_desc(struct iowait_work *w) in iowait_get_desc() argument 345 if (!list_empty(&w->tx_head)) { in iowait_get_desc() 346 tx = list_first_entry(&w->tx_head, struct sdma_txreq, in iowait_get_desc() 350 w->iow->priority++; in iowait_get_desc() 355 static inline u32 iowait_get_all_desc(struct iowait *w) in iowait_get_all_desc() argument 359 num_desc = iowait_get_desc(&w->wait[IOWAIT_IB_SE]); in iowait_get_all_desc() 360 num_desc += iowait_get_desc(&w->wait[IOWAIT_TID_SE]); in iowait_get_all_desc() 364 static inline void iowait_update_priority(struct iowait_work *w) in iowait_update_priority() argument 368 if (!list_empty(&w->tx_head)) { in iowait_update_priority() 369 tx = list_first_entry(&w->tx_head, struct sdma_txreq, in iowait_update_priority() [all …]
|
| /OK3568_Linux_fs/external/xserver/miext/shadow/ |
| H A D | shrotpack.h | 52 #define SCRLEFT(x,y,w,h) (pScreen->height - ((y) + (h))) argument 53 #define SCRY(x,y,w,h) (x) argument 54 #define SCRWIDTH(x,y,w,h) (h) argument 55 #define FIRSTSHA(x,y,w,h) (((y) + (h) - 1) * shaStride + (x)) argument 56 #define STEPDOWN(x,y,w,h) ((w)--) argument 57 #define NEXTY(x,y,w,h) ((x)++) argument 63 #define SCRLEFT(x,y,w,h) (y) argument 64 #define SCRY(x,y,w,h) (pScreen->width - ((x) + (w)) - 1) argument 65 #define SCRWIDTH(x,y,w,h) (h) argument 66 #define FIRSTSHA(x,y,w,h) ((y) * shaStride + (x + w - 1)) argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/mediatek/mt76/ |
| H A D | util.h | 64 mt76_worker_setup(struct ieee80211_hw *hw, struct mt76_worker *w, in mt76_worker_setup() argument 72 w->fn = fn; in mt76_worker_setup() 73 w->task = kthread_create(__mt76_worker_fn, w, "mt76-%s %s", in mt76_worker_setup() 76 ret = PTR_ERR_OR_ZERO(w->task); in mt76_worker_setup() 78 w->task = NULL; in mt76_worker_setup() 82 wake_up_process(w->task); in mt76_worker_setup() 87 static inline void mt76_worker_schedule(struct mt76_worker *w) in mt76_worker_schedule() argument 89 if (!w->task) in mt76_worker_schedule() 92 if (!test_and_set_bit(MT76_WORKER_SCHEDULED, &w->state) && in mt76_worker_schedule() 93 !test_bit(MT76_WORKER_RUNNING, &w->state)) in mt76_worker_schedule() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/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 …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/ |
| H A D | i915_gem_client_blt.c | 117 struct clear_pages_work *w = container_of(fence, typeof(*w), dma); in clear_pages_work_release() local 119 destroy_sleeve(w->sleeve); in clear_pages_work_release() 121 i915_sw_fence_fini(&w->wait); in clear_pages_work_release() 123 BUILD_BUG_ON(offsetof(typeof(*w), dma)); in clear_pages_work_release() 124 dma_fence_free(&w->dma); in clear_pages_work_release() 135 struct clear_pages_work *w = container_of(work, typeof(*w), irq_work); in clear_pages_signal_irq_worker() local 137 dma_fence_signal(&w->dma); in clear_pages_signal_irq_worker() 138 dma_fence_put(&w->dma); in clear_pages_signal_irq_worker() 144 struct clear_pages_work *w = container_of(cb, typeof(*w), cb); in clear_pages_dma_fence_cb() local 147 dma_fence_set_error(&w->dma, fence->error); in clear_pages_dma_fence_cb() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/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 …]
|
| /OK3568_Linux_fs/kernel/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
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-omap1/ |
| H A D | lcd_dma.c | 134 u16 w; in set_b1_regs() local 253 w = omap_readw(OMAP1610_DMA_LCD_CSDP); in set_b1_regs() 254 w &= ~0x03; in set_b1_regs() 255 w |= lcd_dma.data_type; in set_b1_regs() 256 omap_writew(w, OMAP1610_DMA_LCD_CSDP); in set_b1_regs() 258 w = omap_readw(OMAP1610_DMA_LCD_CTRL); in set_b1_regs() 260 w &= ~(0x03 << 6); in set_b1_regs() 262 w |= 1 << 1; /* Block interrupt enable */ in set_b1_regs() 264 w &= ~(1 << 1); in set_b1_regs() 265 omap_writew(w, OMAP1610_DMA_LCD_CTRL); in set_b1_regs() [all …]
|
| /OK3568_Linux_fs/kernel/lib/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 …]
|
| H A D | mpiutil.c | 235 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 …]
|
| /OK3568_Linux_fs/kernel/fs/xfs/libxfs/ |
| H A D | xfs_trans_space.h | 28 #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 …]
|
| /OK3568_Linux_fs/external/xserver/test/ |
| H A D | misc.c | 69 int x, y, w, h; in dix_update_desktop_dimensions() local 78 w = 10; in dix_update_desktop_dimensions() 98 set_screen(0, x, y, w, h); in dix_update_desktop_dimensions() 99 assert_dimensions(x, y, w, h); in dix_update_desktop_dimensions() 103 set_screen(1, w, 0, w2, h2); in dix_update_desktop_dimensions() 104 assert_dimensions(x, y, w + w2, h2); in dix_update_desktop_dimensions() 114 set_screen(2, w2, h2, w, h); in dix_update_desktop_dimensions() 115 assert_dimensions(x, y, w + w2, h + h2); in dix_update_desktop_dimensions() 119 set_screen(1, 0, h, w, h); in dix_update_desktop_dimensions() 120 set_screen(2, w, h, w, h2); in dix_update_desktop_dimensions() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A D | dm-cache-background-tracker.c | 83 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 …]
|