Home
last modified time | relevance | path

Searched refs:client_type (Results 1 – 18 of 18) sorted by relevance

/rockchip-linux_mpp/mpp/hal/vpu/jpegd/
H A Dhal_jpegd_api.c68 MppClientType client_type = VPU_CLIENT_BUTT; in hal_jpegd_init() local
88 client_type = hw_type; in hal_jpegd_init()
94 if (client_type == VPU_CLIENT_BUTT) { in hal_jpegd_init()
96 client_type = VPU_CLIENT_VDPU2; in hal_jpegd_init()
98 client_type = VPU_CLIENT_VDPU1; in hal_jpegd_init()
100 client_type = VPU_CLIENT_VDPU2_PP; in hal_jpegd_init()
102 client_type = VPU_CLIENT_VDPU1_PP; in hal_jpegd_init()
104 client_type = VPU_CLIENT_JPEG_DEC; in hal_jpegd_init()
107 mpp_env_get_u32("jpegd_mode", &client_type, client_type); in hal_jpegd_init()
109 switch (client_type) { in hal_jpegd_init()
[all …]
/rockchip-linux_mpp/mpp/hal/rkdec/h264d/
H A Dhal_h264d_api.c246 MppClientType client_type = VPU_CLIENT_BUTT; in hal_h264d_init() local
274 client_type = hw_type; in hal_h264d_init()
281 if (client_type == VPU_CLIENT_BUTT) { in hal_h264d_init()
283 client_type = VPU_CLIENT_RKVDEC; in hal_h264d_init()
285 client_type = VPU_CLIENT_VDPU1; in hal_h264d_init()
287 client_type = VPU_CLIENT_VDPU2; in hal_h264d_init()
290 H264D_DBG(H264D_DBG_HARD_MODE, "client_type %d\n", client_type); in hal_h264d_init()
293 switch (client_type) { in hal_h264d_init()
295 RK_U32 hw_id = mpp_get_client_hw_id(client_type); in hal_h264d_init()
326 mpp_err_f("client_type error, value=%d\n", client_type); in hal_h264d_init()
[all …]
/rockchip-linux_mpp/osal/
H A Dmpp_platform.c149 MppClientType client_type = (MppClientType) i; in mpp_plat_srv_init() local
151 mpp_dbg_platform("confliction found at client_type %d\n", client_type); in mpp_plat_srv_init()
154 mpp_err("client %d driver is not ready!\n", client_type); in mpp_plat_srv_init()
156 mpp_dbg_platform("client %d driver is ready but not declared!\n", client_type); in mpp_plat_srv_init()
157 if (client_type == VPU_CLIENT_VDPU2_PP) in mpp_plat_srv_init()
220 rk_u32 mpp_get_client_hw_id(rk_s32 client_type) in mpp_get_client_hw_id() argument
225 if (srv && srv->vcodec_type & (1 << client_type)) in mpp_get_client_hw_id()
226 hw_id = srv->hw_ids[client_type]; in mpp_get_client_hw_id()
H A Dmpp_soc.c1203 const MppDecHwCap* mpp_get_dec_hw_info_by_client_type(MppClientType client_type) in mpp_get_dec_hw_info_by_client_type() argument
1210 if (info->dec_caps[i] && info->dec_caps[i]->type == client_type) { in mpp_get_dec_hw_info_by_client_type()
/rockchip-linux_mpp/mpp/hal/rkdec/h265d/
H A Dhal_h265d_api.c40 MppClientType client_type = VPU_CLIENT_BUTT; in hal_h265d_init() local
50 client_type = (vcodec_type & HAVE_HEVC_DEC) ? in hal_h265d_init()
53 ret = mpp_dev_init(&cfg->dev, client_type); in hal_h265d_init()
58 cfg->hw_info = mpp_get_dec_hw_info_by_client_type(client_type); in hal_h265d_init()
61 hw_id = mpp_get_client_hw_id(client_type); in hal_h265d_init()
68 p->client_type = client_type; in hal_h265d_init()
H A Dhal_h265d_ctx.h36 MppClientType client_type; member
H A Dhal_h265d_rkv.c938 (reg_ctx->client_type == VPU_CLIENT_RKVDEC) ? in hal_h265d_rkv_start()
/rockchip-linux_mpp/osal/driver/
H A Dvcodec_service.c57 RK_S32 client_type; member
461 VPU_CLIENT_TYPE client_type; in vcodec_service_init() local
470 client_type = VPU_DEC; in vcodec_service_init()
475 client_type = VPU_DEC; in vcodec_service_init()
480 client_type = VPU_DEC_PP; in vcodec_service_init()
488 client_type = VPU_DEC_PP; in vcodec_service_init()
493 client_type = VPU_DEC; in vcodec_service_init()
499 client_type = VPU_DEC; in vcodec_service_init()
505 client_type = VPU_DEC; in vcodec_service_init()
510 client_type = VPU_ENC; in vcodec_service_init()
[all …]
H A Dmpp_server.c558 static MppDevBatServ *bat_server_get(MppDevServer *srv, MppClientType client_type) in bat_server_get() argument
565 server = srv->bat_server[client_type]; in bat_server_get()
585 strof_client_type(client_type)); in bat_server_get()
607 srv->bat_server[client_type] = server; in bat_server_get()
631 static rk_s32 bat_server_put(MppDevServer *srv, MppClientType client_type) in bat_server_put() argument
638 if (!srv->bat_server[client_type]) { in bat_server_put()
643 server = srv->bat_server[client_type]; in bat_server_put()
644 srv->bat_server[client_type] = NULL; in bat_server_put()
677 MppClientType client_type = (MppClientType)ctx->client_type; in server_attach() local
682 if (client_type < 0 || client_type >= VPU_CLIENT_BUTT) { in server_attach()
[all …]
H A Dmpp_service.c326 p->client_type = type; in mpp_service_init()
/rockchip-linux_mpp/mpp/hal/rkdec/vp9d/
H A Dhal_vp9d_api.c37 MppClientType client_type = VPU_CLIENT_RKVDEC; in hal_vp9d_init() local
40 ret = mpp_dev_init(&cfg->dev, client_type); in hal_vp9d_init()
45 cfg->hw_info = mpp_get_dec_hw_info_by_client_type(client_type); in hal_vp9d_init()
48 hw_id = mpp_get_client_hw_id(client_type); in hal_vp9d_init()
51 p->client_type = client_type; in hal_vp9d_init()
H A Dhal_vp9d_ctx.h57 MppClientType client_type; member
/rockchip-linux_mpp/mpp/base/
H A Dmpp_cluster.c119 RK_S32 client_type; member
139 static MppCluster *cluster_server_get(MppClientType client_type);
140 static MPP_RET cluster_server_put(MppClientType client_type);
648 static MppCluster *cluster_server_get(MppClientType client_type) in MPP_SINGLETON()
654 if (!srv || client_type >= VPU_CLIENT_BUTT) in MPP_SINGLETON()
660 p = srv->clusters[client_type]; in MPP_SINGLETON()
672 p->client_type = client_type; in MPP_SINGLETON()
673 snprintf(p->name, sizeof(p->name) - 1, "%d:%d", p->pid, client_type); in MPP_SINGLETON()
686 srv->clusters[client_type] = p; in MPP_SINGLETON()
697 cluster_dbg_flow("%d get cluster %d failed\n", getpid(), client_type); in MPP_SINGLETON()
[all …]
/rockchip-linux_mpp/mpp/hal/rkdec/avsd/
H A Dhal_avsd_api.c42 MppClientType client_type = VPU_CLIENT_BUTT; in init_hard_platform() local
67 client_type = VPU_CLIENT_AVSPLUS_DEC; in init_hard_platform()
78 client_type = VPU_CLIENT_VDPU1; in init_hard_platform()
89 client_type = VPU_CLIENT_VDPU2; in init_hard_platform()
97 ret = mpp_dev_init(&p_hal->dev, client_type); in init_hard_platform()
/rockchip-linux_mpp/mpp/legacy/
H A Dvpu.c62 static RK_S32 vpu_api_set_client_type(int dev, RK_S32 client_type) in vpu_api_set_client_type() argument
74 switch (client_type) { in vpu_api_set_client_type()
93 ret = ioctl(dev, VPU_IOC_SET_CLIENT_TYPE, client_type); in vpu_api_set_client_type()
97 ret = ioctl(dev, VPU_IOC_SET_CLIENT_TYPE_U32, client_type); in vpu_api_set_client_type()
111 ret = ioctl(dev, cmd, client_type); in vpu_api_set_client_type()
/rockchip-linux_mpp/osal/inc/
H A Dmpp_platform.h38 rk_u32 mpp_get_client_hw_id(RK_S32 client_type);
H A Dmpp_soc.h96 const MppDecHwCap* mpp_get_dec_hw_info_by_client_type(MppClientType client_type);
/rockchip-linux_mpp/osal/driver/inc/
H A Dmpp_service_impl.h29 RK_S32 client_type; member