| /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/ti/omap3isp/ |
| H A D | ispvideo.c | 143 static unsigned int isp_video_mbus_to_pix(const struct isp_video *video, in isp_video_mbus_to_pix() argument 169 if (video->bpl_max) in isp_video_mbus_to_pix() 170 bpl = clamp(bpl, min_bpl, video->bpl_max); in isp_video_mbus_to_pix() 174 if (!video->bpl_zero_padding || bpl != min_bpl) in isp_video_mbus_to_pix() 175 bpl = ALIGN(bpl, video->bpl_alignment); in isp_video_mbus_to_pix() 209 isp_video_remote_subdev(struct isp_video *video, u32 *pad) in isp_video_remote_subdev() argument 213 remote = media_pad_remote_pad_first(&video->pad); in isp_video_remote_subdev() 225 static int isp_video_get_graph_data(struct isp_video *video, in isp_video_get_graph_data() argument 245 if (entity == &video->video.entity) in isp_video_get_graph_data() 252 if (__video->type != video->type) in isp_video_get_graph_data() [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 | 201 struct acpi_video_bus *video; member 209 static void acpi_video_device_rebind(struct acpi_video_bus *video); 210 static void acpi_video_device_bind(struct acpi_video_bus *video, 212 static int acpi_video_device_enumerate(struct acpi_video_bus *video); 257 struct acpi_video_device *video = cooling_dev->devdata; in video_get_max_state() local 259 *state = video->brightness->count - ACPI_VIDEO_FIRST_LEVEL - 1; in video_get_max_state() 266 struct acpi_video_device *video = cooling_dev->devdata; in video_get_cur_state() local 270 if (acpi_video_device_lcd_get_level_current(video, &level, false)) in video_get_cur_state() 272 for (offset = ACPI_VIDEO_FIRST_LEVEL; offset < video->brightness->count; in video_get_cur_state() 274 if (level == video->brightness->levels[offset]) { in video_get_cur_state() [all …]
|
| /linux/drivers/staging/media/starfive/camss/ |
| H A D | stf-capture.c | 58 static inline struct stf_capture *to_stf_capture(struct stfcamss_video *video) in to_stf_capture() argument 60 return container_of(video, struct stf_capture, video); in to_stf_capture() 76 static void stf_init_addrs(struct stfcamss_video *video) in stf_init_addrs() argument 78 struct stf_capture *cap = to_stf_capture(video); in stf_init_addrs() 91 stf_set_raw_addr(video->stfcamss, addr0); in stf_init_addrs() 93 stf_set_yuv_addr(video->stfcamss, addr0, addr1); in stf_init_addrs() 110 static void stf_cap_s_cfg(struct stfcamss_video *video) in stf_cap_s_cfg() argument 112 struct stf_capture *cap = to_stf_capture(video); in stf_cap_s_cfg() 130 stf_init_addrs(video); in stf_cap_s_cfg() 135 static int stf_cap_s_cleanup(struct stfcamss_video *video) in stf_cap_s_cleanup() argument [all …]
|
| H A D | stf-video.h | 87 int (*queue_buffer)(struct stfcamss_video *video, 89 int (*flush_buffers)(struct stfcamss_video *video, 91 void (*start_streaming)(struct stfcamss_video *video); 92 void (*stop_streaming)(struct stfcamss_video *video); 95 int stf_video_register(struct stfcamss_video *video, 98 void stf_video_unregister(struct stfcamss_video *video);
|
| /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 | 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 | 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.
|
| /linux/drivers/staging/fbtft/ |
| H A D | README | 13 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/
|
| /linux/drivers/staging/media/tegra-video/ |
| H A D | Makefile | 2 tegra-video-objs := \ 3 video.o \ 8 tegra-video-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20.o 9 tegra-video-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210.o 10 obj-$(CONFIG_VIDEO_TEGRA) += tegra-video.o
|
| /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 …]
|