Lines Matching refs:fdata
99 struct hfi_frame_data fdata; in venus_helper_queue_dpb_bufs() local
101 memset(&fdata, 0, sizeof(fdata)); in venus_helper_queue_dpb_bufs()
102 fdata.alloc_len = buf->size; in venus_helper_queue_dpb_bufs()
103 fdata.device_addr = buf->da; in venus_helper_queue_dpb_bufs()
104 fdata.buffer_type = buf->type; in venus_helper_queue_dpb_bufs()
109 fdata.clnt_data = buf->dpb_out_tag; in venus_helper_queue_dpb_bufs()
111 ret = hfi_session_process_buf(inst, &fdata); in venus_helper_queue_dpb_bufs()
488 struct hfi_frame_data fdata; in session_process_buf() local
491 memset(&fdata, 0, sizeof(fdata)); in session_process_buf()
492 fdata.alloc_len = buf->size; in session_process_buf()
493 fdata.device_addr = buf->dma_addr; in session_process_buf()
494 fdata.timestamp = vb->timestamp; in session_process_buf()
495 do_div(fdata.timestamp, NSEC_PER_USEC); in session_process_buf()
496 fdata.flags = 0; in session_process_buf()
497 fdata.clnt_data = vbuf->vb2_buf.index; in session_process_buf()
500 fdata.buffer_type = HFI_BUFFER_INPUT; in session_process_buf()
501 fdata.filled_len = vb2_get_plane_payload(vb, 0); in session_process_buf()
502 fdata.offset = vb->planes[0].data_offset; in session_process_buf()
504 if (vbuf->flags & V4L2_BUF_FLAG_LAST || !fdata.filled_len) in session_process_buf()
505 fdata.flags |= HFI_BUFFERFLAG_EOS; in session_process_buf()
513 fdata.buffer_type = HFI_BUFFER_OUTPUT; in session_process_buf()
515 fdata.buffer_type = inst->opb_buftype; in session_process_buf()
516 fdata.filled_len = 0; in session_process_buf()
517 fdata.offset = 0; in session_process_buf()
520 ret = hfi_session_process_buf(inst, &fdata); in session_process_buf()