Home
last modified time | relevance | path

Searched full:k1 (Results 1 – 25 of 358) sorted by relevance

12345678910>>...15

/OK3568_Linux_fs/kernel/arch/mips/kernel/
H A Dgenex.S36 mfc0 k1, CP0_CAUSE
37 andi k1, k1, 0x7c
39 dsll k1, k1, 1
41 PTR_L k0, exception_handlers(k1)
56 mfc0 k1, CP0_CAUSE
58 andi k1, k1, 0x7c
62 beq k1, k0, handle_vced
64 beq k1, k0, handle_vcei
66 dsll k1, k1, 1
69 PTR_L k0, exception_handlers(k1)
[all …]
H A Dbmips_vec.S42 li k1, CKSEG1
43 or k0, k1
58 mfc0 k1, $22, 3
59 srl k1, 16
60 andi k1, 0x8000
61 or k1, CKSEG1 | BMIPS_RELO_VECTOR_CONTROL_0
62 or k0, k1
63 li k1, 0xa0080000
64 sw k1, 0(k0)
70 li k1, CKSEG1
[all …]
/OK3568_Linux_fs/kernel/arch/mips/kvm/
H A Dentry.c48 #define K1 27 macro
224 /* k0/k1 not being used in host kernel context */ in kvm_mips_build_vcpu_run()
225 UASM_i_ADDIU(&p, K1, SP, -(int)sizeof(struct pt_regs)); in kvm_mips_build_vcpu_run()
229 UASM_i_SW(&p, i, offsetof(struct pt_regs, regs[i]), K1); in kvm_mips_build_vcpu_run()
234 UASM_i_SW(&p, V0, offsetof(struct pt_regs, cp0_status), K1); in kvm_mips_build_vcpu_run()
237 kvm_mips_build_save_scratch(&p, V1, K1); in kvm_mips_build_vcpu_run()
243 UASM_i_ADDIU(&p, K1, A0, offsetof(struct kvm_vcpu, arch)); in kvm_mips_build_vcpu_run()
249 UASM_i_SW(&p, SP, offsetof(struct kvm_vcpu_arch, host_stack), K1); in kvm_mips_build_vcpu_run()
252 UASM_i_SW(&p, GP, offsetof(struct kvm_vcpu_arch, host_gp), K1); in kvm_mips_build_vcpu_run()
263 UASM_i_LW(&p, K0, offsetof(struct kvm_vcpu_arch, guest_ebase), K1); in kvm_mips_build_vcpu_run()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/openssl/include/openssl/
H A Ddes_old.h140 # define des_ecb3_encrypt(i,o,k1,k2,k3,e)\ argument
141 DES_ecb3_encrypt((i),(o),&(k1),&(k2),&(k3),(e))
142 # define des_ede3_cbc_encrypt(i,o,l,k1,k2,k3,iv,e)\ argument
143 DES_ede3_cbc_encrypt((i),(o),(l),&(k1),&(k2),&(k3),(iv),(e))
144 # define des_ede3_cbcm_encrypt(i,o,l,k1,k2,k3,iv1,iv2,e)\ argument
145 DES_ede3_cbcm_encrypt((i),(o),(l),&(k1),&(k2),&(k3),(iv1),(iv2),(e))
146 # define des_ede3_cfb64_encrypt(i,o,l,k1,k2,k3,iv,n,e)\ argument
147 DES_ede3_cfb64_encrypt((i),(o),(l),&(k1),&(k2),&(k3),(iv),(n),(e))
148 # define des_ede3_ofb64_encrypt(i,o,l,k1,k2,k3,iv,n)\ argument
149 DES_ede3_ofb64_encrypt((i),(o),(l),&(k1),&(k2),&(k3),(iv),(n))
[all …]
H A Ddes.h114 # define DES_ecb2_encrypt(i,o,k1,k2,e) \ argument
115 DES_ecb3_encrypt((i),(o),(k1),(k2),(k1),(e))
117 # define DES_ede2_cbc_encrypt(i,o,l,k1,k2,iv,e) \ argument
118 DES_ede3_cbc_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(e))
120 # define DES_ede2_cfb64_encrypt(i,o,l,k1,k2,iv,n,e) \ argument
121 DES_ede3_cfb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n),(e))
123 # define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \ argument
124 DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n))
/OK3568_Linux_fs/kernel/include/linux/
H A Dbtree-128.h22 static inline void *btree_lookup128(struct btree_head128 *head, u64 k1, u64 k2) in btree_lookup128() argument
24 u64 key[2] = {k1, k2}; in btree_lookup128()
29 u64 *k1, u64 *k2) in btree_get_prev128() argument
31 u64 key[2] = {*k1, *k2}; in btree_get_prev128()
36 *k1 = key[0]; in btree_get_prev128()
41 static inline int btree_insert128(struct btree_head128 *head, u64 k1, u64 k2, in btree_insert128() argument
44 u64 key[2] = {k1, k2}; in btree_insert128()
49 static inline int btree_update128(struct btree_head128 *head, u64 k1, u64 k2, in btree_update128() argument
52 u64 key[2] = {k1, k2}; in btree_update128()
57 static inline void *btree_remove128(struct btree_head128 *head, u64 k1, u64 k2) in btree_remove128() argument
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/geojsonvt/6.5.1/include/mapbox/geojsonvt/
H A Dclip.hpp12 const double k1; member in mapbox::geojsonvt::detail::clipper
23 if (ak >= k1 && ak <= k2) in operator ()()
108 if (ak < k1) { in clipLine()
110 slice.push_back(intersect<I>(a, b, k1)); in clipLine()
114 } else if (bk >= k1) { // ---|--> | in clipLine()
115 slice.push_back(intersect<I>(a, b, k1)); in clipLine()
120 if (bk < k1) { // <--|-----|--- in clipLine()
122 slice.push_back(intersect<I>(a, b, k1)); in clipLine()
133 if (bk < k1) { // <--|--- | in clipLine()
134 slice.push_back(intersect<I>(a, b, k1)); in clipLine()
[all …]
/OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/
H A Dsm4_cmac.c25 static void rk_derive_mac_key(sm4_context *key, unsigned char *k1, unsigned char *k2) in rk_derive_mac_key() argument
32 if (c0[0]<0x80) //generate k1 in rk_derive_mac_key()
34 rk_left_shift(SM4_BLOCK_SIZE, c0, k1); in rk_derive_mac_key()
38 rk_left_shift(SM4_BLOCK_SIZE, c0, k1); in rk_derive_mac_key()
39 rk_array_xor(SM4_BLOCK_SIZE, k1, Rb, k1); in rk_derive_mac_key()
42 if (k1[0] < 0x80) //generate k2 in rk_derive_mac_key()
44 rk_left_shift(SM4_BLOCK_SIZE, k1, k2); in rk_derive_mac_key()
48 rk_left_shift(SM4_BLOCK_SIZE, k1, k2); in rk_derive_mac_key()
58 unsigned char k1[SM4_BLOCK_SIZE], k2[SM4_BLOCK_SIZE]; in rk_sm4_genarate_cmac() local
63 memset(k1, 0x00, sizeof(k1)); in rk_sm4_genarate_cmac()
[all …]
H A Daes_cmac.c26 static void rk_derive_mac_key(RK_AES_KEY *key, unsigned char *k1, unsigned char *k2) in rk_derive_mac_key() argument
33 if (c0[0]<0x80) //generate k1 in rk_derive_mac_key()
35 rk_left_shift(AES_BLOCK_SIZE, c0, k1); in rk_derive_mac_key()
39 rk_left_shift(AES_BLOCK_SIZE, c0, k1); in rk_derive_mac_key()
40 rk_array_xor(AES_BLOCK_SIZE, k1, Rb, k1); in rk_derive_mac_key()
43 if (k1[0] < 0x80) //generate k2 in rk_derive_mac_key()
45 rk_left_shift(AES_BLOCK_SIZE, k1, k2); in rk_derive_mac_key()
49 rk_left_shift(AES_BLOCK_SIZE, k1, k2); in rk_derive_mac_key()
59 unsigned char k1[AES_BLOCK_SIZE], k2[AES_BLOCK_SIZE]; in rk_aes_genarate_cmac() local
65 memset(k1, 0x00, sizeof(k1)); in rk_aes_genarate_cmac()
[all …]
/OK3568_Linux_fs/kernel/arch/mips/cavium-octeon/executive/
H A Dcvmx-boot-vector.c18 dmtc0 $k1, $31, 3 # Save $k1 to KScratch2
21 mfc0 $k1, $15, 1 # Ebase
25 andi $k1, 0x3ff # mask out core ID
28 sll $k1, 5
38 daddu $k0, $k0, $k1
42 dmfc0 $k1, $31, 3 # Restore $k1 from KScratch2
66 4: 40bbf803 dmtc0 k1,c0_kscratch2
69 c: 401b7801 mfc0 k1,c0_ebase
72 14: 337b03ff andi k1,k1,0x3ff
75 1c: 001bd940 sll k1,k1,0x5
[all …]
/OK3568_Linux_fs/buildroot/dl/sox/git/src/
H A Dfft4g.c729 int j, j1, k, k1, l, m, m2, ip[256]; in bitrv2() local
748 k1 = 2 * k + ip[j]; in bitrv2()
751 yr = a[k1]; in bitrv2()
752 yi = a[k1 + 1]; in bitrv2()
755 a[k1] = xr; in bitrv2()
756 a[k1 + 1] = xi; in bitrv2()
758 k1 += 2 * m2; in bitrv2()
761 yr = a[k1]; in bitrv2()
762 yi = a[k1 + 1]; in bitrv2()
765 a[k1] = xr; in bitrv2()
[all …]
/OK3568_Linux_fs/kernel/arch/mips/include/asm/
H A Dstackframe.h113 * stores the new value in k1, leaving sp unaffected.
121 lui k1, %hi(kernelsp)
123 lui k1, %highest(kernelsp)
124 daddiu k1, %higher(kernelsp)
125 dsll k1, 16
126 daddiu k1, %hi(kernelsp)
127 dsll k1, 16
130 LONG_ADDU k1, k0
136 LONG_L sp, %lo(kernelsp)(k1)
138 LONG_L k1, %lo(kernelsp)(k1)
[all …]
/OK3568_Linux_fs/kernel/arch/arm/crypto/
H A Dnh-neon-core.S33 K1 .req q5
49 .macro _nh_stride k0, k1, k2, k3
59 vadd.u32 T1, T3, \k1
78 vld1.32 {K0,K1}, [KEY]!
88 _nh_stride K0, K1, K2, K3
89 _nh_stride K1, K2, K3, K0
90 _nh_stride K2, K3, K0, K1
91 _nh_stride K3, K0, K1, K2
98 _nh_stride K0, K1, K2, K3
102 _nh_stride K1, K2, K3, K0
[all …]
/OK3568_Linux_fs/kernel/arch/mips/mm/
H A Dcex-sb1.S35 * (0x170-0x17f) are used to preserve k0, k1, and ra.
42 * save/restore k0 and k1 from low memory (Useg is direct
49 sd k1,0x178($0)
59 mfc0 k1,C0_ERRCTL
60 bgtz k1,attempt_recovery
61 sll k0,k1,1
98 li k1,1 << 26 /* ICACHE_EXTERNAL */
99 and k1,k0
100 bnez k1,unrecoverable
118 ld k1,0x178($0)
[all …]
H A Dcex-oct.S31 PTR_LA k1, cache_err_dcache
33 PTR_ADDU k1, k0, k1 /* k1 = &cache_err_dcache[core_id] */
36 sd k0, (k1)
40 mfc0 k1, CP0_STATUS
41 andi k1, k1, ST0_EXL
42 beqz k1, 1f
/OK3568_Linux_fs/external/xserver/mi/
H A Dmizerarc.h34 int x, y, k1, k3, a, b, d, dx, dy; member
51 k1 = info.k1; \
65 a = b = k1 = 0; \
69 dx = (k1 << 1) - k3; \
70 k1 = dx - k1; \
72 b = b + a - (k1 >> 1); \
85 b -= k1; \
90 a += k1; \
104 b -= k1; \
108 a += k1; \
/OK3568_Linux_fs/kernel/arch/arm64/crypto/
H A Dnh-neon-core.S22 K1 .req v5
34 .macro _nh_stride k0, k1, k2, k3
44 add T1.4s, T3.4s, \k1\().4s
67 ld1 {K0.4s,K1.4s}, [KEY], #32
77 _nh_stride K0, K1, K2, K3
78 _nh_stride K1, K2, K3, K0
79 _nh_stride K2, K3, K0, K1
80 _nh_stride K3, K0, K1, K2
87 _nh_stride K0, K1, K2, K3
91 _nh_stride K1, K2, K3, K0
[all …]
/OK3568_Linux_fs/kernel/arch/x86/crypto/
H A Dnh-sse2-x86_64.S17 #define K1 %xmm5 macro
33 .macro _nh_stride k0, k1, k2, k3, offset
45 paddd \k1, T1
77 movdqu 0x10(KEY), K1
88 _nh_stride K0, K1, K2, K3, 0x00
89 _nh_stride K1, K2, K3, K0, 0x10
90 _nh_stride K2, K3, K0, K1, 0x20
91 _nh_stride K3, K0, K1, K2, 0x30
100 _nh_stride K0, K1, K2, K3, 0x00
104 _nh_stride K1, K2, K3, K0, 0x10
[all …]
H A Dnh-avx2-x86_64.S18 #define K1 %ymm5 macro
39 .macro _nh_2xstride k0, k1, k2, k3
43 vpaddd \k1, T3, T1
75 vmovdqu 0x10(KEY), K1
88 _nh_2xstride K0, K1, K2, K3
92 vmovdqu 0x30(KEY), K1
93 _nh_2xstride K2, K3, K0, K1
111 _nh_2xstride K0, K1, K2, K3
117 vmovdqa K3, K1
126 _nh_2xstride K0, K1, K2, K3
/OK3568_Linux_fs/kernel/arch/sh/boards/mach-hp6xx/
H A Dpm_wakeup.S12 * k1 scratch
17 #define k1 r1 macro
21 mov #-126, k1
23 mov.b k0, @k1
25 mov.l 5f, k1
27 mov.w k0, @k1
29 mov.l 4f, k1
30 jmp @k1
/OK3568_Linux_fs/u-boot/arch/mips/lib/
H A Dgenex.S68 PTR_SUBU k1, sp, PT_SIZE
69 LONG_S sp, PT_R29(k1)
70 move sp, k1
172 PTR_LA k1, handle_reserved
173 jr k1
178 PTR_LA k1, handle_ejtag_debug
179 jr k1
197 MTC0 k1, CP0_DESAVE
200 MFC0 k1, CP0_DEBUG
201 sll k1, k1, 30
[all …]
/OK3568_Linux_fs/kernel/arch/sh/kernel/cpu/sh3/
H A Dentry.S35 * ldc k1, ssr ! delay slot
69 #define k1 r1 macro
83 * k1 scratch
258 mov #0xfffffff0, k1
259 extu.b k1, k1
260 not k1, k1
261 and k1, k2 ! Mask original SR value
304 ! k1 trashed
315 stc spc, k1
317 cmp/hs k0, k1 ! test k1 (saved PC) >= k0 (saved r0)
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlan/esa/common/
H A Daes_cmac_rom.c86 generate_subkey(phostsa_private priv, UINT8 *key, UINT8 *K1, UINT8 *K2) in generate_subkey() argument
99 /* If MSB(L) = 0, then K1 = L << 1 */ in generate_subkey()
100 leftshift_onebit(L, K1); in generate_subkey()
102 /* Else K1 = ( L << 1 ) (+) Rb */ in generate_subkey()
104 xor_128(tmp, const_Rb, K1); in generate_subkey()
107 if ((K1[0] & 0x80) == 0) { in generate_subkey()
108 leftshift_onebit(K1, K2); in generate_subkey()
110 leftshift_onebit(K1, tmp); in generate_subkey()
141 UINT8 K1[16]; in mrvl_aes_cmac() local
145 generate_subkey(priv, key, K1, K2); in mrvl_aes_cmac()
[all …]
/OK3568_Linux_fs/u-boot/board/imgtec/boston/
H A Dlowlevel_init.S46 ld k1, 0(a0)
47 sd k1, 0(AT)
49 lw k1, 0(a0)
50 sw k1, 0(AT)
51 lw k1, 4(a0)
52 sw k1, 4(AT)
/OK3568_Linux_fs/u-boot/lib/bzip2/
H A Dbzlib.c586 UChar k1; in unRLE_obuf_to_output_FAST() local
610 BZ_GET_FAST(k1); BZ_RAND_UPD_MASK; in unRLE_obuf_to_output_FAST()
611 k1 ^= BZ_RAND_MASK; s->nblock_used++; in unRLE_obuf_to_output_FAST()
613 if (k1 != s->k0) { s->k0 = k1; continue; }; in unRLE_obuf_to_output_FAST()
616 BZ_GET_FAST(k1); BZ_RAND_UPD_MASK; in unRLE_obuf_to_output_FAST()
617 k1 ^= BZ_RAND_MASK; s->nblock_used++; in unRLE_obuf_to_output_FAST()
619 if (k1 != s->k0) { s->k0 = k1; continue; }; in unRLE_obuf_to_output_FAST()
622 BZ_GET_FAST(k1); BZ_RAND_UPD_MASK; in unRLE_obuf_to_output_FAST()
623 k1 ^= BZ_RAND_MASK; s->nblock_used++; in unRLE_obuf_to_output_FAST()
625 if (k1 != s->k0) { s->k0 = k1; continue; }; in unRLE_obuf_to_output_FAST()
[all …]

12345678910>>...15