Home
last modified time | relevance | path

Searched refs:video (Results 1 – 25 of 458) sorted by relevance

12345678910>>...19

/drivers/media/platform/
Daspeed-video.c427 static void aspeed_video_update(struct aspeed_video *video, u32 reg, u32 clear, in aspeed_video_update() argument
430 u32 t = readl(video->base + reg); in aspeed_video_update()
435 writel(t, video->base + reg); in aspeed_video_update()
436 dev_dbg(video->dev, "update %03x[%08x -> %08x]\n", reg, before, in aspeed_video_update()
437 readl(video->base + reg)); in aspeed_video_update()
440 static u32 aspeed_video_read(struct aspeed_video *video, u32 reg) in aspeed_video_read() argument
442 u32 t = readl(video->base + reg); in aspeed_video_read()
444 dev_dbg(video->dev, "read %03x[%08x]\n", reg, t); in aspeed_video_read()
448 static void aspeed_video_write(struct aspeed_video *video, u32 reg, u32 val) in aspeed_video_write() argument
450 writel(val, video->base + reg); in aspeed_video_write()
[all …]
/drivers/usb/gadget/function/
Duvc_video.c28 uvc_video_encode_header(struct uvc_video *video, struct uvc_buffer *buf, in uvc_video_encode_header() argument
31 struct uvc_device *uvc = container_of(video, struct uvc_device, video); in uvc_video_encode_header()
36 data[1] = UVC_STREAM_EOH | video->fid; in uvc_video_encode_header()
38 if (video->queue.buf_used == 0 && ts.tv_sec) { in uvc_video_encode_header()
62 if (buf->bytesused - video->queue.buf_used <= len - pos) in uvc_video_encode_header()
69 uvc_video_encode_data(struct uvc_video *video, struct uvc_buffer *buf, in uvc_video_encode_data() argument
72 struct uvc_video_queue *queue = &video->queue; in uvc_video_encode_data()
87 uvc_video_encode_bulk(struct usb_request *req, struct uvc_video *video, in uvc_video_encode_bulk() argument
92 int len = video->req_size; in uvc_video_encode_bulk()
96 if (video->payload_size == 0) { in uvc_video_encode_bulk()
[all …]
Duvc_v4l2.c137 struct uvc_video *video = &uvc->video; in find_closest_frame_by_size() local
172 uvcg_dbg(&video->uvc->func, "Unsupported size %ux%u\n", rw, rh); in find_closest_frame_by_size()
221 struct uvc_video *video = &uvc->video; in uvc_v4l2_get_format() local
223 fmt->fmt.pix.pixelformat = video->fcc; in uvc_v4l2_get_format()
224 fmt->fmt.pix.width = video->width; in uvc_v4l2_get_format()
225 fmt->fmt.pix.height = video->height; in uvc_v4l2_get_format()
227 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; in uvc_v4l2_get_format()
228 fmt->fmt.pix.sizeimage = video->imagesize; in uvc_v4l2_get_format()
240 struct uvc_video *video = &uvc->video; in uvc_v4l2_try_format() local
245 if (fmt->type != video->queue.queue.type) in uvc_v4l2_try_format()
[all …]
/drivers/media/platform/omap3isp/
Dispvideo.c139 static unsigned int isp_video_mbus_to_pix(const struct isp_video *video, in isp_video_mbus_to_pix() argument
165 if (video->bpl_max) in isp_video_mbus_to_pix()
166 bpl = clamp(bpl, min_bpl, video->bpl_max); in isp_video_mbus_to_pix()
170 if (!video->bpl_zero_padding || bpl != min_bpl) in isp_video_mbus_to_pix()
171 bpl = ALIGN(bpl, video->bpl_alignment); in isp_video_mbus_to_pix()
205 isp_video_remote_subdev(struct isp_video *video, u32 *pad) in isp_video_remote_subdev() argument
209 remote = media_entity_remote_pad(&video->pad); in isp_video_remote_subdev()
221 static int isp_video_get_graph_data(struct isp_video *video, in isp_video_get_graph_data() argument
225 struct media_entity *entity = &video->video.entity; in isp_video_get_graph_data()
247 if (entity == &video->video.entity) in isp_video_get_graph_data()
[all …]
Dispvideo.h136 #define isp_video_dmaqueue_flags_clr(video) \ argument
137 ({ (video)->dmaqueue_flags = 0; })
145 int(*queue)(struct isp_video *video, struct isp_buffer *buffer);
149 struct video_device video; member
180 #define to_isp_video(vdev) container_of(vdev, struct isp_video, video)
184 struct isp_video *video; member
194 int omap3isp_video_init(struct isp_video *video, const char *name);
195 void omap3isp_video_cleanup(struct isp_video *video);
196 int omap3isp_video_register(struct isp_video *video,
198 void omap3isp_video_unregister(struct isp_video *video);
[all …]
/drivers/staging/media/omap4iss/
Diss_video.c116 static unsigned int iss_video_mbus_to_pix(const struct iss_video *video, in iss_video_mbus_to_pix() argument
144 if (video->bpl_max) in iss_video_mbus_to_pix()
145 bpl = clamp(bpl, min_bpl, video->bpl_max); in iss_video_mbus_to_pix()
149 if (!video->bpl_zero_padding || bpl != min_bpl) in iss_video_mbus_to_pix()
150 bpl = ALIGN(bpl, video->bpl_alignment); in iss_video_mbus_to_pix()
189 iss_video_remote_subdev(struct iss_video *video, u32 *pad) in iss_video_remote_subdev() argument
193 remote = media_entity_remote_pad(&video->pad); in iss_video_remote_subdev()
206 iss_video_far_end(struct iss_video *video) in iss_video_far_end() argument
209 struct media_entity *entity = &video->video.entity; in iss_video_far_end()
223 if (entity == &video->video.entity) in iss_video_far_end()
[all …]
Diss_video.h127 #define iss_video_dmaqueue_flags_clr(video) \ argument
128 ({ (video)->dmaqueue_flags = 0; })
136 int (*queue)(struct iss_video *video, struct iss_buffer *buffer);
140 struct video_device video; member
170 #define to_iss_video(vdev) container_of(vdev, struct iss_video, video)
174 struct iss_video *video; member
184 int omap4iss_video_init(struct iss_video *video, const char *name);
185 void omap4iss_video_cleanup(struct iss_video *video);
186 int omap4iss_video_register(struct iss_video *video,
188 void omap4iss_video_unregister(struct iss_video *video);
[all …]
/drivers/media/platform/sunxi/sun6i-csi/
Dsun6i_video.c76 sun6i_video_remote_subdev(struct sun6i_video *video, u32 *pad) in sun6i_video_remote_subdev() argument
80 remote = media_entity_remote_pad(&video->pad); in sun6i_video_remote_subdev()
97 struct sun6i_video *video = vb2_get_drv_priv(vq); in sun6i_video_queue_setup() local
98 unsigned int size = video->fmt.fmt.pix.sizeimage; in sun6i_video_queue_setup()
114 struct sun6i_video *video = vb2_get_drv_priv(vb->vb2_queue); in sun6i_video_buffer_prepare() local
115 unsigned long size = video->fmt.fmt.pix.sizeimage; in sun6i_video_buffer_prepare()
118 v4l2_err(video->vdev.v4l2_dev, "buffer too small (%lu < %lu)\n", in sun6i_video_buffer_prepare()
127 vbuf->field = video->fmt.fmt.pix.field; in sun6i_video_buffer_prepare()
134 struct sun6i_video *video = vb2_get_drv_priv(vq); in sun6i_video_start_streaming() local
142 video->sequence = 0; in sun6i_video_start_streaming()
[all …]
/drivers/media/platform/vsp1/
Dvsp1_video.c63 static int vsp1_video_verify_format(struct vsp1_video *video) in vsp1_video_verify_format() argument
69 subdev = vsp1_video_remote_subdev(&video->pad, &fmt.pad); in vsp1_video_verify_format()
78 if (video->rwpf->fmtinfo->mbus != fmt.format.code || in vsp1_video_verify_format()
79 video->rwpf->format.height != fmt.format.height || in vsp1_video_verify_format()
80 video->rwpf->format.width != fmt.format.width) in vsp1_video_verify_format()
86 static int __vsp1_video_try_format(struct vsp1_video *video, in __vsp1_video_try_format() argument
118 info = vsp1_get_format_info(video->vsp1, pix->pixelformat); in __vsp1_video_try_format()
120 info = vsp1_get_format_info(video->vsp1, VSP1_VIDEO_DEF_FORMAT); in __vsp1_video_try_format()
313 vsp1_video_complete_buffer(struct vsp1_video *video) in vsp1_video_complete_buffer() argument
315 struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; in vsp1_video_complete_buffer()
[all …]
Dvsp1_histo.c436 strscpy(cap->card, histo->video.name, sizeof(cap->card)); in histo_v4l2_querycap()
506 if (video_is_registered(&histo->video)) in vsp1_histogram_cleanup()
507 video_unregister_device(&histo->video); in vsp1_histogram_cleanup()
509 media_entity_cleanup(&histo->video.entity); in vsp1_histogram_cleanup()
533 histo->video.vfl_dir = VFL_DIR_RX; in vsp1_histogram_init()
550 ret = media_entity_pads_init(&histo->video.entity, 1, &histo->pad); in vsp1_histogram_init()
555 histo->video.v4l2_dev = &vsp1->v4l2_dev; in vsp1_histogram_init()
556 histo->video.fops = &histo_v4l2_fops; in vsp1_histogram_init()
557 snprintf(histo->video.name, sizeof(histo->video.name), in vsp1_histogram_init()
559 histo->video.vfl_type = VFL_TYPE_VIDEO; in vsp1_histogram_init()
[all …]
/drivers/staging/media/av7110/
Dvideo_function_calls.rst12 video-fopen
13 video-fclose
14 video-fwrite
15 video-stop
16 video-play
17 video-freeze
18 video-continue
19 video-select-source
20 video-set-blank
21 video-get-status
[all …]
Dvideo_types.rst30 about the display format of the current video stream.
38 In case the display format of the video stream and of the display
60 The video stream source is set through the VIDEO_SELECT_SOURCE call
75 frontend or the DVR device) as the source of the video stream. If
86 representing the state of video playback.
154 The following is the structure of a video event as it is returned by the
187 int video_blank; /* blank video on freeze? */
194 If video_blank is set video will be blanked out if the channel is
196 displayed. play_state indicates if the video is currently frozen,
198 selected source for the video stream. It can come either from the
[all …]
Dvideo.rst9 The Digital TV video device controls the MPEG2 video decoder of the Digital
12 **linux/dvb/video.h** in your application.
14 Note that the Digital TV video device only controls decoding of the MPEG video
17 **/dev/video**, which allows scaling and defining output windows.
20 omission of the audio and video device as well as the video4linux
/drivers/media/platform/qcom/camss/
Dcamss-video.c324 static struct v4l2_subdev *video_remote_subdev(struct camss_video *video, in video_remote_subdev() argument
329 remote = media_entity_remote_pad(&video->pad); in video_remote_subdev()
340 static int video_get_subdev_format(struct camss_video *video, in video_get_subdev_format() argument
348 subdev = video_remote_subdev(video, &pad); in video_get_subdev_format()
361 video->formats, video->nformats); in video_get_subdev_format()
365 format->type = video->type; in video_get_subdev_format()
368 &video->formats[ret], video->bpl_alignment); in video_get_subdev_format()
379 struct camss_video *video = vb2_get_drv_priv(q); in video_queue_setup() local
381 &video->active_fmt.fmt.pix_mp; in video_queue_setup()
406 struct camss_video *video = vb2_get_drv_priv(vb->vb2_queue); in video_buf_init() local
[all …]
/drivers/acpi/
Dacpi_video.c205 struct acpi_video_bus *video; member
213 static void acpi_video_device_rebind(struct acpi_video_bus *video);
214 static void acpi_video_device_bind(struct acpi_video_bus *video,
216 static int acpi_video_device_enumerate(struct acpi_video_bus *video);
262 struct acpi_video_device *video = acpi_driver_data(device); in video_get_max_state() local
264 *state = video->brightness->count - ACPI_VIDEO_FIRST_LEVEL - 1; in video_get_max_state()
272 struct acpi_video_device *video = acpi_driver_data(device); in video_get_cur_state() local
276 if (acpi_video_device_lcd_get_level_current(video, &level, false)) in video_get_cur_state()
278 for (offset = ACPI_VIDEO_FIRST_LEVEL; offset < video->brightness->count; in video_get_cur_state()
280 if (level == video->brightness->levels[offset]) { in video_get_cur_state()
[all …]
/drivers/media/platform/exynos4-is/
Dfimc-isp-video.c82 struct fimc_is_video *video = &isp->video_capture; in isp_video_capture_start_streaming() local
94 dma->buffer_number = video->reqbufs_count; in isp_video_capture_start_streaming()
95 dma->dma_out_mask = video->buf_mask; in isp_video_capture_start_streaming()
97 isp_dbg(2, &video->ve.vdev, in isp_video_capture_start_streaming()
99 video->buf_count, video->format->memplanes, in isp_video_capture_start_streaming()
111 ret = fimc_pipeline_call(&video->ve, set_stream, 1); in isp_video_capture_start_streaming()
154 struct fimc_is_video *video = &isp->video_capture; in isp_video_capture_buffer_prepare() local
157 if (video->format == NULL) in isp_video_capture_buffer_prepare()
160 for (i = 0; i < video->format->memplanes; i++) { in isp_video_capture_buffer_prepare()
161 unsigned long size = video->pixfmt.plane_fmt[i].sizeimage; in isp_video_capture_buffer_prepare()
[all …]
/drivers/media/platform/xilinx/
Dxilinx-dma.c104 entity = &dma->video.entity; in xvip_pipeline_start_stop()
117 ret = v4l2_subdev_call(subdev, video, s_stream, start); in xvip_pipeline_start_stop()
177 struct media_entity *entity = &start->video.entity; in xvip_pipeline_validate()
405 pipe = dma->video.entity.pipe in xvip_dma_start_streaming()
406 ? to_xvip_pipeline(&dma->video.entity) : &dma->pipe; in xvip_dma_start_streaming()
408 ret = media_pipeline_start(&dma->video.entity, &pipe->pipe); in xvip_dma_start_streaming()
434 media_pipeline_stop(&dma->video.entity); in xvip_dma_start_streaming()
451 struct xvip_pipeline *pipe = to_xvip_pipeline(&dma->video.entity); in xvip_dma_stop_streaming()
462 media_pipeline_stop(&dma->video.entity); in xvip_dma_stop_streaming()
497 strscpy(cap->card, dma->video.name, sizeof(cap->card)); in xvip_dma_querycap()
[all …]
/drivers/staging/fbtft/
DREADME13 cd drivers/video/fbdev/fbtft
16 Add to drivers/video/fbdev/Kconfig: source "drivers/video/fbdev/fbtft/Kconfig"
17 Add to drivers/video/fbdev/Makefile: obj-y += fbtft/
20 cd drivers/video
23 Add to drivers/video/Kconfig: source "drivers/video/fbtft/Kconfig"
24 Add to drivers/video/Makefile: obj-y += fbtft/
/drivers/video/fbdev/matrox/
Dmatroxfb_crtc2.c180 pos += m2info->video.offbase; in matroxfb_dh_pan_var()
205 vramlen = m2info->video.len_usable; in matroxfb_dh_decode_var()
304 fix->smem_start = m2info->video.base; in matroxfb_dh_init_fix()
305 fix->smem_len = m2info->video.len_usable; in matroxfb_dh_init_fix()
337 m2info->fbcon.screen_base = vaddr_va(m2info->video.vbase); in matroxfb_dh_set_par()
355 pos += m2info->video.offbase; in matroxfb_dh_set_par()
617 if (minfo->video.len_usable + mem <= minfo->video.len) in matroxfb_dh_regit()
618 m2info->video.offbase = minfo->video.len - mem; in matroxfb_dh_regit()
619 else if (minfo->video.len < mem) { in matroxfb_dh_regit()
622 m2info->video.borrowed = mem; in matroxfb_dh_regit()
[all …]
/drivers/media/pci/tw686x/
DKconfig3 tristate "Intersil/Techwell TW686x video capture cards"
13 - TW6864 (4 video channels),
14 - TW6865 (4 video channels, not tested, second generation chip),
15 - TW6868 (8 video channels but only 4 first channels using
16 built-in video decoder are supported, not tested),
17 - TW6869 (8 video channels, second generation chip).
/drivers/staging/vc04_services/bcm2835-camera/
Dbcm2835-camera.c839 a->fmt.width = preview_port->es.video.width; in vidioc_g_fbuf()
840 a->fmt.height = preview_port->es.video.height; in vidioc_g_fbuf()
842 a->fmt.bytesperline = preview_port->es.video.width; in vidioc_g_fbuf()
843 a->fmt.sizeimage = (preview_port->es.video.width * in vidioc_g_fbuf()
844 preview_port->es.video.height * 3) >> 1; in vidioc_g_fbuf()
1034 preview_port->es.video.width = f->fmt.pix.width; in mmal_setup_video_component()
1035 preview_port->es.video.height = f->fmt.pix.height; in mmal_setup_video_component()
1036 preview_port->es.video.crop.x = 0; in mmal_setup_video_component()
1037 preview_port->es.video.crop.y = 0; in mmal_setup_video_component()
1038 preview_port->es.video.crop.width = f->fmt.pix.width; in mmal_setup_video_component()
[all …]
/drivers/video/fbdev/
Dxen-fbfront.c64 static int video[KPARAM_CNT] = { 2, XENFB_WIDTH, XENFB_HEIGHT }; variable
65 module_param_array(video, int, NULL, 0);
66 MODULE_PARM_DESC(video,
289 if (var->xres == video[KPARAM_WIDTH] && in xenfb_check_var()
290 var->yres == video[KPARAM_HEIGHT] && in xenfb_check_var()
298 if (var->xres > video[KPARAM_WIDTH] || var->yres > video[KPARAM_HEIGHT]) in xenfb_check_var()
381 if (val < video[KPARAM_MEM]) in xenfb_probe()
382 video[KPARAM_MEM] = val; in xenfb_probe()
385 video[KPARAM_WIDTH] = xenbus_read_unsigned(dev->otherend, "width", in xenfb_probe()
386 video[KPARAM_WIDTH]); in xenfb_probe()
[all …]
/drivers/staging/media/tegra-video/
DMakefile2 tegra-video-objs := \
3 video.o \
7 tegra-video-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210.o
8 obj-$(CONFIG_VIDEO_TEGRA) += tegra-video.o
/drivers/staging/media/atomisp/pci/
Datomisp_v4l2.h30 int atomisp_video_init(struct atomisp_video_pipe *video, const char *name,
32 void atomisp_acc_init(struct atomisp_acc_pipe *video, const char *name);
33 void atomisp_video_unregister(struct atomisp_video_pipe *video);
34 void atomisp_acc_unregister(struct atomisp_acc_pipe *video);
/drivers/gpu/drm/sti/
DNOTES4 - The High Quality Video Display Processor (HQVDP) gets video frames from a
5 video decoder and does high quality video processing, including scaling.
11 - The video plug (VID) connects to the HQVDP output.
14 - The HDMI / DVO / HD Analog / SD analog IP builds the video signals
41 - The Framebuffers and planes are mapped to the Compositor GDP (non video
42 buffers) and to HQVDP+VID (video buffers)

12345678910>>...19