/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/ |
H A D | bn.rs | 8 pub fn BN_CTX_free(ctx: *mut BN_CTX); in BN_CTX_free() 30 pub fn BN_mul(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM, ctx: *mut BN_CTX) -> c_int; in BN_mul() 31 pub fn BN_sqr(r: *mut BIGNUM, a: *const BIGNUM, ctx: *mut BN_CTX) -> c_int; in BN_sqr() 43 ctx: *mut BN_CTX, in BN_div() 49 ctx: *mut BN_CTX, in BN_nnmod() 56 ctx: *mut BN_CTX, in BN_mod_add() 63 ctx: *mut BN_CTX, in BN_mod_sub() 70 ctx: *mut BN_CTX, in BN_mod_mul() 76 ctx: *mut BN_CTX, in BN_mod_sqr() 83 ctx in BN_mod_sqrt() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hid_host/ |
H A D | hid_host_l2cap_connection.h | 155 * @param ctx Indicates the pointer to context. 158 uint16_t lcid, uint8_t id, const L2capConnectionInfo *info, uint16_t lpsm, void *ctx); 167 * @param ctx Indicates the pointer to context. 170 uint16_t lcid, const L2capConnectionInfo *info, uint16_t result, uint16_t status, void *ctx); 178 * @param ctx Indicates the pointer to context. 180 static void HidHostRecvConfigReqCallback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *ctx); 188 * @param ctx Indicates the pointer to context. 190 static void HidHostRecvConfigRspCallback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx); 198 * @param ctx Indicates the pointer to context. 200 static void HidHostRecvDisconnectionReqCallback(uint16_t lcid, uint8_t id, void *ctx); [all...] |
/kernel/linux/linux-5.10/crypto/ |
H A D | crc32c_generic.c | 60 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_init() local 62 ctx->crc = mctx->key; in chksum_init() 86 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_update() local 88 ctx->crc = __crc32c_le(ctx->crc, data, length); in chksum_update() 94 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_final() local 96 put_unaligned_le32(~ctx->crc, out); in chksum_final() 109 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_finup() local 111 return __chksum_finup(&ctx->crc, data, len, out); in chksum_finup()
|
H A D | chacha_generic.c | 16 const struct chacha_ctx *ctx, const u8 *iv) in chacha_stream_xor() 24 chacha_init_generic(state, ctx->key, iv); in chacha_stream_xor() 33 walk.src.virt.addr, nbytes, ctx->nrounds); in chacha_stream_xor() 43 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_chacha_crypt() local 45 return chacha_stream_xor(req, ctx, req->iv); in crypto_chacha_crypt() 51 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_xchacha_crypt() local 57 chacha_init_generic(state, ctx->key, req->iv); in crypto_xchacha_crypt() 58 hchacha_block_generic(state, subctx.key, ctx->nrounds); in crypto_xchacha_crypt() 59 subctx.nrounds = ctx->nrounds; in crypto_xchacha_crypt() 15 chacha_stream_xor(struct skcipher_request *req, const struct chacha_ctx *ctx, const u8 *iv) chacha_stream_xor() argument
|
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec2/ |
H A D | sec.h | 42 struct sec_ctx *ctx; member 68 int (*buf_map)(struct sec_ctx *ctx, struct sec_req *req); 69 void (*buf_unmap)(struct sec_ctx *ctx, struct sec_req *req); 70 void (*do_transfer)(struct sec_ctx *ctx, struct sec_req *req); 71 int (*bd_fill)(struct sec_ctx *ctx, struct sec_req *req); 72 int (*bd_send)(struct sec_ctx *ctx, struct sec_req *req); 73 void (*callback)(struct sec_ctx *ctx, struct sec_req *req, int err); 74 int (*process)(struct sec_ctx *ctx, struct sec_req *req); 105 struct sec_ctx *ctx; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/ |
H A D | dce120_clk_mgr.c | 60 struct dc_bios *bp = clk_mgr_dce->base.ctx->dc_bios; in dce121_clock_patch_xgmi_ss_info() 109 dm_pp_apply_clock_for_voltage_request(clk_mgr_base->ctx, &clock_voltage_req); in dce12_update_clocks() 117 dm_pp_apply_clock_for_voltage_request(clk_mgr_base->ctx, &clock_voltage_req); in dce12_update_clocks() 119 dce11_pplib_apply_display_requirements(clk_mgr_base->ctx->dc, context); in dce12_update_clocks() 128 void dce120_clk_mgr_construct(struct dc_context *ctx, struct clk_mgr_internal *clk_mgr) in dce120_clk_mgr_construct() argument 130 dce_clk_mgr_construct(ctx, clk_mgr); in dce120_clk_mgr_construct() 140 void dce121_clk_mgr_construct(struct dc_context *ctx, struct clk_mgr_internal *clk_mgr) in dce121_clk_mgr_construct() argument 142 dce120_clk_mgr_construct(ctx, clk_mgr); in dce121_clk_mgr_construct() 149 if (dce121_xgmi_enabled(ctx->dc->hwseq)) in dce121_clk_mgr_construct()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce120/ |
H A D | dce120_hw_sequencer.c | 41 hws->ctx 83 static void dce120_init_pte(struct dc_context *ctx, uint8_t controller_id) 93 value = dm_read_reg(ctx, addr); 110 dm_write_reg(ctx, addr, value);*/ 113 value = dm_read_reg(ctx, addr); 145 dm_write_reg(ctx, addr, value); 160 struct dc_context *ctx = dc->ctx; in dce120_enable_display_power_gating() 162 if (IS_FPGA_MAXIMUS_DC(ctx->dce_environment)) in dce120_enable_display_power_gating() 180 dm_write_reg(ctx, in dce120_enable_display_power_gating() [all...] |
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | xdp_fwd_kern.c | 43 static __always_inline int xdp_fwd_flags(struct xdp_md *ctx, u32 flags) in xdp_fwd_flags() argument 45 void *data_end = (void *)(long)ctx->data_end; in xdp_fwd_flags() 46 void *data = (void *)(long)ctx->data; in xdp_fwd_flags() 102 fib_params.ifindex = ctx->ingress_ifindex; in xdp_fwd_flags() 104 rc = bpf_fib_lookup(ctx, &fib_params, sizeof(fib_params), flags); in xdp_fwd_flags() 147 int xdp_fwd_prog(struct xdp_md *ctx) in xdp_fwd_prog() argument 149 return xdp_fwd_flags(ctx, 0); in xdp_fwd_prog() 153 int xdp_fwd_direct_prog(struct xdp_md *ctx) in xdp_fwd_direct_prog() argument 155 return xdp_fwd_flags(ctx, BPF_FIB_LOOKUP_DIRECT); in xdp_fwd_direct_prog()
|
/kernel/linux/linux-5.10/fs/erofs/ |
H A D | dir.c | 24 static int erofs_fill_dentries(struct inode *dir, struct dir_context *ctx, in erofs_fill_dentries() argument 57 if (!dir_emit(ctx, de_name, de_namelen, in erofs_fill_dentries() 68 static int erofs_readdir(struct file *f, struct dir_context *ctx) in erofs_readdir() argument 73 unsigned int i = ctx->pos / EROFS_BLKSIZ; in erofs_readdir() 74 unsigned int ofs = ctx->pos % EROFS_BLKSIZ; in erofs_readdir() 78 while (ctx->pos < dirsize) { in erofs_readdir() 109 dirsize - ctx->pos + ofs, PAGE_SIZE); in erofs_readdir() 120 err = erofs_fill_dentries(dir, ctx, de, &ofs, in erofs_readdir() 127 ctx->pos = blknr_to_addr(i) + ofs; in erofs_readdir()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_mmu.h | 95 int etnaviv_iommu_get_suballoc_va(struct etnaviv_iommu_context *ctx, 99 void etnaviv_iommu_put_suballoc_va(struct etnaviv_iommu_context *ctx, 102 size_t etnaviv_iommu_dump_size(struct etnaviv_iommu_context *ctx); 103 void etnaviv_iommu_dump(struct etnaviv_iommu_context *ctx, void *buf); 109 etnaviv_iommu_context_get(struct etnaviv_iommu_context *ctx) in etnaviv_iommu_context_get() argument 111 kref_get(&ctx->refcount); in etnaviv_iommu_context_get() 112 return ctx; in etnaviv_iommu_context_get() 114 void etnaviv_iommu_context_put(struct etnaviv_iommu_context *ctx); 116 struct etnaviv_iommu_context *ctx);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/irq/ |
H A D | irq_service.c | 54 irq_service->ctx 56 irq_service->ctx->logger 62 if (!init_data || !init_data->ctx) { in dal_irq_service_construct() 67 irq_service->ctx = init_data->ctx; in dal_irq_service_construct() 98 uint32_t value = dm_read_reg(irq_service->ctx, addr); in dal_irq_service_set_generic() 102 dm_write_reg(irq_service->ctx, addr, value); in dal_irq_service_set_generic() 135 uint32_t value = dm_read_reg(irq_service->ctx, addr); in dal_irq_service_ack_generic() 139 dm_write_reg(irq_service->ctx, addr, value); in dal_irq_service_ack_generic()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | dma-resv.h | 98 * @ctx: the locking context 108 * object may be locked by itself by passing NULL as @ctx. 111 struct ww_acquire_ctx *ctx) in dma_resv_lock() 113 return ww_mutex_lock(&obj->lock, ctx); in dma_resv_lock() 119 * @ctx: the locking context 129 * object may be locked by itself by passing NULL as @ctx. 132 struct ww_acquire_ctx *ctx) in dma_resv_lock_interruptible() 134 return ww_mutex_lock_interruptible(&obj->lock, ctx); in dma_resv_lock_interruptible() 140 * @ctx: the locking context 147 struct ww_acquire_ctx *ctx) in dma_resv_lock_slow() 110 dma_resv_lock(struct dma_resv *obj, struct ww_acquire_ctx *ctx) dma_resv_lock() argument 131 dma_resv_lock_interruptible(struct dma_resv *obj, struct ww_acquire_ctx *ctx) dma_resv_lock_interruptible() argument 146 dma_resv_lock_slow(struct dma_resv *obj, struct ww_acquire_ctx *ctx) dma_resv_lock_slow() argument 162 dma_resv_lock_slow_interruptible(struct dma_resv *obj, struct ww_acquire_ctx *ctx) dma_resv_lock_slow_interruptible() argument [all...] |
/kernel/linux/linux-6.6/fs/udf/ |
H A D | dir.c | 35 static int udf_readdir(struct file *file, struct dir_context *ctx) in udf_readdir() argument 46 if (ctx->pos == 0) { in udf_readdir() 47 if (!dir_emit_dot(file, ctx)) in udf_readdir() 49 ctx->pos = 1; in udf_readdir() 51 nf_pos = (ctx->pos - 1) << 2; in udf_readdir() 88 ctx->pos = (iter.pos >> 2) + 1; in udf_readdir() 101 if (!dir_emit_dotdot(file, ctx)) in udf_readdir() 113 if (!dir_emit(ctx, fname, flen, iblock, DT_UNKNOWN)) in udf_readdir() 118 ctx->pos = (iter.pos >> 2) + 1; in udf_readdir()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/ |
H A D | dce120_clk_mgr.c | 60 struct dc_bios *bp = clk_mgr_dce->base.ctx->dc_bios; in dce121_clock_patch_xgmi_ss_info() 109 dm_pp_apply_clock_for_voltage_request(clk_mgr_base->ctx, &clock_voltage_req); in dce12_update_clocks() 117 dm_pp_apply_clock_for_voltage_request(clk_mgr_base->ctx, &clock_voltage_req); in dce12_update_clocks() 119 dce11_pplib_apply_display_requirements(clk_mgr_base->ctx->dc, context); in dce12_update_clocks() 128 void dce120_clk_mgr_construct(struct dc_context *ctx, struct clk_mgr_internal *clk_mgr) in dce120_clk_mgr_construct() argument 130 dce_clk_mgr_construct(ctx, clk_mgr); in dce120_clk_mgr_construct() 140 void dce121_clk_mgr_construct(struct dc_context *ctx, struct clk_mgr_internal *clk_mgr) in dce121_clk_mgr_construct() argument 142 dce120_clk_mgr_construct(ctx, clk_mgr); in dce121_clk_mgr_construct() 149 if (dce121_xgmi_enabled(ctx->dc->hwseq)) in dce121_clk_mgr_construct()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/irq/ |
H A D | irq_service.c | 47 irq_service->ctx 49 irq_service->ctx->logger 55 if (!init_data || !init_data->ctx) { in dal_irq_service_construct() 60 irq_service->ctx = init_data->ctx; in dal_irq_service_construct() 91 uint32_t value = dm_read_reg(irq_service->ctx, addr); in dal_irq_service_set_generic() 95 dm_write_reg(irq_service->ctx, addr, value); in dal_irq_service_set_generic() 135 uint32_t value = dm_read_reg(irq_service->ctx, addr); in dal_irq_service_ack_generic() 139 dm_write_reg(irq_service->ctx, addr, value); in dal_irq_service_ack_generic()
|
/kernel/linux/linux-6.6/crypto/ |
H A D | crc32c_generic.c | 60 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_init() local 62 ctx->crc = mctx->key; in chksum_init() 86 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_update() local 88 ctx->crc = __crc32c_le(ctx->crc, data, length); in chksum_update() 94 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_final() local 96 put_unaligned_le32(~ctx->crc, out); in chksum_final() 109 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_finup() local 111 return __chksum_finup(&ctx->crc, data, len, out); in chksum_finup()
|
H A D | chacha_generic.c | 16 const struct chacha_ctx *ctx, const u8 *iv) in chacha_stream_xor() 24 chacha_init_generic(state, ctx->key, iv); in chacha_stream_xor() 33 walk.src.virt.addr, nbytes, ctx->nrounds); in chacha_stream_xor() 43 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_chacha_crypt() local 45 return chacha_stream_xor(req, ctx, req->iv); in crypto_chacha_crypt() 51 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_xchacha_crypt() local 57 chacha_init_generic(state, ctx->key, req->iv); in crypto_xchacha_crypt() 58 hchacha_block_generic(state, subctx.key, ctx->nrounds); in crypto_xchacha_crypt() 59 subctx.nrounds = ctx->nrounds; in crypto_xchacha_crypt() 15 chacha_stream_xor(struct skcipher_request *req, const struct chacha_ctx *ctx, const u8 *iv) chacha_stream_xor() argument
|
/kernel/linux/linux-6.6/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_mmu.h | 96 int etnaviv_iommu_get_suballoc_va(struct etnaviv_iommu_context *ctx, 100 void etnaviv_iommu_put_suballoc_va(struct etnaviv_iommu_context *ctx, 103 size_t etnaviv_iommu_dump_size(struct etnaviv_iommu_context *ctx); 104 void etnaviv_iommu_dump(struct etnaviv_iommu_context *ctx, void *buf); 110 etnaviv_iommu_context_get(struct etnaviv_iommu_context *ctx) in etnaviv_iommu_context_get() argument 112 kref_get(&ctx->refcount); in etnaviv_iommu_context_get() 113 return ctx; in etnaviv_iommu_context_get() 115 void etnaviv_iommu_context_put(struct etnaviv_iommu_context *ctx); 117 struct etnaviv_iommu_context *ctx);
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | xdp_fwd_kern.c | 43 static __always_inline int xdp_fwd_flags(struct xdp_md *ctx, u32 flags) in xdp_fwd_flags() argument 45 void *data_end = (void *)(long)ctx->data_end; in xdp_fwd_flags() 46 void *data = (void *)(long)ctx->data; in xdp_fwd_flags() 102 fib_params.ifindex = ctx->ingress_ifindex; in xdp_fwd_flags() 104 rc = bpf_fib_lookup(ctx, &fib_params, sizeof(fib_params), flags); in xdp_fwd_flags() 147 int xdp_fwd_prog(struct xdp_md *ctx) in xdp_fwd_prog() argument 149 return xdp_fwd_flags(ctx, 0); in xdp_fwd_prog() 153 int xdp_fwd_direct_prog(struct xdp_md *ctx) in xdp_fwd_direct_prog() argument 155 return xdp_fwd_flags(ctx, BPF_FIB_LOOKUP_DIRECT); in xdp_fwd_direct_prog()
|
/third_party/ffmpeg/libavcodec/ |
H A D | aac_adtstoasc_bsf.c | 40 AACBSFContext *ctx = bsfc->priv_data; in aac_adtstoasc_filter() local 77 if (!ctx->first_frame_done) { in aac_adtstoasc_filter() 118 ctx->first_frame_done = 1; in aac_adtstoasc_filter() 131 static int aac_adtstoasc_init(AVBSFContext *ctx) in aac_adtstoasc_init() argument 134 if (ctx->par_in->extradata) { in aac_adtstoasc_init() 136 int ret = avpriv_mpeg4audio_get_config2(&mp4ac, ctx->par_in->extradata, in aac_adtstoasc_init() 137 ctx->par_in->extradata_size, 1, ctx); in aac_adtstoasc_init() 139 av_log(ctx, AV_LOG_ERROR, "Error parsing AudioSpecificConfig extradata!\n"); in aac_adtstoasc_init()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_exposure.c | 41 static int exposure_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) in exposure_slice() argument 43 ExposureContext *s = ctx->priv; in exposure_slice() 68 AVFilterContext *ctx = inlink->dst; in filter_frame() local 69 ExposureContext *s = ctx->priv; in filter_frame() 72 ff_filter_execute(ctx, s->do_slice, frame, NULL, in filter_frame() 73 FFMIN(frame->height, ff_filter_get_nb_threads(ctx))); in filter_frame() 75 return ff_filter_frame(ctx->outputs[0], frame); in filter_frame() 80 AVFilterContext *ctx = inlink->dst; in config_input() local 81 ExposureContext *s = ctx->priv; in config_input()
|
H A D | formats.h | 139 int ff_set_common_channel_layouts(AVFilterContext *ctx, 142 * Equivalent to ff_set_common_channel_layouts(ctx, ff_make_channel_layout_list(fmts)) 145 int ff_set_common_channel_layouts_from_list(AVFilterContext *ctx, 148 * Equivalent to ff_set_common_channel_layouts(ctx, ff_all_channel_counts()) 151 int ff_set_common_all_channel_counts(AVFilterContext *ctx); 154 int ff_set_common_samplerates(AVFilterContext *ctx, 157 * Equivalent to ff_set_common_samplerates(ctx, ff_make_format_list(samplerates)) 160 int ff_set_common_samplerates_from_list(AVFilterContext *ctx, 163 * Equivalent to ff_set_common_samplerates(ctx, ff_all_samplerates()) 166 int ff_set_common_all_samplerates(AVFilterContext *ctx); [all...] |
H A D | vf_shuffleplanes.c | 43 static int query_formats(AVFilterContext *ctx) in query_formats() argument 46 ShufflePlanesContext *s = ctx->priv; in query_formats() 72 return ff_set_common_formats(ctx, formats); in query_formats() 77 AVFilterContext *ctx = inlink->dst; in shuffleplanes_config_input() local 78 ShufflePlanesContext *s = ctx->priv; in shuffleplanes_config_input() 96 AVFilterContext *ctx = inlink->dst; in shuffleplanes_filter_frame() local 97 ShufflePlanesContext *s = ctx->priv; in shuffleplanes_filter_frame() 110 AVFrame *copy = ff_get_video_buffer(ctx->outputs[0], frame->width, frame->height); in shuffleplanes_filter_frame() 129 return ff_filter_frame(ctx->outputs[0], frame); in shuffleplanes_filter_frame()
|
/third_party/libcoap/examples/contiki/ |
H A D | server.c | 47 init_coap_server(coap_context_t **ctx) { in init_coap_server() argument 51 assert(ctx); in init_coap_server() 57 *ctx = coap_new_context(&listen_addr); in init_coap_server() 59 if (!*ctx) { in init_coap_server() 62 coap_context_set_max_idle_sessions(*ctx, 2); in init_coap_server() 113 init_coap_resources(coap_context_t *ctx) { in init_coap_resources() argument 121 coap_add_resource(ctx, r); in init_coap_resources() 142 coap_add_resource(ctx, r); in init_coap_resources() 149 coap_add_resource(ctx, r); in init_coap_resources()
|
/third_party/mbedtls/library/ |
H A D | hkdf.c | 85 mbedtls_md_context_t ctx; in mbedtls_hkdf_expand() local 117 mbedtls_md_init(&ctx); in mbedtls_hkdf_expand() 119 if ((ret = mbedtls_md_setup(&ctx, md, 1)) != 0) { in mbedtls_hkdf_expand() 133 ret = mbedtls_md_hmac_starts(&ctx, prk, prk_len); in mbedtls_hkdf_expand() 138 ret = mbedtls_md_hmac_update(&ctx, t, t_len); in mbedtls_hkdf_expand() 143 ret = mbedtls_md_hmac_update(&ctx, info, info_len); in mbedtls_hkdf_expand() 150 ret = mbedtls_md_hmac_update(&ctx, &c, 1); in mbedtls_hkdf_expand() 155 ret = mbedtls_md_hmac_finish(&ctx, t); in mbedtls_hkdf_expand() 167 mbedtls_md_free(&ctx); in mbedtls_hkdf_expand()
|