| /kernel/linux/linux-5.10/drivers/input/joystick/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/input/joystick/ |
| 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 …]
|
| /kernel/linux/linux-5.10/arch/m68k/math-emu/ |
| 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 …]
|
| /kernel/linux/linux-6.6/arch/m68k/math-emu/ |
| 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 …]
|
| /kernel/linux/linux-6.6/tools/lib/ |
| 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 …]
|
| /kernel/linux/linux-5.10/tools/lib/ |
| 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 …]
|
| /kernel/linux/linux-5.10/arch/x86/crypto/ |
| D | sha512-ssse3-asm.S | 14 # General Public License (GPL) Version 2, available from the file 76 WK_SIZE = 2*8 88 # WK_2(t) points to 1 of 2 qwords at frame.WK depdending on t being odd/even 102 # W[t]+K[t] (stack frame) 103 #define WK_2(i) 8*((i%2))+frame_WK(%rsp) 129 add WK_2(idx), T1 # W[t] + K[t] from message scheduler 133 add h_64, T1 # T1 = CH(e,f,g) + W[t] + K[t] + h 135 add tmp0, T1 # T1 = CH(e,f,g) + W[t] + K[t] + S1(e) 155 # Compute rounds t-2 and t-1 158 # Two rounds are computed based on the values for K[t-2]+W[t-2] and [all …]
|
| D | sha512-avx-asm.S | 14 # General Public License (GPL) Version 2, available from the file 77 # W[t] + K[t] | W[t+1] + K[t+1] 78 WK_SIZE = 2*8 90 # WK_2(t) points to 1 of 2 qwords at frame.WK depdending on t being odd/even 104 # W[t]+K[t] (stack frame) 105 #define WK_2(i) 8*((i%2))+frame_WK(%rsp) 135 add WK_2(idx), T1 # W[t] + K[t] from message scheduler 139 add h_64, T1 # T1 = CH(e,f,g) + W[t] + K[t] + h 141 add tmp0, T1 # T1 = CH(e,f,g) + W[t] + K[t] + S1(e) 160 # Compute rounds t-2 and t-1 [all …]
|
| D | sha512-avx2-asm.S | 14 # General Public License (GPL) Version 2, available from the file 74 # 2nd arg 169 # Extract w[t-7] 170 MY_VPALIGNR YTMP0, Y_3, Y_2, 8 # YTMP0 = W[-7] 171 # Calculate w[t-16] + w[t-7] 172 vpaddq Y_0, YTMP0, YTMP0 # YTMP0 = W[-7] + W[-16] 173 # Extract w[t-15] 174 MY_VPALIGNR YTMP1, Y_1, Y_0, 8 # YTMP1 = W[-15] 178 # Calculate w[t-15] ror 1 181 vpor YTMP2, YTMP3, YTMP3 # YTMP3 = W[-15] ror 1 [all …]
|
| D | sha256-ssse3-asm.S | 13 # General Public License (GPL) Version 2, available from the file 91 INP = %rsi # 2nd arg 149 ## compute W[-16] + W[-7] 4 at a time 154 palignr $4, X2, XTMP0 # XTMP0 = W[-7] 162 paddd X0, XTMP0 # XTMP0 = W[-7] + W[-16] 165 ror $(13-2), y1 # y1 = (a >> (13-2)) ^ (a >> (22-2)) 167 palignr $4, X0, XTMP1 # XTMP1 = W[-15] 168 xor a, y1 # y1 = a ^ (a >> (13-2)) ^ (a >> (22-2)) 171 movdqa XTMP1, XTMP2 # XTMP2 = W[-15] 172 ror $2, y1 # y1 = S0 = (a>>2) ^ (a>>13) ^ (a>>22) [all …]
|
| /kernel/linux/linux-6.6/arch/x86/crypto/ |
| 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 depdending 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 …]
|
| 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 depdending 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 …]
|
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/lib/ |
| 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 …]
|
| /kernel/linux/linux-6.6/lib/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/usb/gadget/udc/ |
| D | s3c2410_udc_regs.h | 75 #define S3C2410_UDC_PWR_ISOUP (1 << 7) /* R/W */ 77 #define S3C2410_UDC_PWR_RESUME (1 << 2) /* R/W */ 79 #define S3C2410_UDC_PWR_ENSUSPEND (1 << 0) /* R/W */ 83 #define S3C2410_UDC_INT_EP4 (1 << 4) /* R/W (clear only) */ 84 #define S3C2410_UDC_INT_EP3 (1 << 3) /* R/W (clear only) */ 85 #define S3C2410_UDC_INT_EP2 (1 << 2) /* R/W (clear only) */ 86 #define S3C2410_UDC_INT_EP1 (1 << 1) /* R/W (clear only) */ 87 #define S3C2410_UDC_INT_EP0 (1 << 0) /* R/W (clear only) */ 89 #define S3C2410_UDC_USBINT_RESET (1 << 2) /* R/W (clear only) */ 90 #define S3C2410_UDC_USBINT_RESUME (1 << 1) /* R/W (clear only) */ [all …]
|
| /kernel/linux/linux-5.10/arch/h8300/lib/ |
| D | udivsi3.S | 7 mov.w A1E,A1E ; denominator top word 0? 11 mov.w A0E,A2 13 divxu.w A1,A2P 14 mov.w A2E,A0E 15 divxu.w A1,A0P 16 mov.w A0E,A3 17 mov.w A2,A0E 24 ; expects er1 >= 2^16 31 shlr.l er2 ; make divisor < 2^16 32 mov.w e2,e2 [all …]
|
| /kernel/linux/linux-6.6/drivers/scsi/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/scsi/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/comedi/drivers/ |
| 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 …]
|
| /kernel/linux/linux-5.10/arch/powerpc/crypto/ |
| 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 …]
|
| /kernel/linux/linux-6.6/arch/powerpc/crypto/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/media/platform/omap/ |
| 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 …]
|