Home
last modified time | relevance | path

Searched refs:inst (Results 1 – 25 of 922) sorted by relevance

12345678910>>...37

/linux/drivers/media/platform/qcom/venus/
H A Dvdec.c117 find_format(struct venus_inst *inst, u32 pixfmt, u32 type) in find_format() argument
132 !venus_helper_check_codec(inst, fmt[i].pixfmt)) in find_format()
136 !venus_helper_check_format(inst, fmt[i].pixfmt)) in find_format()
140 !(inst->bit_depth == VIDC_BITDEPTH_10)) in find_format()
147 find_format_by_index(struct venus_inst *inst, unsigned int index, u32 type) in find_format_by_index() argument
163 valid = venus_helper_check_codec(inst, fmt[i].pixfmt); in find_format_by_index()
165 valid = venus_helper_check_format(inst, fmt[i].pixfmt); in find_format_by_index()
168 !(inst->bit_depth == VIDC_BITDEPTH_10)) in find_format_by_index()
185 vdec_try_fmt_common(struct venus_inst *inst, struct v4l2_format *f) in vdec_try_fmt_common() argument
195 fmt = find_format(inst, pixm in vdec_try_fmt_common()
243 struct venus_inst *inst = to_inst(file); vdec_try_fmt() local
250 vdec_check_src_change(struct venus_inst * inst) vdec_check_src_change() argument
286 struct venus_inst *inst = to_inst(file); vdec_g_fmt() local
323 struct venus_inst *inst = to_inst(file); vdec_s_fmt() local
395 struct venus_inst *inst = to_inst(file); vdec_g_selection() local
436 struct venus_inst *inst = to_inst(file); vdec_querycap() local
449 struct venus_inst *inst = to_inst(file); vdec_enum_fmt() local
466 struct venus_inst *inst = to_inst(file); vdec_s_parm() local
499 struct venus_inst *inst = to_inst(file); vdec_enum_framesizes() local
529 struct venus_inst *inst = container_of(fh, struct venus_inst, fh); vdec_subscribe_event() local
551 struct venus_inst *inst = to_inst(file); vdec_decoder_cmd() local
631 vdec_pm_get(struct venus_inst * inst) vdec_pm_get() argument
644 vdec_pm_put(struct venus_inst * inst,bool autosuspend) vdec_pm_put() argument
662 vdec_pm_get_put(struct venus_inst * inst) vdec_pm_get_put() argument
684 vdec_pm_touch(struct venus_inst * inst) vdec_pm_touch() argument
689 vdec_set_properties(struct venus_inst * inst) vdec_set_properties() argument
731 vdec_set_work_route(struct venus_inst * inst) vdec_set_work_route() argument
749 vdec_output_conf(struct venus_inst * inst) vdec_output_conf() argument
874 vdec_session_init(struct venus_inst * inst) vdec_session_init() argument
895 vdec_num_buffers(struct venus_inst * inst,unsigned int * in_num,unsigned int * out_num) vdec_num_buffers() argument
923 struct venus_inst *inst = vb2_get_drv_priv(q); vdec_queue_setup() local
1014 vdec_verify_conf(struct venus_inst * inst) vdec_verify_conf() argument
1041 vdec_start_capture(struct venus_inst * inst) vdec_start_capture() argument
1113 vdec_start_output(struct venus_inst * inst) vdec_start_output() argument
1188 struct venus_inst *inst = vb2_get_drv_priv(q); vdec_start_streaming() local
1225 vdec_cancel_dst_buffers(struct venus_inst * inst) vdec_cancel_dst_buffers() argument
1233 vdec_stop_capture(struct venus_inst * inst) vdec_stop_capture() argument
1260 vdec_stop_output(struct venus_inst * inst) vdec_stop_output() argument
1285 struct venus_inst *inst = vb2_get_drv_priv(q); vdec_stop_streaming() local
1313 vdec_session_release(struct venus_inst * inst) vdec_session_release() argument
1351 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); vdec_buf_init() local
1360 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); vdec_buf_cleanup() local
1377 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); vdec_vb2_buf_queue() local
1412 vdec_buf_done(struct venus_inst * inst,unsigned int buf_type,u32 tag,u32 bytesused,u32 data_offset,u32 flags,u32 hfi_flags,u64 timestamp_us) vdec_buf_done() argument
1478 vdec_event_change(struct venus_inst * inst,struct hfi_event_data * ev_data,bool sufficient) vdec_event_change() argument
1572 vdec_event_notify(struct venus_inst * inst,u32 event,struct hfi_event_data * data) vdec_event_notify() argument
1606 vdec_flush_done(struct venus_inst * inst) vdec_flush_done() argument
1617 vdec_inst_init(struct venus_inst * inst) vdec_inst_init() argument
1649 struct venus_inst *inst = priv; m2m_queue_init() local
1684 struct venus_inst *inst; vdec_open() local
1761 struct venus_inst *inst = to_inst(file); vdec_close() local
[all...]
H A Dvenc.c68 find_format(struct venus_inst *inst, u32 pixfmt, u32 type) in find_format() argument
83 !venus_helper_check_codec(inst, fmt[i].pixfmt)) in find_format()
90 find_format_by_index(struct venus_inst *inst, unsigned int index, u32 type) in find_format_by_index() argument
105 venus_helper_check_codec(inst, fmt[i].pixfmt); in find_format_by_index()
147 struct venus_inst *inst = to_inst(file); in venc_querycap() local
148 struct venus_core *core = inst->core; in venc_querycap()
160 struct venus_inst *inst = to_inst(file); in venc_enum_fmt() local
163 fmt = find_format_by_index(inst, f->index, f->type); in venc_enum_fmt()
176 venc_try_fmt_common(struct venus_inst *inst, struct v4l2_format *f) in venc_try_fmt_common() argument
186 fmt = find_format(inst, pixm in venc_try_fmt_common()
230 struct venus_inst *inst = to_inst(file); venc_try_fmt() local
239 struct venus_inst *inst = to_inst(file); venc_s_fmt() local
307 struct venus_inst *inst = to_inst(file); venc_g_fmt() local
339 struct venus_inst *inst = to_inst(file); venc_g_selection() local
367 struct venus_inst *inst = to_inst(file); venc_s_selection() local
395 struct venus_inst *inst = to_inst(file); venc_s_parm() local
428 struct venus_inst *inst = to_inst(file); venc_g_parm() local
443 struct venus_inst *inst = to_inst(file); venc_enum_framesizes() local
473 struct venus_inst *inst = to_inst(file); venc_enum_frameintervals() local
531 struct venus_inst *inst = to_inst(file); venc_encoder_cmd() local
604 venc_pm_get(struct venus_inst * inst) venc_pm_get() argument
617 venc_pm_put(struct venus_inst * inst,bool autosuspend) venc_pm_put() argument
635 venc_pm_get_put(struct venus_inst * inst) venc_pm_get_put() argument
657 venc_pm_touch(struct venus_inst * inst) venc_pm_touch() argument
662 venc_set_properties(struct venus_inst * inst) venc_set_properties() argument
1028 venc_init_session(struct venus_inst * inst) venc_init_session() argument
1068 venc_out_num_buffers(struct venus_inst * inst,unsigned int * num) venc_out_num_buffers() argument
1086 struct venus_inst *inst = vb2_get_drv_priv(q); venc_queue_setup() local
1176 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); venc_buf_init() local
1183 venc_release_session(struct venus_inst * inst) venc_release_session() argument
1206 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); venc_buf_cleanup() local
1221 venc_verify_conf(struct venus_inst * inst) venc_verify_conf() argument
1251 struct venus_inst *inst = vb2_get_drv_priv(q); venc_start_streaming() local
1320 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); venc_vb2_buf_queue() local
1350 venc_buf_done(struct venus_inst * inst,unsigned int buf_type,u32 tag,u32 bytesused,u32 data_offset,u32 flags,u32 hfi_flags,u64 timestamp_us) venc_buf_done() argument
1388 venc_event_notify(struct venus_inst * inst,u32 event,struct hfi_event_data * data) venc_event_notify() argument
1415 struct venus_inst *inst = priv; m2m_queue_init() local
1449 venc_inst_init(struct venus_inst * inst) venc_inst_init() argument
1466 struct venus_inst *inst; venc_open() local
1538 struct venus_inst *inst = to_inst(file); venc_close() local
[all...]
H A Dhelpers.c41 bool venus_helper_check_codec(struct venus_inst *inst, u32 v4l2_pixfmt) in venus_helper_check_codec() argument
43 struct venus_core *core = inst->core; in venus_helper_check_codec()
44 u32 session_type = inst->session_type; in venus_helper_check_codec()
93 static void free_dpb_buf(struct venus_inst *inst, struct intbuf *buf) in free_dpb_buf() argument
95 ida_free(&inst->dpb_ids, buf->dpb_out_tag); in free_dpb_buf()
98 dma_free_attrs(inst->core->dev, buf->size, buf->va, buf->da, in free_dpb_buf()
103 int venus_helper_queue_dpb_bufs(struct venus_inst *inst) in venus_helper_queue_dpb_bufs() argument
109 if (inst->dpb_buftype == HFI_BUFFER_OUTPUT) in venus_helper_queue_dpb_bufs()
110 dpb_size = inst->output_buf_size; in venus_helper_queue_dpb_bufs()
111 else if (inst in venus_helper_queue_dpb_bufs()
145 venus_helper_free_dpb_bufs(struct venus_inst * inst) venus_helper_free_dpb_bufs() argument
162 venus_helper_alloc_dpb_bufs(struct venus_inst * inst) venus_helper_alloc_dpb_bufs() argument
233 intbufs_set_buffer(struct venus_inst * inst,u32 type) intbufs_set_buffer() argument
292 intbufs_unset_buffers(struct venus_inst * inst) intbufs_unset_buffers() argument
340 venus_helper_intbufs_alloc(struct venus_inst * inst) venus_helper_intbufs_alloc() argument
371 venus_helper_intbufs_free(struct venus_inst * inst) venus_helper_intbufs_free() argument
377 venus_helper_intbufs_realloc(struct venus_inst * inst) venus_helper_intbufs_realloc() argument
434 return_buf_error(struct venus_inst * inst,struct vb2_v4l2_buffer * vbuf) return_buf_error() argument
448 put_ts_metadata(struct venus_inst * inst,struct vb2_v4l2_buffer * vbuf) put_ts_metadata() argument
476 venus_helper_get_ts_metadata(struct venus_inst * inst,u64 timestamp_us,struct vb2_v4l2_buffer * vbuf) venus_helper_get_ts_metadata() argument
499 session_process_buf(struct venus_inst * inst,struct vb2_v4l2_buffer * vbuf) session_process_buf() argument
538 is_dynamic_bufmode(struct venus_inst * inst) is_dynamic_bufmode() argument
557 venus_helper_unregister_bufs(struct venus_inst * inst) venus_helper_unregister_bufs() argument
576 session_register_bufs(struct venus_inst * inst) session_register_bufs() argument
619 platform_get_bufreq(struct venus_inst * inst,u32 buftype,struct hfi_buffer_requirements * req) platform_get_bufreq() argument
667 venus_helper_get_bufreq(struct venus_inst * inst,u32 type,struct hfi_buffer_requirements * req) venus_helper_get_bufreq() argument
918 venus_helper_get_profile_level(struct venus_inst * inst,u32 * profile,u32 * level) venus_helper_get_profile_level() argument
934 venus_helper_set_profile_level(struct venus_inst * inst,u32 profile,u32 level) venus_helper_set_profile_level() argument
1123 venus_helper_set_input_resolution(struct venus_inst * inst,unsigned int width,unsigned int height) venus_helper_set_input_resolution() argument
1137 venus_helper_set_output_resolution(struct venus_inst * inst,unsigned int width,unsigned int height,u32 buftype) venus_helper_set_output_resolution() argument
1152 venus_helper_get_work_mode(struct venus_inst * inst) venus_helper_get_work_mode() argument
1174 venus_helper_set_work_mode(struct venus_inst * inst) venus_helper_set_work_mode() argument
1189 venus_helper_set_format_constraints(struct venus_inst * inst) venus_helper_set_format_constraints() argument
1217 venus_helper_set_num_bufs(struct venus_inst * inst,unsigned int input_bufs,unsigned int output_bufs,unsigned int output2_bufs) venus_helper_set_num_bufs() argument
1250 venus_helper_set_raw_format(struct venus_inst * inst,u32 hfi_format,u32 buftype) venus_helper_set_raw_format() argument
1263 venus_helper_set_color_format(struct venus_inst * inst,u32 pixfmt) venus_helper_set_color_format() argument
1282 venus_helper_set_multistream(struct venus_inst * inst,bool out_en,bool out2_en) venus_helper_set_multistream() argument
1303 venus_helper_set_dyn_bufmode(struct venus_inst * inst) venus_helper_set_dyn_bufmode() argument
1325 venus_helper_set_bufsize(struct venus_inst * inst,u32 bufsize,u32 buftype) venus_helper_set_bufsize() argument
1337 venus_helper_get_opb_size(struct venus_inst * inst) venus_helper_get_opb_size() argument
1355 struct venus_inst *inst; delayed_process_buf_func() local
1379 venus_helper_release_buf_ref(struct venus_inst * inst,unsigned int idx) venus_helper_release_buf_ref() argument
1401 is_buf_refed(struct venus_inst * inst,struct vb2_v4l2_buffer * vbuf) is_buf_refed() argument
1415 venus_helper_find_buf(struct venus_inst * inst,unsigned int type,u32 idx) venus_helper_find_buf() argument
1426 venus_helper_change_dpb_owner(struct venus_inst * inst,struct vb2_v4l2_buffer * vbuf,unsigned int type,unsigned int buf_type,u32 tag) venus_helper_change_dpb_owner() argument
1446 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); venus_helper_vb2_buf_init() local
1462 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); venus_helper_vb2_buf_prepare() local
1487 cache_payload(struct venus_inst * inst,struct vb2_buffer * vb) cache_payload() argument
1499 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); venus_helper_vb2_buf_queue() local
1529 venus_helper_buffers_done(struct venus_inst * inst,unsigned int type,enum vb2_buffer_state state) venus_helper_buffers_done() argument
1546 struct venus_inst *inst = vb2_get_drv_priv(q); venus_helper_vb2_stop_streaming() local
1589 venus_helper_vb2_queue_error(struct venus_inst * inst) venus_helper_vb2_queue_error() argument
1601 venus_helper_process_initial_cap_bufs(struct venus_inst * inst) venus_helper_process_initial_cap_bufs() argument
1619 venus_helper_process_initial_out_bufs(struct venus_inst * inst) venus_helper_process_initial_out_bufs() argument
1637 venus_helper_vb2_start_streaming(struct venus_inst * inst) venus_helper_vb2_start_streaming() argument
1673 struct venus_inst *inst = priv; venus_helper_m2m_device_run() local
1698 struct venus_inst *inst = priv; venus_helper_m2m_job_abort() local
1704 venus_helper_session_init(struct venus_inst * inst) venus_helper_session_init() argument
1735 venus_helper_init_instance(struct venus_inst * inst) venus_helper_init_instance() argument
1758 venus_helper_get_out_fmts(struct venus_inst * inst,u32 v4l2_fmt,u32 * out_fmt,u32 * out2_fmt,bool ubwc) venus_helper_get_out_fmts() argument
1822 venus_helper_check_format(struct venus_inst * inst,u32 v4l2_pixfmt) venus_helper_check_format() argument
1846 venus_helper_set_stride(struct venus_inst * inst,unsigned int width,unsigned int height) venus_helper_set_stride() argument
[all...]
/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_h264_req_multi_if.c268 static int vdec_h264_slice_fill_decode_parameters(struct vdec_h264_slice_inst *inst, in vdec_h264_slice_fill_decode_parameters() argument
278 mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_DECODE_PARAMS); in vdec_h264_slice_fill_decode_parameters()
283 mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SCALING_MATRIX); in vdec_h264_slice_fill_decode_parameters()
287 sps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SPS); in vdec_h264_slice_fill_decode_parameters()
291 pps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_PPS); in vdec_h264_slice_fill_decode_parameters()
296 mtk_vdec_err(inst->ctx, "No support for H.264 field decoding."); in vdec_h264_slice_fill_decode_parameters()
297 inst->is_field_bitstream = true; in vdec_h264_slice_fill_decode_parameters()
311 static int get_vdec_sig_decode_parameters(struct vdec_h264_slice_inst *inst) in get_vdec_sig_decode_parameters() argument
317 struct vdec_h264_slice_lat_dec_param *slice_param = &inst->h264_slice_param; in get_vdec_sig_decode_parameters()
327 mtk_vdec_h264_get_ctrl_ptr(inst in get_vdec_sig_decode_parameters()
367 vdec_h264_slice_fill_decode_reflist(struct vdec_h264_slice_inst * inst,struct vdec_h264_slice_lat_dec_param * slice_param,struct vdec_h264_slice_share_info * share_info) vdec_h264_slice_fill_decode_reflist() argument
401 vdec_h264_slice_alloc_mv_buf(struct vdec_h264_slice_inst * inst,struct vdec_pic_info * pic) vdec_h264_slice_alloc_mv_buf() argument
424 vdec_h264_slice_free_mv_buf(struct vdec_h264_slice_inst * inst) vdec_h264_slice_free_mv_buf() argument
436 vdec_h264_slice_get_pic_info(struct vdec_h264_slice_inst * inst) vdec_h264_slice_get_pic_info() argument
475 vdec_h264_slice_get_crop_info(struct vdec_h264_slice_inst * inst,struct v4l2_rect * cr) vdec_h264_slice_get_crop_info() argument
487 vdec_h264_slice_setup_lat_buffer_ext(struct vdec_h264_slice_inst * inst,struct mtk_vcodec_mem * bs,struct vdec_lat_buf * lat_buf) vdec_h264_slice_setup_lat_buffer_ext() argument
518 vdec_h264_slice_setup_core_buffer_ext(struct vdec_h264_slice_inst * inst,struct vdec_h264_slice_share_info * share_info,struct vdec_lat_buf * lat_buf) vdec_h264_slice_setup_core_buffer_ext() argument
582 struct vdec_h264_slice_inst *inst = ctx->drv_handle; vdec_h264_slice_core_decode_ext() local
632 struct vdec_h264_slice_inst *inst = ctx->drv_handle; vdec_h264_slice_core_decode() local
740 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_lat_decode_ext() local
863 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_lat_decode() local
1009 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_single_decode_ext() local
1104 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_single_decode() local
1207 struct vdec_h264_slice_inst *inst; vdec_h264_slice_init() local
1276 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_deinit() local
1288 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_decode() local
1299 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_get_param() local
[all...]
H A Dvdec_vp8_req_if.c117 static void vdec_vp8_slice_get_pic_info(struct vdec_vp8_slice_inst *inst) in vdec_vp8_slice_get_pic_info() argument
119 struct mtk_vcodec_dec_ctx *ctx = inst->ctx; in vdec_vp8_slice_get_pic_info()
125 vpu_dec_get_param(&inst->vpu, data, 3, GET_PARAM_PIC_INFO); in vdec_vp8_slice_get_pic_info()
129 ctx->picinfo.fb_sz[0] = inst->vpu.fb_sz[0]; in vdec_vp8_slice_get_pic_info()
130 ctx->picinfo.fb_sz[1] = inst->vpu.fb_sz[1]; in vdec_vp8_slice_get_pic_info()
132 inst->vsi->pic.pic_w = ctx->picinfo.pic_w; in vdec_vp8_slice_get_pic_info()
133 inst->vsi->pic.pic_h = ctx->picinfo.pic_h; in vdec_vp8_slice_get_pic_info()
134 inst->vsi->pic.buf_w = ctx->picinfo.buf_w; in vdec_vp8_slice_get_pic_info()
135 inst->vsi->pic.buf_h = ctx->picinfo.buf_h; in vdec_vp8_slice_get_pic_info()
136 inst in vdec_vp8_slice_get_pic_info()
145 vdec_vp8_slice_alloc_working_buf(struct vdec_vp8_slice_inst * inst) vdec_vp8_slice_alloc_working_buf() argument
189 vdec_vp8_slice_free_working_buf(struct vdec_vp8_slice_inst * inst) vdec_vp8_slice_free_working_buf() argument
231 vdec_vp8_slice_get_decode_parameters(struct vdec_vp8_slice_inst * inst) vdec_vp8_slice_get_decode_parameters() argument
275 struct vdec_vp8_slice_inst *inst; vdec_vp8_slice_init() local
320 struct vdec_vp8_slice_inst *inst = h_vdec; vdec_vp8_slice_decode() local
402 struct vdec_vp8_slice_inst *inst = h_vdec; vdec_vp8_slice_get_param() local
424 struct vdec_vp8_slice_inst *inst = h_vdec; vdec_vp8_slice_deinit() local
[all...]
H A Dvdec_vp8_if.c165 static void get_hw_reg_base(struct vdec_vp8_inst *inst) in get_hw_reg_base() argument
167 void __iomem **reg_base = inst->ctx->dev->reg_base; in get_hw_reg_base()
169 inst->reg_base.top = mtk_vcodec_get_reg_addr(reg_base, VDEC_TOP); in get_hw_reg_base()
170 inst->reg_base.cm = mtk_vcodec_get_reg_addr(reg_base, VDEC_CM); in get_hw_reg_base()
171 inst->reg_base.hwd = mtk_vcodec_get_reg_addr(reg_base, VDEC_HWD); in get_hw_reg_base()
172 inst->reg_base.misc = mtk_vcodec_get_reg_addr(reg_base, VDEC_MISC); in get_hw_reg_base()
173 inst->reg_base.ld = mtk_vcodec_get_reg_addr(reg_base, VDEC_LD); in get_hw_reg_base()
174 inst->reg_base.hwb = mtk_vcodec_get_reg_addr(reg_base, VDEC_HWB); in get_hw_reg_base()
177 static void write_hw_segmentation_data(struct vdec_vp8_inst *inst) in write_hw_segmentation_data() argument
182 void __iomem *cm = inst in write_hw_segmentation_data()
198 read_hw_segmentation_data(struct vdec_vp8_inst * inst) read_hw_segmentation_data() argument
220 enable_hw_rw_function(struct vdec_vp8_inst * inst) enable_hw_rw_function() argument
246 store_dec_table(struct vdec_vp8_inst * inst) store_dec_table() argument
263 load_dec_table(struct vdec_vp8_inst * inst) load_dec_table() argument
280 get_pic_info(struct vdec_vp8_inst * inst,struct vdec_pic_info * pic) get_pic_info() argument
290 vp8_dec_finish(struct vdec_vp8_inst * inst) vp8_dec_finish() argument
325 move_fb_list_use_to_free(struct vdec_vp8_inst * inst) move_fb_list_use_to_free() argument
333 init_list(struct vdec_vp8_inst * inst) init_list() argument
350 add_fb_to_free_list(struct vdec_vp8_inst * inst,void * fb) add_fb_to_free_list() argument
362 alloc_working_buf(struct vdec_vp8_inst * inst) alloc_working_buf() argument
378 free_working_buf(struct vdec_vp8_inst * inst) free_working_buf() argument
390 struct vdec_vp8_inst *inst; vdec_vp8_init() local
430 struct vdec_vp8_inst *inst = (struct vdec_vp8_inst *)h_vdec; vdec_vp8_decode() local
510 get_disp_fb(struct vdec_vp8_inst * inst,struct vdec_fb ** out_fb) get_disp_fb() argument
530 get_free_fb(struct vdec_vp8_inst * inst,struct vdec_fb ** out_fb) get_free_fb() argument
550 get_crop_info(struct vdec_vp8_inst * inst,struct v4l2_rect * cr) get_crop_info() argument
563 struct vdec_vp8_inst *inst = (struct vdec_vp8_inst *)h_vdec; vdec_vp8_get_param() local
596 struct vdec_vp8_inst *inst = (struct vdec_vp8_inst *)h_vdec; vdec_vp8_deinit() local
[all...]
H A Dvdec_h264_req_if.c96 static int get_vdec_decode_parameters(struct vdec_h264_slice_inst *inst) in get_vdec_decode_parameters() argument
102 struct mtk_h264_dec_slice_param *slice_param = &inst->h264_slice_param; in get_vdec_decode_parameters()
112 mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_DECODE_PARAMS); in get_vdec_decode_parameters()
116 sps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SPS); in get_vdec_decode_parameters()
120 pps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_PPS); in get_vdec_decode_parameters()
125 mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SCALING_MATRIX); in get_vdec_decode_parameters()
129 mtk_vdec_h264_update_dpb(dec_params, inst->dpb); in get_vdec_decode_parameters()
135 dec_params, inst->dpb); in get_vdec_decode_parameters()
136 mtk_vdec_h264_fill_dpb_info(inst->ctx, &slice_param->decode_params, in get_vdec_decode_parameters()
141 inst in get_vdec_decode_parameters()
157 allocate_prediction_buf(struct vdec_h264_slice_inst * inst) allocate_prediction_buf() argument
172 free_prediction_buf(struct vdec_h264_slice_inst * inst) free_prediction_buf() argument
181 alloc_mv_buf(struct vdec_h264_slice_inst * inst,struct vdec_pic_info * pic) alloc_mv_buf() argument
206 free_mv_buf(struct vdec_h264_slice_inst * inst) free_mv_buf() argument
219 get_pic_info(struct vdec_h264_slice_inst * inst,struct vdec_pic_info * pic) get_pic_info() argument
254 get_crop_info(struct vdec_h264_slice_inst * inst,struct v4l2_rect * cr) get_crop_info() argument
265 get_dpb_size(struct vdec_h264_slice_inst * inst,unsigned int * dpb_sz) get_dpb_size() argument
273 struct vdec_h264_slice_inst *inst; vdec_h264_slice_init() local
320 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_deinit() local
332 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_decode() local
421 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_get_param() local
[all...]
H A Dvdec_h264_if.c139 static int allocate_prediction_buf(struct vdec_h264_inst *inst) in allocate_prediction_buf() argument
143 inst->pred_buf.size = BUF_PREDICTION_SZ; in allocate_prediction_buf()
144 err = mtk_vcodec_mem_alloc(inst->ctx, &inst->pred_buf); in allocate_prediction_buf()
146 mtk_vdec_err(inst->ctx, "failed to allocate ppl buf"); in allocate_prediction_buf()
150 inst->vsi->pred_buf_dma = inst->pred_buf.dma_addr; in allocate_prediction_buf()
154 static void free_prediction_buf(struct vdec_h264_inst *inst) in free_prediction_buf() argument
158 inst->vsi->pred_buf_dma = 0; in free_prediction_buf()
159 mem = &inst in free_prediction_buf()
164 alloc_mv_buf(struct vdec_h264_inst * inst,struct vdec_pic_info * pic) alloc_mv_buf() argument
187 free_mv_buf(struct vdec_h264_inst * inst) free_mv_buf() argument
200 check_list_validity(struct vdec_h264_inst * inst,bool disp_list) check_list_validity() argument
218 put_fb_to_free(struct vdec_h264_inst * inst,struct vdec_fb * fb) put_fb_to_free() argument
242 get_pic_info(struct vdec_h264_inst * inst,struct vdec_pic_info * pic) get_pic_info() argument
251 get_crop_info(struct vdec_h264_inst * inst,struct v4l2_rect * cr) get_crop_info() argument
262 get_dpb_size(struct vdec_h264_inst * inst,unsigned int * dpb_sz) get_dpb_size() argument
270 struct vdec_h264_inst *inst = NULL; vdec_h264_init() local
308 struct vdec_h264_inst *inst = (struct vdec_h264_inst *)h_vdec; vdec_h264_deinit() local
332 struct vdec_h264_inst *inst = (struct vdec_h264_inst *)h_vdec; vdec_h264_decode() local
425 vdec_h264_get_fb(struct vdec_h264_inst * inst,struct h264_ring_fb_list * list,bool disp_list,struct vdec_fb ** out_fb) vdec_h264_get_fb() argument
458 struct vdec_h264_inst *inst = (struct vdec_h264_inst *)h_vdec; vdec_h264_get_param() local
[all...]
H A Dvdec_hevc_req_multi_if.c588 static int vdec_hevc_slice_fill_decode_parameters(struct vdec_hevc_slice_inst *inst, in vdec_hevc_slice_fill_decode_parameters() argument
591 struct vdec_hevc_slice_lat_dec_param *slice_param = &inst->vsi->hevc_slice_params; in vdec_hevc_slice_fill_decode_parameters()
598 vdec_hevc_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_HEVC_DECODE_PARAMS); in vdec_hevc_slice_fill_decode_parameters()
603 vdec_hevc_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_HEVC_SCALING_MATRIX); in vdec_hevc_slice_fill_decode_parameters()
607 sps = vdec_hevc_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_HEVC_SPS); in vdec_hevc_slice_fill_decode_parameters()
611 pps = vdec_hevc_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_HEVC_PPS); in vdec_hevc_slice_fill_decode_parameters()
631 static void vdec_hevc_slice_fill_decode_reflist(struct vdec_hevc_slice_inst *inst, in vdec_hevc_slice_fill_decode_reflist() argument
640 vdec_hevc_fill_dpb_info(inst->ctx, &slice_param->decode_params, in vdec_hevc_slice_fill_decode_reflist()
644 static int vdec_hevc_slice_alloc_mv_buf(struct vdec_hevc_slice_inst *inst, in vdec_hevc_slice_alloc_mv_buf() argument
651 mtk_v4l2_vdec_dbg(3, inst in vdec_hevc_slice_alloc_mv_buf()
667 vdec_hevc_slice_free_mv_buf(struct vdec_hevc_slice_inst * inst) vdec_hevc_slice_free_mv_buf() argument
679 vdec_hevc_slice_get_pic_info(struct vdec_hevc_slice_inst * inst) vdec_hevc_slice_get_pic_info() argument
718 vdec_hevc_slice_get_crop_info(struct vdec_hevc_slice_inst * inst,struct v4l2_rect * cr) vdec_hevc_slice_get_crop_info() argument
730 vdec_hevc_slice_setup_lat_buffer(struct vdec_hevc_slice_inst * inst,struct mtk_vcodec_mem * bs,struct vdec_lat_buf * lat_buf,bool * res_chg) vdec_hevc_slice_setup_lat_buffer() argument
796 vdec_hevc_slice_setup_core_buffer(struct vdec_hevc_slice_inst * inst,struct vdec_hevc_slice_share_info * share_info,struct vdec_lat_buf * lat_buf) vdec_hevc_slice_setup_core_buffer() argument
858 struct vdec_hevc_slice_inst *inst; vdec_hevc_slice_init() local
910 struct vdec_hevc_slice_inst *inst = h_vdec; vdec_hevc_slice_deinit() local
928 struct vdec_hevc_slice_inst *inst = ctx->drv_handle; vdec_hevc_slice_core_decode() local
974 struct vdec_hevc_slice_inst *inst = h_vdec; vdec_hevc_slice_lat_decode() local
1058 struct vdec_hevc_slice_inst *inst = h_vdec; vdec_hevc_slice_decode() local
1069 struct vdec_hevc_slice_inst *inst = h_vdec; vdec_hevc_slice_get_param() local
[all...]
/linux/drivers/media/platform/chips-media/wave5/
H A Dwave5-vpu-dec.c108 static int switch_state(struct vpu_instance *inst, enum vpu_instance_state state) in switch_state() argument
114 if (inst->state != VPU_INST_STATE_NONE) in switch_state()
118 if (inst->state != VPU_INST_STATE_OPEN && inst->state != VPU_INST_STATE_STOP) in switch_state()
122 if (inst->state != VPU_INST_STATE_INIT_SEQ) in switch_state()
130 state_to_str(inst->state), state_to_str(state)); in switch_state()
133 dev_dbg(inst->dev->dev, "Switch state from %s to %s.\n", in switch_state()
134 state_to_str(inst->state), state_to_str(state)); in switch_state()
135 inst->state = state; in switch_state()
139 static int set_instance_state(struct vpu_instance *inst, enu argument
151 wave5_vpu_dec_set_eos_on_firmware(struct vpu_instance * inst) wave5_vpu_dec_set_eos_on_firmware() argument
179 wave5_handle_src_buffer(struct vpu_instance * inst,dma_addr_t rd_ptr) wave5_handle_src_buffer() argument
230 start_decode(struct vpu_instance * inst,u32 * fail_res) start_decode() argument
251 flag_last_buffer_done(struct vpu_instance * inst) flag_last_buffer_done() argument
273 send_eos_event(struct vpu_instance * inst) send_eos_event() argument
286 handle_dynamic_resolution_change(struct vpu_instance * inst) handle_dynamic_resolution_change() argument
355 wave5_vpu_dec_finish_decode(struct vpu_instance * inst) wave5_vpu_dec_finish_decode() argument
519 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_dec_try_fmt_cap() local
560 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_dec_s_fmt_cap() local
619 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_dec_g_fmt_cap() local
643 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_dec_enum_fmt_out() local
660 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_dec_try_fmt_out() local
691 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_dec_s_fmt_out() local
740 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_dec_g_selection() local
774 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_dec_s_selection() local
793 wave5_vpu_dec_stop(struct vpu_instance * inst) wave5_vpu_dec_stop() argument
858 wave5_vpu_dec_start(struct vpu_instance * inst) wave5_vpu_dec_start() argument
885 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_dec_decoder_cmd() local
953 struct vpu_instance *inst = vb2_get_drv_priv(q); wave5_vpu_dec_queue_setup() local
979 wave5_prepare_fb(struct vpu_instance * inst) wave5_prepare_fb() argument
1129 write_to_ringbuffer(struct vpu_instance * inst,void * buffer,size_t buffer_size,struct vpu_buf * ring_buffer,dma_addr_t wr_ptr) write_to_ringbuffer() argument
1156 inst_src_buf_remove(struct vpu_instance * inst) inst_src_buf_remove() argument
1175 fill_ringbuffer(struct vpu_instance * inst) fill_ringbuffer() argument
1261 struct vpu_instance *inst = vb2_get_drv_priv(vb->vb2_queue); wave5_vpu_dec_buf_queue_src() local
1281 struct vpu_instance *inst = vb2_get_drv_priv(vb->vb2_queue); wave5_vpu_dec_buf_queue_dst() local
1323 struct vpu_instance *inst = vb2_get_drv_priv(vb->vb2_queue); wave5_vpu_dec_buf_queue() local
1338 wave5_vpu_dec_allocate_ring_buffer(struct vpu_instance * inst) wave5_vpu_dec_allocate_ring_buffer() argument
1358 struct vpu_instance *inst = vb2_get_drv_priv(q); wave5_vpu_dec_start_streaming() local
1422 struct vpu_instance *inst = vb2_get_drv_priv(q); streamoff_output() local
1476 struct vpu_instance *inst = vb2_get_drv_priv(q); streamoff_capture() local
1518 struct vpu_instance *inst = vb2_get_drv_priv(q); wave5_vpu_dec_stop_streaming() local
1583 initialize_sequence(struct vpu_instance * inst) initialize_sequence() argument
1613 wave5_is_draining_or_eos(struct vpu_instance * inst) wave5_is_draining_or_eos() argument
1623 struct vpu_instance *inst = priv; wave5_vpu_dec_device_run() local
1740 struct vpu_instance *inst = priv; wave5_vpu_dec_job_abort() local
1758 struct vpu_instance *inst = priv; wave5_vpu_dec_job_ready() local
1821 struct vpu_instance *inst = NULL; wave5_vpu_open_dec() local
[all...]
H A Dwave5-vpu-enc.c96 static int switch_state(struct vpu_instance *inst, enum vpu_instance_state state) in switch_state() argument
102 if (inst->state != VPU_INST_STATE_NONE) in switch_state()
106 if (inst->state != VPU_INST_STATE_OPEN && inst->state != VPU_INST_STATE_STOP) in switch_state()
110 if (inst->state != VPU_INST_STATE_INIT_SEQ) in switch_state()
117 dev_dbg(inst->dev->dev, "Switch state from %s to %s.\n", in switch_state()
118 state_to_str(inst->state), state_to_str(state)); in switch_state()
119 inst->state = state; in switch_state()
124 state_to_str(inst->state), state_to_str(state)); in switch_state()
128 static int start_encode(struct vpu_instance *inst, u3 argument
241 wave5_vpu_enc_finish_encode(struct vpu_instance * inst) wave5_vpu_enc_finish_encode() argument
363 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_enc_enum_fmt_cap() local
380 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_enc_try_fmt_cap() local
414 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_enc_s_fmt_cap() local
448 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_enc_g_fmt_cap() local
472 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_enc_enum_fmt_out() local
489 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_enc_try_fmt_out() local
518 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_enc_s_fmt_out() local
579 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_enc_g_selection() local
608 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_enc_s_selection() local
631 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_enc_encoder_cmd() local
666 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_enc_g_parm() local
686 struct vpu_instance *inst = file_to_vpu_inst(file); wave5_vpu_enc_s_parm() local
748 struct vpu_instance *inst = wave5_ctrl_to_vpu_inst(ctrl); wave5_vpu_enc_s_ctrl() local
1095 struct vpu_instance *inst = vb2_get_drv_priv(q); wave5_vpu_enc_queue_setup() local
1127 struct vpu_instance *inst = vb2_get_drv_priv(vb->vb2_queue); wave5_vpu_enc_buf_queue() local
1143 wave5_set_enc_openparam(struct enc_open_param * open_param,struct vpu_instance * inst) wave5_set_enc_openparam() argument
1251 initialize_sequence(struct vpu_instance * inst) initialize_sequence() argument
1289 prepare_fb(struct vpu_instance * inst) prepare_fb() argument
1332 struct vpu_instance *inst = vb2_get_drv_priv(q); wave5_vpu_enc_start_streaming() local
1405 streamoff_output(struct vpu_instance * inst,struct vb2_queue * q) streamoff_output() argument
1417 streamoff_capture(struct vpu_instance * inst,struct vb2_queue * q) streamoff_capture() argument
1434 struct vpu_instance *inst = vb2_get_drv_priv(q); wave5_vpu_enc_stop_streaming() local
1504 struct vpu_instance *inst = priv; wave5_vpu_enc_device_run() local
1537 struct vpu_instance *inst = priv; wave5_vpu_enc_job_ready() local
1570 struct vpu_instance *inst = NULL; wave5_vpu_open_enc() local
[all...]
/linux/drivers/media/platform/mediatek/vcodec/encoder/venc/
H A Dvenc_h264_if.c226 static inline u32 h264_read_reg(struct venc_h264_inst *inst, u32 addr) in h264_read_reg() argument
228 return readl(inst->hw_base + addr); in h264_read_reg()
231 static unsigned int h264_get_profile(struct venc_h264_inst *inst, in h264_get_profile() argument
242 mtk_venc_err(inst->ctx, "unsupported CONSTRAINED_BASELINE"); in h264_get_profile()
245 mtk_venc_err(inst->ctx, "unsupported EXTENDED"); in h264_get_profile()
248 mtk_venc_debug(inst->ctx, "unsupported profile %d", profile); in h264_get_profile()
253 static unsigned int h264_get_level(struct venc_h264_inst *inst, in h264_get_level() argument
258 mtk_venc_err(inst->ctx, "unsupported 1B"); in h264_get_level()
291 mtk_venc_debug(inst->ctx, "unsupported level %d", level); in h264_get_level()
296 static void h264_enc_free_work_buf(struct venc_h264_inst *inst) in h264_enc_free_work_buf() argument
312 h264_enc_alloc_work_buf(struct venc_h264_inst * inst,bool is_34bit) h264_enc_alloc_work_buf() argument
409 h264_enc_wait_venc_done(struct venc_h264_inst * inst) h264_enc_wait_venc_done() argument
438 h264_encode_sps(struct venc_h264_inst * inst,struct mtk_vcodec_mem * bs_buf,unsigned int * bs_size) h264_encode_sps() argument
461 h264_encode_pps(struct venc_h264_inst * inst,struct mtk_vcodec_mem * bs_buf,unsigned int * bs_size) h264_encode_pps() argument
484 h264_encode_header(struct venc_h264_inst * inst,struct mtk_vcodec_mem * bs_buf,unsigned int * bs_size) h264_encode_header() argument
506 h264_encode_frame(struct venc_h264_inst * inst,struct venc_frm_buf * frm_buf,struct mtk_vcodec_mem * bs_buf,unsigned int * bs_size) h264_encode_frame() argument
569 h264_encode_filler(struct venc_h264_inst * inst,void * buf,int size) h264_encode_filler() argument
589 struct venc_h264_inst *inst; h264_enc_init() local
626 struct venc_h264_inst *inst = (struct venc_h264_inst *)handle; h264_enc_encode() local
713 h264_enc_set_vsi_configs(struct venc_h264_inst * inst,struct venc_enc_param * enc_prm) h264_enc_set_vsi_configs() argument
732 h264_enc_set_vsi_34_configs(struct venc_h264_inst * inst,struct venc_enc_param * enc_prm) h264_enc_set_vsi_34_configs() argument
756 struct venc_h264_inst *inst = (struct venc_h264_inst *)handle; h264_enc_set_param() local
802 struct venc_h264_inst *inst = (struct venc_h264_inst *)handle; h264_enc_deinit() local
[all...]
H A Dvenc_vp8_if.c134 static inline u32 vp8_enc_read_reg(struct venc_vp8_inst *inst, u32 addr) in vp8_enc_read_reg() argument
136 return readl(inst->hw_base + addr); in vp8_enc_read_reg()
139 static void vp8_enc_free_work_buf(struct venc_vp8_inst *inst) in vp8_enc_free_work_buf() argument
145 if (inst->work_bufs[i].size == 0) in vp8_enc_free_work_buf()
147 mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]); in vp8_enc_free_work_buf()
151 static int vp8_enc_alloc_work_buf(struct venc_vp8_inst *inst) in vp8_enc_alloc_work_buf() argument
155 struct venc_vp8_vpu_buf *wb = inst->vsi->work_bufs; in vp8_enc_alloc_work_buf()
170 inst->work_bufs[i].size = wb[i].size; in vp8_enc_alloc_work_buf()
171 ret = mtk_vcodec_mem_alloc(inst in vp8_enc_alloc_work_buf()
208 vp8_enc_wait_venc_done(struct venc_vp8_inst * inst) vp8_enc_wait_venc_done() argument
225 vp8_enc_compose_one_frame(struct venc_vp8_inst * inst,struct mtk_vcodec_mem * bs_buf,unsigned int * bs_size) vp8_enc_compose_one_frame() argument
283 vp8_enc_encode_frame(struct venc_vp8_inst * inst,struct venc_frm_buf * frm_buf,struct mtk_vcodec_mem * bs_buf,unsigned int * bs_size) vp8_enc_encode_frame() argument
317 struct venc_vp8_inst *inst; vp8_enc_init() local
347 struct venc_vp8_inst *inst = (struct venc_vp8_inst *)handle; vp8_enc_encode() local
378 struct venc_vp8_inst *inst = (struct venc_vp8_inst *)handle; vp8_enc_set_param() local
425 struct venc_vp8_inst *inst = (struct venc_vp8_inst *)handle; vp8_enc_deinit() local
[all...]
/linux/drivers/media/platform/amphion/
H A Dvpu_cmds.c80 static struct vpu_cmd_t *vpu_alloc_cmd(struct vpu_inst *inst, u32 id, void *data) in vpu_alloc_cmd() argument
97 ret = vpu_iface_pack_cmd(inst->core, cmd->pkt, inst->id, id, data); in vpu_alloc_cmd()
99 dev_err(inst->dev, "iface pack cmd %s fail\n", vpu_id_name(id)); in vpu_alloc_cmd()
124 static int vpu_session_process_cmd(struct vpu_inst *inst, struct vpu_cmd_t *cmd) in vpu_session_process_cmd() argument
128 dev_dbg(inst->dev, "[%d]send cmd %s\n", inst->id, vpu_id_name(cmd->id)); in vpu_session_process_cmd()
129 vpu_iface_pre_send_cmd(inst); in vpu_session_process_cmd()
130 ret = vpu_cmd_send(inst->core, cmd->pkt); in vpu_session_process_cmd()
132 vpu_iface_post_send_cmd(inst); in vpu_session_process_cmd()
141 vpu_process_cmd_request(struct vpu_inst * inst) vpu_process_cmd_request() argument
162 vpu_request_cmd(struct vpu_inst * inst,u32 id,void * data,unsigned long * key,int * sync) vpu_request_cmd() argument
190 vpu_clear_pending(struct vpu_inst * inst) vpu_clear_pending() argument
216 vpu_response_cmd(struct vpu_inst * inst,u32 response,u32 handled) vpu_response_cmd() argument
234 vpu_clear_request(struct vpu_inst * inst) vpu_clear_request() argument
250 check_is_responsed(struct vpu_inst * inst,unsigned long key) check_is_responsed() argument
260 sync_session_response(struct vpu_inst * inst,unsigned long key,long timeout,int try) sync_session_response() argument
301 vpu_session_send_cmd(struct vpu_inst * inst,u32 id,void * data) vpu_session_send_cmd() argument
336 vpu_session_configure_codec(struct vpu_inst * inst) vpu_session_configure_codec() argument
341 vpu_session_start(struct vpu_inst * inst) vpu_session_start() argument
348 vpu_session_stop(struct vpu_inst * inst) vpu_session_stop() argument
363 vpu_session_encode_frame(struct vpu_inst * inst,s64 timestamp) vpu_session_encode_frame() argument
368 vpu_session_alloc_fs(struct vpu_inst * inst,struct vpu_fs_info * fs) vpu_session_alloc_fs() argument
373 vpu_session_release_fs(struct vpu_inst * inst,struct vpu_fs_info * fs) vpu_session_release_fs() argument
378 vpu_session_abort(struct vpu_inst * inst) vpu_session_abort() argument
383 vpu_session_rst_buf(struct vpu_inst * inst) vpu_session_rst_buf() argument
388 vpu_session_fill_timestamp(struct vpu_inst * inst,struct vpu_ts_info * info) vpu_session_fill_timestamp() argument
393 vpu_session_update_parameters(struct vpu_inst * inst,void * arg) vpu_session_update_parameters() argument
403 vpu_session_debug(struct vpu_inst * inst) vpu_session_debug() argument
410 struct vpu_inst *inst; vpu_core_snapshot() local
[all...]
H A Dvdec.c202 struct vpu_inst *inst = ctrl_to_inst(ctrl); in vdec_op_s_ctrl() local
203 struct vdec_t *vdec = inst->priv; in vdec_op_s_ctrl()
226 static int vdec_ctrl_init(struct vpu_inst *inst) in vdec_ctrl_init() argument
231 ret = v4l2_ctrl_handler_init(&inst->ctrl_handler, 20); in vdec_ctrl_init()
235 v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
239 v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
243 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, NULL, in vdec_ctrl_init()
253 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, NULL, in vdec_ctrl_init()
259 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, NULL, in vdec_ctrl_init()
266 v4l2_ctrl_new_std_menu(&inst in vdec_ctrl_init()
298 vdec_attach_frame_store(struct vpu_inst * inst,struct vb2_buffer * vb) vdec_attach_frame_store() argument
344 vdec_reset_frame_store(struct vpu_inst * inst) vdec_reset_frame_store() argument
355 vdec_handle_resolution_change(struct vpu_inst * inst) vdec_handle_resolution_change() argument
377 vdec_update_state(struct vpu_inst * inst,enum vpu_codec_state state,u32 force) vdec_update_state() argument
403 vdec_set_last_buffer_dequeued(struct vpu_inst * inst) vdec_set_last_buffer_dequeued() argument
429 struct vpu_inst *inst = to_inst(file); vdec_enum_fmt() local
458 struct vpu_inst *inst = to_inst(file); vdec_g_fmt() local
489 struct vpu_inst *inst = to_inst(file); vdec_try_fmt() local
520 vdec_s_fmt_common(struct vpu_inst * inst,struct v4l2_format * f) vdec_s_fmt_common() argument
593 struct vpu_inst *inst = to_inst(file); vdec_s_fmt() local
626 struct vpu_inst *inst = to_inst(file); vdec_g_selection() local
650 vdec_drain(struct vpu_inst * inst) vdec_drain() argument
677 vdec_cmd_start(struct vpu_inst * inst) vdec_cmd_start() argument
696 vdec_cmd_stop(struct vpu_inst * inst) vdec_cmd_stop() argument
714 struct vpu_inst *inst = to_inst(file); vdec_decoder_cmd() local
780 vdec_check_ready(struct vpu_inst * inst,unsigned int type) vdec_check_ready() argument
793 vdec_get_src_buffer(struct vpu_inst * inst,u32 count) vdec_get_src_buffer() argument
801 vdec_frame_decoded(struct vpu_inst * inst,void * arg) vdec_frame_decoded() argument
859 vdec_find_buffer(struct vpu_inst * inst,u32 luma) vdec_find_buffer() argument
874 vdec_buf_done(struct vpu_inst * inst,struct vpu_frame_info * frame) vdec_buf_done() argument
928 vdec_stop_done(struct vpu_inst * inst) vdec_stop_done() argument
951 vdec_check_source_change(struct vpu_inst * inst,struct vpu_dec_codec_info * hdr) vdec_check_source_change() argument
997 vdec_init_fmt(struct vpu_inst * inst) vdec_init_fmt() argument
1017 vdec_init_crop(struct vpu_inst * inst) vdec_init_crop() argument
1027 vdec_init_mbi(struct vpu_inst * inst) vdec_init_mbi() argument
1038 vdec_init_dcp(struct vpu_inst * inst) vdec_init_dcp() argument
1056 vdec_alloc_fs_buffer(struct vpu_inst * inst,struct vdec_fs_info * fs) vdec_alloc_fs_buffer() argument
1075 vdec_alloc_fs(struct vpu_inst * inst,struct vdec_fs_info * fs) vdec_alloc_fs() argument
1099 vdec_response_fs(struct vpu_inst * inst,struct vdec_fs_info * fs) vdec_response_fs() argument
1121 vdec_response_frame_abnormal(struct vpu_inst * inst) vdec_response_frame_abnormal() argument
1141 vdec_response_frame(struct vpu_inst * inst,struct vb2_v4l2_buffer * vbuf) vdec_response_frame() argument
1210 vdec_response_fs_request(struct vpu_inst * inst,bool force) vdec_response_fs_request() argument
1244 vdec_response_fs_release(struct vpu_inst * inst,u32 id,u32 tag) vdec_response_fs_release() argument
1254 vdec_recycle_buffer(struct vpu_inst * inst,struct vb2_v4l2_buffer * vbuf) vdec_recycle_buffer() argument
1265 vdec_release_curr_frame_store(struct vpu_inst * inst,u32 id) vdec_release_curr_frame_store() argument
1295 vdec_clear_slots(struct vpu_inst * inst) vdec_clear_slots() argument
1309 vdec_update_v4l2_ctrl(struct vpu_inst * inst,u32 id,u32 val) vdec_update_v4l2_ctrl() argument
1317 vdec_update_v4l2_profile_level(struct vpu_inst * inst,struct vpu_dec_codec_info * hdr) vdec_update_v4l2_profile_level() argument
1338 vdec_event_seq_hdr(struct vpu_inst * inst,struct vpu_dec_codec_info * hdr) vdec_event_seq_hdr() argument
1386 vdec_event_resolution_change(struct vpu_inst * inst) vdec_event_resolution_change() argument
1412 vdec_event_req_fs(struct vpu_inst * inst,struct vpu_fs_info * fs) vdec_event_req_fs() argument
1443 vdec_evnet_rel_fs(struct vpu_inst * inst,struct vpu_fs_info * fs) vdec_evnet_rel_fs() argument
1475 vdec_event_eos(struct vpu_inst * inst) vdec_event_eos() argument
1493 vdec_event_notify(struct vpu_inst * inst,u32 event,void * data) vdec_event_notify() argument
1516 vdec_process_output(struct vpu_inst * inst,struct vb2_buffer * vb) vdec_process_output() argument
1558 vdec_process_capture(struct vpu_inst * inst,struct vb2_buffer * vb) vdec_process_capture() argument
1576 vdec_on_queue_empty(struct vpu_inst * inst,u32 type) vdec_on_queue_empty() argument
1588 vdec_abort(struct vpu_inst * inst) vdec_abort() argument
1626 vdec_stop(struct vpu_inst * inst,bool free) vdec_stop() argument
1643 vdec_release(struct vpu_inst * inst) vdec_release() argument
1650 vdec_cleanup(struct vpu_inst * inst) vdec_cleanup() argument
1674 vdec_start(struct vpu_inst * inst) vdec_start() argument
1733 vdec_start_session(struct vpu_inst * inst,u32 type) vdec_start_session() argument
1761 vdec_stop_session(struct vpu_inst * inst,u32 type) vdec_stop_session() argument
1784 vdec_get_slot_debug_info(struct vpu_inst * inst,char * str,u32 size,u32 i) vdec_get_slot_debug_info() argument
1816 vdec_get_debug_info(struct vpu_inst * inst,char * str,u32 size,u32 i) vdec_get_debug_info() argument
1904 struct vpu_inst *inst = to_inst(file); vdec_init() local
1926 struct vpu_inst *inst; vdec_open() local
[all...]
H A Dvpu_msgs.c25 void (*done)(struct vpu_inst *inst, struct vpu_rpc_event *pkt);
29 static void vpu_session_handle_start_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_start_done() argument
31 vpu_trace(inst->dev, "[%d]\n", inst->id); in vpu_session_handle_start_done()
34 static void vpu_session_handle_mem_request(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_mem_request() argument
38 vpu_iface_unpack_msg_data(inst->core, pkt, (void *)&req_data); in vpu_session_handle_mem_request()
39 vpu_trace(inst->dev, "[%d] %d:%d %d:%d %d:%d\n", in vpu_session_handle_mem_request()
40 inst->id, in vpu_session_handle_mem_request()
47 vpu_inst_lock(inst); in vpu_session_handle_mem_request()
48 call_void_vop(inst, mem_request, in vpu_session_handle_mem_request()
55 vpu_inst_unlock(inst); in vpu_session_handle_mem_request()
[all …]
/linux/drivers/media/platform/qcom/iris/
H A Diris_hfi_gen2_command.c92 static u32 iris_hfi_gen2_get_port(struct iris_inst *inst, u32 plane) in iris_hfi_gen2_get_port() argument
94 if (inst->domain == DECODER) { in iris_hfi_gen2_get_port()
115 static u32 iris_hfi_gen2_get_port_from_buf_type(struct iris_inst *inst, in iris_hfi_gen2_get_port_from_buf_type() argument
118 if (inst->domain == DECODER) { in iris_hfi_gen2_get_port_from_buf_type()
153 static int iris_hfi_gen2_session_set_property(struct iris_inst *inst, u32 packet_type, u32 flag, in iris_hfi_gen2_session_set_property() argument
157 struct iris_inst_hfi_gen2 *inst_hfi_gen2 = to_iris_inst_hfi_gen2(inst); in iris_hfi_gen2_session_set_property()
159 iris_hfi_gen2_packet_session_property(inst, in iris_hfi_gen2_session_set_property()
167 return iris_hfi_queue_cmd_write(inst->core, inst_hfi_gen2->packet, in iris_hfi_gen2_session_set_property()
171 static int iris_hfi_gen2_set_raw_resolution(struct iris_inst *inst, u32 plane) in iris_hfi_gen2_set_raw_resolution() argument
173 u32 resolution = inst in iris_hfi_gen2_set_raw_resolution()
185 iris_hfi_get_aligned_resolution(struct iris_inst * inst,u32 width,u32 height) iris_hfi_get_aligned_resolution() argument
192 iris_hfi_gen2_set_bitstream_resolution(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_bitstream_resolution() argument
228 iris_hfi_gen2_set_crop_offsets(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_crop_offsets() argument
286 iris_hfi_gen2_set_bit_depth(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_bit_depth() argument
303 iris_hfi_gen2_set_coded_frames(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_coded_frames() argument
322 iris_hfi_gen2_set_min_output_count(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_min_output_count() argument
339 iris_hfi_gen2_set_picture_order_count(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_picture_order_count() argument
356 iris_hfi_gen2_set_colorspace(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_colorspace() argument
399 iris_hfi_gen2_set_profile(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_profile() argument
431 iris_hfi_gen2_set_level(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_level() argument
463 iris_hfi_gen2_set_opb_enable(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_opb_enable() argument
477 iris_hfi_gen2_set_colorformat(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_colorformat() argument
501 iris_hfi_gen2_set_linear_stride_scanline(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_linear_stride_scanline() argument
535 iris_hfi_gen2_set_tier(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_tier() argument
554 iris_hfi_gen2_set_frame_rate(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_frame_rate() argument
568 iris_hfi_gen2_set_film_grain(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_film_grain() argument
585 iris_hfi_gen2_set_super_block(struct iris_inst * inst,u32 plane) iris_hfi_gen2_set_super_block() argument
602 iris_hfi_gen2_session_set_config_params(struct iris_inst * inst,u32 plane) iris_hfi_gen2_session_set_config_params() argument
678 iris_hfi_gen2_session_set_codec(struct iris_inst * inst) iris_hfi_gen2_session_set_codec() argument
715 iris_hfi_gen2_session_set_default_header(struct iris_inst * inst) iris_hfi_gen2_session_set_default_header() argument
732 iris_hfi_gen2_session_open(struct iris_inst * inst) iris_hfi_gen2_session_open() argument
781 iris_hfi_gen2_session_close(struct iris_inst * inst) iris_hfi_gen2_session_close() argument
809 iris_hfi_gen2_session_subscribe_mode(struct iris_inst * inst,u32 cmd,u32 plane,u32 payload_type,void * payload,u32 payload_size) iris_hfi_gen2_session_subscribe_mode() argument
829 iris_hfi_gen2_subscribe_change_param(struct iris_inst * inst,u32 plane) iris_hfi_gen2_subscribe_change_param() argument
986 iris_hfi_gen2_subscribe_property(struct iris_inst * inst,u32 plane) iris_hfi_gen2_subscribe_property() argument
1037 iris_hfi_gen2_session_start(struct iris_inst * inst,u32 plane) iris_hfi_gen2_session_start() argument
1064 iris_hfi_gen2_session_stop(struct iris_inst * inst,u32 plane) iris_hfi_gen2_session_stop() argument
1093 iris_hfi_gen2_session_pause(struct iris_inst * inst,u32 plane) iris_hfi_gen2_session_pause() argument
1111 iris_hfi_gen2_session_resume_drc(struct iris_inst * inst,u32 plane) iris_hfi_gen2_session_resume_drc() argument
1130 iris_hfi_gen2_session_resume_drain(struct iris_inst * inst,u32 plane) iris_hfi_gen2_session_resume_drain() argument
1149 iris_hfi_gen2_session_drain(struct iris_inst * inst,u32 plane) iris_hfi_gen2_session_drain() argument
1208 iris_set_num_comv(struct iris_inst * inst) iris_set_num_comv() argument
1251 iris_hfi_gen2_session_queue_buffer(struct iris_inst * inst,struct iris_buffer * buffer) iris_hfi_gen2_session_queue_buffer() argument
1279 iris_hfi_gen2_session_release_buffer(struct iris_inst * inst,struct iris_buffer * buffer) iris_hfi_gen2_session_release_buffer() argument
[all...]
H A Diris_vdec.c19 int iris_vdec_inst_init(struct iris_inst *inst) in iris_vdec_inst_init() argument
21 struct iris_core *core = inst->core; in iris_vdec_inst_init()
24 inst->fmt_src = kzalloc_obj(*inst->fmt_src); in iris_vdec_inst_init()
25 inst->fmt_dst = kzalloc_obj(*inst->fmt_dst); in iris_vdec_inst_init()
27 inst->fw_min_count = MIN_BUFFERS; in iris_vdec_inst_init()
29 f = inst->fmt_src; in iris_vdec_inst_init()
34 inst->codec = f->fmt.pix_mp.pixelformat; in iris_vdec_inst_init()
37 f->fmt.pix_mp.plane_fmt[0].sizeimage = iris_get_buffer_size(inst, BUF_INPU in iris_vdec_inst_init()
64 iris_vdec_inst_deinit(struct iris_inst * inst) iris_vdec_inst_deinit() argument
82 find_format(struct iris_inst * inst,u32 pixfmt,u32 type) find_format() argument
112 find_format_by_index(struct iris_inst * inst,u32 index,u32 type) find_format_by_index() argument
136 iris_vdec_enum_fmt(struct iris_inst * inst,struct v4l2_fmtdesc * f) iris_vdec_enum_fmt() argument
162 iris_vdec_try_fmt(struct iris_inst * inst,struct v4l2_format * f) iris_vdec_try_fmt() argument
208 iris_vdec_s_fmt(struct iris_inst * inst,struct v4l2_format * f) iris_vdec_s_fmt() argument
296 iris_vdec_validate_format(struct iris_inst * inst,u32 pixelformat) iris_vdec_validate_format() argument
310 iris_vdec_subscribe_event(struct iris_inst * inst,const struct v4l2_event_subscription * sub) iris_vdec_subscribe_event() argument
331 iris_vdec_src_change(struct iris_inst * inst) iris_vdec_src_change() argument
346 iris_vdec_streamon_input(struct iris_inst * inst) iris_vdec_streamon_input() argument
375 iris_vdec_streamon_output(struct iris_inst * inst) iris_vdec_streamon_output() argument
410 iris_vdec_qbuf(struct iris_inst * inst,struct vb2_v4l2_buffer * vbuf) iris_vdec_qbuf() argument
435 iris_vdec_start_cmd(struct iris_inst * inst) iris_vdec_start_cmd() argument
498 iris_vdec_stop_cmd(struct iris_inst * inst) iris_vdec_stop_cmd() argument
[all...]
H A Diris_venc.c17 int iris_venc_inst_init(struct iris_inst *inst) in iris_venc_inst_init() argument
19 struct iris_core *core = inst->core; in iris_venc_inst_init()
22 inst->fmt_src = kzalloc_obj(*inst->fmt_src); in iris_venc_inst_init()
23 inst->fmt_dst = kzalloc_obj(*inst->fmt_dst); in iris_venc_inst_init()
24 if (!inst->fmt_src || !inst->fmt_dst) { in iris_venc_inst_init()
25 kfree(inst->fmt_src); in iris_venc_inst_init()
26 kfree(inst in iris_venc_inst_init()
82 iris_venc_inst_deinit(struct iris_inst * inst) iris_venc_inst_deinit() argument
111 find_format(struct iris_inst * inst,u32 pixfmt,u32 type) find_format() argument
141 find_format_by_index(struct iris_inst * inst,u32 index,u32 type) find_format_by_index() argument
165 iris_venc_enum_fmt(struct iris_inst * inst,struct v4l2_fmtdesc * f) iris_venc_enum_fmt() argument
192 iris_venc_try_fmt(struct iris_inst * inst,struct v4l2_format * f) iris_venc_try_fmt() argument
229 iris_venc_s_fmt_output(struct iris_inst * inst,struct v4l2_format * f) iris_venc_s_fmt_output() argument
278 iris_venc_s_fmt_input(struct iris_inst * inst,struct v4l2_format * f) iris_venc_s_fmt_input() argument
332 iris_venc_s_fmt(struct iris_inst * inst,struct v4l2_format * f) iris_venc_s_fmt() argument
351 iris_venc_validate_format(struct iris_inst * inst,u32 pixelformat) iris_venc_validate_format() argument
365 iris_venc_subscribe_event(struct iris_inst * inst,const struct v4l2_event_subscription * sub) iris_venc_subscribe_event() argument
378 iris_venc_s_selection(struct iris_inst * inst,struct v4l2_selection * s) iris_venc_s_selection() argument
404 iris_venc_s_param(struct iris_inst * inst,struct v4l2_streamparm * s_parm) iris_venc_s_param() argument
471 iris_venc_g_param(struct iris_inst * inst,struct v4l2_streamparm * s_parm) iris_venc_g_param() argument
490 iris_venc_streamon_input(struct iris_inst * inst) iris_venc_streamon_input() argument
519 iris_venc_streamon_output(struct iris_inst * inst) iris_venc_streamon_output() argument
557 iris_venc_qbuf(struct iris_inst * inst,struct vb2_v4l2_buffer * vbuf) iris_venc_qbuf() argument
582 iris_venc_start_cmd(struct iris_inst * inst) iris_venc_start_cmd() argument
624 iris_venc_stop_cmd(struct iris_inst * inst) iris_venc_stop_cmd() argument
[all...]
H A Diris_buffer.c63 static u32 iris_yuv_buffer_size_nv12(struct iris_inst *inst) in iris_yuv_buffer_size_nv12() argument
68 if (inst->domain == DECODER) in iris_yuv_buffer_size_nv12()
69 f = inst->fmt_dst; in iris_yuv_buffer_size_nv12()
71 f = inst->fmt_src; in iris_yuv_buffer_size_nv12()
171 static u32 iris_yuv_buffer_size_qc08c(struct iris_inst *inst) in iris_yuv_buffer_size_qc08c() argument
178 if (inst->domain == DECODER) in iris_yuv_buffer_size_qc08c()
179 f = inst->fmt_dst; in iris_yuv_buffer_size_qc08c()
181 f = inst->fmt_src; in iris_yuv_buffer_size_qc08c()
207 static u32 iris_dec_bitstream_buffer_size(struct iris_inst *inst) in iris_dec_bitstream_buffer_size() argument
209 struct platform_inst_caps *caps = inst in iris_dec_bitstream_buffer_size()
232 iris_enc_bitstream_buffer_size(struct iris_inst * inst) iris_enc_bitstream_buffer_size() argument
261 iris_get_buffer_size(struct iris_inst * inst,enum iris_buffer_type buffer_type) iris_get_buffer_size() argument
293 iris_fill_internal_buf_info(struct iris_inst * inst,enum iris_buffer_type buffer_type) iris_fill_internal_buf_info() argument
302 iris_get_internal_buffers(struct iris_inst * inst,u32 plane) iris_get_internal_buffers() argument
335 iris_create_internal_buffer(struct iris_inst * inst,enum iris_buffer_type buffer_type,u32 index) iris_create_internal_buffer() argument
367 iris_create_internal_buffers(struct iris_inst * inst,u32 plane) iris_create_internal_buffers() argument
405 iris_queue_buffer(struct iris_inst * inst,struct iris_buffer * buf) iris_queue_buffer() argument
420 iris_queue_internal_deferred_buffers(struct iris_inst * inst,enum iris_buffer_type buffer_type) iris_queue_internal_deferred_buffers() argument
443 iris_queue_internal_buffers(struct iris_inst * inst,u32 plane) iris_queue_internal_buffers() argument
490 iris_destroy_internal_buffer(struct iris_inst * inst,struct iris_buffer * buffer) iris_destroy_internal_buffer() argument
502 iris_destroy_internal_buffers(struct iris_inst * inst,u32 plane,bool force) iris_destroy_internal_buffers() argument
562 iris_destroy_all_internal_buffers(struct iris_inst * inst,u32 plane) iris_destroy_all_internal_buffers() argument
567 iris_destroy_dequeued_internal_buffers(struct iris_inst * inst,u32 plane) iris_destroy_dequeued_internal_buffers() argument
572 iris_release_internal_buffers(struct iris_inst * inst,enum iris_buffer_type buffer_type) iris_release_internal_buffers() argument
594 iris_release_input_internal_buffers(struct iris_inst * inst) iris_release_input_internal_buffers() argument
618 iris_alloc_and_queue_persist_bufs(struct iris_inst * inst,enum iris_buffer_type buffer_type) iris_alloc_and_queue_persist_bufs() argument
649 iris_alloc_and_queue_input_int_bufs(struct iris_inst * inst) iris_alloc_and_queue_input_int_bufs() argument
666 iris_queue_deferred_buffers(struct iris_inst * inst,enum iris_buffer_type buf_type) iris_queue_deferred_buffers() argument
698 iris_vb2_queue_error(struct iris_inst * inst) iris_vb2_queue_error() argument
710 iris_helper_find_buf(struct iris_inst * inst,u32 type,u32 idx) iris_helper_find_buf() argument
720 iris_get_ts_metadata(struct iris_inst * inst,u64 timestamp_ns,struct vb2_v4l2_buffer * vbuf) iris_get_ts_metadata() argument
741 iris_vb2_buffer_done(struct iris_inst * inst,struct iris_buffer * buf) iris_vb2_buffer_done() argument
[all...]
/linux/arch/powerpc/include/asm/
H A Ddisassemble.h14 static inline unsigned int get_op(u32 inst) in get_op() argument
16 return inst >> 26; in get_op()
19 static inline unsigned int get_xop(u32 inst) in get_xop() argument
21 return (inst >> 1) & 0x3ff; in get_xop()
24 static inline unsigned int get_sprn(u32 inst) in get_sprn() argument
26 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_sprn()
29 static inline unsigned int get_dcrn(u32 inst) in get_dcrn() argument
31 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_dcrn()
34 static inline unsigned int get_tmrn(u32 inst) in get_tmrn() argument
36 return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); in get_tmrn()
[all …]
/linux/net/netfilter/
H A Dnfnetlink_log.c109 struct nfulnl_instance *inst; in __instance_lookup() local
112 hlist_for_each_entry_rcu(inst, head, hlist) { in __instance_lookup()
113 if (inst->group_num == group_num) in __instance_lookup()
114 return inst; in __instance_lookup()
120 instance_get(struct nfulnl_instance *inst) in instance_get() argument
122 refcount_inc(&inst->use); in instance_get()
128 struct nfulnl_instance *inst; in instance_lookup_get_rcu() local
130 inst = __instance_lookup(log, group_num); in instance_lookup_get_rcu()
131 if (inst && !refcount_inc_not_zero(&inst->use)) in instance_lookup_get_rcu()
132 inst = NULL; in instance_lookup_get_rcu()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dnv25.c37 &chan->inst); in nv25_gr_chan_new()
41 nvkm_kmap(chan->inst); in nv25_gr_chan_new()
42 nvkm_wo32(chan->inst, 0x0028, 0x00000001 | (chan->chid << 24)); in nv25_gr_chan_new()
43 nvkm_wo32(chan->inst, 0x035c, 0xffff0000); in nv25_gr_chan_new()
44 nvkm_wo32(chan->inst, 0x03c0, 0x0fff0000); in nv25_gr_chan_new()
45 nvkm_wo32(chan->inst, 0x03c4, 0x0fff0000); in nv25_gr_chan_new()
46 nvkm_wo32(chan->inst, 0x049c, 0x00000101); in nv25_gr_chan_new()
47 nvkm_wo32(chan->inst, 0x04b0, 0x00000111); in nv25_gr_chan_new()
48 nvkm_wo32(chan->inst, 0x04c8, 0x00000080); in nv25_gr_chan_new()
49 nvkm_wo32(chan->inst, in nv25_gr_chan_new()
132 nv25_gr_new(struct nvkm_device * device,enum nvkm_subdev_type type,int inst,struct nvkm_gr ** pgr) nv25_gr_new() argument
[all...]
H A Dnv34.c37 &chan->inst); in nv34_gr_chan_new()
41 nvkm_kmap(chan->inst); in nv34_gr_chan_new()
42 nvkm_wo32(chan->inst, 0x0028, 0x00000001 | (chan->chid << 24)); in nv34_gr_chan_new()
43 nvkm_wo32(chan->inst, 0x040c, 0x01000101); in nv34_gr_chan_new()
44 nvkm_wo32(chan->inst, 0x0420, 0x00000111); in nv34_gr_chan_new()
45 nvkm_wo32(chan->inst, 0x0424, 0x00000060); in nv34_gr_chan_new()
46 nvkm_wo32(chan->inst, 0x0440, 0x00000080); in nv34_gr_chan_new()
47 nvkm_wo32(chan->inst, 0x0444, 0xffff0000); in nv34_gr_chan_new()
48 nvkm_wo32(chan->inst, 0x0448, 0x00000001); in nv34_gr_chan_new()
49 nvkm_wo32(chan->inst, in nv34_gr_chan_new()
134 nv34_gr_new(struct nvkm_device * device,enum nvkm_subdev_type type,int inst,struct nvkm_gr ** pgr) nv34_gr_new() argument
[all...]
H A Dnv35.c37 &chan->inst); in nv35_gr_chan_new()
41 nvkm_kmap(chan->inst); in nv35_gr_chan_new()
42 nvkm_wo32(chan->inst, 0x0028, 0x00000001 | (chan->chid << 24)); in nv35_gr_chan_new()
43 nvkm_wo32(chan->inst, 0x040c, 0x00000101); in nv35_gr_chan_new()
44 nvkm_wo32(chan->inst, 0x0420, 0x00000111); in nv35_gr_chan_new()
45 nvkm_wo32(chan->inst, 0x0424, 0x00000060); in nv35_gr_chan_new()
46 nvkm_wo32(chan->inst, 0x0440, 0x00000080); in nv35_gr_chan_new()
47 nvkm_wo32(chan->inst, 0x0444, 0xffff0000); in nv35_gr_chan_new()
48 nvkm_wo32(chan->inst, 0x0448, 0x00000001); in nv35_gr_chan_new()
49 nvkm_wo32(chan->inst, in nv35_gr_chan_new()
134 nv35_gr_new(struct nvkm_device * device,enum nvkm_subdev_type type,int inst,struct nvkm_gr ** pgr) nv35_gr_new() argument
[all...]

12345678910>>...37