| /linux/drivers/usb/gadget/function/ |
| H A D | uvc_video.c | 29 uvc_video_encode_header(struct uvc_video *video, struct uvc_buffer *buf, in uvc_video_encode_header() argument 32 struct uvc_device *uvc = container_of(video, struct uvc_device, video); in uvc_video_encode_header() 37 data[1] = UVC_STREAM_EOH | video->fid; in uvc_video_encode_header() 39 if (video->queue.flags & UVC_QUEUE_DROP_INCOMPLETE) in uvc_video_encode_header() 42 if (video->queue.buf_used == 0 && ts.tv_sec) { in uvc_video_encode_header() 66 if (buf->bytesused - video->queue.buf_used <= len - pos) in uvc_video_encode_header() 73 uvc_video_encode_data(struct uvc_video *video, struct uvc_buffer *buf, in uvc_video_encode_data() argument 76 struct uvc_video_queue *queue = &video->queue; in uvc_video_encode_data() 91 uvc_video_encode_bulk(struct usb_request *req, struct uvc_video *video, in uvc_video_encode_bulk() argument 96 int len = video->req_size; in uvc_video_encode_bulk() [all …]
|
| H A D | uvc_v4l2.c | 149 struct uvc_video *video = &uvc->video; in find_closest_frame_by_size() local 184 uvcg_dbg(&video->uvc->func, "Unsupported size %ux%u\n", rw, rh); in find_closest_frame_by_size() 233 struct uvc_video *video = &uvc->video; in uvc_v4l2_get_format() local 235 fmt->fmt.pix.pixelformat = video->fcc; in uvc_v4l2_get_format() 236 fmt->fmt.pix.width = video->width; in uvc_v4l2_get_format() 237 fmt->fmt.pix.height = video->height; in uvc_v4l2_get_format() 239 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; in uvc_v4l2_get_format() 240 fmt->fmt.pix.sizeimage = video->imagesize; in uvc_v4l2_get_format() 252 struct uvc_video *video = &uvc->video; in uvc_v4l2_try_format() local 258 if (fmt->type != video->queue.queue.type) in uvc_v4l2_try_format() [all …]
|
| /linux/drivers/media/platform/nuvoton/ |
| H A D | npcm-video.c | 210 static unsigned int npcm_video_ece_get_ed_size(struct npcm_video *video, in npcm_video_ece_get_ed_size() argument 213 struct regmap *ece = video->ece.regmap; in npcm_video_ece_get_ed_size() 222 dev_warn(video->dev, "Wait for ECE_DDA_STS_CDREADY timeout\n"); in npcm_video_ece_get_ed_size() 230 dev_dbg(video->dev, "offset = %u, ed_size = %u, gap = %u\n", offset, in npcm_video_ece_get_ed_size() 236 static void npcm_video_ece_enc_rect(struct npcm_video *video, in npcm_video_ece_enc_rect() argument 240 struct regmap *ece = video->ece.regmap; in npcm_video_ece_enc_rect() 241 unsigned int rect_offset = (r_off_y * video->bytesperline) + (r_off_x * 2); in npcm_video_ece_enc_rect() 270 static unsigned int npcm_video_ece_read_rect_offset(struct npcm_video *video) in npcm_video_ece_read_rect_offset() argument 272 struct regmap *ece = video->ece.regmap; in npcm_video_ece_read_rect_offset() 283 static void npcm_video_ece_set_lp(struct npcm_video *video, unsigned int pitch) in npcm_video_ece_set_lp() argument [all …]
|
| /linux/drivers/media/platform/renesas/vsp1/ |
| H A D | vsp1_video.c | 63 static int vsp1_video_verify_format(struct vsp1_video *video) in vsp1_video_verify_format() argument 71 subdev = vsp1_video_remote_subdev(&video->pad, &fmt.pad); in vsp1_video_verify_format() 79 if (video->rwpf->fmtinfo->mbus != fmt.format.code || in vsp1_video_verify_format() 80 video->rwpf->format.height != fmt.format.height || in vsp1_video_verify_format() 81 video->rwpf->format.width != fmt.format.width) { in vsp1_video_verify_format() 82 dev_dbg(video->vsp1->dev, in vsp1_video_verify_format() 84 video->rwpf->fmtinfo->mbus, video->rwpf->format.width, in vsp1_video_verify_format() 85 video->rwpf->format.height, fmt.format.code, in vsp1_video_verify_format() 93 static int __vsp1_video_try_format(struct vsp1_video *video, in __vsp1_video_try_format() argument 125 info = vsp1_get_format_info(video->vsp1, pix->pixelformat); in __vsp1_video_try_format() [all …]
|
| /linux/drivers/acpi/ |
| H A D | acpi_video.c | 196 struct acpi_video_bus *video; member 204 static void acpi_video_device_rebind(struct acpi_video_bus *video); 205 static void acpi_video_device_bind(struct acpi_video_bus *video, 207 static int acpi_video_device_enumerate(struct acpi_video_bus *video); 252 struct acpi_video_device *video = cooling_dev->devdata; in video_get_max_state() local 254 *state = video->brightness->count - ACPI_VIDEO_FIRST_LEVEL - 1; in video_get_max_state() 261 struct acpi_video_device *video = cooling_dev->devdata; in video_get_cur_state() local 265 if (acpi_video_device_lcd_get_level_current(video, &level, false)) in video_get_cur_state() 267 for (offset = ACPI_VIDEO_FIRST_LEVEL; offset < video->brightness->count; in video_get_cur_state() 269 if (level == video->brightness->levels[offset]) { in video_get_cur_state() [all …]
|
| /linux/drivers/media/pci/mgb4/ |
| H A D | mgb4_vin.c | 117 config = mgb4_read_reg(&voutdev->mgbdev->video, in loopback_dev() 147 struct mgb4_regs *video = &vindev->mgbdev->video; in set_loopback_padding() local 154 mgb4_write_reg(video, voutdev->config->regs.padding, in set_loopback_padding() 162 struct mgb4_regs *video = &vindev->mgbdev->video; in get_timings() local 165 u32 status = mgb4_read_reg(video, regs->status); in get_timings() 166 u32 pclk = mgb4_read_reg(video, regs->pclk); in get_timings() 167 u32 hsync = mgb4_read_reg(video, regs->hsync); in get_timings() 168 u32 vsync = mgb4_read_reg(video, regs->vsync); in get_timings() 169 u32 resolution = mgb4_read_reg(video, regs->resolution); in get_timings() 214 struct mgb4_regs *video = &vindev->mgbdev->video; in queue_setup() local [all …]
|
| H A D | mgb4_vout.c | 72 struct mgb4_regs *video = &voutdev->mgbdev->video; in get_timings() local 75 u32 hsync = mgb4_read_reg(video, regs->hsync); in get_timings() 76 u32 vsync = mgb4_read_reg(video, regs->vsync); in get_timings() 77 u32 resolution = mgb4_read_reg(video, regs->resolution); in get_timings() 115 struct mgb4_regs *video = &voutdev->mgbdev->video; in queue_setup() local 116 u32 config = mgb4_read_reg(video, voutdev->config->regs.config); in queue_setup() 151 struct mgb4_regs *video = &voutdev->mgbdev->video; in buffer_prepare() local 152 u32 config = mgb4_read_reg(video, voutdev->config->regs.config); in buffer_prepare() 189 mgb4_mask_reg(&mgbdev->video, voutdev->config->regs.config, 0x2, 0x0); in stop_streaming() 190 mgb4_write_reg(&mgbdev->video, voutdev->config->regs.padding, 0); in stop_streaming() [all …]
|
| H A D | mgb4_io.h | 34 static inline bool has_yuv_and_timeperframe(struct mgb4_regs *video) in has_yuv_and_timeperframe() argument 36 u32 status = mgb4_read_reg(video, 0xD0); in has_yuv_and_timeperframe() 41 #define has_yuv(video) has_yuv_and_timeperframe(video) argument 42 #define has_timeperframe(video) has_yuv_and_timeperframe(video) argument
|
| /linux/Documentation/devicetree/bindings/media/xilinx/ |
| H A D | video.txt | 1 DT bindings for Xilinx video IP cores 4 Xilinx video IP cores process video streams by acting as video sinks and/or 6 creating a video pipeline. 8 Each video IP core is represented by an AMBA bus child node in the device 10 cores are represented as defined in ../video-interfaces.txt. 13 tree using bindings documented in ./xlnx,video.txt. 18 The following properties are common to all Xilinx video IP cores. 20 - xlnx,video-format: This property represents a video format transmitted on an 21 AXI bus between video IP cores, using its VF code as defined in "AXI4-Stream 25 - xlnx,video-width: This property qualifies the video format with the sample [all …]
|
| H A D | xlnx,v-tpg.txt | 16 - clocks: Reference to the video core clock. 18 - xlnx,video-format, xlnx,video-width: Video format and width, as defined in 19 video.txt. 21 - port: Video port, using the DT bindings defined in ../video-interfaces.txt. 27 video timings for the TPG test patterns. 31 video timings. 53 xlnx,video-format = <XVIP_VF_YUV_422>; 54 xlnx,video-width = <8>; 63 xlnx,video-format = <XVIP_VF_YUV_422>; 64 xlnx,video-width = <8>;
|
| H A D | xlnx,video.txt | 7 Xilinx video IP pipeline processes video streams through one or more Xilinx 8 video IP cores. Each video IP core is represented as documented in video.txt 11 mappings between DMAs and the video IP cores. 15 - compatible: Must be "xlnx,video". 22 - ports: Video port, using the DT bindings defined in ../video-interfaces.txt. 32 compatible = "xlnx,video";
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | dv-timings.rst | 10 The video standards discussed so far have been dealing with Analog TV 11 and the corresponding video timings. Today there are many more different 13 DVI connectors etc., that carry video signals and there is a need to 14 extend the API to select the video timings for these interfaces. Since 17 set/get video timings at the input and output. 19 These ioctls deal with the detailed digital video timings that define 20 each video format. This includes parameters such as the active video 34 the DV timings as seen by the video receiver applications use the 37 When the hardware detects a video source change (e.g. the video 38 signal appears or disappears, or the video resolution changes), then [all …]
|
| H A D | vidioc-g-output.rst | 13 VIDIOC_G_OUTPUT - VIDIOC_S_OUTPUT - Query or select the current video output 38 To query the current video output applications call the 42 fail only when there are no video outputs, returning the ``EINVAL`` error 45 To select a video output applications store the number of the desired 48 may support different video standards, so the driver may implicitly 53 Information about video outputs is available using the 64 The number of the video output is out of bounds, or there are no 65 video outputs at all.
|
| H A D | standard.rst | 10 Video devices typically support one or more different video standards or 11 variations of standards. Each video input and output may support another 18 V4L2 defines one bit for each analog video standard currently in use 20 hybrid standards to watch NTSC video tapes on PAL TVs and vice versa. 39 To query and select the standard used by the current video input or 49 index into the standard enumeration. Drivers must implement all video 50 standard ioctls when the device has one or more video inputs or outputs. 53 video standards makes little sense. More generally for any capture or 57 video standard, or 59 - that does not support the video standard formats at all. [all …]
|
| H A D | dev-capture.rst | 10 Video capture devices sample an analog video signal and store the 15 Conventionally V4L2 video capture devices are accessed through character 16 device special files named ``/dev/video`` and ``/dev/video0`` to 18 ``/dev/video`` is typically a symbolic link to the preferred video 21 .. note:: The same device file names are used for video output devices. 26 Devices supporting the video capture interface set the 31 functions they may also support the :ref:`video overlay <overlay>` 44 :ref:`video input <video>` ioctls must be supported by all video 51 format parameters. The former select an area of the video picture to 99 A video capture device may support the :ref:`read() function <func-read>`
|
| H A D | vidioc-enumoutput.rst | 13 VIDIOC_ENUMOUTPUT - Enumerate video outputs 34 To query the attributes of a video outputs applications initialize the 56 - Name of the video output, a NUL-terminated ASCII string, for 64 - Drivers can enumerate up to 32 video and audio outputs. This field 66 this was the currently selected video output. It is a bit mask. 86 - Every video output supports one or more different video standards. 88 video standards and how to switch see :ref:`standard`. 113 - Any non-modulator video output, for example Composite Video, 118 - The video output will be copied to a :ref:`video overlay <overlay>`. 132 - This output supports setting video timings by using
|
| H A D | dev-output.rst | 10 Video output devices encode stills or image sequences as analog video 14 Conventionally V4L2 video output devices are accessed through character 15 device special files named ``/dev/video`` and ``/dev/video0`` to 17 ``/dev/video`` is typically a symbolic link to the preferred video 20 .. note:: The same device file names are used also for video capture devices. 25 Devices supporting the video output interface set the 42 :ref:`video output <video>` ioctls must be supported by all video 49 former select an area of the video picture where the image will appear, 96 A video output device may support the :ref:`write() function <rw>`
|
| H A D | vidioc-querystd.rst | 13 VIDIOC_QUERYSTD - VIDIOC_SUBDEV_QUERYSTD - Sense the video standard received by the current input 38 The hardware may be able to detect the current video standard 45 the set must contain all standards supported by the current video input 50 Drivers shall *not* switch the video standard 51 automatically if a new video standard is detected. Instead, drivers 54 :ref:`VIDIOC_QUERYSTD`. The reason is that a new video standard can mean 57 will have to call :ref:`VIDIOC_QUERYSTD`, and if the detected video 69 Standard video timings are not supported for this input or output.
|
| /linux/drivers/media/pci/tw686x/ |
| H A D | Kconfig | 3 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).
|
| /linux/Documentation/userspace-api/media/mediactl/ |
| H A D | media-types.rst | 95 - Camera video sensor entity. 104 - Analog video decoder, the basic function of the video decoder is 105 to accept analogue video from a wide variety of sources such as 106 broadcast, DVD players, cameras and video cassette recorders, in 109 some digital video standard, with appropriate timing signals. 115 internally IF-PLL decoders for audio and video, but older models 119 - IF-PLL video decoder. It receives the IF from a PLL and decodes 120 the analog TV video signal. This is commonly found on some very 130 tuner PLL and should be controlled together with the IF-PLL video 143 - Video composer (blender). An entity capable of video [all …]
|
| /linux/drivers/video/fbdev/matrox/ |
| H A D | matroxfb_crtc2.c | 180 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() 614 if (minfo->video.len_usable + mem <= minfo->video.len) in matroxfb_dh_regit() 615 m2info->video.offbase = minfo->video.len - mem; in matroxfb_dh_regit() 616 else if (minfo->video.len < mem) { in matroxfb_dh_regit() 619 m2info->video.borrowed = mem; in matroxfb_dh_regit() [all …]
|
| /linux/Documentation/admin-guide/media/ |
| H A D | fimc.rst | 32 instance to any parallel video input or any MIPI-CSI front-end); 62 Memory-to-memory video node 65 V4L2 memory-to-memory interface at /dev/video? device node. This is standalone 66 video device, it has no media pads. However please note the mem-to-mem and 67 capture video node operation on same FIMC instance is not allowed. The driver 71 Capture video node 77 At the capture and mem-to-mem video nodes only the multi-planar API is 95 sensor subdev -> mipi-csi subdev -> fimc subdev -> video node 98 configuration flow must be from left to right, and the video node is 102 devices belonging to the pipeline is done at the video node driver. [all …]
|
| /linux/drivers/video/fbdev/ |
| H A D | xen-fbfront.c | 64 static int video[KPARAM_CNT] = { 2, XENFB_WIDTH, XENFB_HEIGHT }; variable 65 module_param_array(video, int, NULL, 0); 66 MODULE_PARM_DESC(video, 252 if (var->xres == video[KPARAM_WIDTH] && in xenfb_check_var() 253 var->yres == video[KPARAM_HEIGHT] && in xenfb_check_var() 261 if (var->xres > video[KPARAM_WIDTH] || var->yres > video[KPARAM_HEIGHT]) in xenfb_check_var() 359 if (val < video[KPARAM_MEM]) in xenfb_probe() 360 video[KPARAM_MEM] = val; in xenfb_probe() 363 video[KPARAM_WIDTH] = xenbus_read_unsigned(dev->otherend, "width", in xenfb_probe() 364 video[KPARAM_WIDTH]); in xenfb_probe() [all …]
|
| /linux/Documentation/fb/ |
| H A D | uvesafb.rst | 2 uvesafb - A Generic Driver for VBE2+ compliant video cards 8 uvesafb should work with any video card that has a Video BIOS compliant 32 uvesafb is a _generic_ driver which supports a wide variety of video 37 - A strict and limited set of supported video modes. Often the native 40 video mode you want to use. This can be especially painful with 41 widescreen panels, where native video modes don't have the 4:3 aspect 54 video=uvesafb:1024x768-32,mtrr:3,ywrap (compiled into the kernel) 63 video memory, console scrolling is done by changing the 68 the video memory (i.e. starts reading from top if it 69 reaches the end of video memory). Faster than ypan. [all …]
|
| H A D | ep93xx-fb.rst | 7 can use the standard Linux video mode database. In your board file:: 14 If you have an embedded LCD display then you need to define a video 48 to configure the controller. The video attributes flags are fully 102 Setting the video mode 105 The video mode is set using the following syntax:: 107 video=XRESxYRES[-BPP][@REFRESH] 109 If the EP93xx video driver is built-in then the video mode is set on 112 video=ep93xx-fb:800x600-16@60 114 If the EP93xx video driver is built as a module then the video mode is 117 modprobe ep93xx-fb video=320x240
|