/arch/sparc/crypto/ |
H A D | des_glue.c | 72 struct des_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); local 73 const u64 *K = ctx->encrypt_expkey; 80 struct des_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); local 81 const u64 *K = ctx->decrypt_expkey; 97 struct des_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 106 des_sparc64_load_keys(&ctx->encrypt_expkey[0]); 108 des_sparc64_load_keys(&ctx->decrypt_expkey[0]); 145 struct des_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 153 des_sparc64_load_keys(&ctx->encrypt_expkey[0]); 176 struct des_sparc64_ctx *ctx local 242 struct des3_ede_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); local 250 struct des3_ede_sparc64_ctx *ctx = crypto_tfm_ctx(tfm); local 265 struct des3_ede_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 317 struct des3_ede_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 353 struct des3_ede_sparc64_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local [all...] |
/arch/sparc/mm/ |
H A D | leon_mm.c | 42 unsigned int ctx; local 64 ctx = srmmu_get_context(); 66 printk(KERN_INFO "swprobe: --- ctx (%x) ---\n", ctx); 68 pgd = LEON_BYPASS_LOAD_PA(ctxtbl + (ctx * 4));
|
/arch/tile/mm/ |
H A D | fault.c | 186 HV_Context ctx = hv_inquire_context(); local 187 unsigned long pgd_pfn = ctx.page_table >> PAGE_SHIFT; 190 return (pgd_t *) __va(ctx.page_table);
|
/arch/um/os-Linux/ |
H A D | aio.c | 41 static long io_submit(aio_context_t ctx, long nr, struct iocb **iocbpp) argument 43 return syscall(__NR_io_submit, ctx, nr, iocbpp); 66 static int do_aio(aio_context_t ctx, enum aio_type type, int fd, char *buf, argument 95 return (io_submit(ctx, 1, &iocbp) > 0) ? 0 : -errno; 99 static aio_context_t ctx = 0; variable 109 n = io_getevents(ctx, 1, 1, &event, NULL); 247 if (io_setup(256, &ctx)) { 271 err = do_aio(ctx, type, io_fd, buf, len, offset, aio);
|
/arch/x86/crypto/ |
H A D | camellia_aesni_avx2_glue.c | 31 asmlinkage void camellia_ecb_enc_32way(struct camellia_ctx *ctx, u8 *dst, 33 asmlinkage void camellia_ecb_dec_32way(struct camellia_ctx *ctx, u8 *dst, 36 asmlinkage void camellia_cbc_dec_32way(struct camellia_ctx *ctx, u8 *dst, 38 asmlinkage void camellia_ctr_32way(struct camellia_ctx *ctx, u8 *dst, 41 asmlinkage void camellia_xts_enc_32way(struct camellia_ctx *ctx, u8 *dst, 43 asmlinkage void camellia_xts_dec_32way(struct camellia_ctx *ctx, u8 *dst, 206 struct camellia_ctx *ctx; member in struct:crypt_priv 213 struct crypt_priv *ctx = priv; local 216 ctx->fpu_enabled = camellia_fpu_begin(ctx 243 struct crypt_priv *ctx = priv; local 273 struct camellia_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 299 struct camellia_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 325 struct camellia_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 335 struct camellia_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local [all...] |
H A D | camellia_aesni_avx_glue.c | 30 asmlinkage void camellia_ecb_enc_16way(struct camellia_ctx *ctx, u8 *dst, 34 asmlinkage void camellia_ecb_dec_16way(struct camellia_ctx *ctx, u8 *dst, 38 asmlinkage void camellia_cbc_dec_16way(struct camellia_ctx *ctx, u8 *dst, 42 asmlinkage void camellia_ctr_16way(struct camellia_ctx *ctx, u8 *dst, 46 asmlinkage void camellia_xts_enc_16way(struct camellia_ctx *ctx, u8 *dst, 50 asmlinkage void camellia_xts_dec_16way(struct camellia_ctx *ctx, u8 *dst, 54 void camellia_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 56 glue_xts_crypt_128bit_one(ctx, dst, src, iv, 61 void camellia_xts_dec(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 63 glue_xts_crypt_128bit_one(ctx, ds 210 struct camellia_ctx *ctx; member in struct:crypt_priv 217 struct crypt_priv *ctx = priv; local 241 struct crypt_priv *ctx = priv; local 265 struct camellia_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 291 struct camellia_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 317 struct camellia_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 327 struct camellia_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local [all...] |
H A D | cast6_avx_glue.c | 45 asmlinkage void cast6_ecb_enc_8way(struct cast6_ctx *ctx, u8 *dst, 47 asmlinkage void cast6_ecb_dec_8way(struct cast6_ctx *ctx, u8 *dst, 50 asmlinkage void cast6_cbc_dec_8way(struct cast6_ctx *ctx, u8 *dst, 52 asmlinkage void cast6_ctr_8way(struct cast6_ctx *ctx, u8 *dst, const u8 *src, 55 asmlinkage void cast6_xts_enc_8way(struct cast6_ctx *ctx, u8 *dst, 57 asmlinkage void cast6_xts_dec_8way(struct cast6_ctx *ctx, u8 *dst, 60 static void cast6_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 62 glue_xts_crypt_128bit_one(ctx, dst, src, iv, 66 static void cast6_xts_dec(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 68 glue_xts_crypt_128bit_one(ctx, ds 72 cast6_crypt_ctr(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 205 struct cast6_ctx *ctx; member in struct:crypt_priv 212 struct crypt_priv *ctx = priv; local 229 struct crypt_priv *ctx = priv; local 251 struct cast6_lrw_ctx *ctx = crypto_tfm_ctx(tfm); local 265 struct cast6_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 291 struct cast6_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 316 struct cast6_lrw_ctx *ctx = crypto_tfm_ctx(tfm); local 329 struct cast6_xts_ctx *ctx = crypto_tfm_ctx(tfm); local 354 struct cast6_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 364 struct cast6_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local [all...] |
H A D | des3_ede_glue.c | 44 static inline void des3_ede_enc_blk(struct des3_ede_x86_ctx *ctx, u8 *dst, argument 47 u32 *enc_ctx = ctx->enc_expkey; 52 static inline void des3_ede_dec_blk(struct des3_ede_x86_ctx *ctx, u8 *dst, argument 55 u32 *dec_ctx = ctx->dec_expkey; 60 static inline void des3_ede_enc_blk_3way(struct des3_ede_x86_ctx *ctx, u8 *dst, argument 63 u32 *enc_ctx = ctx->enc_expkey; 68 static inline void des3_ede_dec_blk_3way(struct des3_ede_x86_ctx *ctx, u8 *dst, argument 71 u32 *dec_ctx = ctx->dec_expkey; 133 struct des3_ede_x86_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 137 return ecb_crypt(desc, &walk, ctx 143 struct des3_ede_x86_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 153 struct des3_ede_x86_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 194 struct des3_ede_x86_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 270 ctr_crypt_final(struct des3_ede_x86_ctx *ctx, struct blkcipher_walk *walk) argument 289 struct des3_ede_x86_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 362 struct des3_ede_x86_ctx *ctx = crypto_tfm_ctx(tfm); local [all...] |
H A D | ghash-clmulni-intel_glue.c | 58 struct ghash_ctx *ctx = crypto_shash_ctx(tfm); local 71 ctx->shash.a = (b << 1) | (a >> 63); 72 ctx->shash.b = (a << 1) | (b >> 63); 75 ctx->shash.b ^= ((u64)0xc2) << 56; 84 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); local 99 clmul_ghash_mul(dst, &ctx->shash); 102 clmul_ghash_update(dst, src, srclen, &ctx->shash); 116 static void ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx) argument 127 clmul_ghash_mul(dst, &ctx->shash); 137 struct ghash_ctx *ctx local 167 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); local 191 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); local 209 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); local 224 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); local 245 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); local 262 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); local 277 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); local [all...] |
H A D | serpent_avx_glue.c | 45 asmlinkage void serpent_ecb_enc_8way_avx(struct serpent_ctx *ctx, u8 *dst, 49 asmlinkage void serpent_ecb_dec_8way_avx(struct serpent_ctx *ctx, u8 *dst, 53 asmlinkage void serpent_cbc_dec_8way_avx(struct serpent_ctx *ctx, u8 *dst, 57 asmlinkage void serpent_ctr_8way_avx(struct serpent_ctx *ctx, u8 *dst, 61 asmlinkage void serpent_xts_enc_8way_avx(struct serpent_ctx *ctx, u8 *dst, 65 asmlinkage void serpent_xts_dec_8way_avx(struct serpent_ctx *ctx, u8 *dst, 69 void __serpent_crypt_ctr(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 76 __serpent_encrypt(ctx, (u8 *)&ctrblk, (u8 *)&ctrblk); 81 void serpent_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 83 glue_xts_crypt_128bit_one(ctx, ds 88 serpent_xts_dec(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 218 struct serpent_ctx *ctx; member in struct:crypt_priv 225 struct crypt_priv *ctx = priv; local 242 struct crypt_priv *ctx = priv; local 259 struct serpent_lrw_ctx *ctx = crypto_tfm_ctx(tfm); local 275 struct serpent_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 301 struct serpent_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 326 struct serpent_lrw_ctx *ctx = crypto_tfm_ctx(tfm); local 335 struct serpent_xts_ctx *ctx = crypto_tfm_ctx(tfm); local 360 struct serpent_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 370 struct serpent_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local [all...] |
H A D | serpent_sse2_glue.c | 48 static void serpent_decrypt_cbc_xway(void *ctx, u128 *dst, const u128 *src) argument 56 serpent_dec_blk_xway(ctx, (u8 *)dst, (u8 *)src); 62 static void serpent_crypt_ctr(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 69 __serpent_encrypt(ctx, (u8 *)&ctrblk, (u8 *)&ctrblk); 73 static void serpent_crypt_ctr_xway(void *ctx, u128 *dst, const u128 *src, argument 87 serpent_enc_blk_xway_xor(ctx, (u8 *)dst, (u8 *)ctrblks); 186 struct serpent_ctx *ctx; member in struct:crypt_priv 193 struct crypt_priv *ctx = priv; local 196 ctx->fpu_enabled = serpent_fpu_begin(ctx 210 struct crypt_priv *ctx = priv; local 232 struct serpent_lrw_ctx *ctx = crypto_tfm_ctx(tfm); local 247 struct serpent_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 273 struct serpent_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 298 struct serpent_lrw_ctx *ctx = crypto_tfm_ctx(tfm); local 311 struct serpent_xts_ctx *ctx = crypto_tfm_ctx(tfm); local 335 struct serpent_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 362 struct serpent_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local [all...] |
H A D | twofish_avx_glue.c | 51 asmlinkage void twofish_ecb_enc_8way(struct twofish_ctx *ctx, u8 *dst, 53 asmlinkage void twofish_ecb_dec_8way(struct twofish_ctx *ctx, u8 *dst, 56 asmlinkage void twofish_cbc_dec_8way(struct twofish_ctx *ctx, u8 *dst, 58 asmlinkage void twofish_ctr_8way(struct twofish_ctx *ctx, u8 *dst, 61 asmlinkage void twofish_xts_enc_8way(struct twofish_ctx *ctx, u8 *dst, 63 asmlinkage void twofish_xts_dec_8way(struct twofish_ctx *ctx, u8 *dst, 66 static inline void twofish_enc_blk_3way(struct twofish_ctx *ctx, u8 *dst, argument 69 __twofish_enc_blk_3way(ctx, dst, src, false); 72 static void twofish_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 74 glue_xts_crypt_128bit_one(ctx, ds 78 twofish_xts_dec(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 219 struct twofish_ctx *ctx; member in struct:crypt_priv 226 struct crypt_priv *ctx = priv; local 248 struct crypt_priv *ctx = priv; local 270 struct twofish_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 296 struct twofish_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 322 struct twofish_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 332 struct twofish_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local [all...] |
H A D | twofish_glue_3way.c | 39 static inline void twofish_enc_blk_3way(struct twofish_ctx *ctx, u8 *dst, argument 42 __twofish_enc_blk_3way(ctx, dst, src, false); 45 static inline void twofish_enc_blk_xor_3way(struct twofish_ctx *ctx, u8 *dst, argument 48 __twofish_enc_blk_3way(ctx, dst, src, true); 51 void twofish_dec_blk_cbc_3way(void *ctx, u128 *dst, const u128 *src) argument 58 twofish_dec_blk_3way(ctx, (u8 *)dst, (u8 *)src); 65 void twofish_enc_blk_ctr(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 75 twofish_enc_blk(ctx, (u8 *)&ctrblk, (u8 *)&ctrblk); 80 void twofish_enc_blk_ctr_3way(void *ctx, u128 *dst, const u128 *src, argument 98 twofish_enc_blk_xor_3way(ctx, (u 189 struct twofish_ctx *ctx = priv; local 204 struct twofish_ctx *ctx = priv; local 219 struct twofish_lrw_ctx *ctx = crypto_tfm_ctx(tfm); local 234 struct twofish_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 251 struct twofish_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 267 struct twofish_lrw_ctx *ctx = crypto_tfm_ctx(tfm); local 276 struct twofish_xts_ctx *ctx = crypto_tfm_ctx(tfm); local 302 struct twofish_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local 320 struct twofish_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); local [all...] |
/arch/x86/kernel/cpu/mcheck/ |
H A D | mce-severity.c | 183 enum context ctx = error_context(m); local 195 if (s->context && ctx != s->context) 200 if (s->sev >= MCE_UC_SEVERITY && ctx == IN_KERNEL) {
|
/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 68 static inline void emit(const u32 insn, struct jit_ctx *ctx) argument 70 if (ctx->image != NULL) 71 ctx->image[ctx->idx] = cpu_to_le32(insn); 73 ctx->idx++; 77 struct jit_ctx *ctx) 82 emit(A64_MOVZ(1, reg, tmp & 0xffff, shift), ctx); 87 emit(A64_MOVK(1, reg, tmp & 0xffff, shift), ctx); 94 const s32 val, struct jit_ctx *ctx) 101 emit(A64_MOVN(is64, reg, (u16)~lo, 0), ctx); local 76 emit_a64_mov_i64(const int reg, const u64 val, struct jit_ctx *ctx) argument 93 emit_a64_mov_i(const int is64, const int reg, const s32 val, struct jit_ctx *ctx) argument 103 emit(A64_MOVN(is64, reg, (u16)~hi, 16), ctx); local 113 bpf2a64_offset(int bpf_to, int bpf_from, const struct jit_ctx *ctx) argument 131 epilogue_offset(const struct jit_ctx *ctx) argument 142 build_prologue(struct jit_ctx *ctx) argument 159 emit(A64_PUSH(r6, r7, A64_SP), ctx); local 160 emit(A64_PUSH(r8, r9, A64_SP), ctx); local 162 emit(A64_PUSH(tmp1, tmp2, A64_SP), ctx); local 175 build_epilogue(struct jit_ctx *ctx) argument 195 emit(A64_POP(tmp1, tmp2, A64_SP), ctx); local 196 emit(A64_POP(r8, r9, A64_SP), ctx); local 197 emit(A64_POP(r6, r7, A64_SP), ctx); local 205 emit(A64_RET(A64_LR), ctx); local 214 build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx) argument 232 emit(A64_MOV(is64, dst, src), ctx); local 237 emit(A64_ADD(is64, dst, dst, src), ctx); local 241 emit(A64_SUB(is64, dst, dst, src), ctx); local 245 emit(A64_AND(is64, dst, dst, src), ctx); local 249 emit(A64_ORR(is64, dst, dst, src), ctx); local 253 emit(A64_EOR(is64, dst, dst, src), ctx); local 257 emit(A64_MUL(is64, dst, dst, src), ctx); local 261 emit(A64_UDIV(is64, dst, dst, src), ctx); local 266 emit(A64_UDIV(is64, tmp, dst, src), ctx); local 267 emit(A64_MUL(is64, tmp, tmp, src), ctx); local 268 emit(A64_SUB(is64, dst, dst, tmp), ctx); local 272 emit(A64_LSLV(is64, dst, dst, src), ctx); local 276 emit(A64_LSRV(is64, dst, dst, src), ctx); local 280 emit(A64_ASRV(is64, dst, dst, src), ctx); local 285 emit(A64_NEG(is64, dst, dst), ctx); local 299 emit(A64_REV16(is64, dst, dst), ctx); local 302 emit(A64_REV32(is64, dst, dst), ctx); local 305 emit(A64_REV64(dst, dst), ctx); local 319 emit(A64_ADD(is64, dst, dst, tmp), ctx); local 325 emit(A64_SUB(is64, dst, dst, tmp), ctx); local 331 emit(A64_AND(is64, dst, dst, tmp), ctx); local 337 emit(A64_ORR(is64, dst, dst, tmp), ctx); local 343 emit(A64_EOR(is64, dst, dst, tmp), ctx); local 349 emit(A64_MUL(is64, dst, dst, tmp), ctx); local 355 emit(A64_UDIV(is64, dst, dst, tmp), ctx); local 361 emit(A64_UDIV(is64, tmp, dst, tmp2), ctx); local 362 emit(A64_MUL(is64, tmp, tmp, tmp2), ctx); local 363 emit(A64_SUB(is64, dst, dst, tmp), ctx); local 367 emit(A64_LSL(is64, dst, dst, imm), ctx); local 371 emit(A64_LSR(is64, dst, dst, imm), ctx); local 375 emit(A64_ASR(is64, dst, dst, imm), ctx); local 393 emit(A64_B(jmp_offset), ctx); local 428 emit(A64_B_(jmp_cond, jmp_offset), ctx); local 457 emit(A64_PUSH(A64_FP, A64_LR, A64_SP), ctx); local 459 emit(A64_BLR(tmp), ctx); local 461 emit(A64_POP(A64_FP, A64_LR, A64_SP), ctx); local 470 emit(A64_B(jmp_offset), ctx); local 503 emit(A64_LDR32(dst, src, tmp), ctx); local 506 emit(A64_LDRH(dst, src, tmp), ctx); local 509 emit(A64_LDRB(dst, src, tmp), ctx); local 512 emit(A64_LDR64(dst, src, tmp), ctx); local 533 emit(A64_STR32(src, dst, tmp), ctx); local 536 emit(A64_STRH(src, dst, tmp), ctx); local 539 emit(A64_STRB(src, dst, tmp), ctx); local 542 emit(A64_STR64(src, dst, tmp), ctx); local 591 emit(A64_PUSH(A64_FP, A64_LR, A64_SP), ctx); local 593 emit(A64_BLR(r5), ctx); local 595 emit(A64_POP(A64_FP, A64_LR, A64_SP), ctx); local 603 emit(A64_LDR32(r0, r5, A64_ZR), ctx); local 609 emit(A64_LDRH(r0, r5, A64_ZR), ctx); local 615 emit(A64_LDRB(r0, r5, A64_ZR), ctx); local 632 build_body(struct jit_ctx *ctx) argument 669 struct jit_ctx ctx; local [all...] |
/arch/metag/kernel/ |
H A D | process.c | 135 pr_info(" SaveMask = 0x%04hx\n", regs->ctx.SaveMask); 136 pr_info(" Flags = 0x%04hx (%c%c%c%c)\n", regs->ctx.Flags, 137 regs->ctx.Flags & FLAG_Z ? 'Z' : 'z', 138 regs->ctx.Flags & FLAG_N ? 'N' : 'n', 139 regs->ctx.Flags & FLAG_O ? 'O' : 'o', 140 regs->ctx.Flags & FLAG_C ? 'C' : 'c'); 141 pr_info(" TXRPT = 0x%08x\n", regs->ctx.CurrRPT); 142 pr_info(" PC = 0x%08x\n", regs->ctx.CurrPC); 148 regs->ctx.AX[i].U0); 151 regs->ctx 233 struct meta_fpu_context *ctx; local 243 struct meta_ext_context *ctx; local [all...] |
/arch/mips/math-emu/ |
H A D | cp1emu.c | 649 (si) = (int)get_fpr32(&ctx->fpr[x], 0); \ 651 (si) = (int)get_fpr32(&ctx->fpr[(x) & ~1], (x) & 1); \ 658 set_fpr32(&ctx->fpr[x], 0, si); \ 659 for (i = 1; i < ARRAY_SIZE(ctx->fpr[x].val32); i++) \ 660 set_fpr32(&ctx->fpr[x], i, 0); \ 662 set_fpr32(&ctx->fpr[(x) & ~1], (x) & 1, si); \ 666 #define SIFROMHREG(si, x) ((si) = (int)get_fpr32(&ctx->fpr[x], 1)) 671 set_fpr32(&ctx->fpr[x], 1, si); \ 672 for (i = 2; i < ARRAY_SIZE(ctx->fpr[x].val32); i++) \ 673 set_fpr32(&ctx 698 cop1Emulate(struct pt_regs *xcp, struct mips_fpu_struct *ctx, struct mm_decoded_insn dec_insn, void *__user *fault_addr) argument 1163 fpux_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx, mips_instruction ir, void *__user *fault_addr) argument 1358 fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx, mips_instruction ir) argument 1857 fpu_emulator_cop1Handler(struct pt_regs *xcp, struct mips_fpu_struct *ctx, int has_fpu, void *__user *fault_addr) argument [all...] |
/arch/mips/pci/ |
H A D | pci-alchemy.c | 91 static void alchemy_pci_wired_entry(struct alchemy_pci_context *ctx) argument 93 ctx->wired_entry = read_c0_wired(); 94 add_wired_entry(0, 0, (unsigned long)ctx->pci_cfg_vm->addr, PM_4K); 95 ctx->last_elo0 = ctx->last_elo1 = ~0; 101 struct alchemy_pci_context *ctx = bus->sysdata; local 113 r = __raw_readl(ctx->regs + PCI_REG_STATCMD) & 0x0000ffff; 115 __raw_writel(r, ctx->regs + PCI_REG_STATCMD); 121 if (ctx->board_pci_idsel(device, 1) == 0) { 146 if ((entryLo0 != ctx 308 struct alchemy_pci_context *ctx = __alchemy_pci_ctx; local 330 struct alchemy_pci_context *ctx = __alchemy_pci_ctx; local 364 struct alchemy_pci_context *ctx; local 527 struct alchemy_pci_context *ctx = dev->sysdata; local [all...] |
/arch/powerpc/include/asm/ |
H A D | spu_priv1.h | 182 void (*enable_spu)(struct spu_context *ctx); 183 void (*disable_spu)(struct spu_context *ctx); 214 spu_enable_spu (struct spu_context *ctx) argument 216 spu_management_ops->enable_spu(ctx); 220 spu_disable_spu (struct spu_context *ctx) argument 222 spu_management_ops->disable_spu(ctx);
|
/arch/powerpc/platforms/cell/ |
H A D | spu_manage.c | 371 static void enable_spu_by_master_run(struct spu_context *ctx) argument 373 ctx->ops->master_start(ctx); 376 static void disable_spu_by_master_run(struct spu_context *ctx) argument 378 ctx->ops->master_stop(ctx);
|
/arch/x86/crypto/sha-mb/ |
H A D | sha1_mb.c | 91 static inline struct ahash_request *cast_mcryptd_ctx_to_req(struct mcryptd_hash_request_ctx *ctx) argument 93 return container_of((void *) ctx, struct ahash_request, __ctx); 137 static struct sha1_hash_ctx *sha1_ctx_mgr_resubmit(struct sha1_ctx_mgr *mgr, struct sha1_hash_ctx *ctx) argument 139 while (ctx) { 140 if (ctx->status & HASH_CTX_STS_COMPLETE) { 142 ctx->status = HASH_CTX_STS_COMPLETE; 143 return ctx; 150 if (ctx->partial_block_buffer_length == 0 && 151 ctx->incoming_buffer_length) { 153 const void *buffer = ctx 224 struct sha1_hash_ctx *ctx; local 235 sha1_ctx_mgr_submit(struct sha1_ctx_mgr *mgr, struct sha1_hash_ctx *ctx, const void *buffer, uint32_t len, int flags) argument 326 struct sha1_hash_ctx *ctx; local 708 struct sha1_mb_ctx *ctx = crypto_ahash_ctx(tfm); local 722 struct sha1_mb_ctx *ctx = crypto_ahash_ctx(tfm); local 735 struct sha1_mb_ctx *ctx = crypto_ahash_ctx(tfm); local 748 struct sha1_mb_ctx *ctx = crypto_ahash_ctx(tfm); local 759 struct sha1_mb_ctx *ctx = crypto_ahash_ctx(tfm); local 771 struct sha1_mb_ctx *ctx = crypto_tfm_ctx(tfm); local 789 struct sha1_mb_ctx *ctx = crypto_tfm_ctx(tfm); local [all...] |
/arch/x86/kernel/cpu/microcode/ |
H A D | core.c | 131 struct cpu_info_ctx *ctx = arg; local 133 ctx->err = microcode_ops->collect_cpu_info(smp_processor_id(), 134 ctx->cpu_sig); 139 struct cpu_info_ctx ctx = { .cpu_sig = cpu_sig, .err = 0 }; local 142 ret = smp_call_function_single(cpu, collect_cpu_info_local, &ctx, 1); 144 ret = ctx.err; 169 struct apply_microcode_ctx *ctx = arg; local 171 ctx->err = microcode_ops->apply_microcode(smp_processor_id()); 176 struct apply_microcode_ctx ctx = { .err = 0 }; local 179 ret = smp_call_function_single(cpu, apply_microcode_local, &ctx, [all...] |
/arch/x86/mm/ |
H A D | kmmio.c | 215 struct kmmio_context *ctx; local 240 ctx = &get_cpu_var(kmmio_ctx); 241 if (ctx->active) { 242 if (addr == ctx->addr) { 262 pr_emerg("previous hit was at 0x%08lx.\n", ctx->addr); 267 ctx->active++; 269 ctx->fpage = faultpage; 270 ctx->probe = get_kmmio_probe(addr); 271 ctx->saved_flags = (regs->flags & (X86_EFLAGS_TF | X86_EFLAGS_IF)); 272 ctx 313 struct kmmio_context *ctx = &get_cpu_var(kmmio_ctx); local [all...] |
/arch/x86/net/ |
H A D | bpf_jit_comp.c | 190 int oldproglen, struct jit_context *ctx) 194 bool seen_ld_abs = ctx->seen_ld_abs | (oldproglen == 0); 432 jmp_offset = ctx->cleanup_addr - (addrs[i] - 11); 813 ctx->seen_ld_abs = seen_ld_abs = true; 858 jmp_offset = ctx->cleanup_addr - addrs[i]; 862 ctx->cleanup_addr = proglen; 914 struct jit_context ctx = {}; local 937 ctx.cleanup_addr = proglen; 940 proglen = do_jit(prog, addrs, image, oldproglen, &ctx); 189 do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, int oldproglen, struct jit_context *ctx) argument
|
/arch/arm/net/ |
H A D | bpf_jit_32.c | 115 static inline void _emit(int cond, u32 inst, struct jit_ctx *ctx) argument 120 if (ctx->target != NULL) 121 ctx->target[ctx->idx] = inst; 123 ctx->idx++; 129 static inline void emit(u32 inst, struct jit_ctx *ctx) argument 131 _emit(ARM_COND_AL, inst, ctx); 134 static u16 saved_regs(struct jit_ctx *ctx) argument 138 if ((ctx->skf->len > 1) || 139 (ctx 158 mem_words_used(struct jit_ctx *ctx) argument 185 build_prologue(struct jit_ctx *ctx) argument 192 emit(ARM_MOV_R(ARM_IP, ARM_SP), ctx); local 193 emit(ARM_PUSH(reg_set), ctx); local 197 emit(ARM_PUSH(reg_set), ctx); local 201 emit(ARM_MOV_R(r_skb, ARM_R0), ctx); local 205 emit(ARM_LDR_I(r_skb_data, r_skb, off), ctx); local 208 emit(ARM_LDR_I(r_skb_hl, r_skb, off), ctx); local 210 emit(ARM_LDR_I(r_scratch, r_skb, off), ctx); local 211 emit(ARM_SUB_R(r_skb_hl, r_skb_hl, r_scratch), ctx); local 223 emit(ARM_SUB_I(ARM_SP, ARM_SP, mem_words_used(ctx) * 4), ctx); local 226 build_epilogue(struct jit_ctx *ctx) argument 231 emit(ARM_ADD_I(ARM_SP, ARM_SP, mem_words_used(ctx) * 4), ctx); local 239 emit(ARM_LDM(ARM_SP, reg_set), ctx); local 244 emit(ARM_POP(reg_set), ctx); local 248 emit(ARM_BX(ARM_LR), ctx); local 265 imm_offset(u32 k, struct jit_ctx *ctx) argument 304 emit_mov_i_no8m(int rd, u32 val, struct jit_ctx *ctx) argument 307 emit(ARM_LDR_I(rd, ARM_PC, imm_offset(val, ctx)), ctx); local 315 emit_mov_i(int rd, u32 val, struct jit_ctx *ctx) argument 320 emit(ARM_MOV_I(rd, imm12), ctx); local 327 emit_load_be32(u8 cond, u8 r_res, u8 r_addr, struct jit_ctx *ctx) argument 339 emit_load_be16(u8 cond, u8 r_res, u8 r_addr, struct jit_ctx *ctx) argument 346 emit_swap16(u8 r_dst, u8 r_src, struct jit_ctx *ctx) argument 363 emit_load_be32(u8 cond, u8 r_res, u8 r_addr, struct jit_ctx *ctx) argument 371 emit_load_be16(u8 cond, u8 r_res, u8 r_addr, struct jit_ctx *ctx) argument 384 emit(ARM_REV16(r_dst, r_src), ctx); local 392 b_imm(unsigned tgt, struct jit_ctx *ctx) argument 418 emit_err_ret(u8 cond, struct jit_ctx *ctx) argument 423 emit(ARM_MOV_R(ARM_R0, ARM_R0), ctx); local 430 emit_blx_r(u8 tgt_reg, struct jit_ctx *ctx) argument 433 emit(ARM_MOV_R(ARM_LR, ARM_PC), ctx); local 436 emit(ARM_BX(tgt_reg), ctx); local 438 emit(ARM_MOV_R(ARM_PC, tgt_reg), ctx); local 444 emit_udiv(u8 rd, u8 rm, u8 rn, struct jit_ctx *ctx) argument 448 emit(ARM_UDIV(rd, rm, rn), ctx); local 453 emit(ARM_MOV_R(ARM_R0, rm), ctx); local 455 emit(ARM_MOV_R(ARM_R1, rn), ctx); local 462 emit(ARM_MOV_R(rd, ARM_R0), ctx); local 465 update_on_xread(struct jit_ctx *ctx) argument 473 build_body(struct jit_ctx *ctx) argument 502 offsetof(struct sk_buff, len)), ctx); local 507 emit(ARM_LDR_I(r_A, ARM_SP, SCRATCH_OFF(k)), ctx); local 528 emit(ARM_CMP_R(r_scratch, r_off), ctx); local 531 emit(ARM_CMP_R(r_skb_hl, r_off), ctx); local 550 emit(ARM_MOV_R(ARM_R0, r_skb), ctx); local 556 emit(ARM_MOV_R(r_A, ARM_R0), ctx); local 576 offsetof(struct sk_buff, len)), ctx); local 580 emit(ARM_LDR_I(r_X, ARM_SP, SCRATCH_OFF(k)), ctx); local 590 emit(ARM_CMP_R(r_skb_hl, r_off), ctx); local 601 emit(ARM_MOV_R(ARM_R0, r_skb), ctx); local 614 emit(ARM_STR_I(r_A, ARM_SP, SCRATCH_OFF(k)), ctx); local 619 emit(ARM_STR_I(r_X, ARM_SP, SCRATCH_OFF(k)), ctx); local 627 emit(ARM_ADD_R(r_A, r_A, r_X), ctx); local 635 emit(ARM_SUB_R(r_A, r_A, r_X), ctx); local 640 emit(ARM_MUL(r_A, r_A, r_scratch), ctx); local 644 emit(ARM_MUL(r_A, r_A, r_X), ctx); local 664 emit(ARM_ORR_R(r_A, r_A, r_X), ctx); local 674 emit(ARM_EOR_R(r_A, r_A, r_X), ctx); local 682 emit(ARM_AND_R(r_A, r_A, r_X), ctx); local 691 emit(ARM_LSL_R(r_A, r_A, r_X), ctx); local 700 emit(ARM_LSR_R(r_A, r_A, r_X), ctx); local 725 emit(ARM_CMP_R(r_A, r_scratch), ctx); local 727 emit(ARM_CMP_I(r_A, imm12), ctx); local 750 emit(ARM_CMP_R(r_A, r_X), ctx); local 760 emit(ARM_TST_R(r_A, r_scratch), ctx); local 762 emit(ARM_TST_I(r_A, imm12), ctx); local 769 emit(ARM_TST_R(r_A, r_X), ctx); local 772 emit(ARM_MOV_R(ARM_R0, r_A), ctx); local 785 emit(ARM_MOV_R(r_X, r_A), ctx); local 790 emit(ARM_MOV_R(r_A, r_X), ctx); local 798 emit(ARM_LDRH_I(r_scratch, r_skb, off), ctx); local 807 emit(ARM_LDR_I(r_A, r_scratch, off), ctx); local 813 emit(ARM_LDR_I(r_scratch, r_skb, off), ctx); local 821 emit(ARM_LDR_I(r_A, r_scratch, off), ctx); local 827 emit(ARM_LDR_I(r_A, r_skb, off), ctx); local 833 emit(ARM_LDR_I(r_A, r_skb, off), ctx); local 840 emit(ARM_LDRH_I(r_A, r_skb, off), ctx); local 853 emit(ARM_LDRH_I(r_A, r_skb, off), ctx); local 871 struct jit_ctx ctx; local [all...] |