| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/avs2/ |
| H A D | avs2d_dpb.c | 108 f->slot_idx = NO_VAL; in new_frame() 190 if (p->slot_idx == NO_VAL) { in recompute_cycle_order_index() 217 if (p->slot_idx == NO_VAL) { in compute_frame_order_index() 256 if (p && p->slot_idx != NO_VAL && !p->invisible && !p->is_output) { in is_outputable_frame() 311 if (p->slot_idx >= 0 && !p->invisible && !p->is_output) { in output_display_frame() 315 mpp_buf_slot_set_flag(p_dec->frame_slots, p->slot_idx, SLOT_QUEUE_USE); in output_display_frame() 316 mpp_buf_slot_enqueue(p_dec->frame_slots, p->slot_idx, QUEUE_DISPLAY); in output_display_frame() 317 avs2d_dbg_dpb("output display frame poi %d slot_idx %d, pts %lld", p->poi, p->slot_idx, in output_display_frame() 341 mpp_buf_slot_get_prop(p_dec->frame_slots, p->slot_idx, SLOT_BUFFER, &buffer); in dpb_remove_frame() 345 mpp_buf_slot_clr_flag(p_dec->frame_slots, p->slot_idx, SLOT_CODEC_USE); in dpb_remove_frame() [all …]
|
| H A D | avs2d_dpb.h | 31 Avs2dFrame_t* get_dpb_frm_by_slot_idx(Avs2dFrameMgr_t *mgr, RK_S32 slot_idx);
|
| H A D | avs2d_api.c | 298 if (!mgr->refs[i] || !mgr->refs[i]->frame || mgr->refs[i]->slot_idx < 0) in avs2d_callback() 301 mpp_buf_slot_get_prop(p_dec->frame_slots, mgr->refs[i]->slot_idx, SLOT_FRAME_PTR, &ref_frm); in avs2d_callback()
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/avs/ |
| H A D | avsd_parse.c | 351 p->slot_idx = -1; in reset_one_save() 381 if (p && p->slot_idx >= 0) { in set_frame_unref() 382 mpp_buf_slot_clr_flag(pdec->frame_slots, p->slot_idx, SLOT_CODEC_USE); in set_frame_unref() 392 if (p && p->slot_idx >= 0 && !p->had_display) { in set_frame_output() 393 mpp_buf_slot_set_flag(p_dec->frame_slots, p->slot_idx, SLOT_QUEUE_USE); in set_frame_output() 394 mpp_buf_slot_enqueue(p_dec->frame_slots, p->slot_idx, QUEUE_DISPLAY); in set_frame_output() 429 frm->slot_idx = -1; in avsd_reset_parameters() 444 RK_S32 slot_idx = -1; in avsd_set_dpb() local 448 mpp_buf_slot_get_unused(p_dec->frame_slots, &slot_idx); in avsd_set_dpb() 449 if (slot_idx < 0) { in avsd_set_dpb() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/h263/ |
| H A D | h263d_parser.c | 60 RK_S32 slot_idx; member 118 pp->wDecodedPictureIndex = hdr_curr->slot_idx; in h263d_fill_picture_parameters() 119 pp->wForwardRefPictureIndex = hdr_ref0->slot_idx; in h263d_fill_picture_parameters() 235 p->hdr_curr.slot_idx = H263_INVALID_VOP; in mpp_h263_parser_init() 236 p->hdr_ref0.slot_idx = H263_INVALID_VOP; in mpp_h263_parser_init() 268 RK_S32 index = hdr_curr->slot_idx; in mpp_h263_parser_flush() 289 RK_S32 index = hdr_curr->slot_idx; in mpp_h263_parser_reset() 295 hdr_curr->slot_idx = -1; in mpp_h263_parser_reset() 298 index = hdr_ref0->slot_idx; in mpp_h263_parser_reset() 301 hdr_ref0->slot_idx = -1; in mpp_h263_parser_reset() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/gasket/ |
| H A D | gasket_page_table.c | 645 uint slot_idx, remain, len; in gasket_unmap_extended_pages() local 650 slot_idx = gasket_extended_lvl1_page_idx(pg_tbl, dev_addr); in gasket_unmap_extended_pages() 656 len = min(remain, GASKET_PAGES_PER_SUBTABLE - slot_idx); in gasket_unmap_extended_pages() 662 pte->sublevel + slot_idx, in gasket_unmap_extended_pages() 663 slot_base + slot_idx, len, 0); in gasket_unmap_extended_pages() 667 slot_idx = 0; in gasket_unmap_extended_pages() 822 uint slot_idx = gasket_simple_page_idx(pg_tbl, dev_addr); in gasket_map_simple_pages() local 828 slot_idx, dev_addr, slot_idx + num_pages - 1); in gasket_map_simple_pages() 832 ret = gasket_perform_mapping(pg_tbl, pg_tbl->entries + slot_idx, in gasket_map_simple_pages() 833 pg_tbl->base_slot + slot_idx, host_addr, in gasket_map_simple_pages() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/backend/gpu/ |
| H A D | mali_kbase_model_dummy.c | 1220 unsigned int slot_idx = (addr >> 7) & 0xf; local 1222 KBASE_DEBUG_ASSERT(slot_idx < NUM_SLOTS); 1223 if (addr == JOB_SLOT_REG(slot_idx, JS_HEAD_NEXT_LO)) { 1228 if (addr == JOB_SLOT_REG(slot_idx, JS_HEAD_NEXT_HI)) { 1233 if (addr == JOB_SLOT_REG(slot_idx, JS_COMMAND_NEXT) && 1236 KBASE_DEBUG_ASSERT(!dummy->slots[slot_idx].job_active || 1237 !dummy->slots[slot_idx].job_queued); 1238 if ((dummy->slots[slot_idx].job_active) || 1240 (1 << (slot_idx + 16)))) { 1243 dummy->slots[slot_idx].job_queued = 1; [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/mpg4/ |
| H A D | mpg4d_parser.c | 144 RK_S32 slot_idx; member 440 header->slot_idx = -1; in init_mpg4_header() 856 (p->hdr_ref0.slot_idx == -1 || p->hdr_ref1.slot_idx == -1)) { in mpeg4_parse_vop_header() 956 pp->wDecodedPictureIndex = hdr_curr->slot_idx; in mpg4d_fill_picture_parameters() 957 pp->wForwardRefPictureIndex = hdr_ref0->slot_idx; in mpg4d_fill_picture_parameters() 958 pp->wBackwardRefPictureIndex = hdr_ref1->slot_idx; in mpg4d_fill_picture_parameters() 1125 RK_S32 index = hdr_ref0->slot_idx; in mpp_mpg4_parser_flush() 1146 RK_S32 index = hdr_ref0->slot_idx; in mpp_mpg4_parser_reset() 1157 hdr_ref0->slot_idx = -1; in mpp_mpg4_parser_reset() 1160 index = hdr_ref1->slot_idx; in mpp_mpg4_parser_reset() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/h264/ |
| H A D | h264d_init.c | 408 mpp_buf_slot_get_unused(p_Vid->p_Dec->frame_slots, &p_mark[idx].slot_idx); in dpb_mark_malloc() 409 if (p_mark[idx].slot_idx < 0) { in dpb_mark_malloc() 560 … mpp_buf_slot_set_prop(p_Dec->frame_slots, cur_mark->slot_idx, SLOT_FRAME, p_Dec->curframe); in dpb_mark_malloc() 561 … mpp_buf_slot_get_prop(p_Dec->frame_slots, cur_mark->slot_idx, SLOT_FRAME_PTR, &cur_mark->mframe); in dpb_mark_malloc() 567 if (cur_mark->slot_idx < 0) { in dpb_mark_malloc() 581 cur_mark->slot_idx, dec_pic->slice_type, dec_pic->structure, in dpb_mark_malloc() 584 p_Vid->p_Dec->in_task->output = cur_mark->slot_idx; in dpb_mark_malloc() 585 mpp_buf_slot_set_flag(p_Dec->frame_slots, cur_mark->slot_idx, SLOT_HAL_OUTPUT); in dpb_mark_malloc() 586 p_Dec->last_frame_slot_idx = cur_mark->slot_idx; in dpb_mark_malloc() 1464 … H264D_DBG(H264D_DBG_DPB_REF_ERR, "find short reference, slot_idx=%d.\n", tmp->mem_mark->slot_idx); in check_ref_pic_list() [all …]
|
| H A D | h264d_dpb.c | 643 && p_mark->out_flag == 0 && (p_mark->slot_idx >= 0)) { in free_dpb_mark() 644 mpp_buf_slot_clr_flag(p_Dec->frame_slots, p_mark->slot_idx, SLOT_CODEC_USE); in free_dpb_mark() 792 ASSERT(fs->top_field->mem_mark->slot_idx == fs->bottom_field->mem_mark->slot_idx); in dpb_combine_field_yuv() 855 mpp_buf_slot_get_prop(p_Vid->p_Dec->frame_slots, p_mark->slot_idx, SLOT_FRAME_PTR, &mframe); in write_picture() 889 … if (!match_mark || !match_mark->pic || !match_mark->out_flag || match_mark->slot_idx < 0) in write_picture() 911 i, match_mark->slot_idx, match_mark->pic->layer_id, match_mark->pic->poc); in write_picture() 916 i, match_mark->slot_idx, match_mark->pic->layer_id, match_mark->pic->poc); in write_picture() 928 … mpp_buf_slot_set_flag(p_Vid->p_Dec->frame_slots, out_mark_list[i]->slot_idx, SLOT_QUEUE_USE); in write_picture() 929 … mpp_buf_slot_enqueue(p_Vid->p_Dec->frame_slots, out_mark_list[i]->slot_idx, QUEUE_DISPLAY); in write_picture() 931 p_Vid->p_Dec->last_frame_slot_idx = out_mark_list[i]->slot_idx; in write_picture() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/enc/h264/ |
| H A D | h264e_dpb.h | 54 RK_S32 slot_idx; member 155 MPP_RET h264e_dpb_hal_start(H264eDpb *dpb, RK_S32 slot_idx); 156 MPP_RET h264e_dpb_hal_end(H264eDpb *dpb, RK_S32 slot_idx);
|
| H A D | h264e_dpb.c | 115 dpb->frames[i].slot_idx = i; in h264e_dpb_init() 582 seq_idx, dpb->curr->slot_idx, dpb->refr->slot_idx); in h264e_dpb_proc() 651 curr->seq_idx, curr->lt_idx, tmp->slot_idx); in h264e_dpb_check() 732 MPP_RET h264e_dpb_hal_start(H264eDpb *dpb, RK_S32 slot_idx) in h264e_dpb_hal_start() argument 734 H264eDpbFrm *frm = &dpb->frames[slot_idx]; in h264e_dpb_hal_start() 741 MPP_RET h264e_dpb_hal_end(H264eDpb *dpb, RK_S32 slot_idx) in h264e_dpb_hal_end() argument 743 H264eDpbFrm *frm = &dpb->frames[slot_idx]; in h264e_dpb_hal_end()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/mvsas/ |
| H A D | mv_sas.c | 869 u32 slot_idx = rx_desc & RXQ_SLOT_MASK; in mvs_slot_free() local 870 mvs_tag_clear(mvi, slot_idx); in mvs_slot_free() 874 struct mvs_slot_info *slot, u32 slot_idx) in mvs_slot_task_free() argument 910 mvs_slot_free(mvi, slot_idx); in mvs_slot_task_free() 1523 u32 slot_idx = (u32)(slot - mvi->slot_info); in mvs_abort_task() local 1526 mvi, task, slot, slot_idx); in mvs_abort_task() 1528 mvs_slot_task_free(mvi, task, slot, slot_idx); in mvs_abort_task() 1574 u32 slot_idx, int err) in mvs_sata_done() argument 1648 u32 slot_idx) in mvs_slot_err() argument 1650 struct mvs_slot_info *slot = &mvi->slot_info[slot_idx]; in mvs_slot_err() [all …]
|
| H A D | mv_64xx.c | 467 static void mvs_64xx_command_active(struct mvs_info *mvi, u32 slot_idx) in mvs_64xx_command_active() argument 470 mvs_cw32(mvi, 0x40 + (slot_idx >> 3), 1 << (slot_idx % 32)); in mvs_64xx_command_active() 471 mvs_cw32(mvi, 0x00 + (slot_idx >> 3), 1 << (slot_idx % 32)); in mvs_64xx_command_active() 473 tmp = mvs_cr32(mvi, 0x00 + (slot_idx >> 3)); in mvs_64xx_command_active() 474 } while (tmp & 1 << (slot_idx % 32)); in mvs_64xx_command_active() 476 tmp = mvs_cr32(mvi, 0x40 + (slot_idx >> 3)); in mvs_64xx_command_active() 477 } while (tmp & 1 << (slot_idx % 32)); in mvs_64xx_command_active()
|
| H A D | mv_94xx.c | 651 static void mvs_94xx_command_active(struct mvs_info *mvi, u32 slot_idx) in mvs_94xx_command_active() argument 654 tmp = mvs_cr32(mvi, MVS_COMMAND_ACTIVE+(slot_idx >> 3)); in mvs_94xx_command_active() 655 if (tmp & 1 << (slot_idx % 32)) { in mvs_94xx_command_active() 656 mv_printk("command active %08X, slot [%x].\n", tmp, slot_idx); in mvs_94xx_command_active() 657 mvs_cw32(mvi, MVS_COMMAND_ACTIVE + (slot_idx >> 3), in mvs_94xx_command_active() 658 1 << (slot_idx % 32)); in mvs_94xx_command_active() 661 MVS_COMMAND_ACTIVE + (slot_idx >> 3)); in mvs_94xx_command_active() 662 } while (tmp & 1 << (slot_idx % 32)); in mvs_94xx_command_active()
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/enc/h265/ |
| H A D | h265e_syntax.c | 345 sp->recon_pic.slot_idx = h->dpb->curr->slot_idx; in fill_ref_parameters() 348 sp->ref_pic.slot_idx = ref_frame->slot_idx; in fill_ref_parameters() 350 sp->ref_pic.slot_idx = h->dpb->curr->slot_idx; in fill_ref_parameters()
|
| H A D | h265e_dpb.h | 66 RK_S32 slot_idx; member
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/sfc/ |
| H A D | rx_common.c | 878 int slot_idx = req - efx->rps_slot; in efx_filter_rfs_work() local 954 clear_bit(slot_idx, &efx->rps_slot_map); in efx_filter_rfs_work() 965 int slot_idx; in efx_filter_rfs() local 970 for (slot_idx = 0; slot_idx < EFX_RPS_MAX_IN_FLIGHT; slot_idx++) in efx_filter_rfs() 971 if (!test_and_set_bit(slot_idx, &efx->rps_slot_map)) in efx_filter_rfs() 973 if (slot_idx >= EFX_RPS_MAX_IN_FLIGHT) in efx_filter_rfs() 995 req = efx->rps_slot + slot_idx; in efx_filter_rfs() 1056 clear_bit(slot_idx, &efx->rps_slot_map); in efx_filter_rfs()
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/rkdec/avs2d/ |
| H A D | hal_avs2d_rkv.c | 400 RK_S32 slot_idx = task_dec->refer[i] < 0 ? valid_slot : task_dec->refer[i]; in fill_registers() local 402 if (slot_idx < 0) { in fill_registers() 407 mpp_buf_slot_get_prop(p_hal->frame_slots, slot_idx, SLOT_FRAME_PTR, &frame_ref); in fill_registers() 420 p_regs->avs2d_addr.ref_base[i] = get_frame_fd(p_hal, slot_idx); in fill_registers() 421 mv_buf = hal_bufs_get_buf(p_hal->cmv_bufs, slot_idx); in fill_registers() 427 i, slot_idx, p_regs->avs2d_addr.ref_base[i], in fill_registers() 434 RK_S32 slot_idx = p_hal->syntax.refp.scene_ref_slot_idx; in fill_registers() local 437 mpp_buf_slot_get_prop(p_hal->frame_slots, slot_idx, SLOT_FRAME_PTR, &scene_ref); in fill_registers() 440 p_regs->avs2d_addr.ref_base[replace_idx] = get_frame_fd(p_hal, slot_idx); in fill_registers() 441 mv_buf = hal_bufs_get_buf(p_hal->cmv_bufs, slot_idx); in fill_registers()
|
| H A D | hal_avs2d_vdpu382.c | 461 RK_S32 slot_idx = task_dec->refer[i] < 0 ? valid_slot : task_dec->refer[i]; in fill_registers() local 463 if (slot_idx < 0) { in fill_registers() 468 mpp_buf_slot_get_prop(p_hal->frame_slots, slot_idx, SLOT_FRAME_PTR, &frame_ref); in fill_registers() 481 p_regs->avs2d_addr.ref_base[i] = get_frame_fd(p_hal, slot_idx); in fill_registers() 482 mv_buf = hal_bufs_get_buf(p_hal->cmv_bufs, slot_idx); in fill_registers() 488 i, slot_idx, p_regs->avs2d_addr.ref_base[i], in fill_registers() 496 RK_S32 slot_idx = p_hal->syntax.refp.scene_ref_slot_idx; in fill_registers() local 498 mpp_buf_slot_get_prop(p_hal->frame_slots, slot_idx, SLOT_FRAME_PTR, &scene_ref); in fill_registers() 501 p_regs->avs2d_addr.ref_base[replace_idx] = get_frame_fd(p_hal, slot_idx); in fill_registers() 502 mv_buf = hal_bufs_get_buf(p_hal->cmv_bufs, slot_idx); in fill_registers()
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/jpeg/ |
| H A D | jpegd_parser.c | 1050 RK_S32 slot_idx = ctx->frame_slot_index; in jpegd_allocate_frame() local 1052 if (slot_idx == -1) { in jpegd_allocate_frame() 1084 mpp_buf_slot_get_unused(slots, &slot_idx); in jpegd_allocate_frame() 1085 ctx->frame_slot_index = slot_idx; in jpegd_allocate_frame() 1086 jpegd_dbg_parser("frame_slot_index:%d\n", slot_idx); in jpegd_allocate_frame() 1092 if (mpp_buf_slot_set_prop(slots, slot_idx, SLOT_FRAME, output)) in jpegd_allocate_frame() 1094 mpp_buf_slot_set_flag(slots, slot_idx, SLOT_CODEC_USE); in jpegd_allocate_frame() 1095 mpp_buf_slot_set_flag(slots, slot_idx, SLOT_HAL_OUTPUT); in jpegd_allocate_frame()
|
| /OK3568_Linux_fs/kernel/block/ |
| H A D | keyslot-manager.c | 238 int slot_idx; in blk_ksm_get_slot_for_key() local 274 slot_idx = blk_ksm_get_slot_idx(slot); in blk_ksm_get_slot_for_key() 276 err = ksm->ksm_ll_ops.keyslot_program(ksm, key, slot_idx); in blk_ksm_get_slot_for_key()
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/rc/ |
| H A D | rc_data_impl.cpp | 58 static void rc_data_node_init(DataGroupImpl *p, RcDataNode *node, RK_S32 slot_idx) in rc_data_node_init() argument 68 head->slot_id = slot_idx; in rc_data_node_init()
|
| /OK3568_Linux_fs/external/mpp/osal/driver/ |
| H A D | mpp_server.cpp | 79 RK_S32 slot_idx; member 444 task->slot_idx, task->task_id); in process_task() 496 session->client, task->slot_idx, server->pending_count); in send_task() 824 task->slot_idx = i; in attach()
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/rkdec/avsd/ |
| H A D | hal_avsd_base.h | 97 RK_S32 slot_idx; member
|