Home
last modified time | relevance | path

Searched refs:task (Results 1 - 25 of 98) sorted by relevance

1234

/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/mpp/
H A Dmpp_vdpu1.c88 #define to_vdpu_task(task) \
89 container_of(task, struct vdpu_task, mpp_task)
109 /* req for current task */
228 struct vdpu_task *task, in vdpu_process_reg_fd()
232 int fmt = VDPU1_GET_FORMAT(task->reg[VDPU1_REG_SYS_CTRL_INDEX]); in vdpu_process_reg_fd()
234 ret = mpp_translate_reg_address(session, &task->mpp_task, in vdpu_process_reg_fd()
235 fmt, task->reg, &task->off_inf); in vdpu_process_reg_fd()
259 fd = task->reg[idx]; in vdpu_process_reg_fd()
262 fd = task in vdpu_process_reg_fd()
227 vdpu_process_reg_fd(struct mpp_session *session, struct vdpu_task *task, struct mpp_task_msgs *msgs) vdpu_process_reg_fd() argument
282 vdpu_extract_task_msg(struct vdpu_task *task, struct mpp_task_msgs *msgs) vdpu_extract_task_msg() argument
341 struct vdpu_task *task = NULL; vdpu_alloc_task() local
389 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_run() local
424 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_finish() local
455 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_result() local
475 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_free_task() local
577 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_3288_get_freq() local
590 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_3368_get_freq() local
603 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_set_freq() local
635 struct vdpu_task *task = NULL; vdpu_isr() local
[all...]
H A Dmpp_vdpu2.c80 #define to_vdpu_task(task) \
81 container_of(task, struct vdpu_task, mpp_task)
94 /* req for current task */
201 struct vdpu_task *task, in vdpu_process_reg_fd()
205 int fmt = VDPU2_GET_FORMAT(task->reg[VDPU2_REG_SYS_CTRL_INDEX]); in vdpu_process_reg_fd()
207 ret = mpp_translate_reg_address(session, &task->mpp_task, in vdpu_process_reg_fd()
208 fmt, task->reg, &task->off_inf); in vdpu_process_reg_fd()
220 fd = task->reg[idx]; in vdpu_process_reg_fd()
223 fd = task in vdpu_process_reg_fd()
200 vdpu_process_reg_fd(struct mpp_session *session, struct vdpu_task *task, struct mpp_task_msgs *msgs) vdpu_process_reg_fd() argument
240 vdpu_extract_task_msg(struct vdpu_task *task, struct mpp_task_msgs *msgs) vdpu_extract_task_msg() argument
299 struct vdpu_task *task = NULL; vdpu_alloc_task() local
342 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_run() local
377 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_finish() local
408 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_result() local
428 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_free_task() local
536 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_set_freq() local
568 struct vdpu_task *task = NULL; vdpu_isr() local
[all...]
H A Dmpp_common.c92 /* task queue schedule */
95 struct mpp_task *task) in mpp_taskqueue_push_pending()
97 if (!task->session || !task->session->mpp) in mpp_taskqueue_push_pending()
100 kref_get(&task->ref); in mpp_taskqueue_push_pending()
102 list_add_tail(&task->queue_link, &queue->pending_list); in mpp_taskqueue_push_pending()
110 struct mpp_task *task) in mpp_taskqueue_pop_pending()
112 if (!task->session || !task->session->mpp) in mpp_taskqueue_pop_pending()
116 list_del_init(&task in mpp_taskqueue_pop_pending()
94 mpp_taskqueue_push_pending(struct mpp_taskqueue *queue, struct mpp_task *task) mpp_taskqueue_push_pending() argument
109 mpp_taskqueue_pop_pending(struct mpp_taskqueue *queue, struct mpp_task *task) mpp_taskqueue_pop_pending() argument
126 struct mpp_task *task = NULL; mpp_taskqueue_get_pending_task() local
151 mpp_taskqueue_pending_to_run(struct mpp_taskqueue *queue, struct mpp_task *task) mpp_taskqueue_pending_to_run() argument
170 struct mpp_task *task = NULL; mpp_taskqueue_get_running_task() local
182 mpp_taskqueue_pop_running(struct mpp_taskqueue *queue, struct mpp_task *task) mpp_taskqueue_pop_running() argument
235 struct mpp_task *task = NULL, *n; mpp_session_clear() local
353 mpp_session_push_pending(struct mpp_session *session, struct mpp_task *task) mpp_session_push_pending() argument
365 mpp_session_pop_pending(struct mpp_session *session, struct mpp_task *task) mpp_session_pop_pending() argument
379 struct mpp_task *task = NULL; mpp_session_get_pending_task() local
394 struct mpp_task *task = container_of(ref, struct mpp_task, ref); mpp_free_task() local
425 struct mpp_task *task = container_of(to_delayed_work(work_s), mpp_task_timeout_work() local
464 struct mpp_task *task = NULL; mpp_process_task_default() local
605 mpp_task_run(struct mpp_dev *mpp, struct mpp_task *task) mpp_task_run() argument
652 struct mpp_task *task; mpp_task_worker_default() local
724 mpp_get_task_used_device(const struct mpp_task *task, const struct mpp_session *session) mpp_get_task_used_device() argument
733 struct mpp_task *task; mpp_wait_result_default() local
1390 mpp_task_attach_fd(struct mpp_task *task, int fd) mpp_task_attach_fd() argument
1441 mpp_translate_reg_address(struct mpp_session *session, struct mpp_task *task, int fmt, u32 *reg, struct reg_offset_info *off_inf) mpp_translate_reg_address() argument
1570 mpp_translate_reg_offset_info(struct mpp_task *task, struct reg_offset_info *off_inf, u32 *reg) mpp_translate_reg_offset_info() argument
1591 mpp_task_init(struct mpp_session *session, struct mpp_task *task) mpp_task_init() argument
1604 mpp_task_finish(struct mpp_session *session, struct mpp_task *task) mpp_task_finish() argument
1626 mpp_task_finalize(struct mpp_session *session, struct mpp_task *task) mpp_task_finalize() argument
1647 mpp_task_dump_mem_region(struct mpp_dev *mpp, struct mpp_task *task) mpp_task_dump_mem_region() argument
1670 mpp_task_dump_reg(struct mpp_dev *mpp, struct mpp_task *task) mpp_task_dump_reg() argument
1695 mpp_task_dump_hw_reg(struct mpp_dev *mpp, struct mpp_task *task) mpp_task_dump_hw_reg() argument
1723 struct mpp_task *task = mpp_taskqueue_get_running_task(queue); mpp_iommu_handle() local
1894 struct mpp_task *task = mpp->cur_task; mpp_dev_irq() local
1973 mpp_time_record(struct mpp_task *task) mpp_time_record() argument
1981 mpp_time_diff(struct mpp_task *task) mpp_time_diff() argument
[all...]
H A Dmpp_jpgdec.c72 #define to_jpgdec_task(task) \
73 container_of(task, struct jpgdec_task, mpp_task)
85 /* req for current task */
128 struct jpgdec_task *task, in jpgdec_process_reg_fd()
133 ret = mpp_translate_reg_address(session, &task->mpp_task, in jpgdec_process_reg_fd()
134 JPEGDEC_FMT_DEFAULT, task->reg, &task->off_inf); in jpgdec_process_reg_fd()
138 mpp_translate_reg_offset_info(&task->mpp_task, in jpgdec_process_reg_fd()
139 &task->off_inf, task in jpgdec_process_reg_fd()
127 jpgdec_process_reg_fd(struct mpp_session *session, struct jpgdec_task *task, struct mpp_task_msgs *msgs) jpgdec_process_reg_fd() argument
143 jpgdec_extract_task_msg(struct jpgdec_task *task, struct mpp_task_msgs *msgs) jpgdec_extract_task_msg() argument
202 struct jpgdec_task *task = NULL; jpgdec_alloc_task() local
253 struct jpgdec_task *task = to_jpgdec_task(mpp_task); jpgdec_run() local
286 struct jpgdec_task *task = to_jpgdec_task(mpp_task); jpgdec_finish() local
326 struct jpgdec_task *task = to_jpgdec_task(mpp_task); jpgdec_result() local
346 struct jpgdec_task *task = to_jpgdec_task(mpp_task); jpgdec_free_task() local
448 struct jpgdec_task *task = to_jpgdec_task(mpp_task); jpgdec_set_freq() local
477 struct jpgdec_task *task = NULL; jpgdec_isr() local
[all...]
H A Dmpp_vepu1.c66 #define to_vepu_task(task) \
67 container_of(task, struct vepu_task, mpp_task)
79 /* req for current task */
148 struct vepu_task *task, in vepu_process_reg_fd()
152 int fmt = VEPU1_GET_FORMAT(task->reg[VEPU1_REG_ENC_EN_INDEX]); in vepu_process_reg_fd()
154 ret = mpp_translate_reg_address(session, &task->mpp_task, in vepu_process_reg_fd()
155 fmt, task->reg, &task->off_inf); in vepu_process_reg_fd()
159 mpp_translate_reg_offset_info(&task->mpp_task, in vepu_process_reg_fd()
160 &task in vepu_process_reg_fd()
147 vepu_process_reg_fd(struct mpp_session *session, struct vepu_task *task, struct mpp_task_msgs *msgs) vepu_process_reg_fd() argument
165 vepu_extract_task_msg(struct vepu_task *task, struct mpp_task_msgs *msgs) vepu_extract_task_msg() argument
224 struct vepu_task *task = NULL; vepu_alloc_task() local
266 struct vepu_task *task = to_vepu_task(mpp_task); vepu_run() local
311 struct vepu_task *task = NULL; vepu_isr() local
345 struct vepu_task *task = to_vepu_task(mpp_task); vepu_finish() local
370 struct vepu_task *task = to_vepu_task(mpp_task); vepu_result() local
389 struct vepu_task *task = to_vepu_task(mpp_task); vepu_free_task() local
637 struct vepu_task *task = to_vepu_task(mpp_task); vepu_set_freq() local
[all...]
H A Dmpp_rkvdec2.c89 struct rkvdec2_task *task, in rkvdec2_extract_task_msg()
95 struct mpp_hw_info *hw_info = task->mpp_task.hw_info; in rkvdec2_extract_task_msg()
108 ret = mpp_check_req(req, 0, sizeof(task->reg), off_s, off_e); in rkvdec2_extract_task_msg()
111 if (copy_from_user((u8 *)task->reg + req->offset, in rkvdec2_extract_task_msg()
116 memcpy(&task->w_reqs[task->w_req_cnt++], req, sizeof(*req)); in rkvdec2_extract_task_msg()
124 max_size = sizeof(task->reg_sel); in rkvdec2_extract_task_msg()
127 max_size = sizeof(task->reg); in rkvdec2_extract_task_msg()
134 memcpy(&task->r_reqs[task in rkvdec2_extract_task_msg()
88 rkvdec2_extract_task_msg(struct mpp_session *session, struct rkvdec2_task *task, struct mpp_task_msgs *msgs) rkvdec2_extract_task_msg() argument
155 mpp_set_rcbbuf(struct mpp_dev *mpp, struct mpp_session *session, struct mpp_task *task) mpp_set_rcbbuf() argument
193 rkvdec2_task_init(struct mpp_dev *mpp, struct mpp_session *session, struct rkvdec2_task *task, struct mpp_task_msgs *msgs) rkvdec2_task_init() argument
253 struct rkvdec2_task *task; rkvdec2_alloc_task() local
274 struct rkvdec2_task *task = NULL; rkvdec2_rk3568_alloc_task() local
290 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_run() local
336 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_rk3568_run() local
369 struct rkvdec2_task *task = NULL; rkvdec2_isr() local
431 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_finish() local
471 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_result() local
500 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_free_task() local
764 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_get_freq() local
797 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_set_freq() local
[all...]
H A Dmpp_rkvdec.c117 #define to_rkvdec_task(task) \
118 container_of(task, struct rkvdec_task, mpp_task)
146 /* req for current task */
552 * on current decoding task. Then kernel driver can only translate the first
555 static int fill_scaling_list_pps(struct rkvdec_task *task, in fill_scaling_list_pps() argument
593 mem_region = mpp_task_attach_fd(&task->mpp_task, in fill_scaling_list_pps()
620 struct rkvdec_task *task, in rkvdec_process_scl_fd()
627 u32 fmt = RKVDEC_GET_FORMAT(task->reg[RKVDEC_REG_SYS_CTRL_INDEX]); in rkvdec_process_scl_fd()
630 pps_fd = task->reg[idx]; in rkvdec_process_scl_fd()
633 pps_fd = task in rkvdec_process_scl_fd()
619 rkvdec_process_scl_fd(struct mpp_session *session, struct rkvdec_task *task, struct mpp_task_msgs *msgs) rkvdec_process_scl_fd() argument
694 rkvdec_process_reg_fd(struct mpp_session *session, struct rkvdec_task *task, struct mpp_task_msgs *msgs) rkvdec_process_reg_fd() argument
747 rkvdec_extract_task_msg(struct rkvdec_task *task, struct mpp_task_msgs *msgs) rkvdec_extract_task_msg() argument
806 struct rkvdec_task *task = NULL; rkvdec_alloc_task() local
867 struct rkvdec_task *task = to_rkvdec_task(out_task); rkvdec_prepare_with_reset() local
889 struct rkvdec_task *task = NULL; rkvdec_run() local
940 struct rkvdec_task *task = NULL; rkvdec_3328_run() local
967 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_1126_run() local
989 struct rkvdec_task *task = NULL; rkvdec_isr() local
1028 struct rkvdec_task *task = NULL; rkvdec_3328_isr() local
1070 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_finish() local
1108 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_finish_with_record_info() local
1123 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_result() local
1143 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_free_task() local
1461 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_get_freq() local
1495 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_3328_get_freq() local
1521 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_set_freq() local
1534 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_3368_set_freq() local
1554 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_3328_set_freq() local
[all...]
H A Dmpp_rkvenc.c162 /* req for current task */
253 static int rkvenc_extract_task_msg(struct rkvenc_task *task, in rkvenc_extract_task_msg() argument
273 max_size = sizeof(task->reg_l2); in rkvenc_extract_task_msg()
274 dst = (u8 *)task->reg_l2; in rkvenc_extract_task_msg()
277 max_size = sizeof(task->reg); in rkvenc_extract_task_msg()
278 dst = (u8 *)task->reg; in rkvenc_extract_task_msg()
291 memcpy(&task->w_reqs[task->w_req_cnt++], in rkvenc_extract_task_msg()
300 max_size = sizeof(task->reg_l2); in rkvenc_extract_task_msg()
303 max_size = sizeof(task in rkvenc_extract_task_msg()
332 struct rkvenc_task *task = NULL; rkvenc_alloc_task() local
431 struct rkvenc_task *task = to_rkvenc_task(mpp_task); rkvenc_run() local
506 struct rkvenc_task *task = NULL; rkvenc_isr() local
550 struct rkvenc_task *task = to_rkvenc_task(mpp_task); rkvenc_finish() local
593 struct rkvenc_task *task = to_rkvenc_task(mpp_task); rkvenc_result() local
637 struct rkvenc_task *task = to_rkvenc_task(mpp_task); rkvenc_free_task() local
1320 struct rkvenc_task *task = to_rkvenc_task(mpp_task); rkvenc_get_freq() local
1353 struct rkvenc_task *task = to_rkvenc_task(mpp_task); rkvenc_set_freq() local
[all...]
/device/soc/rockchip/common/vendor/drivers/video/rockchip/mpp/
H A Dmpp_vdpu2.c80 #define to_vdpu_task(task) container_of(task, struct vdpu_task, mpp_task)
92 /* req for current task */
197 static int vdpu_process_reg_fd(struct mpp_session *session, struct vdpu_task *task, struct mpp_task_msgs *msgs) in vdpu_process_reg_fd() argument
200 int fmt = VDPU2_GET_FORMAT(task->reg[VDPU2_REG_SYS_CTRL_INDEX]); in vdpu_process_reg_fd()
202 ret = mpp_translate_reg_address(session, &task->mpp_task, fmt, task->reg, &task->off_inf); in vdpu_process_reg_fd()
215 fd = task->reg[idx]; in vdpu_process_reg_fd()
218 fd = task in vdpu_process_reg_fd()
234 vdpu_extract_task_msg(struct vdpu_task *task, struct mpp_task_msgs *msgs) vdpu_extract_task_msg() argument
287 struct vdpu_task *task = NULL; vdpu_alloc_task() local
332 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_run() local
365 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_finish() local
393 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_result() local
410 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_free_task() local
519 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_set_freq() local
552 struct vdpu_task *task = NULL; vdpu_isr() local
[all...]
H A Dmpp_common.c84 /* task queue schedule */
85 static int mpp_taskqueue_push_pending(struct mpp_taskqueue *queue, struct mpp_task *task) in mpp_taskqueue_push_pending() argument
87 if (!task->session || !task->session->mpp) { in mpp_taskqueue_push_pending()
91 kref_get(&task->ref); in mpp_taskqueue_push_pending()
93 list_add_tail(&task->queue_link, &queue->pending_list); in mpp_taskqueue_push_pending()
99 static int mpp_taskqueue_pop_pending(struct mpp_taskqueue *queue, struct mpp_task *task) in mpp_taskqueue_pop_pending() argument
101 if (!task->session || !task->session->mpp) { in mpp_taskqueue_pop_pending()
106 list_del_init(&task in mpp_taskqueue_pop_pending()
115 struct mpp_task *task = NULL; mpp_taskqueue_get_pending_task() local
136 mpp_taskqueue_pending_to_run(struct mpp_taskqueue *queue, struct mpp_task *task) mpp_taskqueue_pending_to_run() argument
153 struct mpp_task *task = NULL; mpp_taskqueue_get_running_task() local
162 mpp_taskqueue_pop_running(struct mpp_taskqueue *queue, struct mpp_task *task) mpp_taskqueue_pop_running() argument
214 struct mpp_task *task = NULL, *n; mpp_session_clear() local
333 mpp_session_push_pending(struct mpp_session *session, struct mpp_task *task) mpp_session_push_pending() argument
343 mpp_session_pop_pending(struct mpp_session *session, struct mpp_task *task) mpp_session_pop_pending() argument
355 struct mpp_task *task = NULL; mpp_session_get_pending_task() local
368 struct mpp_task *task = container_of(ref, struct mpp_task, ref); mpp_free_task() local
398 struct mpp_task *task = container_of(to_delayed_work(work_s), struct mpp_task, timeout_work); mpp_task_timeout_work() local
434 struct mpp_task *task = NULL; mpp_process_task_default() local
576 mpp_task_run(struct mpp_dev *mpp, struct mpp_task *task) mpp_task_run() argument
622 struct mpp_task *task; mpp_task_worker_default() local
694 mpp_get_task_used_device(const struct mpp_task *task, const struct mpp_session *session) mpp_get_task_used_device() argument
702 struct mpp_task *task; mpp_wait_result_default() local
1360 mpp_task_attach_fd(struct mpp_task *task, int fd) mpp_task_attach_fd() argument
1413 mpp_translate_reg_address(struct mpp_session *session, struct mpp_task *task, int fmt, u32 *reg, struct reg_offset_info *off_inf) mpp_translate_reg_address() argument
1530 mpp_translate_reg_offset_info(struct mpp_task *task, struct reg_offset_info *off_inf, u32 *reg) mpp_translate_reg_offset_info() argument
1547 mpp_task_init(struct mpp_session *session, struct mpp_task *task) mpp_task_init() argument
1559 mpp_task_finish(struct mpp_session *session, struct mpp_task *task) mpp_task_finish() argument
1582 mpp_task_finalize(struct mpp_session *session, struct mpp_task *task) mpp_task_finalize() argument
1601 mpp_task_dump_mem_region(struct mpp_dev *mpp, struct mpp_task *task) mpp_task_dump_mem_region() argument
1622 mpp_task_dump_reg(struct mpp_dev *mpp, struct mpp_task *task) mpp_task_dump_reg() argument
1646 mpp_task_dump_hw_reg(struct mpp_dev *mpp, struct mpp_task *task) mpp_task_dump_hw_reg() argument
1672 struct mpp_task *task = mpp_taskqueue_get_running_task(queue); mpp_iommu_handle() local
1845 struct mpp_task *task = mpp->cur_task; mpp_dev_irq() local
1926 mpp_time_record(struct mpp_task *task) mpp_time_record() argument
1935 mpp_time_diff(struct mpp_task *task) mpp_time_diff() argument
[all...]
H A Dmpp_jpgdec.c72 #define to_jpgdec_task(task) container_of(task, struct jpgdec_task, mpp_task)
83 /* req for current task */
126 static int jpgdec_process_reg_fd(struct mpp_session *session, struct jpgdec_task *task, struct mpp_task_msgs *msgs) in jpgdec_process_reg_fd() argument
130 ret = mpp_translate_reg_address(session, &task->mpp_task, JPEGDEC_FMT_DEFAULT, task->reg, &task->off_inf); in jpgdec_process_reg_fd()
135 mpp_translate_reg_offset_info(&task->mpp_task, &task->off_inf, task in jpgdec_process_reg_fd()
139 jpgdec_extract_task_msg(struct jpgdec_task *task, struct mpp_task_msgs *msgs) jpgdec_extract_task_msg() argument
196 struct jpgdec_task *task = NULL; jpgdec_alloc_task() local
249 struct jpgdec_task *task = to_jpgdec_task(mpp_task); jpgdec_run() local
280 struct jpgdec_task *task = to_jpgdec_task(mpp_task); jpgdec_finish() local
317 struct jpgdec_task *task = to_jpgdec_task(mpp_task); jpgdec_result() local
334 struct jpgdec_task *task = to_jpgdec_task(mpp_task); jpgdec_free_task() local
437 struct jpgdec_task *task = to_jpgdec_task(mpp_task); jpgdec_set_freq() local
467 struct jpgdec_task *task = NULL; jpgdec_isr() local
[all...]
H A Dmpp_vepu1.c66 #define to_vepu_task(task) container_of(task, struct vepu_task, mpp_task)
77 /* req for current task */
145 static int vepu_process_reg_fd(struct mpp_session *session, struct vepu_task *task, struct mpp_task_msgs *msgs) in vepu_process_reg_fd() argument
148 int fmt = VEPU1_GET_FORMAT(task->reg[VEPU1_REG_ENC_EN_INDEX]); in vepu_process_reg_fd()
149 ret = mpp_translate_reg_address(session, &task->mpp_task, fmt, task->reg, &task->off_inf); in vepu_process_reg_fd()
153 mpp_translate_reg_offset_info(&task->mpp_task, &task in vepu_process_reg_fd()
157 vepu_extract_task_msg(struct vepu_task *task, struct mpp_task_msgs *msgs) vepu_extract_task_msg() argument
210 struct vepu_task *task = NULL; vepu_alloc_task() local
254 struct vepu_task *task = to_vepu_task(mpp_task); vepu_run() local
298 struct vepu_task *task = NULL; vepu_isr() local
324 struct vepu_task *task = to_vepu_task(mpp_task); vepu_finish() local
347 struct vepu_task *task = to_vepu_task(mpp_task); vepu_result() local
363 struct vepu_task *task = to_vepu_task(mpp_task); vepu_free_task() local
612 struct vepu_task *task = to_vepu_task(mpp_task); vepu_set_freq() local
[all...]
H A Dmpp_vdpu1.c88 #define to_vdpu_task(task) container_of(task, struct vdpu_task, mpp_task)
107 /* req for current task */
222 static int vdpu_process_reg_fd(struct mpp_session *session, struct vdpu_task *task, struct mpp_task_msgs *msgs) in vdpu_process_reg_fd() argument
225 int fmt = VDPU1_GET_FORMAT(task->reg[VDPU1_REG_SYS_CTRL_INDEX]); in vdpu_process_reg_fd()
227 ret = mpp_translate_reg_address(session, &task->mpp_task, fmt, task->reg, &task->off_inf); in vdpu_process_reg_fd()
252 fd = task->reg[idx]; in vdpu_process_reg_fd()
255 fd = task in vdpu_process_reg_fd()
274 vdpu_extract_task_msg(struct vdpu_task *task, struct mpp_task_msgs *msgs) vdpu_extract_task_msg() argument
330 struct vdpu_task *task = NULL; vdpu_alloc_task() local
380 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_run() local
413 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_finish() local
441 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_result() local
458 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_free_task() local
561 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_3288_get_freq() local
574 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_3368_get_freq() local
587 struct vdpu_task *task = to_vdpu_task(mpp_task); vdpu_set_freq() local
620 struct vdpu_task *task = NULL; vdpu_isr() local
[all...]
H A Dmpp_rkvdec2.c87 static int rkvdec2_extract_task_msg(struct mpp_session *session, struct rkvdec2_task *task, struct mpp_task_msgs *msgs) in rkvdec2_extract_task_msg() argument
92 struct mpp_hw_info *hw_info = task->mpp_task.hw_info; in rkvdec2_extract_task_msg()
106 ret = mpp_check_req(req, 0, sizeof(task->reg), off_s, off_e); in rkvdec2_extract_task_msg()
110 if (copy_from_user((u8 *)task->reg + req->offset, req->data, req->size)) { in rkvdec2_extract_task_msg()
114 memcpy(&task->w_reqs[task->w_req_cnt++], req, sizeof(*req)); in rkvdec2_extract_task_msg()
123 max_size = sizeof(task->reg_sel); in rkvdec2_extract_task_msg()
126 max_size = sizeof(task->reg); in rkvdec2_extract_task_msg()
134 memcpy(&task->r_reqs[task in rkvdec2_extract_task_msg()
156 mpp_set_rcbbuf(struct mpp_dev *mpp, struct mpp_session *session, struct mpp_task *task) mpp_set_rcbbuf() argument
192 rkvdec2_task_init(struct mpp_dev *mpp, struct mpp_session *session, struct rkvdec2_task *task, struct mpp_task_msgs *msgs) rkvdec2_task_init() argument
251 struct rkvdec2_task *task; rkvdec2_alloc_task() local
272 struct rkvdec2_task *task = NULL; rkvdec2_rk3568_alloc_task() local
289 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_run() local
335 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_rk3568_run() local
370 struct rkvdec2_task *task = NULL; rkvdec2_isr() local
430 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_finish() local
469 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_result() local
494 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_free_task() local
763 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_get_freq() local
795 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_set_freq() local
[all...]
H A Dmpp_rkvdec.c117 #define to_rkvdec_task(task) container_of(task, struct rkvdec_task, mpp_task)
140 /* req for current task */
519 * on current decoding task. Then kernel driver can only translate the first
522 static int fill_scaling_list_pps(struct rkvdec_task *task, int fd, int offset, int count, int pps_info_size, in fill_scaling_list_pps() argument
559 mem_region = mpp_task_attach_fd(&task->mpp_task, scaling_fd); in fill_scaling_list_pps()
584 static int rkvdec_process_scl_fd(struct mpp_session *session, struct rkvdec_task *task, struct mpp_task_msgs *msgs) in rkvdec_process_scl_fd() argument
590 u32 fmt = RKVDEC_GET_FORMAT(task->reg[RKVDEC_REG_SYS_CTRL_INDEX]); in rkvdec_process_scl_fd()
593 pps_fd = task->reg[idx]; in rkvdec_process_scl_fd()
596 pps_fd = task in rkvdec_process_scl_fd()
648 rkvdec_process_reg_fd(struct mpp_session *session, struct rkvdec_task *task, struct mpp_task_msgs *msgs) rkvdec_process_reg_fd() argument
699 rkvdec_extract_task_msg(struct rkvdec_task *task, struct mpp_task_msgs *msgs) rkvdec_extract_task_msg() argument
756 struct rkvdec_task *task = NULL; rkvdec_alloc_task() local
820 struct rkvdec_task *task = to_rkvdec_task(out_task); rkvdec_prepare_with_reset() local
841 struct rkvdec_task *task = NULL; rkvdec_run() local
891 struct rkvdec_task *task = NULL; rkvdec_3328_run() local
917 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_1126_run() local
941 struct rkvdec_task *task = NULL; rkvdec_isr() local
977 struct rkvdec_task *task = NULL; rkvdec_3328_isr() local
1016 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_finish() local
1053 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_finish_with_record_info() local
1066 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_result() local
1083 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_free_task() local
1399 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_get_freq() local
1432 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_3328_get_freq() local
1458 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_set_freq() local
1471 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_3368_set_freq() local
1490 struct rkvdec_task *task = to_rkvdec_task(mpp_task); rkvdec_3328_set_freq() local
[all...]
H A Dmpp_rkvenc.c158 /* req for current task */
245 static int rkvenc_extract_task_msg(struct rkvenc_task *task, struct mpp_task_msgs *msgs) in rkvenc_extract_task_msg() argument
264 max_size = sizeof(task->reg_l2); in rkvenc_extract_task_msg()
265 dst = (u8 *)task->reg_l2; in rkvenc_extract_task_msg()
268 max_size = sizeof(task->reg); in rkvenc_extract_task_msg()
269 dst = (u8 *)task->reg; in rkvenc_extract_task_msg()
280 memcpy(&task->w_reqs[task->w_req_cnt++], req, sizeof(*req)); in rkvenc_extract_task_msg()
288 max_size = sizeof(task->reg_l2); in rkvenc_extract_task_msg()
291 max_size = sizeof(task in rkvenc_extract_task_msg()
316 struct rkvenc_task *task = NULL; rkvenc_alloc_task() local
410 struct rkvenc_task *task = to_rkvenc_task(mpp_task); rkvenc_run() local
483 struct rkvenc_task *task = NULL; rkvenc_isr() local
525 struct rkvenc_task *task = to_rkvenc_task(mpp_task); rkvenc_finish() local
563 struct rkvenc_task *task = to_rkvenc_task(mpp_task); rkvenc_result() local
600 struct rkvenc_task *task = to_rkvenc_task(mpp_task); rkvenc_free_task() local
1275 struct rkvenc_task *task = to_rkvenc_task(mpp_task); rkvenc_get_freq() local
1307 struct rkvenc_task *task = to_rkvenc_task(mpp_task); rkvenc_set_freq() local
[all...]
H A Dmpp_rkvdec2_link.c31 /* start idx of task register */
33 /* number of task register */
202 mpp_err("task write %d read %d send %d recv %d run %d decoded %d total %d\n", dev->task_write, dev->task_read, in rkvdec_link_counter()
314 struct rkvdec2_task *task; in rkvdec_link_write_task_to_slot() local
319 mpp_err("send invalid task index %d\n", idx); in rkvdec_link_write_task_to_slot()
326 task = to_rkvdec2_task(mpp_task); in rkvdec_link_write_task_to_slot()
333 if (task->need_hack) { in rkvdec_link_write_task_to_slot()
351 memcpy(&tb_reg[off], &task->reg[s], n * sizeof(u32)); in rkvdec_link_write_task_to_slot()
367 task->slot_idx = slot_idx; in rkvdec_link_write_task_to_slot()
370 mpp_dbg_link_flow("slot %d write task in rkvdec_link_write_task_to_slot()
481 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_link_finish() local
514 struct rkvdec2_task *task = NULL; rkvdec_link_isr_recv_task() local
944 struct mpp_task *task = container_of(ref, struct mpp_task, ref); rkvdec2_link_free_task() local
1039 struct mpp_task *task = container_of(to_delayed_work(work_s), struct mpp_task, timeout_work); rkvdec2_link_timeout_proc() local
1063 struct mpp_task *task, *n; mpp_taskqueue_scan_pending_abort_task() local
1086 struct mpp_task *task; rkvdec2_link_try_dequeue() local
1132 mpp_task_queue(struct mpp_dev *mpp, struct mpp_task *task) mpp_task_queue() argument
1174 struct mpp_task *task = NULL; mpp_session_get_pending_task() local
1183 task_is_done(struct mpp_task *task) task_is_done() argument
1188 mpp_session_pop_pending(struct mpp_session *session, struct mpp_task *task) mpp_session_pop_pending() argument
1198 mpp_session_pop_done(struct mpp_session *session, struct mpp_task *task) mpp_session_pop_done() argument
1208 struct mpp_task *task = NULL; rkvdec2_link_process_task() local
1248 struct rkvdec2_task *task; rkvdec2_link_wait_result() local
1279 struct mpp_task *task; rkvdec2_link_worker() local
1474 struct mpp_task *task = container_of(to_delayed_work(work_s), struct mpp_task, timeout_work); rkvdec2_ccu_link_timeout_work() local
1622 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_soft_ccu_dequeue() local
1688 struct rkvdec2_task *task; rkvdec2_ccu_alloc_task() local
1734 struct rkvdec2_task *task = to_rkvdec2_task(mpp_task); rkvdec2_soft_ccu_enqueue() local
[all...]
/device/soc/rockchip/rk3399/hardware/mpp/include/
H A Dmpp_task.h22 * Advanced task flow
23 * Advanced task flow introduces three concepts: port, task and item
27 * Port work like a queue. task will be dequeue from or enqueue to one port.
28 * On input side user will dequeue task from input port, setup task and enqueue task
30 * On output side user will dequeue task from output port, get the information from
31 * and then enqueue task back to output port.
35 * If mpp is work in sync mode on task enqueu
[all...]
/device/soc/rockchip/rk3568/hardware/mpp/include/
H A Dmpp_task.h22 * Advanced task flow
23 * Advanced task flow introduces three concepts: port, task and item
27 * Port work like a queue. task will be dequeue from or enqueue to one port.
28 * On input side user will dequeue task from input port, setup task and enqueue task
30 * On output side user will dequeue task from output port, get the information from
31 * and then enqueue task back to output port.
35 * If mpp is work in sync mode on task enqueu
[all...]
/device/soc/rockchip/rk3588/hardware/mpp/include/
H A Dmpp_task.h23 * Advanced task flow
24 * Advanced task flow introduces three concepts: port, task and item
28 * Port work like a queue. task will be dequeue from or enqueue to one port.
29 * On input side user will dequeue task from input port, setup task and enqueue task
31 * On output side user will dequeue task from output port, get the information from
32 * and then enqueue task back to output port.
36 * If mpp is work in sync mode on task enqueu
[all...]
/device/soc/rockchip/common/hardware/mpp/include/
H A Dmpp_task.h22 * Advanced task flow
23 * Advanced task flow introduces three concepts: port, task and item
27 * Port work like a queue. task will be dequeue from or enqueue to one port.
28 * On input side user will dequeue task from input port, setup task and enqueue task
30 * On output side user will dequeue task from output port, get the information from
31 * and then enqueue task back to output port.
35 * If mpp is work in sync mode on task enqueu
[all...]
/device/soc/rockchip/common/sdk_linux/include/linux/sched/
H A Dsignal.h9 #include <linux/sched/task.h>
18 * Types defining task->signal and task->sighand and APIs using them:
273 extern int dequeue_signal(struct task_struct *task, sigset_t *mask, kernel_siginfo_t *info);
277 struct task_struct *task = current; in kernel_dequeue_signal() local
281 spin_lock_irq(&task->sighand->siglock); in kernel_dequeue_signal()
282 ret = dequeue_signal(task, &task->blocked, &_info); in kernel_dequeue_signal()
283 spin_unlock_irq(&task->sighand->siglock); in kernel_dequeue_signal()
407 * Reevaluate whether the task ha
451 clear_tsk_restore_sigmask(struct task_struct *task) clear_tsk_restore_sigmask() argument
460 test_tsk_restore_sigmask(struct task_struct *task) test_tsk_restore_sigmask() argument
480 clear_tsk_restore_sigmask(struct task_struct *task) clear_tsk_restore_sigmask() argument
492 test_tsk_restore_sigmask(struct task_struct *task) test_tsk_restore_sigmask() argument
630 task_pid_type(struct task_struct *task, enum pid_type type) task_pid_type() argument
641 task_tgid(struct task_struct *task) task_tgid() argument
651 task_pgrp(struct task_struct *task) task_pgrp() argument
656 task_session(struct task_struct *task) task_session() argument
661 get_nr_threads(struct task_struct *task) get_nr_threads() argument
692 lock_task_sighand(struct task_struct *task, unsigned long *flags) lock_task_sighand() argument
701 unlock_task_sighand(struct task_struct *task, unsigned long *flags) unlock_task_sighand() argument
706 task_rlimit(const struct task_struct *task, unsigned int limit) task_rlimit() argument
711 task_rlimit_max(const struct task_struct *task, unsigned int limit) task_rlimit_max() argument
[all...]
/device/soc/rockchip/rk3588/kernel/include/trace/hooks/
H A Dcreds.h17 TP_PROTO(const struct task_struct *task, const struct cred *new),
18 TP_ARGS(task, new));
21 TP_PROTO(const struct task_struct *task, const struct cred *cred),
22 TP_ARGS(task, cred));
25 TP_PROTO(const struct task_struct *task, const struct cred *new),
26 TP_ARGS(task, new));
29 TP_PROTO(const struct task_struct *task, const struct cred *old),
30 TP_ARGS(task, old));
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/osal/
H A Dosal_task.c60 p->task = k; in osal_kthread_create()
65 void osal_kthread_set_priority(osal_task *task, osal_task_priority priority) in osal_kthread_set_priority() argument
84 sched_setscheduler(task->task, SCHED_RR, &param); in osal_kthread_set_priority()
89 void osal_kthread_set_affinity(osal_task *task, int cpu_mask) in osal_kthread_set_affinity() argument
93 if (task == NULL) { in osal_kthread_set_affinity()
123 void osal_kthread_destroy(osal_task *task, unsigned int stop_flag) in osal_kthread_destroy() argument
125 if (task == NULL) { in osal_kthread_destroy()
131 kthread_stop ((struct task_struct *)(task->task)); in osal_kthread_destroy()
[all...]
/device/soc/rockchip/common/sdk_linux/kernel/cgroup/
H A Dlegacy_freezer.c55 static inline struct freezer *task_freezer(struct task_struct *task) in task_freezer() argument
57 return css_freezer(task_css(task, freezer_cgrp_id)); in task_freezer()
65 bool cgroup_freezing(struct task_struct *task) in cgroup_freezing() argument
70 ret = task_freezer(task)->state & CGROUP_FREEZING; in cgroup_freezing()
157 * Freezer state changes and task migration are synchronized via
163 struct task_struct *task; in freezer_attach() local
170 * For simplicity, when migrating any task to a FROZEN cgroup, we in freezer_attach()
178 cgroup_taskset_for_each(task, new_css, tset) in freezer_attach()
183 __thaw_task(task); in freezer_attach()
185 freeze_task(task); in freezer_attach()
207 freezer_fork(struct task_struct *task) freezer_fork() argument
255 struct task_struct *task; update_if_frozen() local
330 struct task_struct *task; freeze_cgroup() local
342 struct task_struct *task; unfreeze_cgroup() local
[all...]

Completed in 24 milliseconds

1234