Home
last modified time | relevance | path

Searched refs:func (Results 1 – 25 of 58) sorted by relevance

123

/rockchip-linux_mpp/mpp/hal/vpu/vp8e/
H A Dhal_vp8e_api_v2.c95 #define HAL_VP8E_FUNC(func) \ argument
96 static MPP_RET hal_vp8e_##func(void *hal) \
102 if (!hw_ctx || !api || !api->func) \
105 return api->func(hw_ctx); \
108 #define HAL_VP8E_TASK_FUNC(func) \ argument
109 static MPP_RET hal_vp8e_##func(void *hal, HalEncTask *task) \
115 if (!hw_ctx || !api || !api->func) \
118 return api->func(hw_ctx, task); \
/rockchip-linux_mpp/mpp/hal/common/jpeg/
H A Dhal_jpege_api_v2.c97 #define HAL_JPEGE_FUNC(func) \ argument
98 static MPP_RET hal_jpege_##func(void *hal) \
104 if (!hw_ctx || !api || !api->func) \
107 return api->func(hw_ctx); \
110 #define HAL_JPEGE_TASK_FUNC(func) \ argument
111 static MPP_RET hal_jpege_##func(void *hal, HalEncTask *task) \
117 if (!hw_ctx || !api || !api->func) \
120 return api->func(hw_ctx, task); \
/rockchip-linux_mpp/mpp/hal/common/h264/
H A Dhal_h264e_api_v2.c116 #define HAL_H264E_FUNC(func) \ argument
117 static MPP_RET hal_h264e_##func(void *hal) \
123 if (!hw_ctx || !api || !api->func) \
126 return api->func(hw_ctx); \
129 #define HAL_H264E_TASK_FUNC(func) \ argument
130 static MPP_RET hal_h264e_##func(void *hal, HalEncTask *task) \
136 if (!hw_ctx || !api || !api->func) \
139 return api->func(hw_ctx, task); \
/rockchip-linux_mpp/mpp/hal/common/h265/
H A Dhal_h265e_api_v2.c107 #define HAL_H265E_FUNC(func) \ argument
108 static MPP_RET hal_h265ev2_##func(void *hal) \
114 if (!hw_ctx || !api || !api->func) \
117 return api->func(hw_ctx); \
120 #define HAL_H265E_TASK_FUNC(func) \ argument
121 static MPP_RET hal_h265ev2_##func(void *hal, HalEncTask *task) \
127 if (!hw_ctx || !api || !api->func) \
130 return api->func(hw_ctx, task); \
/rockchip-linux_mpp/kmpp/base/inc/
H A Dkmpp_obj_func.h83 #define IOCTL_CTX(prefix, func, ...) \ argument
84 rk_s32 CONCAT_US(prefix, func)(KMPP_OBJ_INTF_TYPE ctx);
86 #define IOCTL_IN_(prefix, func, in_type, ...) \ argument
87 rk_s32 CONCAT_US(prefix, func)(KMPP_OBJ_INTF_TYPE ctx, in_type in);
89 #define IOCTL_OUT(prefix, func, out_type, ...) \ argument
90 rk_s32 CONCAT_US(prefix, func)(KMPP_OBJ_INTF_TYPE ctx, out_type *out);
92 #define IOCTL_IO_(prefix, func, in_type, out_type, ...) \ argument
93 rk_s32 CONCAT_US(prefix, func)(KMPP_OBJ_INTF_TYPE ctx, in_type in, out_type *out);
H A Dkmpp_obj_helper.h511 #define IOCTL_CTX(prefix, func, ...) \ argument
512 rk_s32 CONCAT_US(prefix, func)(KMPP_OBJ_INTF_TYPE ctx) \
526 cmd = kmpp_objdef_get_cmd(def, TO_STR(func)); \
528 … mpp_loge_cf(once, TO_STR(KMPP_OBJ_NAME) " ioctl cmd %s not supported\n", TO_STR(func)); \
536 #define IOCTL_IN_(prefix, func, in_type, ...) \ argument
537 rk_s32 CONCAT_US(prefix, func)(KMPP_OBJ_INTF_TYPE ctx, in_type in) \
547 cmd = kmpp_objdef_get_cmd(def, TO_STR(func)); \
549 … mpp_loge_cf(once, TO_STR(KMPP_OBJ_NAME) " ioctl cmd %s not supported\n", TO_STR(func)); \
557 #define IOCTL_OUT(prefix, func, out_type, ...) \ argument
558 rk_s32 CONCAT_US(prefix, func)(KMPP_OBJ_INTF_TYPE ctx, out_type *out) \
[all …]
/rockchip-linux_mpp/mpp/base/
H A Dmpp_cfg.c57 static void show_cfg_info_err(MppCfgInfo *node, CfgType type, const char *func, const char *name) in show_cfg_info_err() argument
59 mpp_err("%s cfg %s expect %s input NOT %s\n", func, name, in show_cfg_info_err()
125 const char *func) in check_cfg_info() argument
128 mpp_err("%s: cfg %s is invalid\n", func, name); in check_cfg_info()
139 show_cfg_info_err(node, type, func, name); in check_cfg_info()
143 mpp_err("%s: cfg %s found invalid size %d\n", func, name, cfg_size); in check_cfg_info()
149 show_cfg_info_err(node, type, func, name); in check_cfg_info()
156 show_cfg_info_err(node, type, func, name); in check_cfg_info()
163 show_cfg_info_err(node, type, func, name); in check_cfg_info()
168 mpp_err("%s: cfg %s found invalid cfg type %d\n", func, name, type); in check_cfg_info()
H A Dmpp_enc_ref.c22 MPP_RET _check_is_mpp_enc_ref_cfg(const char *func, void *ref) in _check_is_mpp_enc_ref_cfg() argument
25 mpp_err("%s input ref check NULL failed\n", func); in _check_is_mpp_enc_ref_cfg()
30 mpp_err("%s input ref check %p %p failed\n", func, ((MppEncRefCfgImpl*)(ref))->name); in _check_is_mpp_enc_ref_cfg()
/rockchip-linux_mpp/osal/
H A Dmpp_allocator.c49 OsAllocatorFunc func; in mpp_allocator_api_wrapper() local
61 func = p->os_api.alloc; in mpp_allocator_api_wrapper()
64 func = p->os_api.free; in mpp_allocator_api_wrapper()
67 func = p->os_api.import; in mpp_allocator_api_wrapper()
70 func = p->os_api.release; in mpp_allocator_api_wrapper()
73 func = p->os_api.mmap; in mpp_allocator_api_wrapper()
76 func = NULL; in mpp_allocator_api_wrapper()
80 if (func && p->ctx) in mpp_allocator_api_wrapper()
81 ret = func(p->ctx, info); in mpp_allocator_api_wrapper()
H A Dmpp_thread.c22 MppThread *mpp_thread_create(MppThreadFunc func, void *ctx, const char *name) in mpp_thread_create() argument
28 thread->func = func; in mpp_thread_create()
66 if (0 == pthread_create(&thread->thd, &attr, thread->func, thread->ctx)) { in mpp_thread_start()
69 mpp_err("thread %p setname %s failed\n", thread->func, thread->name); in mpp_thread_start()
72 thread->name, thread->func, thread->ctx); in mpp_thread_start()
94 …AD_DBG_FUNC, "thread %s %p context %p destroy success\n", thread->name, thread->func, thread->ctx); in mpp_thread_stop()
243 void mpp_thread_init(MppThread *thread, MppThreadFunc func, void *ctx, const char *name) in mpp_thread_init() argument
245 thread->func = func; in mpp_thread_init()
302 MppSThdFunc func; member
391 if (0 == pthread_create(&thd->thd, &attr, (MppThreadFunc)thd->func, &thd->ctx)) { in mpp_sthd_create()
[all …]
H A Dmpp_time.c198 MppThreadFunc func; member
252 impl->func(impl->ctx); in mpp_timer_thread()
320 void mpp_timer_set_callback(MppTimer timer, MppThreadFunc func, void *ctx) in mpp_timer_set_callback() argument
329 if (!func) { in mpp_timer_set_callback()
334 impl->func = func; in mpp_timer_set_callback()
360 if (!impl->func || impl->initial < 0 || impl->interval < 0) { in mpp_timer_set_enable()
362 impl->func, impl->initial, impl->interval); in mpp_timer_set_enable()
H A Dmpp_queue.c9 MppQueue* mpp_queue_create(node_destructor func) in mpp_queue_create() argument
13 queue->list = mpp_list_create(func); in mpp_queue_create()
H A Dmpp_log.c43 static void __mpp_log(os_log_callback func, const char *tag, const char *fmt, in __mpp_log() argument
77 func(tag, buf, args); in __mpp_log()
/rockchip-linux_mpp/mpp/hal/rkdec/h264d/
H A Dhal_h264d_api.c424 #define HAL_H264D_FUNC(func) \ argument
425 static MPP_RET hal_h264d_##func(void *hal) \
429 if (!p_hal || !p_hal->hal_api || !p_hal->hal_api->func) \
432 return p_hal->hal_api->func(hal); \
435 #define HAL_H264D_TASK_FUNC(func) \ argument
436 static MPP_RET hal_h264d_##func(void *hal, HalTaskInfo *task) \
440 if (!p_hal || !p_hal->hal_api || !p_hal->hal_api->func) \
443 return p_hal->hal_api->func(hal, task); \
/rockchip-linux_mpp/kmpp/base/test/
H A Dkmpp_frame_test.c13 #define TEST_CHECK(ret, func, ...) \ argument
15 ret = func(__VA_ARGS__); \
17 mpp_err(MODULE_TAG " %s failed ret %d\n", #func, ret); \
/rockchip-linux_mpp/osal/inc/
H A Dmpp_thread.h69 MppThreadFunc func; member
101 void mpp_thread_init(MppThread *thread, MppThreadFunc func, void *ctx, const char *name);
109 MppThread *mpp_thread_create(MppThreadFunc func, void *ctx, const char *name);
162 void mpp_sthd_setup(MppSThd thd, MppSThdFunc func, void *ctx);
180 void mpp_sthd_grp_setup(MppSThdGrp grp, MppSThdFunc func, void *ctx);
H A Dmpp_time.h72 void mpp_timer_set_callback(MppTimer timer, MppThreadFunc func, void *ctx);
/rockchip-linux_mpp/mpp/hal/rkdec/avs2d/
H A Dhal_avs2d_api.c145 #define HAL_AVS2D_TASK_FUNC(func) \ argument
146 static MPP_RET hal_avs2d_##func(void *hal, HalTaskInfo *task) \
150 if (!p_hal || !p_hal->hal_api || !p_hal->hal_api->func) \
153 return p_hal->hal_api->func(hal, task); \
/rockchip-linux_mpp/inc/
H A Dmpp_log.h77 void _mpp_log_l(int level, const char *tag, const char *fmt, const char *func, ...);
82 typedef void (*MppLogCb)(void *ctx, int level, const char *tag, const char *fmt, const char *func, …
86 void _mpp_log(const char *tag, const char *fmt, const char *func, ...);
87 void _mpp_err(const char *tag, const char *fmt, const char *func, ...);
/rockchip-linux_mpp/mpp/hal/
H A Dmpp_enc_hal.c149 #define MPP_ENC_HAL_TASK_FUNC(func) \ argument
150 MPP_RET mpp_enc_hal_##func(void *hal, HalEncTask *task) \
158 if (!p->api || !p->api->func) \
161 return p->api->func(p->ctx, task); \
/rockchip-linux_mpp/mpp/codec/rc/
H A Drc.c166 #define MPP_ENC_RC_FUNC(flow, func) \ argument
167 MPP_RET rc_##flow##_##func(RcCtx ctx, EncRcTask *task) \
171 if (!api || !api->flow##_##func || !p->ctx || !task) \
173 return api->flow##_##func(p->ctx, task); \
/rockchip-linux_mpp/mpp/legacy/
H A Drk_list.h13 rk_list(node_destructor func);
/rockchip-linux_mpp/mpp/base/inc/
H A Dmpp_enc_ref.h65 MPP_RET _check_is_mpp_enc_ref_cfg(const char *func, void *ref);
H A Dmpp_trie.h85 void mpp_trie_dump(MppTrie trie, const char *func);
/rockchip-linux_mpp/utils/
H A Dosd3_test.h84 MPP_RET (*func)(MppEncOSDData3 *osd_data); member

123