Lines Matching full:video

7  * and creates the v4l2 video devices. The input signal can change at any time
84 * Returns the video output connected with the given video input if the input
96 config = mgb4_read_reg(&voutdev->mgbdev->video, in loopback_dev()
121 * input when the video input is set to loopback mode. The paddings must be
126 struct mgb4_regs *video = &vindev->mgbdev->video; in set_loopback_padding() local
133 mgb4_write_reg(video, voutdev->config->regs.padding, in set_loopback_padding()
141 struct mgb4_regs *video = &vindev->mgbdev->video; in get_timings() local
144 u32 status = mgb4_read_reg(video, regs->status); in get_timings()
145 u32 pclk = mgb4_read_reg(video, regs->pclk); in get_timings()
146 u32 hsync = mgb4_read_reg(video, regs->hsync); in get_timings()
147 u32 vsync = mgb4_read_reg(video, regs->vsync); in get_timings()
148 u32 resolution = mgb4_read_reg(video, regs->resolution); in get_timings()
193 struct mgb4_regs *video = &vindev->mgbdev->video; in queue_setup() local
194 u32 config = mgb4_read_reg(video, vindev->config->regs.config); in queue_setup()
230 struct mgb4_regs *video = &vindev->mgbdev->video; in buffer_prepare() local
232 u32 config = mgb4_read_reg(video, vindev->config->regs.config); in buffer_prepare()
263 struct mgb4_regs *video = &vindev->mgbdev->video; in stop_streaming() local
274 mgb4_mask_reg(&vindev->mgbdev->video, config->regs.config, 0x2, in stop_streaming()
277 mgb4_write_reg(video, vindev->config->regs.padding, 0); in stop_streaming()
287 struct mgb4_regs *video = &vindev->mgbdev->video; in start_streaming() local
297 mgb4_mask_reg(&vindev->mgbdev->video, config->regs.config, 0x2, in start_streaming()
300 mgb4_write_reg(video, vindev->config->regs.padding, vindev->padding); in start_streaming()
362 struct mgb4_regs *video = &vindev->mgbdev->video; in vidioc_enum_fmt() local
367 } else if (f->index == 1 && has_yuv(video)) { in vidioc_enum_fmt()
379 struct mgb4_regs *video = &vindev->mgbdev->video; in vidioc_enum_frameintervals() local
384 ((has_yuv(video) && ival->pixel_format == V4L2_PIX_FMT_YUYV)))) in vidioc_enum_frameintervals()
404 struct mgb4_regs *video = &vindev->mgbdev->video; in vidioc_g_fmt() local
405 u32 config = mgb4_read_reg(video, vindev->config->regs.config); in vidioc_g_fmt()
435 struct mgb4_regs *video = &vindev->mgbdev->video; in vidioc_try_fmt() local
442 if (has_yuv(video) && f->fmt.pix.pixelformat == V4L2_PIX_FMT_YUYV) { in vidioc_try_fmt()
467 struct mgb4_regs *video = &vindev->mgbdev->video; in vidioc_s_fmt() local
475 config = mgb4_read_reg(video, vindev->config->regs.config); in vidioc_s_fmt()
494 mgb4_write_reg(video, vindev->config->regs.config, config); in vidioc_s_fmt()
506 struct mgb4_regs *video = &vindev->mgbdev->video; in vidioc_enum_input() local
517 status = mgb4_read_reg(video, vindev->config->regs.status); in vidioc_enum_input()
557 struct mgb4_regs *video = &vindev->mgbdev->video; in vidioc_g_parm() local
563 if (has_timeperframe(video)) { in vidioc_g_parm()
564 timer = mgb4_read_reg(video, vindev->config->regs.timer); in vidioc_g_parm()
583 struct mgb4_regs *video = &vindev->mgbdev->video; in vidioc_s_parm() local
587 if (has_timeperframe(video)) { in vidioc_s_parm()
597 mgb4_write_reg(video, vindev->config->regs.timer, timer); in vidioc_s_parm()
701 struct mgb4_regs *video = &vindev->mgbdev->video; in dma_transfer() local
719 addr = mgb4_read_reg(video, vindev->config->regs.address); in dma_transfer()
744 struct mgb4_regs *video = &vindev->mgbdev->video; in signal_change() local
748 u32 resolution = mgb4_read_reg(video, vindev->config->regs.resolution); in signal_change()
770 struct mgb4_regs *video = &vindev->mgbdev->video; in vin_handler() local
774 mgb4_write_reg(video, 0xB4, 1U << vindev->config->vin_irq); in vin_handler()
782 struct mgb4_regs *video = &vindev->mgbdev->video; in err_handler() local
786 mgb4_write_reg(video, 0xB4, 1U << vindev->config->err_irq); in err_handler()
833 struct mgb4_regs *video = &vindev->mgbdev->video; in fpga_init() local
836 mgb4_write_reg(video, regs->config, 0x00000001); in fpga_init()
837 mgb4_write_reg(video, regs->sync, 0x03E80002); in fpga_init()
838 mgb4_write_reg(video, regs->padding, 0x00000000); in fpga_init()
839 mgb4_write_reg(video, regs->config, 1U << 9); in fpga_init()
845 struct mgb4_regs *video = &vindev->mgbdev->video; in create_debugfs() local
872 if (has_timeperframe(video)) { in create_debugfs()
880 vindev->regset.base = video->membase; in create_debugfs()
972 /* Enable the video signal change watcher */ in mgb4_vin_create()
975 /* Register the video device */ in mgb4_vin_create()
978 dev_err(dev, "failed to register video device\n"); in mgb4_vin_create()