| /linux/arch/sh/drivers/pci/ |
| H A D | pcie-sh7786.h | 44 #define BITS_BADOPC (5) /* 5 BADOPC 0 R/W */ 46 #define BITS_BADDEST (4) /*4 BADDEST 0 R/W */ 48 #define BITS_UNSOLRESP (3) /* 3 UNSOLRESP 0 R/W */ 56 #define SH4A_PCIEENBLR (0x000008) /* R/W - 0x0000 0001 32 */ 59 #define SH4A_PCIEECR (0x00000C) /* R/W - 0x0000 0000 32 */ 60 #define BITS_ENBL (0) /* 0 ENBL 0 R/W */ 64 #define SH4A_PCIEPAR (0x000010) /* R/W - 0x0000 0000 32 */ 77 #define SH4A_PCIEPCTLR (0x000018) /* R/W - 0x0000 0000 32 */ 86 #define SH4A_PCIEPDR (0x000020) /* R/W - 0x0000 0000 32 */ 91 #define SH4A_PCIEMSGALR (0x000030) /* R/W - 0x0000 0000 32 */ [all …]
|
| /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 …]
|
| /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 …]
|
| /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 …]
|
| /linux/arch/s390/include/asm/ |
| H A D | arch_hweight.h | 9 static __always_inline unsigned long popcnt_z196(unsigned long w) in popcnt_z196() argument 13 asm volatile(".insn rrf,0xb9e10000,%[cnt],%[w],0,0" in popcnt_z196() 15 : [w] "d" (w) in popcnt_z196() 20 static __always_inline unsigned long popcnt_z15(unsigned long w) in popcnt_z15() argument 24 asm volatile(".insn rrf,0xb9e10000,%[cnt],%[w],8,0" in popcnt_z15() 26 : [w] "d" (w) in popcnt_z15() 31 static __always_inline unsigned long __arch_hweight64(__u64 w) in __arch_hweight64() argument 34 return popcnt_z15(w); in __arch_hweight64() 36 w = popcnt_z196(w); in __arch_hweight64() 37 w += w >> 32; in __arch_hweight64() [all …]
|
| /linux/arch/loongarch/include/asm/ |
| H A D | asm.h | 11 * Copyright (C) 2002 Maciej W. Rozycki 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 [all …]
|
| /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 …]
|
| /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 …]
|
| /linux/lib/ |
| H A D | hweight.c | 8 * @w: the word to weigh 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 [all …]
|
| /linux/sound/soc/ |
| H A D | soc-dapm.c | 219 static bool dapm_dirty_widget(struct snd_soc_dapm_widget *w) in dapm_dirty_widget() argument 221 return !list_empty(&w->dirty); in dapm_dirty_widget() 224 static void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason) in dapm_mark_dirty() argument 226 struct device *dev = snd_soc_dapm_to_dev(w->dapm); in dapm_mark_dirty() 228 dapm_assert_locked(w->dapm); in dapm_mark_dirty() 230 if (!dapm_dirty_widget(w)) { in dapm_mark_dirty() 232 w->name, reason); in dapm_mark_dirty() 233 list_add_tail(&w->dirty, &w->dapm->card->dapm_dirty); in dapm_mark_dirty() 245 struct snd_soc_dapm_widget *w, enum snd_soc_dapm_direction dir) in dapm_widget_invalidate_paths() argument 252 dapm_assert_locked(w->dapm); in dapm_widget_invalidate_paths() [all …]
|
| /linux/lib/crypto/x86/ |
| H A D | sha1-ssse3-and-avx.S | 61 /* we keep window of 64 w[i]+K pre-calculated values in a circular buffer */ 249 * RR does two rounds of SHA-1 back to back with W[] pre-calc 250 * t1 = F(b, c, d); e += w(i) 251 * e += t1; b <<= 30; d += w(i+1); 311 .set W, W0 define 319 .set W_minus_32, W 330 .set W_minus_04, W 331 .set W, W_minus_32 define 352 movdqa W_TMP1, W 363 * - calculating last 32 w[i] values in 8 XMM registers [all …]
|
| H A D | sha512-avx2-asm.S | 165 # Extract w[t-7] 166 MY_VPALIGNR YTMP0, Y_3, Y_2, 8 # YTMP0 = W[-7] 167 # Calculate w[t-16] + w[t-7] 168 vpaddq Y_0, YTMP0, YTMP0 # YTMP0 = W[-7] + W[-16] 169 # Extract w[t-15] 170 MY_VPALIGNR YTMP1, Y_1, Y_0, 8 # YTMP1 = W[-15] 174 # Calculate w[t-15] ror 1 177 vpor YTMP2, YTMP3, YTMP3 # YTMP3 = W[-15] ror 1 178 # Calculate w[t-15] shr 7 179 vpsrlq $7, YTMP1, YTMP4 # YTMP4 = W[-15] >> 7 [all …]
|
| H A D | sha512-ssse3-asm.S | 98 # W[t]+K[t] (stack frame) 125 add WK_2(idx), T1 # W[t] + K[t] from message scheduler 129 add h_64, T1 # T1 = CH(e,f,g) + W[t] + K[t] + h 131 add tmp0, T1 # T1 = CH(e,f,g) + W[t] + K[t] + S1(e) 154 # Two rounds are computed based on the values for K[t-2]+W[t-2] and 155 # K[t-1]+W[t-1] which were previously stored at WK_2 by the message 162 # Eg. XMM2=W[t-2] really means XMM2={W[t-2]|W[t-1]} 171 movdqa W_t(idx), %xmm2 # XMM2 = W[t-2] 174 movdqa %xmm2, %xmm0 # XMM0 = W[t-2] 179 movdqu W_t(idx), %xmm5 # XMM5 = W[t-15] [all …]
|
| H A D | sha512-avx-asm.S | 77 # W[t] + K[t] | W[t+1] + K[t+1] 100 # W[t]+K[t] (stack frame) 131 add WK_2(idx), T1 # W[t] + K[t] from message scheduler 135 add h_64, T1 # T1 = CH(e,f,g) + W[t] + K[t] + h 137 add tmp0, T1 # T1 = CH(e,f,g) + W[t] + K[t] + S1(e) 159 # Two rounds are computed based on the values for K[t-2]+W[t-2] and 160 # K[t-1]+W[t-1] which were previously stored at WK_2 by the message 167 # Eg. XMM4=W[t-2] really means XMM4={W[t-2]|W[t-1]} 172 vmovdqa W_t(idx), %xmm4 # XMM4 = W[t-2] 174 vmovdqu W_t(idx), %xmm5 # XMM5 = W[t-15] [all …]
|
| /linux/arch/loongarch/kernel/ |
| H A D | fpu.S | 104 bstrins.w \tmp1, \tmp0, 15, 8 106 bstrins.w \tmp1, \tmp0, 23, 16 108 bstrins.w \tmp1, \tmp0, 31, 24 109 EX st.w \tmp1, \base, 0 113 bstrins.w \tmp1, \tmp0, 15, 8 115 bstrins.w \tmp1, \tmp0, 23, 16 117 bstrins.w \tmp1, \tmp0, 31, 24 118 EX st.w \tmp1, \base, 4 122 EX ld.w \tmp0, \base, 0 123 bstrpick.w \tmp1, \tmp0, 7, 0 [all …]
|
| /linux/arch/m68k/math-emu/ |
| H A D | fp_util.S | 106 move.w #0x3fff+31,%d1 134 lsr.w #8,%d1 136 cmp.w #0xff,%d1 | NaN / Inf? 139 add.w #0x3fff-0x7f,%d1 | re-bias the exponent. 152 move.w #0x4000-0x7f,%d1 157 move.w #0x7fff,%d1 172 lsr.w #5,%d1 174 cmp.w #0x7ff,%d1 | NaN / Inf? 177 add.w #0x3fff-0x3ff,%d1 | re-bias the exponent. 197 move.w #0x4000-0x3ff,%d1 [all …]
|
| /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 …]
|
| /linux/drivers/watchdog/ |
| H A D | bd96801_wdt.c | 68 struct wdtbd96801 *w = watchdog_get_drvdata(wdt); in bd96801_wdt_ping() local 70 return regmap_update_bits(w->regmap, BD96801_REG_WD_FEED, in bd96801_wdt_ping() 76 struct wdtbd96801 *w = watchdog_get_drvdata(wdt); in bd96801_wdt_start() local 78 return regmap_update_bits(w->regmap, BD96801_REG_WD_CONF, in bd96801_wdt_start() 84 struct wdtbd96801 *w = watchdog_get_drvdata(wdt); in bd96801_wdt_stop() local 86 return regmap_update_bits(w->regmap, BD96801_REG_WD_CONF, in bd96801_wdt_stop() 166 static int bd96801_set_wdt_mode(struct wdtbd96801 *w, unsigned int hw_margin, in bd96801_set_wdt_mode() argument 170 struct device *dev = w->dev; in bd96801_set_wdt_mode() 210 w->wdt.min_hw_heartbeat_ms = min / 10; in bd96801_set_wdt_mode() 219 w->wdt.max_hw_heartbeat_ms = hw_margin / 10; in bd96801_set_wdt_mode() [all …]
|
| /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 …]
|
| /linux/lib/crypto/powerpc/ |
| H A D | sha1-powerpc-asm.S | 33 /* We use registers 16 - 31 for the W values */ 34 #define W(t) (((t)%16)+16) macro 37 LWZ(W(t),(t)*4,r4) 46 add r14,r0,W(t); \ 47 LWZ(W((t)+4),((t)+4)*4,r4); \ 58 xor r5,W((t)+4-3),W((t)+4-8); \ 60 xor W((t)+4),W((t)+4-16),W((t)+4-14); \ 61 add r0,r0,W(t); \ 62 xor W((t)+4),W((t)+4),r5; \ 64 rotlwi W((t)+4),W((t)+4),1 [all …]
|
| /linux/arch/riscv/include/asm/ |
| H A D | arch_hweight.h | 20 static __always_inline unsigned int __arch_hweight32(unsigned int w) in __arch_hweight32() argument 25 return __sw_hweight32(w); in __arch_hweight32() 31 : "=r" (w) : "r" (w) :); in __arch_hweight32() 33 return w; in __arch_hweight32() 36 static inline unsigned int __arch_hweight16(unsigned int w) in __arch_hweight16() argument 38 return __arch_hweight32(w & 0xffff); in __arch_hweight16() 41 static inline unsigned int __arch_hweight8(unsigned int w) in __arch_hweight8() argument 43 return __arch_hweight32(w & 0xff); in __arch_hweight8() 47 static __always_inline unsigned long __arch_hweight64(__u64 w) in __arch_hweight64() argument 52 return __sw_hweight64(w); in __arch_hweight64() [all …]
|
| /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 …]
|
| /linux/Documentation/translations/zh_TW/arch/loongarch/ |
| H A D | introduction.rst | 205 ADD.W SUB.W ADDI.W ADD.D SUB.D ADDI.D 208 MUL.W MULH.W MULH.WU DIV.W DIV.WU MOD.W MOD.WU 211 LU12I.W LU32I.D LU52I.D ADDU16I.D 215 SLL.W SRL.W SRA.W ROTR.W SLLI.W SRLI.W SRAI.W ROTRI.W 220 EXT.W.B EXT.W.H CLO.W CLO.D SLZ.W CLZ.D CTO.W CTO.D CTZ.W CTZ.D 221 BYTEPICK.W BYTEPICK.D BSTRINS.W BSTRINS.D BSTRPICK.W BSTRPICK.D 222 REVB.2H REVB.4H REVB.2W REVB.D REVH.2W REVH.D BITREV.4B BITREV.8B BITREV.W BITREV.D 231 LD.B LD.BU LD.H LD.HU LD.W LD.WU LD.D ST.B ST.H ST.W ST.D 232 LDX.B LDX.BU LDX.H LDX.HU LDX.W LDX.WU LDX.D STX.B STX.H STX.W STX.D 233 LDPTR.W LDPTR.D STPTR.W STPTR.D [all …]
|
| /linux/Documentation/translations/zh_CN/arch/loongarch/ |
| H A D | introduction.rst | 205 ADD.W SUB.W ADDI.W ADD.D SUB.D ADDI.D 208 MUL.W MULH.W MULH.WU DIV.W DIV.WU MOD.W MOD.WU 211 LU12I.W LU32I.D LU52I.D ADDU16I.D 215 SLL.W SRL.W SRA.W ROTR.W SLLI.W SRLI.W SRAI.W ROTRI.W 220 EXT.W.B EXT.W.H CLO.W CLO.D SLZ.W CLZ.D CTO.W CTO.D CTZ.W CTZ.D 221 BYTEPICK.W BYTEPICK.D BSTRINS.W BSTRINS.D BSTRPICK.W BSTRPICK.D 222 REVB.2H REVB.4H REVB.2W REVB.D REVH.2W REVH.D BITREV.4B BITREV.8B BITREV.W BITREV.D 231 LD.B LD.BU LD.H LD.HU LD.W LD.WU LD.D ST.B ST.H ST.W ST.D 232 LDX.B LDX.BU LDX.H LDX.HU LDX.W LDX.WU LDX.D STX.B STX.H STX.W STX.D 233 LDPTR.W LDPTR.D STPTR.W STPTR.D [all …]
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_trans_space.h | 52 #define XFS_EXTENTADD_SPACE_RES(mp,w) (XFS_BM_MAXLEVELS(mp,w) - 1) argument 53 #define XFS_NEXTENTADD_SPACE_RES(mp,b,w)\ argument 56 XFS_EXTENTADD_SPACE_RES(mp,w)) 59 #define XFS_SWAP_RMAP_SPACE_RES(mp,b,w)\ argument 60 (XFS_NEXTENTADD_SPACE_RES((mp), (b), (w)) + \ 63 #define XFS_DAENTER_1B(mp,w) \ argument 64 ((w) == XFS_DATA_FORK ? (mp)->m_dir_geo->fsbcount : 1) 65 #define XFS_DAENTER_DBS(mp,w) \ argument 66 (XFS_DA_NODE_MAXDEPTH + (((w) == XFS_DATA_FORK) ? 2 : 0)) 67 #define XFS_DAENTER_BLOCKS(mp,w) \ argument [all …]
|