Home
last modified time | relevance | path

Searched refs:hw_ctx (Results 1 – 14 of 14) sorted by relevance

/OK3568_Linux_fs/external/mpp/mpp/hal/rkdec/vp9d/
H A Dhal_vp9d_rkv.c59 Vp9dRkvCtx *hw_ctx = (Vp9dRkvCtx*)p_hal->hw_ctx; in hal_vp9d_alloc_res() local
63 hw_ctx->g_buf[i].hw_regs = mpp_calloc_size(void, sizeof(VP9_REGS)); in hal_vp9d_alloc_res()
65 &hw_ctx->g_buf[i].probe_base, PROB_SIZE); in hal_vp9d_alloc_res()
71 &hw_ctx->g_buf[i].count_base, COUNT_SIZE); in hal_vp9d_alloc_res()
77 &hw_ctx->g_buf[i].segid_cur_base, MAX_SEGMAP_SIZE); in hal_vp9d_alloc_res()
83 &hw_ctx->g_buf[i].segid_last_base, MAX_SEGMAP_SIZE); in hal_vp9d_alloc_res()
90 hw_ctx->hw_regs = mpp_calloc_size(void, sizeof(VP9_REGS)); in hal_vp9d_alloc_res()
91 ret = mpp_buffer_get(p_hal->group, &hw_ctx->probe_base, PROB_SIZE); in hal_vp9d_alloc_res()
96 ret = mpp_buffer_get(p_hal->group, &hw_ctx->count_base, COUNT_SIZE); in hal_vp9d_alloc_res()
101 ret = mpp_buffer_get(p_hal->group, &hw_ctx->segid_cur_base, MAX_SEGMAP_SIZE); in hal_vp9d_alloc_res()
[all …]
H A Dhal_vp9d_vdpu34x.c88 Vdpu34xVp9dCtx *hw_ctx = (Vdpu34xVp9dCtx*)p_hal->hw_ctx; in hal_vp9d_alloc_res() local
89 hw_ctx->offset_count = VDPU34X_OFFSET_COUNT; in hal_vp9d_alloc_res()
90 hw_ctx->offset_segid_cur = 0; in hal_vp9d_alloc_res()
91 hw_ctx->offset_segid_last = MAX_SEGMAP_SIZE_ALIGN_TO_4K; in hal_vp9d_alloc_res()
94 ret = mpp_buffer_get(p_hal->group, &hw_ctx->prob_loop_base[i], PROB_SIZE); in hal_vp9d_alloc_res()
100 ret = mpp_buffer_get(p_hal->group, &hw_ctx->prob_default_base, PROB_SIZE); in hal_vp9d_alloc_res()
108 hw_ctx->g_buf[i].hw_regs = mpp_calloc_size(void, sizeof(Vdpu34xVp9dRegSet)); in hal_vp9d_alloc_res()
109 … ret = mpp_buffer_get(p_hal->group, &hw_ctx->g_buf[i].probe_base, VDPU34X_PROBE_BUFFER_SIZE); in hal_vp9d_alloc_res()
116 hw_ctx->hw_regs = mpp_calloc_size(void, sizeof(Vdpu34xVp9dRegSet)); in hal_vp9d_alloc_res()
117 ret = mpp_buffer_get(p_hal->group, &hw_ctx->probe_base, VDPU34X_PROBE_BUFFER_SIZE); in hal_vp9d_alloc_res()
[all …]
H A Dhal_vp9d_vdpu382.c88 Vdpu382Vp9dCtx *hw_ctx = (Vdpu382Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_alloc_res() local
89 hw_ctx->offset_count = VDPU382_OFFSET_COUNT; in hal_vp9d_alloc_res()
90 hw_ctx->offset_segid_cur = 0; in hal_vp9d_alloc_res()
91 hw_ctx->offset_segid_last = MAX_SEGMAP_SIZE_ALIGN_TO_4K; in hal_vp9d_alloc_res()
94 ret = mpp_buffer_get(p_hal->group, &hw_ctx->prob_loop_base[i], PROB_SIZE); in hal_vp9d_alloc_res()
100 ret = mpp_buffer_get(p_hal->group, &hw_ctx->prob_default_base, PROB_SIZE); in hal_vp9d_alloc_res()
108 hw_ctx->g_buf[i].hw_regs = mpp_calloc_size(void, sizeof(Vdpu382Vp9dRegSet)); in hal_vp9d_alloc_res()
109 … ret = mpp_buffer_get(p_hal->group, &hw_ctx->g_buf[i].probe_base, VDPU382_PROBE_BUFFER_SIZE); in hal_vp9d_alloc_res()
116 hw_ctx->hw_regs = mpp_calloc_size(void, sizeof(Vdpu382Vp9dRegSet)); in hal_vp9d_alloc_res()
117 ret = mpp_buffer_get(p_hal->group, &hw_ctx->probe_base, VDPU382_PROBE_BUFFER_SIZE); in hal_vp9d_alloc_res()
[all …]
H A Dhal_vp9d_ctx.h63 void* hw_ctx; member
/OK3568_Linux_fs/external/mpp/mpp/hal/vpu/vp8e/
H A Dhal_vp8e_api_v2.c36 void *hw_ctx; member
46 void* hw_ctx = NULL; in hal_vp8e_init() local
69 hw_ctx = mpp_calloc_size(void, p_api->ctx_size); in hal_vp8e_init()
70 if (NULL == hw_ctx) in hal_vp8e_init()
73 ctx->hw_ctx = hw_ctx; in hal_vp8e_init()
77 return p_api->init(hw_ctx, cfg); in hal_vp8e_init()
84 void *hw_ctx = ctx->hw_ctx; in hal_vp8e_deinit() local
87 if (!hw_ctx || !api || !api->deinit) in hal_vp8e_deinit()
90 ret = api->deinit(hw_ctx); in hal_vp8e_deinit()
91 MPP_FREE(hw_ctx); in hal_vp8e_deinit()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/hal/common/jpeg/
H A Dhal_jpege_api_v2.c37 void *hw_ctx; member
46 void *hw_ctx = NULL; in hal_jpege_init() local
68 hw_ctx = mpp_calloc_size(void, api->ctx_size); in hal_jpege_init()
71 ctx->hw_ctx = hw_ctx; in hal_jpege_init()
76 ret = api->init(hw_ctx, cfg); in hal_jpege_init()
84 void *hw_ctx = ctx->hw_ctx; in hal_jpege_deinit() local
87 if (!hw_ctx || !api || !api->deinit) in hal_jpege_deinit()
90 ret = api->deinit(hw_ctx); in hal_jpege_deinit()
91 MPP_FREE(hw_ctx); in hal_jpege_deinit()
100 void *hw_ctx = ctx->hw_ctx; \
[all …]
/OK3568_Linux_fs/external/mpp/mpp/hal/common/h265/
H A Dhal_h265e_api_v2.c36 void *hw_ctx; member
45 void *hw_ctx = NULL; in hal_h265ev2_init() local
72 hw_ctx = mpp_calloc_size(void, api->ctx_size); in hal_h265ev2_init()
75 ctx->hw_ctx = hw_ctx; in hal_h265ev2_init()
80 ret = api->init(hw_ctx, cfg); in hal_h265ev2_init()
88 void *hw_ctx = ctx->hw_ctx; in hal_h265ev2_deinit() local
91 if (!hw_ctx || !api || !api->deinit) in hal_h265ev2_deinit()
94 ret = api->deinit(hw_ctx); in hal_h265ev2_deinit()
95 MPP_FREE(hw_ctx); in hal_h265ev2_deinit()
104 void *hw_ctx = ctx->hw_ctx; \
[all …]
/OK3568_Linux_fs/external/mpp/mpp/hal/common/h264/
H A Dhal_h264e_api_v2.c39 void *hw_ctx; member
48 void *hw_ctx = NULL; in hal_h264e_init() local
81 hw_ctx = mpp_calloc_size(void, api->ctx_size); in hal_h264e_init()
84 ctx->hw_ctx = hw_ctx; in hal_h264e_init()
89 ret = api->init(hw_ctx, cfg); in hal_h264e_init()
97 void *hw_ctx = ctx->hw_ctx; in hal_h264e_deinit() local
100 if (!hw_ctx || !api || !api->deinit) in hal_h264e_deinit()
103 ret = api->deinit(hw_ctx); in hal_h264e_deinit()
104 MPP_FREE(hw_ctx); in hal_h264e_deinit()
113 void *hw_ctx = ctx->hw_ctx; \
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/hisilicon/kirin/
H A Dkirin_drm_drv.h24 void *hw_ctx; member
30 void *hw_ctx; member
52 void (*cleanup_hw_ctx)(void *hw_ctx);
H A Dkirin_drm_drv.c37 void *hw_ctx; member
97 data->cleanup_hw_ctx(kirin_priv->hw_ctx); in kirin_drm_private_cleanup()
125 kirin_priv->hw_ctx = ctx; in kirin_drm_private_init()
142 kirin_priv->planes[ch].hw_ctx = ctx; in kirin_drm_private_init()
151 kirin_priv->crtc.hw_ctx = ctx; in kirin_drm_private_init()
H A Dkirin_drm_ade.c145 struct ade_hw_ctx *ctx = kcrtc->hw_ctx; in ade_crtc_mode_fixup()
278 struct ade_hw_ctx *ctx = kcrtc->hw_ctx; in ade_crtc_enable_vblank()
293 struct ade_hw_ctx *ctx = kcrtc->hw_ctx; in ade_crtc_disable_vblank()
442 struct ade_hw_ctx *ctx = kcrtc->hw_ctx; in ade_crtc_atomic_enable()
465 struct ade_hw_ctx *ctx = kcrtc->hw_ctx; in ade_crtc_atomic_disable()
478 struct ade_hw_ctx *ctx = kcrtc->hw_ctx; in ade_crtc_mode_set_nofb()
491 struct ade_hw_ctx *ctx = kcrtc->hw_ctx; in ade_crtc_atomic_begin()
505 struct ade_hw_ctx *ctx = kcrtc->hw_ctx; in ade_crtc_atomic_flush()
715 struct ade_hw_ctx *ctx = kplane->hw_ctx; in ade_update_channel()
744 struct ade_hw_ctx *ctx = kplane->hw_ctx; in ade_disable_channel()
[all …]
H A Dkirin_drm_dpe.c659 struct dpe_hw_ctx *ctx = kcrtc->hw_ctx; in dpe_enable_vblank()
669 struct dpe_hw_ctx *ctx = kcrtc->hw_ctx; in dpe_disable_vblank()
681 struct dpe_hw_ctx *ctx = kcrtc->hw_ctx; in dpe_crtc_atomic_enable()
710 struct dpe_hw_ctx *ctx = kcrtc->hw_ctx; in dpe_crtc_mode_set_nofb()
723 struct dpe_hw_ctx *ctx = kcrtc->hw_ctx; in dpe_crtc_atomic_begin()
918 struct dpe_hw_ctx *ctx = kplane->hw_ctx; in dpe_update_channel()
1160 static void dpe_hw_ctx_cleanup(void *hw_ctx) in dpe_hw_ctx_cleanup() argument
/OK3568_Linux_fs/u-boot/drivers/crypto/rockchip/
H A Dcrypto_v2.c60 struct rk_hash_ctx *hw_ctx; member
335 static int rk_hash_init(void *hw_ctx, u32 algo) in rk_hash_init() argument
337 struct rk_hash_ctx *tmp_ctx = (struct rk_hash_ctx *)hw_ctx; in rk_hash_init()
413 struct rk_hash_ctx *hash_ctx = priv->hw_ctx; in rk_hash_direct_calc()
561 struct rk_hash_ctx *hash_ctx = priv->hw_ctx; in rockchip_crypto_sha_init()
601 ret = rk_hash_update(priv->hw_ctx, p, HASH_UPDATE_LIMIT); in rockchip_crypto_sha_update()
607 ret = rk_hash_update(priv->hw_ctx, p, len % HASH_UPDATE_LIMIT); in rockchip_crypto_sha_update()
632 ret = rk_hash_final(priv->hw_ctx, (u8 *)output, BITS2BYTE(nbits)); in rockchip_crypto_sha_final()
635 hw_hash_clean_ctx(priv->hw_ctx); in rockchip_crypto_sha_final()
642 int rk_hmac_init(void *hw_ctx, u32 algo, u8 *key, u32 key_len) in rk_hmac_init() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/axis/
H A Dartpec6_crypto.c339 struct artpec6_crypto_aead_hw_ctx hw_ctx; member
1908 req_ctx->hw_ctx.aad_length_bits = in artpec6_crypto_prepare_aead()
1911 req_ctx->hw_ctx.text_length_bits = in artpec6_crypto_prepare_aead()
1914 memcpy(req_ctx->hw_ctx.J0, areq->iv, crypto_aead_ivsize(cipher)); in artpec6_crypto_prepare_aead()
1916 memcpy(req_ctx->hw_ctx.J0 + GCM_AES_IV_SIZE, "\x00\x00\x00\x01", 4); in artpec6_crypto_prepare_aead()
1918 ret = artpec6_crypto_setup_out_descr(common, &req_ctx->hw_ctx, in artpec6_crypto_prepare_aead()