/third_party/openssl/crypto/modes/ |
H A D | ccm128.c | 26 void CRYPTO_ccm128_init(CCM128_CONTEXT *ctx, in CRYPTO_ccm128_init() argument 30 memset(ctx->nonce.c, 0, sizeof(ctx->nonce.c)); in CRYPTO_ccm128_init() 31 ctx->nonce.c[0] = ((u8)(L - 1) & 7) | (u8)(((M - 2) / 2) & 7) << 3; in CRYPTO_ccm128_init() 32 ctx->blocks = 0; in CRYPTO_ccm128_init() 33 ctx->block = block; in CRYPTO_ccm128_init() 34 ctx->key = key; in CRYPTO_ccm128_init() 40 int CRYPTO_ccm128_setiv(CCM128_CONTEXT *ctx, in CRYPTO_ccm128_setiv() argument 43 unsigned int L = ctx->nonce.c[0] & 7; /* the L parameter */ in CRYPTO_ccm128_setiv() 49 ctx in CRYPTO_ccm128_setiv() 68 CRYPTO_ccm128_aad(CCM128_CONTEXT *ctx, const unsigned char *aad, size_t alen) CRYPTO_ccm128_aad() argument 137 CRYPTO_ccm128_encrypt(CCM128_CONTEXT *ctx, const unsigned char *inp, unsigned char *out, size_t len) CRYPTO_ccm128_encrypt() argument 221 CRYPTO_ccm128_decrypt(CCM128_CONTEXT *ctx, const unsigned char *inp, unsigned char *out, size_t len) CRYPTO_ccm128_decrypt() argument 310 CRYPTO_ccm128_encrypt_ccm64(CCM128_CONTEXT *ctx, const unsigned char *inp, unsigned char *out, size_t len, ccm128_f stream) CRYPTO_ccm128_encrypt_ccm64() argument 374 CRYPTO_ccm128_decrypt_ccm64(CCM128_CONTEXT *ctx, const unsigned char *inp, unsigned char *out, size_t len, ccm128_f stream) CRYPTO_ccm128_decrypt_ccm64() argument 432 CRYPTO_ccm128_tag(CCM128_CONTEXT *ctx, unsigned char *tag, size_t len) CRYPTO_ccm128_tag() argument [all...] |
/kernel/linux/linux-6.6/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 92 static inline void emit(const u32 insn, struct jit_ctx *ctx) in emit() argument 94 if (ctx->image != NULL) in emit() 95 ctx->image[ctx->idx] = cpu_to_le32(insn); in emit() 97 ctx->idx++; in emit() 101 const s32 val, struct jit_ctx *ctx) in emit_a64_mov_i() 108 emit(A64_MOVN(is64, reg, (u16)~lo, 0), ctx); in emit_a64_mov_i() local 110 emit(A64_MOVN(is64, reg, (u16)~hi, 16), ctx); in emit_a64_mov_i() local 112 emit(A64_MOVK(is64, reg, lo, 0), ctx); in emit_a64_mov_i() 115 emit(A64_MOVZ(is64, reg, lo, 0), ctx); in emit_a64_mov_i() 100 emit_a64_mov_i(const int is64, const int reg, const s32 val, struct jit_ctx *ctx) emit_a64_mov_i() argument 129 emit_a64_mov_i64(const int reg, const u64 val, struct jit_ctx *ctx) emit_a64_mov_i64() argument 154 emit_bti(u32 insn, struct jit_ctx *ctx) emit_bti() argument 165 emit_addr_mov_i64(const int reg, const u64 val, struct jit_ctx *ctx) emit_addr_mov_i64() argument 179 emit_call(u64 target, struct jit_ctx *ctx) emit_call() argument 184 emit(A64_BLR(tmp), ctx); emit_call() local 187 bpf2a64_offset(int bpf_insn, int off, const struct jit_ctx *ctx) bpf2a64_offset() argument 208 epilogue_offset(const struct jit_ctx *ctx) epilogue_offset() argument 288 build_prologue(struct jit_ctx *ctx, bool ebpf_from_cbpf) build_prologue() argument 341 emit(A64_PUSH(A64_FP, A64_LR, A64_SP), ctx); build_prologue() local 345 emit(A64_PUSH(r6, r7, A64_SP), ctx); build_prologue() local 346 emit(A64_PUSH(r8, r9, A64_SP), ctx); build_prologue() local 347 emit(A64_PUSH(fp, tcc, A64_SP), ctx); build_prologue() local 348 emit(A64_PUSH(fpb, A64_R(28), A64_SP), ctx); build_prologue() local 379 emit_bpf_tail_call(struct jit_ctx *ctx) emit_bpf_tail_call() argument 398 emit(A64_LDR32(tmp, r2, tmp), ctx); emit_bpf_tail_call() local 401 emit(A64_B_(A64_COND_CS, jmp_offset), ctx); emit_bpf_tail_call() local 410 emit(A64_B_(A64_COND_CS, jmp_offset), ctx); emit_bpf_tail_call() local 421 emit(A64_LDR64(prg, tmp, prg), ctx); emit_bpf_tail_call() local 427 emit(A64_LDR64(tmp, prg, tmp), ctx); emit_bpf_tail_call() local 430 emit(A64_BR(tmp), ctx); emit_bpf_tail_call() local 446 emit_lse_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx) emit_lse_atomic() argument 468 emit(A64_STADD(isdw, reg, src), ctx); emit_lse_atomic() local 471 emit(A64_MVN(isdw, tmp2, src), ctx); emit_lse_atomic() local 472 emit(A64_STCLR(isdw, reg, tmp2), ctx); emit_lse_atomic() local 475 emit(A64_STSET(isdw, reg, src), ctx); emit_lse_atomic() local 478 emit(A64_STEOR(isdw, reg, src), ctx); emit_lse_atomic() local 482 emit(A64_LDADDAL(isdw, src, reg, src), ctx); emit_lse_atomic() local 485 emit(A64_MVN(isdw, tmp2, src), ctx); emit_lse_atomic() local 486 emit(A64_LDCLRAL(isdw, src, reg, tmp2), ctx); emit_lse_atomic() local 489 emit(A64_LDSETAL(isdw, src, reg, src), ctx); emit_lse_atomic() local 492 emit(A64_LDEORAL(isdw, src, reg, src), ctx); emit_lse_atomic() local 496 emit(A64_SWPAL(isdw, src, reg, src), ctx); emit_lse_atomic() local 500 emit(A64_CASAL(isdw, src, reg, bpf2a64[BPF_REG_0]), ctx); emit_lse_atomic() local 510 emit_lse_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx) emit_lse_atomic() argument 516 emit_ll_sc_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx) emit_ll_sc_atomic() argument 542 emit(A64_LDXR(isdw, tmp2, reg), ctx); emit_ll_sc_atomic() local 544 emit(A64_ADD(isdw, tmp2, tmp2, src), ctx); emit_ll_sc_atomic() local 546 emit(A64_AND(isdw, tmp2, tmp2, src), ctx); emit_ll_sc_atomic() local 548 emit(A64_ORR(isdw, tmp2, tmp2, src), ctx); emit_ll_sc_atomic() local 550 emit(A64_EOR(isdw, tmp2, tmp2, src), ctx); emit_ll_sc_atomic() local 551 emit(A64_STXR(isdw, tmp2, reg, tmp3), ctx); emit_ll_sc_atomic() local 562 emit(A64_MOV(isdw, ax, src), ctx); emit_ll_sc_atomic() local 563 emit(A64_LDXR(isdw, src, reg), ctx); emit_ll_sc_atomic() local 565 emit(A64_ADD(isdw, tmp2, src, ax), ctx); emit_ll_sc_atomic() local 567 emit(A64_AND(isdw, tmp2, src, ax), ctx); emit_ll_sc_atomic() local 569 emit(A64_ORR(isdw, tmp2, src, ax), ctx); emit_ll_sc_atomic() local 571 emit(A64_EOR(isdw, tmp2, src, ax), ctx); emit_ll_sc_atomic() local 572 emit(A64_STLXR(isdw, tmp2, reg, tmp3), ctx); emit_ll_sc_atomic() local 579 emit(A64_MOV(isdw, tmp2, src), ctx); emit_ll_sc_atomic() local 580 emit(A64_LDXR(isdw, src, reg), ctx); emit_ll_sc_atomic() local 581 emit(A64_STLXR(isdw, tmp2, reg, tmp3), ctx); emit_ll_sc_atomic() local 590 emit(A64_MOV(isdw, tmp2, r0), ctx); emit_ll_sc_atomic() local 591 emit(A64_LDXR(isdw, r0, reg), ctx); emit_ll_sc_atomic() local 592 emit(A64_EOR(isdw, tmp3, r0, tmp2), ctx); emit_ll_sc_atomic() local 595 emit(A64_CBNZ(isdw, tmp3, jmp_offset), ctx); emit_ll_sc_atomic() local 596 emit(A64_STLXR(isdw, src, reg, tmp3), ctx); emit_ll_sc_atomic() local 638 build_plt(struct jit_ctx *ctx) build_plt() argument 650 emit(A64_BR(tmp), ctx); build_plt() local 656 build_epilogue(struct jit_ctx *ctx) build_epilogue() argument 670 emit(A64_POP(fpb, A64_R(28), A64_SP), ctx); build_epilogue() local 672 emit(A64_POP(fp, A64_R(26), A64_SP), ctx); build_epilogue() local 675 emit(A64_POP(r8, r9, A64_SP), ctx); build_epilogue() local 676 emit(A64_POP(r6, r7, A64_SP), ctx); build_epilogue() local 679 emit(A64_POP(A64_FP, A64_LR, A64_SP), ctx); build_epilogue() local 688 emit(A64_RET(A64_LR), ctx); build_epilogue() local 706 add_exception_handler(const struct bpf_insn *insn, struct jit_ctx *ctx, int dst_reg) add_exception_handler() argument 761 build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx, bool extra_pass) build_insn() argument 791 emit(A64_MOV(is64, dst, src), ctx); build_insn() local 794 emit(A64_SXTB(is64, dst, src), ctx); build_insn() local 797 emit(A64_SXTH(is64, dst, src), ctx); build_insn() local 800 emit(A64_SXTW(is64, dst, src), ctx); build_insn() local 807 emit(A64_ADD(is64, dst, dst, src), ctx); build_insn() local 811 emit(A64_SUB(is64, dst, dst, src), ctx); build_insn() local 815 emit(A64_AND(is64, dst, dst, src), ctx); build_insn() local 819 emit(A64_ORR(is64, dst, dst, src), ctx); build_insn() local 823 emit(A64_EOR(is64, dst, dst, src), ctx); build_insn() local 827 emit(A64_MUL(is64, dst, dst, src), ctx); build_insn() local 832 emit(A64_UDIV(is64, dst, dst, src), ctx); build_insn() local 834 emit(A64_SDIV(is64, dst, dst, src), ctx); build_insn() local 839 emit(A64_UDIV(is64, tmp, dst, src), ctx); build_insn() local 841 emit(A64_SDIV(is64, tmp, dst, src), ctx); build_insn() local 842 emit(A64_MSUB(is64, dst, dst, tmp, src), ctx); build_insn() local 846 emit(A64_LSLV(is64, dst, dst, src), ctx); build_insn() local 850 emit(A64_LSRV(is64, dst, dst, src), ctx); build_insn() local 854 emit(A64_ASRV(is64, dst, dst, src), ctx); build_insn() local 859 emit(A64_NEG(is64, dst, dst), ctx); build_insn() local 874 emit(A64_REV16(is64, dst, dst), ctx); build_insn() local 876 emit(A64_UXTH(is64, dst, dst), ctx); build_insn() local 879 emit(A64_REV32(is64, dst, dst), ctx); build_insn() local 883 emit(A64_REV64(dst, dst), ctx); build_insn() local 891 emit(A64_UXTH(is64, dst, dst), ctx); build_insn() local 895 emit(A64_UXTW(is64, dst, dst), ctx); build_insn() local 911 emit(A64_ADD_I(is64, dst, dst, imm), ctx); build_insn() local 916 emit(A64_ADD(is64, dst, dst, tmp), ctx); build_insn() local 922 emit(A64_SUB_I(is64, dst, dst, imm), ctx); build_insn() local 927 emit(A64_SUB(is64, dst, dst, tmp), ctx); build_insn() local 937 emit(A64_AND(is64, dst, dst, tmp), ctx); build_insn() local 947 emit(A64_ORR(is64, dst, dst, tmp), ctx); build_insn() local 957 emit(A64_EOR(is64, dst, dst, tmp), ctx); build_insn() local 963 emit(A64_MUL(is64, dst, dst, tmp), ctx); build_insn() local 969 emit(A64_UDIV(is64, dst, dst, tmp), ctx); build_insn() local 971 emit(A64_SDIV(is64, dst, dst, tmp), ctx); build_insn() local 977 emit(A64_UDIV(is64, tmp, dst, tmp2), ctx); build_insn() local 979 emit(A64_SDIV(is64, tmp, dst, tmp2), ctx); build_insn() local 980 emit(A64_MSUB(is64, dst, dst, tmp, tmp2), ctx); build_insn() local 984 emit(A64_LSL(is64, dst, dst, imm), ctx); build_insn() local 988 emit(A64_LSR(is64, dst, dst, imm), ctx); build_insn() local 992 emit(A64_ASR(is64, dst, dst, imm), ctx); build_insn() local 1003 emit(A64_B(jmp_offset), ctx); build_insn() local 1026 emit(A64_CMP(is64, dst, src), ctx); build_insn() local 1065 emit(A64_B_(jmp_cond, jmp_offset), ctx); build_insn() local 1069 emit(A64_TST(is64, dst, src), ctx); build_insn() local 1093 emit(A64_CMP_I(is64, dst, imm), ctx); build_insn() local 1098 emit(A64_CMP(is64, dst, tmp), ctx); build_insn() local 1108 emit(A64_TST(is64, dst, tmp), ctx); build_insn() local 1139 emit(A64_B(jmp_offset), ctx); build_insn() local 1186 emit(A64_LDRSWI(dst, src_adj, off_adj), ctx); build_insn() local 1188 emit(A64_LDR32I(dst, src_adj, off_adj), ctx); build_insn() local 1192 emit(A64_LDRSW(dst, src_adj, off_adj), ctx); build_insn() local 1194 emit(A64_LDR32(dst, src, tmp), ctx); build_insn() local 1200 emit(A64_LDRSHI(dst, src_adj, off_adj), ctx); build_insn() local 1202 emit(A64_LDRHI(dst, src_adj, off_adj), ctx); build_insn() local 1206 emit(A64_LDRSH(dst, src, tmp), ctx); build_insn() local 1208 emit(A64_LDRH(dst, src, tmp), ctx); build_insn() local 1214 emit(A64_LDRSBI(dst, src_adj, off_adj), ctx); build_insn() local 1216 emit(A64_LDRBI(dst, src_adj, off_adj), ctx); build_insn() local 1220 emit(A64_LDRSB(dst, src, tmp), ctx); build_insn() local 1222 emit(A64_LDRB(dst, src, tmp), ctx); build_insn() local 1227 emit(A64_LDR64I(dst, src_adj, off_adj), ctx); build_insn() local 1230 emit(A64_LDR64(dst, src, tmp), ctx); build_insn() local 1270 emit(A64_STR32I(tmp, dst_adj, off_adj), ctx); build_insn() local 1273 emit(A64_STR32(tmp, dst, tmp2), ctx); build_insn() local 1278 emit(A64_STRHI(tmp, dst_adj, off_adj), ctx); build_insn() local 1281 emit(A64_STRH(tmp, dst, tmp2), ctx); build_insn() local 1286 emit(A64_STRBI(tmp, dst_adj, off_adj), ctx); build_insn() local 1289 emit(A64_STRB(tmp, dst, tmp2), ctx); build_insn() local 1294 emit(A64_STR64I(tmp, dst_adj, off_adj), ctx); build_insn() local 1297 emit(A64_STR64(tmp, dst, tmp2), ctx); build_insn() local 1318 emit(A64_STR32I(src, dst_adj, off_adj), ctx); build_insn() local 1321 emit(A64_STR32(src, dst, tmp), ctx); build_insn() local 1326 emit(A64_STRHI(src, dst_adj, off_adj), ctx); build_insn() local 1329 emit(A64_STRH(src, dst, tmp), ctx); build_insn() local 1334 emit(A64_STRBI(src, dst_adj, off_adj), ctx); build_insn() local 1337 emit(A64_STRB(src, dst, tmp), ctx); build_insn() local 1342 emit(A64_STR64I(src, dst_adj, off_adj), ctx); build_insn() local 1345 emit(A64_STR64(src, dst, tmp), ctx); build_insn() local 1442 build_body(struct jit_ctx *ctx, bool extra_pass) build_body() argument 1483 validate_code(struct jit_ctx *ctx) validate_code() argument 1496 validate_ctx(struct jit_ctx *ctx) validate_ctx() argument 1515 struct jit_ctx ctx; global() member 1527 struct jit_ctx ctx; bpf_int_jit_compile() local 1707 invoke_bpf_prog(struct jit_ctx *ctx, struct bpf_tramp_link *l, int args_off, int retval_off, int run_ctx_off, bool save_ret) invoke_bpf_prog() argument 1724 emit_a64_mov_i64(A64_R(10), l->cookie, ctx); invoke_bpf_prog() local 1726 ctx); invoke_bpf_prog() local 1732 emit_addr_mov_i64(A64_R(19), (const u64)p, ctx); invoke_bpf_prog() local 1752 emit_addr_mov_i64(A64_R(1), (const u64)p->insnsi, ctx); invoke_bpf_prog() local 1774 invoke_bpf_mod_ret(struct jit_ctx *ctx, struct bpf_tramp_links *tl, int args_off, int retval_off, int run_ctx_off, __le32 **branches) invoke_bpf_mod_ret() argument 1783 emit(A64_STR64I(A64_ZR, A64_SP, retval_off), ctx); invoke_bpf_mod_ret() local 1799 save_args(struct jit_ctx *ctx, int args_off, int nregs) save_args() argument 1804 emit(A64_STR64I(i, A64_SP, args_off), ctx); save_args() local 1809 restore_args(struct jit_ctx *ctx, int args_off, int nregs) restore_args() argument 1814 emit(A64_LDR64I(i, A64_SP, args_off), ctx); restore_args() local 1830 prepare_trampoline(struct jit_ctx *ctx, struct bpf_tramp_image *im, struct bpf_tramp_links *tlinks, void *orig_call, int nregs, u32 flags) prepare_trampoline() argument 1917 emit(A64_PUSH(A64_FP, A64_R(9), A64_SP), ctx); prepare_trampoline() local 1921 emit(A64_PUSH(A64_FP, A64_LR, A64_SP), ctx); prepare_trampoline() local 1929 emit_addr_mov_i64(A64_R(10), (const u64)orig_call, ctx); prepare_trampoline() local 1945 emit_addr_mov_i64(A64_R(0), (const u64)im, ctx); prepare_trampoline() local 1968 emit(A64_ADR(A64_LR, AARCH64_INSN_SIZE * 2), ctx); prepare_trampoline() local 1989 emit_addr_mov_i64(A64_R(0), (const u64)im, ctx); prepare_trampoline() local 2007 emit(A64_POP(A64_FP, A64_LR, A64_SP), ctx); prepare_trampoline() local 2008 emit(A64_POP(A64_FP, A64_R(9), A64_SP), ctx); prepare_trampoline() local 2037 struct jit_ctx ctx = { arch_prepare_bpf_trampoline() local [all...] |
/third_party/libwebsockets/lib/tls/openssl/ |
H A D | lws-genrsa.c | 45 rsa_pkey_wrap(struct lws_genrsa_ctx *ctx, RSA *rsa) in rsa_pkey_wrap() argument 64 ctx->ctx = EVP_PKEY_CTX_new(pkey, NULL); in rsa_pkey_wrap() 67 if (!ctx->ctx) in rsa_pkey_wrap() 80 lws_genrsa_create(struct lws_genrsa_ctx *ctx, in lws_genrsa_create() argument 87 memset(ctx, 0, sizeof(*ctx)); in lws_genrsa_create() 88 ctx->context = context; in lws_genrsa_create() 89 ctx in lws_genrsa_create() 151 lws_genrsa_new_keypair(struct lws_context *context, struct lws_genrsa_ctx *ctx, enum enum_genrsa_mode mode, struct lws_gencrypto_keyelem *el, int bits) global() argument 225 lws_genrsa_public_encrypt(struct lws_genrsa_ctx *ctx, const uint8_t *in, size_t in_len, uint8_t *out) global() argument 240 lws_genrsa_private_encrypt(struct lws_genrsa_ctx *ctx, const uint8_t *in, size_t in_len, uint8_t *out) global() argument 255 lws_genrsa_public_decrypt(struct lws_genrsa_ctx *ctx, const uint8_t *in, size_t in_len, uint8_t *out, size_t out_max) global() argument 269 lws_genrsa_private_decrypt(struct lws_genrsa_ctx *ctx, const uint8_t *in, size_t in_len, uint8_t *out, size_t out_max) global() argument 284 lws_genrsa_hash_sig_verify(struct lws_genrsa_ctx *ctx, const uint8_t *in, enum lws_genhash_types hash_type, const uint8_t *sig, size_t sig_len) global() argument 328 lws_genrsa_hash_sign(struct lws_genrsa_ctx *ctx, const uint8_t *in, enum lws_genhash_types hash_type, uint8_t *sig, size_t sig_len) global() argument 405 lws_genrsa_destroy(struct lws_genrsa_ctx *ctx) global() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | dxva2_internal.h | 94 AVDXVAContext ctx; member 99 #define DXVA_CONTEXT(avctx) (AVDXVAContext *)((avctx)->hwaccel_context ? (avctx)->hwaccel_context : (&(DXVA_SHARED_CONTEXT(avctx)->ctx))) 101 #define D3D11VA_CONTEXT(ctx) (&ctx->d3d11va) 102 #define DXVA2_CONTEXT(ctx) (&ctx->dxva2) 105 #define DXVA_CONTEXT_WORKAROUND(avctx, ctx) (ff_dxva2_is_d3d11(avctx) ? ctx->d3d11va.workaround : ctx->dxva2.workaround) 106 #define DXVA_CONTEXT_COUNT(avctx, ctx) (ff_dxva2_is_d3d1 [all...] |
H A D | vaapi_encode.c | 45 VAAPIEncodeContext *ctx = avctx->priv_data; in vaapi_encode_make_packed_header() local 60 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in vaapi_encode_make_packed_header() 71 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in vaapi_encode_make_packed_header() 91 VAAPIEncodeContext *ctx = avctx->priv_data; in vaapi_encode_make_param_buffer() local 101 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in vaapi_encode_make_param_buffer() 141 VAAPIEncodeContext *ctx = avctx->priv_data; in vaapi_encode_wait() local 156 if (ctx in vaapi_encode_wait() 186 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_make_row_slice() local 241 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_make_tile_slice() local 268 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_issue() local 656 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_output() local 741 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_alloc() local 861 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_set_b_pictures() local 921 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_pick_next() local 1056 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_clear_old() local 1095 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_check_frame() local 1120 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_send_frame() local 1187 VAAPIEncodeContext *ctx = avctx->priv_data; ff_vaapi_encode_receive_packet() local 1283 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_add_global_param() local 1334 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_profile_entrypoint() local 1555 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_init_rate_control() local 1886 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_init_max_frame_size() local 1942 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_init_gop_structure() local 2064 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_init_row_slice_structure() local 2109 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_init_tile_slice_structure() local 2169 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_init_slice_structure() local 2260 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_init_packed_headers() local 2321 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_init_quality() local 2368 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_init_roi() local 2402 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_free_output_buffer() local 2416 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_alloc_output_buffer() local 2451 VAAPIEncodeContext *ctx = avctx->priv_data; vaapi_encode_create_recon_frames() local 2539 VAAPIEncodeContext *ctx = avctx->priv_data; ff_vaapi_encode_init() local 2741 VAAPIEncodeContext *ctx = avctx->priv_data; ff_vaapi_encode_close() local [all...] |
H A D | sanm.c | 438 static void init_sizes(SANMVideoContext *ctx, int width, int height) in init_sizes() argument 440 ctx->width = width; in init_sizes() 441 ctx->height = height; in init_sizes() 442 ctx->npixels = width * height; in init_sizes() 444 ctx->aligned_width = FFALIGN(width, 8); in init_sizes() 445 ctx->aligned_height = FFALIGN(height, 8); in init_sizes() 447 ctx->buf_size = ctx->aligned_width * ctx->aligned_height * sizeof(ctx in init_sizes() 451 destroy_buffers(SANMVideoContext *ctx) destroy_buffers() argument 464 init_buffers(SANMVideoContext *ctx) init_buffers() argument 482 rotate_bufs(SANMVideoContext *ctx, int rotate_code) rotate_bufs() argument 491 SANMVideoContext *ctx = avctx->priv_data; decode_init() local 525 SANMVideoContext *ctx = avctx->priv_data; decode_end() local 532 rle_decode(SANMVideoContext *ctx, uint8_t *dst, const int out_size) rle_decode() argument 558 old_codec1(SANMVideoContext *ctx, int top, int left, int width, int height) old_codec1() argument 624 old_codec37(SANMVideoContext *ctx, int top, int left, int width, int height) old_codec37() argument 770 process_block(SANMVideoContext *ctx, uint8_t *dst, uint8_t *prev1, uint8_t *prev2, int stride, int tbl, int size) process_block() argument 860 old_codec47(SANMVideoContext *ctx, int top, int left, int width, int height) old_codec47() argument 951 process_frame_obj(SANMVideoContext *ctx) process_frame_obj() argument 992 decode_0(SANMVideoContext *ctx) decode_0() argument 1009 decode_nop(SANMVideoContext *ctx) decode_nop() argument 1044 draw_glyph(SANMVideoContext *ctx, uint16_t *dst, int index, uint16_t fg_color, uint16_t bg_color, int block_size, ptrdiff_t pitch) draw_glyph() argument 1066 opcode_0xf7(SANMVideoContext *ctx, int cx, int cy, int block_size, ptrdiff_t pitch) opcode_0xf7() argument 1100 opcode_0xf8(SANMVideoContext *ctx, int cx, int cy, int block_size, ptrdiff_t pitch) opcode_0xf8() argument 1128 good_mvec(SANMVideoContext *ctx, int cx, int cy, int mx, int my, int block_size) good_mvec() argument 1144 codec2subblock(SANMVideoContext *ctx, int cx, int cy, int blk_size) codec2subblock() argument 1229 decode_2(SANMVideoContext *ctx) decode_2() argument 1241 decode_3(SANMVideoContext *ctx) decode_3() argument 1247 decode_4(SANMVideoContext *ctx) decode_4() argument 1253 decode_5(SANMVideoContext *ctx) decode_5() argument 1276 decode_6(SANMVideoContext *ctx) decode_6() argument 1291 decode_8(SANMVideoContext *ctx) decode_8() argument 1320 read_frame_header(SANMVideoContext *ctx, SANMFrameHeader *hdr) read_frame_header() argument 1368 copy_output(SANMVideoContext *ctx, SANMFrameHeader *hdr) copy_output() argument 1393 SANMVideoContext *ctx = avctx->priv_data; decode_frame() local [all...] |
H A D | nvenc.c | 147 NvencContext *ctx = avctx->priv_data; in nvenc_print_error() local 148 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &ctx->nvenc_dload_funcs.nvenc_funcs; in nvenc_print_error() 150 if (p_nvenc && ctx->nvencoder) in nvenc_print_error() 151 details = p_nvenc->nvEncGetLastErrorString(ctx->nvencoder); in nvenc_print_error() 169 static void nvenc_map_preset(NvencContext *ctx) in nvenc_map_preset() argument 209 GUIDTuple *t = &presets[ctx->preset]; in nvenc_map_preset() 211 ctx->init_encode_params.presetGUID = t->guid; in nvenc_map_preset() 212 ctx->flags = t->flags; in nvenc_map_preset() 215 if (ctx->tuning_info == NV_ENC_TUNING_INFO_LOSSLESS) in nvenc_map_preset() 216 ctx in nvenc_map_preset() 281 NvencContext *ctx = avctx->priv_data; nvenc_load_libraries() local 325 NvencContext *ctx = avctx->priv_data; nvenc_push_context() local 336 NvencContext *ctx = avctx->priv_data; nvenc_pop_context() local 349 NvencContext *ctx = avctx->priv_data; nvenc_open_session() local 374 NvencContext *ctx = avctx->priv_data; nvenc_check_codec_support() local 410 NvencContext *ctx = avctx->priv_data; nvenc_check_cap() local 427 NvencContext *ctx = avctx->priv_data; nvenc_check_capabilities() local 576 NvencContext *ctx = avctx->priv_data; nvenc_check_device() local 651 NvencContext *ctx = avctx->priv_data; nvenc_setup_device() local 762 NvencContext *ctx = avctx->priv_data; set_constqp() local 795 NvencContext *ctx = avctx->priv_data; set_vbr() local 857 NvencContext *ctx = avctx->priv_data; set_lossless() local 871 NvencContext *ctx = avctx->priv_data; nvenc_override_rate_control() local 902 NvencContext *ctx = avctx->priv_data; nvenc_recalc_surfaces() local 941 NvencContext *ctx = avctx->priv_data; nvenc_setup_rate_control() local 1095 NvencContext *ctx = avctx->priv_data; nvenc_setup_h264_config() local 1207 NvencContext *ctx = avctx->priv_data; nvenc_setup_hevc_config() local 1340 NvencContext *ctx = avctx->priv_data; nvenc_setup_encoder() local 1534 NvencContext *ctx = avctx->priv_data; nvenc_alloc_surface() local 1590 NvencContext *ctx = avctx->priv_data; nvenc_setup_surfaces() local 1631 NvencContext *ctx = avctx->priv_data; nvenc_setup_extradata() local 1664 NvencContext *ctx = avctx->priv_data; ff_nvenc_encode_close() local 1743 NvencContext *ctx = avctx->priv_data; ff_nvenc_encode_init() local 1788 get_free_frame(NvencContext *ctx) get_free_frame() argument 1831 NvencContext *ctx = avctx->priv_data; nvenc_find_free_reg_resource() local 1865 NvencContext *ctx = avctx->priv_data; nvenc_register_frame() local 1920 NvencContext *ctx = avctx->priv_data; nvenc_upload_frame() local 1984 NvencContext *ctx = avctx->priv_data; nvenc_codec_specific_pic_params() local 2030 NvencContext *ctx = avctx->priv_data; nvenc_set_timestamp() local 2042 NvencContext *ctx = avctx->priv_data; process_output_surface() local 2163 NvencContext *ctx = avctx->priv_data; output_ready() local 2175 NvencContext *ctx = avctx->priv_data; prepare_sei_data_array() local 2273 NvencContext *ctx = avctx->priv_data; reconfig_encoder() local 2371 NvencContext *ctx = avctx->priv_data; nvenc_send_frame() local 2474 NvencContext *ctx = avctx->priv_data; ff_nvenc_receive_packet() local 2522 NvencContext *ctx = avctx->priv_data; ff_nvenc_encode_flush() local [all...] |
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_shader_llvm.c | 128 void si_llvm_context_init(struct si_shader_context *ctx, struct si_screen *sscreen, in si_llvm_context_init() argument 131 memset(ctx, 0, sizeof(*ctx)); in si_llvm_context_init() 132 ctx->screen = sscreen; in si_llvm_context_init() 133 ctx->compiler = compiler; in si_llvm_context_init() 135 ac_llvm_context_init(&ctx->ac, compiler, sscreen->info.gfx_level, sscreen->info.family, in si_llvm_context_init() 139 void si_llvm_create_func(struct si_shader_context *ctx, const char *name, LLVMTypeRef *return_types, in si_llvm_create_func() argument 146 ret_type = LLVMStructTypeInContext(ctx->ac.context, return_types, num_return_elems, true); in si_llvm_create_func() 148 ret_type = ctx->ac.voidt; in si_llvm_create_func() 150 gl_shader_stage real_stage = ctx in si_llvm_create_func() 199 si_llvm_create_main_func(struct si_shader_context *ctx, bool ngg_cull_shader) si_llvm_create_main_func() argument 255 si_llvm_optimize_module(struct si_shader_context *ctx) si_llvm_optimize_module() argument 266 si_llvm_dispose(struct si_shader_context *ctx) si_llvm_dispose() argument 276 si_buffer_load_const(struct si_shader_context *ctx, LLVMValueRef resource, LLVMValueRef offset) si_buffer_load_const() argument 283 si_llvm_build_ret(struct si_shader_context *ctx, LLVMValueRef ret) si_llvm_build_ret() argument 291 si_insert_input_ret(struct si_shader_context *ctx, LLVMValueRef ret, struct ac_arg param, unsigned return_index) si_insert_input_ret() argument 297 si_insert_input_ret_float(struct si_shader_context *ctx, LLVMValueRef ret, struct ac_arg param, unsigned return_index) si_insert_input_ret_float() argument 306 si_insert_input_ptr(struct si_shader_context *ctx, LLVMValueRef ret, struct ac_arg param, unsigned return_index) si_insert_input_ptr() argument 315 si_prolog_get_internal_bindings(struct si_shader_context *ctx) si_prolog_get_internal_bindings() argument 331 si_llvm_declare_esgs_ring(struct si_shader_context *ctx) si_llvm_declare_esgs_ring() argument 344 si_init_exec_from_input(struct si_shader_context *ctx, struct ac_arg param, unsigned bitoffset) si_init_exec_from_input() argument 358 unpack_llvm_param(struct si_shader_context *ctx, LLVMValueRef value, unsigned rshift, unsigned bitwidth) unpack_llvm_param() argument 375 si_unpack_param(struct si_shader_context *ctx, struct ac_arg param, unsigned rshift, unsigned bitwidth) si_unpack_param() argument 383 si_get_primitive_id(struct si_shader_context *ctx, unsigned swizzle) si_get_primitive_id() argument 403 si_llvm_declare_compute_memory(struct si_shader_context *ctx) si_llvm_declare_compute_memory() argument 424 si_build_wrapper_function(struct si_shader_context *ctx, LLVMValueRef *parts, unsigned num_parts, unsigned main_part, unsigned next_shader_first_part, bool same_thread_count) si_build_wrapper_function() argument 720 struct si_shader_context *ctx = si_shader_context_from_abi(abi); si_llvm_load_intrinsic() local 804 si_llvm_translate_nir(struct si_shader_context *ctx, struct si_shader *shader, struct nir_shader *nir, bool free_nir, bool ngg_cull_shader) si_llvm_translate_nir() argument 1145 struct si_shader_context ctx; si_llvm_compile_shader() local [all...] |
H A D | si_shader_llvm_vs.c | 31 static LLVMValueRef unpack_sint16(struct si_shader_context *ctx, LLVMValueRef i32, unsigned index) in unpack_sint16() argument 36 return LLVMBuildAShr(ctx->ac.builder, i32, LLVMConstInt(ctx->ac.i32, 16, 0), ""); in unpack_sint16() 38 return LLVMBuildSExt(ctx->ac.builder, LLVMBuildTrunc(ctx->ac.builder, i32, ctx->ac.i16, ""), in unpack_sint16() 39 ctx->ac.i32, ""); in unpack_sint16() 42 static void load_input_vs(struct si_shader_context *ctx, unsigned input_index, LLVMValueRef out[4]) in load_input_vs() argument 44 const struct si_shader_info *info = &ctx->shader->selector->info; in load_input_vs() 48 LLVMValueRef vertex_id = ctx in load_input_vs() 260 struct si_shader_context *ctx = si_shader_context_from_abi(abi); si_load_vs_input() local 271 si_llvm_streamout_store_output(struct si_shader_context *ctx, LLVMValueRef const *so_buffers, LLVMValueRef const *so_write_offsets, struct pipe_stream_output *stream_out, struct si_shader_output_values *shader_out) si_llvm_streamout_store_output() argument 316 si_llvm_emit_streamout(struct si_shader_context *ctx, struct si_shader_output_values *outputs, unsigned noutput, unsigned stream) si_llvm_emit_streamout() argument 385 si_llvm_clipvertex_to_clipdist(struct si_shader_context *ctx, struct ac_export_args clipdist[2], LLVMValueRef clipvertex[4]) si_llvm_clipvertex_to_clipdist() argument 430 si_llvm_init_vs_export_args(struct si_shader_context *ctx, const LLVMValueRef *values, unsigned target, struct ac_export_args *args) si_llvm_init_vs_export_args() argument 449 si_vertex_color_clamping(struct si_shader_context *ctx, struct si_shader_output_values *outputs, unsigned noutput) si_vertex_color_clamping() argument 513 si_llvm_build_vs_exports(struct si_shader_context *ctx, LLVMValueRef num_export_threads, struct si_shader_output_values *outputs, unsigned noutput) si_llvm_build_vs_exports() argument 813 si_llvm_vs_build_end(struct si_shader_context *ctx) si_llvm_vs_build_end() argument 867 si_llvm_build_vs_prolog(struct si_shader_context *ctx, union si_shader_part_key *key) si_llvm_build_vs_prolog() argument 1020 si_llvm_init_vs_callbacks(struct si_shader_context *ctx, bool ngg_cull_shader) si_llvm_init_vs_callbacks() argument [all...] |
/kernel/linux/linux-5.10/lib/mpi/ |
H A D | ec.c | 88 static void point_resize(MPI_POINT p, struct mpi_ec_ctx *ctx) in point_resize() argument 90 size_t nlimbs = ctx->p->nlimbs; in point_resize() 97 if (ctx->model != MPI_EC_MONTGOMERY) { in point_resize() 104 struct mpi_ec_ctx *ctx) in point_swap_cond() 107 if (ctx->model != MPI_EC_MONTGOMERY) in point_swap_cond() 122 static void ec_addm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_addm() argument 125 ec_mod(w, ctx); in ec_addm() 136 static void ec_mulm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_mulm() argument 139 ec_mod(w, ctx); in ec_mulm() 143 static void ec_mul2(MPI w, MPI u, struct mpi_ec_ctx *ctx) in ec_mul2() argument 103 point_swap_cond(MPI_POINT d, MPI_POINT s, unsigned long swap, struct mpi_ec_ctx *ctx) point_swap_cond() argument 149 ec_powm(MPI w, const MPI b, const MPI e, struct mpi_ec_ctx *ctx) ec_powm() argument 160 ec_pow2(MPI w, const MPI b, struct mpi_ec_ctx *ctx) ec_pow2() argument 171 ec_pow3(MPI w, const MPI b, struct mpi_ec_ctx *ctx) ec_pow3() argument 176 ec_invm(MPI x, MPI a, struct mpi_ec_ctx *ctx) ec_invm() argument 199 ec_addm_25519(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) ec_addm_25519() argument 221 ec_subm_25519(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) ec_subm_25519() argument 242 ec_mulm_25519(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) ec_mulm_25519() argument 291 ec_mul2_25519(MPI w, MPI u, struct mpi_ec_ctx *ctx) ec_mul2_25519() argument 296 ec_pow2_25519(MPI w, const MPI b, struct mpi_ec_ctx *ctx) ec_pow2_25519() argument 306 ec_addm_448(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) ec_addm_448() argument 326 ec_subm_448(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) ec_subm_448() argument 346 ec_mulm_448(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) ec_mulm_448() argument 443 ec_mul2_448(MPI w, MPI u, struct mpi_ec_ctx *ctx) ec_mul2_448() argument 448 ec_pow2_448(MPI w, const MPI b, struct mpi_ec_ctx *ctx) ec_pow2_448() argument 564 mpi_ec_init(struct mpi_ec_ctx *ctx, enum gcry_mpi_ec_models model, enum ecc_dialects dialect, int flags, MPI p, MPI a, MPI b) mpi_ec_init() argument 651 mpi_ec_deinit(struct mpi_ec_ctx *ctx) mpi_ec_deinit() argument 681 mpi_ec_get_affine(MPI x, MPI y, MPI_POINT point, struct mpi_ec_ctx *ctx) mpi_ec_get_affine() argument 756 dup_point_weierstrass(MPI_POINT result, MPI_POINT point, struct mpi_ec_ctx *ctx) dup_point_weierstrass() argument 834 dup_point_montgomery(MPI_POINT result, MPI_POINT point, struct mpi_ec_ctx *ctx) dup_point_montgomery() argument 845 dup_point_edwards(MPI_POINT result, MPI_POINT point, struct mpi_ec_ctx *ctx) dup_point_edwards() argument 918 mpi_ec_dup_point(MPI_POINT result, MPI_POINT point, struct mpi_ec_ctx *ctx) mpi_ec_dup_point() argument 934 add_points_weierstrass(MPI_POINT result, MPI_POINT p1, MPI_POINT p2, struct mpi_ec_ctx *ctx) add_points_weierstrass() argument 1059 add_points_montgomery(MPI_POINT result, MPI_POINT p1, MPI_POINT p2, struct mpi_ec_ctx *ctx) add_points_montgomery() argument 1072 add_points_edwards(MPI_POINT result, MPI_POINT p1, MPI_POINT p2, struct mpi_ec_ctx *ctx) add_points_edwards() argument 1166 montgomery_ladder(MPI_POINT prd, MPI_POINT sum, MPI_POINT p1, MPI_POINT p2, MPI dif_x, struct mpi_ec_ctx *ctx) montgomery_ladder() argument 1191 mpi_ec_add_points(MPI_POINT result, MPI_POINT p1, MPI_POINT p2, struct mpi_ec_ctx *ctx) mpi_ec_add_points() argument 1213 mpi_ec_mul_point(MPI_POINT result, MPI scalar, MPI_POINT point, struct mpi_ec_ctx *ctx) mpi_ec_mul_point() argument 1404 mpi_ec_curve_point(MPI_POINT point, struct mpi_ec_ctx *ctx) mpi_ec_curve_point() argument [all...] |
/kernel/linux/linux-6.6/lib/crypto/mpi/ |
H A D | ec.c | 88 static void point_resize(MPI_POINT p, struct mpi_ec_ctx *ctx) in point_resize() argument 90 size_t nlimbs = ctx->p->nlimbs; in point_resize() 97 if (ctx->model != MPI_EC_MONTGOMERY) { in point_resize() 104 struct mpi_ec_ctx *ctx) in point_swap_cond() 107 if (ctx->model != MPI_EC_MONTGOMERY) in point_swap_cond() 122 static void ec_addm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_addm() argument 125 ec_mod(w, ctx); in ec_addm() 136 static void ec_mulm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_mulm() argument 139 ec_mod(w, ctx); in ec_mulm() 143 static void ec_mul2(MPI w, MPI u, struct mpi_ec_ctx *ctx) in ec_mul2() argument 103 point_swap_cond(MPI_POINT d, MPI_POINT s, unsigned long swap, struct mpi_ec_ctx *ctx) point_swap_cond() argument 149 ec_powm(MPI w, const MPI b, const MPI e, struct mpi_ec_ctx *ctx) ec_powm() argument 160 ec_pow2(MPI w, const MPI b, struct mpi_ec_ctx *ctx) ec_pow2() argument 171 ec_pow3(MPI w, const MPI b, struct mpi_ec_ctx *ctx) ec_pow3() argument 176 ec_invm(MPI x, MPI a, struct mpi_ec_ctx *ctx) ec_invm() argument 199 ec_addm_25519(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) ec_addm_25519() argument 221 ec_subm_25519(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) ec_subm_25519() argument 242 ec_mulm_25519(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) ec_mulm_25519() argument 291 ec_mul2_25519(MPI w, MPI u, struct mpi_ec_ctx *ctx) ec_mul2_25519() argument 296 ec_pow2_25519(MPI w, const MPI b, struct mpi_ec_ctx *ctx) ec_pow2_25519() argument 306 ec_addm_448(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) ec_addm_448() argument 326 ec_subm_448(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) ec_subm_448() argument 346 ec_mulm_448(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) ec_mulm_448() argument 443 ec_mul2_448(MPI w, MPI u, struct mpi_ec_ctx *ctx) ec_mul2_448() argument 448 ec_pow2_448(MPI w, const MPI b, struct mpi_ec_ctx *ctx) ec_pow2_448() argument 564 mpi_ec_init(struct mpi_ec_ctx *ctx, enum gcry_mpi_ec_models model, enum ecc_dialects dialect, int flags, MPI p, MPI a, MPI b) mpi_ec_init() argument 651 mpi_ec_deinit(struct mpi_ec_ctx *ctx) mpi_ec_deinit() argument 681 mpi_ec_get_affine(MPI x, MPI y, MPI_POINT point, struct mpi_ec_ctx *ctx) mpi_ec_get_affine() argument 756 dup_point_weierstrass(MPI_POINT result, MPI_POINT point, struct mpi_ec_ctx *ctx) dup_point_weierstrass() argument 834 dup_point_montgomery(MPI_POINT result, MPI_POINT point, struct mpi_ec_ctx *ctx) dup_point_montgomery() argument 845 dup_point_edwards(MPI_POINT result, MPI_POINT point, struct mpi_ec_ctx *ctx) dup_point_edwards() argument 918 mpi_ec_dup_point(MPI_POINT result, MPI_POINT point, struct mpi_ec_ctx *ctx) mpi_ec_dup_point() argument 934 add_points_weierstrass(MPI_POINT result, MPI_POINT p1, MPI_POINT p2, struct mpi_ec_ctx *ctx) add_points_weierstrass() argument 1059 add_points_montgomery(MPI_POINT result, MPI_POINT p1, MPI_POINT p2, struct mpi_ec_ctx *ctx) add_points_montgomery() argument 1072 add_points_edwards(MPI_POINT result, MPI_POINT p1, MPI_POINT p2, struct mpi_ec_ctx *ctx) add_points_edwards() argument 1166 montgomery_ladder(MPI_POINT prd, MPI_POINT sum, MPI_POINT p1, MPI_POINT p2, MPI dif_x, struct mpi_ec_ctx *ctx) montgomery_ladder() argument 1191 mpi_ec_add_points(MPI_POINT result, MPI_POINT p1, MPI_POINT p2, struct mpi_ec_ctx *ctx) mpi_ec_add_points() argument 1213 mpi_ec_mul_point(MPI_POINT result, MPI scalar, MPI_POINT point, struct mpi_ec_ctx *ctx) mpi_ec_mul_point() argument 1401 mpi_ec_curve_point(MPI_POINT point, struct mpi_ec_ctx *ctx) mpi_ec_curve_point() argument [all...] |
/kernel/linux/linux-5.10/drivers/base/regmap/ |
H A D | regmap-mmio.c | 23 void (*reg_write)(struct regmap_mmio_context *ctx, 25 unsigned int (*reg_read)(struct regmap_mmio_context *ctx, 71 static void regmap_mmio_write8(struct regmap_mmio_context *ctx, in regmap_mmio_write8() argument 75 writeb(val, ctx->regs + reg); in regmap_mmio_write8() 78 static void regmap_mmio_write16le(struct regmap_mmio_context *ctx, in regmap_mmio_write16le() argument 82 writew(val, ctx->regs + reg); in regmap_mmio_write16le() 85 static void regmap_mmio_write16be(struct regmap_mmio_context *ctx, in regmap_mmio_write16be() argument 89 iowrite16be(val, ctx->regs + reg); in regmap_mmio_write16be() 92 static void regmap_mmio_write32le(struct regmap_mmio_context *ctx, in regmap_mmio_write32le() argument 96 writel(val, ctx in regmap_mmio_write32le() 99 regmap_mmio_write32be(struct regmap_mmio_context *ctx, unsigned int reg, unsigned int val) regmap_mmio_write32be() argument 107 regmap_mmio_write64le(struct regmap_mmio_context *ctx, unsigned int reg, unsigned int val) regmap_mmio_write64le() argument 117 struct regmap_mmio_context *ctx = context; regmap_mmio_write() local 134 regmap_mmio_read8(struct regmap_mmio_context *ctx, unsigned int reg) regmap_mmio_read8() argument 140 regmap_mmio_read16le(struct regmap_mmio_context *ctx, unsigned int reg) regmap_mmio_read16le() argument 146 regmap_mmio_read16be(struct regmap_mmio_context *ctx, unsigned int reg) regmap_mmio_read16be() argument 152 regmap_mmio_read32le(struct regmap_mmio_context *ctx, unsigned int reg) regmap_mmio_read32le() argument 158 regmap_mmio_read32be(struct regmap_mmio_context *ctx, unsigned int reg) regmap_mmio_read32be() argument 165 regmap_mmio_read64le(struct regmap_mmio_context *ctx, unsigned int reg) regmap_mmio_read64le() argument 174 struct regmap_mmio_context *ctx = context; regmap_mmio_read() local 193 struct regmap_mmio_context *ctx = context; regmap_mmio_free_context() local 216 struct regmap_mmio_context *ctx; regmap_mmio_gen_context() local 328 struct regmap_mmio_context *ctx; __regmap_init_mmio_clk() local 346 struct regmap_mmio_context *ctx; __devm_regmap_init_mmio_clk() local 359 struct regmap_mmio_context *ctx = map->bus_context; regmap_mmio_attach_clk() local 370 struct regmap_mmio_context *ctx = map->bus_context; regmap_mmio_detach_clk() local [all...] |
/kernel/linux/linux-5.10/drivers/auxdisplay/ |
H A D | img-ascii-lcd.c | 30 void (*update)(struct img_ascii_lcd_ctx *ctx); 67 static void boston_update(struct img_ascii_lcd_ctx *ctx) in boston_update() argument 72 val = *((u64 *)&ctx->curr[0]); in boston_update() 73 __raw_writeq(val, ctx->base); in boston_update() 75 val = *((u32 *)&ctx->curr[0]); in boston_update() 76 __raw_writel(val, ctx->base); in boston_update() 77 val = *((u32 *)&ctx->curr[4]); in boston_update() 78 __raw_writel(val, ctx->base + 4); in boston_update() 93 static void malta_update(struct img_ascii_lcd_ctx *ctx) in malta_update() argument 98 for (i = 0; i < ctx in malta_update() 129 sead3_wait_sm_idle(struct img_ascii_lcd_ctx *ctx) sead3_wait_sm_idle() argument 146 sead3_wait_lcd_idle(struct img_ascii_lcd_ctx *ctx) sead3_wait_lcd_idle() argument 176 sead3_update(struct img_ascii_lcd_ctx *ctx) sead3_update() argument 230 struct img_ascii_lcd_ctx *ctx = from_timer(ctx, t, timer); img_ascii_lcd_scroll() local 268 img_ascii_lcd_display(struct img_ascii_lcd_ctx *ctx, const char *msg, ssize_t count) img_ascii_lcd_display() argument 327 struct img_ascii_lcd_ctx *ctx = dev_get_drvdata(dev); message_show() local 346 struct img_ascii_lcd_ctx *ctx = dev_get_drvdata(dev); message_store() local 368 struct img_ascii_lcd_ctx *ctx; img_ascii_lcd_probe() local 432 struct img_ascii_lcd_ctx *ctx = platform_get_drvdata(pdev); img_ascii_lcd_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/misc/ocxl/ |
H A D | context.c | 11 struct ocxl_context *ctx; in ocxl_context_alloc() local 13 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); in ocxl_context_alloc() 14 if (!ctx) in ocxl_context_alloc() 17 ctx->afu = afu; in ocxl_context_alloc() 19 pasid = idr_alloc(&afu->contexts_idr, ctx, afu->pasid_base, in ocxl_context_alloc() 23 kfree(ctx); in ocxl_context_alloc() 29 ctx->pasid = pasid; in ocxl_context_alloc() 30 ctx->status = OPENED; in ocxl_context_alloc() 31 mutex_init(&ctx in ocxl_context_alloc() 58 struct ocxl_context *ctx = (struct ocxl_context *) data; xsl_fault_error() local 69 ocxl_context_attach(struct ocxl_context *ctx, u64 amr, struct mm_struct *mm) ocxl_context_attach() argument 98 map_afu_irq(struct vm_area_struct *vma, unsigned long address, u64 offset, struct ocxl_context *ctx) map_afu_irq() argument 111 map_pp_mmio(struct vm_area_struct *vma, unsigned long address, u64 offset, struct ocxl_context *ctx) map_pp_mmio() argument 142 struct ocxl_context *ctx = vma->vm_file->private_data; ocxl_mmap_fault() local 161 check_mmap_afu_irq(struct ocxl_context *ctx, struct vm_area_struct *vma) check_mmap_afu_irq() argument 187 check_mmap_mmio(struct ocxl_context *ctx, struct vm_area_struct *vma) check_mmap_mmio() argument 196 ocxl_context_mmap(struct ocxl_context *ctx, struct vm_area_struct *vma) ocxl_context_mmap() argument 213 ocxl_context_detach(struct ocxl_context *ctx) ocxl_context_detach() argument 262 struct ocxl_context *ctx; ocxl_context_detach_all() local 283 ocxl_context_free(struct ocxl_context *ctx) ocxl_context_free() argument [all...] |
/third_party/mesa3d/src/amd/llvm/ |
H A D | ac_llvm_build.c | 56 * The caller is responsible for initializing ctx::module and ctx::builder. 58 void ac_llvm_context_init(struct ac_llvm_context *ctx, struct ac_llvm_compiler *compiler, in ac_llvm_context_init() argument 64 ctx->context = LLVMContextCreate(); in ac_llvm_context_init() 66 LLVMContextSetOpaquePointers(ctx->context, false); in ac_llvm_context_init() 69 ctx->gfx_level = gfx_level; in ac_llvm_context_init() 70 ctx->family = family; in ac_llvm_context_init() 71 ctx->has_3d_cube_border_color_mipmap = has_3d_cube_border_color_mipmap; in ac_llvm_context_init() 72 ctx->wave_size = wave_size; in ac_llvm_context_init() 73 ctx in ac_llvm_context_init() 133 ac_llvm_context_dispose(struct ac_llvm_context *ctx) ac_llvm_context_dispose() argument 158 ac_get_elem_bits(struct ac_llvm_context *ctx, LLVMTypeRef type) ac_get_elem_bits() argument 208 to_integer_type_scalar(struct ac_llvm_context *ctx, LLVMTypeRef t) to_integer_type_scalar() argument 224 ac_to_integer_type(struct ac_llvm_context *ctx, LLVMTypeRef t) ac_to_integer_type() argument 244 ac_to_integer(struct ac_llvm_context *ctx, LLVMValueRef v) ac_to_integer() argument 253 ac_to_integer_or_pointer(struct ac_llvm_context *ctx, LLVMValueRef v) ac_to_integer_or_pointer() argument 261 to_float_type_scalar(struct ac_llvm_context *ctx, LLVMTypeRef t) to_float_type_scalar() argument 275 ac_to_float_type(struct ac_llvm_context *ctx, LLVMTypeRef t) ac_to_float_type() argument 284 ac_to_float(struct ac_llvm_context *ctx, LLVMValueRef v) ac_to_float() argument 290 ac_build_intrinsic(struct ac_llvm_context *ctx, const char *name, LLVMTypeRef return_type, LLVMValueRef *params, unsigned param_count, unsigned attrib_mask) ac_build_intrinsic() argument 386 ac_build_phi(struct ac_llvm_context *ctx, LLVMTypeRef type, unsigned count_incoming, LLVMValueRef *values, LLVMBasicBlockRef *blocks) ac_build_phi() argument 394 ac_build_s_barrier(struct ac_llvm_context *ctx, gl_shader_stage stage) ac_build_s_barrier() argument 412 ac_build_optimization_barrier(struct ac_llvm_context *ctx, LLVMValueRef *pgpr, bool sgpr) ac_build_optimization_barrier() argument 477 ac_build_shader_clock(struct ac_llvm_context *ctx, nir_scope scope) ac_build_shader_clock() argument 486 ac_build_ballot(struct ac_llvm_context *ctx, LLVMValueRef value) ac_build_ballot() argument 512 ac_get_i1_sgpr_mask(struct ac_llvm_context *ctx, LLVMValueRef value) ac_get_i1_sgpr_mask() argument 532 ac_build_vote_all(struct ac_llvm_context *ctx, LLVMValueRef value) ac_build_vote_all() argument 539 ac_build_vote_any(struct ac_llvm_context *ctx, LLVMValueRef value) ac_build_vote_any() argument 546 ac_build_vote_eq(struct ac_llvm_context *ctx, LLVMValueRef value) ac_build_vote_eq() argument 557 ac_build_varying_gather_values(struct ac_llvm_context *ctx, LLVMValueRef *values, unsigned value_count, unsigned component) ac_build_varying_gather_values() argument 578 ac_build_gather_values_extended(struct ac_llvm_context *ctx, LLVMValueRef *values, unsigned value_count, unsigned value_stride, bool always_vector) ac_build_gather_values_extended() argument 602 ac_build_gather_values(struct ac_llvm_context *ctx, LLVMValueRef *values, unsigned value_count) ac_build_gather_values() argument 608 ac_build_concat(struct ac_llvm_context *ctx, LLVMValueRef a, LLVMValueRef b) ac_build_concat() argument 625 ac_build_expand(struct ac_llvm_context *ctx, LLVMValueRef value, unsigned src_channels, unsigned dst_channels) ac_build_expand() argument 659 ac_extract_components(struct ac_llvm_context *ctx, LLVMValueRef value, unsigned start, unsigned channels) ac_extract_components() argument 673 ac_build_expand_to_vec4(struct ac_llvm_context *ctx, LLVMValueRef value, unsigned num_channels) ac_build_expand_to_vec4() argument 679 ac_build_round(struct ac_llvm_context *ctx, LLVMValueRef value) ac_build_round() argument 694 ac_build_fdiv(struct ac_llvm_context *ctx, LLVMValueRef num, LLVMValueRef den) ac_build_fdiv() argument 718 ac_build_fast_udiv(struct ac_llvm_context *ctx, LLVMValueRef num, LLVMValueRef multiplier, LLVMValueRef pre_shift, LLVMValueRef post_shift, LLVMValueRef increment) ac_build_fast_udiv() argument 736 ac_build_fast_udiv_nuw(struct ac_llvm_context *ctx, LLVMValueRef num, LLVMValueRef multiplier, LLVMValueRef pre_shift, LLVMValueRef post_shift, LLVMValueRef increment) ac_build_fast_udiv_nuw() argument 753 ac_build_fast_udiv_u31_d_not_one(struct ac_llvm_context *ctx, LLVMValueRef num, LLVMValueRef multiplier, LLVMValueRef post_shift) ac_build_fast_udiv_u31_d_not_one() argument 775 build_cube_intrinsic(struct ac_llvm_context *ctx, LLVMValueRef in[3], struct cube_selection_coords *out) build_cube_intrinsic() argument 795 build_cube_select(struct ac_llvm_context *ctx, const struct cube_selection_coords *selcoords, const LLVMValueRef *coords, LLVMValueRef *out_st, LLVMValueRef *out_ma) build_cube_select() argument 840 ac_prepare_cube_coords(struct ac_llvm_context *ctx, bool is_deriv, bool is_array, bool is_lod, LLVMValueRef *coords_arg, LLVMValueRef *derivs_arg) ac_prepare_cube_coords() argument 949 ac_build_fs_interp(struct ac_llvm_context *ctx, LLVMValueRef llvm_chan, LLVMValueRef attr_number, LLVMValueRef params, LLVMValueRef i, LLVMValueRef j) ac_build_fs_interp() argument 1002 ac_build_fs_interp_f16(struct ac_llvm_context *ctx, LLVMValueRef llvm_chan, LLVMValueRef attr_number, LLVMValueRef params, LLVMValueRef i, LLVMValueRef j, bool high_16bits) ac_build_fs_interp_f16() argument 1059 ac_build_fs_interp_mov(struct ac_llvm_context *ctx, LLVMValueRef parameter, LLVMValueRef llvm_chan, LLVMValueRef attr_number, LLVMValueRef params) ac_build_fs_interp_mov() argument 1087 ac_build_gep_ptr(struct ac_llvm_context *ctx, LLVMValueRef base_ptr, LLVMValueRef index) ac_build_gep_ptr() argument 1093 ac_build_gep0(struct ac_llvm_context *ctx, LLVMValueRef base_ptr, LLVMValueRef index) ac_build_gep0() argument 1102 ac_build_pointer_add(struct ac_llvm_context *ctx, LLVMValueRef ptr, LLVMValueRef index) ac_build_pointer_add() argument 1108 ac_build_indexed_store(struct ac_llvm_context *ctx, LLVMValueRef base_ptr, LLVMValueRef index, LLVMValueRef value) ac_build_indexed_store() argument 1142 ac_build_load_custom(struct ac_llvm_context *ctx, LLVMValueRef base_ptr, LLVMValueRef index, bool uniform, bool invariant, bool no_unsigned_wraparound) ac_build_load_custom() argument 1163 ac_build_load(struct ac_llvm_context *ctx, LLVMValueRef base_ptr, LLVMValueRef index) ac_build_load() argument 1168 ac_build_load_invariant(struct ac_llvm_context *ctx, LLVMValueRef base_ptr, LLVMValueRef index) ac_build_load_invariant() argument 1176 ac_build_load_to_sgpr(struct ac_llvm_context *ctx, LLVMValueRef base_ptr, LLVMValueRef index) ac_build_load_to_sgpr() argument 1183 ac_build_load_to_sgpr_uint_wraparound(struct ac_llvm_context *ctx, LLVMValueRef base_ptr, LLVMValueRef index) ac_build_load_to_sgpr_uint_wraparound() argument 1189 get_load_cache_policy(struct ac_llvm_context *ctx, unsigned cache_policy) get_load_cache_policy() argument 1195 get_store_cache_policy(struct ac_llvm_context *ctx, unsigned cache_policy) get_store_cache_policy() argument 1202 ac_build_buffer_store_common(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef data, LLVMValueRef vindex, LLVMValueRef voffset, LLVMValueRef soffset, unsigned cache_policy, bool use_format) ac_build_buffer_store_common() argument 1231 ac_build_buffer_store_format(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef data, LLVMValueRef vindex, LLVMValueRef voffset, unsigned cache_policy) ac_build_buffer_store_format() argument 1238 ac_build_buffer_store_dword(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef vdata, LLVMValueRef vindex, LLVMValueRef voffset, LLVMValueRef soffset, unsigned cache_policy) ac_build_buffer_store_dword() argument 1265 ac_build_buffer_load_common(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef vindex, LLVMValueRef voffset, LLVMValueRef soffset, unsigned num_channels, LLVMTypeRef channel_type, unsigned cache_policy, bool can_speculate, bool use_format, bool structurized) ac_build_buffer_load_common() argument 1302 ac_build_buffer_load(struct ac_llvm_context *ctx, LLVMValueRef rsrc, int num_channels, LLVMValueRef vindex, LLVMValueRef voffset, LLVMValueRef soffset, LLVMTypeRef channel_type, unsigned cache_policy, bool can_speculate, bool allow_smem) ac_build_buffer_load() argument 1341 ac_build_buffer_load_format(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef vindex, LLVMValueRef voffset, unsigned num_channels, unsigned cache_policy, bool can_speculate, bool d16, bool tfe) ac_build_buffer_load_format() argument 1387 ac_build_tbuffer_load(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef vindex, LLVMValueRef voffset, LLVMValueRef soffset, unsigned num_channels, unsigned dfmt, unsigned nfmt, unsigned cache_policy, bool can_speculate, bool structurized) ac_build_tbuffer_load() argument 1415 ac_build_struct_tbuffer_load(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef vindex, LLVMValueRef voffset, LLVMValueRef soffset, unsigned num_channels, unsigned dfmt, unsigned nfmt, unsigned cache_policy, bool can_speculate) ac_build_struct_tbuffer_load() argument 1425 ac_build_buffer_load_short(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef voffset, LLVMValueRef soffset, unsigned cache_policy) ac_build_buffer_load_short() argument 1433 ac_build_buffer_load_byte(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef voffset, LLVMValueRef soffset, unsigned cache_policy) ac_build_buffer_load_byte() argument 1447 ac_ufN_to_float(struct ac_llvm_context *ctx, LLVMValueRef src, unsigned exp_bits, unsigned mant_bits) ac_ufN_to_float() argument 1524 ac_build_opencoded_load_format(struct ac_llvm_context *ctx, unsigned log_size, unsigned num_channels, unsigned format, bool reverse, bool known_aligned, LLVMValueRef rsrc, LLVMValueRef vindex, LLVMValueRef voffset, LLVMValueRef soffset, unsigned cache_policy, bool can_speculate) ac_build_opencoded_load_format() argument 1732 ac_build_buffer_store_short(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef vdata, LLVMValueRef voffset, LLVMValueRef soffset, unsigned cache_policy) ac_build_buffer_store_short() argument 1741 ac_build_buffer_store_byte(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef vdata, LLVMValueRef voffset, LLVMValueRef soffset, unsigned cache_policy) ac_build_buffer_store_byte() argument 1756 ac_set_range_metadata(struct ac_llvm_context *ctx, LLVMValueRef value, unsigned lo, unsigned hi) ac_set_range_metadata() argument 1769 ac_get_thread_id(struct ac_llvm_context *ctx) ac_get_thread_id() argument 1798 ac_build_ddxy(struct ac_llvm_context *ctx, uint32_t mask, int idx, LLVMValueRef val) ac_build_ddxy() argument 1837 ac_build_sendmsg(struct ac_llvm_context *ctx, uint32_t msg, LLVMValueRef wave_id) ac_build_sendmsg() argument 1845 ac_build_imsb(struct ac_llvm_context *ctx, LLVMValueRef arg, LLVMTypeRef dst_type) ac_build_imsb() argument 1862 ac_build_umsb(struct ac_llvm_context *ctx, LLVMValueRef arg, LLVMTypeRef dst_type) ac_build_umsb() argument 1923 ac_build_fmin(struct ac_llvm_context *ctx, LLVMValueRef a, LLVMValueRef b) ac_build_fmin() argument 1933 ac_build_fmax(struct ac_llvm_context *ctx, LLVMValueRef a, LLVMValueRef b) ac_build_fmax() argument 1943 ac_build_imin(struct ac_llvm_context *ctx, LLVMValueRef a, LLVMValueRef b) ac_build_imin() argument 1949 ac_build_imax(struct ac_llvm_context *ctx, LLVMValueRef a, LLVMValueRef b) ac_build_imax() argument 1955 ac_build_umin(struct ac_llvm_context *ctx, LLVMValueRef a, LLVMValueRef b) ac_build_umin() argument 1961 ac_build_umax(struct ac_llvm_context *ctx, LLVMValueRef a, LLVMValueRef b) ac_build_umax() argument 1967 ac_build_clamp(struct ac_llvm_context *ctx, LLVMValueRef value) ac_build_clamp() argument 1974 ac_build_export(struct ac_llvm_context *ctx, struct ac_export_args *a) ac_build_export() argument 2002 ac_build_export_null(struct ac_llvm_context *ctx, bool uses_discard) ac_build_export_null() argument 2100 ac_build_image_opcode(struct ac_llvm_context *ctx, struct ac_image_args *a) ac_build_image_opcode() argument 2330 ac_build_image_get_sample_count(struct ac_llvm_context *ctx, LLVMValueRef rsrc) ac_build_image_get_sample_count() argument 2344 ac_build_cvt_pkrtz_f16(struct ac_llvm_context *ctx, LLVMValueRef args[2]) ac_build_cvt_pkrtz_f16() argument 2350 ac_build_cvt_pknorm_i16(struct ac_llvm_context *ctx, LLVMValueRef args[2]) ac_build_cvt_pknorm_i16() argument 2357 ac_build_cvt_pknorm_u16(struct ac_llvm_context *ctx, LLVMValueRef args[2]) ac_build_cvt_pknorm_u16() argument 2364 ac_build_cvt_pknorm_i16_f16(struct ac_llvm_context *ctx, LLVMValueRef args[2]) ac_build_cvt_pknorm_i16_f16() argument 2377 ac_build_cvt_pknorm_u16_f16(struct ac_llvm_context *ctx, LLVMValueRef args[2]) ac_build_cvt_pknorm_u16_f16() argument 2391 ac_build_cvt_pk_i16(struct ac_llvm_context *ctx, LLVMValueRef args[2], unsigned bits, bool hi) ac_build_cvt_pk_i16() argument 2416 ac_build_cvt_pk_u16(struct ac_llvm_context *ctx, LLVMValueRef args[2], unsigned bits, bool hi) ac_build_cvt_pk_u16() argument 2437 ac_build_wqm_vote(struct ac_llvm_context *ctx, LLVMValueRef i1) ac_build_wqm_vote() argument 2442 ac_build_kill_if_false(struct ac_llvm_context *ctx, LLVMValueRef i1) ac_build_kill_if_false() argument 2447 ac_build_bfe(struct ac_llvm_context *ctx, LLVMValueRef input, LLVMValueRef offset, LLVMValueRef width, bool is_signed) ac_build_bfe() argument 2460 ac_build_imad(struct ac_llvm_context *ctx, LLVMValueRef s0, LLVMValueRef s1, LLVMValueRef s2) ac_build_imad() argument 2466 ac_build_fmad(struct ac_llvm_context *ctx, LLVMValueRef s0, LLVMValueRef s1, LLVMValueRef s2) ac_build_fmad() argument 2478 ac_build_waitcnt(struct ac_llvm_context *ctx, unsigned wait_flags) ac_build_waitcnt() argument 2523 ac_build_fsat(struct ac_llvm_context *ctx, LLVMValueRef src, LLVMTypeRef type) ac_build_fsat() argument 2567 ac_build_fract(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize) ac_build_fract() argument 2589 ac_const_uint_vec(struct ac_llvm_context *ctx, LLVMTypeRef type, uint64_t value) ac_const_uint_vec() argument 2604 ac_build_isign(struct ac_llvm_context *ctx, LLVMValueRef src0) ac_build_isign() argument 2614 ac_eliminate_negative_zero(struct ac_llvm_context *ctx, LLVMValueRef val) ac_eliminate_negative_zero() argument 2623 ac_build_fsign(struct ac_llvm_context *ctx, LLVMValueRef src) ac_build_fsign() argument 2663 ac_build_bit_count(struct ac_llvm_context *ctx, LLVMValueRef src0) ac_build_bit_count() argument 2706 ac_build_bitfield_reverse(struct ac_llvm_context *ctx, LLVMValueRef src0) ac_build_bitfield_reverse() argument 2744 ac_init_exec_full_mask(struct ac_llvm_context *ctx) ac_init_exec_full_mask() argument 2751 ac_declare_lds_as_pointer(struct ac_llvm_context *ctx) ac_declare_lds_as_pointer() argument 2759 ac_lds_load(struct ac_llvm_context *ctx, LLVMValueRef dw_addr) ac_lds_load() argument 2764 ac_lds_store(struct ac_llvm_context *ctx, LLVMValueRef dw_addr, LLVMValueRef value) ac_lds_store() argument 2770 ac_find_lsb(struct ac_llvm_context *ctx, LLVMTypeRef dst_type, LLVMValueRef src0) ac_find_lsb() argument 2841 get_current_flow(struct ac_llvm_context *ctx) get_current_flow() argument 2848 get_innermost_loop(struct ac_llvm_context *ctx) get_innermost_loop() argument 2857 push_flow(struct ac_llvm_context *ctx) push_flow() argument 2885 append_basic_block(struct ac_llvm_context *ctx, const char *name) append_basic_block() argument 2909 ac_build_bgnloop(struct ac_llvm_context *ctx, int label_id) ac_build_bgnloop() argument 2919 ac_build_break(struct ac_llvm_context *ctx) ac_build_break() argument 2925 ac_build_continue(struct ac_llvm_context *ctx) ac_build_continue() argument 2931 ac_build_else(struct ac_llvm_context *ctx, int label_id) ac_build_else() argument 2948 ac_branch_exited(struct ac_llvm_context *ctx) ac_branch_exited() argument 2963 ac_build_endif(struct ac_llvm_context *ctx, int label_id) ac_build_endif() argument 2977 ac_build_endloop(struct ac_llvm_context *ctx, int label_id) ac_build_endloop() argument 2991 ac_build_ifcc(struct ac_llvm_context *ctx, LLVMValueRef cond, int label_id) ac_build_ifcc() argument 3038 ac_cast_ptr(struct ac_llvm_context *ctx, LLVMValueRef ptr, LLVMTypeRef type) ac_cast_ptr() argument 3044 ac_trim_vector(struct ac_llvm_context *ctx, LLVMValueRef value, unsigned count) ac_trim_vector() argument 3064 ac_unpack_param(struct ac_llvm_context *ctx, LLVMValueRef param, unsigned rshift, unsigned bitwidth) ac_unpack_param() argument 3138 _ac_build_readlane(struct ac_llvm_context *ctx, LLVMValueRef src, LLVMValueRef lane, bool with_opt_barrier) _ac_build_readlane() argument 3159 ac_build_readlane_common(struct ac_llvm_context *ctx, LLVMValueRef src, LLVMValueRef lane, bool with_opt_barrier) ac_build_readlane_common() argument 3202 ac_build_readlane_no_opt_barrier(struct ac_llvm_context *ctx, LLVMValueRef src, LLVMValueRef lane) ac_build_readlane_no_opt_barrier() argument 3208 ac_build_readlane(struct ac_llvm_context *ctx, LLVMValueRef src, LLVMValueRef lane) ac_build_readlane() argument 3213 ac_build_writelane(struct ac_llvm_context *ctx, LLVMValueRef src, LLVMValueRef value, LLVMValueRef lane) ac_build_writelane() argument 3221 ac_build_mbcnt_add(struct ac_llvm_context *ctx, LLVMValueRef mask, LLVMValueRef add_src) ac_build_mbcnt_add() argument 3248 ac_build_mbcnt(struct ac_llvm_context *ctx, LLVMValueRef mask) ac_build_mbcnt() argument 3282 _ac_build_dpp(struct ac_llvm_context *ctx, LLVMValueRef old, LLVMValueRef src, enum dpp_ctrl dpp_ctrl, unsigned row_mask, unsigned bank_mask, bool bound_ctrl) _ac_build_dpp() argument 3302 ac_build_dpp(struct ac_llvm_context *ctx, LLVMValueRef old, LLVMValueRef src, enum dpp_ctrl dpp_ctrl, unsigned row_mask, unsigned bank_mask, bool bound_ctrl) ac_build_dpp() argument 3331 _ac_build_permlane16(struct ac_llvm_context *ctx, LLVMValueRef src, uint64_t sel, bool exchange_rows, bool bound_ctrl) _ac_build_permlane16() argument 3355 ac_build_permlane16(struct ac_llvm_context *ctx, LLVMValueRef src, uint64_t sel, bool exchange_rows, bool bound_ctrl) ac_build_permlane16() argument 3385 _ac_build_ds_swizzle(struct ac_llvm_context *ctx, LLVMValueRef src, unsigned mask) _ac_build_ds_swizzle() argument 3400 ac_build_ds_swizzle(struct ac_llvm_context *ctx, LLVMValueRef src, unsigned mask) ac_build_ds_swizzle() argument 3423 ac_build_wwm(struct ac_llvm_context *ctx, LLVMValueRef src) ac_build_wwm() argument 3446 ac_build_set_inactive(struct ac_llvm_context *ctx, LLVMValueRef src, LLVMValueRef inactive) ac_build_set_inactive() argument 3471 get_reduction_identity(struct ac_llvm_context *ctx, nir_op op, unsigned type_size) get_reduction_identity() argument 3604 ac_build_alu_op(struct ac_llvm_context *ctx, LLVMValueRef lhs, LLVMValueRef rhs, nir_op op) ac_build_alu_op() argument 3658 ac_wavefront_shift_right_1(struct ac_llvm_context *ctx, LLVMValueRef src, LLVMValueRef identity, unsigned maxprefix) ac_wavefront_shift_right_1() argument 3725 ac_build_scan(struct ac_llvm_context *ctx, nir_op op, LLVMValueRef src, LLVMValueRef identity, unsigned maxprefix, bool inclusive) ac_build_scan() argument 3836 ac_build_inclusive_scan(struct ac_llvm_context *ctx, LLVMValueRef src, nir_op op) ac_build_inclusive_scan() argument 3859 ac_build_exclusive_scan(struct ac_llvm_context *ctx, LLVMValueRef src, nir_op op) ac_build_exclusive_scan() argument 3881 ac_build_reduce(struct ac_llvm_context *ctx, LLVMValueRef src, nir_op op, unsigned cluster_size) ac_build_reduce() argument 3953 ac_build_wg_wavescan_top(struct ac_llvm_context *ctx, struct ac_wg_scan *ws) ac_build_wg_wavescan_top() argument 3976 ac_build_wg_wavescan_bottom(struct ac_llvm_context *ctx, struct ac_wg_scan *ws) ac_build_wg_wavescan_bottom() argument 4041 ac_build_wg_wavescan(struct ac_llvm_context *ctx, struct ac_wg_scan *ws) ac_build_wg_wavescan() argument 4055 ac_build_wg_scan_top(struct ac_llvm_context *ctx, struct ac_wg_scan *ws) ac_build_wg_scan_top() argument 4081 ac_build_wg_scan_bottom(struct ac_llvm_context *ctx, struct ac_wg_scan *ws) ac_build_wg_scan_bottom() argument 4104 ac_build_wg_scan(struct ac_llvm_context *ctx, struct ac_wg_scan *ws) ac_build_wg_scan() argument 4112 _ac_build_dual_src_blend_swizzle(struct ac_llvm_context *ctx, LLVMValueRef *arg0, LLVMValueRef *arg1) _ac_build_dual_src_blend_swizzle() argument 4149 ac_build_dual_src_blend_swizzle(struct ac_llvm_context *ctx, struct ac_export_args *mrt0, struct ac_export_args *mrt1) ac_build_dual_src_blend_swizzle() argument 4162 ac_build_quad_swizzle(struct ac_llvm_context *ctx, LLVMValueRef src, unsigned lane0, unsigned lane1, unsigned lane2, unsigned lane3) ac_build_quad_swizzle() argument 4173 ac_build_shuffle(struct ac_llvm_context *ctx, LLVMValueRef src, LLVMValueRef index) ac_build_shuffle() argument 4187 ac_build_frexp_exp(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize) ac_build_frexp_exp() argument 4208 ac_build_frexp_mant(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize) ac_build_frexp_mant() argument 4230 ac_build_canonicalize(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize) ac_build_canonicalize() argument 4257 ac_build_ddxy_interp(struct ac_llvm_context *ctx, LLVMValueRef interp_ij) ac_build_ddxy_interp() argument 4270 ac_build_load_helper_invocation(struct ac_llvm_context *ctx) ac_build_load_helper_invocation() argument 4284 ac_build_is_helper_invocation(struct ac_llvm_context *ctx) ac_build_is_helper_invocation() argument 4300 ac_build_call(struct ac_llvm_context *ctx, LLVMValueRef func, LLVMValueRef *args, unsigned num_args) ac_build_call() argument 4308 ac_export_mrt_z(struct ac_llvm_context *ctx, LLVMValueRef depth, LLVMValueRef stencil, LLVMValueRef samplemask, LLVMValueRef mrt0_alpha, bool is_last, struct ac_export_args *args) ac_export_mrt_z() argument 4383 ac_build_sendmsg_gs_alloc_req(struct ac_llvm_context *ctx, LLVMValueRef wave_id, LLVMValueRef vtx_cnt, LLVMValueRef prim_cnt) ac_build_sendmsg_gs_alloc_req() argument 4432 ac_pack_edgeflags_for_export(struct ac_llvm_context *ctx, const struct ac_shader_args *args) ac_pack_edgeflags_for_export() argument 4447 ac_pack_prim_export(struct ac_llvm_context *ctx, const struct ac_ngg_prim *prim) ac_pack_prim_export() argument 4470 ac_build_export_prim(struct ac_llvm_context *ctx, const struct ac_ngg_prim *prim) ac_build_export_prim() argument 4494 arg_llvm_type(enum ac_arg_type type, unsigned size, struct ac_llvm_context *ctx) arg_llvm_type() argument 4530 ac_build_main(const struct ac_shader_args *args, struct ac_llvm_context *ctx, enum ac_llvm_calling_convention convention, const char *name, LLVMTypeRef ret_type, LLVMModuleRef module) ac_build_main() argument 4573 ac_build_s_endpgm(struct ac_llvm_context *ctx) ac_build_s_endpgm() argument 4584 ac_build_triangle_strip_indices_to_triangle(struct ac_llvm_context *ctx, LLVMValueRef is_odd, LLVMValueRef flatshade_first, LLVMValueRef index[3]) ac_build_triangle_strip_indices_to_triangle() argument 4608 ac_build_is_inf_or_nan(struct ac_llvm_context *ctx, LLVMValueRef a) ac_build_is_inf_or_nan() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_validation.c | 90 * @ctx: The validation context 102 void *vmw_validation_mem_alloc(struct vmw_validation_context *ctx, in vmw_validation_mem_alloc() argument 111 if (ctx->mem_size_left < size) { in vmw_validation_mem_alloc() 114 if (ctx->vm && ctx->vm_size_left < PAGE_SIZE) { in vmw_validation_mem_alloc() 115 int ret = ctx->vm->reserve_mem(ctx->vm, ctx->vm->gran); in vmw_validation_mem_alloc() 120 ctx->vm_size_left += ctx in vmw_validation_mem_alloc() 150 vmw_validation_mem_free(struct vmw_validation_context *ctx) vmw_validation_mem_free() argument 177 vmw_validation_find_bo_dup(struct vmw_validation_context *ctx, struct vmw_buffer_object *vbo) vmw_validation_find_bo_dup() argument 214 vmw_validation_find_res_dup(struct vmw_validation_context *ctx, struct vmw_resource *res) vmw_validation_find_res_dup() argument 258 vmw_validation_add_bo(struct vmw_validation_context *ctx, struct vmw_buffer_object *vbo, bool as_mob, bool cpu_blit) vmw_validation_add_bo() argument 313 vmw_validation_add_resource(struct vmw_validation_context *ctx, struct vmw_resource *res, size_t priv_size, u32 dirty, void **p_node, bool *first_usage) vmw_validation_add_resource() argument 389 vmw_validation_res_set_dirty(struct vmw_validation_context *ctx, void *val_private, u32 dirty) vmw_validation_res_set_dirty() argument 414 vmw_validation_res_switch_backup(struct vmw_validation_context *ctx, void *val_private, struct vmw_buffer_object *vbo, unsigned long backup_offset) vmw_validation_res_switch_backup() argument 440 vmw_validation_res_reserve(struct vmw_validation_context *ctx, bool intr) vmw_validation_res_reserve() argument 494 vmw_validation_res_unreserve(struct vmw_validation_context *ctx, bool backoff) vmw_validation_res_unreserve() argument 534 struct ttm_operation_ctx ctx = { vmw_validation_bo_validate_single() local 578 vmw_validation_bo_validate(struct vmw_validation_context *ctx, bool intr) vmw_validation_bo_validate() argument 588 struct ttm_operation_ctx ctx = { vmw_validation_bo_validate() local 638 vmw_validation_res_validate(struct vmw_validation_context *ctx, bool intr) vmw_validation_res_validate() argument 681 vmw_validation_drop_ht(struct vmw_validation_context *ctx) vmw_validation_drop_ht() argument 709 vmw_validation_unref_lists(struct vmw_validation_context *ctx) vmw_validation_unref_lists() argument 748 vmw_validation_prepare(struct vmw_validation_context *ctx, struct mutex *mutex, bool intr) vmw_validation_prepare() argument 801 vmw_validation_revert(struct vmw_validation_context *ctx) vmw_validation_revert() argument 819 vmw_validation_done(struct vmw_validation_context *ctx, struct vmw_fence_obj *fence) vmw_validation_done() argument 840 vmw_validation_preload_bo(struct vmw_validation_context *ctx) vmw_validation_preload_bo() argument 863 vmw_validation_preload_res(struct vmw_validation_context *ctx, unsigned int size) vmw_validation_preload_res() argument 884 vmw_validation_bo_backoff(struct vmw_validation_context *ctx) vmw_validation_bo_backoff() argument [all...] |
/kernel/linux/linux-5.10/arch/mips/net/ |
H A D | ebpf_jit.c | 119 static enum reg_val_type get_reg_val_type(const struct jit_ctx *ctx, in get_reg_val_type() argument 122 return (ctx->reg_val_types[index] >> (reg * 3)) & 7; in get_reg_val_type() 126 #define emit_instr_long(ctx, func64, func32, ...) \ 128 if ((ctx)->target != NULL) { \ 129 u32 *p = &(ctx)->target[ctx->idx]; \ 135 (ctx)->idx++; \ 138 #define emit_instr(ctx, func, ...) \ 139 emit_instr_long(ctx, func, func, ##__VA_ARGS__) 141 static unsigned int j_target(struct jit_ctx *ctx, in argument 159 b_imm(unsigned int tgt, struct jit_ctx *ctx) b_imm() argument 193 ebpf_to_mips_reg(struct jit_ctx *ctx, const struct bpf_insn *insn, enum which_ebpf_reg w) ebpf_to_mips_reg() argument 270 gen_int_prologue(struct jit_ctx *ctx) gen_int_prologue() argument 352 build_int_epilogue(struct jit_ctx *ctx, int dest_reg) build_int_epilogue() argument 408 gen_imm_to_reg(const struct bpf_insn *insn, int reg, struct jit_ctx *ctx) gen_imm_to_reg() argument 422 gen_imm_insn(const struct bpf_insn *insn, struct jit_ctx *ctx, int idx) gen_imm_insn() argument 567 emit_const_to_reg(struct jit_ctx *ctx, int dst, u64 value) emit_const_to_reg() argument 604 emit_bpf_tail_call(struct jit_ctx *ctx, int this_idx) emit_bpf_tail_call() argument 659 build_one_insn(const struct bpf_insn *insn, struct jit_ctx *ctx, int this_idx, int exit_idx) build_one_insn() argument 1521 build_int_body(struct jit_ctx *ctx) build_int_body() argument 1562 reg_val_propagate_range(struct jit_ctx *ctx, u64 initial_rvt, int start_idx, bool follow_taken) reg_val_propagate_range() argument 1739 reg_val_propagate(struct jit_ctx *ctx) reg_val_propagate() argument 1806 struct jit_ctx ctx; bpf_int_jit_compile() local [all...] |
/kernel/linux/linux-5.10/drivers/misc/ocxl/ |
H A D | context.c | 11 struct ocxl_context *ctx; in ocxl_context_alloc() local 13 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); in ocxl_context_alloc() 14 if (!ctx) in ocxl_context_alloc() 17 ctx->afu = afu; in ocxl_context_alloc() 19 pasid = idr_alloc(&afu->contexts_idr, ctx, afu->pasid_base, in ocxl_context_alloc() 23 kfree(ctx); in ocxl_context_alloc() 29 ctx->pasid = pasid; in ocxl_context_alloc() 30 ctx->status = OPENED; in ocxl_context_alloc() 31 mutex_init(&ctx in ocxl_context_alloc() 58 struct ocxl_context *ctx = (struct ocxl_context *) data; xsl_fault_error() local 69 ocxl_context_attach(struct ocxl_context *ctx, u64 amr, struct mm_struct *mm) ocxl_context_attach() argument 96 map_afu_irq(struct vm_area_struct *vma, unsigned long address, u64 offset, struct ocxl_context *ctx) map_afu_irq() argument 109 map_pp_mmio(struct vm_area_struct *vma, unsigned long address, u64 offset, struct ocxl_context *ctx) map_pp_mmio() argument 140 struct ocxl_context *ctx = vma->vm_file->private_data; ocxl_mmap_fault() local 159 check_mmap_afu_irq(struct ocxl_context *ctx, struct vm_area_struct *vma) check_mmap_afu_irq() argument 185 check_mmap_mmio(struct ocxl_context *ctx, struct vm_area_struct *vma) check_mmap_mmio() argument 194 ocxl_context_mmap(struct ocxl_context *ctx, struct vm_area_struct *vma) ocxl_context_mmap() argument 211 ocxl_context_detach(struct ocxl_context *ctx) ocxl_context_detach() argument 260 struct ocxl_context *ctx; ocxl_context_detach_all() local 281 ocxl_context_free(struct ocxl_context *ctx) ocxl_context_free() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/exynos/ |
H A D | exynos5433_drm_decon.c | 96 static inline void decon_set_bits(struct decon_context *ctx, u32 reg, u32 mask, in decon_set_bits() argument 99 val = (val & mask) | (readl(ctx->addr + reg) & ~mask); in decon_set_bits() 100 writel(val, ctx->addr + reg); in decon_set_bits() 105 struct decon_context *ctx = crtc->ctx; in decon_enable_vblank() local 114 writel(val, ctx->addr + DECON_VIDINTCON0); in decon_enable_vblank() 116 enable_irq(ctx->irq); in decon_enable_vblank() 117 if (!(ctx->out_type & I80_HW_TRG)) in decon_enable_vblank() 118 enable_irq(ctx->te_irq); in decon_enable_vblank() 125 struct decon_context *ctx in decon_disable_vblank() local 135 decon_get_frame_count(struct decon_context *ctx, bool end) decon_get_frame_count() argument 176 decon_setup_trigger(struct decon_context *ctx) decon_setup_trigger() argument 198 struct decon_context *ctx = crtc->ctx; decon_commit() local 264 decon_win_set_bldeq(struct decon_context *ctx, unsigned int win, unsigned int alpha, unsigned int pixel_alpha) decon_win_set_bldeq() argument 290 decon_win_set_bldmod(struct decon_context *ctx, unsigned int win, unsigned int alpha, unsigned int pixel_alpha) decon_win_set_bldmod() argument 319 decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win, struct drm_framebuffer *fb) decon_win_set_pixfmt() argument 383 decon_shadow_protect(struct decon_context *ctx, bool protect) decon_shadow_protect() argument 391 struct decon_context *ctx = crtc->ctx; decon_atomic_begin() local 405 struct decon_context *ctx = crtc->ctx; decon_update_plane() local 460 struct decon_context *ctx = crtc->ctx; decon_disable_plane() local 468 struct decon_context *ctx = crtc->ctx; decon_atomic_flush() local 484 decon_swreset(struct decon_context *ctx) decon_swreset() argument 517 struct decon_context *ctx = crtc->ctx; decon_atomic_enable() local 535 struct decon_context *ctx = crtc->ctx; decon_atomic_disable() local 559 struct decon_context *ctx = dev_id; decon_te_irq_handler() local 568 struct decon_context *ctx = crtc->ctx; decon_clear_channels() local 595 struct decon_context *ctx = crtc->ctx; decon_mode_valid() local 622 struct decon_context *ctx = dev_get_drvdata(dev); decon_bind() local 659 struct decon_context *ctx = dev_get_drvdata(dev); decon_unbind() local 672 decon_handle_vblank(struct decon_context *ctx) decon_handle_vblank() argument 692 struct decon_context *ctx = dev_id; decon_irq_handler() local 715 struct decon_context *ctx = dev_get_drvdata(dev); exynos5433_decon_suspend() local 726 struct decon_context *ctx = dev_get_drvdata(dev); exynos5433_decon_resume() local 761 decon_conf_irq(struct decon_context *ctx, const char *name, irq_handler_t handler, unsigned long int flags) decon_conf_irq() argument 792 struct decon_context *ctx; exynos5433_decon_probe() local [all...] |
/kernel/linux/linux-5.10/fs/nfs/ |
H A D | fs_context.c | 275 static void nfs_validate_transport_protocol(struct nfs_fs_context *ctx) in nfs_validate_transport_protocol() argument 277 switch (ctx->nfs_server.protocol) { in nfs_validate_transport_protocol() 283 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_validate_transport_protocol() 291 static void nfs_set_mount_transport_protocol(struct nfs_fs_context *ctx) in nfs_set_mount_transport_protocol() argument 293 nfs_validate_transport_protocol(ctx); in nfs_set_mount_transport_protocol() 295 if (ctx->mount_server.protocol == XPRT_TRANSPORT_UDP || in nfs_set_mount_transport_protocol() 296 ctx->mount_server.protocol == XPRT_TRANSPORT_TCP) in nfs_set_mount_transport_protocol() 298 switch (ctx->nfs_server.protocol) { in nfs_set_mount_transport_protocol() 300 ctx->mount_server.protocol = XPRT_TRANSPORT_UDP; in nfs_set_mount_transport_protocol() 304 ctx in nfs_set_mount_transport_protocol() 338 struct nfs_fs_context *ctx = nfs_fc2context(fc); nfs_parse_security_flavors() local 397 struct nfs_fs_context *ctx = nfs_fc2context(fc); nfs_parse_version_string() local 440 struct nfs_fs_context *ctx = nfs_fc2context(fc); nfs_fs_context_parse_param() local 804 struct nfs_fs_context *ctx = nfs_fc2context(fc); nfs_parse_source() local 892 struct nfs_fs_context *ctx = nfs_fc2context(fc); nfs23_parse_monolithic() local 1120 struct nfs_fs_context *ctx = nfs_fc2context(fc); nfs4_parse_monolithic() local 1235 struct nfs_fs_context *ctx = nfs_fc2context(fc); nfs_fs_context_validate() local 1353 struct nfs_fs_context *ctx = nfs_fc2context(fc); nfs_get_tree() local 1372 struct nfs_fs_context *src = nfs_fc2context(src_fc), *ctx; nfs_fs_context_dup() local 1398 struct nfs_fs_context *ctx = nfs_fc2context(fc); nfs_fs_context_free() local 1432 struct nfs_fs_context *ctx; nfs_init_fs_context() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/ |
H A D | exynos5433_drm_decon.c | 95 static inline void decon_set_bits(struct decon_context *ctx, u32 reg, u32 mask, in decon_set_bits() argument 98 val = (val & mask) | (readl(ctx->addr + reg) & ~mask); in decon_set_bits() 99 writel(val, ctx->addr + reg); in decon_set_bits() 104 struct decon_context *ctx = crtc->ctx; in decon_enable_vblank() local 113 writel(val, ctx->addr + DECON_VIDINTCON0); in decon_enable_vblank() 115 enable_irq(ctx->irq); in decon_enable_vblank() 116 if (!(ctx->out_type & I80_HW_TRG)) in decon_enable_vblank() 117 enable_irq(ctx->te_irq); in decon_enable_vblank() 124 struct decon_context *ctx in decon_disable_vblank() local 134 decon_get_frame_count(struct decon_context *ctx, bool end) decon_get_frame_count() argument 175 decon_setup_trigger(struct decon_context *ctx) decon_setup_trigger() argument 197 struct decon_context *ctx = crtc->ctx; decon_commit() local 263 decon_win_set_bldeq(struct decon_context *ctx, unsigned int win, unsigned int alpha, unsigned int pixel_alpha) decon_win_set_bldeq() argument 289 decon_win_set_bldmod(struct decon_context *ctx, unsigned int win, unsigned int alpha, unsigned int pixel_alpha) decon_win_set_bldmod() argument 318 decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win, struct drm_framebuffer *fb) decon_win_set_pixfmt() argument 382 decon_shadow_protect(struct decon_context *ctx, bool protect) decon_shadow_protect() argument 390 struct decon_context *ctx = crtc->ctx; decon_atomic_begin() local 404 struct decon_context *ctx = crtc->ctx; decon_update_plane() local 459 struct decon_context *ctx = crtc->ctx; decon_disable_plane() local 467 struct decon_context *ctx = crtc->ctx; decon_atomic_flush() local 483 decon_swreset(struct decon_context *ctx) decon_swreset() argument 516 struct decon_context *ctx = crtc->ctx; decon_atomic_enable() local 529 struct decon_context *ctx = crtc->ctx; decon_atomic_disable() local 553 struct decon_context *ctx = dev_id; decon_te_irq_handler() local 562 struct decon_context *ctx = crtc->ctx; decon_clear_channels() local 589 struct decon_context *ctx = crtc->ctx; decon_mode_valid() local 616 struct decon_context *ctx = dev_get_drvdata(dev); decon_bind() local 653 struct decon_context *ctx = dev_get_drvdata(dev); decon_unbind() local 666 decon_handle_vblank(struct decon_context *ctx) decon_handle_vblank() argument 686 struct decon_context *ctx = dev_id; decon_irq_handler() local 710 struct decon_context *ctx = dev_get_drvdata(dev); exynos5433_decon_suspend() local 721 struct decon_context *ctx = dev_get_drvdata(dev); exynos5433_decon_resume() local 760 decon_conf_irq(struct decon_context *ctx, const char *name, irq_handler_t handler, unsigned long int flags) decon_conf_irq() argument 791 struct decon_context *ctx; exynos5433_decon_probe() local [all...] |
H A D | exynos_drm_fimc.c | 115 static u32 fimc_read(struct fimc_context *ctx, u32 reg) in fimc_read() argument 117 return readl(ctx->regs + reg); in fimc_read() 120 static void fimc_write(struct fimc_context *ctx, u32 val, u32 reg) in fimc_write() argument 122 writel(val, ctx->regs + reg); in fimc_write() 125 static void fimc_set_bits(struct fimc_context *ctx, u32 reg, u32 bits) in fimc_set_bits() argument 127 void __iomem *r = ctx->regs + reg; in fimc_set_bits() 132 static void fimc_clear_bits(struct fimc_context *ctx, u32 reg, u32 bits) in fimc_clear_bits() argument 134 void __iomem *r = ctx->regs + reg; in fimc_clear_bits() 139 static void fimc_sw_reset(struct fimc_context *ctx) in fimc_sw_reset() argument 144 cfg = fimc_read(ctx, EXYNOS_CISTATU in fimc_sw_reset() 164 fimc_set_type_ctrl(struct fimc_context *ctx) fimc_set_type_ctrl() argument 184 fimc_handle_jpeg(struct fimc_context *ctx, bool enable) fimc_handle_jpeg() argument 199 fimc_mask_irq(struct fimc_context *ctx, bool enable) fimc_mask_irq() argument 214 fimc_clear_irq(struct fimc_context *ctx) fimc_clear_irq() argument 219 fimc_check_ovf(struct fimc_context *ctx) fimc_check_ovf() argument 243 fimc_check_frame_end(struct fimc_context *ctx) fimc_check_frame_end() argument 260 fimc_get_buf_id(struct fimc_context *ctx) fimc_get_buf_id() argument 286 fimc_handle_lastend(struct fimc_context *ctx, bool enable) fimc_handle_lastend() argument 301 fimc_src_set_fmt_order(struct fimc_context *ctx, u32 fmt) fimc_src_set_fmt_order() argument 366 fimc_src_set_fmt(struct fimc_context *ctx, u32 fmt, bool tiled) fimc_src_set_fmt() argument 418 fimc_src_set_transf(struct fimc_context *ctx, unsigned int rotation) fimc_src_set_transf() argument 469 fimc_set_window(struct fimc_context *ctx, struct exynos_drm_ipp_buffer *buf) fimc_set_window() argument 504 fimc_src_set_size(struct fimc_context *ctx, struct exynos_drm_ipp_buffer *buf) fimc_src_set_size() argument 553 fimc_src_set_addr(struct fimc_context *ctx, struct exynos_drm_ipp_buffer *buf) fimc_src_set_addr() argument 561 fimc_dst_set_fmt_order(struct fimc_context *ctx, u32 fmt) fimc_dst_set_fmt_order() argument 632 fimc_dst_set_fmt(struct fimc_context *ctx, u32 fmt, bool tiled) fimc_dst_set_fmt() argument 691 fimc_dst_set_transf(struct fimc_context *ctx, unsigned int rotation) fimc_dst_set_transf() argument 738 fimc_set_prescaler(struct fimc_context *ctx, struct fimc_scaler *sc, struct drm_exynos_ipp_task_rect *src, struct drm_exynos_ipp_task_rect *dst) fimc_set_prescaler() argument 807 fimc_set_scaler(struct fimc_context *ctx, struct fimc_scaler *sc) fimc_set_scaler() argument 846 fimc_dst_set_size(struct fimc_context *ctx, struct exynos_drm_ipp_buffer *buf) fimc_dst_set_size() argument 906 fimc_dst_set_buf_seq(struct fimc_context *ctx, u32 buf_id, bool enqueue) fimc_dst_set_buf_seq() argument 936 fimc_dst_set_addr(struct fimc_context *ctx, struct exynos_drm_ipp_buffer *buf) fimc_dst_set_addr() argument 950 struct fimc_context *ctx = dev_id; fimc_irq_handler() local 983 fimc_clear_addr(struct fimc_context *ctx) fimc_clear_addr() argument 1000 fimc_reset(struct fimc_context *ctx) fimc_reset() argument 1011 fimc_start(struct fimc_context *ctx) fimc_start() argument 1057 fimc_stop(struct fimc_context *ctx) fimc_stop() argument 1086 struct fimc_context *ctx = fimc_commit() local 1109 struct fimc_context *ctx = fimc_abort() local 1131 struct fimc_context *ctx = dev_get_drvdata(dev); fimc_bind() local 1152 struct fimc_context *ctx = dev_get_drvdata(dev); fimc_unbind() local 1165 fimc_put_clocks(struct fimc_context *ctx) fimc_put_clocks() argument 1177 fimc_setup_clocks(struct fimc_context *ctx) fimc_setup_clocks() argument 1265 struct fimc_context *ctx; fimc_probe() local 1373 struct fimc_context *ctx = get_fimc_context(dev); fimc_remove() local 1387 struct fimc_context *ctx = get_fimc_context(dev); fimc_runtime_suspend() local 1396 struct fimc_context *ctx = get_fimc_context(dev); fimc_runtime_resume() local [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | context.c | 277 * Initialize fields of gl_current_attrib (aka ctx->Current.*) 280 _mesa_init_current(struct gl_context *ctx) in _mesa_init_current() argument 285 for (i = 0; i < ARRAY_SIZE(ctx->Current.Attrib); i++) { in _mesa_init_current() 286 ASSIGN_4V( ctx->Current.Attrib[i], 0.0, 0.0, 0.0, 1.0 ); in _mesa_init_current() 290 ASSIGN_4V( ctx->Current.Attrib[VERT_ATTRIB_NORMAL], 0.0, 0.0, 1.0, 1.0 ); in _mesa_init_current() 291 ASSIGN_4V( ctx->Current.Attrib[VERT_ATTRIB_COLOR0], 1.0, 1.0, 1.0, 1.0 ); in _mesa_init_current() 292 ASSIGN_4V( ctx->Current.Attrib[VERT_ATTRIB_COLOR1], 0.0, 0.0, 0.0, 1.0 ); in _mesa_init_current() 293 ASSIGN_4V( ctx->Current.Attrib[VERT_ATTRIB_COLOR_INDEX], 1.0, 0.0, 0.0, 1.0 ); in _mesa_init_current() 294 ASSIGN_4V( ctx->Current.Attrib[VERT_ATTRIB_EDGEFLAG], 1.0, 0.0, 0.0, 1.0 ); in _mesa_init_current() 398 * Initialize fields of gl_constants (aka ctx 620 check_context_limits(struct gl_context *ctx) check_context_limits() argument 679 init_attrib_groups(struct gl_context *ctx) init_attrib_groups() argument 757 update_default_objects(struct gl_context *ctx) update_default_objects() argument 934 _mesa_initialize_dispatch_tables(struct gl_context *ctx) _mesa_initialize_dispatch_tables() argument 975 _mesa_initialize_context(struct gl_context *ctx, gl_api api, bool no_error, const struct gl_config *visual, struct gl_context *share_list, const struct dd_function_table *driverFunctions) _mesa_initialize_context() argument 1103 _mesa_free_context_data(struct gl_context *ctx, bool destroy_debug_output) _mesa_free_context_data() argument 1318 check_compatible(const struct gl_context *ctx, const struct gl_framebuffer *buffer) check_compatible() argument 1352 check_init_viewport(struct gl_context *ctx, GLuint width, GLuint height) check_init_viewport() argument 1374 handle_first_current(struct gl_context *ctx) handle_first_current() argument 1578 _mesa_share_state(struct gl_context *ctx, struct gl_context *ctxToShare) _mesa_share_state() argument 1630 _mesa_get_dispatch(struct gl_context *ctx) _mesa_get_dispatch() argument 1646 _mesa_flush(struct gl_context *ctx) _mesa_flush() argument [all...] |
/kernel/linux/linux-6.6/crypto/asymmetric_keys/ |
H A D | pkcs7_parser.c | 117 struct pkcs7_parse_context *ctx; in pkcs7_parse_message() local 121 ctx = kzalloc(sizeof(struct pkcs7_parse_context), GFP_KERNEL); in pkcs7_parse_message() 122 if (!ctx) in pkcs7_parse_message() 124 ctx->msg = kzalloc(sizeof(struct pkcs7_message), GFP_KERNEL); in pkcs7_parse_message() 125 if (!ctx->msg) in pkcs7_parse_message() 127 ctx->sinfo = kzalloc(sizeof(struct pkcs7_signed_info), GFP_KERNEL); in pkcs7_parse_message() 128 if (!ctx->sinfo) in pkcs7_parse_message() 130 ctx->sinfo->sig = kzalloc(sizeof(struct public_key_signature), in pkcs7_parse_message() 132 if (!ctx->sinfo->sig) in pkcs7_parse_message() 135 ctx in pkcs7_parse_message() 208 struct pkcs7_parse_context *ctx = context; pkcs7_note_OID() local 227 struct pkcs7_parse_context *ctx = context; pkcs7_sig_note_digest_algo() local 274 struct pkcs7_parse_context *ctx = context; pkcs7_sig_note_pkey_algo() local 312 struct pkcs7_parse_context *ctx = context; pkcs7_check_content_type() local 329 struct pkcs7_parse_context *ctx = context; pkcs7_note_signeddata_version() local 363 struct pkcs7_parse_context *ctx = context; pkcs7_note_signerinfo_version() local 406 struct pkcs7_parse_context *ctx = context; pkcs7_extract_cert() local 446 struct pkcs7_parse_context *ctx = context; pkcs7_note_certificate_list() local 464 struct pkcs7_parse_context *ctx = context; pkcs7_note_content() local 484 struct pkcs7_parse_context *ctx = context; pkcs7_note_data() local 501 struct pkcs7_parse_context *ctx = context; pkcs7_sig_note_authenticated_attr() local 584 struct pkcs7_parse_context *ctx = context; pkcs7_sig_note_set_of_authattrs() local 612 struct pkcs7_parse_context *ctx = context; pkcs7_sig_note_serial() local 625 struct pkcs7_parse_context *ctx = context; pkcs7_sig_note_issuer() local 638 struct pkcs7_parse_context *ctx = context; pkcs7_sig_note_skid() local 654 struct pkcs7_parse_context *ctx = context; pkcs7_sig_note_signature() local 671 struct pkcs7_parse_context *ctx = context; pkcs7_note_signed_info() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/ |
H A D | file.c | 160 struct spu_context *ctx = i->i_ctx; in spufs_mem_open() local 162 mutex_lock(&ctx->mapping_lock); in spufs_mem_open() 163 file->private_data = ctx; in spufs_mem_open() 165 ctx->local_store = inode->i_mapping; in spufs_mem_open() 166 mutex_unlock(&ctx->mapping_lock); in spufs_mem_open() 174 struct spu_context *ctx = i->i_ctx; in spufs_mem_release() local 176 mutex_lock(&ctx->mapping_lock); in spufs_mem_release() 178 ctx->local_store = NULL; in spufs_mem_release() 179 mutex_unlock(&ctx->mapping_lock); in spufs_mem_release() 184 spufs_mem_dump(struct spu_context *ctx, struc argument 193 struct spu_context *ctx = file->private_data; spufs_mem_read() local 210 struct spu_context *ctx = file->private_data; spufs_mem_write() local 233 struct spu_context *ctx = vma->vm_file->private_data; spufs_mem_mmap_fault() local 265 struct spu_context *ctx = vma->vm_file->private_data; spufs_mem_mmap_access() local 314 struct spu_context *ctx = vmf->vma->vm_file->private_data; spufs_ps_fault() local 396 struct spu_context *ctx = data; spufs_cntl_get() local 410 struct spu_context *ctx = data; spufs_cntl_set() local 425 struct spu_context *ctx = i->i_ctx; spufs_cntl_open() local 440 struct spu_context *ctx = i->i_ctx; spufs_cntl_release() local 469 spufs_regs_dump(struct spu_context *ctx, struct coredump_params *cprm) spufs_regs_dump() argument 480 struct spu_context *ctx = file->private_data; spufs_regs_read() local 500 struct spu_context *ctx = file->private_data; spufs_regs_write() local 526 spufs_fpcr_dump(struct spu_context *ctx, struct coredump_params *cprm) spufs_fpcr_dump() argument 537 struct spu_context *ctx = file->private_data; spufs_fpcr_read() local 552 struct spu_context *ctx = file->private_data; spufs_fpcr_write() local 597 struct spu_context *ctx = file->private_data; spufs_mbox_read() local 643 struct spu_context *ctx = file->private_data; spufs_mbox_stat_read() local 671 spu_ibox_read(struct spu_context *ctx, u32 *data) spu_ibox_read() argument 679 struct spu_context *ctx = spu->ctx; spufs_ibox_callback() local 700 struct spu_context *ctx = file->private_data; spufs_ibox_read() local 752 struct spu_context *ctx = file->private_data; spufs_ibox_poll() local 778 struct spu_context *ctx = file->private_data; spufs_ibox_stat_read() local 804 spu_wbox_write(struct spu_context *ctx, u32 data) spu_wbox_write() argument 812 struct spu_context *ctx = spu->ctx; spufs_wbox_callback() local 833 struct spu_context *ctx = file->private_data; spufs_wbox_write() local 884 struct spu_context *ctx = file->private_data; spufs_wbox_poll() local 910 struct spu_context *ctx = file->private_data; spufs_wbox_stat_read() local 938 struct spu_context *ctx = i->i_ctx; spufs_signal1_open() local 952 struct spu_context *ctx = i->i_ctx; spufs_signal1_release() local 961 spufs_signal1_dump(struct spu_context *ctx, struct coredump_params *cprm) spufs_signal1_dump() argument 970 __spufs_signal1_read(struct spu_context *ctx, char __user *buf, size_t len) __spufs_signal1_read() argument 987 struct spu_context *ctx = file->private_data; spufs_signal1_read() local 1001 struct spu_context *ctx; spufs_signal1_write() local 1073 struct spu_context *ctx = i->i_ctx; spufs_signal2_open() local 1087 struct spu_context *ctx = i->i_ctx; spufs_signal2_release() local 1096 spufs_signal2_dump(struct spu_context *ctx, struct coredump_params *cprm) spufs_signal2_dump() argument 1105 __spufs_signal2_read(struct spu_context *ctx, char __user *buf, size_t len) __spufs_signal2_read() argument 1121 struct spu_context *ctx = file->private_data; spufs_signal2_read() local 1136 struct spu_context *ctx; spufs_signal2_write() local 1245 struct spu_context *ctx = data; spufs_signal1_type_set() local 1257 spufs_signal1_type_get(struct spu_context *ctx) spufs_signal1_type_get() argument 1267 struct spu_context *ctx = data; spufs_signal2_type_set() local 1279 spufs_signal2_type_get(struct spu_context *ctx) spufs_signal2_type_get() argument 1318 struct spu_context *ctx = i->i_ctx; spufs_mss_open() local 1333 struct spu_context *ctx = i->i_ctx; spufs_mss_release() local 1377 struct spu_context *ctx = i->i_ctx; spufs_psmap_open() local 1391 struct spu_context *ctx = i->i_ctx; spufs_psmap_release() local 1440 struct spu_context *ctx = i->i_ctx; spufs_mfc_open() local 1461 struct spu_context *ctx = i->i_ctx; spufs_mfc_release() local 1473 struct spu_context *ctx = spu->ctx; spufs_mfc_callback() local 1479 spufs_read_mfc_tagstatus(struct spu_context *ctx, u32 *status) spufs_read_mfc_tagstatus() argument 1497 struct spu_context *ctx = file->private_data; spufs_mfc_read() local 1602 spu_send_mfc_command(struct spu_context *ctx, struct mfc_dma_command cmd, int *error) spu_send_mfc_command() argument 1623 struct spu_context *ctx = file->private_data; spufs_mfc_write() local 1672 struct spu_context *ctx = file->private_data; spufs_mfc_poll() local 1702 struct spu_context *ctx = file->private_data; spufs_mfc_flush() local 1752 struct spu_context *ctx = data; spufs_npc_set() local 1764 spufs_npc_get(struct spu_context *ctx) spufs_npc_get() argument 1773 struct spu_context *ctx = data; spufs_decr_set() local 1786 spufs_decr_get(struct spu_context *ctx) spufs_decr_get() argument 1796 struct spu_context *ctx = data; spufs_decr_status_set() local 1811 spufs_decr_status_get(struct spu_context *ctx) spufs_decr_status_get() argument 1824 struct spu_context *ctx = data; spufs_event_mask_set() local 1837 spufs_event_mask_get(struct spu_context *ctx) spufs_event_mask_get() argument 1847 spufs_event_status_get(struct spu_context *ctx) spufs_event_status_get() argument 1861 struct spu_context *ctx = data; spufs_srr0_set() local 1874 spufs_srr0_get(struct spu_context *ctx) spufs_srr0_get() argument 1882 spufs_id_get(struct spu_context *ctx) spufs_id_get() argument 1896 spufs_object_id_get(struct spu_context *ctx) spufs_object_id_get() argument 1904 struct spu_context *ctx = data; spufs_object_id_set() local 1913 spufs_lslr_get(struct spu_context *ctx) spufs_lslr_get() argument 1923 struct spu_context *ctx = i->i_ctx; spufs_info_open() local 1930 struct spu_context *ctx = s->private; spufs_caps_show() local 1951 spufs_mbox_info_dump(struct spu_context *ctx, struct coredump_params *cprm) spufs_mbox_info_dump() argument 1963 struct spu_context *ctx = file->private_data; spufs_mbox_info_read() local 1989 spufs_ibox_info_dump(struct spu_context *ctx, struct coredump_params *cprm) spufs_ibox_info_dump() argument 2001 struct spu_context *ctx = file->private_data; spufs_ibox_info_read() local 2027 spufs_wbox_info_cnt(struct spu_context *ctx) spufs_wbox_info_cnt() argument 2032 spufs_wbox_info_dump(struct spu_context *ctx, struct coredump_params *cprm) spufs_wbox_info_dump() argument 2042 struct spu_context *ctx = file->private_data; spufs_wbox_info_read() local 2065 spufs_get_dma_info(struct spu_context *ctx, struct spu_dma_info *info) spufs_get_dma_info() argument 2086 spufs_dma_info_dump(struct spu_context *ctx, struct coredump_params *cprm) spufs_dma_info_dump() argument 2098 struct spu_context *ctx = file->private_data; spufs_dma_info_read() local 2120 spufs_get_proxydma_info(struct spu_context *ctx, struct spu_proxydma_info *info) spufs_get_proxydma_info() argument 2140 spufs_proxydma_info_dump(struct spu_context *ctx, struct coredump_params *cprm) spufs_proxydma_info_dump() argument 2152 struct spu_context *ctx = file->private_data; spufs_proxydma_info_read() local 2179 struct spu_context *ctx = s->private; spufs_show_tid() local 2201 spufs_acct_time(struct spu_context *ctx, enum spu_utilization_state state) spufs_acct_time() argument 2222 spufs_slb_flts(struct spu_context *ctx) spufs_slb_flts() argument 2234 spufs_class2_intrs(struct spu_context *ctx) spufs_class2_intrs() argument 2249 struct spu_context *ctx = s->private; spufs_show_stat() local 2287 spufs_switch_log_used(struct spu_context *ctx) spufs_switch_log_used() argument 2293 spufs_switch_log_avail(struct spu_context *ctx) spufs_switch_log_avail() argument 2300 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; spufs_switch_log_open() local 2331 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; spufs_switch_log_release() local 2345 switch_log_sprint(struct spu_context *ctx, char *tbuf, int n) switch_log_sprint() argument 2364 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; spufs_switch_log_read() local 2434 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; spufs_switch_log_poll() local 2465 spu_switch_log_notify(struct spu *spu, struct spu_context *ctx, u32 type, u32 val) spu_switch_log_notify() argument 2490 struct spu_context *ctx = s->private; spufs_show_ctx() local [all...] |