Home
last modified time | relevance | path

Searched refs:inst (Results 1 - 25 of 3204) sorted by relevance

12345678910>>...129

/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/venc/
H A Dvenc_h264_if.c158 static inline u32 h264_read_reg(struct venc_h264_inst *inst, u32 addr) in h264_read_reg() argument
160 return readl(inst->hw_base + addr); in h264_read_reg()
163 static unsigned int h264_get_profile(struct venc_h264_inst *inst, in h264_get_profile() argument
174 mtk_vcodec_err(inst, "unsupported CONSTRAINED_BASELINE"); in h264_get_profile()
177 mtk_vcodec_err(inst, "unsupported EXTENDED"); in h264_get_profile()
180 mtk_vcodec_debug(inst, "unsupported profile %d", profile); in h264_get_profile()
185 static unsigned int h264_get_level(struct venc_h264_inst *inst, in h264_get_level() argument
190 mtk_vcodec_err(inst, "unsupported 1B"); in h264_get_level()
219 mtk_vcodec_debug(inst, "unsupported level %d", level); in h264_get_level()
224 static void h264_enc_free_work_buf(struct venc_h264_inst *inst) in h264_enc_free_work_buf() argument
243 h264_enc_alloc_work_buf(struct venc_h264_inst *inst) h264_enc_alloc_work_buf() argument
328 h264_enc_wait_venc_done(struct venc_h264_inst *inst) h264_enc_wait_venc_done() argument
341 h264_frame_type(struct venc_h264_inst *inst) h264_frame_type() argument
357 h264_encode_sps(struct venc_h264_inst *inst, struct mtk_vcodec_mem *bs_buf, unsigned int *bs_size) h264_encode_sps() argument
384 h264_encode_pps(struct venc_h264_inst *inst, struct mtk_vcodec_mem *bs_buf, unsigned int *bs_size) h264_encode_pps() argument
411 h264_encode_header(struct venc_h264_inst *inst, struct mtk_vcodec_mem *bs_buf, unsigned int *bs_size) h264_encode_header() argument
433 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
484 h264_encode_filler(struct venc_h264_inst *inst, void *buf, int size) h264_encode_filler() argument
504 struct venc_h264_inst *inst; h264_enc_init() local
538 struct venc_h264_inst *inst = (struct venc_h264_inst *)handle; h264_enc_encode() local
631 struct venc_h264_inst *inst = (struct venc_h264_inst *)handle; h264_enc_set_param() local
687 struct venc_h264_inst *inst = (struct venc_h264_inst *)handle; h264_enc_deinit() local
[all...]
H A Dvenc_vp8_if.c135 static inline u32 vp8_enc_read_reg(struct venc_vp8_inst *inst, u32 addr) in vp8_enc_read_reg() argument
137 return readl(inst->hw_base + addr); in vp8_enc_read_reg()
140 static void vp8_enc_free_work_buf(struct venc_vp8_inst *inst) in vp8_enc_free_work_buf() argument
144 mtk_vcodec_debug_enter(inst); in vp8_enc_free_work_buf()
148 if (inst->work_bufs[i].size == 0) in vp8_enc_free_work_buf()
150 mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]); in vp8_enc_free_work_buf()
153 mtk_vcodec_debug_leave(inst); in vp8_enc_free_work_buf()
156 static int vp8_enc_alloc_work_buf(struct venc_vp8_inst *inst) in vp8_enc_alloc_work_buf() argument
160 struct venc_vp8_vpu_buf *wb = inst in vp8_enc_alloc_work_buf()
219 vp8_enc_wait_venc_done(struct venc_vp8_inst *inst) vp8_enc_wait_venc_done() argument
236 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
295 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
331 struct venc_vp8_inst *inst; vp8_enc_init() local
365 struct venc_vp8_inst *inst = (struct venc_vp8_inst *)handle; vp8_enc_encode() local
400 struct venc_vp8_inst *inst = (struct venc_vp8_inst *)handle; vp8_enc_set_param() local
449 struct venc_vp8_inst *inst = (struct venc_vp8_inst *)handle; vp8_enc_deinit() local
[all...]
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_fs_lower_regioning.cpp39 is_byte_raw_mov(const fs_inst *inst) in is_byte_raw_mov() argument
41 return type_sz(inst->dst.type) == 1 && in is_byte_raw_mov()
42 inst->opcode == BRW_OPCODE_MOV && in is_byte_raw_mov()
43 inst->src[0].type == inst->dst.type && in is_byte_raw_mov()
44 !inst->saturate && in is_byte_raw_mov()
45 !inst->src[0].negate && in is_byte_raw_mov()
46 !inst->src[0].abs; in is_byte_raw_mov()
54 required_dst_byte_stride(const fs_inst *inst) in required_dst_byte_stride() argument
56 if (inst in required_dst_byte_stride()
110 required_dst_byte_offset(const fs_inst *inst) required_dst_byte_offset() argument
127 required_exec_type(const intel_device_info *devinfo, const fs_inst *inst) required_exec_type() argument
207 has_invalid_src_region(const intel_device_info *devinfo, const fs_inst *inst, unsigned i) has_invalid_src_region() argument
248 has_invalid_dst_region(const intel_device_info *devinfo, const fs_inst *inst) has_invalid_dst_region() argument
371 lower_src_modifiers(fs_visitor *v, bblock_t *block, fs_inst *inst, unsigned i) lower_src_modifiers() argument
399 lower_dst_modifiers(fs_visitor *v, bblock_t *block, fs_inst *inst) lower_dst_modifiers() argument
448 lower_src_region(fs_visitor *v, bblock_t *block, fs_inst *inst, unsigned i) lower_src_region() argument
490 lower_dst_region(fs_visitor *v, bblock_t *block, fs_inst *inst) lower_dst_region() argument
548 lower_exec_type(fs_visitor *v, bblock_t *block, fs_inst *inst) lower_exec_type() argument
595 lower_instruction(fs_visitor *v, bblock_t *block, fs_inst *inst) lower_instruction() argument
[all...]
H A Dbrw_fs_cmod_propagation.cpp55 fs_inst *inst) in cmod_propagate_cmp_to_add()
58 const unsigned flags_written = inst->flags_written(devinfo); in cmod_propagate_cmp_to_add()
60 foreach_inst_in_block_reverse_starting_from(fs_inst, scan_inst, inst) { in cmod_propagate_cmp_to_add()
63 scan_inst->exec_size == inst->exec_size) { in cmod_propagate_cmp_to_add()
71 if ((inst->src[0].equals(scan_inst->src[0]) && in cmod_propagate_cmp_to_add()
72 inst->src[1].negative_equals(scan_inst->src[1])) || in cmod_propagate_cmp_to_add()
73 (inst->src[0].equals(scan_inst->src[1]) && in cmod_propagate_cmp_to_add()
74 inst->src[1].negative_equals(scan_inst->src[0]))) { in cmod_propagate_cmp_to_add()
76 } else if ((inst->src[0].negative_equals(scan_inst->src[0]) && in cmod_propagate_cmp_to_add()
77 inst in cmod_propagate_cmp_to_add()
54 cmod_propagate_cmp_to_add(const intel_device_info *devinfo, bblock_t *block, fs_inst *inst) cmod_propagate_cmp_to_add() argument
170 cmod_propagate_not(const intel_device_info *devinfo, bblock_t *block, fs_inst *inst) cmod_propagate_not() argument
[all...]
H A Dbrw_lower_logical_sends.cpp34 lower_urb_read_logical_send(const fs_builder &bld, fs_inst *inst) in lower_urb_read_logical_send() argument
38 inst->src[URB_LOGICAL_SRC_PER_SLOT_OFFSETS].file != BAD_FILE; in lower_urb_read_logical_send()
40 assert(inst->size_written % REG_SIZE == 0); in lower_urb_read_logical_send()
41 assert(inst->header_size == 0); in lower_urb_read_logical_send()
43 fs_reg *payload_sources = new fs_reg[inst->mlen]; in lower_urb_read_logical_send()
44 fs_reg payload = fs_reg(VGRF, bld.shader->alloc.allocate(inst->mlen), in lower_urb_read_logical_send()
48 payload_sources[header_size++] = inst->src[URB_LOGICAL_SRC_HANDLE]; in lower_urb_read_logical_send()
50 payload_sources[header_size++] = inst->src[URB_LOGICAL_SRC_PER_SLOT_OFFSETS]; in lower_urb_read_logical_send()
52 bld.LOAD_PAYLOAD(payload, payload_sources, inst->mlen, header_size); in lower_urb_read_logical_send()
56 inst in lower_urb_read_logical_send()
79 lower_urb_write_logical_send(const fs_builder &bld, fs_inst *inst) lower_urb_write_logical_send() argument
151 lower_fb_write_logical_send(const fs_builder &bld, fs_inst *inst, const struct brw_wm_prog_data *prog_data, const brw_wm_prog_key *key, const fs_visitor::thread_payload &payload) lower_fb_write_logical_send() argument
413 lower_fb_read_logical_send(const fs_builder &bld, fs_inst *inst) lower_fb_read_logical_send() argument
467 lower_sampler_logical_send_gfx4(const fs_builder &bld, fs_inst *inst, opcode op, const fs_reg &coordinate, const fs_reg &shadow_c, const fs_reg &lod, const fs_reg &lod2, const fs_reg &surface, const fs_reg &sampler, unsigned coord_components, unsigned grad_components) lower_sampler_logical_send_gfx4() argument
574 lower_sampler_logical_send_gfx5(const fs_builder &bld, fs_inst *inst, opcode op, const fs_reg &coordinate, const fs_reg &shadow_c, const fs_reg &lod, const fs_reg &lod2, const fs_reg &sample_index, const fs_reg &surface, const fs_reg &sampler, unsigned coord_components, unsigned grad_components) lower_sampler_logical_send_gfx5() argument
776 fs_inst *inst = bld.LOAD_PAYLOAD(dst, src_comps, length, header_size); emit_load_payload_with_padding() local
783 lower_sampler_logical_send_gfx7(const fs_builder &bld, fs_inst *inst, opcode op, const fs_reg &coordinate, const fs_reg &shadow_c, fs_reg lod, const fs_reg &lod2, const fs_reg &min_lod, const fs_reg &sample_index, const fs_reg &mcs, const fs_reg &surface, const fs_reg &sampler, const fs_reg &surface_handle, const fs_reg &sampler_handle, const fs_reg &tg4_offset, unsigned payload_type_bit_size, unsigned coord_components, unsigned grad_components) lower_sampler_logical_send_gfx7() argument
1243 lower_sampler_logical_send(const fs_builder &bld, fs_inst *inst, opcode op) lower_sampler_logical_send() argument
1295 emit_predicate_on_vector_mask(const fs_builder &bld, fs_inst *inst) emit_predicate_on_vector_mask() argument
1326 setup_surface_descriptors(const fs_builder &bld, fs_inst *inst, uint32_t desc, const fs_reg &surface, const fs_reg &surface_handle) setup_surface_descriptors() argument
1359 lower_surface_logical_send(const fs_builder &bld, fs_inst *inst) lower_surface_logical_send() argument
1672 lower_lsc_surface_logical_send(const fs_builder &bld, fs_inst *inst) lower_lsc_surface_logical_send() argument
1833 lower_surface_block_logical_send(const fs_builder &bld, fs_inst *inst) lower_surface_block_logical_send() argument
1929 emit_fragment_mask(const fs_builder &bld, fs_inst *inst) emit_fragment_mask() argument
1949 lower_lsc_a64_logical_send(const fs_builder &bld, fs_inst *inst) lower_lsc_a64_logical_send() argument
2059 lower_a64_logical_send(const fs_builder &bld, fs_inst *inst) lower_a64_logical_send() argument
2215 lower_lsc_varying_pull_constant_logical_send(const fs_builder &bld, fs_inst *inst) lower_lsc_varying_pull_constant_logical_send() argument
2294 lower_varying_pull_constant_logical_send(const fs_builder &bld, fs_inst *inst) lower_varying_pull_constant_logical_send() argument
2386 lower_math_logical_send(const fs_builder &bld, fs_inst *inst) lower_math_logical_send() argument
2416 lower_btd_logical_send(const fs_builder &bld, fs_inst *inst) lower_btd_logical_send() argument
2486 lower_trace_ray_logical_send(const fs_builder &bld, fs_inst *inst) lower_trace_ray_logical_send() argument
[all...]
H A Dbrw_vec4.cpp409 foreach_inst_in_block_safe(vec4_instruction, inst, block) { in opt_vector_float()
418 if (inst->opcode == BRW_OPCODE_MOV && in opt_vector_float()
419 inst->src[0].file == IMM && in opt_vector_float()
420 inst->predicate == BRW_PREDICATE_NONE && in opt_vector_float()
421 inst->dst.writemask != WRITEMASK_XYZW && in opt_vector_float()
422 type_sz(inst->src[0].type) < 8 && in opt_vector_float()
423 (inst->src[0].type == inst->dst.type || inst->src[0].d == 0)) { in opt_vector_float()
425 vf = brw_float_to_vf(inst in opt_vector_float()
723 is_dep_ctrl_unsafe(const vec4_instruction *inst) is_dep_ctrl_unsafe() argument
1314 const vec4_instruction *inst = (const vec4_instruction *)be_inst; dump_instruction() local
1673 is_align1_df(vec4_instruction *inst) is_align1_df() argument
1866 get_lowered_simd_width(const struct intel_device_info *devinfo, enum shader_dispatch_mode dispatch_mode, unsigned stage, const vec4_instruction *inst) get_lowered_simd_width() argument
1928 dst_src_regions_overlap(vec4_instruction *inst) dst_src_regions_overlap() argument
2077 is_gfx7_supported_64bit_swizzle(vec4_instruction *inst, unsigned arg) is_gfx7_supported_64bit_swizzle() argument
2107 is_supported_64bit_region(vec4_instruction *inst, unsigned arg) is_supported_64bit_region() argument
2266 apply_logical_swizzle(struct brw_reg *hw_reg, vec4_instruction *inst, int arg) apply_logical_swizzle() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_opt_algebraic.c41 dump_from(struct vc4_compile *c, struct qinst *inst) in dump_from() argument
47 qir_dump_inst(c, inst); in dump_from()
52 dump_to(struct vc4_compile *c, struct qinst *inst) in dump_to() argument
58 qir_dump_inst(c, inst); in dump_to()
94 replace_with_mov(struct vc4_compile *c, struct qinst *inst, struct qreg arg) in replace_with_mov() argument
96 dump_from(c, inst); in replace_with_mov()
98 inst->src[0] = arg; in replace_with_mov()
99 if (qir_has_implicit_tex_uniform(inst)) in replace_with_mov()
100 inst->src[1] = inst in replace_with_mov()
112 replace_x_0_with_x(struct vc4_compile *c, struct qinst *inst, int arg) replace_x_0_with_x() argument
123 replace_x_0_with_0(struct vc4_compile *c, struct qinst *inst, int arg) replace_x_0_with_0() argument
134 fmul_replace_one(struct vc4_compile *c, struct qinst *inst, int arg) fmul_replace_one() argument
[all...]
H A Dvc4_qpu.c33 set_src_raddr(uint64_t inst, struct qpu_reg src) in set_src_raddr() argument
36 assert(QPU_GET_FIELD(inst, QPU_RADDR_A) == QPU_R_NOP || in set_src_raddr()
37 QPU_GET_FIELD(inst, QPU_RADDR_A) == src.addr); in set_src_raddr()
38 return QPU_UPDATE_FIELD(inst, src.addr, QPU_RADDR_A); in set_src_raddr()
42 assert((QPU_GET_FIELD(inst, QPU_RADDR_B) == QPU_R_NOP || in set_src_raddr()
43 QPU_GET_FIELD(inst, QPU_RADDR_B) == src.addr) && in set_src_raddr()
44 QPU_GET_FIELD(inst, QPU_SIG) != QPU_SIG_SMALL_IMM); in set_src_raddr()
45 return QPU_UPDATE_FIELD(inst, src.addr, QPU_RADDR_B); in set_src_raddr()
49 if (QPU_GET_FIELD(inst, QPU_SIG) == QPU_SIG_SMALL_IMM) { in set_src_raddr()
50 assert(QPU_GET_FIELD(inst, QPU_RADDR_ in set_src_raddr()
65 uint64_t inst = 0; qpu_NOP() local
83 uint64_t inst = 0; qpu_a_dst() local
100 uint64_t inst = 0; qpu_m_dst() local
117 uint64_t inst = 0; qpu_a_MOV() local
136 uint64_t inst = 0; qpu_m_MOV() local
155 uint64_t inst = 0; qpu_load_imm_ui() local
184 uint64_t inst = 0; qpu_branch() local
199 uint64_t inst = 0; qpu_a_alu2() local
220 uint64_t inst = 0; qpu_m_alu2() local
240 uint64_t inst = 0; qpu_m_rot() local
268 qpu_num_sf_accesses(uint64_t inst) qpu_num_sf_accesses() argument
405 convert_mov(uint64_t *inst) convert_mov() argument
445 writes_a_file(uint64_t inst) writes_a_file() argument
454 reads_r4(uint64_t inst) reads_r4() argument
636 qpu_set_sig(uint64_t inst, uint32_t sig) qpu_set_sig() argument
643 qpu_set_cond_add(uint64_t inst, uint32_t cond) qpu_set_cond_add() argument
650 qpu_set_cond_mul(uint64_t inst, uint32_t cond) qpu_set_cond_mul() argument
670 qpu_inst_is_tlb(uint64_t inst) qpu_inst_is_tlb() argument
731 qpu_serialize_one_inst(struct vc4_compile *c, uint64_t inst) qpu_serialize_one_inst() argument
[all...]
/kernel/linux/linux-6.6/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
397 struct venus_inst *inst = to_inst(file); vdec_g_selection() local
447 struct venus_inst *inst = to_inst(file); vdec_enum_fmt() local
464 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
625 vdec_pm_get(struct venus_inst *inst) vdec_pm_get() argument
638 vdec_pm_put(struct venus_inst *inst, bool autosuspend) vdec_pm_put() argument
656 vdec_pm_get_put(struct venus_inst *inst) vdec_pm_get_put() argument
678 vdec_pm_touch(struct venus_inst *inst) vdec_pm_touch() argument
683 vdec_set_properties(struct venus_inst *inst) vdec_set_properties() argument
725 vdec_set_work_route(struct venus_inst *inst) vdec_set_work_route() argument
743 vdec_output_conf(struct venus_inst *inst) vdec_output_conf() argument
868 vdec_session_init(struct venus_inst *inst) vdec_session_init() argument
889 vdec_num_buffers(struct venus_inst *inst, unsigned int *in_num, unsigned int *out_num) vdec_num_buffers() argument
917 struct venus_inst *inst = vb2_get_drv_priv(q); vdec_queue_setup() local
1008 vdec_verify_conf(struct venus_inst *inst) vdec_verify_conf() argument
1035 vdec_start_capture(struct venus_inst *inst) vdec_start_capture() argument
1107 vdec_start_output(struct venus_inst *inst) vdec_start_output() argument
1172 struct venus_inst *inst = vb2_get_drv_priv(q); vdec_start_streaming() local
1209 vdec_cancel_dst_buffers(struct venus_inst *inst) vdec_cancel_dst_buffers() argument
1217 vdec_stop_capture(struct venus_inst *inst) vdec_stop_capture() argument
1244 vdec_stop_output(struct venus_inst *inst) vdec_stop_output() argument
1269 struct venus_inst *inst = vb2_get_drv_priv(q); vdec_stop_streaming() local
1297 vdec_session_release(struct venus_inst *inst) vdec_session_release() argument
1335 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); vdec_buf_init() local
1344 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); vdec_buf_cleanup() local
1361 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); vdec_vb2_buf_queue() local
1396 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
1462 vdec_event_change(struct venus_inst *inst, struct hfi_event_data *ev_data, bool sufficient) vdec_event_change() argument
1556 vdec_event_notify(struct venus_inst *inst, u32 event, struct hfi_event_data *data) vdec_event_notify() argument
1590 vdec_flush_done(struct venus_inst *inst) vdec_flush_done() argument
1601 vdec_inst_init(struct venus_inst *inst) vdec_inst_init() argument
1633 struct venus_inst *inst = priv; m2m_queue_init() local
1668 struct venus_inst *inst; vdec_open() local
1746 struct venus_inst *inst = to_inst(file); vdec_close() local
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_h264_req_multi_if.c173 static int vdec_h264_slice_fill_decode_parameters(struct vdec_h264_slice_inst *inst, in vdec_h264_slice_fill_decode_parameters() argument
176 struct vdec_h264_slice_lat_dec_param *slice_param = &inst->vsi->h264_slice_params; in vdec_h264_slice_fill_decode_parameters()
183 mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_DECODE_PARAMS); in vdec_h264_slice_fill_decode_parameters()
188 mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SCALING_MATRIX); in vdec_h264_slice_fill_decode_parameters()
192 sps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SPS); in vdec_h264_slice_fill_decode_parameters()
196 pps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_PPS); in vdec_h264_slice_fill_decode_parameters()
201 mtk_vdec_err(inst->ctx, "No support for H.264 field decoding."); in vdec_h264_slice_fill_decode_parameters()
202 inst->is_field_bitstream = true; in vdec_h264_slice_fill_decode_parameters()
216 static int get_vdec_sig_decode_parameters(struct vdec_h264_slice_inst *inst) in get_vdec_sig_decode_parameters() argument
222 struct vdec_h264_slice_lat_dec_param *slice_param = &inst in get_vdec_sig_decode_parameters()
275 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
309 vdec_h264_slice_alloc_mv_buf(struct vdec_h264_slice_inst *inst, struct vdec_pic_info *pic) vdec_h264_slice_alloc_mv_buf() argument
332 vdec_h264_slice_free_mv_buf(struct vdec_h264_slice_inst *inst) vdec_h264_slice_free_mv_buf() argument
344 vdec_h264_slice_get_pic_info(struct vdec_h264_slice_inst *inst) vdec_h264_slice_get_pic_info() argument
383 vdec_h264_slice_get_crop_info(struct vdec_h264_slice_inst *inst, struct v4l2_rect *cr) vdec_h264_slice_get_crop_info() argument
397 struct vdec_h264_slice_inst *inst; vdec_h264_slice_init() local
444 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_deinit() local
460 struct vdec_h264_slice_inst *inst = ctx->drv_handle; vdec_h264_slice_core_decode() local
568 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_lat_decode() local
712 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_single_decode() local
807 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_decode() local
824 struct vdec_h264_slice_inst *inst = h_vdec; vdec_h264_slice_get_param() local
[all...]
H A Dvdec_vp9_if.c206 static bool vp9_is_sf_ref_fb(struct vdec_vp9_inst *inst, struct vdec_fb *fb) in vp9_is_sf_ref_fb() argument
209 struct vdec_vp9_vsi *vsi = inst->vsi; in vp9_is_sf_ref_fb()
219 *inst, void *addr) in vp9_rm_from_fb_use_list()
224 list_for_each_entry(node, &inst->fb_use_list, list) { in vp9_rm_from_fb_use_list()
228 &inst->available_fb_node_list); in vp9_rm_from_fb_use_list()
236 static void vp9_add_to_fb_free_list(struct vdec_vp9_inst *inst, in vp9_add_to_fb_free_list() argument
242 node = list_first_entry_or_null(&inst->available_fb_node_list, in vp9_add_to_fb_free_list()
247 list_move_tail(&node->list, &inst->fb_free_list); in vp9_add_to_fb_free_list()
250 mtk_vdec_debug(inst->ctx, "No free fb node"); in vp9_add_to_fb_free_list()
262 static void vp9_ref_cnt_fb(struct vdec_vp9_inst *inst, in argument
218 vp9_rm_from_fb_use_list(struct vdec_vp9_inst *inst, void *addr) vp9_rm_from_fb_use_list() argument
289 vp9_free_all_sf_ref_fb(struct vdec_vp9_inst *inst) vp9_free_all_sf_ref_fb() argument
310 vp9_get_sf_ref_fb(struct vdec_vp9_inst *inst) vp9_get_sf_ref_fb() argument
360 vp9_alloc_work_buf(struct vdec_vp9_inst *inst) vp9_alloc_work_buf() argument
430 vp9_add_to_fb_disp_list(struct vdec_vp9_inst *inst, struct vdec_fb *fb) vp9_add_to_fb_disp_list() argument
454 vp9_swap_frm_bufs(struct vdec_vp9_inst *inst) vp9_swap_frm_bufs() argument
533 vp9_wait_dec_end(struct vdec_vp9_inst *inst) vp9_wait_dec_end() argument
551 struct vdec_vp9_inst *inst; vp9_alloc_inst() local
565 vp9_free_inst(struct vdec_vp9_inst *inst) vp9_free_inst() argument
574 vp9_decode_end_proc(struct vdec_vp9_inst *inst) vp9_decode_end_proc() argument
602 vp9_is_last_sub_frm(struct vdec_vp9_inst *inst) vp9_is_last_sub_frm() argument
612 vp9_rm_from_fb_disp_list(struct vdec_vp9_inst *inst) vp9_rm_from_fb_disp_list() argument
630 vp9_add_to_fb_use_list(struct vdec_vp9_inst *inst, struct vdec_fb *fb) vp9_add_to_fb_use_list() argument
652 vp9_reset(struct vdec_vp9_inst *inst) vp9_reset() argument
677 init_all_fb_lists(struct vdec_vp9_inst *inst) init_all_fb_lists() argument
694 get_pic_info(struct vdec_vp9_inst *inst, struct vdec_pic_info *pic) get_pic_info() argument
709 get_disp_fb(struct vdec_vp9_inst *inst, struct vdec_fb **out_fb) get_disp_fb() argument
717 get_free_fb(struct vdec_vp9_inst *inst, struct vdec_fb **out_fb) get_free_fb() argument
736 validate_vsi_array_indexes(struct vdec_vp9_inst *inst, struct vdec_vp9_vsi *vsi) validate_vsi_array_indexes() argument
755 struct vdec_vp9_inst *inst = (struct vdec_vp9_inst *)h_vdec; vdec_vp9_deinit() local
777 struct vdec_vp9_inst *inst; vdec_vp9_init() local
813 struct vdec_vp9_inst *inst = (struct vdec_vp9_inst *)h_vdec; vdec_vp9_decode() local
971 get_crop_info(struct vdec_vp9_inst *inst, struct v4l2_rect *cr) get_crop_info() argument
984 struct vdec_vp9_inst *inst = (struct vdec_vp9_inst *)h_vdec; vdec_vp9_get_param() local
[all...]
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/vdec/
H A Dvdec_vp9_if.c206 static bool vp9_is_sf_ref_fb(struct vdec_vp9_inst *inst, struct vdec_fb *fb) in vp9_is_sf_ref_fb() argument
209 struct vdec_vp9_vsi *vsi = inst->vsi; in vp9_is_sf_ref_fb()
219 *inst, void *addr) in vp9_rm_from_fb_use_list()
224 list_for_each_entry(node, &inst->fb_use_list, list) { in vp9_rm_from_fb_use_list()
228 &inst->available_fb_node_list); in vp9_rm_from_fb_use_list()
236 static void vp9_add_to_fb_free_list(struct vdec_vp9_inst *inst, in vp9_add_to_fb_free_list() argument
242 node = list_first_entry_or_null(&inst->available_fb_node_list, in vp9_add_to_fb_free_list()
247 list_move_tail(&node->list, &inst->fb_free_list); in vp9_add_to_fb_free_list()
250 mtk_vcodec_debug(inst, "No free fb node"); in vp9_add_to_fb_free_list()
262 static void vp9_ref_cnt_fb(struct vdec_vp9_inst *inst, in argument
218 vp9_rm_from_fb_use_list(struct vdec_vp9_inst *inst, void *addr) vp9_rm_from_fb_use_list() argument
289 vp9_free_all_sf_ref_fb(struct vdec_vp9_inst *inst) vp9_free_all_sf_ref_fb() argument
310 vp9_get_sf_ref_fb(struct vdec_vp9_inst *inst) vp9_get_sf_ref_fb() argument
360 vp9_alloc_work_buf(struct vdec_vp9_inst *inst) vp9_alloc_work_buf() argument
434 vp9_add_to_fb_disp_list(struct vdec_vp9_inst *inst, struct vdec_fb *fb) vp9_add_to_fb_disp_list() argument
458 vp9_swap_frm_bufs(struct vdec_vp9_inst *inst) vp9_swap_frm_bufs() argument
537 vp9_wait_dec_end(struct vdec_vp9_inst *inst) vp9_wait_dec_end() argument
555 struct vdec_vp9_inst *inst; vp9_alloc_inst() local
569 vp9_free_inst(struct vdec_vp9_inst *inst) vp9_free_inst() argument
578 vp9_decode_end_proc(struct vdec_vp9_inst *inst) vp9_decode_end_proc() argument
607 vp9_is_last_sub_frm(struct vdec_vp9_inst *inst) vp9_is_last_sub_frm() argument
617 vp9_rm_from_fb_disp_list(struct vdec_vp9_inst *inst) vp9_rm_from_fb_disp_list() argument
636 vp9_add_to_fb_use_list(struct vdec_vp9_inst *inst, struct vdec_fb *fb) vp9_add_to_fb_use_list() argument
658 vp9_reset(struct vdec_vp9_inst *inst) vp9_reset() argument
683 init_all_fb_lists(struct vdec_vp9_inst *inst) init_all_fb_lists() argument
700 get_pic_info(struct vdec_vp9_inst *inst, struct vdec_pic_info *pic) get_pic_info() argument
717 get_disp_fb(struct vdec_vp9_inst *inst, struct vdec_fb **out_fb) get_disp_fb() argument
725 get_free_fb(struct vdec_vp9_inst *inst, struct vdec_fb **out_fb) get_free_fb() argument
745 validate_vsi_array_indexes(struct vdec_vp9_inst *inst, struct vdec_vp9_vsi *vsi) validate_vsi_array_indexes() argument
767 struct vdec_vp9_inst *inst = (struct vdec_vp9_inst *)h_vdec; vdec_vp9_deinit() local
789 struct vdec_vp9_inst *inst; vdec_vp9_init() local
825 struct vdec_vp9_inst *inst = (struct vdec_vp9_inst *)h_vdec; vdec_vp9_decode() local
983 get_crop_info(struct vdec_vp9_inst *inst, struct v4l2_rect *cr) get_crop_info() argument
996 struct vdec_vp9_inst *inst = (struct vdec_vp9_inst *)h_vdec; vdec_vp9_get_param() local
[all...]
H A Dvdec_vp8_if.c168 static void get_hw_reg_base(struct vdec_vp8_inst *inst) in get_hw_reg_base() argument
170 inst->reg_base.top = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_TOP); in get_hw_reg_base()
171 inst->reg_base.cm = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_CM); in get_hw_reg_base()
172 inst->reg_base.hwd = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_HWD); in get_hw_reg_base()
173 inst->reg_base.sys = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_SYS); in get_hw_reg_base()
174 inst in get_hw_reg_base()
179 write_hw_segmentation_data(struct vdec_vp8_inst *inst) write_hw_segmentation_data() argument
200 read_hw_segmentation_data(struct vdec_vp8_inst *inst) read_hw_segmentation_data() argument
222 enable_hw_rw_function(struct vdec_vp8_inst *inst) enable_hw_rw_function() argument
249 store_dec_table(struct vdec_vp8_inst *inst) store_dec_table() argument
266 load_dec_table(struct vdec_vp8_inst *inst) load_dec_table() argument
283 get_pic_info(struct vdec_vp8_inst *inst, struct vdec_pic_info *pic) get_pic_info() argument
293 vp8_dec_finish(struct vdec_vp8_inst *inst) vp8_dec_finish() argument
328 move_fb_list_use_to_free(struct vdec_vp8_inst *inst) move_fb_list_use_to_free() argument
336 init_list(struct vdec_vp8_inst *inst) init_list() argument
353 add_fb_to_free_list(struct vdec_vp8_inst *inst, void *fb) add_fb_to_free_list() argument
365 alloc_working_buf(struct vdec_vp8_inst *inst) alloc_working_buf() argument
381 free_working_buf(struct vdec_vp8_inst *inst) free_working_buf() argument
393 struct vdec_vp8_inst *inst; vdec_vp8_init() local
433 struct vdec_vp8_inst *inst = (struct vdec_vp8_inst *)h_vdec; vdec_vp8_decode() local
514 get_disp_fb(struct vdec_vp8_inst *inst, struct vdec_fb **out_fb) get_disp_fb() argument
535 get_free_fb(struct vdec_vp8_inst *inst, struct vdec_fb **out_fb) get_free_fb() argument
556 get_crop_info(struct vdec_vp8_inst *inst, struct v4l2_rect *cr) get_crop_info() argument
569 struct vdec_vp8_inst *inst = (struct vdec_vp8_inst *)h_vdec; vdec_vp8_get_param() local
602 struct vdec_vp8_inst *inst = (struct vdec_vp8_inst *)h_vdec; vdec_vp8_deinit() local
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/amphion/
H A Dvpu_v4l2.c27 void vpu_inst_lock(struct vpu_inst *inst) in vpu_inst_lock() argument
29 mutex_lock(&inst->lock); in vpu_inst_lock()
32 void vpu_inst_unlock(struct vpu_inst *inst) in vpu_inst_unlock() argument
34 mutex_unlock(&inst->lock); in vpu_inst_unlock()
66 void vpu_v4l2_set_error(struct vpu_inst *inst) in vpu_v4l2_set_error() argument
68 vpu_inst_lock(inst); in vpu_v4l2_set_error()
69 dev_err(inst->dev, "some error occurs in codec\n"); in vpu_v4l2_set_error()
70 if (inst->fh.m2m_ctx) { in vpu_v4l2_set_error()
71 vb2_queue_error(v4l2_m2m_get_src_vq(inst->fh.m2m_ctx)); in vpu_v4l2_set_error()
72 vb2_queue_error(v4l2_m2m_get_dst_vq(inst in vpu_v4l2_set_error()
77 vpu_notify_eos(struct vpu_inst *inst) vpu_notify_eos() argument
90 vpu_notify_source_change(struct vpu_inst *inst) vpu_notify_source_change() argument
103 vpu_set_last_buffer_dequeued(struct vpu_inst *inst, bool eos) vpu_set_last_buffer_dequeued() argument
124 vpu_is_source_empty(struct vpu_inst *inst) vpu_is_source_empty() argument
137 vpu_init_format(struct vpu_inst *inst, struct vpu_format *fmt) vpu_init_format() argument
179 vpu_calc_fmt_sizeimage(struct vpu_inst *inst, struct vpu_format *fmt) vpu_calc_fmt_sizeimage() argument
229 vpu_try_fmt_common(struct vpu_inst *inst, struct v4l2_format *f, struct vpu_format *fmt) vpu_try_fmt_common() argument
269 vpu_check_ready(struct vpu_inst *inst, u32 type) vpu_check_ready() argument
280 vpu_process_output_buffer(struct vpu_inst *inst) vpu_process_output_buffer() argument
306 vpu_process_capture_buffer(struct vpu_inst *inst) vpu_process_capture_buffer() argument
329 vpu_next_src_buf(struct vpu_inst *inst) vpu_next_src_buf() argument
353 vpu_skip_frame(struct vpu_inst *inst, int count) vpu_skip_frame() argument
376 vpu_find_buf_by_sequence(struct vpu_inst *inst, u32 type, u32 sequence) vpu_find_buf_by_sequence() argument
403 vpu_find_buf_by_idx(struct vpu_inst *inst, u32 type, u32 idx) vpu_find_buf_by_idx() argument
430 vpu_get_num_buffers(struct vpu_inst *inst, u32 type) vpu_get_num_buffers() argument
451 struct vpu_inst *inst = priv; vpu_m2m_job_abort() local
468 struct vpu_inst *inst = vb2_get_drv_priv(vq); vpu_vb2_queue_setup() local
519 struct vpu_inst *inst = vb2_get_drv_priv(vb->vb2_queue); vpu_vb2_buf_prepare() local
539 struct vpu_inst *inst = vb2_get_drv_priv(vb->vb2_queue); vpu_vb2_buf_finish() local
549 vpu_vb2_buffers_return(struct vpu_inst *inst, unsigned int type, enum vb2_buffer_state state) vpu_vb2_buffers_return() argument
568 struct vpu_inst *inst = vb2_get_drv_priv(q); vpu_vb2_start_streaming() local
601 struct vpu_inst *inst = vb2_get_drv_priv(q); vpu_vb2_stop_streaming() local
614 struct vpu_inst *inst = vb2_get_drv_priv(vb->vb2_queue); vpu_vb2_buf_queue() local
639 struct vpu_inst *inst = priv; vpu_m2m_queue_init() local
681 vpu_v4l2_release(struct vpu_inst *inst) vpu_v4l2_release() argument
704 vpu_v4l2_open(struct file *file, struct vpu_inst *inst) vpu_v4l2_open() argument
773 struct vpu_inst *inst = to_inst(file); vpu_v4l2_close() local
[all...]
H A Dvdec.c194 struct vpu_inst *inst = ctrl_to_inst(ctrl); in vdec_op_s_ctrl() local
195 struct vdec_t *vdec = inst->priv; in vdec_op_s_ctrl()
198 vpu_inst_lock(inst); in vdec_op_s_ctrl()
210 vpu_inst_unlock(inst); in vdec_op_s_ctrl()
220 static int vdec_ctrl_init(struct vpu_inst *inst) in vdec_ctrl_init() argument
225 ret = v4l2_ctrl_handler_init(&inst->ctrl_handler, 20); in vdec_ctrl_init()
229 v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
233 v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
237 ctrl = v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
242 ctrl = v4l2_ctrl_new_std(&inst in vdec_ctrl_init()
263 vdec_handle_resolution_change(struct vpu_inst *inst) vdec_handle_resolution_change() argument
285 vdec_update_state(struct vpu_inst *inst, enum vpu_codec_state state, u32 force) vdec_update_state() argument
311 vdec_set_last_buffer_dequeued(struct vpu_inst *inst) vdec_set_last_buffer_dequeued() argument
337 struct vpu_inst *inst = to_inst(file); vdec_enum_fmt() local
366 struct vpu_inst *inst = to_inst(file); vdec_g_fmt() local
397 struct vpu_inst *inst = to_inst(file); vdec_try_fmt() local
428 vdec_s_fmt_common(struct vpu_inst *inst, struct v4l2_format *f) vdec_s_fmt_common() argument
503 struct vpu_inst *inst = to_inst(file); vdec_s_fmt() local
536 struct vpu_inst *inst = to_inst(file); vdec_g_selection() local
560 vdec_drain(struct vpu_inst *inst) vdec_drain() argument
587 vdec_cmd_start(struct vpu_inst *inst) vdec_cmd_start() argument
606 vdec_cmd_stop(struct vpu_inst *inst) vdec_cmd_stop() argument
624 struct vpu_inst *inst = to_inst(file); vdec_decoder_cmd() local
689 vdec_check_ready(struct vpu_inst *inst, unsigned int type) vdec_check_ready() argument
702 vdec_get_src_buffer(struct vpu_inst *inst, u32 count) vdec_get_src_buffer() argument
710 vdec_frame_decoded(struct vpu_inst *inst, void *arg) vdec_frame_decoded() argument
766 vdec_find_buffer(struct vpu_inst *inst, u32 luma) vdec_find_buffer() argument
781 vdec_buf_done(struct vpu_inst *inst, struct vpu_frame_info *frame) vdec_buf_done() argument
834 vdec_stop_done(struct vpu_inst *inst) vdec_stop_done() argument
857 vdec_check_source_change(struct vpu_inst *inst) vdec_check_source_change() argument
894 vdec_init_fmt(struct vpu_inst *inst) vdec_init_fmt() argument
914 vdec_init_crop(struct vpu_inst *inst) vdec_init_crop() argument
924 vdec_init_mbi(struct vpu_inst *inst) vdec_init_mbi() argument
935 vdec_init_dcp(struct vpu_inst *inst) vdec_init_dcp() argument
953 vdec_alloc_fs_buffer(struct vpu_inst *inst, struct vdec_fs_info *fs) vdec_alloc_fs_buffer() argument
972 vdec_alloc_fs(struct vpu_inst *inst, struct vdec_fs_info *fs) vdec_alloc_fs() argument
996 vdec_response_fs(struct vpu_inst *inst, struct vdec_fs_info *fs) vdec_response_fs() argument
1018 vdec_response_frame_abnormal(struct vpu_inst *inst) vdec_response_frame_abnormal() argument
1038 vdec_response_frame(struct vpu_inst *inst, struct vb2_v4l2_buffer *vbuf) vdec_response_frame() argument
1094 vdec_response_fs_request(struct vpu_inst *inst, bool force) vdec_response_fs_request() argument
1128 vdec_response_fs_release(struct vpu_inst *inst, u32 id, u32 tag) vdec_response_fs_release() argument
1138 vdec_recycle_buffer(struct vpu_inst *inst, struct vb2_v4l2_buffer *vbuf) vdec_recycle_buffer() argument
1149 vdec_clear_slots(struct vpu_inst *inst) vdec_clear_slots() argument
1171 vdec_event_seq_hdr(struct vpu_inst *inst, struct vpu_dec_codec_info *hdr) vdec_event_seq_hdr() argument
1213 vdec_event_resolution_change(struct vpu_inst *inst) vdec_event_resolution_change() argument
1234 vdec_event_req_fs(struct vpu_inst *inst, struct vpu_fs_info *fs) vdec_event_req_fs() argument
1265 vdec_evnet_rel_fs(struct vpu_inst *inst, struct vpu_fs_info *fs) vdec_evnet_rel_fs() argument
1307 vdec_event_eos(struct vpu_inst *inst) vdec_event_eos() argument
1325 vdec_event_notify(struct vpu_inst *inst, u32 event, void *data) vdec_event_notify() argument
1348 vdec_process_output(struct vpu_inst *inst, struct vb2_buffer *vb) vdec_process_output() argument
1390 vdec_process_capture(struct vpu_inst *inst, struct vb2_buffer *vb) vdec_process_capture() argument
1408 vdec_on_queue_empty(struct vpu_inst *inst, u32 type) vdec_on_queue_empty() argument
1420 vdec_abort(struct vpu_inst *inst) vdec_abort() argument
1458 vdec_stop(struct vpu_inst *inst, bool free) vdec_stop() argument
1475 vdec_release(struct vpu_inst *inst) vdec_release() argument
1482 vdec_cleanup(struct vpu_inst *inst) vdec_cleanup() argument
1501 vdec_start(struct vpu_inst *inst) vdec_start() argument
1560 vdec_start_session(struct vpu_inst *inst, u32 type) vdec_start_session() argument
1588 vdec_stop_session(struct vpu_inst *inst, u32 type) vdec_stop_session() argument
1609 vdec_get_debug_info(struct vpu_inst *inst, char *str, u32 size, u32 i) vdec_get_debug_info() argument
1694 struct vpu_inst *inst = to_inst(file); vdec_init() local
1716 struct vpu_inst *inst; vdec_open() local
[all...]
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/
H A Dvdec.c91 find_format(struct venus_inst *inst, u32 pixfmt, u32 type) in find_format() argument
106 !venus_helper_check_codec(inst, fmt[i].pixfmt)) in find_format()
113 find_format_by_index(struct venus_inst *inst, unsigned int index, u32 type) in find_format_by_index() argument
128 venus_helper_check_codec(inst, fmt[i].pixfmt); in find_format_by_index()
142 vdec_try_fmt_common(struct venus_inst *inst, struct v4l2_format *f) in vdec_try_fmt_common() argument
152 fmt = find_format(inst, pixmp->pixelformat, f->type); in vdec_try_fmt_common()
160 fmt = find_format(inst, pixmp->pixelformat, f->type); in vdec_try_fmt_common()
165 pixmp->width = clamp(pixmp->width, frame_width_min(inst), in vdec_try_fmt_common()
166 frame_width_max(inst)); in vdec_try_fmt_common()
167 pixmp->height = clamp(pixmp->height, frame_height_min(inst), in vdec_try_fmt_common()
195 struct venus_inst *inst = to_inst(file); vdec_try_fmt() local
202 vdec_check_src_change(struct venus_inst *inst) vdec_check_src_change() argument
238 struct venus_inst *inst = to_inst(file); vdec_g_fmt() local
275 struct venus_inst *inst = to_inst(file); vdec_s_fmt() local
342 struct venus_inst *inst = to_inst(file); vdec_g_selection() local
393 struct venus_inst *inst = to_inst(file); vdec_enum_fmt() local
410 struct venus_inst *inst = to_inst(file); vdec_s_parm() local
445 struct venus_inst *inst = to_inst(file); vdec_enum_framesizes() local
475 struct venus_inst *inst = container_of(fh, struct venus_inst, fh); vdec_subscribe_event() local
497 struct venus_inst *inst = to_inst(file); vdec_decoder_cmd() local
568 vdec_pm_get(struct venus_inst *inst) vdec_pm_get() argument
581 vdec_pm_put(struct venus_inst *inst, bool autosuspend) vdec_pm_put() argument
599 vdec_pm_get_put(struct venus_inst *inst) vdec_pm_get_put() argument
621 vdec_pm_touch(struct venus_inst *inst) vdec_pm_touch() argument
626 vdec_set_properties(struct venus_inst *inst) vdec_set_properties() argument
645 vdec_output_conf(struct venus_inst *inst) vdec_output_conf() argument
766 vdec_session_init(struct venus_inst *inst) vdec_session_init() argument
791 vdec_num_buffers(struct venus_inst *inst, unsigned int *in_num, unsigned int *out_num) vdec_num_buffers() argument
819 struct venus_inst *inst = vb2_get_drv_priv(q); vdec_queue_setup() local
899 vdec_verify_conf(struct venus_inst *inst) vdec_verify_conf() argument
926 vdec_start_capture(struct venus_inst *inst) vdec_start_capture() argument
998 vdec_start_output(struct venus_inst *inst) vdec_start_output() argument
1059 struct venus_inst *inst = vb2_get_drv_priv(q); vdec_start_streaming() local
1096 vdec_cancel_dst_buffers(struct venus_inst *inst) vdec_cancel_dst_buffers() argument
1104 vdec_stop_capture(struct venus_inst *inst) vdec_stop_capture() argument
1131 vdec_stop_output(struct venus_inst *inst) vdec_stop_output() argument
1156 struct venus_inst *inst = vb2_get_drv_priv(q); vdec_stop_streaming() local
1180 vdec_session_release(struct venus_inst *inst) vdec_session_release() argument
1218 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); vdec_buf_init() local
1227 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); vdec_buf_cleanup() local
1244 struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); vdec_vb2_buf_queue() local
1280 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
1344 vdec_event_change(struct venus_inst *inst, struct hfi_event_data *ev_data, bool sufficient) vdec_event_change() argument
1410 vdec_event_notify(struct venus_inst *inst, u32 event, struct hfi_event_data *data) vdec_event_notify() argument
1443 vdec_flush_done(struct venus_inst *inst) vdec_flush_done() argument
1454 vdec_inst_init(struct venus_inst *inst) vdec_inst_init() argument
1481 struct venus_inst *inst = priv; m2m_queue_init() local
1514 struct venus_inst *inst; vdec_open() local
1586 struct venus_inst *inst = to_inst(file); vdec_close() local
[all...]
/kernel/linux/linux-6.6/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
311 h264_enc_alloc_work_buf(struct venc_h264_inst *inst, bool is_34bit) h264_enc_alloc_work_buf() argument
408 h264_enc_wait_venc_done(struct venc_h264_inst *inst) h264_enc_wait_venc_done() argument
437 h264_encode_sps(struct venc_h264_inst *inst, struct mtk_vcodec_mem *bs_buf, unsigned int *bs_size) h264_encode_sps() argument
460 h264_encode_pps(struct venc_h264_inst *inst, struct mtk_vcodec_mem *bs_buf, unsigned int *bs_size) h264_encode_pps() argument
483 h264_encode_header(struct venc_h264_inst *inst, struct mtk_vcodec_mem *bs_buf, unsigned int *bs_size) h264_encode_header() argument
505 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
568 h264_encode_filler(struct venc_h264_inst *inst, void *buf, int size) h264_encode_filler() argument
588 struct venc_h264_inst *inst; h264_enc_init() local
621 struct venc_h264_inst *inst = (struct venc_h264_inst *)handle; h264_enc_encode() local
708 h264_enc_set_vsi_configs(struct venc_h264_inst *inst, struct venc_enc_param *enc_prm) h264_enc_set_vsi_configs() argument
727 h264_enc_set_vsi_34_configs(struct venc_h264_inst *inst, struct venc_enc_param *enc_prm) h264_enc_set_vsi_34_configs() argument
751 struct venc_h264_inst *inst = (struct venc_h264_inst *)handle; h264_enc_set_param() local
797 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...]
/third_party/mesa3d/src/gallium/drivers/r300/compiler/
H A Dr500_fragprog.c66 struct rc_instruction * inst; in r500_transform_IF() local
86 for (inst = writer->Inst; inst != inst_if; inst = inst->Next) { in r500_transform_IF()
88 rc_get_opcode_info(inst->U.I.Opcode); in r500_transform_IF()
373 uint32_t inst; in r500FragmentProgramDump() local
379 inst0 = inst = code->inst[n].inst0; in r500FragmentProgramDump()
380 fprintf(stderr,"%d\t0:CMN_INST 0x%08x:", n, inst); in r500FragmentProgramDump()
[all...]
/third_party/spirv-tools/source/val/
H A Dvalidate_non_uniform.cpp30 const Instruction* inst) { in ValidateGroupNonUniformElect()
31 if (!_.IsBoolScalarType(inst->type_id())) { in ValidateGroupNonUniformElect()
32 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateGroupNonUniformElect()
40 const Instruction* inst) { in ValidateGroupNonUniformAnyAll()
41 if (!_.IsBoolScalarType(inst->type_id())) { in ValidateGroupNonUniformAnyAll()
42 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateGroupNonUniformAnyAll()
46 if (!_.IsBoolScalarType(_.GetOperandTypeId(inst, 3))) { in ValidateGroupNonUniformAnyAll()
47 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateGroupNonUniformAnyAll()
55 const Instruction* inst) { in ValidateGroupNonUniformAllEqual()
56 if (!_.IsBoolScalarType(inst in ValidateGroupNonUniformAllEqual()
29 ValidateGroupNonUniformElect(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformElect() argument
39 ValidateGroupNonUniformAnyAll(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformAnyAll() argument
54 ValidateGroupNonUniformAllEqual(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformAllEqual() argument
73 ValidateGroupNonUniformBroadcastShuffle(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformBroadcastShuffle() argument
141 ValidateGroupNonUniformBroadcastFirst(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformBroadcastFirst() argument
161 ValidateGroupNonUniformBallot(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformBallot() argument
182 ValidateGroupNonUniformInverseBallot(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformInverseBallot() argument
203 ValidateGroupNonUniformBallotBitExtract(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformBallotBitExtract() argument
230 ValidateGroupNonUniformBallotBitCount(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformBallotBitCount() argument
264 ValidateGroupNonUniformBallotFind(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformBallotFind() argument
285 ValidateGroupNonUniformArithmetic(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformArithmetic() argument
365 ValidateGroupNonUniformRotateKHR(ValidationState_t& _, const Instruction* inst) ValidateGroupNonUniformRotateKHR() argument
421 NonUniformPass(ValidationState_t& _, const Instruction* inst) NonUniformPass() argument
[all...]
/third_party/vulkan-loader/loader/
H A Dunknown_function_handling.c44 void loader_init_dispatch_dev_ext_entry(struct loader_instance *inst, struct loader_device *dev, uint32_t idx, const char *funcName) in loader_init_dispatch_dev_ext_entry() argument
52 for (struct loader_icd_term *icd_term = inst->icd_terms; icd_term != NULL; icd_term = icd_term->next) { in loader_init_dispatch_dev_ext_entry()
65 void loader_init_dispatch_dev_ext(struct loader_instance *inst, struct loader_device *dev) { in loader_init_dispatch_dev_ext() argument
67 if (inst->dev_ext_disp_functions[i] != NULL) in loader_init_dispatch_dev_ext()
68 loader_init_dispatch_dev_ext_entry(inst, dev, i, inst->dev_ext_disp_functions[i]); in loader_init_dispatch_dev_ext()
72 bool loader_check_icds_for_dev_ext_address(struct loader_instance *inst, const char *funcName) { in loader_check_icds_for_dev_ext_address() argument
74 icd_term = inst->icd_terms; in loader_check_icds_for_dev_ext_address()
87 bool loader_check_layer_list_for_dev_ext_address(struct loader_instance *inst, const char *funcName) { in loader_check_layer_list_for_dev_ext_address() argument
89 for (uint32_t layer = 0; layer < inst in loader_check_layer_list_for_dev_ext_address()
115 loader_free_dev_ext_table(struct loader_instance *inst) loader_free_dev_ext_table() argument
139 loader_dev_ext_gpa_impl(struct loader_instance *inst, const char *funcName, bool is_tramp) loader_dev_ext_gpa_impl() argument
175 loader_dev_ext_gpa_tramp(struct loader_instance *inst, const char *funcName) loader_dev_ext_gpa_tramp() argument
179 loader_dev_ext_gpa_term(struct loader_instance *inst, const char *funcName) loader_dev_ext_gpa_term() argument
185 loader_check_icds_for_phys_dev_ext_address(struct loader_instance *inst, const char *funcName) loader_check_icds_for_phys_dev_ext_address() argument
200 loader_check_layer_list_for_phys_dev_ext_address(struct loader_instance *inst, const char *funcName) loader_check_layer_list_for_phys_dev_ext_address() argument
216 loader_free_phys_dev_ext_table(struct loader_instance *inst) loader_free_phys_dev_ext_table() argument
235 loader_phys_dev_ext_gpa_impl(struct loader_instance *inst, const char *funcName, bool is_tramp) loader_phys_dev_ext_gpa_impl() argument
334 loader_phys_dev_ext_gpa_tramp(struct loader_instance *inst, const char *funcName) loader_phys_dev_ext_gpa_tramp() argument
337 loader_phys_dev_ext_gpa_term(struct loader_instance *inst, const char *funcName) loader_phys_dev_ext_gpa_term() argument
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Deliminate_dead_members_pass.cpp43 for (auto& inst : get_module()->types_values()) { in FindLiveMembers()
44 if (inst.opcode() == SpvOpSpecConstantOp) { in FindLiveMembers()
45 switch (inst.GetSingleWordInOperand(kSpecConstOpOpcodeIdx)) { in FindLiveMembers()
47 MarkMembersAsLiveForExtract(&inst); in FindLiveMembers()
61 } else if (inst.opcode() == SpvOpVariable) { in FindLiveMembers()
62 switch (inst.GetSingleWordInOperand(0)) { in FindLiveMembers()
65 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers()
70 if (inst.IsVulkanStorageBufferVariable()) in FindLiveMembers()
71 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers()
84 [this](const Instruction* inst) { FindLiveMember in FindLiveMembers()
87 FindLiveMembers(const Instruction* inst) FindLiveMembers() argument
128 MarkMembersAsLiveForStore( const Instruction* inst) MarkMembersAsLiveForStore() argument
169 MarkMembersAsLiveForCopyMemory( const Instruction* inst) MarkMembersAsLiveForCopyMemory() argument
179 MarkMembersAsLiveForExtract( const Instruction* inst) MarkMembersAsLiveForExtract() argument
211 MarkMembersAsLiveForAccessChain( const Instruction* inst) MarkMembersAsLiveForAccessChain() argument
257 MarkOperandTypeAsFullyUsed( const Instruction* inst, uint32_t in_idx) MarkOperandTypeAsFullyUsed() argument
264 MarkMembersAsLiveForArrayLength( const Instruction* inst) MarkMembersAsLiveForArrayLength() argument
346 UpdateOpTypeStruct(Instruction* inst) UpdateOpTypeStruct() argument
364 UpdateOpMemberNameOrDecorate(Instruction* inst) UpdateOpMemberNameOrDecorate() argument
390 UpdateOpGroupMemberDecorate(Instruction* inst) UpdateOpGroupMemberDecorate() argument
431 UpdateConstantComposite(Instruction* inst) UpdateConstantComposite() argument
452 UpdateAccessChain(Instruction* inst) UpdateAccessChain() argument
490 context(), inst, UpdateAccessChain() local
541 UpdateCompsiteExtract(Instruction* inst) UpdateCompsiteExtract() argument
596 UpdateCompositeInsert(Instruction* inst) UpdateCompositeInsert() argument
657 UpdateOpArrayLength(Instruction* inst) UpdateOpArrayLength() argument
677 MarkStructOperandsAsFullyUsed( const Instruction* inst) MarkStructOperandsAsFullyUsed() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Deliminate_dead_members_pass.cpp43 for (auto& inst : get_module()->types_values()) { in FindLiveMembers()
44 if (inst.opcode() == SpvOpSpecConstantOp) { in FindLiveMembers()
45 switch (inst.GetSingleWordInOperand(kSpecConstOpOpcodeIdx)) { in FindLiveMembers()
47 MarkMembersAsLiveForExtract(&inst); in FindLiveMembers()
61 } else if (inst.opcode() == SpvOpVariable) { in FindLiveMembers()
62 switch (inst.GetSingleWordInOperand(0)) { in FindLiveMembers()
65 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers()
70 if (inst.IsVulkanStorageBufferVariable()) in FindLiveMembers()
71 MarkPointeeTypeAsFullUsed(inst.type_id()); in FindLiveMembers()
84 [this](const Instruction* inst) { FindLiveMember in FindLiveMembers()
87 FindLiveMembers(const Instruction* inst) FindLiveMembers() argument
128 MarkMembersAsLiveForStore( const Instruction* inst) MarkMembersAsLiveForStore() argument
169 MarkMembersAsLiveForCopyMemory( const Instruction* inst) MarkMembersAsLiveForCopyMemory() argument
179 MarkMembersAsLiveForExtract( const Instruction* inst) MarkMembersAsLiveForExtract() argument
211 MarkMembersAsLiveForAccessChain( const Instruction* inst) MarkMembersAsLiveForAccessChain() argument
257 MarkOperandTypeAsFullyUsed( const Instruction* inst, uint32_t in_idx) MarkOperandTypeAsFullyUsed() argument
264 MarkMembersAsLiveForArrayLength( const Instruction* inst) MarkMembersAsLiveForArrayLength() argument
346 UpdateOpTypeStruct(Instruction* inst) UpdateOpTypeStruct() argument
364 UpdateOpMemberNameOrDecorate(Instruction* inst) UpdateOpMemberNameOrDecorate() argument
390 UpdateOpGroupMemberDecorate(Instruction* inst) UpdateOpGroupMemberDecorate() argument
431 UpdateConstantComposite(Instruction* inst) UpdateConstantComposite() argument
452 UpdateAccessChain(Instruction* inst) UpdateAccessChain() argument
490 context(), inst, UpdateAccessChain() local
541 UpdateCompsiteExtract(Instruction* inst) UpdateCompsiteExtract() argument
596 UpdateCompositeInsert(Instruction* inst) UpdateCompositeInsert() argument
657 UpdateOpArrayLength(Instruction* inst) UpdateOpArrayLength() argument
677 MarkStructOperandsAsFullyUsed( const Instruction* inst) MarkStructOperandsAsFullyUsed() argument
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/val/
H A Dvalidate_extensions.cpp65 auto inst = _.FindDef(id); in IsUint32Constant() local
66 if (!inst || inst->opcode() != SpvOpConstant) { in IsUint32Constant()
70 return IsIntScalar(_, inst->type_id(), true, true); in IsUint32Constant()
74 auto inst = _.FindDef(id); in GetUint32Constant() local
75 return inst->word(3); in GetUint32Constant()
78 // Check that the operand of a debug info instruction |inst| at |word_index|
82 SpvOp expected_opcode, const Instruction* inst, uint32_t word_index, in ValidateOperandForDebugInfo()
84 auto* operand = _.FindDef(inst->word(word_index)); in ValidateOperandForDebugInfo()
89 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateOperandForDebugInfo()
80 ValidateOperandForDebugInfo( ValidationState_t& _, const std::string& operand_name, SpvOp expected_opcode, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateOperandForDebugInfo() argument
105 ValidateUint32ConstantOperandForDebugInfo( ValidationState_t& _, const std::string& operand_name, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateUint32ConstantOperandForDebugInfo() argument
134 DoesDebugInfoOperandMatchExpectation( const ValidationState_t& _, const std::function<bool(CommonDebugInfoInstructions)>& expectation, const Instruction* inst, uint32_t word_index) DoesDebugInfoOperandMatchExpectation() argument
153 ValidateDebugInfoOperand( ValidationState_t& _, const std::string& debug_inst_name, CommonDebugInfoInstructions expected_debug_inst, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateDebugInfoOperand() argument
187 ValidateOperandBaseType( ValidationState_t& _, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateOperandBaseType() argument
198 ValidateOperandLexicalScope( ValidationState_t& _, const std::string& debug_inst_name, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateOperandLexicalScope() argument
221 ValidateOperandDebugType( ValidationState_t& _, const std::string& debug_inst_name, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name, bool allow_template_param) ValidateOperandDebugType() argument
245 ValidateClspvReflectionKernel(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionKernel() argument
300 ValidateClspvReflectionArgumentInfo(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentInfo() argument
337 ValidateKernelDecl(ValidationState_t& _, const Instruction* inst) ValidateKernelDecl() argument
360 ValidateArgInfo(ValidationState_t& _, const Instruction* inst, uint32_t info_index) ValidateArgInfo() argument
382 ValidateClspvReflectionArgumentBuffer(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentBuffer() argument
413 ValidateClspvReflectionArgumentPodBuffer(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentPodBuffer() argument
454 ValidateClspvReflectionArgumentPodPushConstant( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentPodPushConstant() argument
485 ValidateClspvReflectionArgumentWorkgroup(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentWorkgroup() argument
516 ValidateClspvReflectionSpecConstantTriple( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSpecConstantTriple() argument
536 ValidateClspvReflectionSpecConstantWorkDim( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSpecConstantWorkDim() argument
546 ValidateClspvReflectionPushConstant(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionPushConstant() argument
561 ValidateClspvReflectionConstantData(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionConstantData() argument
580 ValidateClspvReflectionSampler(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSampler() argument
600 ValidateClspvReflectionPropertyRequiredWorkgroupSize( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionPropertyRequiredWorkgroupSize() argument
624 ValidateClspvReflectionInstruction(ValidationState_t& _, const Instruction* inst, uint32_t ) ValidateClspvReflectionInstruction() argument
685 IsConstWithIntScalarType(ValidationState_t& _, const Instruction* inst, uint32_t word_index) IsConstWithIntScalarType() argument
695 IsDebugVariableWithIntScalarType(ValidationState_t& _, const Instruction* inst, uint32_t word_index) IsDebugVariableWithIntScalarType() argument
726 ValidateExtension(ValidationState_t& _, const Instruction* inst) ValidateExtension() argument
740 ValidateExtInstImport(ValidationState_t& _, const Instruction* inst) ValidateExtInstImport() argument
756 ValidateExtInst(ValidationState_t& _, const Instruction* inst) ValidateExtInst() argument
3294 ExtensionPass(ValidationState_t& _, const Instruction* inst) ExtensionPass() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
H A Dvalidate_extensions.cpp65 auto inst = _.FindDef(id); in IsUint32Constant() local
66 if (!inst || inst->opcode() != SpvOpConstant) { in IsUint32Constant()
70 return IsIntScalar(_, inst->type_id(), true, true); in IsUint32Constant()
74 auto inst = _.FindDef(id); in GetUint32Constant() local
75 return inst->word(3); in GetUint32Constant()
78 // Check that the operand of a debug info instruction |inst| at |word_index|
82 SpvOp expected_opcode, const Instruction* inst, uint32_t word_index, in ValidateOperandForDebugInfo()
84 auto* operand = _.FindDef(inst->word(word_index)); in ValidateOperandForDebugInfo()
89 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateOperandForDebugInfo()
80 ValidateOperandForDebugInfo( ValidationState_t& _, const std::string& operand_name, SpvOp expected_opcode, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateOperandForDebugInfo() argument
105 ValidateUint32ConstantOperandForDebugInfo( ValidationState_t& _, const std::string& operand_name, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateUint32ConstantOperandForDebugInfo() argument
134 DoesDebugInfoOperandMatchExpectation( const ValidationState_t& _, const std::function<bool(CommonDebugInfoInstructions)>& expectation, const Instruction* inst, uint32_t word_index) DoesDebugInfoOperandMatchExpectation() argument
153 ValidateDebugInfoOperand( ValidationState_t& _, const std::string& debug_inst_name, CommonDebugInfoInstructions expected_debug_inst, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateDebugInfoOperand() argument
187 ValidateOperandBaseType( ValidationState_t& _, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateOperandBaseType() argument
198 ValidateOperandLexicalScope( ValidationState_t& _, const std::string& debug_inst_name, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name) ValidateOperandLexicalScope() argument
221 ValidateOperandDebugType( ValidationState_t& _, const std::string& debug_inst_name, const Instruction* inst, uint32_t word_index, const std::function<std::string()>& ext_inst_name, bool allow_template_param) ValidateOperandDebugType() argument
245 ValidateClspvReflectionKernel(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionKernel() argument
300 ValidateClspvReflectionArgumentInfo(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentInfo() argument
337 ValidateKernelDecl(ValidationState_t& _, const Instruction* inst) ValidateKernelDecl() argument
360 ValidateArgInfo(ValidationState_t& _, const Instruction* inst, uint32_t info_index) ValidateArgInfo() argument
382 ValidateClspvReflectionArgumentBuffer(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentBuffer() argument
413 ValidateClspvReflectionArgumentPodBuffer(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentPodBuffer() argument
454 ValidateClspvReflectionArgumentPodPushConstant( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentPodPushConstant() argument
485 ValidateClspvReflectionArgumentWorkgroup(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionArgumentWorkgroup() argument
516 ValidateClspvReflectionSpecConstantTriple( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSpecConstantTriple() argument
536 ValidateClspvReflectionSpecConstantWorkDim( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSpecConstantWorkDim() argument
546 ValidateClspvReflectionPushConstant(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionPushConstant() argument
561 ValidateClspvReflectionConstantData(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionConstantData() argument
580 ValidateClspvReflectionSampler(ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionSampler() argument
600 ValidateClspvReflectionPropertyRequiredWorkgroupSize( ValidationState_t& _, const Instruction* inst) ValidateClspvReflectionPropertyRequiredWorkgroupSize() argument
624 ValidateClspvReflectionInstruction(ValidationState_t& _, const Instruction* inst, uint32_t ) ValidateClspvReflectionInstruction() argument
685 IsConstWithIntScalarType(ValidationState_t& _, const Instruction* inst, uint32_t word_index) IsConstWithIntScalarType() argument
695 IsDebugVariableWithIntScalarType(ValidationState_t& _, const Instruction* inst, uint32_t word_index) IsDebugVariableWithIntScalarType() argument
726 ValidateExtension(ValidationState_t& _, const Instruction* inst) ValidateExtension() argument
740 ValidateExtInstImport(ValidationState_t& _, const Instruction* inst) ValidateExtInstImport() argument
756 ValidateExtInst(ValidationState_t& _, const Instruction* inst) ValidateExtInst() argument
3294 ExtensionPass(ValidationState_t& _, const Instruction* inst) ExtensionPass() argument
[all...]

Completed in 22 milliseconds

12345678910>>...129