Home
last modified time | relevance | path

Searched refs:mpp_assert (Results 1 – 25 of 146) sorted by relevance

123456

/rockchip-linux_mpp/mpp/base/test/
H A Dmpp_task_test.c25 mpp_assert(ret >= 0); in task_input()
28 mpp_assert(!ret); in task_input()
29 mpp_assert(task); in task_input()
32 mpp_assert(!ret); in task_input()
53 mpp_assert(ret >= 0); in task_output()
56 mpp_assert(!ret); in task_output()
57 mpp_assert(task); in task_output()
60 mpp_assert(!ret); in task_output()
79 mpp_assert(ret >= 0); in task_in_and_out()
82 mpp_assert(!ret); in task_in_and_out()
[all …]
/rockchip-linux_mpp/osal/allocator/
H A Dallocator_std.c66 mpp_assert(ctx); in allocator_std_import()
67 mpp_assert(info->ptr); in allocator_std_import()
68 mpp_assert(info->size); in allocator_std_import()
77 mpp_assert(info->ptr); in allocator_std_release()
78 mpp_assert(info->size); in allocator_std_release()
88 mpp_assert(ctx); in allocator_std_mmap()
89 mpp_assert(info->ptr); in allocator_std_mmap()
90 mpp_assert(info->size); in allocator_std_mmap()
H A Dallocator_ext_dma.c66 mpp_assert(p); in allocator_ext_dma_import()
67 mpp_assert(info->size); in allocator_ext_dma_import()
82 mpp_assert(ctx); in allocator_ext_dma_mmap()
83 mpp_assert(info->size); in allocator_ext_dma_mmap()
84 mpp_assert(info->fd >= 0); in allocator_ext_dma_mmap()
108 mpp_assert(ctx); in allocator_ext_dma_release()
109 mpp_assert(info->size); in allocator_ext_dma_release()
/rockchip-linux_mpp/osal/driver/
H A Dmpp_server.c43 mpp_assert(count <= size); \
51 mpp_assert(count >= 0); \
192 mpp_assert(list_empty(&batch->link_tasks)); in batch_reset()
206 mpp_assert(batch); in batch_add()
229 mpp_assert(batch); in batch_del()
230 mpp_assert(batch->fill_cnt == 0); in batch_del()
231 mpp_assert(list_empty(&batch->link_tasks)); in batch_del()
244 mpp_assert(batch->send_req_cnt); in batch_send()
282 mpp_assert(batch->wait_req_cnt); in process_task()
291 mpp_assert(batch_slot_id < server->max_task_in_batch); in process_task()
[all …]
H A Dmpp_service.c313 mpp_assert(p->cap); in mpp_service_init()
381 mpp_assert(pos->lock_buf && pos->lock_dev); in mpp_service_deinit()
382 mpp_assert(pos->lock_dev == &p->lock_bufs); in mpp_service_deinit()
662 mpp_assert(node->buffer); in mpp_service_attach_fd()
663 mpp_assert(node->lock_buf); in mpp_service_attach_fd()
664 mpp_assert(node->buf_fd >= 0); in mpp_service_attach_fd()
688 mpp_assert(node->buffer); in mpp_service_detach_fd()
689 mpp_assert(node->lock_buf); in mpp_service_detach_fd()
690 mpp_assert(node->buf_fd >= 0); in mpp_service_detach_fd()
691 mpp_assert(node->dev_fd >= 0); in mpp_service_detach_fd()
[all …]
/rockchip-linux_mpp/mpp/codec/rc/
H A Drc_base.c85 mpp_assert(p); in mpp_data_preset_v2()
90 mpp_assert(p->pos_r < p->size); in mpp_data_preset_v2()
115 mpp_assert(p); in mpp_data_update_v2()
120 mpp_assert(p->pos_r < p->size); in mpp_data_update_v2()
136 mpp_assert(p->pos_w < p->size); in mpp_data_get_pre_val_v2()
137 mpp_assert(idx < p->size); in mpp_data_get_pre_val_v2()
143 mpp_assert(p->pos_r == p->size); in mpp_data_get_pre_val_v2()
148 mpp_assert(pos < p->size); in mpp_data_get_pre_val_v2()
169 mpp_assert(len <= p->size); in mpp_data_sum_with_ratio_v2()
H A Drc.c55 mpp_assert(api); in rc_init()
142 mpp_assert(cfg->fps_in_denom >= 1); in rc_frm_check_drop()
143 mpp_assert(cfg->fps_out_denom >= 1); in rc_frm_check_drop()
144 mpp_assert(rate_in >= rate_out); in rc_frm_check_drop()
/rockchip-linux_mpp/mpp/hal/vpu/h263d/
H A Dhal_h263d_vdpu2.c57 mpp_assert(pp); in vpu2_h263d_setup_regs_by_syntax()
58 mpp_assert(stream_length); in vpu2_h263d_setup_regs_by_syntax()
59 mpp_assert(stream_used); in vpu2_h263d_setup_regs_by_syntax()
129 mpp_assert(hal); in hal_vpu2_h263d_init()
165 mpp_assert(hal); in hal_vpu2_h263d_deinit()
190 mpp_assert(task->valid); in hal_vpu2_h263d_gen_regs()
191 mpp_assert(task->input >= 0); in hal_vpu2_h263d_gen_regs()
192 mpp_assert(task->output >= 0); in hal_vpu2_h263d_gen_regs()
217 mpp_assert(buf_pkt); in hal_vpu2_h263d_gen_regs()
H A Dhal_h263d_vdpu1.c57 mpp_assert(pp); in vpu1_h263d_setup_regs_by_syntax()
58 mpp_assert(stream_length); in vpu1_h263d_setup_regs_by_syntax()
59 mpp_assert(stream_used); in vpu1_h263d_setup_regs_by_syntax()
128 mpp_assert(hal); in hal_vpu1_h263d_init()
164 mpp_assert(hal); in hal_vpu1_h263d_deinit()
189 mpp_assert(task->valid); in hal_vpu1_h263d_gen_regs()
190 mpp_assert(task->input >= 0); in hal_vpu1_h263d_gen_regs()
191 mpp_assert(task->output >= 0); in hal_vpu1_h263d_gen_regs()
216 mpp_assert(buf_pkt); in hal_vpu1_h263d_gen_regs()
/rockchip-linux_mpp/mpp/
H A Dmpp.c48 mpp_assert(frm); in list_wraper_packet()
482 mpp_assert(mpp->mEosTask); in mpp_put_packet()
555 mpp_assert(mpp->mInputTask); in mpp_put_packet()
717 mpp_assert(ret > 0); in mpp_decode()
784 mpp_assert(mpp->mInputTask); in mpp_put_frame()
846 mpp_assert(mpp->mInputTask); in mpp_put_frame()
851 mpp_assert(frm_out == frame); in mpp_put_frame()
897 mpp_assert(task); in mpp_get_packet()
1139 mpp_assert(mode == MPP_IO_MODE_NORMAL || mode == MPP_IO_MODE_TASK); in mpp_set_io_mode()
1149 mpp_assert(mpp->mIoMode < MPP_IO_MODE_BUTT); in mpp_set_io_mode()
[all …]
/rockchip-linux_mpp/mpp/codec/enc/h264/
H A Dh264e_dpb.c177 mpp_assert(p->is_non_ref == frm->is_non_ref); in find_cpb_frame()
178 mpp_assert(p->is_lt_ref == frm->is_lt_ref); in find_cpb_frame()
179 mpp_assert(p->lt_idx == frm->lt_idx); in find_cpb_frame()
180 mpp_assert(p->temporal_id == frm->temporal_id); in find_cpb_frame()
252 mpp_assert(!frm->is_non_ref); in h264e_dpb_build_list()
313 mpp_assert(dpb->dpb_size >= st_size + lt_size); in h264e_dpb_build_list()
339 mpp_assert(!refr->status.is_non_ref); in h264e_dpb_build_list()
471 mpp_assert(dpb->used_size == used_size); in h264e_dpb_proc()
507 mpp_assert(p->on_used); in h264e_dpb_proc()
508 mpp_assert(p->status.valid); in h264e_dpb_proc()
[all …]
/rockchip-linux_mpp/mpp/base/
H A Dmpp_cluster.c213 mpp_assert(!queue->count); in mpp_cluster_queue_deinit()
214 mpp_assert(list_empty(&queue->list)); in mpp_cluster_queue_deinit()
283 mpp_assert(list_empty(&task->list_sched)); in mpp_node_task_schedule_f()
321 mpp_assert(node->attached == 0); in mpp_node_task_detach()
349 mpp_assert(p->attached == 0); in mpp_node_deinit()
402 mpp_assert(list_empty(&p->list_task)); in cluster_worker_deinit()
403 mpp_assert(p->work_count == 0); in cluster_worker_deinit()
432 mpp_assert(queue->count == 0); in cluster_worker_get_task()
438 mpp_assert(queue->count); in cluster_worker_get_task()
449 mpp_assert(old_st & NODE_WAIT); in cluster_worker_get_task()
[all …]
H A Dmpp_task_impl.c148 mpp_assert(!list_empty(&curr->list)); in _mpp_port_poll()
155 mpp_assert(list_empty(&curr->list)); in _mpp_port_poll()
179 mpp_assert(!list_empty(&curr->list)); in _mpp_port_poll()
217 mpp_assert(task_impl->queue == (MppTaskQueue)queue); in _mpp_port_move()
269 mpp_assert(list_empty(&curr->list)); in _mpp_port_dequeue()
278 mpp_assert(!list_empty(&curr->list)); in _mpp_port_dequeue()
284 mpp_assert(curr->count >= 0); in _mpp_port_dequeue()
327 mpp_assert(task_impl->queue == (MppTaskQueue)queue); in _mpp_port_enqueue()
328 mpp_assert(task_impl->status == port_impl->next_on_dequeue); in _mpp_port_enqueue()
448 mpp_assert(impl->tasks == NULL); in mpp_task_queue_setup()
[all …]
H A Dmpp_bitwrite.c75 mpp_assert(val < (1 << len)); in mpp_writer_put_raw_bits()
76 mpp_assert(len < 25); in mpp_writer_put_raw_bits()
119 mpp_assert(val < (1 << len)); in mpp_writer_put_bits()
120 mpp_assert(len < 25); in mpp_writer_put_bits()
H A Dmpp_buffer.c39 mpp_assert(p); in mpp_buffer_import_with_tag()
66 mpp_assert(group); in mpp_buffer_get_with_tag()
134 mpp_assert(src != NULL); in mpp_buffer_read_with_caller()
159 mpp_assert(dst != NULL); in mpp_buffer_write_with_caller()
177 mpp_assert(p->info.ptr != NULL); in mpp_buffer_get_ptr_with_caller()
193 mpp_assert(fd >= 0); in mpp_buffer_get_fd_with_caller()
445 mpp_assert(p->mode == MPP_BUFFER_INTERNAL); in mpp_buffer_group_limit_config()
H A Dmpp_buffer_impl.c223 mpp_assert(logs->log_read == logs->log_write); in buf_logs_dump()
297 mpp_assert(group); in service_put_buffer()
302 mpp_assert(buffer->ref_count == 0); in service_put_buffer()
332 mpp_assert(list_empty(&buffer->list_maps)); in service_put_buffer()
358 mpp_assert(srv_status); in service_put_buffer()
367 mpp_assert(dev); in service_put_buffer()
404 mpp_assert(group); in inc_buffer_ref()
596 mpp_assert(group); in mpp_buffer_ref_dec()
630 mpp_assert(group); in mpp_buffer_discard()
809 mpp_assert(caller); in mpp_buffer_group_init()
[all …]
/rockchip-linux_mpp/mpp/hal/vpu/mpg4d/
H A Dhal_m4vd_vdpu2.c66 mpp_assert(pp); in vdpu2_mpg4d_setup_regs_by_syntax()
67 mpp_assert(qm); in vdpu2_mpg4d_setup_regs_by_syntax()
68 mpp_assert(stream_length); in vdpu2_mpg4d_setup_regs_by_syntax()
69 mpp_assert(stream_used); in vdpu2_mpg4d_setup_regs_by_syntax()
143 mpp_assert(ctx->fd_ref1 >= 0); in vdpu2_mpg4d_setup_regs_by_syntax()
152 mpp_assert(ctx->fd_ref0 >= 0); in vdpu2_mpg4d_setup_regs_by_syntax()
232 mpp_assert(hal); in vdpu2_mpg4d_init()
306 mpp_assert(hal); in vdpu2_mpg4d_deinit()
347 mpp_assert(task->valid); in vdpu2_mpg4d_gen_regs()
348 mpp_assert(task->input >= 0); in vdpu2_mpg4d_gen_regs()
[all …]
H A Dhal_m4vd_vdpu1.c66 mpp_assert(pp); in vdpu1_mpg4d_setup_regs_by_syntax()
67 mpp_assert(qm); in vdpu1_mpg4d_setup_regs_by_syntax()
68 mpp_assert(stream_length); in vdpu1_mpg4d_setup_regs_by_syntax()
69 mpp_assert(stream_used); in vdpu1_mpg4d_setup_regs_by_syntax()
145 mpp_assert(ctx->fd_ref1 >= 0); in vdpu1_mpg4d_setup_regs_by_syntax()
154 mpp_assert(ctx->fd_ref0 >= 0); in vdpu1_mpg4d_setup_regs_by_syntax()
234 mpp_assert(hal); in vdpu1_mpg4d_init()
308 mpp_assert(hal); in vdpu1_mpg4d_deinit()
349 mpp_assert(task->valid); in vdpu1_mpg4d_gen_regs()
350 mpp_assert(task->input >= 0); in vdpu1_mpg4d_gen_regs()
[all …]
/rockchip-linux_mpp/mpp/legacy/
H A Dvpu_api_mlvec.cpp56 mpp_assert(sizeof(VpuApiMlvecStaticCfg) == sizeof(EncParameter_t)); in vpu_api_mlvec_init()
140 mpp_assert(mpp_ctx); in vpu_api_mlvec_set_st_cfg()
141 mpp_assert(mpi); in vpu_api_mlvec_set_st_cfg()
142 mpp_assert(enc_cfg); in vpu_api_mlvec_set_st_cfg()
245 mpp_assert(mpp_ctx); in vpu_api_mlvec_set_dy_max_tid()
246 mpp_assert(mpi); in vpu_api_mlvec_set_dy_max_tid()
247 mpp_assert(enc_cfg); in vpu_api_mlvec_set_dy_max_tid()
406 mpp_assert(ltr_frames <= MPP_ENC_MAX_LT_REF_NUM); in vpu_api_mlvec_set_dy_max_tid()
417 mpp_assert(st_cfg_cnt); in vpu_api_mlvec_set_dy_max_tid()
/rockchip-linux_mpp/osal/
H A Dmpp_thread.c366 mpp_assert(thd->ctx.thd == thd); in mpp_sthd_deinit()
367 mpp_assert(thd->status < MPP_STHD_RUNNING); in mpp_sthd_deinit()
383 mpp_assert(thd->ctx.thd == thd); in mpp_sthd_create()
384 mpp_assert(thd->status < MPP_STHD_RUNNING); in mpp_sthd_create()
433 mpp_assert(impl); in mpp_sthd_put()
434 mpp_assert(impl->ctx.thd == impl); in mpp_sthd_put()
435 mpp_assert(impl->status == MPP_STHD_UNINITED || impl->status == MPP_STHD_READY); in mpp_sthd_put()
675 mpp_assert(impl); in mpp_sthd_grp_put()
676 mpp_assert(impl->status == MPP_STHD_UNINITED || impl->status == MPP_STHD_READY); in mpp_sthd_grp_put()
692 mpp_assert(impl); in mpp_sthd_grp_setup()
[all …]
/rockchip-linux_mpp/mpp/hal/
H A Dhal_task.c127 mpp_assert(task->status == status); in hal_task_get_hnd()
178 mpp_assert(group); in hal_task_hnd_set_status()
179 mpp_assert(impl->index < group->task_count); in hal_task_hnd_set_status()
202 mpp_assert(impl->index < group->task_count); in hal_task_hnd_set_info()
221 mpp_assert(impl->index < group->task_count); in hal_task_hnd_get_info()
240 mpp_assert(impl->index < group->task_count); in hal_task_hnd_get_data()
/rockchip-linux_mpp/utils/
H A Dmpi_dec_utils.c86 mpp_assert(impl); in add_new_slot()
100 mpp_assert(impl->slots); in add_new_slot()
101 mpp_assert(impl->slot_cnt < impl->slot_max); in add_new_slot()
156 mpp_assert(hw_buf); in read_jpeg_file()
159 mpp_assert(slot->data); in read_jpeg_file()
162 mpp_assert(read_size == buf_size); in read_jpeg_file()
225 mpp_assert(impl->group); in check_file_type()
275 mpp_assert(slot); in reader_read()
304 mpp_assert(slot); in reader_index_read()
330 mpp_assert(impl); in reader_init()
[all …]
/rockchip-linux_mpp/kmpp/base/test/
H A Dkmpp_frame_test.c39 mpp_assert(val == width); in main()
41 mpp_assert(val == height); in main()
/rockchip-linux_mpp/mpp/hal/common/
H A Dhal_bufs.c88 mpp_assert(impl->valid == 0); in hal_bufs_clear()
89 mpp_assert(impl->size_sum == 0); in hal_bufs_clear()
185 mpp_assert(impl->group); in hal_bufs_setup()
251 mpp_assert(buf); in hal_bufs_get_buf()
/rockchip-linux_mpp/mpp/codec/dec/h263/
H A Dh263d_parser.c156 mpp_assert(val == 1); in h263_parse_picture_header()
160 mpp_assert(val == 0); in h263_parse_picture_header()
328 mpp_assert(src_len); in mpp_h263_parser_split()
331 mpp_assert(dst_len >= 4); in mpp_h263_parser_split()
385 mpp_assert((RK_S32)mpp_packet_get_length(src) == (src_len - pos_frm_end)); in mpp_h263_parser_split()
509 mpp_assert(NULL == frame); in mpp_h263_parser_setup_hal_output()
555 mpp_assert(index >= 0); in mpp_h263_parser_update_dpb()

123456