Home
last modified time | relevance | path

Searched refs:ctx (Results 4301 - 4325 of 12979) sorted by relevance

1...<<171172173174175176177178179180>>...520

/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Dinterp_fixup_pass.cpp44 bool ReplaceInternalInterpolate(IRContext* ctx, Instruction* inst, in ReplaceInternalInterpolate() argument
47 ctx->get_feature_mgr()->GetExtInstImportId_GLSLstd450(); in ReplaceInternalInterpolate()
54 Instruction* load_inst = ctx->get_def_use_mgr()->GetDef(op1_id); in ReplaceInternalInterpolate()
76 ctx->UpdateDefUse(inst); in ReplaceInternalInterpolate()
82 explicit InterpFoldingRules(IRContext* ctx) : FoldingRules(ctx) {} in InterpFoldingRules() argument
102 InterpConstFoldingRules(IRContext* ctx) : ConstantFoldingRules(ctx) {} in InterpConstFoldingRules() argument
/third_party/openssl/test/
H A Dprovider_internal_test.c102 OSSL_LIB_CTX *ctx; in test_cache_flushes() local
107 if (!TEST_ptr(ctx = OSSL_LIB_CTX_new()) in test_cache_flushes()
108 || !TEST_ptr(prov = OSSL_PROVIDER_load(ctx, "default")) in test_cache_flushes()
109 || !TEST_true(OSSL_PROVIDER_available(ctx, "default")) in test_cache_flushes()
110 || !TEST_ptr(md = EVP_MD_fetch(ctx, "SHA256", NULL))) in test_cache_flushes()
117 if (!TEST_false(OSSL_PROVIDER_available(ctx, "default"))) in test_cache_flushes()
120 if (!TEST_ptr_null(md = EVP_MD_fetch(ctx, "SHA256", NULL))) { in test_cache_flushes()
133 OSSL_LIB_CTX_free(ctx); in test_cache_flushes()
/third_party/skia/tools/
H A DSkSharingProc.cpp16 sk_sp<SkData> collectNonTextureImagesProc(SkImage* img, void* ctx) { in collectNonTextureImagesProc() argument
17 SkSharingSerialContext* context = reinterpret_cast<SkSharingSerialContext*>(ctx); in collectNonTextureImagesProc()
36 SK_API sk_sp<SkData> SkSharingSerialContext::serializeImage(SkImage* img, void* ctx) { in serializeImage() argument
37 SkSharingSerialContext* context = reinterpret_cast<SkSharingSerialContext*>(ctx); in serializeImage()
57 const void* data, size_t length, void* ctx) { in deserializeImage()
58 if (!data || !length || !ctx) { in deserializeImage()
60 data, length, ctx); in deserializeImage()
66 SkSharingDeserialContext* context = reinterpret_cast<SkSharingDeserialContext*>(ctx); in deserializeImage()
56 deserializeImage( const void* data, size_t length, void* ctx) deserializeImage() argument
/third_party/skia/modules/svg/src/
H A DSkSVGPattern.cpp28 const SkSVGPattern* SkSVGPattern::hrefTarget(const SkSVGRenderContext& ctx) const { in hrefTarget()
33 const auto href = ctx.findNodeById(fHref); in hrefTarget()
60 const SkSVGPattern* SkSVGPattern::resolveHref(const SkSVGRenderContext& ctx, in resolveHref() argument
84 currentNode = currentNode->hrefTarget(ctx); in resolveHref()
90 bool SkSVGPattern::onAsPaint(const SkSVGRenderContext& ctx, SkPaint* paint) const { in onAsPaint() argument
92 const auto* contentNode = this->resolveHref(ctx, &attrs); in onAsPaint()
94 const auto tile = ctx.lengthContext().resolveRect( in onAsPaint()
109 SkSVGRenderContext recordingContext(ctx, recorder.beginRecording(tile)); in onAsPaint()
H A DSkSVGImage.cpp27 bool SkSVGImage::onPrepareToRender(SkSVGRenderContext* ctx) const { in onPrepareToRender()
31 INHERITED::onPrepareToRender(ctx); in onPrepareToRender()
79 void SkSVGImage::onRender(const SkSVGRenderContext& ctx) const { in onRender()
81 const SkSVGLengthContext& lctx = ctx.lengthContext(); in onRender()
84 const auto imgInfo = LoadImage(ctx.resourceProvider(), fHref, viewPort, fPreserveAspectRatio); in onRender()
91 ctx.canvas()->drawImageRect( in onRender()
97 SkRect SkSVGImage::onObjectBoundingBox(const SkSVGRenderContext& ctx) const { in onObjectBoundingBox()
98 const SkSVGLengthContext& lctx = ctx.lengthContext(); in onObjectBoundingBox()
/third_party/spirv-tools/source/opt/
H A Dinterp_fixup_pass.cpp35 bool ReplaceInternalInterpolate(IRContext* ctx, Instruction* inst, in ReplaceInternalInterpolate() argument
38 ctx->get_feature_mgr()->GetExtInstImportId_GLSLstd450(); in ReplaceInternalInterpolate()
45 Instruction* load_inst = ctx->get_def_use_mgr()->GetDef(op1_id); in ReplaceInternalInterpolate()
67 ctx->UpdateDefUse(inst); in ReplaceInternalInterpolate()
73 explicit InterpFoldingRules(IRContext* ctx) : FoldingRules(ctx) {} in InterpFoldingRules() argument
93 InterpConstFoldingRules(IRContext* ctx) : ConstantFoldingRules(ctx) {} in InterpConstFoldingRules() argument
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/protected_memory/
H A DvktProtectedMemContext.hpp45 ProtectedContext (Context& ctx,
49 ProtectedContext (Context& ctx,
98 ProtectedTestInstance (Context& ctx) in ProtectedTestInstance() argument
99 : TestInstance (ctx) in ProtectedTestInstance()
100 , m_protectedContext (ctx) in ProtectedTestInstance()
102 ProtectedTestInstance (Context& ctx, const std::vector<std::string>& deviceExtensions) in ProtectedTestInstance() argument
103 : TestInstance (ctx) in ProtectedTestInstance()
104 , m_protectedContext (ctx, {}, deviceExtensions) in ProtectedTestInstance()
/foundation/arkui/napi/sample/native_module_systemtest/
H A Dtest_quickjs.cpp44 JSContext* ctx = JS_NewContext(rt); in main() local
45 if (ctx == nullptr) { in main()
49 js_std_add_helpers(ctx, 0, nullptr); in main()
51 g_nativeEngine = new QuickJSNativeEngine(rt, ctx, 0); // default instance id 0 in main()
64 JS_FreeContext(ctx); in main()
/foundation/graphic/graphic_3d/kits/js/include/
H A DPostProcJS.h32 napi_value Dispose(NapiApi::FunctionContext<>& ctx);
37 napi_value GetToneMapping(NapiApi::FunctionContext<>& ctx);
38 void SetToneMapping(NapiApi::FunctionContext<NapiApi::Object>& ctx);
39 napi_value GetBloom(NapiApi::FunctionContext<>& ctx);
40 void SetBloom(NapiApi::FunctionContext<bool>& ctx);
H A DToneMapJS.h36 napi_value Dispose(NapiApi::FunctionContext<>& ctx);
40 napi_value GetType(NapiApi::FunctionContext<>& ctx);
41 void SetType(NapiApi::FunctionContext<uint32_t>& ctx);
43 napi_value GetExposure(NapiApi::FunctionContext<>& ctx);
44 void SetExposure(NapiApi::FunctionContext<float>& ctx);
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/test/unittest/
H A Degl_wrapper_context_test.cpp44 EglWrapperContext ctx(disp, context); in HWTEST_F()
48 ctx.SetCurrentSurface(draw, read); in HWTEST_F()
50 auto result = ctx.GetCurrentSurface(EGL_READ); in HWTEST_F()
52 result = ctx.GetCurrentSurface(EGL_DRAW); in HWTEST_F()
54 result = ctx.GetCurrentSurface(0); in HWTEST_F()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_bpf_array_map.c26 int dump_bpf_array_map(struct bpf_iter__bpf_map_elem *ctx) in dump_bpf_array_map() argument
28 __u32 *key = ctx->key; in dump_bpf_array_map()
29 __u64 *val = ctx->value; in dump_bpf_array_map()
34 bpf_seq_write(ctx->meta->seq, key, sizeof(__u32)); in dump_bpf_array_map()
35 bpf_seq_write(ctx->meta->seq, val, sizeof(__u64)); in dump_bpf_array_map()
H A Dtrigger_bench.c14 int bench_trigger_tp(void *ctx) in bench_trigger_tp() argument
29 int bench_trigger_kprobe(void *ctx) in bench_trigger_kprobe() argument
36 int bench_trigger_fentry(void *ctx) in bench_trigger_fentry() argument
43 int bench_trigger_fentry_sleep(void *ctx) in bench_trigger_fentry_sleep() argument
50 int bench_trigger_fmodret(void *ctx) in bench_trigger_fmodret() argument
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/
H A Dmtk_vcodec_dec.h65 * mtk_vdec_lock/mtk_vdec_unlock are for ctx instance to
68 * to ctx instance that get lock
70 void mtk_vdec_unlock(struct mtk_vcodec_ctx *ctx);
71 void mtk_vdec_lock(struct mtk_vcodec_ctx *ctx);
74 void mtk_vcodec_dec_set_default_params(struct mtk_vcodec_ctx *ctx);
75 void mtk_vcodec_dec_release(struct mtk_vcodec_ctx *ctx);
76 int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_ctx *ctx);
H A Dmtk_vcodec_enc.h42 int mtk_venc_unlock(struct mtk_vcodec_ctx *ctx);
43 int mtk_venc_lock(struct mtk_vcodec_ctx *ctx);
46 void mtk_vcodec_enc_release(struct mtk_vcodec_ctx *ctx);
47 int mtk_vcodec_enc_ctrls_setup(struct mtk_vcodec_ctx *ctx);
48 void mtk_vcodec_enc_set_default_params(struct mtk_vcodec_ctx *ctx);
/kernel/linux/linux-5.10/drivers/gpu/host1x/
H A Ddebug.h16 void (*fn)(void *ctx, const char *str, size_t len, bool cont);
17 void *ctx; member
21 static inline void write_to_seqfile(void *ctx, const char *str, size_t len, in write_to_seqfile() argument
24 seq_write((struct seq_file *)ctx, str, len); in write_to_seqfile()
27 static inline void write_to_printk(void *ctx, const char *str, size_t len, in write_to_printk() argument
/kernel/linux/linux-6.6/arch/x86/crypto/
H A Dtwofish.h10 asmlinkage void twofish_enc_blk(const void *ctx, u8 *dst, const u8 *src);
11 asmlinkage void twofish_dec_blk(const void *ctx, u8 *dst, const u8 *src);
14 asmlinkage void __twofish_enc_blk_3way(const void *ctx, u8 *dst, const u8 *src,
16 asmlinkage void twofish_dec_blk_3way(const void *ctx, u8 *dst, const u8 *src);
19 extern void twofish_dec_blk_cbc_3way(const void *ctx, u8 *dst, const u8 *src);
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/encoder/
H A Dmtk_vcodec_enc.h44 int mtk_venc_unlock(struct mtk_vcodec_enc_ctx *ctx);
45 int mtk_venc_lock(struct mtk_vcodec_enc_ctx *ctx);
48 void mtk_vcodec_enc_release(struct mtk_vcodec_enc_ctx *ctx);
49 int mtk_vcodec_enc_ctrls_setup(struct mtk_vcodec_enc_ctx *ctx);
50 void mtk_vcodec_enc_set_default_params(struct mtk_vcodec_enc_ctx *ctx);
/kernel/linux/linux-6.6/drivers/gpu/host1x/
H A Ddebug.h16 void (*fn)(void *ctx, const char *str, size_t len, bool cont);
17 void *ctx; member
21 static inline void write_to_seqfile(void *ctx, const char *str, size_t len, in write_to_seqfile() argument
24 seq_write((struct seq_file *)ctx, str, len); in write_to_seqfile()
27 static inline void write_to_printk(void *ctx, const char *str, size_t len, in write_to_printk() argument
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_attach_probe_manual.c18 int handle_kprobe(struct pt_regs *ctx) in handle_kprobe() argument
25 int handle_kretprobe(struct pt_regs *ctx) in handle_kretprobe() argument
32 int handle_uprobe(struct pt_regs *ctx) in handle_uprobe() argument
39 int handle_uretprobe(struct pt_regs *ctx) in handle_uretprobe() argument
46 int handle_uprobe_byname(struct pt_regs *ctx) in handle_uprobe_byname() argument
H A Dtest_xdp_with_cpumap_helpers.c16 int xdp_redir_prog(struct xdp_md *ctx) in xdp_redir_prog() argument
22 int xdp_dummy_prog(struct xdp_md *ctx) in xdp_dummy_prog() argument
28 int xdp_dummy_cm(struct xdp_md *ctx) in xdp_dummy_cm() argument
30 if (ctx->ingress_ifindex == IFINDEX_LO) in xdp_dummy_cm()
37 int xdp_dummy_cm_frags(struct xdp_md *ctx) in xdp_dummy_cm_frags() argument
/kernel/linux/linux-6.6/mm/damon/
H A Dsysfs-common.h41 int damon_sysfs_set_schemes(struct damon_ctx *ctx,
46 struct damon_ctx *ctx);
50 struct damon_ctx *ctx, bool total_bytes_only);
52 int damon_sysfs_schemes_update_regions_stop(struct damon_ctx *ctx);
56 struct damon_ctx *ctx);
/kernel/linux/linux-6.6/samples/bpf/
H A Dtracex4.bpf.c28 int bpf_prog1(struct pt_regs *ctx) in bpf_prog1() argument
30 long ptr = PT_REGS_PARM2(ctx); in bpf_prog1()
37 int bpf_prog2(struct pt_regs *ctx) in bpf_prog2() argument
39 long ptr = PT_REGS_RC(ctx); in bpf_prog2()
43 BPF_KRETPROBE_READ_RET_IP(ip, ctx); in bpf_prog2()
/third_party/ffmpeg/libavutil/
H A Dhmac.h51 * @param ctx The context to free, may be NULL
53 void av_hmac_free(AVHMAC *ctx);
57 * @param ctx The HMAC context
61 void av_hmac_init(AVHMAC *ctx, const uint8_t *key, unsigned int keylen);
65 * @param ctx The HMAC context
69 void av_hmac_update(AVHMAC *ctx, const uint8_t *data, unsigned int len);
73 * @param ctx The HMAC context
78 int av_hmac_final(AVHMAC *ctx, uint8_t *out, unsigned int outlen);
82 * @param ctx The HMAC context
91 int av_hmac_calc(AVHMAC *ctx, cons
[all...]
/third_party/mbedtls/include/mbedtls/
H A Dpoly1305.h75 * \param ctx The Poly1305 context to initialize. This must
78 void mbedtls_poly1305_init(mbedtls_poly1305_context *ctx);
84 * \param ctx The Poly1305 context to clear. This may be \c NULL, in which
88 void mbedtls_poly1305_free(mbedtls_poly1305_context *ctx);
96 * \param ctx The Poly1305 context to which the key should be bound.
103 int mbedtls_poly1305_starts(mbedtls_poly1305_context *ctx,
114 * \param ctx The Poly1305 context to use for the Poly1305 operation.
124 int mbedtls_poly1305_update(mbedtls_poly1305_context *ctx,
132 * \param ctx The Poly1305 context to use for the Poly1305 operation.
140 int mbedtls_poly1305_finish(mbedtls_poly1305_context *ctx,
[all...]

Completed in 9 milliseconds

1...<<171172173174175176177178179180>>...520