/kernel/linux/linux-6.6/samples/bpf/ |
H A D | cpustat_kern.c | 104 int bpf_prog1(struct cpu_args *ctx) in bpf_prog1() argument 110 if (ctx->cpu_id > MAX_CPU) in bpf_prog1() 113 cpu = ctx->cpu_id; in bpf_prog1() 136 *cstate = ctx->state; in bpf_prog1() 163 if (ctx->state != (u32)-1) { in bpf_prog1() 212 int bpf_prog2(struct cpu_args *ctx) in bpf_prog2() argument 218 cpu = ctx->cpu_id; in bpf_prog2() 236 *pstate = ctx->state; in bpf_prog2()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_spin_lock_fail.c | 35 int lock_id_kptr_preserve(void *ctx) in lock_id_kptr_preserve() argument 47 int lock_id_global_zero(void *ctx) in lock_id_global_zero() argument 54 int lock_id_mapval_preserve(void *ctx) in lock_id_mapval_preserve() argument 67 int lock_id_innermapval_preserve(void *ctx) in lock_id_innermapval_preserve() argument 85 int lock_id_mismatch_##test(void *ctx) \ 124 int lock_id_mismatch_mapval_mapval(void *ctx) in lock_id_mismatch_mapval_mapval() argument 148 int lock_id_mismatch_innermapval_innermapval1(void *ctx) in lock_id_mismatch_innermapval_innermapval1() argument 172 int lock_id_mismatch_innermapval_innermapval2(void *ctx) in lock_id_mismatch_innermapval_innermapval2() argument
|
/kernel/linux/linux-6.6/sound/soc/intel/skylake/ |
H A D | skl-sst-cldma.h | 196 void (*cl_setup_bdle)(struct sst_dsp *ctx, 199 void (*cl_setup_controller)(struct sst_dsp *ctx, 202 void (*cl_setup_spb)(struct sst_dsp *ctx, 204 void (*cl_cleanup_spb)(struct sst_dsp *ctx); 205 void (*cl_trigger)(struct sst_dsp *ctx, bool enable); 206 void (*cl_cleanup_controller)(struct sst_dsp *ctx); 207 int (*cl_copy_to_dmabuf)(struct sst_dsp *ctx, 209 void (*cl_stop_dma)(struct sst_dsp *ctx);
|
/kernel/linux/linux-6.6/samples/seccomp/ |
H A D | bpf-direct.c | 64 ucontext_t *ctx = (ucontext_t *)(void_context); in emulator() local 71 if (!ctx) in emulator() 73 syscall = ctx->uc_mcontext.gregs[REG_SYSCALL]; in emulator() 74 buf = (char *) ctx->uc_mcontext.gregs[REG_ARG1]; in emulator() 75 len = (size_t) ctx->uc_mcontext.gregs[REG_ARG2]; in emulator() 79 if (ctx->uc_mcontext.gregs[REG_ARG0] != STDERR_FILENO) in emulator() 82 ctx->uc_mcontext.gregs[REG_RESULT] = -1; in emulator() 85 ctx->uc_mcontext.gregs[REG_RESULT] = bytes; in emulator()
|
/third_party/elfutils/tests/ |
H A D | asm-tst1.c | 66 AsmCtx_t *ctx; in main() local 85 ctx = asm_begin (fname, ebl, false); in main() 86 if (ctx == NULL) in main() 93 scn1 = asm_newscn (ctx, ".text", SHT_PROGBITS, SHF_ALLOC | SHF_EXECINSTR); in main() 94 scn2 = asm_newscn (ctx, ".data", SHT_PROGBITS, SHF_ALLOC | SHF_WRITE); in main() 98 asm_abort (ctx); in main() 110 if (asm_end (ctx) != 0) in main() 113 asm_abort (ctx); in main()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_despill.c | 43 static int do_despill_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in do_despill_slice() argument 45 DespillContext *s = ctx->priv; in do_despill_slice() 94 AVFilterContext *ctx = link->dst; in filter_frame() local 97 if (ret = ff_filter_execute(ctx, do_despill_slice, frame, NULL, in filter_frame() 98 FFMIN(frame->height, ff_filter_get_nb_threads(ctx)))) in filter_frame() 101 return ff_filter_frame(ctx->outputs[0], frame); in filter_frame() 106 AVFilterContext *ctx = outlink->src; in config_output() local 107 DespillContext *s = ctx->priv; in config_output()
|
H A D | opencl.h | 93 #define CL_CREATE_KERNEL(ctx, kernel_name) do { \ 94 ctx->kernel_ ## kernel_name = clCreateKernel(ctx->ocf.program, #kernel_name, &cle); \ 197 #define CL_CREATE_BUFFER_FLAGS(ctx, buffer_name, flags, size, host_ptr) do { \ 198 ctx->buffer_name = clCreateBuffer( \ 199 ctx->ocf.hwctx->context, \ 237 #define CL_CREATE_BUFFER(ctx, buffer_name, size) CL_CREATE_BUFFER_FLAGS(ctx, buffer_name, 0, size, NULL)
|
H A D | vf_hflip.c | 47 static int query_formats(AVFilterContext *ctx) in query_formats() argument 62 return ff_set_common_formats(ctx, pix_fmts); in query_formats() 89 static int filter_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs) in filter_slice() argument 91 FlipContext *s = ctx->priv; in filter_slice() 121 AVFilterContext *ctx = inlink->dst; in filter_frame() local 122 AVFilterLink *outlink = ctx->outputs[0]; in filter_frame() 138 ff_filter_execute(ctx, filter_slice, &td, NULL, in filter_frame() 139 FFMIN(outlink->h, ff_filter_get_nb_threads(ctx))); in filter_frame()
|
H A D | vf_shuffleframes.c | 40 static av_cold int init(AVFilterContext *ctx) in init() argument 42 ShuffleFramesContext *s = ctx->priv; in init() 71 av_log(ctx, AV_LOG_ERROR, "Index %d out of range: [-1, %d].\n", s->map[n], nb_items - 1); in init() 84 AVFilterContext *ctx = inlink->dst; in filter_frame() local 85 ShuffleFramesContext *s = ctx->priv; in filter_frame() 106 ret = ff_filter_frame(ctx->outputs[0], out); in filter_frame() 118 static av_cold void uninit(AVFilterContext *ctx) in uninit() argument 120 ShuffleFramesContext *s = ctx->priv; in uninit()
|
/third_party/ffmpeg/libavformat/ |
H A D | gdv.c | 70 static int gdv_read_header(AVFormatContext *ctx) in gdv_read_header() argument 72 GDVContext *gdv = ctx->priv_data; in gdv_read_header() 73 AVIOContext *pb = ctx->pb; in gdv_read_header() 80 vst = avformat_new_stream(ctx, 0); in gdv_read_header() 94 ast = avformat_new_stream(ctx, 0); in gdv_read_header() 156 static int gdv_read_packet(AVFormatContext *ctx, AVPacket *pkt) in gdv_read_packet() argument 158 GDVContext *gdv = ctx->priv_data; in gdv_read_packet() 159 AVIOContext *pb = ctx->pb; in gdv_read_packet()
|
/third_party/libcoap/examples/ |
H A D | tiny.c | 89 get_session(coap_context_t *ctx, const char *group) { in get_session() argument 96 if (!ctx) in get_session() 117 session = coap_new_client_session(ctx, NULL, &addr, COAP_PROTO_UDP); in get_session() 142 coap_context_t *ctx; in main() local 152 ctx = coap_new_context(NULL); in main() 153 if (!ctx) in main() 156 session = get_session(ctx, argc > 1 ? argv[1] : "::1"); in main() 185 coap_free_context(ctx); in main()
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
H A D | r600_uvd.c | 61 struct r600_context *ctx = (struct r600_context *)pipe; in r600_video_buffer_create() local 84 if (ctx->b.gfx_level < EVERGREEN || tmpl->interlaced || !R600_UVD_ENABLE_TILING) in r600_video_buffer_create() 94 if (ctx->b.gfx_level < EVERGREEN || tmpl->interlaced || !R600_UVD_ENABLE_TILING) in r600_video_buffer_create() 105 if (ctx->b.gfx_level < EVERGREEN || tmpl->interlaced || !R600_UVD_ENABLE_TILING) in r600_video_buffer_create() 121 rvid_join_surfaces(&ctx->b, pbs, surfaces); in r600_video_buffer_create() 128 resources[i]->resource.gpu_address = ctx->b.ws->buffer_get_virtual_address( in r600_video_buffer_create() 191 struct r600_context *ctx = (struct r600_context *)context; in r600_uvd_create_decoder() local 194 return rvce_create_encoder(context, templat, ctx->b.ws, r600_vce_get_buffer); in r600_uvd_create_decoder()
|
/third_party/node/src/crypto/ |
H A D | crypto_hkdf.cc | 107 EVPKeyCtxPointer ctx = in DeriveBits() local 109 if (!ctx || !EVP_PKEY_derive_init(ctx.get()) || in DeriveBits() 110 !EVP_PKEY_CTX_set_hkdf_md(ctx.get(), params.digest) || in DeriveBits() 112 ctx.get(), params.info.data<unsigned char>(), params.info.size())) { in DeriveBits() 143 if (!EVP_PKEY_CTX_hkdf_mode(ctx.get(), EVP_PKEY_HKDEF_MODE_EXPAND_ONLY) || in DeriveBits() 144 !EVP_PKEY_CTX_set1_hkdf_key(ctx.get(), pseudorandom_key, prk_len)) { in DeriveBits() 150 if (EVP_PKEY_derive(ctx.get(), buf.data<unsigned char>(), &length) <= 0) in DeriveBits()
|
/third_party/musl/src/malloc/mallocng/ |
H A D | free.c | 19 ctx.usage_by_class[sc] -= g->last_idx+1; in free_group() 61 size_t usage = ctx.usage_by_class[sc]; in okay_to_free() 83 int activate_new = (ctx.active[sc]==g); in nontrivial_free() 84 dequeue(&ctx.active[sc], g); in nontrivial_free() 85 if (activate_new && ctx.active[sc]) in nontrivial_free() 86 activate_group(ctx.active[sc]); in nontrivial_free() 93 if (ctx.active[sc] != g) { in nontrivial_free() 94 queue(&ctx.active[sc], g); in nontrivial_free()
|
/third_party/lz4/ossfuzz/ |
H A D | round_trip_frame_uncompressed_fuzzer.c | 71 LZ4F_compressionContext_t ctx; in compress_round_trip() local 72 size_t const ctxCreation = LZ4F_createCompressionContext(&ctx, LZ4F_VERSION); in compress_round_trip() 75 size_t const headerSize = LZ4F_compressBegin(ctx, dst, dstCapacity, &prefs); in compress_round_trip() 80 size_t lz4Return = LZ4F_compressUpdate(ctx, dst + compressedSize, dstCapacity, in compress_round_trip() 86 lz4Return = LZ4F_uncompressedUpdate(ctx, dst + compressedSize, dstCapacity, in compress_round_trip() 92 lz4Return = LZ4F_compressUpdate(ctx, dst + compressedSize, dstCapacity, in compress_round_trip() 99 lz4Return = LZ4F_compressEnd(ctx, dst + compressedSize, dstCapacity, NULL); in compress_round_trip() 120 LZ4F_freeCompressionContext(ctx); in compress_round_trip()
|
/third_party/node/deps/openssl/openssl/ssl/ |
H A D | ssl_rsa_legacy.c | 99 int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa) in SSL_CTX_use_RSAPrivateKey() argument 120 ret = SSL_CTX_use_PrivateKey(ctx, pkey); in SSL_CTX_use_RSAPrivateKey() 125 int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file, int type) in SSL_CTX_use_RSAPrivateKey_file() argument 147 SSL_CTX_get_default_passwd_cb(ctx), in SSL_CTX_use_RSAPrivateKey_file() 148 SSL_CTX_get_default_passwd_cb_userdata(ctx)); in SSL_CTX_use_RSAPrivateKey_file() 157 ret = SSL_CTX_use_RSAPrivateKey(ctx, rsa); in SSL_CTX_use_RSAPrivateKey_file() 164 int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d, in SSL_CTX_use_RSAPrivateKey_ASN1() argument 177 ret = SSL_CTX_use_RSAPrivateKey(ctx, rsa); in SSL_CTX_use_RSAPrivateKey_ASN1()
|
/third_party/node/deps/openssl/openssl/fuzz/ |
H A D | x509.c | 28 static int cb(int ok, X509_STORE_CTX *ctx) in cb() argument 42 X509_STORE_CTX *ctx = NULL; in FuzzerTestOneInput() local 93 ctx = X509_STORE_CTX_new(); in FuzzerTestOneInput() 94 if (ctx == NULL) in FuzzerTestOneInput() 97 X509_STORE_CTX_init(ctx, store, x509_1, NULL); in FuzzerTestOneInput() 105 X509_STORE_CTX_set0_crls(ctx, crls); in FuzzerTestOneInput() 108 X509_verify_cert(ctx); in FuzzerTestOneInput() 134 X509_STORE_CTX_free(ctx); in FuzzerTestOneInput()
|
/third_party/openssl/ssl/ |
H A D | ssl_rsa_legacy.c | 99 int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa) in SSL_CTX_use_RSAPrivateKey() argument 120 ret = SSL_CTX_use_PrivateKey(ctx, pkey); in SSL_CTX_use_RSAPrivateKey() 125 int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file, int type) in SSL_CTX_use_RSAPrivateKey_file() argument 147 SSL_CTX_get_default_passwd_cb(ctx), in SSL_CTX_use_RSAPrivateKey_file() 148 SSL_CTX_get_default_passwd_cb_userdata(ctx)); in SSL_CTX_use_RSAPrivateKey_file() 157 ret = SSL_CTX_use_RSAPrivateKey(ctx, rsa); in SSL_CTX_use_RSAPrivateKey_file() 164 int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d, in SSL_CTX_use_RSAPrivateKey_ASN1() argument 177 ret = SSL_CTX_use_RSAPrivateKey(ctx, rsa); in SSL_CTX_use_RSAPrivateKey_ASN1()
|
/third_party/skia/third_party/externals/tint/src/ast/ |
H A D | module_test.cc | 108 CloneContext ctx(&cloned, &p); in TEST_F() 109 ctx.ReplaceAll([&](const ast::Function*) -> const ast::Function* { in TEST_F() 110 ctx.dst->Alias("inserted_before_F", cloned.ty.u32()); in TEST_F() 113 ctx.ReplaceAll([&](const ast::Alias*) -> const ast::Alias* { in TEST_F() 114 ctx.dst->Alias("inserted_before_A", cloned.ty.u32()); in TEST_F() 117 ctx.ReplaceAll([&](const ast::Variable*) -> const ast::Variable* { in TEST_F() 118 ctx.dst->Alias("inserted_before_V", cloned.ty.u32()); in TEST_F() 121 ctx.Clone(); in TEST_F()
|
/foundation/communication/netmanager_base/bpf/bpf_progs/ |
H A D | offload.c | 21 static SEC("xdp/offload/downstream/ether") int bpf_xdp_offload_downstream_ether(struct xdp_md *ctx) { return 0; }
in bpf_xdp_offload_downstream_ether() argument 23 static SEC("xdp/offload/upstream/ether") int bpf_xdp_offload_upstream_ether(struct xdp_md *ctx) { return 0; }
in bpf_xdp_offload_upstream_ether() argument 25 static SEC("xdp/offload/downstream/raw") int bpf_xdp_offload_downstream_raw(struct xdp_md *ctx) { return 0; }
in bpf_xdp_offload_downstream_raw() argument 27 static SEC("xdp/offload/upstream/raw") int bpf_xdp_offload_upstream_raw(struct xdp_md *ctx) { return 0; }
in bpf_xdp_offload_upstream_raw() argument
|
/foundation/communication/wifi/wifi/test/wifi_standard/ipc_framework/cRPC/unittest/ |
H A D | context_test.h | 33 if (ctx != nullptr) { in TearDown() 34 ReleaseContext(ctx); in TearDown() 35 ctx = nullptr; in TearDown() 40 Context *ctx; member in OHOS::Wifi::ContextTest
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_base/ |
H A D | context_test.h | 33 if (ctx != nullptr) { in TearDown() 34 ReleaseContext(ctx); in TearDown() 35 ctx = nullptr; in TearDown() 40 Context *ctx; member in OHOS::Wifi::ContextTest
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_task.c | 10 int dump_task(struct bpf_iter__task *ctx) in dump_task() argument 12 struct seq_file *seq = ctx->meta->seq; in dump_task() 13 struct task_struct *task = ctx->task; in dump_task() 21 if (ctx->meta->seq_num == 0) in dump_task()
|
H A D | test_autoload.c | 14 int prog1(const void *ctx) in prog1() argument 21 int prog2(const void *ctx) in prog2() argument 32 int prog3(const void *ctx) in prog3() argument 34 struct fake_kernel_struct *fake = (void *)ctx; in prog3()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | mapping.h | 9 int mapping_add(struct mapping_ctx *ctx, void *data, u32 *id); 10 int mapping_remove(struct mapping_ctx *ctx, u32 id); 11 int mapping_find(struct mapping_ctx *ctx, u32 id, void *data); 25 void mapping_destroy(struct mapping_ctx *ctx);
|