Home
last modified time | relevance | path

Searched refs:hnd (Results 1 – 17 of 17) sorted by relevance

/rockchip-linux_mpp/mpp/hal/
H A Dhal_task.c109 MPP_RET hal_task_get_hnd(HalTaskGroup group, RK_S32 status, HalTaskHnd *hnd) in hal_task_get_hnd() argument
111 if (NULL == group || status >= TASK_BUTT || NULL == hnd) { in hal_task_get_hnd()
112 mpp_err_f("found invaid input group %p status %d hnd %p\n", group, status, hnd); in hal_task_get_hnd()
116 *hnd = NULL; in hal_task_get_hnd()
128 *hnd = task; in hal_task_get_hnd()
168 MPP_RET hal_task_hnd_set_status(HalTaskHnd hnd, RK_S32 status) in hal_task_hnd_set_status() argument
170 if (NULL == hnd || status >= TASK_BUTT) { in hal_task_hnd_set_status()
171 mpp_err_f("found invaid input hnd %p status %d\n", hnd, status); in hal_task_hnd_set_status()
175 HalTaskImpl *impl = (HalTaskImpl *)hnd; in hal_task_hnd_set_status()
192 MPP_RET hal_task_hnd_set_info(HalTaskHnd hnd, void *info) in hal_task_hnd_set_info() argument
[all …]
/rockchip-linux_mpp/mpp/legacy/
H A DppOp.cpp25 status_t ppOpInit(PP_OP_HANDLE *hnd, PP_OPERATION *init) in ppOpInit() argument
27 (void)hnd; in ppOpInit()
32 status_t ppOpSet(PP_OP_HANDLE hnd, PP_SET_OPT opt, RK_U32 val) in ppOpSet() argument
34 (void)hnd; in ppOpSet()
40 status_t ppOpPerform(PP_OP_HANDLE hnd) in ppOpPerform() argument
42 (void)hnd; in ppOpPerform()
46 status_t ppOpSync(PP_OP_HANDLE hnd) in ppOpSync() argument
48 (void)hnd; in ppOpSync()
52 status_t ppOpRelease(PP_OP_HANDLE hnd) in ppOpRelease() argument
54 (void)hnd; in ppOpRelease()
[all …]
H A DppOp.h106 status_t ppOpInit(PP_OP_HANDLE *hnd, PP_OPERATION *init);
107 status_t ppOpSet(PP_OP_HANDLE hnd, PP_SET_OPT opt, RK_U32 val);
108 status_t ppOpPerform(PP_OP_HANDLE hnd);
109 status_t ppOpSync(PP_OP_HANDLE hnd);
110 status_t ppOpRelease(PP_OP_HANDLE hnd);
/rockchip-linux_mpp/mpp/hal/inc/
H A Dhal_task.h69 MPP_RET hal_task_get_hnd(HalTaskGroup group, RK_S32 status, HalTaskHnd *hnd);
71 MPP_RET hal_task_hnd_set_status(HalTaskHnd hnd, RK_S32 status);
72 MPP_RET hal_task_hnd_set_info(HalTaskHnd hnd, void *task);
73 MPP_RET hal_task_hnd_get_info(HalTaskHnd hnd, void *task);
74 void *hal_task_hnd_get_data(HalTaskHnd hnd);
/rockchip-linux_mpp/osal/allocator/
H A Dallocator_ion.c348 ion_user_handle_t hnd = -1; in allocator_ion_alloc() local
360 0, &hnd); in allocator_ion_alloc()
364 ret = ion_map_fd(p->ion_device, hnd, &fd); in allocator_ion_alloc()
371 info->hnd = (void *)(intptr_t)hnd; in allocator_ion_alloc()
373 ion_dbg_func("leave: ret %d handle %d fd %d\n", ret, hnd, fd); in allocator_ion_alloc()
393 data->hnd = (void *)(intptr_t)fd_data.handle; in allocator_ion_import()
397 ion_dbg_func("leave: ret %d handle %d\n", ret, data->hnd); in allocator_ion_import()
442 if (data->hnd) { in allocator_ion_free()
443 ion_free(p->ion_device, (ion_user_handle_t)((intptr_t)data->hnd)); in allocator_ion_free()
444 data->hnd = NULL; in allocator_ion_free()
H A Dallocator_drm.c226 (RK_U32 *)&info->hnd, p->flags); in os_allocator_drm_alloc()
232 ret = drm_handle_to_fd(p->drm_device, (RK_U32)((intptr_t)info->hnd), in os_allocator_drm_alloc()
241 (RK_U32)((intptr_t)info->hnd), info->fd); in os_allocator_drm_alloc()
244 drm_free(p->drm_device, (RK_U32)((intptr_t)info->hnd)); in os_allocator_drm_alloc()
245 info->hnd = NULL; in os_allocator_drm_alloc()
286 data->hnd, data->ptr, data->fd, data->size); in os_allocator_drm_free()
H A Dallocator_std.c69 info->hnd = NULL; in allocator_std_import()
81 info->hnd = NULL; in allocator_std_release()
H A Dallocator_ext_dma.c115 info->hnd = NULL; in allocator_ext_dma_release()
/rockchip-linux_mpp/mpp/codec/
H A Dmpp_dec.c42 task->hnd = NULL; in dec_task_init()
247 HalTaskHnd hnd = NULL; in mpp_dec_put_frame() local
253 ret = hal_task_get_hnd(group, TASK_IDLE, &hnd); in mpp_dec_put_frame()
266 hal_task_hnd_set_info(hnd, &task); in mpp_dec_put_frame()
267 hal_task_hnd_set_status(hnd, TASK_PROCESSING); in mpp_dec_put_frame()
324 HalTaskHnd hnd = NULL; in mpp_dec_put_frame() local
330 ret = hal_task_get_hnd(group, TASK_IDLE, &hnd); in mpp_dec_put_frame()
355 hal_task_hnd_set_info(hnd, &task); in mpp_dec_put_frame()
356 hal_task_hnd_set_status(hnd, TASK_PROCESSING); in mpp_dec_put_frame()
H A Dmpp_dec_normal.c235 hal_task_hnd_set_info(task->hnd, &task->info); in mpp_dec_put_task()
237 hal_task_hnd_set_status(task->hnd, TASK_PROCESSING); in mpp_dec_put_task()
241 task->hnd = NULL; in mpp_dec_put_task()
322 if (!task->hnd) { in try_proc_dec_task()
323 hal_task_get_hnd(tasks, TASK_IDLE, &task->hnd); in try_proc_dec_task()
324 if (task->hnd) { in try_proc_dec_task()
518 hal_task_hnd_set_status(task->hnd, TASK_IDLE); in try_proc_dec_task()
519 task->hnd = NULL; in try_proc_dec_task()
561 mpp_assert(task->hnd); in try_proc_dec_task()
758 if (task.hnd && task_dec->valid) { in mpp_dec_parser_thread()
H A Dmpp_enc_impl.c3152 if (NULL == enc->hnd) { in try_get_async_task()
3153 hal_task_get_hnd(enc->tasks, TASK_IDLE, &enc->hnd); in try_get_async_task()
3154 if (enc->hnd) { in try_get_async_task()
3159 async = (EncAsyncTaskInfo *)hal_task_hnd_get_data(enc->hnd); in try_get_async_task()
3169 mpp_assert(enc->hnd); in try_get_async_task()
3361 HalTaskHnd hnd = NULL; in try_proc_processing_task() local
3365 ret = hal_task_get_hnd(enc->tasks, TASK_PROCESSING, &hnd); in try_proc_processing_task()
3369 info = (EncAsyncTaskInfo *)hal_task_hnd_get_data(hnd); in try_proc_processing_task()
3374 hal_task_hnd_set_status(hnd, TASK_IDLE); in try_proc_processing_task()
3456 hal_task_hnd_set_status(enc->hnd, TASK_PROCESSING); in proc_async_task()
[all …]
/rockchip-linux_mpp/mpp/codec/inc/
H A Dmpp_enc_impl.h95 HalTaskHnd hnd; member
H A Dmpp_dec_impl.h221 HalTaskHnd hnd; member
/rockchip-linux_mpp/kmpp/
H A Dkmpp.c83 void *hnd; in init() local
103 hnd = kmpp_obj_to_shm(ctx->mVencInitKcfg); in init()
108 ret = mpp_vcodec_ioctl(ctx->mClientFd, VCODEC_CHAN_CREATE, 0, size, hnd); in init()
/rockchip-linux_mpp/kmpp/base/inc/
H A Dkmpp_buffer_impl.h100 void *hnd; member
/rockchip-linux_mpp/inc/
H A Dmpp_buffer.h178 void *hnd; member
/rockchip-linux_mpp/mpp/base/
H A Dmpp_buffer_impl.c284 info->hnd = NULL; in clear_buffer_info()