| /OK3568_Linux_fs/external/mpp/mpp/hal/rkdec/h265d/ |
| H A D | hal_h265d_vdpu382.c | 101 HalH265dCtx *reg_ctx = (HalH265dCtx *)hal; in hal_h265d_vdpu382_init() local 103 mpp_slots_set_prop(reg_ctx->slots, SLOTS_HOR_ALIGN, hevc_hor_align); in hal_h265d_vdpu382_init() 104 mpp_slots_set_prop(reg_ctx->slots, SLOTS_VER_ALIGN, hevc_ver_align); in hal_h265d_vdpu382_init() 106 reg_ctx->scaling_qm = mpp_calloc(DXVA_Qmatrix_HEVC, 1); in hal_h265d_vdpu382_init() 107 if (reg_ctx->scaling_qm == NULL) { in hal_h265d_vdpu382_init() 112 reg_ctx->scaling_rk = mpp_calloc(scalingFactor_t, 1); in hal_h265d_vdpu382_init() 113 reg_ctx->pps_buf = mpp_calloc(RK_U64, 15); in hal_h265d_vdpu382_init() 114 reg_ctx->sw_rps_buf = mpp_calloc(RK_U64, 400); in hal_h265d_vdpu382_init() 116 if (reg_ctx->scaling_rk == NULL) { in hal_h265d_vdpu382_init() 121 if (reg_ctx->group == NULL) { in hal_h265d_vdpu382_init() [all …]
|
| H A D | hal_h265d_vdpu34x.c | 101 HalH265dCtx *reg_ctx = (HalH265dCtx *)hal; in hal_h265d_vdpu34x_init() local 103 mpp_slots_set_prop(reg_ctx->slots, SLOTS_HOR_ALIGN, hevc_hor_align); in hal_h265d_vdpu34x_init() 104 mpp_slots_set_prop(reg_ctx->slots, SLOTS_VER_ALIGN, hevc_ver_align); in hal_h265d_vdpu34x_init() 106 reg_ctx->scaling_qm = mpp_calloc(DXVA_Qmatrix_HEVC, 1); in hal_h265d_vdpu34x_init() 107 if (reg_ctx->scaling_qm == NULL) { in hal_h265d_vdpu34x_init() 112 reg_ctx->scaling_rk = mpp_calloc(scalingFactor_t, 1); in hal_h265d_vdpu34x_init() 113 reg_ctx->pps_buf = mpp_calloc(RK_U64, 15); in hal_h265d_vdpu34x_init() 114 reg_ctx->sw_rps_buf = mpp_calloc(RK_U64, 400); in hal_h265d_vdpu34x_init() 116 if (reg_ctx->scaling_rk == NULL) { in hal_h265d_vdpu34x_init() 121 if (reg_ctx->group == NULL) { in hal_h265d_vdpu34x_init() [all …]
|
| H A D | hal_h265d_rkv.c | 45 HalH265dCtx *reg_ctx = (HalH265dCtx *)hal; in hal_h265d_alloc_res() local 46 if (reg_ctx->fast_mode) { in hal_h265d_alloc_res() 48 reg_ctx->g_buf[i].hw_regs = in hal_h265d_alloc_res() 50 ret = mpp_buffer_get(reg_ctx->group, in hal_h265d_alloc_res() 51 ®_ctx->g_buf[i].scaling_list_data, in hal_h265d_alloc_res() 58 ret = mpp_buffer_get(reg_ctx->group, ®_ctx->g_buf[i].pps_data, in hal_h265d_alloc_res() 65 ret = mpp_buffer_get(reg_ctx->group, ®_ctx->g_buf[i].rps_data, in hal_h265d_alloc_res() 73 reg_ctx->hw_regs = mpp_calloc_size(void, sizeof(H265d_REGS_t)); in hal_h265d_alloc_res() 74 ret = mpp_buffer_get(reg_ctx->group, ®_ctx->scaling_list_data, in hal_h265d_alloc_res() 81 ret = mpp_buffer_get(reg_ctx->group, ®_ctx->pps_data, PPS_SIZE); in hal_h265d_alloc_res() [all …]
|
| H A D | hal_h265d_com.c | 698 HalH265dCtx *reg_ctx = ( HalH265dCtx *)hal; in hal_h265d_output_scalinglist_packet() local 702 if (memcmp((void*)&dxva_cxt->qm, reg_ctx->scaling_qm, sizeof(DXVA_Qmatrix_HEVC))) { in hal_h265d_output_scalinglist_packet() 723 hal_record_scaling_list((scalingFactor_t *)reg_ctx->scaling_rk, &sl); in hal_h265d_output_scalinglist_packet() 725 memcpy(ptr, reg_ctx->scaling_rk, sizeof(scalingFactor_t)); in hal_h265d_output_scalinglist_packet()
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/rkdec/h264d/ |
| H A D | hal_h264d_rkv_reg.c | 313 H264dRkvRegCtx_t *reg_ctx = (H264dRkvRegCtx_t *)p_hal->reg_ctx; in prepare_spspps() local 332 mpp_put_bits(&bp, mpp_buffer_get_fd(reg_ctx->sclst_buf), 32); in prepare_spspps() 529 H264dRkvRegCtx_t *reg_ctx = (H264dRkvRegCtx_t *)p_hal->reg_ctx; in set_registers() local 532 p_regs->sw06.cabactbl_base = mpp_buffer_get_fd(reg_ctx->cabac_buf); in set_registers() 551 MEM_CHECK(ret, p_hal->reg_ctx = mpp_calloc_size(void, sizeof(H264dRkvRegCtx_t))); in rkv_h264d_init() 552 H264dRkvRegCtx_t *reg_ctx = (H264dRkvRegCtx_t *)p_hal->reg_ctx; in rkv_h264d_init() local 555 ®_ctx->cabac_buf, RKV_CABAC_TAB_SIZE)); in rkv_h264d_init() 557 ®_ctx->errinfo_buf, RKV_ERROR_INFO_SIZE)); in rkv_h264d_init() 560 RK_U32 loop = p_hal->fast_mode ? MPP_ARRAY_ELEMS(reg_ctx->reg_buf) : 1; in rkv_h264d_init() 562 reg_ctx->reg_buf[i].regs = mpp_calloc(H264dRkvRegs_t, 1); in rkv_h264d_init() [all …]
|
| H A D | hal_h264d_vdpu2.c | 458 H264dVdpuRegCtx_t *reg_ctx = (H264dVdpuRegCtx_t *)p_hal->reg_ctx; in set_vlc_regs() local 459 RK_U32 *ptr = (RK_U32 *)reg_ctx->poc_ptr; in set_vlc_regs() 482 H264dVdpuRegCtx_t *reg_ctx = (H264dVdpuRegCtx_t *)p_hal->reg_ctx; in set_vlc_regs() local 483 RK_U32 *ptr_tmp = (RK_U32 *)reg_ctx->poc_ptr; in set_vlc_regs() 759 H264dVdpuRegCtx_t *reg_ctx = (H264dVdpuRegCtx_t *)p_hal->reg_ctx; in set_asic_regs() local 762 RK_U32 *ptr = (RK_U32 *)reg_ctx->sclst_ptr; in set_asic_regs() 783 p_regs->sw61.qtable_st_adr = mpp_buffer_get_fd(reg_ctx->buf); in set_asic_regs() 807 MEM_CHECK(ret, p_hal->reg_ctx = mpp_calloc_size(void, sizeof(H264dVdpuRegCtx_t))); in vdpu2_h264d_init() 808 H264dVdpuRegCtx_t *reg_ctx = (H264dVdpuRegCtx_t *)p_hal->reg_ctx; in vdpu2_h264d_init() local 812 RK_U32 loop = p_hal->fast_mode ? MPP_ARRAY_ELEMS(reg_ctx->reg_buf) : 1; in vdpu2_h264d_init() [all …]
|
| H A D | hal_h264d_vdpu1.c | 422 H264dVdpuRegCtx_t *reg_ctx = (H264dVdpuRegCtx_t *)p_hal->reg_ctx; in vdpu1_set_vlc_regs() local 423 RK_U32 *pocBase = (RK_U32 *)reg_ctx->poc_ptr; in vdpu1_set_vlc_regs() 650 H264dVdpuRegCtx_t *reg_ctx = (H264dVdpuRegCtx_t *)p_hal->reg_ctx; in vdpu1_set_asic_regs() local 653 RK_U32 *ptr = (RK_U32 *)reg_ctx->sclst_ptr; in vdpu1_set_asic_regs() 675 p_regs->SwReg40.qtable_st_adr = mpp_buffer_get_fd(reg_ctx->buf); in vdpu1_set_asic_regs() 750 MEM_CHECK(ret, p_hal->reg_ctx = mpp_calloc_size(void, sizeof(H264dVdpuRegCtx_t))); in vdpu1_h264d_init() 751 H264dVdpuRegCtx_t *reg_ctx = (H264dVdpuRegCtx_t *)p_hal->reg_ctx; in vdpu1_h264d_init() local 755 RK_U32 loop = p_hal->fast_mode ? MPP_ARRAY_ELEMS(reg_ctx->reg_buf) : 1; in vdpu1_h264d_init() 759 FUN_CHECK(ret = mpp_buffer_get(p_hal->buf_group, ®_ctx->reg_buf[i].buf, buf_size)); in vdpu1_h264d_init() 760 reg_ctx->reg_buf[i].cabac_ptr = mpp_buffer_get_ptr(reg_ctx->reg_buf[i].buf); in vdpu1_h264d_init() [all …]
|
| H A D | hal_h264d_vdpu382.c | 539 Vdpu382H264dRegCtx *ctx = (Vdpu382H264dRegCtx *)p_hal->reg_ctx; in set_registers() 666 Vdpu382H264dRegCtx *reg_ctx = (Vdpu382H264dRegCtx *)p_hal->reg_ctx; in set_registers() local 672 regs->h264d_addr.cabactbl_base = reg_ctx->bufs_fd; in set_registers() 673 mpp_dev_set_reg_offset(p_hal->dev, 197, reg_ctx->offset_cabac); in set_registers() 735 MEM_CHECK(ret, p_hal->reg_ctx = mpp_calloc_size(void, sizeof(Vdpu382H264dRegCtx))); in vdpu382_h264d_init() 736 Vdpu382H264dRegCtx *reg_ctx = (Vdpu382H264dRegCtx *)p_hal->reg_ctx; in vdpu382_h264d_init() local 741 FUN_CHECK(ret = mpp_buffer_get(p_hal->buf_group, ®_ctx->bufs, in vdpu382_h264d_init() 743 reg_ctx->bufs_fd = mpp_buffer_get_fd(reg_ctx->bufs); in vdpu382_h264d_init() 744 reg_ctx->bufs_ptr = mpp_buffer_get_ptr(reg_ctx->bufs); in vdpu382_h264d_init() 745 reg_ctx->offset_cabac = VDPU382_CABAC_TAB_OFFSET; in vdpu382_h264d_init() [all …]
|
| H A D | hal_h264d_vdpu34x.c | 652 Vdpu34xH264dRegCtx *reg_ctx = (Vdpu34xH264dRegCtx *)p_hal->reg_ctx; in set_registers() local 658 regs->h264d_addr.cabactbl_base = reg_ctx->bufs_fd; in set_registers() 659 mpp_dev_set_reg_offset(p_hal->dev, 197, reg_ctx->offset_cabac); in set_registers() 709 MEM_CHECK(ret, p_hal->reg_ctx = mpp_calloc_size(void, sizeof(Vdpu34xH264dRegCtx))); in vdpu34x_h264d_init() 710 Vdpu34xH264dRegCtx *reg_ctx = (Vdpu34xH264dRegCtx *)p_hal->reg_ctx; in vdpu34x_h264d_init() local 715 FUN_CHECK(ret = mpp_buffer_get(p_hal->buf_group, ®_ctx->bufs, in vdpu34x_h264d_init() 717 reg_ctx->bufs_fd = mpp_buffer_get_fd(reg_ctx->bufs); in vdpu34x_h264d_init() 718 reg_ctx->bufs_ptr = mpp_buffer_get_ptr(reg_ctx->bufs); in vdpu34x_h264d_init() 719 reg_ctx->offset_cabac = VDPU34X_CABAC_TAB_OFFSET; in vdpu34x_h264d_init() 720 reg_ctx->offset_errinfo = VDPU34X_ERROR_INFO_OFFSET; in vdpu34x_h264d_init() [all …]
|
| H A D | hal_h264d_global.h | 133 void *reg_ctx; member
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/rkdec/avs2d/ |
| H A D | hal_avs2d_rkv.c | 295 Avs2dRkvRegCtx_t *reg_ctx = (Avs2dRkvRegCtx_t *)p_hal->reg_ctx; in hal_avs2d_rcb_info_update() local 299 RK_S32 loop = p_hal->fast_mode ? MPP_ARRAY_ELEMS(reg_ctx->reg_buf) : 1; in hal_avs2d_rcb_info_update() 303 reg_ctx->rcb_buf_size = vdpu34x_get_rcb_buf_size(reg_ctx->rcb_info, width, height); in hal_avs2d_rcb_info_update() 309 if (reg_ctx->rcb_buf[i]) { in hal_avs2d_rcb_info_update() 310 mpp_buffer_put(reg_ctx->rcb_buf[i]); in hal_avs2d_rcb_info_update() 311 reg_ctx->rcb_buf[i] = NULL; in hal_avs2d_rcb_info_update() 314 ret = mpp_buffer_get(p_hal->buf_group, &rcb_buf, reg_ctx->rcb_buf_size); in hal_avs2d_rcb_info_update() 319 reg_ctx->rcb_buf[i] = rcb_buf; in hal_avs2d_rcb_info_update() 470 Avs2dRkvRegCtx_t *reg_ctx = (Avs2dRkvRegCtx_t *)p_hal->reg_ctx; in hal_avs2d_rkv_deinit() local 474 INP_CHECK(ret, NULL == reg_ctx); in hal_avs2d_rkv_deinit() [all …]
|
| H A D | hal_avs2d_vdpu382.c | 358 Avs2dVdpu382RegCtx_t *reg_ctx = (Avs2dVdpu382RegCtx_t *)p_hal->reg_ctx; in hal_avs2d_rcb_info_update() local 362 RK_S32 loop = p_hal->fast_mode ? MPP_ARRAY_ELEMS(reg_ctx->reg_buf) : 1; in hal_avs2d_rcb_info_update() 364 reg_ctx->rcb_buf_size = vdpu382_get_rcb_buf_size(reg_ctx->rcb_info, width, height); in hal_avs2d_rcb_info_update() 365 avs2d_refine_rcb_size(reg_ctx->rcb_info, hw_regs, width, height, (void *)&p_hal->syntax); in hal_avs2d_rcb_info_update() 370 if (reg_ctx->rcb_buf[i]) { in hal_avs2d_rcb_info_update() 371 mpp_buffer_put(reg_ctx->rcb_buf[i]); in hal_avs2d_rcb_info_update() 372 reg_ctx->rcb_buf[i] = NULL; in hal_avs2d_rcb_info_update() 375 ret = mpp_buffer_get(p_hal->buf_group, &rcb_buf, reg_ctx->rcb_buf_size); in hal_avs2d_rcb_info_update() 380 reg_ctx->rcb_buf[i] = rcb_buf; in hal_avs2d_rcb_info_update() 544 Avs2dVdpu382RegCtx_t *reg_ctx = (Avs2dVdpu382RegCtx_t *)p_hal->reg_ctx; in hal_avs2d_vdpu382_deinit() local [all …]
|
| H A D | hal_avs2d_global.h | 105 void *reg_ctx; member
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/vpu/av1d/ |
| H A D | hal_av1d_vdpu.c | 140 MEM_CHECK(ret, p_hal->reg_ctx = mpp_calloc_size(void, sizeof(VdpuAv1dRegCtx))); in hal_av1d_alloc_res() 141 VdpuAv1dRegCtx *reg_ctx = (VdpuAv1dRegCtx *)p_hal->reg_ctx; in hal_av1d_alloc_res() local 145 reg_ctx->reg_buf[i].regs = mpp_calloc(VdpuAv1dRegSet, 1); in hal_av1d_alloc_res() 146 memset(reg_ctx->reg_buf[i].regs, 0, sizeof(VdpuAv1dRegSet)); in hal_av1d_alloc_res() 150 reg_ctx->regs = reg_ctx->reg_buf[0].regs; in hal_av1d_alloc_res() 153 …BUF_CHECK(ret, mpp_buffer_get(p_hal->buf_group, ®_ctx->prob_tbl_base, MPP_ALIGN(sizeof(AV1CDFs)… in hal_av1d_alloc_res() 154 …BUF_CHECK(ret, mpp_buffer_get(p_hal->buf_group, ®_ctx->prob_tbl_out_base, MPP_ALIGN(sizeof(AV1C… in hal_av1d_alloc_res() 155 BUF_CHECK(ret, mpp_buffer_get(p_hal->buf_group, ®_ctx->tile_info, AV1_TILE_INFO_SIZE)); in hal_av1d_alloc_res() 156 …BUF_CHECK(ret, mpp_buffer_get(p_hal->buf_group, ®_ctx->film_grain_mem, MPP_ALIGN(sizeof(AV1Film… in hal_av1d_alloc_res() 157 …BUF_CHECK(ret, mpp_buffer_get(p_hal->buf_group, ®_ctx->global_model, MPP_ALIGN(GLOBAL_MODEL_SIZ… in hal_av1d_alloc_res() [all …]
|
| H A D | hal_av1d_common.h | 190 void *reg_ctx; member
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | linux_osl.c | 1440 void *ctx = ((osl_pubinfo_t*)osh)->reg_ctx; in osl_readb() 1449 void *ctx = ((osl_pubinfo_t*)osh)->reg_ctx; in osl_readw() 1458 void *ctx = ((osl_pubinfo_t*)osh)->reg_ctx; in osl_readl() 1467 void *ctx = ((osl_pubinfo_t*)osh)->reg_ctx; in osl_writeb() 1476 void *ctx = ((osl_pubinfo_t*)osh)->reg_ctx; in osl_writew() 1485 void *ctx = ((osl_pubinfo_t*)osh)->reg_ctx; in osl_writel()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | linux_osl.c | 1440 void *ctx = ((osl_pubinfo_t*)osh)->reg_ctx; in osl_readb() 1449 void *ctx = ((osl_pubinfo_t*)osh)->reg_ctx; in osl_readw() 1458 void *ctx = ((osl_pubinfo_t*)osh)->reg_ctx; in osl_readl() 1467 void *ctx = ((osl_pubinfo_t*)osh)->reg_ctx; in osl_writeb() 1476 void *ctx = ((osl_pubinfo_t*)osh)->reg_ctx; in osl_writew() 1485 void *ctx = ((osl_pubinfo_t*)osh)->reg_ctx; in osl_writel()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/ |
| H A D | linux_osl.h | 142 void *reg_ctx; /**< Context to the reg callback functions */ member 171 ((osl_pubinfo_t*)osh)->reg_ctx = ctx; \
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/include/ |
| H A D | linux_osl.h | 146 void *reg_ctx; /**< Context to the reg callback functions */ member 175 ((osl_pubinfo_t*)osh)->reg_ctx = ctx; \
|