/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/ |
H A D | mali_ukk_core.c | 29 kargs.ctx = (uintptr_t)session_data; in get_api_version_wrapper() 48 kargs.ctx = (uintptr_t)session_data; in get_api_version_v2_wrapper() 65 kargs.ctx = (uintptr_t)session_data; 76 kargs.ctx = (uintptr_t)session_data; in get_rk_ko_version_wrapper() 90 kargs.ctx = (uintptr_t)session_data; in wait_for_notification_wrapper() 95 kargs.ctx = (uintptr_t)NULL; /* prevent kernel address to be returned to user space */ in wait_for_notification_wrapper() 111 kargs.ctx = (uintptr_t)session_data; in post_notification_wrapper() 132 kargs.ctx = (uintptr_t)session_data; in get_user_settings_wrapper() 138 kargs.ctx = 0; /* prevent kernel address to be returned to user space */ in get_user_settings_wrapper() 151 kargs.ctx in request_high_priority_wrapper() [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/ |
H A D | drv_lib.c | 503 hi_s32 crypto_channel_init(channel_context *ctx, hi_u32 num, hi_u32 ctx_size) in crypto_channel_init() argument 511 hi_log_chk_param_return(ctx == HI_NULL); in crypto_channel_init() 515 (hi_void)memset_s(ctx, size, 0, size); in crypto_channel_init() 525 /* the buffer address is stored at ctx[0].ctx. */ in crypto_channel_init() 527 ctx[i].ctx = buf; in crypto_channel_init() 539 hi_s32 crypto_channel_deinit(channel_context *ctx, hi_u32 num) in crypto_channel_deinit() argument 545 hi_log_chk_param_return(ctx == HI_NULL); in crypto_channel_deinit() 547 /* the buffer address is stored at ctx[ in crypto_channel_deinit() 564 crypto_channel_alloc(channel_context *ctx, hi_u32 num, hi_u32 mask, hi_u32 *id) crypto_channel_alloc() argument 596 crypto_channel_free(channel_context *ctx, hi_u32 num, hi_u32 id) crypto_channel_free() argument 612 crypto_channel_get_context(const channel_context *ctx, hi_u32 num, hi_u32 id) crypto_channel_get_context() argument [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/ |
H A D | blowfish.h | 81 * \param ctx The Blowfish context to be initialized. 84 void mbedtls_blowfish_init( mbedtls_blowfish_context *ctx ); 89 * \param ctx The Blowfish context to be cleared. 94 void mbedtls_blowfish_free( mbedtls_blowfish_context *ctx ); 99 * \param ctx The Blowfish context to perform the key schedule on. 108 int mbedtls_blowfish_setkey( mbedtls_blowfish_context *ctx, const unsigned char *key, 114 * \param ctx The Blowfish context to use. This must be initialized 127 int mbedtls_blowfish_crypt_ecb( mbedtls_blowfish_context *ctx, 144 * \param ctx The Blowfish context to use. This must be initialized 161 int mbedtls_blowfish_crypt_cbc( mbedtls_blowfish_context *ctx, [all...] |
H A D | ccm.h | 93 * \param ctx The CCM context to initialize. This must not be \c NULL. 95 void mbedtls_ccm_init( mbedtls_ccm_context *ctx ); 99 * \p ctx parameter and sets the encryption key. 101 * \param ctx The CCM context to initialize. This must be an initialized 110 int mbedtls_ccm_setkey( mbedtls_ccm_context *ctx, 119 * \param ctx The CCM context to clear. If this is \c NULL, the function 122 void mbedtls_ccm_free( mbedtls_ccm_context *ctx ); 133 * \param ctx The CCM context to use for encryption. This must be 160 int mbedtls_ccm_encrypt_and_tag( mbedtls_ccm_context *ctx, size_t length, 179 * \param ctx Th [all...] |
H A D | entropy.h | 148 * \param ctx Entropy context to initialize 150 void mbedtls_entropy_init( mbedtls_entropy_context *ctx ); 155 * \param ctx Entropy context to free 157 void mbedtls_entropy_free( mbedtls_entropy_context *ctx ); 163 * \param ctx Entropy context 176 int mbedtls_entropy_add_source( mbedtls_entropy_context *ctx, 184 * \param ctx Entropy context 188 int mbedtls_entropy_gather( mbedtls_entropy_context *ctx ); 207 * \param ctx Entropy context 213 int mbedtls_entropy_update_manual( mbedtls_entropy_context *ctx, [all...] |
H A D | pk_internal.h | 51 int (*verify_func)( void *ctx, mbedtls_md_type_t md_alg, 56 int (*sign_func)( void *ctx, mbedtls_md_type_t md_alg, 64 int (*verify_rs_func)( void *ctx, mbedtls_md_type_t md_alg, 70 int (*sign_rs_func)( void *ctx, mbedtls_md_type_t md_alg, 78 int (*decrypt_func)( void *ctx, const unsigned char *input, size_t ilen, 84 int (*encrypt_func)( void *ctx, const unsigned char *input, size_t ilen, 96 void (*ctx_free_func)( void *ctx ); 107 void (*debug_func)( const void *ctx, mbedtls_pk_debug_item *items );
|
H A D | chacha20.h | 85 * \param ctx The ChaCha20 context to initialize. 88 void mbedtls_chacha20_init( mbedtls_chacha20_context *ctx ); 94 * \param ctx The ChaCha20 context to clear. This may be \c NULL, 99 void mbedtls_chacha20_free( mbedtls_chacha20_context *ctx ); 109 * \param ctx The ChaCha20 context to which the key should be bound. 115 * \return #MBEDTLS_ERR_CHACHA20_BAD_INPUT_DATA if ctx or key is NULL. 117 int mbedtls_chacha20_setkey( mbedtls_chacha20_context *ctx, 130 * \param ctx The ChaCha20 context to which the nonce should be bound. 136 * \return #MBEDTLS_ERR_CHACHA20_BAD_INPUT_DATA if ctx or nonce is 139 int mbedtls_chacha20_starts( mbedtls_chacha20_context* ctx, [all...] |
H A D | md_internal.h | 62 int (*starts_func)( void *ctx ); 65 int (*update_func)( void *ctx, const unsigned char *input, size_t ilen ); 68 int (*finish_func)( void *ctx, unsigned char *output ); 78 void (*ctx_free_func)( void *ctx ); 84 int (*process_func)( void *ctx, const unsigned char *input );
|
H A D | nist_kw.h | 82 * \param ctx The key wrapping context to initialize. 85 void mbedtls_nist_kw_init( mbedtls_nist_kw_context *ctx ); 89 * \p ctx parameter and sets the encryption key. 91 * \param ctx The key wrapping context. 103 int mbedtls_nist_kw_setkey( mbedtls_nist_kw_context *ctx, 113 * \param ctx The key wrapping context to clear. 115 void mbedtls_nist_kw_free( mbedtls_nist_kw_context *ctx ); 120 * \param ctx The key wrapping context to use for encryption. 138 int mbedtls_nist_kw_wrap( mbedtls_nist_kw_context *ctx, mbedtls_nist_kw_mode_t mode, 145 * \param ctx Th [all...] |
H A D | poly1305.h | 87 * \param ctx The Poly1305 context to initialize. This must 90 void mbedtls_poly1305_init( mbedtls_poly1305_context *ctx ); 96 * \param ctx The Poly1305 context to clear. This may be \c NULL, in which 100 void mbedtls_poly1305_free( mbedtls_poly1305_context *ctx ); 108 * \param ctx The Poly1305 context to which the key should be bound. 115 int mbedtls_poly1305_starts( mbedtls_poly1305_context *ctx, 126 * \param ctx The Poly1305 context to use for the Poly1305 operation. 136 int mbedtls_poly1305_update( mbedtls_poly1305_context *ctx, 144 * \param ctx The Poly1305 context to use for the Poly1305 operation. 152 int mbedtls_poly1305_finish( mbedtls_poly1305_context *ctx, [all...] |
H A D | xtea.h | 68 * \param ctx XTEA context to be initialized 70 void mbedtls_xtea_init( mbedtls_xtea_context *ctx ); 75 * \param ctx XTEA context to be cleared 77 void mbedtls_xtea_free( mbedtls_xtea_context *ctx ); 82 * \param ctx XTEA context to be initialized 85 void mbedtls_xtea_setup( mbedtls_xtea_context *ctx, const unsigned char key[16] ); 90 * \param ctx XTEA context 97 int mbedtls_xtea_crypt_ecb( mbedtls_xtea_context *ctx, 106 * \param ctx XTEA context 116 int mbedtls_xtea_crypt_cbc( mbedtls_xtea_context *ctx, [all...] |
/device/soc/rockchip/common/hardware/mpp/include/ |
H A D | mpp_rc_api.h | 191 MPP_RET (*init)(void *ctx, RcCfg *cfg); 192 MPP_RET (*deinit)(void *ctx); 194 MPP_RET (*check_drop)(void *ctx, EncRcTask *task); 195 MPP_RET (*check_reenc)(void *ctx, EncRcTask *task); 203 MPP_RET (*frm_start)(void *ctx, EncRcTask *task); 204 MPP_RET (*frm_end)(void *ctx, EncRcTask *task); 212 MPP_RET (*hal_start)(void *ctx, EncRcTask *task); 213 MPP_RET (*hal_end)(void *ctx, EncRcTask *task);
|
H A D | vpu_api.h | 332 * @param ctx The context of vpu api, allocated in this function. 339 * @note check whether ctx has been allocated success after you do init. 341 signed int (*init)(struct VpuCodecContext *ctx, unsigned char *extraData, unsigned int extra_size); 345 * @param ctx The context of vpu codec 350 signed int (*decode)(struct VpuCodecContext *ctx, VideoPacket_t *pkt, DecoderOut_t *aDecOut); 354 * @param ctx The context of vpu codec 359 signed int (*encode)(struct VpuCodecContext *ctx, EncInputStream_t *aEncInStrm, EncoderOut_t *aEncOut); 362 * @param ctx The context of vpu codec 365 signed int (*flush)(struct VpuCodecContext *ctx); 366 signed int (*control)(struct VpuCodecContext *ctx, VPU_API_CM [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/ |
H A D | mali_ukk_core.c | 32 kargs.ctx = (uintptr_t)session_data; in get_api_version_wrapper() 59 kargs.ctx = (uintptr_t)session_data; in get_api_version_v2_wrapper() 80 kargs.ctx = (uintptr_t)session_data; in get_rk_ko_version_wrapper() 95 kargs.ctx = (uintptr_t)session_data; in wait_for_notification_wrapper() 102 kargs.ctx = (uintptr_t)NULL; /* prevent kernel address to be returned to user space */ in wait_for_notification_wrapper() 122 kargs.ctx = (uintptr_t)session_data; in post_notification_wrapper() 143 kargs.ctx = (uintptr_t)session_data; in get_user_settings_wrapper() 149 kargs.ctx = 0; /* prevent kernel address to be returned to user space */ in get_user_settings_wrapper() 164 kargs.ctx = (uintptr_t)session_data; in request_high_priority_wrapper() 167 kargs.ctx in request_high_priority_wrapper() [all...] |
/device/soc/rockchip/rk3588/kernel/include/trace/hooks/ |
H A D | fips140.h | 28 TP_PROTO(struct crypto_aes_ctx *ctx, 32 TP_ARGS(ctx, in_key, key_len, err)); 35 TP_PROTO(const struct crypto_aes_ctx *ctx, 39 TP_ARGS(ctx, out, in, hook_inuse)); 42 TP_PROTO(const struct crypto_aes_ctx *ctx, 46 TP_ARGS(ctx, out, in, hook_inuse));
|
/device/soc/rockchip/common/vendor/drivers/net/usb/ |
H A D | meig_cdc_driver.c | 1987 static int cdc_ncm_config(struct ncm_ctx *ctx)
in cdc_ncm_config() argument 1990 struct usb_device *udev = ctx->ndev->udev;
in cdc_ncm_config() 2005 net_caps = ctx->ncm_desc->bmNetworkCapabilities;
in cdc_ncm_config() 2006 control_if = ctx->control->cur_altsetting->desc.bInterfaceNumber;
in cdc_ncm_config() 2023 ctx->formats = le16_to_cpu(ntb_params->bmNtbFormatSupported);
in cdc_ncm_config() 2024 ctx->rx_max_ntb = le32_to_cpu(ntb_params->dwNtbInMaxSize);
in cdc_ncm_config() 2025 ctx->tx_max_ntb = le32_to_cpu(ntb_params->dwNtbOutMaxSize);
in cdc_ncm_config() 2026 ctx->tx_divisor = le16_to_cpu(ntb_params->wNdpOutDivisor);
in cdc_ncm_config() 2027 ctx->tx_remainder = le16_to_cpu(ntb_params->wNdpOutPayloadRemainder);
in cdc_ncm_config() 2028 ctx in cdc_ncm_config() 2151 struct ncm_ctx *ctx = dev->ncm_ctx; cdc_ncm_rx_fixup() local 2285 ndp_dgram_pad(struct ncm_ctx *ctx, unsigned dgram_off) ndp_dgram_pad() argument 2302 ntb_init(struct ncm_ctx *ctx, struct ntb *n, unsigned size) ntb_init() argument 2322 ntb_add_dgram(struct ncm_ctx *ctx, struct ntb *n, unsigned dgram_len, u8 *data, gfp_t flags) ntb_add_dgram() argument 2375 ntb_finalize(struct ncm_ctx *ctx, struct ntb *n) ntb_finalize() argument 2419 ncm_get_skb(struct ncm_ctx *ctx) ncm_get_skb() argument 2443 ncm_init_curr_ntb(struct ncm_ctx *ctx) ncm_init_curr_ntb() argument 2466 ncm_uninit_curr_ntb(struct ncm_ctx *ctx) ncm_uninit_curr_ntb() argument 2477 struct ncm_ctx *ctx = dev->ncm_ctx; cdc_ncm_tx_fixup() local 2598 struct ncm_ctx *ctx = (void *)param; global() local 2603 struct ncm_ctx *ctx = from_timer(ctx, t, tx_timer); global() local 2861 struct ncm_ctx *ctx = NULL; global() local [all...] |
/device/soc/rockchip/rk3588/hardware/mpp/include/ |
H A D | mpp_callback.h | 23 typedef MPP_RET (*MppCallBack)(const char *caller, void *ctx, RK_S32 cmd, void *param); 27 void *ctx; member 35 #define mpp_callback(ctx, param) mpp_callback_f(__FUNCTION__, ctx, param) 37 MPP_RET mpp_callback_f(const char *caller, MppCbCtx *ctx, void *param);
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/linux/ |
H A D | ump_kernel_memory_backend_dedicated.c | 50 static int block_allocator_allocate(void *ctx, ump_dd_mem *mem); 51 static void block_allocator_release(void *ctx, ump_dd_mem *handle); 97 backend->ctx = allocator; in ump_block_allocator_create() 125 BUG_ON(!backend->ctx); in block_allocator_shutdown() 127 allocator = (block_allocator *)backend->ctx; in block_allocator_shutdown() 138 static int block_allocator_allocate(void *ctx, ump_dd_mem *mem) in block_allocator_allocate() argument 145 BUG_ON(!ctx); in block_allocator_allocate() 148 allocator = (block_allocator *)ctx; in block_allocator_allocate() 218 static void block_allocator_release(void *ctx, ump_dd_mem *handle) in block_allocator_release() argument 223 BUG_ON(!ctx); in block_allocator_release() [all...] |
/device/soc/rockchip/rk3568/hardware/omx_il/osal/ |
H A D | Rockchip_OSAL_RGA_Process.c | 62 rga_ctx_t *ctx = NULL; in rga_dev_open() local 63 ctx = Rockchip_OSAL_Malloc(sizeof(rga_ctx_t)); in rga_dev_open() 64 Rockchip_OSAL_Memset(ctx, 0, sizeof(rga_ctx_t)); in rga_dev_open() 65 ctx->rga_fd = -1; in rga_dev_open() 66 ctx->rga_fd = open("/dev/rga", O_RDWR, 0); in rga_dev_open() 67 if (ctx->rga_fd < 0) { in rga_dev_open() 71 *rga_ctx = ctx; in rga_dev_open() 85 rga_ctx_t *ctx = (rga_ctx_t *)rga_ctx; in rga_dev_close() local 86 if (ctx == NULL) { in rga_dev_close() 89 if (ctx in rga_dev_close() 392 rga_ctx_t *ctx = (rga_ctx_t *)rga_ctx; rga_nv12_crop_scale() local 444 rga_ctx_t *ctx = (rga_ctx_t *)rga_ctx; rga_rgb2nv12() local 482 rga_ctx_t *ctx = (rga_ctx_t *)rga_ctx; rga_nv122rgb() local 523 rga_ctx_t *ctx = (rga_ctx_t *)rga_ctx; rga_nv12_copy() local 552 rga_ctx_t *ctx = (rga_ctx_t *)rga_ctx; rga_rgb_copy() local [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/common/ |
H A D | ump_kernel_memory_backend.h | 35 int (*allocate)(void *ctx, ump_dd_mem *descriptor); 36 void (*release)(void *ctx, ump_dd_mem *descriptor); 39 int (*pre_allocate_physical_check)(void *ctx, u32 size); 40 u32(*adjust_to_mali_phys)(void *ctx, u32 cpu_phys); 41 void *ctx; member
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/ump/common/ |
H A D | ump_kernel_memory_backend.h | 35 int (*allocate)(void *ctx, ump_dd_mem *descriptor); 36 void (*release)(void *ctx, ump_dd_mem *descriptor); 39 int (*pre_allocate_physical_check)(void *ctx, u32 size); 40 u32 (*adjust_to_mali_phys)(void *ctx, u32 cpu_phys); 41 void *ctx; member
|
/device/soc/rockchip/rk3399/hardware/mpp/src/ |
H A D | mpi_enc_utils.c | 388 MppCtx ctx; in test_mpp_enc_cfg_setup() local 395 ctx = p->ctx; in test_mpp_enc_cfg_setup() 565 mpp_log("%p split_mode %d split_arg %d\n", ctx, p->split_mode, p->split_arg); in test_mpp_enc_cfg_setup() 570 ret = mpi->control(ctx, MPP_ENC_SET_CFG, cfg); in test_mpp_enc_cfg_setup() 578 ret = mpi->control(ctx, MPP_ENC_SET_SEI_CFG, &p->sei_mode); in test_mpp_enc_cfg_setup() 586 ret = mpi->control(ctx, MPP_ENC_SET_HEADER_MODE, &p->header_mode); in test_mpp_enc_cfg_setup() 606 ret = mpi->control(ctx, MPP_ENC_SET_REF_CFG, ref); in test_mpp_enc_cfg_setup() 634 p->mpi->reset(p->ctx); in test_mpp_ctx_cleanup() 637 if (p->ctx) { in test_mpp_ctx_cleanup() 660 hal_mpp_get_sps(void *ctx, unsigned char *buf, size_t *buf_size) hal_mpp_get_sps() argument 719 hal_mpp_encode(void *ctx, int dma_fd, unsigned char *buf, size_t *buf_size) hal_mpp_encode() argument 929 hal_mpp_ctx_delete(void *ctx) hal_mpp_ctx_delete() argument [all...] |
/device/soc/rockchip/rk3568/hardware/mpp/src/ |
H A D | mpi_enc_utils.c | 386 MppCtx ctx; in test_mpp_enc_cfg_setup() local 393 ctx = p->ctx; in test_mpp_enc_cfg_setup() 557 mpp_log("%p split_mode %d split_arg %d\n", ctx, p->split_mode, p->split_arg); in test_mpp_enc_cfg_setup() 562 ret = mpi->control(ctx, MPP_ENC_SET_CFG, cfg); in test_mpp_enc_cfg_setup() 570 ret = mpi->control(ctx, MPP_ENC_SET_SEI_CFG, &p->sei_mode); in test_mpp_enc_cfg_setup() 578 ret = mpi->control(ctx, MPP_ENC_SET_HEADER_MODE, &p->header_mode); in test_mpp_enc_cfg_setup() 598 ret = mpi->control(ctx, MPP_ENC_SET_REF_CFG, ref); in test_mpp_enc_cfg_setup() 626 p->mpi->reset(p->ctx); in test_mpp_ctx_cleanup() 629 if (p->ctx) { in test_mpp_ctx_cleanup() 652 hal_mpp_get_sps(void *ctx, unsigned char *buf, size_t *buf_size) hal_mpp_get_sps() argument 711 hal_mpp_encode(void *ctx, int dma_fd, unsigned char *buf, size_t *buf_size) hal_mpp_encode() argument 921 hal_mpp_ctx_delete(void *ctx) hal_mpp_ctx_delete() argument [all...] |
/device/soc/rockchip/rk3588/hardware/mpp/src/ |
H A D | mpi_enc_utils.c | 35 MpiEncTestData *p = &info->ctx; in test_ctx_init() 179 MpiEncTestData *p = &info->ctx; in test_mpp_enc_cfg_setup() 181 MppCtx ctx = p->ctx; in test_mpp_enc_cfg_setup() local 336 mpp_log_q(quiet, "%p split mode %d arg %d out %d\n", ctx, in test_mpp_enc_cfg_setup() 343 ret = mpi->control(ctx, MPP_ENC_SET_CFG, cfg); in test_mpp_enc_cfg_setup() 351 ret = mpi->control(ctx, MPP_ENC_SET_SEI_CFG, &p->sei_mode); in test_mpp_enc_cfg_setup() 359 ret = mpi->control(ctx, MPP_ENC_SET_HEADER_MODE, &p->header_mode); in test_mpp_enc_cfg_setup() 379 ret = mpi->control(ctx, MPP_ENC_SET_REF_CFG, ref); in test_mpp_enc_cfg_setup() 404 MpiEncTestData *p = &((MpiEncMultiCtxInfo *)ctxs)->ctx; in hal_mpp_get_sps() 406 MppCtx ctx = p->ctx; hal_mpp_get_sps() local 465 MppCtx ctx = p->ctx; hal_mpp_encode() local 717 hal_mpp_ctx_delete(void *ctx) hal_mpp_ctx_delete() argument [all...] |
/device/soc/rockchip/common/hardware/mpp/src/ |
H A D | mpi_enc_utils.c | 366 MppCtx ctx; in test_mpp_enc_cfg_setup() local 374 ctx = p->ctx; in test_mpp_enc_cfg_setup() 543 mpp_log("%p split_mode %d split_arg %d\n", ctx, p->split_mode, p->split_arg); in test_mpp_enc_cfg_setup() 548 ret = mpi->control(ctx, MPP_ENC_SET_CFG, cfg); in test_mpp_enc_cfg_setup() 556 ret = mpi->control(ctx, MPP_ENC_SET_SEI_CFG, &p->sei_mode); in test_mpp_enc_cfg_setup() 564 ret = mpi->control(ctx, MPP_ENC_SET_HEADER_MODE, &p->header_mode); in test_mpp_enc_cfg_setup() 584 ret = mpi->control(ctx, MPP_ENC_SET_REF_CFG, ref); in test_mpp_enc_cfg_setup() 612 p->mpi->reset(p->ctx); in test_mpp_ctx_cleanup() 615 if (p->ctx) { in test_mpp_ctx_cleanup() 638 hal_mpp_get_sps(void *ctx, unsigned char *buf, size_t *buf_size) hal_mpp_get_sps() argument 696 hal_mpp_encode(void *ctx, int dma_fd, unsigned char *buf, size_t *buf_size) hal_mpp_encode() argument 906 hal_mpp_ctx_delete(void *ctx) hal_mpp_ctx_delete() argument [all...] |