/linux/drivers/input/joystick/ |
H A D | walkera0701.c | 22 #define BIN_SAMPLE ((BIN0_PULSE + BIN1_PULSE) / 2) 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() [all …]
|
/linux/arch/m68k/math-emu/ |
H A D | fp_util.S | 12 * 2. Redistributions in binary form must reproduce the above copyright 68 jpl 2f 70 2: clr.l %d0 98 printf PCONV,"l2e: %p -> %p(",2,%d0,%a0 106 move.w #0x3fff+31,%d1 129 printf PCONV,"s2e: %p -> %p(",2,%d0,%a0 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 [all …]
|
H A D | fp_decode.h | 12 * 2. Redistributions in binary form must reproduce the above copyright 73 bfextu %d2{#8,#2},%d0 74 jmp ([0f:w,%pc,%d0*4]) 86 jmp ([0f:w,%pc,%d0*4]) 116 jmp ([0f:w,%pc,%d0*4]) 136 ext.w %d0 146 jra 2\@f 150 2\@: 151 debug lea "'l'.w,%a0" 154 debug lea "'w'.w,%a0" [all …]
|
/linux/arch/loongarch/vdso/ |
H A D | vgetrandom-chacha.S | 90 REG_S s2, sp, SZREG * 2 99 li.w copy0, 0x61707865 100 li.w copy1, 0x3320646e 101 li.w copy2, 0x79622d32 103 ld.w cnt_lo, counter, 0 104 ld.w cnt_hi, counter, 4 107 /* state[0,1,2,3] = "expand 32-byte k" */ 111 li.w state3, 0x6b206574 114 ld.w state4, key, 0 115 ld.w state5, key, 4 [all …]
|
/linux/arch/x86/crypto/ |
H A D | sha512-ssse3-asm.S | 14 # General Public License (GPL) Version 2, available from the file 77 WK_SIZE = 2*8 85 # WK_2(t) points to 1 of 2 qwords at frame.WK depending on t being odd/even 99 # W[t]+K[t] (stack frame) 100 #define WK_2(i) 8*((i%2))+frame_WK(%rsp) 126 add WK_2(idx), T1 # W[t] + K[t] from message scheduler 130 add h_64, T1 # T1 = CH(e,f,g) + W[t] + K[t] + h 132 add tmp0, T1 # T1 = CH(e,f,g) + W[t] + K[t] + S1(e) 152 # Compute rounds t-2 and t-1 155 # Two rounds are computed based on the values for K[t-2]+W[t-2] and [all …]
|
H A D | sha512-avx-asm.S | 14 # General Public License (GPL) Version 2, available from the file 78 # W[t] + K[t] | W[t+1] + K[t+1] 79 WK_SIZE = 2*8 87 # WK_2(t) points to 1 of 2 qwords at frame.WK depending on t being odd/even 101 # W[t]+K[t] (stack frame) 102 #define WK_2(i) 8*((i%2))+frame_WK(%rsp) 132 add WK_2(idx), T1 # W[t] + K[t] from message scheduler 136 add h_64, T1 # T1 = CH(e,f,g) + W[t] + K[t] + h 138 add tmp0, T1 # T1 = CH(e,f,g) + W[t] + K[t] + S1(e) 157 # Compute rounds t-2 and t-1 [all …]
|
H A D | sha512-avx2-asm.S | 14 # General Public License (GPL) Version 2, available from the file 75 # 2nd arg 166 # Extract w[t-7] 167 MY_VPALIGNR YTMP0, Y_3, Y_2, 8 # YTMP0 = W[-7] 168 # Calculate w[t-16] + w[t-7] 169 vpaddq Y_0, YTMP0, YTMP0 # YTMP0 = W[-7] + W[-16] 170 # Extract w[t-15] 171 MY_VPALIGNR YTMP1, Y_1, Y_0, 8 # YTMP1 = W[-15] 175 # Calculate w[t-15] ror 1 178 vpor YTMP2, YTMP3, YTMP3 # YTMP3 = W[-15] ror 1 [all …]
|
H A D | sha256-ssse3-asm.S | 13 # General Public License (GPL) Version 2, available from the file 92 INP = %rsi # 2nd arg 150 ## compute W[-16] + W[-7] 4 at a time 155 palignr $4, X2, XTMP0 # XTMP0 = W[-7] 163 paddd X0, XTMP0 # XTMP0 = W[-7] + W[-16] 166 ror $(13-2), y1 # y1 = (a >> (13-2)) ^ (a >> (22-2)) 168 palignr $4, X0, XTMP1 # XTMP1 = W[-15] 169 xor a, y1 # y1 = a ^ (a >> (13-2)) ^ (a >> (22-2)) 172 movdqa XTMP1, XTMP2 # XTMP2 = W[-15] 173 ror $2, y1 # y1 = S0 = (a>>2) ^ (a>>13) ^ (a>>22) [all …]
|
H A D | sha1_ssse3_asm.S | 62 /* we keep window of 64 w[i]+K pre-calculated values in a circular buffer */ 129 RR F1,D,E,A,B,C,2 250 * RR does two rounds of SHA-1 back to back with W[] pre-calc 251 * t1 = F(b, c, d); e += w(i) 252 * e += t1; b <<= 30; d += w(i+1); 312 .set W, W0 define 320 .set W_minus_32, W 331 .set W_minus_04, W 332 .set W, W_minus_32 define 353 movdqa W_TMP1, W [all …]
|
H A D | sha256-avx-asm.S | 13 # General Public License (GPL) Version 2, available from the file 99 INP = %rsi # 2nd arg 156 ## compute W[-16] + W[-7] 4 at a time 161 vpalignr $4, X2, X3, XTMP0 # XTMP0 = W[-7] 168 vpaddd X0, XTMP0, XTMP0 # XTMP0 = W[-7] + W[-16] 171 MY_ROR (13-2), y1 # y1 = (a >> (13-2)) ^ (a >> (22-2)) 173 vpalignr $4, X0, X1, XTMP1 # XTMP1 = W[-15] 174 xor a, y1 # y1 = a ^ (a >> (13-2)) ^ (a >> (22-2)) 177 MY_ROR 2, y1 # y1 = S0 = (a>>2) ^ (a>>13) ^ (a>>22) 179 add _XFER(%rsp), y2 # y2 = k + w + S1 + CH [all …]
|
H A D | sha256-avx2-asm.S | 13 # General Public License (GPL) Version 2, available from the file 48 # This code schedules 2 blocks at a time, with 4 lanes per block 94 INP = %rsi # 2nd arg 116 _XFER_SIZE = 2*64*4 # 2 blocks, 64 rounds, 4 bytes/round 161 addl \disp(%rsp, SRND), h # h = k + w + h # -- 163 vpalignr $4, X2, X3, XTMP0 # XTMP0 = W[-7] 169 vpaddd X0, XTMP0, XTMP0 # XTMP0 = W[-7] + W[-16]# y1 = (e >> 6)# S1 175 add h, d # d = k + w + h + d # -- 178 vpalignr $4, X0, X1, XTMP1 # XTMP1 = W[-15] 180 rorx $2, a, T1 # T1 = (a >> 2) # S0 [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() 21 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); 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() 31 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16() [all …]
|
/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() 22 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); 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() 33 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16() [all …]
|
/linux/drivers/scsi/ |
H A D | nsp32.h | 34 MODEL_WORKBIT = 2, 81 #define IRQ_CONTROL 0x00 /* BASE+00, W, W */ 82 #define IRQ_STATUS 0x00 /* BASE+00, W, R */ 85 # define IRQSTATUS_LATCHED_CD BIT(2) 112 #define TRANSFER_CONTROL 0x02 /* BASE+02, W, W */ 113 #define TRANSFER_STATUS 0x02 /* BASE+02, W, R */ 116 # define BM_TEST BIT(2) 130 #define INDEX_REG 0x04 /* BASE+04, Byte(R/W), Word(R) */ 132 #define TIMER_SET 0x06 /* BASE+06, W, R/W */ 136 #define DATA_REG_LOW 0x08 /* BASE+08, LowW, R/W */ [all …]
|
/linux/arch/powerpc/crypto/ |
H A D | sha1-spe-asm.S | 107 LOAD_DATA(w0, off) /* 1: W */ \ 114 rotrwi b,b,2; /* 1: B = B rotl 30 */ \ 115 add e,e,w0; /* 1: E = E + W */ \ 116 LOAD_DATA(w1, off+4) /* 2: W */ \ 118 and rT1,a,b; /* 2: F' = B and C */ \ 120 andc rT2,c,a; /* 2: F" = ~B and D */ \ 121 add d,d,rK; /* 2: E = E + K */ \ 122 or rT2,rT2,rT1; /* 2: F = F' or F" */ \ 123 rotrwi rT0,e,27; /* 2: A' = A rotl 5 */ \ 124 add d,d,w1; /* 2: E = E + W */ \ [all …]
|
/linux/drivers/comedi/drivers/ |
H A D | ni_labpc_regs.h | 15 #define STAT1_OVERFLOW BIT(2) 19 #define CMD1_REG 0x00 /* W: Command 1 reg */ 24 #define CMD2_REG 0x01 /* W: Command 2 reg */ 27 #define CMD2_SWTRIG BIT(2) 32 #define CMD3_REG 0x02 /* W: Command 3 reg */ 35 #define CMD3_DMATCINTEN BIT(2) 39 #define ADC_START_CONVERT_REG 0x03 /* W: Start Convert reg */ 40 #define DAC_LSB_REG(x) (0x04 + 2 * (x)) /* W: DAC0/1 LSB reg */ 41 #define DAC_MSB_REG(x) (0x05 + 2 * (x)) /* W: DAC0/1 MSB reg */ 42 #define ADC_FIFO_CLEAR_REG 0x08 /* W: A/D FIFO Clear reg */ [all …]
|
/linux/drivers/media/platform/ti/omap/ |
H A D | omap_voutlib.c | 7 * version 2. This program is licensed "as is" without any warranty of any 11 * Video-for-Linux (Version 2) camera capture driver for 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() 132 /* For 24xx limit is 8x to 1/2x scaling. */ 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() [all …]
|
/linux/tools/bpf/bpftool/bash-completion/ |
H A D | bpftool | 3 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 12 local w idx found 13 for w in $*; do 16 if [[ $w == ${words[idx]} ]]; then 22 COMPREPLY+=( $( compgen -W "$w" -- "$cur" ) ) 30 local w idx 31 for w in $*; do 33 [[ $w == ${words[idx]} ]] && return 0 44 COMPREPLY+=( $( compgen -W "$*" -- "$cur" ) ) 49 COMPREPLY+=( $( compgen -W "$( bpftool -jp map 2>&1 | \ [all …]
|
/linux/Documentation/translations/zh_TW/arch/loongarch/ |
H A D | introduction.rst | 149 0x200+2n (0≤n≤31) 性能監測配置n PMCFGn 150 0x201+2n (0≤n≤31) 性能監測計數器n PMCNTn 181 2R Opcode + Rj + Rd 184 2RI8 Opcode + I8 + Rj + Rd 185 2RI12 Opcode + I12 + Rj + Rd 186 2RI14 Opcode + I14 + Rj + Rd 187 2RI16 Opcode + I16 + Rj + Rd 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 [all …]
|
/linux/Documentation/translations/zh_CN/arch/loongarch/ |
H A D | introduction.rst | 149 0x200+2n (0≤n≤31) 性能监测配置n PMCFGn 150 0x201+2n (0≤n≤31) 性能监测计数器n PMCNTn 181 2R Opcode + Rj + Rd 184 2RI8 Opcode + I8 + Rj + Rd 185 2RI12 Opcode + I12 + Rj + Rd 186 2RI14 Opcode + I14 + Rj + Rd 187 2RI16 Opcode + I16 + Rj + Rd 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 [all …]
|
/linux/lib/crypto/ |
H A D | sha256.c | 49 #define e0(x) (ror32(x, 2) ^ ror32(x, 13) ^ ror32(x, 22)) 54 static inline void LOAD_OP(int I, u32 *W, const u8 *input) in LOAD_OP() argument 56 W[I] = get_unaligned_be32((__u32 *)input + I); in LOAD_OP() 59 static inline void BLEND_OP(int I, u32 *W) in BLEND_OP() argument 61 W[I] = s1(W[I-2]) + W[I-7] + s0(W[I-15]) + W[I-16]; in BLEND_OP() 66 t1 = h + e1(e) + Ch(e, f, g) + SHA256_K[i] + W[i]; \ 72 static void sha256_transform(u32 *state, const u8 *input, u32 *W) in sha256_transform() argument 79 LOAD_OP(i + 0, W, input); in sha256_transform() 80 LOAD_OP(i + 1, W, input); in sha256_transform() 81 LOAD_OP(i + 2, W, input); in sha256_transform() [all …]
|
/linux/drivers/video/fbdev/ |
H A D | c2p_iplan2.c | 24 * - permutated planar data (2 planes per 32-bit word) on output 29 transp4(d, 8, 2); in c2p_16x8() 30 transp4(d, 1, 2); in c2p_16x8() 31 transp4x(d, 16, 2); in c2p_16x8() 32 transp4x(d, 2, 2); in c2p_16x8() 41 static const int perm_c2p_16x8[4] = { 1, 3, 0, 2 }; 52 for (i = 0; i < bpp/2; i++, dst += 4) in store_iplan2() 65 for (i = 0; i < bpp/2; i++, dst += 4) in store_iplan2_masked() 74 * frame buffer with 2 bytes of interleave 82 * @bpp: Bits per pixel of the planar frame buffer (2, 4, or 8) [all …]
|
/linux/Documentation/arch/loongarch/ |
H A D | introduction.rst | 81 There are currently 2 vector extensions to LoongArch: 129 0x22 Privileged Resource Configuration 2 PRCFG2 139 0x81 Implementation-specific Control 2 IMPCTL2 157 0x92 Machine Error Information 2 MERRINFO2 166 0x200+2n (0≤n≤31) Performance Monitor Configuration n PMCFGn 167 0x201+2n (0≤n≤31) Performance Monitor Overall Counter n PMCNTn 175 Configuration 2 187 Configuration 2 212 2R Opcode + Rj + Rd 215 2RI8 Opcode + I8 + Rj + Rd [all …]
|
/linux/drivers/net/fddi/skfp/h/ |
H A D | supern_2.h | 42 #define FS_EI (1<<2) 65 #define FRM_IMPA (2) 92 unsigned int rx_erfbb :2 ; /* received frame byte boundary */ 93 unsigned int rx_reserv2:2 ; /* reserved */ 115 unsigned int rx_erfbb :2 ; /* received frame byte boundary */ 116 unsigned int rx_reserv2:2 ; /* reserved */ 145 #define RD_FRM_IMPA (unsigned long)(2<<20) 153 #define TXP1 2 166 unsigned int tx_rpxm :2 ; /* byte offset */ 167 unsigned int tx_pat1 :2 ; /* must be TXP1 */ [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 …]
|