Home
last modified time | relevance | path

Searched refs:dec (Results 1 – 25 of 349) sorted by relevance

12345678910>>...14

/OK3568_Linux_fs/kernel/drivers/media/usb/ttusb-dec/
H A Dttusb_dec.c245 static void ttusb_dec_set_model(struct ttusb_dec *dec,
250 struct ttusb_dec *dec = urb->context; in ttusb_dec_handle_irq() local
251 char *buffer = dec->irq_buffer; in ttusb_dec_handle_irq()
287 input_report_key(dec->rc_input_dev, rc_keys[index - 1], 1); in ttusb_dec_handle_irq()
288 input_sync(dec->rc_input_dev); in ttusb_dec_handle_irq()
289 input_report_key(dec->rc_input_dev, rc_keys[index - 1], 0); in ttusb_dec_handle_irq()
290 input_sync(dec->rc_input_dev); in ttusb_dec_handle_irq()
314 static int ttusb_dec_send_command(struct ttusb_dec *dec, const u8 command, in ttusb_dec_send_command() argument
327 if ((result = mutex_lock_interruptible(&dec->usb_mutex))) { in ttusb_dec_send_command()
334 b[1] = ++dec->trans_count; in ttusb_dec_send_command()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/codec/
H A Dmpp_dec_normal.cpp42 static MPP_RET check_task_wait(MppDecImpl *dec, DecTask *task) in check_task_wait() argument
45 RK_U32 notify = dec->parser_notify_flag; in check_task_wait()
46 RK_U32 last_wait = dec->parser_wait_flag; in check_task_wait()
52 if (dec->reset_flag) in check_task_wait()
69 dec_dbg_status("%p %08x -> %08x [%08x] notify %08x -> %s\n", dec, in check_task_wait()
72 dec->parser_status_flag = task->status.val; in check_task_wait()
73 dec->parser_wait_flag = task->wait.val; in check_task_wait()
74 dec->parser_notify_flag = keep_notify; in check_task_wait()
77 dec->parser_wait_count++; in check_task_wait()
79 dec->parser_work_count++; in check_task_wait()
[all …]
H A Dmpp_dec.cpp37 HalDecTask *p = &task->dec; in dec_task_info_init()
45 memset(&task->dec.syntax, 0, sizeof(task->dec.syntax)); in dec_task_info_init()
46 memset(task->dec.refer, -1, sizeof(task->dec.refer)); in dec_task_info_init()
101 MPP_RET mpp_dec_proc_cfg(MppDecImpl *dec, MpiCmd cmd, void *param) in mpp_dec_proc_cfg() argument
105 mpp_parser_control(dec->parser, cmd, param); in mpp_dec_proc_cfg()
107 ret = mpp_hal_control(dec->hal, cmd, param); in mpp_dec_proc_cfg()
116 mpp_slots_set_prop(dec->frame_slots, SLOTS_FRAME_INFO, frame); in mpp_dec_proc_cfg()
126 ret = mpp_buf_slot_ready(dec->frame_slots); in mpp_dec_proc_cfg()
130 *p = mpp_slots_get_used_count(dec->frame_slots); in mpp_dec_proc_cfg()
142 ret = mpp_dec_set_cfg_by_cmd(&dec->cfg, cmd, param); in mpp_dec_proc_cfg()
[all …]
H A Dmpp_dec_no_thread.cpp29 MppDecImpl *dec = (MppDecImpl *)ctx; in mpp_dec_decode() local
30 Mpp *mpp = (Mpp *)dec->mpp; in mpp_dec_decode()
31 DecTask *task = (DecTask *)dec->task_single; in mpp_dec_decode()
33 MppBufSlots frame_slots = dec->frame_slots; in mpp_dec_decode()
34 MppBufSlots packet_slots = dec->packet_slots; in mpp_dec_decode()
35 HalDecTask *task_dec = &task->info.dec; in mpp_dec_decode()
36 MppMutexCond *cmd_lock = dec->cmd_lock; in mpp_dec_decode()
37 MppPacket input = dec->mpp_pkt_in; in mpp_dec_decode()
54 dec_dbg_detail("detail: %p input pkt %p len %d task ready %d\n", dec, in mpp_dec_decode()
57 dec_dbg_detail("detail: %p input pkt NULL task ready %d\n", dec, in mpp_dec_decode()
[all …]
/OK3568_Linux_fs/kernel/drivers/video/rockchip/mpp/
H A Dmpp_rkvdec.c262 static int rkvdec_devf_set_clk(struct rkvdec_dev *dec, in rkvdec_devf_set_clk() argument
268 struct clk *aclk = dec->aclk_info.clk; in rkvdec_devf_set_clk()
269 struct clk *clk_core = dec->core_clk_info.clk; in rkvdec_devf_set_clk()
270 struct clk *clk_cabac = dec->cabac_clk_info.clk; in rkvdec_devf_set_clk()
272 mutex_lock(&dec->set_clk_lock); in rkvdec_devf_set_clk()
276 clk_set_rate(aclk, dec->devf_aclk_rate_hz); in rkvdec_devf_set_clk()
277 clk_set_rate(clk_core, dec->devf_core_rate_hz); in rkvdec_devf_set_clk()
278 clk_set_rate(clk_cabac, dec->devf_cabac_rate_hz); in rkvdec_devf_set_clk()
279 dec->thermal_div = 0; in rkvdec_devf_set_clk()
285 dec->thermal_div = 0; in rkvdec_devf_set_clk()
[all …]
H A Dmpp_rkvdec2.c199 struct rkvdec2_dev *dec = to_rkvdec2_dev(mpp); in mpp_set_rcbbuf() local
204 if (priv && dec->rcb_iova) { in mpp_set_rcbbuf()
210 if (width < dec->rcb_min_width) in mpp_set_rcbbuf()
217 if ((rcb_offset + rcb_size) > dec->rcb_size) { in mpp_set_rcbbuf()
224 task->reg[reg_idx] = dec->rcb_iova + rcb_offset; in mpp_set_rcbbuf()
418 struct rkvdec2_dev *dec = to_rkvdec2_dev(mpp); in rkvdec2_isr() local
426 mpp_time_diff_with_hw_time(mpp_task, dec->cycle_clk->real_rate_hz); in rkvdec2_isr()
642 struct rkvdec2_dev *dec = to_rkvdec2_dev(mpp); in rkvdec2_procfs_remove() local
644 if (dec->procfs) { in rkvdec2_procfs_remove()
645 proc_remove(dec->procfs); in rkvdec2_procfs_remove()
[all …]
H A Dmpp_av1dec.c486 static int av1dec_set_l2_cache(struct av1dec_dev *dec, struct av1dec_task *task) in av1dec_set_l2_cache() argument
510 dec->reg_base[AV1DEC_CLASS_CACHE] + AV1_L2_CACHE_PP0_Y_CONFIG0); in av1dec_set_l2_cache()
512 writel_relaxed(val, dec->reg_base[AV1DEC_CLASS_CACHE] + AV1_L2_CACHE_PP0_Y_CONFIG2); in av1dec_set_l2_cache()
515 writel_relaxed(val, dec->reg_base[AV1DEC_CLASS_CACHE] + AV1_L2_CACHE_PP0_Y_CONFIG3); in av1dec_set_l2_cache()
524 dec->reg_base[AV1DEC_CLASS_CACHE] + AV1_L2_CACHE_PP0_U_CONFIG0); in av1dec_set_l2_cache()
526 writel_relaxed(val, dec->reg_base[AV1DEC_CLASS_CACHE] + AV1_L2_CACHE_PP0_U_CONFIG2); in av1dec_set_l2_cache()
529 writel_relaxed(val, dec->reg_base[AV1DEC_CLASS_CACHE] + AV1_L2_CACHE_PP0_U_CONFIG3); in av1dec_set_l2_cache()
531 writel_relaxed(0xf, dec->reg_base[AV1DEC_CLASS_CACHE] + AV1_L2_CACHE_INT_MASK); in av1dec_set_l2_cache()
535 dec->reg_base[AV1DEC_CLASS_CACHE] + AV1_L2_CACHE_SHAPER_CTRL); in av1dec_set_l2_cache()
540 writel_relaxed(0x00000001, dec->reg_base[AV1DEC_CLASS_CACHE] + in av1dec_set_l2_cache()
[all …]
H A Dmpp_rkvdec2_link.c312 struct rkvdec2_dev *dec = to_rkvdec2_dev(mpp); in rkvdec_link_dump() local
313 struct rkvdec_link_dev *dev = dec->link_dec; in rkvdec_link_dump()
396 struct rkvdec2_dev *dec = to_rkvdec2_dev(mpp); in rkvdec2_link_finish() local
398 struct rkvdec_link_dev *link_dec = dec->link_dec; in rkvdec2_link_finish()
425 struct rkvdec2_dev *dec = to_rkvdec2_dev(mpp); in rkvdec2_link_prepare() local
426 struct rkvdec_link_dev *link_dec = dec->link_dec; in rkvdec2_link_prepare()
518 struct rkvdec2_dev *dec = to_rkvdec2_dev(mpp); in rkvdec2_link_irq() local
519 struct rkvdec_link_dev *link_dec = dec->link_dec; in rkvdec2_link_irq()
612 struct rkvdec2_dev *dec = to_rkvdec2_dev(mpp); in rkvdec2_link_procfs_init() local
613 struct rkvdec_link_dev *link_dec = dec->link_dec; in rkvdec2_link_procfs_init()
[all …]
H A Dmpp_jpgdec.c366 struct jpgdec_dev *dec = to_jpgdec_dev(mpp); in jpgdec_procfs_remove() local
368 if (dec->procfs) { in jpgdec_procfs_remove()
369 proc_remove(dec->procfs); in jpgdec_procfs_remove()
370 dec->procfs = NULL; in jpgdec_procfs_remove()
378 struct jpgdec_dev *dec = to_jpgdec_dev(mpp); in jpgdec_procfs_init() local
380 dec->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs); in jpgdec_procfs_init()
381 if (IS_ERR_OR_NULL(dec->procfs)) { in jpgdec_procfs_init()
383 dec->procfs = NULL; in jpgdec_procfs_init()
388 mpp_procfs_create_common(dec->procfs, mpp); in jpgdec_procfs_init()
391 dec->procfs, &dec->aclk_info.debug_rate_hz); in jpgdec_procfs_init()
[all …]
H A Dmpp_vdpu2.c462 struct vdpu_dev *dec = to_vdpu_dev(mpp); in vdpu_procfs_remove() local
464 if (dec->procfs) { in vdpu_procfs_remove()
465 proc_remove(dec->procfs); in vdpu_procfs_remove()
466 dec->procfs = NULL; in vdpu_procfs_remove()
474 struct vdpu_dev *dec = to_vdpu_dev(mpp); in vdpu_procfs_init() local
476 dec->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs); in vdpu_procfs_init()
477 if (IS_ERR_OR_NULL(dec->procfs)) { in vdpu_procfs_init()
479 dec->procfs = NULL; in vdpu_procfs_init()
484 mpp_procfs_create_common(dec->procfs, mpp); in vdpu_procfs_init()
487 dec->procfs, &dec->aclk_info.debug_rate_hz); in vdpu_procfs_init()
[all …]
H A Dmpp_vdpu1.c503 struct vdpu_dev *dec = to_vdpu_dev(mpp); in vdpu_procfs_remove() local
505 if (dec->procfs) { in vdpu_procfs_remove()
506 proc_remove(dec->procfs); in vdpu_procfs_remove()
507 dec->procfs = NULL; in vdpu_procfs_remove()
515 struct vdpu_dev *dec = to_vdpu_dev(mpp); in vdpu_procfs_init() local
517 dec->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs); in vdpu_procfs_init()
518 if (IS_ERR_OR_NULL(dec->procfs)) { in vdpu_procfs_init()
520 dec->procfs = NULL; in vdpu_procfs_init()
525 mpp_procfs_create_common(dec->procfs, mpp); in vdpu_procfs_init()
528 dec->procfs, &dec->aclk_info.debug_rate_hz); in vdpu_procfs_init()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/mpg4/
H A Dmpg4d_api.c53 static MPP_RET mpg4d_init(void *dec, ParserCfg *cfg) in mpg4d_init() argument
62 if (NULL == dec) { in mpg4d_init()
63 mpp_err_f("found NULL intput dec %p cfg %p\n", dec, cfg); in mpg4d_init()
90 p = (Mpg4dCtx *)dec; in mpg4d_init()
117 static MPP_RET mpg4d_deinit(void *dec) in mpg4d_deinit() argument
120 if (NULL == dec) { in mpg4d_deinit()
125 p = (Mpg4dCtx *)dec; in mpg4d_deinit()
142 static MPP_RET mpg4d_reset(void *dec) in mpg4d_reset() argument
144 if (NULL == dec) { in mpg4d_reset()
149 Mpg4dCtx *p = (Mpg4dCtx *)dec; in mpg4d_reset()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/h263/
H A Dh263d_api.c50 MPP_RET h263d_init(void *dec, ParserCfg *cfg) in h263d_init() argument
59 if (NULL == dec) { in h263d_init()
60 mpp_err_f("found NULL intput dec %p cfg %p\n", dec, cfg); in h263d_init()
87 p = (H263dCtx *)dec; in h263d_init()
108 MPP_RET h263d_deinit(void *dec) in h263d_deinit() argument
111 if (NULL == dec) { in h263d_deinit()
116 p = (H263dCtx *)dec; in h263d_deinit()
133 MPP_RET h263d_reset(void *dec) in h263d_reset() argument
135 if (NULL == dec) { in h263d_reset()
140 H263dCtx *p = (H263dCtx *)dec; in h263d_reset()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/dummy/
H A Ddummy_dec_api.c54 MPP_RET dummy_dec_init(void *dec, ParserCfg *cfg) in dummy_dec_init() argument
62 if (NULL == dec) { in dummy_dec_init()
63 mpp_err_f("found NULL intput dec %p cfg %p\n", dec, cfg); in dummy_dec_init()
79 p = (DummyDec *)dec; in dummy_dec_init()
92 MPP_RET dummy_dec_deinit(void *dec) in dummy_dec_deinit() argument
95 if (NULL == dec) { in dummy_dec_deinit()
100 p = (DummyDec *)dec; in dummy_dec_deinit()
108 MPP_RET dummy_dec_reset(void *dec) in dummy_dec_reset() argument
110 if (NULL == dec) { in dummy_dec_reset()
118 MPP_RET dummy_dec_flush(void *dec) in dummy_dec_flush() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/media/i2c/
H A Dtw9906.c87 struct tw9906 *dec = to_state(sd); in tw9906_s_std() local
105 dec->norm = norm; in tw9906_s_std()
111 struct tw9906 *dec = container_of(ctrl->handler, struct tw9906, hdl); in tw9906_s_ctrl() local
112 struct v4l2_subdev *sd = &dec->sd; in tw9906_s_ctrl()
132 struct tw9906 *dec = to_state(sd); in tw9906_log_status() local
133 bool is_60hz = dec->norm & V4L2_STD_525_60; in tw9906_log_status()
163 struct tw9906 *dec; in tw9906_probe() local
174 dec = devm_kzalloc(&client->dev, sizeof(*dec), GFP_KERNEL); in tw9906_probe()
175 if (dec == NULL) in tw9906_probe()
177 sd = &dec->sd; in tw9906_probe()
[all …]
H A Dtw9903.c116 struct tw9903 *dec = to_state(sd); in tw9903_s_std() local
134 dec->norm = norm; in tw9903_s_std()
141 struct tw9903 *dec = container_of(ctrl->handler, struct tw9903, hdl); in tw9903_s_ctrl() local
142 struct v4l2_subdev *sd = &dec->sd; in tw9903_s_ctrl()
162 struct tw9903 *dec = to_state(sd); in tw9903_log_status() local
163 bool is_60hz = dec->norm & V4L2_STD_525_60; in tw9903_log_status()
195 struct tw9903 *dec; in tw9903_probe() local
206 dec = devm_kzalloc(&client->dev, sizeof(*dec), GFP_KERNEL); in tw9903_probe()
207 if (dec == NULL) in tw9903_probe()
209 sd = &dec->sd; in tw9903_probe()
[all …]
H A Dtw2804.c252 struct tw2804 *dec = to_state(sd); in tw2804_s_std() local
269 write_regs(client, regs, dec->channel); in tw2804_s_std()
270 dec->norm = norm; in tw2804_s_std()
277 struct tw2804 *dec = to_state(sd); in tw2804_s_video_routing() local
281 if (config && config - 1 != dec->channel) { in tw2804_s_video_routing()
287 dec->channel = config - 1; in tw2804_s_video_routing()
289 dec->channel); in tw2804_s_video_routing()
290 if (dec->channel == 0 && in tw2804_s_video_routing()
296 if (write_regs(client, channel_registers, dec->channel) < 0) { in tw2804_s_video_routing()
299 dec->channel); in tw2804_s_video_routing()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/codec/inc/
H A Ddummy_dec_api.h28 MPP_RET dummy_dec_init (void *dec, ParserCfg *cfg);
29 MPP_RET dummy_dec_deinit (void *dec);
30 MPP_RET dummy_dec_reset (void *dec);
31 MPP_RET dummy_dec_flush (void *dec);
32 MPP_RET dummy_dec_control(void *dec, MpiCmd cmd_type, void *param);
33 MPP_RET dummy_dec_prepare(void *dec, MppPacket pkt, HalDecTask *task);
34 MPP_RET dummy_dec_parse (void *dec, HalDecTask *task);
35 MPP_RET dummy_dec_callback(void *dec, void *err_info);
H A Dmpp_dec_impl.h60 MPP_RET (*start)(MppDecImpl *dec);
61 MPP_RET (*stop)(MppDecImpl *dec);
62 MPP_RET (*reset)(MppDecImpl *dec);
63 MPP_RET (*notify)(MppDecImpl *dec, RK_U32 flag);
64 MPP_RET (*control)(MppDecImpl *dec, MpiCmd cmd, void *param);
237 MPP_RET mpp_dec_proc_cfg(MppDecImpl *dec, MpiCmd cmd, void *param);
239 MPP_RET update_dec_hal_info(MppDecImpl *dec, MppFrame frame);
/OK3568_Linux_fs/kernel/fs/unicode/
H A Dutf8-selftest.c41 unsigned char dec[10]; member
47 .dec = "aBba",
55 .dec = {0xc2, 0xbc, 0x00},
61 .dec = {0x61, 0xcc, 0x88, 0x00},
67 .dec = {0xC7, 0x89, 0x00},
72 .dec = {0xC2, 0xB7, 0x00}
79 .dec = {0x41, 0xcc, 0xa8, 0xcc, 0x81, 0x0},
87 .dec = {0x61, 0xCC, 0xA8, 0xcc, 0x88, 0x00},
178 int nlen = strlen(nfdi_test_data[i].dec); in check_utf8_nfdi()
189 test_f((c == nfdi_test_data[i].dec[j]), in check_utf8_nfdi()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/sti/delta/
H A Ddelta-v4l2.c31 #define call_dec_op(dec, op, args...)\ argument
32 ((dec && (dec)->op) ? (dec)->op(args) : 0)
136 const struct delta_dec *dec = ctx->dec; in delta_recycle() local
139 call_dec_op(dec, recycle, ctx, frame); in delta_recycle()
283 const struct delta_dec *dec; in delta_find_decoder() local
287 dec = delta->decoders[i]; in delta_find_decoder()
288 if ((dec->pixelformat == pixelformat) && in delta_find_decoder()
289 (dec->streamformat == streamformat)) in delta_find_decoder()
290 return dec; in delta_find_decoder()
346 const struct delta_dec *dec; in delta_open_decoder() local
[all …]
/OK3568_Linux_fs/kernel/scripts/atomic/fallbacks/
H A Ddec_if_positive5 ${int} dec, c = ${arch}${atomic}_read(v);
8 dec = c - 1;
9 if (unlikely(dec < 0))
11 } while (!${arch}${atomic}_try_cmpxchg(v, &c, dec));
13 return dec;
/OK3568_Linux_fs/kernel/arch/arm/mach-rockchip/
H A Drkpm_helpers.c186 void rkpm_printdec(int dec) in rkpm_printdec() argument
188 int i, tmp = dec; in rkpm_printdec()
190 if (dec < 0) { in rkpm_printdec()
192 tmp = -dec; in rkpm_printdec()
193 dec = -dec; in rkpm_printdec()
200 rkpm_printch('0' + (char)(dec / i)); in rkpm_printdec()
201 dec %= i; in rkpm_printdec()
/OK3568_Linux_fs/kernel/tools/perf/tests/
H A Dapi-io.c220 __u64 dec; in do_test_get_dec() local
225 ch = io__get_dec(&io, &dec); in do_test_get_dec()
226 EXPECT_EQUAL64(dec, val1); in do_test_get_dec()
229 ch = io__get_dec(&io, &dec); in do_test_get_dec()
230 EXPECT_EQUAL64(dec, val2); in do_test_get_dec()
233 ch = io__get_dec(&io, &dec); in do_test_get_dec()
234 EXPECT_EQUAL64(dec, val3); in do_test_get_dec()
/OK3568_Linux_fs/kernel/drivers/media/platform/mtk-vcodec/vdec/
H A Dvdec_vp8_if.c85 struct vdec_vp8_dec_info dec; member
296 uint64_t prev_y_dma = inst->vsi->dec.prev_y_dma; in vp8_dec_finish()
320 if (inst->vsi->dec.show_frame) { in vp8_dec_finish()
377 inst->vsi->dec.working_buf_dma = (uint64_t)mem->dma_addr; in alloc_working_buf()
388 inst->vsi->dec.working_buf_dma = 0; in free_working_buf()
434 struct vdec_vp8_dec_info *dec = &inst->vsi->dec; in vdec_vp8_decode() local
455 dec->bs_dma = (unsigned long)bs->dma_addr; in vdec_vp8_decode()
456 dec->bs_sz = bs->size; in vdec_vp8_decode()
457 dec->cur_y_fb_dma = y_fb_dma; in vdec_vp8_decode()
458 dec->cur_c_fb_dma = c_fb_dma; in vdec_vp8_decode()
[all …]

12345678910>>...14