Home
last modified time | relevance | path

Searched +full:2 +full:w (Results 1 – 25 of 1155) sorted by relevance

12345678910>>...47

/openbmc/linux/drivers/input/joystick/
H A Dwalkera0701.c22 #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 …]
/openbmc/qemu/hw/display/
H A Dexynos4210_fimd.c13 * Free Software Foundation; either version 2 of the License, or (at your
109 #define IS_PALETTIZED_MODE(w) (w->wincon & 0xC) argument
111 #define WIN_BPP_MODE(w) ((w->wincon >> 2) & 0xF) argument
112 #define WIN_BPP_MODE_WITH_ALPHA(w) \ argument
113 (WIN_BPP_MODE(w) == 0xD || WIN_BPP_MODE(w) == 0xE)
117 #define FIMD_WINDOW_PROTECTED(s, w) ((s) & (1 << (10 + (w)))) argument
223 #define FIMD_VIDINT_INTI80PEND (1 << 2)
273 uint32_t keycon[2]; /* Window color key registers */
284 void (*draw_line)(Exynos4210fimdWindow *w, uint8_t *src, uint8_t *dst,
286 uint32_t (*get_alpha)(Exynos4210fimdWindow *w, uint32_t pix_a);
[all …]
/openbmc/linux/arch/m68k/math-emu/
H A Dfp_util.S12 * 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 Dfp_decode.h12 * 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 …]
/openbmc/linux/arch/x86/crypto/
H A Dsha512-ssse3-asm.S14 # 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 …]
H A Dsha512-avx-asm.S14 # 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 …]
H A Dsha512-avx2-asm.S14 # 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 Dsha256-ssse3-asm.S13 # 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 Dsha1_ssse3_asm.S62 /* 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 Dsha256-avx-asm.S13 # 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 …]
/openbmc/linux/tools/lib/
H A Dhweight.c12 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 …]
/openbmc/linux/lib/
H A Dhweight.c13 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 …]
/openbmc/linux/drivers/scsi/
H A Dnsp32.h34 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 …]
/openbmc/qemu/target/hexagon/imported/mmvec/
H A Dext.idef6 * the Free Software Foundation; either version 2 of the License, or
387 …"Vdd32=vunpackh(Vu32)", "Vdd32.w=vunpack(Vu32.h)", "Unpack halves with sign-extend", fVARRAY_…
390 ITERATOR_INSN2_PERMUTE_SLOT_DOUBLE_VEC(16,vunpackoh, "Vxx32|=vunpackoh(Vu32)", "Vxx32.w|=vunpacko(V…
402 …ITERATOR_INSN2_PERMUTE_SLOT(32, vpackeh, "Vd32=vpackeh(Vu32,Vv32)", "Vd32.h=vpacke(Vu32.w,Vv32.w)…
412 …ITERATOR_INSN2_PERMUTE_SLOT(32, vpackoh, "Vd32=vpackoh(Vu32,Vv32)", "Vd32.h=vpacko(Vu32.w,Vv32.w)…
431 …PERMUTE_SLOT(32, vpackwuh_sat, "Vd32=vpackwuh(Vu32,Vv32):sat", "Vd32.uh=vpack(Vu32.w,Vv32.w):sat",
433 VdV.uh[i] = fVSATUH(VvV.w[i]);
434 VdV.uh[i+fVELEM(32)] = fVSATUH(VuV.w[i]))
436 …N2_PERMUTE_SLOT(32, vpackwh_sat, "Vd32=vpackwh(Vu32,Vv32):sat", "Vd32.h=vpack(Vu32.w,Vv32.w):sat",
438 VdV.h[i] = fVSATH(VvV.w[i]);
[all …]
/openbmc/linux/drivers/comedi/drivers/
H A Dni_labpc_regs.h15 #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 …]
/openbmc/qemu/tests/tcg/hexagon/
H A Dhvx_misc.c6 * the Free Software Foundation; either version 2 of the License, or
45 " v4.w = vadd(v12.w, v3.w)\n\t" in test_load_tmp()
47 "v4.w = vadd(v4.w, v12.w)\n\t" in test_load_tmp()
48 "vmem(%2 + #0) = v4\n\t" in test_load_tmp()
56 expect[i].w[j] = buffer0[i].w[j] + buffer1[i].w[j] + 1; in test_load_tmp()
76 " v25:24 += vmpyo(v18.w, v14.h)\n\t" in test_load_tmp2()
86 expect[0].w[i] = 0x180c0000; in test_load_tmp2()
87 expect[1].w[i] = 0x000c1818; in test_load_tmp2()
90 check_output_w(__LINE__, 2); in test_load_tmp2()
176 memcpy(expect, buffer0, 2 * sizeof(MMVector)); in test_store_unaligned()
[all …]
H A Dv69_hvx.c6 * the Free Software Foundation; either version 2 of the License, or
50 for (int i = 0; i < BUFSIZE / 2; i++) { in test_vasrvuhubrndsat()
55 "vmem(%2) = v5\n\t" in test_vasrvuhubrndsat()
58 p0 += sizeof(MMVector) * 2; in test_vasrvuhubrndsat()
62 for (int j = 0; j < MAX_VEC_SIZE_BYTES / 2; j++) { in test_vasrvuhubrndsat()
67 shamt = buffer1[i].ub[2 * j + 0] & 0x7; in test_vasrvuhubrndsat()
68 byte0 = fVSATUB(fVROUND(buffer0[2 * i + 0].uh[j], shamt) >> shamt); in test_vasrvuhubrndsat()
69 shamt = buffer1[i].ub[2 * j + 1] & 0x7; in test_vasrvuhubrndsat()
70 byte1 = fVSATUB(fVROUND(buffer0[2 * i + 1].uh[j], shamt) >> shamt); in test_vasrvuhubrndsat()
75 check_output_h(__LINE__, BUFSIZE / 2); in test_vasrvuhubrndsat()
[all …]
H A Dhvx_histogram_row.S6 * the Free Software Foundation; either version 2 of the License, or
27 .p2align 2
39 { v3:2 = v1:0
64 r10 = add(r0, r1) /* R10 = &src[2 * stride] */
69 * Step 2: vhist
93 r10 = add(r10, r1) /* R10 = &src[(i + 2) * stride] */
105 v0.w = vdmpy(v0.h, r10.h):sat
108 v1.w = vdmpy(v1.h, r10.h):sat
111 v2.w = vdmpy(v2.h, r10.h):sat
114 v3.w = vdmpy(v3.h, r10.h):sat
[all …]
/openbmc/linux/arch/powerpc/crypto/
H A Dsha1-spe-asm.S107 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 …]
/openbmc/linux/drivers/media/platform/ti/omap/
H A Domap_voutlib.c7 * 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 …]
/openbmc/qemu/target/mips/tcg/
H A Dmsa_helper.c59 * | NLOC.W | Vector Leading Ones Count (word) |
63 * | NLZC.W | Vector Leading Zeros Count (word) |
67 * | PCNT.W | Vector Population Count (word) |
79 c = DF_BITS(df) / 2; in msa_nlzc_df()
105 pwd->b[2] = msa_nloc_df(DF_BYTE, pws->b[2]); in helper_msa_nloc_b()
128 pwd->h[2] = msa_nloc_df(DF_HALF, pws->h[2]); in helper_msa_nloc_h()
141 pwd->w[0] = msa_nloc_df(DF_WORD, pws->w[0]); in helper_msa_nloc_w()
142 pwd->w[1] = msa_nloc_df(DF_WORD, pws->w[1]); in helper_msa_nloc_w()
143 pwd->w[2] = msa_nloc_df(DF_WORD, pws->w[2]); in helper_msa_nloc_w()
144 pwd->w[3] = msa_nloc_df(DF_WORD, pws->w[3]); in helper_msa_nloc_w()
[all …]
/openbmc/qemu/util/
H A Dtimed-average.c15 * the Free Software Foundation, either version 2 of the License, or
37 * offsetted by period / 2.
44 * t=0 |t=0.5 |t=1 |t=1.5 |t=2
46 * wnd1: [0,1) | |wnd1: [1,2) | |
55 * @w: the window used
59 static void update_expiration(TimedAverageWindow *w, int64_t now, in update_expiration() argument
63 int64_t elapsed = (now - w->expiration) % period; in update_expiration()
67 w->expiration = now + remaining; in update_expiration()
72 * @w: the window to reset
74 static void window_reset(TimedAverageWindow *w) in window_reset() argument
[all …]
/openbmc/qemu/tests/tcg/s390x/
H A Dvxeh2_vcvt.c2 * vxeh2_vcvt: vector-enhancements facility 2 vector convert *
58 S390Vector vs_i32 = { .w[0] = 1, .w[1] = 64, .w[2] = 1024, .w[3] = -10 }; in main()
59 S390Vector vs_u32 = { .w[0] = 2, .w[1] = 32, .w[2] = 4096, .w[3] = 8888 }; in main()
61 .f[2] = 4.499, .f[3] = 0.512 }; in main()
64 vcfps(&vd, &vs_i32, 2, M4_def, 0); in main()
65 if (1 != vd.f[0] || 1024 != vd.f[2] || 64 != vd.f[1] || -10 != vd.f[3]) { in main()
70 vcfpl(&vd, &vs_u32, 2, M4_def, 0); in main()
71 if (2 != vd.f[0] || 4096 != vd.f[2] || 32 != vd.f[1] || 8888 != vd.f[3]) { in main()
76 vcsfp(&vd, &vs_f32, 2, M4_def, 0); in main()
77 if (4 != vd.w[0] || 4 != vd.w[2] || 5 != vd.w[1] || 1 != vd.w[3]) { in main()
[all …]
/openbmc/qemu/host/include/i386/host/
H A Dbufferiszero.c.inc20 __m128i w = *(__m128i_u *)(buf + len - 16);
27 v |= e[-1]; w |= e[-2];
28 SSE_REASSOC_BARRIER(v, w);
29 v |= e[-3]; w |= e[-4];
30 SSE_REASSOC_BARRIER(v, w);
31 v |= e[-5]; w |= e[-6];
32 SSE_REASSOC_BARRIER(v, w);
33 v |= e[-7]; v |= w;
45 v = p[0]; w = p[1];
46 SSE_REASSOC_BARRIER(v, w);
[all …]
/openbmc/linux/Documentation/translations/zh_CN/arch/loongarch/
H A Dintroduction.rst149 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 …]

12345678910>>...47