/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/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 | 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 …]
|
/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/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/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/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 " [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 | 54 LOAD_OP(int I,u32 * W,const u8 * input) LOAD_OP() argument 59 BLEND_OP(int I,u32 * W) BLEND_OP() argument 72 sha256_transform(u32 * state,const u8 * input,u32 * W) sha256_transform() argument 124 u32 W[64]; sha256_transform_blocks() local
|
/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/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 …]
|
H A D | atafb_iplan2p4.c | 4 * planes, 2 bytes interleave) 41 int w, l , i, j; in atafb_iplan2p4_copyarea() local 53 memmove32_col(dst, src, 0xff00ff, height, next_line - BPL * 2); in atafb_iplan2p4_copyarea() 54 src += BPL * 2; in atafb_iplan2p4_copyarea() 55 dst += BPL * 2; in atafb_iplan2p4_copyarea() 58 w = width >> 4; in atafb_iplan2p4_copyarea() 59 if (w) { in atafb_iplan2p4_copyarea() 62 w *= BPL / 2; in atafb_iplan2p4_copyarea() 63 l = next_line - w * 4; in atafb_iplan2p4_copyarea() 65 for (i = w; i > 0; i--) in atafb_iplan2p4_copyarea() [all …]
|
H A D | atafb_iplan2p2.c | 3 * interleaved bitplanes à la Atari (2 4 * planes, 2 bytes interleave) 20 #define BPL 2 41 int w, l , i, j; in atafb_iplan2p2_copyarea() local 53 memmove32_col(dst, src, 0xff00ff, height, next_line - BPL * 2); in atafb_iplan2p2_copyarea() 54 src += BPL * 2; in atafb_iplan2p2_copyarea() 55 dst += BPL * 2; in atafb_iplan2p2_copyarea() 58 w = width >> 4; in atafb_iplan2p2_copyarea() 59 if (w) { in atafb_iplan2p2_copyarea() 62 w *= BPL / 2; in atafb_iplan2p2_copyarea() [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/arch/arm64/include/asm/ |
H A D | atomic_ll_sc.h | 33 " prfm pstl1strm, %2\n" \ 34 "1: ldxr %w0, %2\n" \ 36 " stxr %w1, %w0, %2\n" \ 50 " prfm pstl1strm, %2\n" \ 51 "1: ld" #acq "xr %w0, %2\n" \ 53 " st" #rel "xr %w1, %w0, %2\n" \ 129 " prfm pstl1strm, %2\n" \ in ATOMIC_OPS() 130 "1: ldxr %0, %2\n" \ in ATOMIC_OPS() 132 " stxr %w1, %0, %2\n" \ in ATOMIC_OPS() 146 " prfm pstl1strm, %2\n" \ [all …]
|
H A D | cmpxchg.h | 21 #define __XCHG_CASE(w, sfx, name, sz, mb, nop_lse, acq, acq_lse, rel, cl) \ argument 29 " prfm pstl1strm, %2\n" \ 30 "1: ld" #acq "xr" #sfx "\t%" #w "0, %2\n" \ 31 " st" #rel "xr" #sfx "\t%w1, %" #w "3, %2\n" \ 35 " swp" #acq_lse #rel #sfx "\t%" #w "3, %" #w "0, %2\n" \ 45 __XCHG_CASE(w, b, , 8, , , , , , ) 46 __XCHG_CASE(w, h, , 16, , , , , , ) 47 __XCHG_CASE(w, , , 32, , , , , , ) 49 __XCHG_CASE(w, b, acq_, 8, , , a, a, , "memory") 50 __XCHG_CASE(w, h, acq_, 16, , , a, a, , "memory") [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 …]
|