Home
last modified time | relevance | path

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

12345678910

/openbmc/linux/arch/mips/kernel/
H A Dgenex.S35 mfc0 k1, CP0_CAUSE
36 andi k1, k1, 0x7c
38 dsll k1, k1, 1
40 PTR_L k0, exception_handlers(k1)
55 mfc0 k1, CP0_CAUSE
57 andi k1, k1, 0x7c
61 beq k1, k0, handle_vced
63 beq k1, k0, handle_vcei
65 dsll k1, k1, 1
68 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 …]
/openbmc/linux/arch/mips/kvm/
H A Dentry.c48 #define K1 27 macro
218 /* k0/k1 not being used in host kernel context */ in kvm_mips_build_vcpu_run()
219 UASM_i_ADDIU(&p, K1, SP, -(int)sizeof(struct pt_regs)); in kvm_mips_build_vcpu_run()
223 UASM_i_SW(&p, i, offsetof(struct pt_regs, regs[i]), K1); in kvm_mips_build_vcpu_run()
228 UASM_i_SW(&p, V0, offsetof(struct pt_regs, cp0_status), K1); in kvm_mips_build_vcpu_run()
231 kvm_mips_build_save_scratch(&p, V1, K1); in kvm_mips_build_vcpu_run()
237 UASM_i_ADDIU(&p, K1, A0, offsetof(struct kvm_vcpu, arch)); in kvm_mips_build_vcpu_run()
243 UASM_i_SW(&p, SP, offsetof(struct kvm_vcpu_arch, host_stack), K1); in kvm_mips_build_vcpu_run()
246 UASM_i_SW(&p, GP, offsetof(struct kvm_vcpu_arch, host_gp), K1); in kvm_mips_build_vcpu_run()
257 UASM_i_LW(&p, K0, offsetof(struct kvm_vcpu_arch, guest_ebase), K1); in kvm_mips_build_vcpu_run()
[all …]
/openbmc/linux/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 …]
/openbmc/linux/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 …]
/openbmc/linux/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 …]
H A Dsha1-ce-core.S17 k1 .req q1
68 vld1.32 {k0-k1}, [ip, :128]!
94 add_update c, 0, k1, 8, 9, 10, 11
96 add_update p, 1, k1, 9, 10, 11, 8
97 add_update p, 0, k1, 10, 11, 8, 9
98 add_update p, 1, k1, 11, 8, 9, 10
99 add_update p, 0, k1, 8, 9, 10, 11
/openbmc/linux/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
/openbmc/linux/arch/mips/mm/
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
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 Dtlbex.c281 #define K1 27 macro
360 r.r2 = K1; in build_get_work_registers()
373 UASM_i_LA(p, K1, (long)&handler_reg_save); in build_get_work_registers()
374 UASM_i_ADDU(p, K0, K0, K1); in build_get_work_registers()
382 r.r1 = K1; in build_get_work_registers()
417 uasm_i_lui(&p, K1, uasm_rel_hi(pgdc)); /* cp0 delay */ in build_r3000_tlb_refill_handler()
418 uasm_i_lw(&p, K1, uasm_rel_lo(pgdc), K1); in build_r3000_tlb_refill_handler()
421 uasm_i_addu(&p, K1, K1, K0); in build_r3000_tlb_refill_handler()
423 uasm_i_lw(&p, K1, 0, K1); /* cp0 delay */ in build_r3000_tlb_refill_handler()
425 uasm_i_addu(&p, K1, K1, K0); in build_r3000_tlb_refill_handler()
[all …]
/openbmc/linux/arch/x86/crypto/
H A Dnh-sse2-x86_64.S18 #define K1 %xmm5 macro
34 .macro _nh_stride k0, k1, k2, k3, offset
46 paddd \k1, T1
78 movdqu 0x10(KEY), K1
89 _nh_stride K0, K1, K2, K3, 0x00
90 _nh_stride K1, K2, K3, K0, 0x10
91 _nh_stride K2, K3, K0, K1, 0x20
92 _nh_stride K3, K0, K1, K2, 0x30
101 _nh_stride K0, K1, K2, K3, 0x00
105 _nh_stride K1, K2, K3, K0, 0x10
[all …]
H A Dnh-avx2-x86_64.S19 #define K1 %ymm5 macro
40 .macro _nh_2xstride k0, k1, k2, k3
44 vpaddd \k1, T3, T1
76 vmovdqu 0x10(KEY), K1
89 _nh_2xstride K0, K1, K2, K3
93 vmovdqu 0x30(KEY), K1
94 _nh_2xstride K2, K3, K0, K1
112 _nh_2xstride K0, K1, K2, K3
118 vmovdqa K3, K1
127 _nh_2xstride K0, K1, K2, K3
/openbmc/linux/arch/arm64/crypto/
H A Dnh-neon-core.S23 K1 .req v5
35 .macro _nh_stride k0, k1, k2, k3
45 add T1.4s, T3.4s, \k1\().4s
68 ld1 {K0.4s,K1.4s}, [KEY], #32
78 _nh_stride K0, K1, K2, K3
79 _nh_stride K1, K2, K3, K0
80 _nh_stride K2, K3, K0, K1
81 _nh_stride K3, K0, K1, K2
88 _nh_stride K0, K1, K2, K3
92 _nh_stride K1, K2, K3, K0
[all …]
H A Dsha1-ce-core.S15 k1 .req v1
71 loadrc k1.4s, 0x6ed9eba1, w6
99 add_update c, ev, k1, 8, 9, 10, 11
101 add_update p, od, k1, 9, 10, 11, 8
102 add_update p, ev, k1, 10, 11, 8, 9
103 add_update p, od, k1, 11, 8, 9, 10
104 add_update p, ev, k1, 8, 9, 10, 11
/openbmc/linux/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 …]
/openbmc/u-boot/arch/mips/lib/
H A Dgenex.S67 PTR_SUBU k1, sp, PT_SIZE
68 LONG_S sp, PT_R29(k1)
69 move sp, k1
171 PTR_LA k1, handle_reserved
172 jr k1
177 PTR_LA k1, handle_ejtag_debug
178 jr k1
196 MTC0 k1, CP0_DESAVE
199 MFC0 k1, CP0_DEBUG
200 sll k1, k1, 30
[all …]
/openbmc/linux/arch/sh/kernel/cpu/sh3/
H A Dentry.S34 * ldc k1, ssr ! delay slot
68 #define k1 r1 macro
82 * k1 scratch
257 mov #0xfffffff0, k1
258 extu.b k1, k1
259 not k1, k1
260 and k1, k2 ! Mask original SR value
303 ! k1 trashed
314 stc spc, k1
316 cmp/hs k0, k1 ! test k1 (saved PC) >= k0 (saved r0)
[all …]
/openbmc/u-boot/board/imgtec/boston/
H A Dlowlevel_init.S44 ld k1, 0(a0)
45 sd k1, 0(AT)
47 lw k1, 0(a0)
48 sw k1, 0(AT)
49 lw k1, 4(a0)
50 sw k1, 4(AT)
/openbmc/linux/arch/s390/crypto/
H A Dchacha-s390.S53 #define K1 %v17 macro
90 VL K1,0,,KEY # load key
99 VREPF XB0,K1,0 # smash the key
100 VREPF XB1,K1,1
101 VREPF XB2,K1,2
102 VREPF XB3,K1,3
284 VAF XB0,XB0,K1
307 VAF XB0,XB1,K1
334 VAF XB0,XB2,K1
361 VAF XB0,XB3,K1
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/
H A Ddcn32_dccg.c61 enum pixel_rate_div *k1, in dccg32_get_pixel_rate_div() argument
67 *k1 = PIXEL_RATE_DIV_NA; in dccg32_get_pixel_rate_div()
96 *k1 = (enum pixel_rate_div)val_k1; in dccg32_get_pixel_rate_div()
103 enum pixel_rate_div k1, in dccg32_set_pixel_rate_div() argument
111 // K1 / K2 field is only 1 / 2 bits wide in dccg32_set_pixel_rate_div()
112 if (k1 == PIXEL_RATE_DIV_NA || k2 == PIXEL_RATE_DIV_NA) { in dccg32_set_pixel_rate_div()
118 if (k1 == cur_k1 && k2 == cur_k2) in dccg32_set_pixel_rate_div()
124 OTG0_PIXEL_RATE_DIVK1, k1, in dccg32_set_pixel_rate_div()
129 OTG1_PIXEL_RATE_DIVK1, k1, in dccg32_set_pixel_rate_div()
134 OTG2_PIXEL_RATE_DIVK1, k1, in dccg32_set_pixel_rate_div()
[all …]
/openbmc/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 …]
/openbmc/phosphor-net-ipmid/test/
H A Dcipher.cpp40 std::vector<uint8_t> k1(SHA_DIGEST_LENGTH); in TEST() local
45 // Generated K1 for the integrity algorithm with the additional key keyed in TEST()
49 k1.data(), &mdLen) == NULL) in TEST()
58 if (HMAC(EVP_sha1(), k1.data(), k1.size(), in TEST()
88 std::vector<uint8_t> k1(SHA_DIGEST_LENGTH); in TEST() local
93 // Generated K1 for the integrity algorithm with the additional key keyed in TEST()
97 k1.data(), &mdLen) == NULL) in TEST()
106 if (HMAC(EVP_sha1(), k1.data(), k1.size(), in TEST()
203 std::vector<uint8_t> k1(SHA256_DIGEST_LENGTH); in TEST() local
208 // Generated K1 for the integrity algorithm with the additional key keyed in TEST()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn314/
H A Ddcn314_dccg.c61 enum pixel_rate_div *k1, in dccg314_get_pixel_rate_div() argument
67 *k1 = PIXEL_RATE_DIV_NA; in dccg314_get_pixel_rate_div()
96 *k1 = (enum pixel_rate_div)val_k1; in dccg314_get_pixel_rate_div()
103 enum pixel_rate_div k1, in dccg314_set_pixel_rate_div() argument
110 // K1 / K2 field is only 1 / 2 bits wide in dccg314_set_pixel_rate_div()
111 if (k1 == PIXEL_RATE_DIV_NA || k2 == PIXEL_RATE_DIV_NA) { in dccg314_set_pixel_rate_div()
117 if (k1 == cur_k1 && k2 == cur_k2) in dccg314_set_pixel_rate_div()
123 OTG0_PIXEL_RATE_DIVK1, k1, in dccg314_set_pixel_rate_div()
128 OTG1_PIXEL_RATE_DIVK1, k1, in dccg314_set_pixel_rate_div()
133 OTG2_PIXEL_RATE_DIVK1, k1, in dccg314_set_pixel_rate_div()
[all …]
/openbmc/u-boot/arch/arm/mach-tegra/tegra20/
H A Dcrypto.c54 u8 k1[AES_KEY_LENGTH]; in sign_object() local
60 /* compute K1 constant needed by AES-CMAC calculation */ in sign_object()
66 left_shift_vector(left, k1, sizeof(left)); in sign_object()
69 k1[AES_KEY_LENGTH-1] ^= AES_CMAC_CONST_RB; in sign_object()
76 /* for the final block, XOR K1 into the IV */ in sign_object()
78 aes_apply_cbc_chain_data(tmp_data, k1, tmp_data); in sign_object()

12345678910