/third_party/python/Modules/_decimal/libmpdec/ |
H A D | mpdecimal.h | 179 /* type for dec->len, dec->exp, ctx->prec */ 308 void mpd_init(mpd_context_t *ctx, mpd_ssize_t prec); 310 void mpd_maxcontext(mpd_context_t *ctx); 311 void mpd_defaultcontext(mpd_context_t *ctx); 312 void mpd_basiccontext(mpd_context_t *ctx); 313 int mpd_ieee_context(mpd_context_t *ctx, int bits); 315 mpd_ssize_t mpd_getprec(const mpd_context_t *ctx); 316 mpd_ssize_t mpd_getemax(const mpd_context_t *ctx); 317 mpd_ssize_t mpd_getemin(const mpd_context_t *ctx); 318 int mpd_getround(const mpd_context_t *ctx); [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_bpf_cookie.c | 23 static void update(void *ctx, __u64 *res) in update() argument 28 *res |= bpf_get_attach_cookie(ctx); in update() 32 int handle_kprobe(struct pt_regs *ctx) in handle_kprobe() argument 34 update(ctx, &kprobe_res); in handle_kprobe() 39 int handle_kretprobe(struct pt_regs *ctx) in handle_kretprobe() argument 41 update(ctx, &kretprobe_res); in handle_kretprobe() 46 int handle_uprobe(struct pt_regs *ctx) in handle_uprobe() argument 48 update(ctx, &uprobe_res); in handle_uprobe() 53 int handle_uretprobe(struct pt_regs *ctx) in handle_uretprobe() argument 55 update(ctx, in handle_uretprobe() 65 handle_tp1(struct pt_regs *ctx) handle_tp1() argument 71 handle_tp2(struct pt_regs *ctx) handle_tp2() argument 77 handle_tp3(void *ctx) handle_tp3() argument 84 handle_pe(struct pt_regs *ctx) handle_pe() argument [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | conservativeraster.c | 42 GET_CURRENT_CONTEXT(ctx); in conservative_raster_parameter() 44 if (!no_error && !ctx->Extensions.NV_conservative_raster_dilate && in conservative_raster_parameter() 45 !ctx->Extensions.NV_conservative_raster_pre_snap_triangles) { in conservative_raster_parameter() 46 _mesa_error(ctx, GL_INVALID_OPERATION, "%s not supported", func); in conservative_raster_parameter() 51 _mesa_debug(ctx, "%s(%s, %g)\n", in conservative_raster_parameter() 54 ASSERT_OUTSIDE_BEGIN_END(ctx); in conservative_raster_parameter() 58 if (!no_error && !ctx->Extensions.NV_conservative_raster_dilate) in conservative_raster_parameter() 62 _mesa_error(ctx, GL_INVALID_VALUE, "%s(param=%g)", func, param); in conservative_raster_parameter() 66 FLUSH_VERTICES(ctx, 0, 0); in conservative_raster_parameter() 67 ctx in conservative_raster_parameter() 130 _mesa_init_conservative_raster(struct gl_context *ctx) _mesa_init_conservative_raster() argument [all...] |
/third_party/protobuf/csharp/src/Google.Protobuf/ |
H A D | FieldCodec.cs | 222 return new FieldCodec<string>((ref ParseContext ctx) => ctx.ReadString(), (ref WriteContext ctx, string value) => ctx.WriteString(value), CodedOutputStream.ComputeStringSize, tag, defaultValue); in ForString() 233 return new FieldCodec<ByteString>((ref ParseContext ctx) => ctx.ReadBytes(), (ref WriteContext ctx, ByteString value) => ctx.WriteBytes(value), CodedOutputStream.ComputeBytesSize, tag, defaultValue); in ForBytes() 244 return new FieldCodec<bool>((ref ParseContext ctx) => ctx in ForBool() 414 (ref ParseContext ctx, ref T v) => global() field in Google.Protobuf.FieldCodec 459 (ref ParseContext ctx, ref T v) => global() field [all...] |
/third_party/mesa3d/src/freedreno/rnn/ |
H A D | rnndec.c | 42 int rnndec_varadd(struct rnndeccontext *ctx, char *varset, const char *variant) { in rnndec_varadd() argument 43 struct rnnenum *en = rnn_findenum(ctx->db, varset); in rnndec_varadd() 54 ADDARRAY(ctx->vars, ci); in rnndec_varadd() 63 for (j = 0; j < ctx->varsnum; j++) { in rnndec_varadd() 64 if (ctx->vars[j]->en == en) { in rnndec_varadd() 65 ctx->vars[j]->variant = i; in rnndec_varadd() 70 if (i == ctx->varsnum) { in rnndec_varadd() 74 ADDARRAY(ctx->vars, ci); in rnndec_varadd() 80 int rnndec_varmatch(struct rnndeccontext *ctx, struct rnnvarinfo *vi) { in rnndec_varmatch() argument 86 for (j = 0; j < ctx in rnndec_varmatch() 130 rnndec_decode_enum_val(struct rnndeccontext *ctx, struct rnnvalue **vals, int valsnum, uint64_t value) rnndec_decode_enum_val() argument 141 rnndec_decode_enum(struct rnndeccontext *ctx, const char *enumname, uint64_t enumval) rnndec_decode_enum() argument 159 rnndec_decodeval(struct rnndeccontext *ctx, struct rnntypeinfo *ti, uint64_t value) rnndec_decodeval() argument 326 appendidx(struct rnndeccontext *ctx, char *name, uint64_t idx, struct rnnenum *index) appendidx() argument 370 trymatch(struct rnndeccontext *ctx, struct rnndelem **elems, int elemsnum, uint64_t addr, int write, int dwidth, uint64_t *indices, int indicesnum) trymatch() argument 472 rnndec_checkaddr(struct rnndeccontext *ctx, struct rnndomain *domain, uint64_t addr, int write) rnndec_checkaddr() argument 481 rnndec_decodeaddr(struct rnndeccontext *ctx, struct rnndomain *domain, uint64_t addr, int write) rnndec_decodeaddr() argument 490 tryreg(struct rnndeccontext *ctx, struct rnndelem **elems, int elemsnum, int dwidth, const char *name, uint64_t *offset) tryreg() argument 551 rnndec_decodereg(struct rnndeccontext *ctx, struct rnndomain *domain, const char *name) rnndec_decodereg() argument [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/ |
H A D | cipher_des_hw.c | 19 static int cipher_hw_des_initkey(PROV_CIPHER_CTX *ctx, in cipher_hw_des_initkey() argument 22 PROV_DES_CTX *dctx = (PROV_DES_CTX *)ctx; in cipher_hw_des_initkey() 29 if (ctx->mode == EVP_CIPH_CBC_MODE) { in cipher_hw_des_initkey() 31 dctx->dstream.cbc = ctx->enc ? des_t4_cbc_encrypt : in cipher_hw_des_initkey() 51 static int cipher_hw_des_ecb_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, in cipher_hw_des_ecb_cipher() argument 54 size_t i, bl = ctx->blocksize; in cipher_hw_des_ecb_cipher() 55 DES_key_schedule *key = &(((PROV_DES_CTX *)ctx)->dks.ks); in cipher_hw_des_ecb_cipher() 61 (const_DES_cblock *)(out + i), key, ctx->enc); in cipher_hw_des_ecb_cipher() 65 static int cipher_hw_des_cbc_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, in cipher_hw_des_cbc_cipher() argument 68 PROV_DES_CTX *dctx = (PROV_DES_CTX *)ctx; in cipher_hw_des_cbc_cipher() 89 cipher_hw_des_ofb64_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) cipher_hw_des_ofb64_cipher() argument 108 cipher_hw_des_cfb64_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) cipher_hw_des_cfb64_cipher() argument 134 cipher_hw_des_cfb1_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) cipher_hw_des_cfb1_cipher() argument 162 cipher_hw_des_cfb8_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) cipher_hw_des_cfb8_cipher() argument [all...] |
/third_party/openssl/providers/implementations/ciphers/ |
H A D | cipher_des_hw.c | 19 static int cipher_hw_des_initkey(PROV_CIPHER_CTX *ctx, in cipher_hw_des_initkey() argument 22 PROV_DES_CTX *dctx = (PROV_DES_CTX *)ctx; in cipher_hw_des_initkey() 29 if (ctx->mode == EVP_CIPH_CBC_MODE) { in cipher_hw_des_initkey() 31 dctx->dstream.cbc = ctx->enc ? des_t4_cbc_encrypt : in cipher_hw_des_initkey() 51 static int cipher_hw_des_ecb_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, in cipher_hw_des_ecb_cipher() argument 54 size_t i, bl = ctx->blocksize; in cipher_hw_des_ecb_cipher() 55 DES_key_schedule *key = &(((PROV_DES_CTX *)ctx)->dks.ks); in cipher_hw_des_ecb_cipher() 61 (const_DES_cblock *)(out + i), key, ctx->enc); in cipher_hw_des_ecb_cipher() 65 static int cipher_hw_des_cbc_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, in cipher_hw_des_cbc_cipher() argument 68 PROV_DES_CTX *dctx = (PROV_DES_CTX *)ctx; in cipher_hw_des_cbc_cipher() 89 cipher_hw_des_ofb64_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) cipher_hw_des_ofb64_cipher() argument 108 cipher_hw_des_cfb64_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) cipher_hw_des_cfb64_cipher() argument 134 cipher_hw_des_cfb1_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) cipher_hw_des_cfb1_cipher() argument 162 cipher_hw_des_cfb8_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) cipher_hw_des_cfb8_cipher() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | indeo3.c | 153 static av_cold void free_frame_buffers(Indeo3DecodeContext *ctx) in free_frame_buffers() argument 157 ctx->width = ctx->height = 0; in free_frame_buffers() 160 av_freep(&ctx->planes[p].buffers[0]); in free_frame_buffers() 161 av_freep(&ctx->planes[p].buffers[1]); in free_frame_buffers() 162 ctx->planes[p].pixels[0] = ctx->planes[p].pixels[1] = 0; in free_frame_buffers() 167 static av_cold int allocate_frame_buffers(Indeo3DecodeContext *ctx, in allocate_frame_buffers() argument 182 ctx->width = luma_width ; in allocate_frame_buffers() 183 ctx in allocate_frame_buffers() 233 copy_cell(Indeo3DecodeContext *ctx, Plane *plane, Cell *cell) copy_cell() argument 427 decode_cell_data(Indeo3DecodeContext *ctx, Cell *cell, uint8_t *block, uint8_t *ref_block, ptrdiff_t row_offset, int h_zoom, int v_zoom, int mode, const vqEntry *delta[2], int swap_quads[2], const uint8_t **data_ptr, const uint8_t *last_ptr) decode_cell_data() argument 583 decode_cell(Indeo3DecodeContext *ctx, AVCodecContext *avctx, Plane *plane, Cell *cell, const uint8_t *data_ptr, const uint8_t *last_ptr) decode_cell() argument 754 parse_bintree(Indeo3DecodeContext *ctx, AVCodecContext *avctx, Plane *plane, int code, Cell *ref_cell, const int depth, const int strip_width) parse_bintree() argument 855 decode_plane(Indeo3DecodeContext *ctx, AVCodecContext *avctx, Plane *plane, const uint8_t *data, int32_t data_size, int32_t strip_width) decode_plane() argument 896 decode_frame_headers(Indeo3DecodeContext *ctx, AVCodecContext *avctx, const uint8_t *buf, int buf_size) decode_frame_headers() argument 1055 Indeo3DecodeContext *ctx = avctx->priv_data; decode_init() local 1071 Indeo3DecodeContext *ctx = avctx->priv_data; decode_frame() local [all...] |
H A D | fic.c | 139 static int fic_decode_block(FICContext *ctx, GetBitContext *gb, in fic_decode_block() argument 164 ctx->qmat[ff_zigzag_direct[i]]; in fic_decode_block() 174 FICContext *ctx = avctx->priv_data; in fic_decode_slice() local 188 int stride = ctx->frame->linesize[p]; in fic_decode_slice() 189 uint8_t* dst = ctx->frame->data[p] + (y_off >> !!p) * stride; in fic_decode_slice() 192 for (x = 0; x < (ctx->aligned_width >> !!p); x += 8) { in fic_decode_slice() 195 if ((ret = fic_decode_block(ctx, &gb, dst + x, stride, in fic_decode_slice() 218 FICContext *ctx = avctx->priv_data; in fic_draw_cursor() local 219 uint8_t *ptr = ctx->cursor_buf; in fic_draw_cursor() 246 dstptr[i] = ctx in fic_draw_cursor() 273 FICContext *ctx = avctx->priv_data; fic_decode_frame() local 447 FICContext *ctx = avctx->priv_data; fic_decode_close() local 458 FICContext *ctx = avctx->priv_data; fic_decode_init() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/s5p-mfc/ |
H A D | s5p_mfc_enc.c | 1094 static int s5p_mfc_ctx_ready(struct s5p_mfc_ctx *ctx) in s5p_mfc_ctx_ready() argument 1097 ctx->src_queue_cnt, ctx->dst_queue_cnt, ctx->state); in s5p_mfc_ctx_ready() 1099 if (ctx->state == MFCINST_GOT_INST && ctx->dst_queue_cnt >= 1) in s5p_mfc_ctx_ready() 1102 if ((ctx->state == MFCINST_RUNNING || in s5p_mfc_ctx_ready() 1103 ctx->state == MFCINST_HEAD_PRODUCED) && in s5p_mfc_ctx_ready() 1104 ctx->src_queue_cnt >= 1 && ctx in s5p_mfc_ctx_ready() 1114 cleanup_ref_queue(struct s5p_mfc_ctx *ctx) cleanup_ref_queue() argument 1133 enc_pre_seq_start(struct s5p_mfc_ctx *ctx) enc_pre_seq_start() argument 1148 enc_post_seq_start(struct s5p_mfc_ctx *ctx) enc_post_seq_start() argument 1190 enc_pre_frame_start(struct s5p_mfc_ctx *ctx) enc_pre_frame_start() argument 1213 enc_post_frame_start(struct s5p_mfc_ctx *ctx) enc_post_frame_start() argument 1362 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_g_fmt() local 1438 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_s_fmt() local 1491 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_reqbufs() local 1570 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_querybuf() local 1604 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_qbuf() local 1628 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_dqbuf() local 1653 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_expbuf() local 1666 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_streamon() local 1679 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_streamoff() local 1771 __enc_update_hevc_qp_ctrls_range(struct s5p_mfc_ctx *ctx, int min, int max) __enc_update_hevc_qp_ctrls_range() argument 1805 struct s5p_mfc_ctx *ctx = ctrl_to_ctx(ctrl); s5p_mfc_enc_s_ctrl() local 2216 struct s5p_mfc_ctx *ctx = ctrl_to_ctx(ctrl); s5p_mfc_enc_g_v_ctrl() local 2252 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_s_parm() local 2269 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_g_parm() local 2286 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_encoder_cmd() local 2386 struct s5p_mfc_ctx *ctx = fh_to_ctx(vq->drv_priv); s5p_mfc_queue_setup() local 2437 struct s5p_mfc_ctx *ctx = fh_to_ctx(vq->drv_priv); s5p_mfc_buf_init() local 2471 struct s5p_mfc_ctx *ctx = fh_to_ctx(vq->drv_priv); s5p_mfc_buf_prepare() local 2506 struct s5p_mfc_ctx *ctx = fh_to_ctx(q->drv_priv); s5p_mfc_start_streaming() local 2537 struct s5p_mfc_ctx *ctx = fh_to_ctx(q->drv_priv); s5p_mfc_stop_streaming() local 2566 struct s5p_mfc_ctx *ctx = fh_to_ctx(vq->drv_priv); s5p_mfc_buf_queue() local 2628 s5p_mfc_enc_ctrls_setup(struct s5p_mfc_ctx *ctx) s5p_mfc_enc_ctrls_setup() argument 2689 s5p_mfc_enc_ctrls_delete(struct s5p_mfc_ctx *ctx) s5p_mfc_enc_ctrls_delete() argument 2698 s5p_mfc_enc_init(struct s5p_mfc_ctx *ctx) s5p_mfc_enc_init() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_enc.c | 1094 static int s5p_mfc_ctx_ready(struct s5p_mfc_ctx *ctx) in s5p_mfc_ctx_ready() argument 1097 ctx->src_queue_cnt, ctx->dst_queue_cnt, ctx->state); in s5p_mfc_ctx_ready() 1099 if (ctx->state == MFCINST_GOT_INST && ctx->dst_queue_cnt >= 1) in s5p_mfc_ctx_ready() 1102 if ((ctx->state == MFCINST_RUNNING || in s5p_mfc_ctx_ready() 1103 ctx->state == MFCINST_HEAD_PRODUCED) && in s5p_mfc_ctx_ready() 1104 ctx->src_queue_cnt >= 1 && ctx in s5p_mfc_ctx_ready() 1114 cleanup_ref_queue(struct s5p_mfc_ctx *ctx) cleanup_ref_queue() argument 1133 enc_pre_seq_start(struct s5p_mfc_ctx *ctx) enc_pre_seq_start() argument 1148 enc_post_seq_start(struct s5p_mfc_ctx *ctx) enc_post_seq_start() argument 1190 enc_pre_frame_start(struct s5p_mfc_ctx *ctx) enc_pre_frame_start() argument 1213 enc_post_frame_start(struct s5p_mfc_ctx *ctx) enc_post_frame_start() argument 1360 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_g_fmt() local 1436 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_s_fmt() local 1489 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_reqbufs() local 1568 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_querybuf() local 1602 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_qbuf() local 1626 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_dqbuf() local 1651 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_expbuf() local 1664 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_streamon() local 1677 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_streamoff() local 1769 __enc_update_hevc_qp_ctrls_range(struct s5p_mfc_ctx *ctx, int min, int max) __enc_update_hevc_qp_ctrls_range() argument 1803 struct s5p_mfc_ctx *ctx = ctrl_to_ctx(ctrl); s5p_mfc_enc_s_ctrl() local 2214 struct s5p_mfc_ctx *ctx = ctrl_to_ctx(ctrl); s5p_mfc_enc_g_v_ctrl() local 2250 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_s_parm() local 2267 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_g_parm() local 2284 struct s5p_mfc_ctx *ctx = fh_to_ctx(priv); vidioc_encoder_cmd() local 2384 struct s5p_mfc_ctx *ctx = fh_to_ctx(vq->drv_priv); s5p_mfc_queue_setup() local 2435 struct s5p_mfc_ctx *ctx = fh_to_ctx(vq->drv_priv); s5p_mfc_buf_init() local 2469 struct s5p_mfc_ctx *ctx = fh_to_ctx(vq->drv_priv); s5p_mfc_buf_prepare() local 2504 struct s5p_mfc_ctx *ctx = fh_to_ctx(q->drv_priv); s5p_mfc_start_streaming() local 2535 struct s5p_mfc_ctx *ctx = fh_to_ctx(q->drv_priv); s5p_mfc_stop_streaming() local 2564 struct s5p_mfc_ctx *ctx = fh_to_ctx(vq->drv_priv); s5p_mfc_buf_queue() local 2626 s5p_mfc_enc_ctrls_setup(struct s5p_mfc_ctx *ctx) s5p_mfc_enc_ctrls_setup() argument 2687 s5p_mfc_enc_ctrls_delete(struct s5p_mfc_ctx *ctx) s5p_mfc_enc_ctrls_delete() argument 2696 s5p_mfc_enc_init(struct s5p_mfc_ctx *ctx) s5p_mfc_enc_init() argument [all...] |
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/ |
H A D | qat_algs.c | 112 struct qat_alg_aead_ctx *ctx, in qat_alg_do_precomputes() 116 SHASH_DESC_ON_STACK(shash, ctx->hash_tfm); in qat_alg_do_precomputes() 117 int block_size = crypto_shash_blocksize(ctx->hash_tfm); in qat_alg_do_precomputes() 118 int digest_size = crypto_shash_digestsize(ctx->hash_tfm); in qat_alg_do_precomputes() 123 memset(ctx->ipad, 0, block_size); in qat_alg_do_precomputes() 124 memset(ctx->opad, 0, block_size); in qat_alg_do_precomputes() 125 shash->tfm = ctx->hash_tfm; in qat_alg_do_precomputes() 129 auth_keylen, ctx->ipad); in qat_alg_do_precomputes() 133 memcpy(ctx->opad, ctx in qat_alg_do_precomputes() 111 qat_alg_do_precomputes(struct icp_qat_hw_auth_algo_blk *hash, struct qat_alg_aead_ctx *ctx, const u8 *auth_key, unsigned int auth_keylen) qat_alg_do_precomputes() argument 241 struct qat_alg_aead_ctx *ctx = crypto_aead_ctx(aead_tfm); qat_alg_aead_init_enc_session() local 322 struct qat_alg_aead_ctx *ctx = crypto_aead_ctx(aead_tfm); qat_alg_aead_init_dec_session() local 409 qat_alg_skcipher_init_com(struct qat_alg_skcipher_ctx *ctx, struct icp_qat_fw_la_bulk_req *req, struct icp_qat_hw_cipher_algo_blk *cd, const u8 *key, unsigned int keylen) qat_alg_skcipher_init_com() argument 451 qat_alg_skcipher_init_enc(struct qat_alg_skcipher_ctx *ctx, int alg, const u8 *key, unsigned int keylen, int mode) qat_alg_skcipher_init_enc() argument 486 qat_alg_skcipher_init_dec(struct qat_alg_skcipher_ctx *ctx, int alg, const u8 *key, unsigned int keylen, int mode) qat_alg_skcipher_init_dec() argument 574 qat_alg_skcipher_init_sessions(struct qat_alg_skcipher_ctx *ctx, const u8 *key, unsigned int keylen, int mode) qat_alg_skcipher_init_sessions() argument 592 struct qat_alg_aead_ctx *ctx = crypto_aead_ctx(tfm); qat_alg_aead_rekey() local 606 struct qat_alg_aead_ctx *ctx = crypto_aead_ctx(tfm); qat_alg_aead_newkey() local 658 struct qat_alg_aead_ctx *ctx = crypto_aead_ctx(tfm); qat_alg_aead_setkey() local 669 struct qat_alg_aead_ctx *ctx = qat_req->aead_ctx; qat_aead_alg_callback() local 718 struct qat_alg_skcipher_ctx *ctx = qat_req->skcipher_ctx; qat_alg_update_iv() local 739 struct qat_alg_skcipher_ctx *ctx = qat_req->skcipher_ctx; qat_skcipher_alg_callback() local 787 struct qat_alg_aead_ctx *ctx = crypto_tfm_ctx(tfm); qat_alg_aead_dec() local 833 struct qat_alg_aead_ctx *ctx = crypto_tfm_ctx(tfm); qat_alg_aead_enc() local 875 qat_alg_skcipher_rekey(struct qat_alg_skcipher_ctx *ctx, const u8 *key, unsigned int keylen, int mode) qat_alg_skcipher_rekey() argument 887 qat_alg_skcipher_newkey(struct qat_alg_skcipher_ctx *ctx, const u8 *key, unsigned int keylen, int mode) qat_alg_skcipher_newkey() argument 942 struct qat_alg_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); qat_alg_skcipher_setkey() local 969 struct qat_alg_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); qat_alg_skcipher_xts_setkey() local 1003 struct qat_alg_skcipher_ctx *ctx = qat_req->skcipher_ctx; qat_alg_set_req_iv() local 1021 struct qat_alg_skcipher_ctx *ctx = crypto_tfm_ctx(tfm); qat_alg_skcipher_encrypt() local 1069 struct qat_alg_skcipher_ctx *ctx = crypto_skcipher_ctx(stfm); qat_alg_skcipher_xts_encrypt() local 1088 struct qat_alg_skcipher_ctx *ctx = crypto_tfm_ctx(tfm); qat_alg_skcipher_decrypt() local 1137 struct qat_alg_skcipher_ctx *ctx = crypto_skcipher_ctx(stfm); qat_alg_skcipher_xts_decrypt() local 1156 struct qat_alg_aead_ctx *ctx = crypto_aead_ctx(tfm); qat_alg_aead_init() local 1183 struct qat_alg_aead_ctx *ctx = crypto_aead_ctx(tfm); qat_alg_aead_exit() local 1214 struct qat_alg_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); qat_alg_skcipher_init_xts_tfm() local 1238 struct qat_alg_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); qat_alg_skcipher_exit_tfm() local 1265 struct qat_alg_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); qat_alg_skcipher_exit_xts_tfm() local [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | af_afir.c | 104 static int fir_channel(AVFilterContext *ctx, AVFrame *out, int ch) in fir_channel() argument 106 AudioFIRContext *s = ctx->priv; in fir_channel() 111 fir_quantum_float(ctx, out, ch, offset); in fir_channel() 114 fir_quantum_double(ctx, out, ch, offset); in fir_channel() 122 static int fir_channels(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in fir_channels() argument 129 fir_channel(ctx, out, ch); in fir_channels() 137 AVFilterContext *ctx = outlink->src; in fir_frame() local 148 ff_filter_execute(ctx, fir_channels, out, NULL, in fir_frame() 149 FFMIN(outlink->ch_layout.nb_channels, ff_filter_get_nb_threads(ctx))); in fir_frame() 157 static int init_segment(AVFilterContext *ctx, AudioFIRSegmen argument 213 uninit_segment(AVFilterContext *ctx, AudioFIRSegment *seg) uninit_segment() argument 245 convert_coeffs(AVFilterContext *ctx) convert_coeffs() argument 336 AVFilterContext *ctx = link->dst; check_ir() local 350 activate(AVFilterContext *ctx) activate() argument 437 query_formats(AVFilterContext *ctx) query_formats() argument 488 AVFilterContext *ctx = outlink->src; config_output() local 511 uninit(AVFilterContext *ctx) uninit() argument 530 AVFilterContext *ctx = outlink->src; config_video() local 547 init(AVFilterContext *ctx) init() argument 607 process_command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags) process_command() argument [all...] |
H A D | vf_convolution_opencl.c | 60 ConvolutionOpenCLContext *ctx = avctx->priv; in convolution_opencl_init() local 69 ctx->command_queue = clCreateCommandQueue(ctx->ocf.hwctx->context, in convolution_opencl_init() 70 ctx->ocf.hwctx->device_id, in convolution_opencl_init() 84 ctx->kernel = clCreateKernel(ctx->ocf.program, kernel_name, &cle); in convolution_opencl_init() 88 ctx->initialised = 1; in convolution_opencl_init() 92 if (ctx->command_queue) in convolution_opencl_init() 93 clReleaseCommandQueue(ctx->command_queue); in convolution_opencl_init() 94 if (ctx in convolution_opencl_init() 103 ConvolutionOpenCLContext *ctx = avctx->priv; convolution_opencl_make_filter_params() local 178 ConvolutionOpenCLContext *ctx = avctx->priv; convolution_opencl_filter_frame() local 300 ConvolutionOpenCLContext *ctx = avctx->priv; convolution_opencl_uninit() local [all...] |
H A D | vf_remap_opencl.c | 74 RemapOpenCLContext *ctx = avctx->priv; in remap_opencl_load() local 77 const char *kernel = kernels[ctx->interp]; in remap_opencl_load() 88 ctx->cl_fill_color.s[rgba_map[0]] = ctx->fill_rgba[0] * scale; in remap_opencl_load() 89 ctx->cl_fill_color.s[rgba_map[1]] = ctx->fill_rgba[1] * scale; in remap_opencl_load() 90 ctx->cl_fill_color.s[rgba_map[2]] = ctx->fill_rgba[2] * scale; in remap_opencl_load() 91 ctx->cl_fill_color.s[rgba_map[3]] = ctx in remap_opencl_load() 136 RemapOpenCLContext *ctx = avctx->priv; remap_opencl_process_frame() local 233 AVFilterContext *ctx = outlink->src; config_output() local 286 activate(AVFilterContext *ctx) activate() argument 294 RemapOpenCLContext *ctx = avctx->priv; remap_opencl_uninit() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_ctl.c | 71 static inline u32 dpu_hw_ctl_get_flush_register(struct dpu_hw_ctl *ctx) in dpu_hw_ctl_get_flush_register() argument 73 struct dpu_hw_blk_reg_map *c = &ctx->hw; in dpu_hw_ctl_get_flush_register() 78 static inline void dpu_hw_ctl_trigger_start(struct dpu_hw_ctl *ctx) in dpu_hw_ctl_trigger_start() argument 80 trace_dpu_hw_ctl_trigger_start(ctx->pending_flush_mask, in dpu_hw_ctl_trigger_start() 81 dpu_hw_ctl_get_flush_register(ctx)); in dpu_hw_ctl_trigger_start() 82 DPU_REG_WRITE(&ctx->hw, CTL_START, 0x1); in dpu_hw_ctl_trigger_start() 85 static inline void dpu_hw_ctl_trigger_pending(struct dpu_hw_ctl *ctx) in dpu_hw_ctl_trigger_pending() argument 87 trace_dpu_hw_ctl_trigger_prepare(ctx->pending_flush_mask, in dpu_hw_ctl_trigger_pending() 88 dpu_hw_ctl_get_flush_register(ctx)); in dpu_hw_ctl_trigger_pending() 89 DPU_REG_WRITE(&ctx in dpu_hw_ctl_trigger_pending() 92 dpu_hw_ctl_clear_pending_flush(struct dpu_hw_ctl *ctx) dpu_hw_ctl_clear_pending_flush() argument 99 dpu_hw_ctl_update_pending_flush(struct dpu_hw_ctl *ctx, u32 flushbits) dpu_hw_ctl_update_pending_flush() argument 107 dpu_hw_ctl_update_pending_intf_flush(struct dpu_hw_ctl *ctx, u32 flushbits) dpu_hw_ctl_update_pending_intf_flush() argument 113 dpu_hw_ctl_get_pending_flush(struct dpu_hw_ctl *ctx) dpu_hw_ctl_get_pending_flush() argument 118 dpu_hw_ctl_trigger_flush_v1(struct dpu_hw_ctl *ctx) dpu_hw_ctl_trigger_flush_v1() argument 128 dpu_hw_ctl_trigger_flush(struct dpu_hw_ctl *ctx) dpu_hw_ctl_trigger_flush() argument 135 dpu_hw_ctl_get_bitmask_sspp(struct dpu_hw_ctl *ctx, enum dpu_sspp sspp) dpu_hw_ctl_get_bitmask_sspp() argument 190 dpu_hw_ctl_get_bitmask_mixer(struct dpu_hw_ctl *ctx, enum dpu_lm lm) dpu_hw_ctl_get_bitmask_mixer() argument 223 dpu_hw_ctl_get_bitmask_intf(struct dpu_hw_ctl *ctx, u32 *flushbits, enum dpu_intf intf) dpu_hw_ctl_get_bitmask_intf() argument 245 dpu_hw_ctl_get_bitmask_intf_v1(struct dpu_hw_ctl *ctx, u32 *flushbits, enum dpu_intf intf) dpu_hw_ctl_get_bitmask_intf_v1() argument 252 dpu_hw_ctl_active_get_bitmask_intf(struct dpu_hw_ctl *ctx, u32 *flushbits, enum dpu_intf intf) dpu_hw_ctl_active_get_bitmask_intf() argument 259 dpu_hw_ctl_get_bitmask_dspp(struct dpu_hw_ctl *ctx, enum dpu_dspp dspp) dpu_hw_ctl_get_bitmask_dspp() argument 284 dpu_hw_ctl_poll_reset_status(struct dpu_hw_ctl *ctx, u32 timeout_us) dpu_hw_ctl_poll_reset_status() argument 306 dpu_hw_ctl_reset_control(struct dpu_hw_ctl *ctx) dpu_hw_ctl_reset_control() argument 318 dpu_hw_ctl_wait_reset_status(struct dpu_hw_ctl *ctx) dpu_hw_ctl_wait_reset_status() argument 337 dpu_hw_ctl_clear_all_blendstages(struct dpu_hw_ctl *ctx) dpu_hw_ctl_clear_all_blendstages() argument 352 dpu_hw_ctl_setup_blendstage(struct dpu_hw_ctl *ctx, enum dpu_lm lm, struct dpu_hw_stage_cfg *stage_cfg) dpu_hw_ctl_setup_blendstage() argument 487 dpu_hw_ctl_intf_cfg_v1(struct dpu_hw_ctl *ctx, struct dpu_hw_intf_cfg *cfg) dpu_hw_ctl_intf_cfg_v1() argument 504 dpu_hw_ctl_intf_cfg(struct dpu_hw_ctl *ctx, struct dpu_hw_intf_cfg *cfg) dpu_hw_ctl_intf_cfg() argument 596 dpu_hw_ctl_destroy(struct dpu_hw_ctl *ctx) dpu_hw_ctl_destroy() argument [all...] |
/kernel/linux/linux-5.10/drivers/spi/ |
H A D | spi-fsi.c | 108 static int fsi_spi_check_status(struct fsi_spi *ctx) in fsi_spi_check_status() argument 114 rc = fsi_device_read(ctx->fsi, FSI2SPI_STATUS, &sts_be, in fsi_spi_check_status() 121 dev_err(ctx->dev, "Error with FSI2SPI interface: %08x.\n", sts); in fsi_spi_check_status() 128 static int fsi_spi_read_reg(struct fsi_spi *ctx, u32 offset, u64 *value) in fsi_spi_read_reg() argument 133 u32 cmd = offset + ctx->base; in fsi_spi_read_reg() 141 rc = fsi_device_write(ctx->fsi, FSI2SPI_CMD, &cmd_be, sizeof(cmd_be)); in fsi_spi_read_reg() 145 rc = fsi_spi_check_status(ctx); in fsi_spi_read_reg() 149 rc = fsi_device_read(ctx->fsi, FSI2SPI_DATA0, &data_be, in fsi_spi_read_reg() 156 rc = fsi_device_read(ctx->fsi, FSI2SPI_DATA1, &data_be, in fsi_spi_read_reg() 162 dev_dbg(ctx in fsi_spi_read_reg() 167 fsi_spi_write_reg(struct fsi_spi *ctx, u32 offset, u64 value) fsi_spi_write_reg() argument 225 fsi_spi_reset(struct fsi_spi *ctx) fsi_spi_reset() argument 264 fsi_spi_sequence_transfer(struct fsi_spi *ctx, struct fsi_spi_sequence *seq, struct spi_transfer *transfer) fsi_spi_sequence_transfer() argument 336 fsi_spi_transfer_data(struct fsi_spi *ctx, struct spi_transfer *transfer) fsi_spi_transfer_data() argument 417 fsi_spi_transfer_init(struct fsi_spi *ctx) fsi_spi_transfer_init() argument 476 struct fsi_spi *ctx = spi_controller_get_devdata(ctlr); fsi_spi_transfer_one_message() local 557 struct fsi_spi *ctx = spi_controller_get_devdata(spi->controller); fsi_spi_max_transfer_size() local 575 struct fsi_spi *ctx; fsi_spi_probe() local [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/kdfs/ |
H A D | scrypt.c | 55 static void kdf_scrypt_init(KDF_SCRYPT *ctx); 59 KDF_SCRYPT *ctx; in kdf_scrypt_new() local 64 ctx = OPENSSL_zalloc(sizeof(*ctx)); in kdf_scrypt_new() 65 if (ctx == NULL) { in kdf_scrypt_new() 69 ctx->libctx = PROV_LIBCTX_OF(provctx); in kdf_scrypt_new() 70 kdf_scrypt_init(ctx); in kdf_scrypt_new() 71 return ctx; in kdf_scrypt_new() 76 KDF_SCRYPT *ctx = (KDF_SCRYPT *)vctx; in kdf_scrypt_free() local 78 if (ctx ! in kdf_scrypt_free() 88 KDF_SCRYPT *ctx = (KDF_SCRYPT *)vctx; kdf_scrypt_reset() local 95 kdf_scrypt_init(KDF_SCRYPT *ctx) kdf_scrypt_init() argument 126 set_digest(KDF_SCRYPT *ctx) set_digest() argument 138 set_property_query(KDF_SCRYPT *ctx, const char *propq) set_property_query() argument 155 KDF_SCRYPT *ctx = (KDF_SCRYPT *)vctx; kdf_scrypt_derive() local 187 KDF_SCRYPT *ctx = vctx; kdf_scrypt_set_ctx_params() local 241 kdf_scrypt_settable_ctx_params(ossl_unused void *ctx, ossl_unused void *p_ctx) kdf_scrypt_settable_ctx_params() argument 266 kdf_scrypt_gettable_ctx_params(ossl_unused void *ctx, ossl_unused void *p_ctx) kdf_scrypt_gettable_ctx_params() argument [all...] |
/third_party/openssl/providers/implementations/kdfs/ |
H A D | scrypt.c | 55 static void kdf_scrypt_init(KDF_SCRYPT *ctx); 59 KDF_SCRYPT *ctx; in kdf_scrypt_new() local 64 ctx = OPENSSL_zalloc(sizeof(*ctx)); in kdf_scrypt_new() 65 if (ctx == NULL) { in kdf_scrypt_new() 69 ctx->libctx = PROV_LIBCTX_OF(provctx); in kdf_scrypt_new() 70 kdf_scrypt_init(ctx); in kdf_scrypt_new() 71 return ctx; in kdf_scrypt_new() 76 KDF_SCRYPT *ctx = (KDF_SCRYPT *)vctx; in kdf_scrypt_free() local 78 if (ctx ! in kdf_scrypt_free() 88 KDF_SCRYPT *ctx = (KDF_SCRYPT *)vctx; kdf_scrypt_reset() local 95 kdf_scrypt_init(KDF_SCRYPT *ctx) kdf_scrypt_init() argument 126 set_digest(KDF_SCRYPT *ctx) set_digest() argument 138 set_property_query(KDF_SCRYPT *ctx, const char *propq) set_property_query() argument 155 KDF_SCRYPT *ctx = (KDF_SCRYPT *)vctx; kdf_scrypt_derive() local 187 KDF_SCRYPT *ctx = vctx; kdf_scrypt_set_ctx_params() local 241 kdf_scrypt_settable_ctx_params(ossl_unused void *ctx, ossl_unused void *p_ctx) kdf_scrypt_settable_ctx_params() argument 266 kdf_scrypt_gettable_ctx_params(ossl_unused void *ctx, ossl_unused void *p_ctx) kdf_scrypt_gettable_ctx_params() argument [all...] |
/third_party/skia/third_party/externals/tint/src/transform/ |
H A D | module_scope_var_to_entry_point_param.cc | 55 CloneContext& ctx; member 59 explicit State(CloneContext& context) : ctx(context) {} in State() 80 ctx.dst->AST().AddTypeDecl(ctx.Clone(ast_str)); in CloneStructTypes() 81 ctx.Remove(ctx.src->AST().GlobalDeclarations(), ast_str); in CloneStructTypes() 97 for (auto* func_ast : ctx.src->AST().Functions()) { in Process() 98 auto* func_sem = ctx.src->Sem().Get(func_ast); in Process() 126 for (auto* node : ctx.src->ASTNodes().Objects()) { in Process() 137 auto* func_sem = ctx in Process() 352 Run(CloneContext& ctx, const DataMap&, DataMap&) Run() argument [all...] |
/kernel/linux/linux-5.10/security/selinux/ |
H A D | xfrm.c | 55 static inline int selinux_authorizable_ctx(struct xfrm_sec_ctx *ctx) in selinux_authorizable_ctx() argument 57 return (ctx && in selinux_authorizable_ctx() 58 (ctx->ctx_doi == XFRM_SC_DOI_LSM) && in selinux_authorizable_ctx() 59 (ctx->ctx_alg == XFRM_SC_ALG_SELINUX)); in selinux_authorizable_ctx() 80 struct xfrm_sec_ctx *ctx = NULL; in selinux_xfrm_alloc_user() local 92 ctx = kmalloc(sizeof(*ctx) + str_len + 1, gfp); in selinux_xfrm_alloc_user() 93 if (!ctx) in selinux_xfrm_alloc_user() 96 ctx->ctx_doi = XFRM_SC_DOI_LSM; in selinux_xfrm_alloc_user() 97 ctx in selinux_xfrm_alloc_user() 124 selinux_xfrm_free(struct xfrm_sec_ctx *ctx) selinux_xfrm_free() argument 136 selinux_xfrm_delete(struct xfrm_sec_ctx *ctx) selinux_xfrm_delete() argument 153 selinux_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid, u8 dir) selinux_xfrm_policy_lookup() argument 239 struct xfrm_sec_ctx *ctx = x->security; selinux_xfrm_skb_sid_ingress() local 317 selinux_xfrm_policy_free(struct xfrm_sec_ctx *ctx) selinux_xfrm_policy_free() argument 325 selinux_xfrm_policy_delete(struct xfrm_sec_ctx *ctx) selinux_xfrm_policy_delete() argument 348 struct xfrm_sec_ctx *ctx; selinux_xfrm_state_alloc_acquire() local 417 struct xfrm_sec_ctx *ctx = x->security; selinux_xfrm_sock_rcv_skb() local [all...] |
/kernel/linux/linux-5.10/sound/soc/xilinx/ |
H A D | xlnx_spdif.c | 58 struct spdif_dev_data *ctx = arg; in xlnx_spdifrx_irq_handler() local 60 val = readl(ctx->base + XSPDIF_IRQ_STS_REG); in xlnx_spdifrx_irq_handler() 63 ctx->base + XSPDIF_IRQ_STS_REG); in xlnx_spdifrx_irq_handler() 64 val = readl(ctx->base + in xlnx_spdifrx_irq_handler() 67 ctx->base + XSPDIF_IRQ_ENABLE_REG); in xlnx_spdifrx_irq_handler() 69 ctx->rx_chsts_updated = true; in xlnx_spdifrx_irq_handler() 70 wake_up_interruptible(&ctx->chsts_q); in xlnx_spdifrx_irq_handler() 81 struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev); in xlnx_spdif_startup() local 83 val = readl(ctx->base + XSPDIF_CONTROL_REG); in xlnx_spdif_startup() 85 writel(val, ctx in xlnx_spdif_startup() 100 struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev); xlnx_spdif_shutdown() local 110 struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev); xlnx_spdif_hw_params() local 152 struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev); rx_stream_detect() local 173 struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev); xlnx_spdif_trigger() local 242 struct spdif_dev_data *ctx; xlnx_spdif_probe() local 320 struct spdif_dev_data *ctx = dev_get_drvdata(&pdev->dev); xlnx_spdif_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/verisilicon/ |
H A D | hantro_hw.h | 352 void (*enable)(struct hantro_ctx *ctx); 353 void (*disable)(struct hantro_ctx *ctx); 354 int (*enum_framesizes)(struct hantro_ctx *ctx, struct v4l2_frmsizeenum *fsize); 372 int (*init)(struct hantro_ctx *ctx); 373 void (*exit)(struct hantro_ctx *ctx); 374 int (*run)(struct hantro_ctx *ctx); 375 void (*done)(struct hantro_ctx *ctx); 376 void (*reset)(struct hantro_ctx *ctx); 417 void hantro_run(struct hantro_ctx *ctx); 420 void hantro_start_prepare_run(struct hantro_ctx *ctx); [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/panel/ |
H A D | panel-asus-z00t-tm5p5-n35596.c | 27 static void tm5p5_nt35596_reset(struct tm5p5_nt35596 *ctx) in tm5p5_nt35596_reset() argument 29 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in tm5p5_nt35596_reset() 31 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in tm5p5_nt35596_reset() 33 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in tm5p5_nt35596_reset() 37 static int tm5p5_nt35596_on(struct tm5p5_nt35596 *ctx) in tm5p5_nt35596_on() argument 39 struct mipi_dsi_device *dsi = ctx->dsi; in tm5p5_nt35596_on() 85 static int tm5p5_nt35596_off(struct tm5p5_nt35596 *ctx) in tm5p5_nt35596_off() argument 87 struct mipi_dsi_device *dsi = ctx->dsi; in tm5p5_nt35596_off() 111 struct tm5p5_nt35596 *ctx = to_tm5p5_nt35596(panel); in tm5p5_nt35596_prepare() local 112 struct device *dev = &ctx in tm5p5_nt35596_prepare() 141 struct tm5p5_nt35596 *ctx = to_tm5p5_nt35596(panel); tm5p5_nt35596_unprepare() local 255 struct tm5p5_nt35596 *ctx; tm5p5_nt35596_probe() local 310 struct tm5p5_nt35596 *ctx = mipi_dsi_get_drvdata(dsi); tm5p5_nt35596_remove() local [all...] |
/kernel/linux/linux-6.6/security/selinux/ |
H A D | xfrm.c | 55 static inline int selinux_authorizable_ctx(struct xfrm_sec_ctx *ctx) in selinux_authorizable_ctx() argument 57 return (ctx && in selinux_authorizable_ctx() 58 (ctx->ctx_doi == XFRM_SC_DOI_LSM) && in selinux_authorizable_ctx() 59 (ctx->ctx_alg == XFRM_SC_ALG_SELINUX)); in selinux_authorizable_ctx() 80 struct xfrm_sec_ctx *ctx = NULL; in selinux_xfrm_alloc_user() local 92 ctx = kmalloc(struct_size(ctx, ctx_str, str_len + 1), gfp); in selinux_xfrm_alloc_user() 93 if (!ctx) in selinux_xfrm_alloc_user() 96 ctx->ctx_doi = XFRM_SC_DOI_LSM; in selinux_xfrm_alloc_user() 97 ctx in selinux_xfrm_alloc_user() 123 selinux_xfrm_free(struct xfrm_sec_ctx *ctx) selinux_xfrm_free() argument 135 selinux_xfrm_delete(struct xfrm_sec_ctx *ctx) selinux_xfrm_delete() argument 151 selinux_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid) selinux_xfrm_policy_lookup() argument 236 struct xfrm_sec_ctx *ctx = x->security; selinux_xfrm_skb_sid_ingress() local 314 selinux_xfrm_policy_free(struct xfrm_sec_ctx *ctx) selinux_xfrm_policy_free() argument 322 selinux_xfrm_policy_delete(struct xfrm_sec_ctx *ctx) selinux_xfrm_policy_delete() argument 345 struct xfrm_sec_ctx *ctx; selinux_xfrm_state_alloc_acquire() local 414 struct xfrm_sec_ctx *ctx = x->security; selinux_xfrm_sock_rcv_skb() local [all...] |