| /OK3568_Linux_fs/kernel/tools/perf/util/intel-pt-decoder/ |
| H A D | intel-pt-decoder.c | 95 #define INTEL_PT_STATE_ERR1 (decoder->pkt_state) 224 static void intel_pt_setup_period(struct intel_pt_decoder *decoder) in intel_pt_setup_period() argument 226 if (decoder->period_type == INTEL_PT_PERIOD_TICKS) { in intel_pt_setup_period() 229 period = intel_pt_lower_power_of_2(decoder->period); in intel_pt_setup_period() 230 decoder->period_mask = ~(period - 1); in intel_pt_setup_period() 231 decoder->period_ticks = period; in intel_pt_setup_period() 244 struct intel_pt_decoder *decoder; in intel_pt_decoder_new() local 249 decoder = zalloc(sizeof(struct intel_pt_decoder)); in intel_pt_decoder_new() 250 if (!decoder) in intel_pt_decoder_new() 253 decoder->get_trace = params->get_trace; in intel_pt_decoder_new() [all …]
|
| H A D | Build | 1 perf-$(CONFIG_AUXTRACE) += intel-pt-pkt-decoder.o intel-pt-insn-decoder.o intel-pt-log.o intel-pt-d… 6 $(OUTPUT)util/intel-pt-decoder/inat-tables.c: $(inat_tables_script) $(inat_tables_maps) 12 …(OUTPUT)util/intel-pt-decoder/intel-pt-insn-decoder.o: util/intel-pt-decoder/intel-pt-insn-decoder… 16 CFLAGS_intel-pt-insn-decoder.o += -I$(OUTPUT)util/intel-pt-decoder 19 CFLAGS_intel-pt-insn-decoder.o += -Wno-override-init
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/ |
| H A D | bt819.c | 77 static inline int bt819_write(struct bt819 *decoder, u8 reg, u8 value) in bt819_write() argument 79 struct i2c_client *client = v4l2_get_subdevdata(&decoder->sd); in bt819_write() 81 decoder->reg[reg] = value; in bt819_write() 85 static inline int bt819_setbit(struct bt819 *decoder, u8 reg, u8 bit, u8 value) in bt819_setbit() argument 87 return bt819_write(decoder, reg, in bt819_setbit() 88 (decoder->reg[reg] & ~(1 << bit)) | (value ? (1 << bit) : 0)); in bt819_setbit() 91 static int bt819_write_block(struct bt819 *decoder, const u8 *data, unsigned int len) in bt819_write_block() argument 93 struct i2c_client *client = v4l2_get_subdevdata(&decoder->sd); in bt819_write_block() 109 decoder->reg[reg++] = data[1]; in bt819_write_block() 121 ret = bt819_write(decoder, reg, *data++); in bt819_write_block() [all …]
|
| H A D | tvp5150.c | 110 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_read() local 113 ret = regmap_read(decoder->regmap, addr, &val); in tvp5150_read() 282 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_selmux() local 287 if ((decoder->dev_id == 0x5150 && decoder->rom_ver == 0x0400) || in tvp5150_selmux() 288 (decoder->dev_id == 0x5151 && decoder->rom_ver == 0x0100)) { in tvp5150_selmux() 289 if (!decoder->enable) in tvp5150_selmux() 293 switch (decoder->input) { in tvp5150_selmux() 307 decoder->input == 0 ? "aip1a" : in tvp5150_selmux() 308 decoder->input == 2 ? "aip1b" : "svideo", in tvp5150_selmux() 309 decoder->output == 0 ? "normal" : "black-frame-gen", in tvp5150_selmux() [all …]
|
| H A D | tvp514x.c | 465 struct tvp514x_decoder *decoder) in tvp514x_configure() argument 471 tvp514x_write_regs(sd, decoder->tvp514x_regs); in tvp514x_configure() 493 struct tvp514x_decoder *decoder) in tvp514x_detect() argument 516 decoder->ver = rom_ver; in tvp514x_detect() 519 client->name, decoder->ver, in tvp514x_detect() 534 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_querystd() local 543 if (!decoder->streaming) { in tvp514x_querystd() 555 input_sel = decoder->input; in tvp514x_querystd() 599 *std_id &= decoder->std_list[current_std].standard.id; in tvp514x_querystd() 602 decoder->std_list[current_std].standard.name); in tvp514x_querystd() [all …]
|
| H A D | saa7110.c | 70 struct saa7110 *decoder = to_saa7110(sd); in saa7110_write() local 72 decoder->reg[reg] = value; in saa7110_write() 79 struct saa7110 *decoder = to_saa7110(sd); in saa7110_write_block() local 93 memcpy(decoder->reg + reg, data + 1, len - 1); in saa7110_write_block() 151 struct saa7110 *decoder = to_saa7110(sd); in saa7110_selmux() local 162 decoder->input = chan; in saa7110_selmux() 180 struct saa7110 *decoder = to_saa7110(sd); in determine_norm() local 185 saa7110_selmux(sd, decoder->input); in determine_norm() 186 prepare_to_wait(&decoder->wq, &wait, TASK_UNINTERRUPTIBLE); in determine_norm() 188 finish_wait(&decoder->wq, &wait); in determine_norm() [all …]
|
| H A D | saa717x.c | 768 struct saa717x_state *decoder) in set_audio_regs() argument 775 saa717x_write(sd, 0x0594, decoder->audio_input); in set_audio_regs() 777 decoder->audio_input); in set_audio_regs() 780 work_l = (min(65536 - decoder->audio_main_balance, 32768) * decoder->audio_main_volume) / 32768; in set_audio_regs() 781 work_r = (min(decoder->audio_main_balance, (u16)32768) * decoder->audio_main_volume) / 32768; in set_audio_regs() 782 decoder->audio_main_vol_l = (long)work_l * (24 - (-40)) / 65535 - 40; in set_audio_regs() 783 decoder->audio_main_vol_r = (long)work_r * (24 - (-40)) / 65535 - 40; in set_audio_regs() 789 if (decoder->audio_main_mute) { in set_audio_regs() 792 val = (u8)decoder->audio_main_vol_l | in set_audio_regs() 793 ((u8)decoder->audio_main_vol_r << 8); in set_audio_regs() [all …]
|
| H A D | adv7183.c | 110 struct adv7183 *decoder = to_adv7183(sd); in adv7183_log_status() local 185 v4l2_ctrl_handler_log_status(&decoder->hdl, sd->name); in adv7183_log_status() 191 struct adv7183 *decoder = to_adv7183(sd); in adv7183_g_std() local 193 *std = decoder->std; in adv7183_g_std() 199 struct adv7183 *decoder = to_adv7183(sd); in adv7183_s_std() local 223 decoder->std = std; in adv7183_s_std() 242 struct adv7183 *decoder = to_adv7183(sd); in adv7183_s_routing() local 248 if (input != decoder->input) { in adv7183_s_routing() 249 decoder->input = input; in adv7183_s_routing() 303 if (output != decoder->output) { in adv7183_s_routing() [all …]
|
| H A D | vpx3220.c | 59 struct vpx3220 *decoder = i2c_get_clientdata(client); in vpx3220_write() local 61 decoder->reg[reg] = value; in vpx3220_write() 267 struct vpx3220 *decoder = to_vpx3220(sd); in vpx3220_init() local 271 if (decoder->norm & V4L2_STD_NTSC) in vpx3220_init() 273 else if (decoder->norm & V4L2_STD_PAL) in vpx3220_init() 275 else if (decoder->norm & V4L2_STD_SECAM) in vpx3220_init() 339 struct vpx3220 *decoder = to_vpx3220(sd); in vpx3220_s_std() local 361 decoder->norm = std; in vpx3220_s_std() 462 struct vpx3220 *decoder; in vpx3220_probe() local 473 decoder = devm_kzalloc(&client->dev, sizeof(*decoder), GFP_KERNEL); in vpx3220_probe() [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/util/arm-spe-decoder/ |
| H A D | arm-spe-decoder.c | 69 struct arm_spe_decoder *decoder; in arm_spe_decoder_new() local 74 decoder = zalloc(sizeof(struct arm_spe_decoder)); in arm_spe_decoder_new() 75 if (!decoder) in arm_spe_decoder_new() 78 decoder->get_trace = params->get_trace; in arm_spe_decoder_new() 79 decoder->data = params->data; in arm_spe_decoder_new() 81 return decoder; in arm_spe_decoder_new() 84 void arm_spe_decoder_free(struct arm_spe_decoder *decoder) in arm_spe_decoder_free() argument 86 free(decoder); in arm_spe_decoder_free() 89 static int arm_spe_get_data(struct arm_spe_decoder *decoder) in arm_spe_get_data() argument 95 ret = decoder->get_trace(&buffer, decoder->data); in arm_spe_get_data() [all …]
|
| /OK3568_Linux_fs/external/gstreamer-rockchip/gst/rockchipmpp/ |
| H A D | gstmppdec.c | 46 #define GST_MPP_DEC_TASK_STARTED(decoder) \ argument 47 (gst_pad_get_task_state ((decoder)->srcpad) == GST_TASK_STARTED) 49 #define GST_MPP_DEC_MUTEX(decoder) (&GST_MPP_DEC (decoder)->mutex) argument 51 #define GST_MPP_DEC_LOCK(decoder) \ argument 52 GST_VIDEO_DECODER_STREAM_UNLOCK (decoder); \ 53 g_mutex_lock (GST_MPP_DEC_MUTEX (decoder)); \ 54 GST_VIDEO_DECODER_STREAM_LOCK (decoder); 56 #define GST_MPP_DEC_UNLOCK(decoder) \ argument 57 g_mutex_unlock (GST_MPP_DEC_MUTEX (decoder)); 84 GstVideoDecoder *decoder = GST_VIDEO_DECODER (object); in gst_mpp_dec_set_property() local [all …]
|
| H A D | gstmppjpegdec.c | 99 gst_mpp_jpeg_dec_try_pp_convert (GstVideoDecoder * decoder, in gst_mpp_jpeg_dec_try_pp_convert() argument 102 GstMppDec *mppdec = GST_MPP_DEC (decoder); in gst_mpp_jpeg_dec_try_pp_convert() 138 GstVideoDecoder *decoder = GST_VIDEO_DECODER (object); in gst_mpp_jpeg_dec_set_property() local 139 GstMppDec *mppdec = GST_MPP_DEC (decoder); in gst_mpp_jpeg_dec_set_property() 144 GST_WARNING_OBJECT (decoder, "unable to change output format"); in gst_mpp_jpeg_dec_set_property() 160 GstVideoDecoder *decoder = GST_VIDEO_DECODER (object); in gst_mpp_jpeg_dec_get_property() local 161 GstMppDec *mppdec = GST_MPP_DEC (decoder); in gst_mpp_jpeg_dec_get_property() 174 gst_mpp_jpeg_dec_start (GstVideoDecoder * decoder) in gst_mpp_jpeg_dec_start() argument 177 GstMppJpegDec *self = GST_MPP_JPEG_DEC (decoder); in gst_mpp_jpeg_dec_start() 178 GstMppDec *mppdec = GST_MPP_DEC (decoder); in gst_mpp_jpeg_dec_start() [all …]
|
| H A D | gstmppvideodec.c | 125 GstVideoDecoder *decoder = GST_VIDEO_DECODER (object); in gst_mpp_video_dec_set_property() local 126 GstMppDec *mppdec = GST_MPP_DEC (decoder); in gst_mpp_video_dec_set_property() 131 GST_WARNING_OBJECT (decoder, "unable to change output format"); in gst_mpp_video_dec_set_property() 138 GST_WARNING_OBJECT (decoder, "unable to change ARM AFBC"); in gst_mpp_video_dec_set_property() 153 GstVideoDecoder *decoder = GST_VIDEO_DECODER (object); in gst_mpp_video_dec_get_property() local 154 GstMppDec *mppdec = GST_MPP_DEC (decoder); in gst_mpp_video_dec_get_property() 170 gst_mpp_video_dec_set_format (GstVideoDecoder * decoder, in gst_mpp_video_dec_set_format() argument 174 GstMppDec *mppdec = GST_MPP_DEC (decoder); in gst_mpp_video_dec_set_format() 189 return pclass->set_format (decoder, state); in gst_mpp_video_dec_set_format() 193 gst_mpp_video_dec_startup (GstVideoDecoder * decoder) in gst_mpp_video_dec_startup() argument [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/util/cs-etm-decoder/ |
| H A D | cs-etm-decoder.c | 48 struct cs_etm_decoder *decoder = (struct cs_etm_decoder *) context; in cs_etm_decoder__mem_access() local 50 return decoder->mem_access(decoder->data, trace_chan_id, in cs_etm_decoder__mem_access() 54 int cs_etm_decoder__add_mem_access_cb(struct cs_etm_decoder *decoder, in cs_etm_decoder__add_mem_access_cb() argument 58 decoder->mem_access = cb_func; in cs_etm_decoder__add_mem_access_cb() 60 if (ocsd_dt_add_callback_trcid_mem_acc(decoder->dcd_tree, start, end, in cs_etm_decoder__add_mem_access_cb() 63 decoder)) in cs_etm_decoder__add_mem_access_cb() 69 int cs_etm_decoder__reset(struct cs_etm_decoder *decoder) in cs_etm_decoder__reset() argument 73 decoder->prev_return = OCSD_RESP_CONT; in cs_etm_decoder__reset() 75 dp_ret = ocsd_dt_process_data(decoder->dcd_tree, OCSD_OP_RESET, in cs_etm_decoder__reset() 152 struct cs_etm_decoder *decoder) in cs_etm_decoder__init_def_logger_printing() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/misc/ |
| H A D | gpio_decoder.c | 32 static int gpio_decoder_get_gpios_state(struct gpio_decoder *decoder) in gpio_decoder_get_gpios_state() argument 34 struct gpio_descs *gpios = decoder->input_gpios; in gpio_decoder_get_gpios_state() 41 dev_err(decoder->dev, in gpio_decoder_get_gpios_state() 56 struct gpio_decoder *decoder = input_get_drvdata(input); in gpio_decoder_poll_gpios() local 59 state = gpio_decoder_get_gpios_state(decoder); in gpio_decoder_poll_gpios() 60 if (state >= 0 && state != decoder->last_stable) { in gpio_decoder_poll_gpios() 61 input_report_abs(input, decoder->axis, state); in gpio_decoder_poll_gpios() 63 decoder->last_stable = state; in gpio_decoder_poll_gpios() 70 struct gpio_decoder *decoder; in gpio_decoder_probe() local 75 decoder = devm_kzalloc(dev, sizeof(*decoder), GFP_KERNEL); in gpio_decoder_probe() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/rkdec/avsd/ |
| H A D | hal_avsd_api.c | 115 MPP_RET hal_avsd_deinit(void *decoder) in hal_avsd_deinit() argument 118 AvsdHalCtx_t *p_hal = (AvsdHalCtx_t *)decoder; in hal_avsd_deinit() 121 INP_CHECK(ret, NULL == decoder); in hal_avsd_deinit() 123 FUN_CHECK(ret = p_hal->hal_api.deinit(decoder)); in hal_avsd_deinit() 149 MPP_RET hal_avsd_init(void *decoder, MppHalCfg *cfg) in hal_avsd_init() argument 152 AvsdHalCtx_t *p_hal = (AvsdHalCtx_t *)decoder; in hal_avsd_init() 155 INP_CHECK(ret, NULL == decoder); in hal_avsd_init() 170 FUN_CHECK(ret = p_hal->hal_api.init(decoder, cfg)); in hal_avsd_init() 177 hal_avsd_deinit(decoder); in hal_avsd_init() 188 MPP_RET hal_avsd_gen_regs(void *decoder, HalTaskInfo *task) in hal_avsd_gen_regs() argument [all …]
|
| H A D | hal_avsd_plus.h | 24 MPP_RET hal_avsd_plus_init (void *decoder, MppHalCfg *cfg); 25 MPP_RET hal_avsd_plus_deinit (void *decoder); 26 MPP_RET hal_avsd_plus_gen_regs(void *decoder, HalTaskInfo *task); 27 MPP_RET hal_avsd_plus_start (void *decoder, HalTaskInfo *task); 28 MPP_RET hal_avsd_plus_wait (void *decoder, HalTaskInfo *task); 29 MPP_RET hal_avsd_plus_reset (void *decoder); 30 MPP_RET hal_avsd_plus_flush (void *decoder); 31 MPP_RET hal_avsd_plus_control (void *decoder, MpiCmd cmd_type, void *param);
|
| H A D | hal_avsd_vdpu2.h | 26 MPP_RET hal_avsd_vdpu2_init (void *decoder, MppHalCfg *cfg); 27 MPP_RET hal_avsd_vdpu2_deinit (void *decoder); 28 MPP_RET hal_avsd_vdpu2_gen_regs(void *decoder, HalTaskInfo *task); 29 MPP_RET hal_avsd_vdpu2_start (void *decoder, HalTaskInfo *task); 30 MPP_RET hal_avsd_vdpu2_wait (void *decoder, HalTaskInfo *task); 31 MPP_RET hal_avsd_vdpu2_reset (void *decoder); 32 MPP_RET hal_avsd_vdpu2_flush (void *decoder); 33 MPP_RET hal_avsd_vdpu2_control (void *decoder, MpiCmd cmd_type, void *param);
|
| H A D | hal_avsd_vdpu1.h | 26 MPP_RET hal_avsd_vdpu1_init(void *decoder, MppHalCfg *cfg); 27 MPP_RET hal_avsd_vdpu1_deinit(void *decoder); 28 MPP_RET hal_avsd_vdpu1_gen_regs(void *decoder, HalTaskInfo *task); 29 MPP_RET hal_avsd_vdpu1_start(void *decoder, HalTaskInfo *task); 30 MPP_RET hal_avsd_vdpu1_wait(void *decoder, HalTaskInfo *task); 31 MPP_RET hal_avsd_vdpu1_reset(void *decoder); 32 MPP_RET hal_avsd_vdpu1_flush(void *decoder); 33 MPP_RET hal_avsd_vdpu1_control(void *decoder, MpiCmd cmd_type, void *param);
|
| /OK3568_Linux_fs/external/mpp/mpp/ |
| H A D | codecs.cmake | 3 # AVS decoder 4 option(ENABLE_AVSD "Enable avs decoder" ON) 13 # AVS2 decoder 14 option(ENABLE_AVS2D "Enable avs2 decoder" ON) 23 # H.263 decoder 24 option(ENABLE_H263D "Enable h.263 decoder" ON) 32 # H.264 decoder 33 option(ENABLE_H264D "Enable h.264 decoder" ON) 40 option(ENABLE_FASTPLAY_ONCE "Enable h.264 decoder fast play once" OFF) 45 # H.265 decoder [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/userspace-api/media/v4l/ |
| H A D | vidioc-decoder-cmd.rst | 13 VIDIOC_DECODER_CMD - VIDIOC_TRY_DECODER_CMD - Execute an decoder command 38 These ioctls control an audio/video (usually MPEG-) decoder. 39 ``VIDIOC_DECODER_CMD`` sends a command to the decoder, 50 call sends an implicit START command to the decoder if it has not been 55 command to the decoder, and all buffered data is discarded. Applies to both 60 (as further documented in :ref:`decoder`). 76 - The decoder command, see :ref:`decoder-cmds`. 105 the decoder operates on full GOPs (*Group Of Pictures*). This is 106 usually the case for reverse playback: the decoder needs full 108 reverse playback the application must feed the decoder the last [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/avs/ |
| H A D | avsd_api.c | 42 MPP_RET avsd_deinit(void *decoder) in avsd_deinit() argument 45 AvsdCtx_t *p_dec = (AvsdCtx_t *)decoder; in avsd_deinit() 47 INP_CHECK(ret, !decoder); in avsd_deinit() 55 (void)decoder; in avsd_deinit() 67 static MPP_RET avsd_init(void *decoder, ParserCfg *init) in avsd_init() argument 71 AvsdCtx_t *p_dec = (AvsdCtx_t *)decoder; in avsd_init() 109 avsd_deinit(decoder); in avsd_init() 120 static MPP_RET avsd_reset(void *decoder) in avsd_reset() argument 123 AvsdCtx_t *p_dec = (AvsdCtx_t *)decoder; in avsd_reset() 151 static MPP_RET avsd_flush(void *decoder) in avsd_flush() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/video/rockchip/mpp/ |
| H A D | Kconfig | 19 bool "RKV decoder device driver" 21 rockchip mpp rkv combo decoder and hevc decoder. 24 bool "RKV decoder v2 device driver" 26 rockchip mpp rkv combo decoder v2. 39 bool "VPU decoder v1 device driver" 41 rockchip mpp vpu decoder v1. 49 bool "VPU decoder v2 device driver" 51 rockchip mpp vpu decoder v2. 64 bool "RKV jpeg decoder v1 device driver" 66 rockchip mpp rkv jpeg decoder. [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/inc/ |
| H A D | av1d_api.h | 28 MPP_RET av1d_init (void *decoder, ParserCfg *cfg); 29 MPP_RET av1d_deinit (void *decoder); 30 MPP_RET av1d_reset (void *decoder); 31 MPP_RET av1d_flush (void *decoder); 32 MPP_RET av1d_control(void *decoder, MpiCmd cmd_type, void *param); 33 MPP_RET av1d_prepare(void *decoder, MppPacket pkt, HalDecTask *task); 34 MPP_RET av1d_parse (void *decoder, HalDecTask *task); 35 MPP_RET av1d_callback(void *decoder, void *info);
|
| H A D | vp9d_api.h | 30 MPP_RET vp9d_init (void *decoder, ParserCfg *cfg); 31 MPP_RET vp9d_deinit (void *decoder); 32 MPP_RET vp9d_reset (void *decoder); 33 MPP_RET vp9d_flush (void *decoder); 34 MPP_RET vp9d_control(void *decoder, MpiCmd cmd_type, void *param); 35 MPP_RET vp9d_prepare(void *decoder, MppPacket pkt, HalDecTask *task); 36 MPP_RET vp9d_parse (void *decoder, HalDecTask *task); 37 MPP_RET vp9d_callback(void *decoder, void *info);
|