/third_party/ffmpeg/libavcodec/ |
H A D | cllc.c | 45 static int read_code_table(CLLCContext *ctx, GetBitContext *gb, VLC *vlc) in read_code_table() argument 58 av_log(ctx->avctx, AV_LOG_ERROR, "To long VLCs %d\n", num_lens); in read_code_table() 67 av_log(ctx->avctx, AV_LOG_ERROR, in read_code_table() 81 symbols, 1, 1, 0, 0, ctx->avctx); in read_code_table() 88 static int read_argb_line(CLLCContext *ctx, GetBitContext *gb, int *top_left, in read_argb_line() argument 104 for (i = 0; i < ctx->avctx->width; i++) { in read_argb_line() 157 static int read_rgb24_component_line(CLLCContext *ctx, GetBitContext *gb, in read_rgb24_component_line() argument 170 for (i = 0; i < ctx->avctx->width; i++) { in read_rgb24_component_line() 187 static int read_yuv_component_line(CLLCContext *ctx, GetBitContext *gb, in read_yuv_component_line() argument 199 for (i = 0; i < ctx in read_yuv_component_line() 215 decode_argb_frame(CLLCContext *ctx, GetBitContext *gb, AVFrame *pic) decode_argb_frame() argument 259 decode_rgb24_frame(CLLCContext *ctx, GetBitContext *gb, AVFrame *pic) decode_rgb24_frame() argument 303 decode_yuv_frame(CLLCContext *ctx, GetBitContext *gb, AVFrame *pic) decode_yuv_frame() argument 361 CLLCContext *ctx = avctx->priv_data; cllc_decode_frame() local 473 CLLCContext *ctx = avctx->priv_data; cllc_decode_close() local 482 CLLCContext *ctx = avctx->priv_data; cllc_decode_init() local [all...] |
H A D | vaapi_decode.c | 38 VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data; in ff_vaapi_decode_make_param_buffer() local 44 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in ff_vaapi_decode_make_param_buffer() 68 VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data; in ff_vaapi_decode_make_slice_buffer() local 90 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in ff_vaapi_decode_make_slice_buffer() 104 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in ff_vaapi_decode_make_slice_buffer() 112 vaDestroyBuffer(ctx->hwctx->display, in ff_vaapi_decode_make_slice_buffer() 128 VAAPIDecodeContext *ctx in ff_vaapi_decode_destroy_buffers() local 156 VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data; ff_vaapi_decode_issue() local 355 VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data; vaapi_decode_find_best_format() local 638 VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data; ff_vaapi_decode_init() local 684 VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data; ff_vaapi_decode_uninit() local [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_framerate.c | 65 static double get_scene_score(AVFilterContext *ctx, AVFrame *crnt, AVFrame *next) in get_scene_score() argument 67 FrameRateContext *s = ctx->priv; in get_scene_score() 70 ff_dlog(ctx, "get_scene_score()\n"); in get_scene_score() 77 ff_dlog(ctx, "get_scene_score() process\n"); in get_scene_score() 85 ff_dlog(ctx, "get_scene_score() result is:%f\n", ret); in get_scene_score() 94 static int filter_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs) in filter_slice() argument 96 FrameRateContext *s = ctx->priv; in filter_slice() 120 static int blend_frames(AVFilterContext *ctx, int interpolate) in blend_frames() argument 122 FrameRateContext *s = ctx->priv; in blend_frames() 123 AVFilterLink *outlink = ctx in blend_frames() 156 process_work_frame(AVFilterContext *ctx) process_work_frame() argument 206 init(AVFilterContext *ctx) init() argument 213 uninit(AVFilterContext *ctx) uninit() argument 274 AVFilterContext *ctx = inlink->dst; config_input() local 298 activate(AVFilterContext *ctx) activate() argument 377 AVFilterContext *ctx = outlink->src; config_output() local [all...] |
H A D | vf_framepack.c | 82 static av_cold void framepack_uninit(AVFilterContext *ctx) in framepack_uninit() argument 84 FramepackContext *s = ctx->priv; in framepack_uninit() 93 AVFilterContext *ctx = outlink->src; in config_output() local 96 int width = ctx->inputs[LEFT]->w; in config_output() 97 int height = ctx->inputs[LEFT]->h; in config_output() 98 AVRational time_base = ctx->inputs[LEFT]->time_base; in config_output() 99 AVRational frame_rate = ctx->inputs[LEFT]->frame_rate; in config_output() 102 if (width != ctx->inputs[RIGHT]->w || in config_output() 103 height != ctx->inputs[RIGHT]->h) { in config_output() 104 av_log(ctx, AV_LOG_ERRO in config_output() 161 AVFilterContext *ctx = outlink->src; horizontal_frame_pack() local 262 AVFilterContext *ctx = outlink->src; vertical_frame_pack() local 300 AVFilterContext *ctx = outlink->src; spatial_frame_pack() local 318 try_push_frame(AVFilterContext *ctx) try_push_frame() argument 379 activate(AVFilterContext *ctx) activate() argument [all...] |
H A D | vf_deinterlace_qsv.c | 80 static av_cold void qsvdeint_uninit(AVFilterContext *ctx) in qsvdeint_uninit() argument 82 QSVDeintContext *s = ctx->priv; in qsvdeint_uninit() 109 AVFilterContext *ctx = pthis; in frame_alloc() local 110 QSVDeintContext *s = ctx->priv; in frame_alloc() 150 static int init_out_session(AVFilterContext *ctx) in init_out_session() argument 153 QSVDeintContext *s = ctx->priv; in init_out_session() 173 av_log(ctx, AV_LOG_ERROR, "Error querying the session attributes\n"); in init_out_session() 184 av_log(ctx, AV_LOG_ERROR, "Error unsupported handle type\n"); in init_out_session() 190 return ff_qsvvpp_print_error(ctx, err, "Error getting the session handle"); in init_out_session() 192 ff_qsvvpp_print_warning(ctx, er in init_out_session() 319 AVFilterContext *ctx = outlink->src; qsvdeint_config_props() local 396 submit_frame(AVFilterContext *ctx, AVFrame *frame, mfxFrameSurface1 **surface) submit_frame() argument 445 process_frame(AVFilterContext *ctx, const AVFrame *in, mfxFrameSurface1 *surf_in) process_frame() argument 527 AVFilterContext *ctx = link->dst; qsvdeint_filter_frame() local 549 AVFilterContext *ctx = outlink->src; qsvdeint_request_frame() local [all...] |
H A D | vf_stack.c | 65 static int query_formats(AVFilterContext *ctx) in query_formats() argument 67 StackContext *s = ctx->priv; in query_formats() 73 return ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0)); in query_formats() 76 return ff_set_common_formats(ctx, ff_formats_pixdesc_filter(0, reject_flags)); in query_formats() 79 static av_cold int init(AVFilterContext *ctx) in init() argument 81 StackContext *s = ctx->priv; in init() 84 if (!strcmp(ctx->filter->name, "vstack")) in init() 87 if (!strcmp(ctx->filter->name, "hstack")) in init() 90 if (!strcmp(ctx->filter->name, "xstack")) { in init() 93 av_parse_color(s->fillcolor, s->fillcolor_str, -1, ctx) > in init() 141 process_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs) process_slice() argument 166 AVFilterContext *ctx = fs->parent; process_frame() local 196 AVFilterContext *ctx = outlink->src; config_output() local 420 uninit(AVFilterContext *ctx) uninit() argument 429 activate(AVFilterContext *ctx) activate() argument [all...] |
H A D | vaf_spectrumsynth.c | 99 static int query_formats(AVFilterContext *ctx) in query_formats() argument 101 SpectrumSynthContext *s = ctx->priv; in query_formats() 104 AVFilterLink *magnitude = ctx->inputs[0]; in query_formats() 105 AVFilterLink *phase = ctx->inputs[1]; in query_formats() 106 AVFilterLink *outlink = ctx->outputs[0]; in query_formats() 143 AVFilterContext *ctx = outlink->src; in config_output() local 144 SpectrumSynthContext *s = ctx->priv; in config_output() 145 int width = ctx->inputs[0]->w; in config_output() 146 int height = ctx->inputs[0]->h; in config_output() 147 AVRational time_base = ctx in config_output() 279 read_fft_data(AVFilterContext *ctx, int x, int h, int ch) read_fft_data() argument 325 synth_window(AVFilterContext *ctx, int x) synth_window() argument 349 try_push_frame(AVFilterContext *ctx, int x) try_push_frame() argument 418 try_push_frames(AVFilterContext *ctx) try_push_frames() argument 457 activate(AVFilterContext *ctx) activate() argument 496 uninit(AVFilterContext *ctx) uninit() argument [all...] |
H A D | vf_libvmaf.c | 131 AVFilterContext *ctx = fs->parent; in do_vmaf() local 132 LIBVMAFContext *s = ctx->priv; in do_vmaf() 140 if (ctx->is_disabled || !ref) in do_vmaf() 141 return ff_filter_frame(ctx->outputs[0], dist); in do_vmaf() 162 return ff_filter_frame(ctx->outputs[0], dist); in do_vmaf() 218 static int parse_features(AVFilterContext *ctx) in parse_features() argument 220 LIBVMAFContext *s = ctx->priv; in parse_features() 230 av_log(ctx, AV_LOG_ERROR, in parse_features() 249 av_log(ctx, AV_LOG_ERROR, in parse_features() 258 av_log(ctx, AV_LOG_ERRO in parse_features() 273 parse_models(AVFilterContext *ctx) parse_models() argument 423 parse_deprecated_options(AVFilterContext *ctx) parse_deprecated_options() argument 509 init(AVFilterContext *ctx) init() argument 548 AVFilterContext *ctx = inlink->dst; config_input_ref() local 579 AVFilterContext *ctx = outlink->src; config_output() local 598 activate(AVFilterContext *ctx) activate() argument 634 uninit(AVFilterContext *ctx) uninit() argument [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | glthread_bufferobj.c | 33 new_upload_buffer(struct gl_context *ctx, GLsizeiptr size, uint8_t **ptr) in new_upload_buffer() argument 35 assert(ctx->GLThread.SupportsBufferUploads); in new_upload_buffer() 38 _mesa_bufferobj_alloc(ctx, -1); in new_upload_buffer() 44 if (!_mesa_bufferobj_data(ctx, GL_ARRAY_BUFFER, size, NULL, in new_upload_buffer() 48 _mesa_delete_buffer_object(ctx, obj); in new_upload_buffer() 52 *ptr = _mesa_bufferobj_map_range(ctx, 0, size, in new_upload_buffer() 58 _mesa_delete_buffer_object(ctx, obj); in new_upload_buffer() 66 _mesa_glthread_upload(struct gl_context *ctx, const void *data, in _mesa_glthread_upload() argument 71 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_upload() 89 *out_buffer = new_upload_buffer(ctx, siz in _mesa_glthread_upload() 175 _mesa_glthread_BindBuffer(struct gl_context *ctx, GLenum target, GLuint buffer) _mesa_glthread_BindBuffer() argument 206 _mesa_glthread_DeleteBuffers(struct gl_context *ctx, GLsizei n, const GLuint *buffers) _mesa_glthread_DeleteBuffers() argument 245 _mesa_unmarshal_BufferData(struct gl_context *ctx, const struct marshal_cmd_BufferData *cmd, const uint64_t *last) _mesa_unmarshal_BufferData() argument 275 _mesa_unmarshal_NamedBufferData(struct gl_context *ctx, const struct marshal_cmd_NamedBufferData *cmd, const uint64_t *last) _mesa_unmarshal_NamedBufferData() argument 284 _mesa_unmarshal_NamedBufferDataEXT(struct gl_context *ctx, const struct marshal_cmd_NamedBufferDataEXT *cmd, const uint64_t *last) _mesa_unmarshal_NamedBufferDataEXT() argument 372 _mesa_unmarshal_BufferSubData(struct gl_context *ctx, const struct marshal_cmd_BufferSubData *cmd, const uint64_t *last) _mesa_unmarshal_BufferSubData() argument 395 _mesa_unmarshal_NamedBufferSubData(struct gl_context *ctx, const struct marshal_cmd_NamedBufferSubData *cmd, const uint64_t *last) _mesa_unmarshal_NamedBufferSubData() argument 404 _mesa_unmarshal_NamedBufferSubDataEXT(struct gl_context *ctx, const struct marshal_cmd_NamedBufferSubDataEXT *cmd, const uint64_t *last) _mesa_unmarshal_NamedBufferSubDataEXT() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/dsa/ |
H A D | dsa_ossl.c | 37 BN_CTX *ctx); 77 BN_CTX *ctx = NULL; in ossl_dsa_do_sign_int() local 102 ctx = BN_CTX_new_ex(dsa->libctx); in ossl_dsa_do_sign_int() 103 if (ctx == NULL) in ossl_dsa_do_sign_int() 105 m = BN_CTX_get(ctx); in ossl_dsa_do_sign_int() 106 blind = BN_CTX_get(ctx); in ossl_dsa_do_sign_int() 107 blindm = BN_CTX_get(ctx); in ossl_dsa_do_sign_int() 108 tmp = BN_CTX_get(ctx); in ossl_dsa_do_sign_int() 113 if (!dsa_sign_setup(dsa, ctx, &kinv, &ret->r, dgst, dlen)) in ossl_dsa_do_sign_int() 142 BN_RAND_TOP_ANY, BN_RAND_BOTTOM_ANY, 0, ctx)) in ossl_dsa_do_sign_int() 213 BN_CTX *ctx = NULL; dsa_sign_setup() local 336 BN_CTX *ctx; dsa_do_verify() local 461 dsa_mod_inverse_fermat(const BIGNUM *k, const BIGNUM *q, BN_CTX *ctx) dsa_mod_inverse_fermat() argument [all...] |
/third_party/openssl/crypto/dsa/ |
H A D | dsa_ossl.c | 37 BN_CTX *ctx); 77 BN_CTX *ctx = NULL; in ossl_dsa_do_sign_int() local 102 ctx = BN_CTX_new_ex(dsa->libctx); in ossl_dsa_do_sign_int() 103 if (ctx == NULL) in ossl_dsa_do_sign_int() 105 m = BN_CTX_get(ctx); in ossl_dsa_do_sign_int() 106 blind = BN_CTX_get(ctx); in ossl_dsa_do_sign_int() 107 blindm = BN_CTX_get(ctx); in ossl_dsa_do_sign_int() 108 tmp = BN_CTX_get(ctx); in ossl_dsa_do_sign_int() 113 if (!dsa_sign_setup(dsa, ctx, &kinv, &ret->r, dgst, dlen)) in ossl_dsa_do_sign_int() 142 BN_RAND_TOP_ANY, BN_RAND_BOTTOM_ANY, 0, ctx)) in ossl_dsa_do_sign_int() 213 BN_CTX *ctx = NULL; dsa_sign_setup() local 336 BN_CTX *ctx; dsa_do_verify() local 462 dsa_mod_inverse_fermat(const BIGNUM *k, const BIGNUM *q, BN_CTX *ctx) dsa_mod_inverse_fermat() argument [all...] |
/third_party/openssl/test/ |
H A D | ec_internal_test.c | 25 static int group_field_tests(const EC_GROUP *group, BN_CTX *ctx) in group_field_tests() argument 33 BN_CTX_start(ctx); in group_field_tests() 34 a = BN_CTX_get(ctx); in group_field_tests() 35 b = BN_CTX_get(ctx); in group_field_tests() 36 if (!TEST_ptr(c = BN_CTX_get(ctx)) in group_field_tests() 38 || !TEST_true(group->meth->field_inv(group, b, BN_value_one(), ctx)) in group_field_tests() 43 || !TEST_true(group->meth->field_inv(group, b, a, ctx)) in group_field_tests() 45 !TEST_true(group->meth->field_encode(group, a, a, ctx))) in group_field_tests() 47 !TEST_true(group->meth->field_encode(group, b, b, ctx))) in group_field_tests() 48 || !TEST_true(group->meth->field_mul(group, c, a, b, ctx)) in group_field_tests() 78 BN_CTX *ctx = NULL; field_tests() local 162 BN_CTX *ctx = BN_CTX_new(); ec2m_field_sanity() local 220 BN_CTX *ctx = NULL; field_tests_default() local 248 BN_CTX *ctx = NULL; underflow_test() local [all...] |
/third_party/mbedtls/library/ |
H A D | sha3.c | 95 #define ABSORB(ctx, idx, v) do { ctx->state[(idx) >> 3] ^= ((uint64_t) (v)) << (((idx) & 0x7) << 3); \ 97 #define SQUEEZE(ctx, idx) ((uint8_t) (ctx->state[(idx) >> 3] >> (((idx) & 0x7) << 3))) 101 static void keccak_f1600(mbedtls_sha3_context *ctx) in keccak_f1600() argument 104 uint64_t *s = ctx->state; in keccak_f1600() 247 void mbedtls_sha3_init(mbedtls_sha3_context *ctx) in mbedtls_sha3_init() argument 249 memset(ctx, 0, sizeof(mbedtls_sha3_context)); in mbedtls_sha3_init() 252 void mbedtls_sha3_free(mbedtls_sha3_context *ctx) in mbedtls_sha3_free() argument 254 if (ctx in mbedtls_sha3_free() 270 mbedtls_sha3_starts(mbedtls_sha3_context *ctx, mbedtls_sha3_id id) mbedtls_sha3_starts() argument 302 mbedtls_sha3_update(mbedtls_sha3_context *ctx, const uint8_t *input, size_t ilen) mbedtls_sha3_update() argument 342 mbedtls_sha3_finish(mbedtls_sha3_context *ctx, uint8_t *output, size_t olen) mbedtls_sha3_finish() argument 383 mbedtls_sha3_context ctx; mbedtls_sha3() local 592 mbedtls_sha3_context ctx; mbedtls_sha3_long_kat_test() local [all...] |
/third_party/ffmpeg/libavdevice/ |
H A D | dshow.c | 240 struct dshow_ctx *ctx = s->priv_data; in dshow_read_close() local 243 if (ctx->control) { in dshow_read_close() 244 IMediaControl_Stop(ctx->control); in dshow_read_close() 245 IMediaControl_Release(ctx->control); in dshow_read_close() 248 if (ctx->media_event) in dshow_read_close() 249 IMediaEvent_Release(ctx->media_event); in dshow_read_close() 251 if (ctx->graph) { in dshow_read_close() 254 r = IGraphBuilder_EnumFilters(ctx->graph, &fenum); in dshow_read_close() 259 if (IGraphBuilder_RemoveFilter(ctx->graph, f) == S_OK) in dshow_read_close() 266 IGraphBuilder_Release(ctx in dshow_read_close() 324 struct dshow_ctx *ctx = s->priv_data; shall_we_drop() local 344 struct dshow_ctx *ctx = s->priv_data; callback() local 467 struct dshow_ctx *ctx = avctx->priv_data; dshow_cycle_devices() local 662 struct dshow_ctx *ctx = avctx->priv_data; dshow_should_set_format() local 797 struct dshow_ctx *ctx = avctx->priv_data; dshow_cycle_formats() local 1080 struct dshow_ctx *ctx = avctx->priv_data; dshow_set_audio_buffer_size() local 1175 struct dshow_ctx *ctx = avctx->priv_data; dshow_cycle_pins() local 1302 struct dshow_ctx *ctx = avctx->priv_data; dshow_list_device_options() local 1320 struct dshow_ctx *ctx = avctx->priv_data; dshow_open_device() local 1530 struct dshow_ctx *ctx = avctx->priv_data; dshow_add_device() local 1640 struct dshow_ctx *ctx = avctx->priv_data; parse_device_name() local 1677 struct dshow_ctx *ctx = avctx->priv_data; dshow_read_header() local 1859 struct dshow_ctx *ctx = s->priv_data; dshow_read_packet() local [all...] |
/third_party/ntfs-3g/libntfs-3g/ |
H A D | inode.c | 161 ntfs_attr_search_ctx *ctx; in ntfs_inode_real_open() local 181 ctx = ntfs_attr_get_search_ctx(ni, NULL); in ntfs_inode_real_open() 182 if (!ctx) in ntfs_inode_real_open() 186 0, CASE_SENSITIVE, 0, NULL, 0, ctx)) { in ntfs_inode_real_open() 192 lthle = ctx->attr->value_length; in ntfs_inode_real_open() 199 std_info = (STANDARD_INFORMATION *)((u8 *)ctx->attr + in ntfs_inode_real_open() 200 le16_to_cpu(ctx->attr->value_offset)); in ntfs_inode_real_open() 222 CASE_SENSITIVE, 0, NULL, 0, ctx)) { in ntfs_inode_real_open() 231 l = ntfs_get_attribute_value_length(ctx->attr); in ntfs_inode_real_open() 244 l = ntfs_get_attribute_value(vol, ctx in ntfs_inode_real_open() 740 ntfs_attr_search_ctx *ctx; ntfs_inode_sync_standard_information() local 796 ntfs_attr_search_ctx *ctx = NULL; ntfs_inode_sync_file_name() local 1114 ntfs_attr_search_ctx *ctx; ntfs_inode_add_attrlist() local 1298 ntfs_attr_search_ctx *ctx; ntfs_inode_free_space() local 1465 ntfs_attr_search_ctx *ctx; ntfs_inode_get_times() local 1524 ntfs_attr_search_ctx *ctx; ntfs_inode_set_times() local [all...] |
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
H A D | hks_openssl_sm2.c | 121 EVP_PKEY_CTX *ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_SM2, NULL);
in HksOpensslSm2GenerateKey() local 122 if (!ctx) {
in HksOpensslSm2GenerateKey() 123 HKS_LOG_E("ctx NULL %s", ERR_reason_error_string(ERR_get_error()));
in HksOpensslSm2GenerateKey() 129 int osRet = EVP_PKEY_keygen_init(ctx);
in HksOpensslSm2GenerateKey() 134 osRet = EVP_PKEY_keygen(ctx, &pkey);
in HksOpensslSm2GenerateKey() 146 SELF_FREE_PTR(ctx, EVP_PKEY_CTX_free)
in HksOpensslSm2GenerateKey() 289 EVP_PKEY_CTX *ctx = EVP_PKEY_CTX_new_id(NID_sm2, NULL);
in Sm2InitKey() local 290 if (ctx == NULL) {
in Sm2InitKey() 295 int ret = EVP_PKEY_fromdata_init(ctx);
in Sm2InitKey() 299 SELF_FREE_PTR(ctx, EVP_PKEY_CTX_fre in Sm2InitKey() 321 SetDigestIfNeeded(enum HksKeyPurpose keyPurpose, uint32_t digest, const struct HksBlob *message, EVP_PKEY_CTX *ctx) SetDigestIfNeeded() argument 359 EVP_PKEY_CTX *ctx = NULL; InitSm2Ctx() local 411 EVP_PKEY_CTX *ctx = InitSm2Ctx(key, usageSpec->digest, usageSpec->purpose, message); HksOpensslSm2Verify() local 433 EVP_PKEY_CTX *ctx = InitSm2Ctx(key, usageSpec->digest, usageSpec->purpose, message); HksOpensslSm2Sign() local 471 EVP_PKEY_CTX *ctx = InitSm2Ctx(keyPair, usageSpec->digest, HKS_KEY_PURPOSE_ENCRYPT, NULL); HksOpensslSm2Encrypt() local 498 EVP_PKEY_CTX *ctx = InitSm2Ctx(keyPair, usageSpec->digest, HKS_KEY_PURPOSE_DECRYPT, NULL); HksOpensslSm2Decrypt() local [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
H A D | freedreno_context.h | 292 /* Current batch.. the rule here is that you can deref ctx->batch 296 * you care about is not necessarily the same as ctx->batch. 397 /* local context fb state, for when ctx->batch is null: */ 453 void (*rebind_resource)(struct fd_context *ctx, struct fd_resource *rsc) dt; 473 bool (*draw_vbo)(struct fd_context *ctx, const struct pipe_draw_info *info, 478 bool (*clear)(struct fd_context *ctx, unsigned buffers, 483 void (*launch_grid)(struct fd_context *ctx, 487 struct fd_query *(*create_query)(struct fd_context *ctx, unsigned query_type, 495 bool (*blit)(struct fd_context *ctx, const struct pipe_blit_info *info) dt; 499 void (*validate_format)(struct fd_context *ctx, struc 672 fd_context_add_map(struct fd_context *ctx, enum fd_dirty_3d_state dirty, uint32_t gen_dirty) fd_context_add_map() argument 686 fd_context_add_shader_map(struct fd_context *ctx, enum pipe_shader_type shader, enum fd_dirty_shader_state dirty, uint32_t gen_dirty) fd_context_add_shader_map() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/bn/ |
H A D | bn_mont.c | 27 BN_MONT_CTX *mont, BN_CTX *ctx) in BN_mod_mul_montgomery() 29 int ret = bn_mul_mont_fixed_top(r, a, b, mont, ctx); in BN_mod_mul_montgomery() 38 BN_MONT_CTX *mont, BN_CTX *ctx) in bn_mul_mont_fixed_top() 60 BN_CTX_start(ctx); in bn_mul_mont_fixed_top() 61 tmp = BN_CTX_get(ctx); in bn_mul_mont_fixed_top() 67 if (!bn_sqr_fixed_top(tmp, a, ctx)) in bn_mul_mont_fixed_top() 70 if (!bn_mul_fixed_top(tmp, a, b, ctx)) in bn_mul_mont_fixed_top() 78 if (!BN_from_montgomery(r, tmp, mont, ctx)) in bn_mul_mont_fixed_top() 83 BN_CTX_end(ctx); in bn_mul_mont_fixed_top() 163 BN_CTX *ctx) in BN_from_montgomery() 26 BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_MONT_CTX *mont, BN_CTX *ctx) BN_mod_mul_montgomery() argument 37 bn_mul_mont_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_MONT_CTX *mont, BN_CTX *ctx) bn_mul_mont_fixed_top() argument 162 BN_from_montgomery(BIGNUM *ret, const BIGNUM *a, BN_MONT_CTX *mont, BN_CTX *ctx) BN_from_montgomery() argument 174 bn_from_mont_fixed_top(BIGNUM *ret, const BIGNUM *a, BN_MONT_CTX *mont, BN_CTX *ctx) bn_from_mont_fixed_top() argument 222 bn_to_mont_fixed_top(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont, BN_CTX *ctx) bn_to_mont_fixed_top() argument 242 BN_MONT_CTX_init(BN_MONT_CTX *ctx) BN_MONT_CTX_init() argument 263 BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) BN_MONT_CTX_set() argument 428 BN_MONT_CTX_set_locked(BN_MONT_CTX **pmont, CRYPTO_RWLOCK *lock, const BIGNUM *mod, BN_CTX *ctx) BN_MONT_CTX_set_locked() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/evp/ |
H A D | kem.c | 20 static int evp_kem_init(EVP_PKEY_CTX *ctx, int operation, in evp_kem_init() argument 31 if (ctx == NULL || ctx->keytype == NULL) { in evp_kem_init() 36 evp_pkey_ctx_free_old_ops(ctx); in evp_kem_init() 37 ctx->operation = operation; in evp_kem_init() 39 if (ctx->pkey == NULL) { in evp_kem_init() 45 * Try to derive the supported kem from |ctx->keymgmt|. in evp_kem_init() 47 if (!ossl_assert(ctx->pkey->keymgmt == NULL in evp_kem_init() 48 || ctx->pkey->keymgmt == ctx in evp_kem_init() 181 EVP_PKEY_encapsulate_init(EVP_PKEY_CTX *ctx, const OSSL_PARAM params[]) EVP_PKEY_encapsulate_init() argument 186 EVP_PKEY_encapsulate(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, unsigned char *secret, size_t *secretlen) EVP_PKEY_encapsulate() argument 210 EVP_PKEY_decapsulate_init(EVP_PKEY_CTX *ctx, const OSSL_PARAM params[]) EVP_PKEY_decapsulate_init() argument 215 EVP_PKEY_decapsulate(EVP_PKEY_CTX *ctx, unsigned char *secret, size_t *secretlen, const unsigned char *in, size_t inlen) EVP_PKEY_decapsulate() argument 404 EVP_KEM_fetch(OSSL_LIB_CTX *ctx, const char *algorithm, const char *properties) EVP_KEM_fetch() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/engine/ |
H A D | eng_openssl.c | 204 # define test(ctx) ((TEST_RC4_KEY *)EVP_CIPHER_CTX_get_cipher_data(ctx)) 205 static int test_rc4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in test_rc4_init_key() argument 208 const int n = EVP_CIPHER_CTX_get_key_length(ctx); in test_rc4_init_key() 215 memcpy(&test(ctx)->key[0], key, n); in test_rc4_init_key() 216 RC4_set_key(&test(ctx)->ks, n, test(ctx)->key); in test_rc4_init_key() 220 static int test_rc4_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in test_rc4_cipher() argument 226 RC4(&test(ctx)->ks, inl, in, out); in test_rc4_cipher() 326 static int test_sha1_init(EVP_MD_CTX *ctx) in test_sha1_init() argument 334 test_sha1_update(EVP_MD_CTX *ctx, const void *data, size_t count) test_sha1_update() argument 342 test_sha1_final(EVP_MD_CTX *ctx, unsigned char *md) test_sha1_final() argument 446 HMAC_CTX *ctx; global() member 449 ossl_hmac_init(EVP_PKEY_CTX *ctx) ossl_hmac_init() argument 497 ossl_hmac_cleanup(EVP_PKEY_CTX *ctx) ossl_hmac_cleanup() argument 509 ossl_hmac_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) ossl_hmac_keygen() argument 523 ossl_int_update(EVP_MD_CTX *ctx, const void *data, size_t count) ossl_int_update() argument 531 ossl_hmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) ossl_hmac_signctx_init() argument 538 ossl_hmac_signctx(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, EVP_MD_CTX *mctx) ossl_hmac_signctx() argument 557 ossl_hmac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) ossl_hmac_ctrl() argument 589 ossl_hmac_ctrl_str(EVP_PKEY_CTX *ctx, const char *type, const char *value) ossl_hmac_ctrl_str() argument [all...] |
/third_party/openssl/crypto/bn/ |
H A D | bn_mont.c | 27 BN_MONT_CTX *mont, BN_CTX *ctx) in BN_mod_mul_montgomery() 29 int ret = bn_mul_mont_fixed_top(r, a, b, mont, ctx); in BN_mod_mul_montgomery() 38 BN_MONT_CTX *mont, BN_CTX *ctx) in bn_mul_mont_fixed_top() 60 BN_CTX_start(ctx); in bn_mul_mont_fixed_top() 61 tmp = BN_CTX_get(ctx); in bn_mul_mont_fixed_top() 67 if (!bn_sqr_fixed_top(tmp, a, ctx)) in bn_mul_mont_fixed_top() 70 if (!bn_mul_fixed_top(tmp, a, b, ctx)) in bn_mul_mont_fixed_top() 78 if (!BN_from_montgomery(r, tmp, mont, ctx)) in bn_mul_mont_fixed_top() 83 BN_CTX_end(ctx); in bn_mul_mont_fixed_top() 163 BN_CTX *ctx) in BN_from_montgomery() 26 BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_MONT_CTX *mont, BN_CTX *ctx) BN_mod_mul_montgomery() argument 37 bn_mul_mont_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_MONT_CTX *mont, BN_CTX *ctx) bn_mul_mont_fixed_top() argument 162 BN_from_montgomery(BIGNUM *ret, const BIGNUM *a, BN_MONT_CTX *mont, BN_CTX *ctx) BN_from_montgomery() argument 174 bn_from_mont_fixed_top(BIGNUM *ret, const BIGNUM *a, BN_MONT_CTX *mont, BN_CTX *ctx) bn_from_mont_fixed_top() argument 222 bn_to_mont_fixed_top(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont, BN_CTX *ctx) bn_to_mont_fixed_top() argument 242 BN_MONT_CTX_init(BN_MONT_CTX *ctx) BN_MONT_CTX_init() argument 263 BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) BN_MONT_CTX_set() argument 428 BN_MONT_CTX_set_locked(BN_MONT_CTX **pmont, CRYPTO_RWLOCK *lock, const BIGNUM *mod, BN_CTX *ctx) BN_MONT_CTX_set_locked() argument [all...] |
/third_party/openssl/crypto/evp/ |
H A D | kem.c | 20 static int evp_kem_init(EVP_PKEY_CTX *ctx, int operation, in evp_kem_init() argument 31 if (ctx == NULL || ctx->keytype == NULL) { in evp_kem_init() 36 evp_pkey_ctx_free_old_ops(ctx); in evp_kem_init() 37 ctx->operation = operation; in evp_kem_init() 39 if (ctx->pkey == NULL) { in evp_kem_init() 45 * Try to derive the supported kem from |ctx->keymgmt|. in evp_kem_init() 47 if (!ossl_assert(ctx->pkey->keymgmt == NULL in evp_kem_init() 48 || ctx->pkey->keymgmt == ctx in evp_kem_init() 181 EVP_PKEY_encapsulate_init(EVP_PKEY_CTX *ctx, const OSSL_PARAM params[]) EVP_PKEY_encapsulate_init() argument 186 EVP_PKEY_encapsulate(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, unsigned char *secret, size_t *secretlen) EVP_PKEY_encapsulate() argument 210 EVP_PKEY_decapsulate_init(EVP_PKEY_CTX *ctx, const OSSL_PARAM params[]) EVP_PKEY_decapsulate_init() argument 215 EVP_PKEY_decapsulate(EVP_PKEY_CTX *ctx, unsigned char *secret, size_t *secretlen, const unsigned char *in, size_t inlen) EVP_PKEY_decapsulate() argument 404 EVP_KEM_fetch(OSSL_LIB_CTX *ctx, const char *algorithm, const char *properties) EVP_KEM_fetch() argument [all...] |
/third_party/openssl/crypto/engine/ |
H A D | eng_openssl.c | 204 # define test(ctx) ((TEST_RC4_KEY *)EVP_CIPHER_CTX_get_cipher_data(ctx)) 205 static int test_rc4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in test_rc4_init_key() argument 208 const int n = EVP_CIPHER_CTX_get_key_length(ctx); in test_rc4_init_key() 215 memcpy(&test(ctx)->key[0], key, n); in test_rc4_init_key() 216 RC4_set_key(&test(ctx)->ks, n, test(ctx)->key); in test_rc4_init_key() 220 static int test_rc4_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in test_rc4_cipher() argument 226 RC4(&test(ctx)->ks, inl, in, out); in test_rc4_cipher() 326 static int test_sha1_init(EVP_MD_CTX *ctx) in test_sha1_init() argument 334 test_sha1_update(EVP_MD_CTX *ctx, const void *data, size_t count) test_sha1_update() argument 342 test_sha1_final(EVP_MD_CTX *ctx, unsigned char *md) test_sha1_final() argument 446 HMAC_CTX *ctx; global() member 449 ossl_hmac_init(EVP_PKEY_CTX *ctx) ossl_hmac_init() argument 497 ossl_hmac_cleanup(EVP_PKEY_CTX *ctx) ossl_hmac_cleanup() argument 509 ossl_hmac_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) ossl_hmac_keygen() argument 523 ossl_int_update(EVP_MD_CTX *ctx, const void *data, size_t count) ossl_int_update() argument 531 ossl_hmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) ossl_hmac_signctx_init() argument 538 ossl_hmac_signctx(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, EVP_MD_CTX *mctx) ossl_hmac_signctx() argument 557 ossl_hmac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) ossl_hmac_ctrl() argument 589 ossl_hmac_ctrl_str(EVP_PKEY_CTX *ctx, const char *type, const char *value) ossl_hmac_ctrl_str() argument [all...] |
/foundation/communication/wifi/wifi/base/security_utils/src/ |
H A D | wifi_openssl_utils.cpp | 76 EVP_CIPHER_CTX *ctx = nullptr;
in OpensslAesEncrypt() local 80 if ((ctx = EVP_CIPHER_CTX_new()) == nullptr) {
in OpensslAesEncrypt() 84 if (EVP_EncryptInit_ex(ctx, cipher, nullptr, nullptr, nullptr) != 1) {
in OpensslAesEncrypt() 88 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_IVLEN, AES_IV_LEN, nullptr) != 1) {
in OpensslAesEncrypt() 92 if (EVP_EncryptInit_ex(ctx, nullptr, nullptr, info->key, info->iv) != 1) {
in OpensslAesEncrypt() 96 if (EVP_EncryptUpdate(ctx, cipherText, &len, plainText, plainTextLen) != 1) {
in OpensslAesEncrypt() 101 if (EVP_EncryptFinal_ex(ctx, cipherText + len, &len) != 1) {
in OpensslAesEncrypt() 107 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_GET_TAG, AES_GCM_TAG_LEN, static_cast<void *>(tag)) != 1) {
in OpensslAesEncrypt() 118 if (ctx != nullptr) {
in OpensslAesEncrypt() 120 EVP_CIPHER_CTX_free(ctx);
in OpensslAesEncrypt() 136 EVP_CIPHER_CTX *ctx = nullptr; OpensslAesDecrypt() local [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/include/ |
H A D | l2cap_def.h | 155 void (*recvConnectionReq)(uint16_t lcid, uint8_t id, const L2capConnectionInfo *info, uint16_t lpsm, void *ctx); 159 uint16_t lcid, const L2capConnectionInfo *info, uint16_t result, uint16_t status, void *ctx); 162 void (*recvConfigReq)(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *ctx); 165 void (*recvConfigRsp)(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx); 168 void (*recvDisconnectionReq)(uint16_t lcid, uint8_t id, void *ctx); 171 void (*recvDisconnectionRsp)(uint16_t lcid, void *ctx); 174 void (*disconnectAbnormal)(uint16_t lcid, uint8_t reason, void *ctx); 177 void (*recvData)(uint16_t lcid, Packet *pkt, void *ctx); 180 void (*remoteBusy)(uint16_t lcid, uint8_t isBusy, void *ctx); 185 void (*recvEchoReq)(uint16_t aclHandle, uint8_t id, const uint8_t *data, uint16_t dataLen, void *ctx); [all...] |