Lines Matching full:video

7  * and creates the v4l2 video devices.
63 struct mgb4_regs *video = &voutdev->mgbdev->video; in get_timings() local
66 u32 hsync = mgb4_read_reg(video, regs->hsync); in get_timings()
67 u32 vsync = mgb4_read_reg(video, regs->vsync); in get_timings()
68 u32 resolution = mgb4_read_reg(video, regs->resolution); in get_timings()
106 struct mgb4_regs *video = &voutdev->mgbdev->video; in queue_setup() local
107 u32 config = mgb4_read_reg(video, voutdev->config->regs.config); in queue_setup()
142 struct mgb4_regs *video = &voutdev->mgbdev->video; in buffer_prepare() local
143 u32 config = mgb4_read_reg(video, voutdev->config->regs.config); in buffer_prepare()
180 mgb4_mask_reg(&mgbdev->video, voutdev->config->regs.config, 0x2, 0x0); in stop_streaming()
181 mgb4_write_reg(&mgbdev->video, voutdev->config->regs.padding, 0); in stop_streaming()
192 struct mgb4_regs *video = &mgbdev->video; in start_streaming() local
198 mgb4_write_reg(video, config->regs.padding, voutdev->padding); in start_streaming()
199 mgb4_mask_reg(video, config->regs.config, 0x2, 0x2); in start_streaming()
201 addr = mgb4_read_reg(video, config->regs.address); in start_streaming()
248 struct mgb4_regs *video = &voutdev->mgbdev->video; in vidioc_enum_fmt() local
253 } else if (f->index == 1 && has_yuv(video)) { in vidioc_enum_fmt()
264 struct mgb4_regs *video = &voutdev->mgbdev->video; in vidioc_g_fmt() local
265 u32 config = mgb4_read_reg(video, voutdev->config->regs.config); in vidioc_g_fmt()
296 struct mgb4_regs *video = &voutdev->mgbdev->video; in vidioc_try_fmt() local
303 if (has_yuv(video) && f->fmt.pix.pixelformat == V4L2_PIX_FMT_YUYV) { in vidioc_try_fmt()
328 struct mgb4_regs *video = &voutdev->mgbdev->video; in vidioc_s_fmt() local
339 config = mgb4_read_reg(video, voutdev->config->regs.config); in vidioc_s_fmt()
358 mgb4_write_reg(video, voutdev->config->regs.config, config); in vidioc_s_fmt()
394 struct mgb4_regs *video = &voutdev->mgbdev->video; in vidioc_enum_frameintervals() local
400 ((has_yuv(video) && ival->pixel_format == V4L2_PIX_FMT_YUYV)))) in vidioc_enum_frameintervals()
422 struct mgb4_regs *video = &voutdev->mgbdev->video; in vidioc_g_parm() local
429 if (has_timeperframe(video)) { in vidioc_g_parm()
430 timer = mgb4_read_reg(video, voutdev->config->regs.timer); in vidioc_g_parm()
450 struct mgb4_regs *video = &voutdev->mgbdev->video; in vidioc_s_parm() local
455 if (has_timeperframe(video)) { in vidioc_s_parm()
466 mgb4_write_reg(video, voutdev->config->regs.timer, timer); in vidioc_s_parm()
536 struct mgb4_regs *video = &voutdev->mgbdev->video; in fh_open() local
542 config = mgb4_read_reg(video, voutdev->config->regs.config); in fh_open()
557 resolution = mgb4_read_reg(video, voutdev->config->regs.resolution); in fh_open()
581 struct mgb4_regs *video = &voutdev->mgbdev->video; in dma_transfer() local
598 addr = mgb4_read_reg(video, voutdev->config->regs.address); in dma_transfer()
619 struct mgb4_regs *video = &voutdev->mgbdev->video; in handler() local
623 mgb4_write_reg(video, 0xB4, 1U << voutdev->config->irq); in handler()
659 struct mgb4_regs *video = &voutdev->mgbdev->video; in fpga_init() local
662 mgb4_write_reg(video, regs->config, 0x00000011); in fpga_init()
663 mgb4_write_reg(video, regs->resolution, (1280 << 16) | 640); in fpga_init()
664 mgb4_write_reg(video, regs->hsync, 0x00283232); in fpga_init()
665 mgb4_write_reg(video, regs->vsync, 0x40141F1E); in fpga_init()
666 mgb4_write_reg(video, regs->frame_limit, MGB4_HW_FREQ / 60); in fpga_init()
667 mgb4_write_reg(video, regs->padding, 0x00000000); in fpga_init()
671 mgb4_write_reg(video, regs->config, in fpga_init()
678 struct mgb4_regs *video = &voutdev->mgbdev->video; in create_debugfs() local
701 if (has_timeperframe(video)) { in create_debugfs()
709 voutdev->regset.base = video->membase; in create_debugfs()
795 dev_err(dev, "failed to register video device\n"); in mgb4_vout_create()