| /kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
| D | uvc_video.c | 3 * uvc_video.c -- USB Video Class Gadget driver 14 #include <linux/usb/video.h> 23 * Video codecs 27 uvc_video_encode_header(struct uvc_video *video, struct uvc_buffer *buf, in uvc_video_encode_header() argument 31 data[1] = UVC_STREAM_EOH | video->fid; in uvc_video_encode_header() 33 if (buf->bytesused - video->queue.buf_used <= len - 2) in uvc_video_encode_header() 40 uvc_video_encode_data(struct uvc_video *video, struct uvc_buffer *buf, in uvc_video_encode_data() argument 43 struct uvc_video_queue *queue = &video->queue; in uvc_video_encode_data() 47 /* Copy video data to the USB buffer. */ in uvc_video_encode_data() 58 uvc_video_encode_bulk(struct usb_request *req, struct uvc_video *video, in uvc_video_encode_bulk() argument [all …]
|
| D | uvc_v4l2.c | 3 * uvc_v4l2.c -- USB Video Class Gadget driver 82 struct uvc_video *video = &uvc->video; in uvc_v4l2_get_format() local 84 fmt->fmt.pix.pixelformat = video->fcc; in uvc_v4l2_get_format() 85 fmt->fmt.pix.width = video->width; in uvc_v4l2_get_format() 86 fmt->fmt.pix.height = video->height; in uvc_v4l2_get_format() 88 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; in uvc_v4l2_get_format() 89 fmt->fmt.pix.sizeimage = video->imagesize; in uvc_v4l2_get_format() 101 struct uvc_video *video = &uvc->video; in uvc_v4l2_set_format() local 122 video->fcc = format->fcc; in uvc_v4l2_set_format() 123 video->bpp = format->bpp; in uvc_v4l2_set_format() [all …]
|
| /kernel/linux/linux-6.6/drivers/usb/gadget/function/ |
| D | uvc_video.c | 3 * uvc_video.c -- USB Video Class Gadget driver 14 #include <linux/usb/video.h> 24 * Video codecs 28 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.flags & UVC_QUEUE_DROP_INCOMPLETE) in uvc_video_encode_header() 41 if (video->queue.buf_used == 0 && ts.tv_sec) { in uvc_video_encode_header() 65 if (buf->bytesused - video->queue.buf_used <= len - pos) in uvc_video_encode_header() 72 uvc_video_encode_data(struct uvc_video *video, struct uvc_buffer *buf, in uvc_video_encode_data() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/media/platform/ |
| D | aspeed-video.c | 34 #define DEVICE_NAME "aspeed-video" 427 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 [all …]
|
| /kernel/linux/linux-6.6/drivers/media/platform/aspeed/ |
| D | aspeed-video.c | 35 #include <uapi/linux/aspeed-video.h> 39 #define DEVICE_NAME "aspeed-video" 267 * flags: holds the state of video 274 * format: holds the video format 279 * frame_bottom: end position of video data in vertical direction 280 * frame_left: start position of video data in horizontal direction 281 * frame_right: end position of video data in horizontal direction 282 * frame_top: start position of video data in vertical direction 491 static bool aspeed_video_alloc_buf(struct aspeed_video *video, 495 static void aspeed_video_free_buf(struct aspeed_video *video, [all …]
|
| /kernel/linux/linux-5.10/drivers/media/platform/omap3isp/ |
| D | ispvideo.c | 5 * TI OMAP3 ISP - Generic video node 129 * @video: ISP video instance 135 * per line value in the pix format and information from the video instance. 139 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() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/platform/ti/omap3isp/ |
| D | ispvideo.c | 5 * TI OMAP3 ISP - Generic video node 129 * @video: ISP video instance 135 * per line value in the pix format and information from the video instance. 139 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_pad_remote_pad_first(&video->pad); in isp_video_remote_subdev() [all …]
|
| /kernel/linux/linux-6.6/drivers/staging/media/omap4iss/ |
| D | iss_video.c | 3 * TI OMAP4 ISS V4L2 Driver - Generic video node 104 * @video: ISS video instance 110 * per line value in the pix format and information from the video instance. 114 static unsigned int iss_video_mbus_to_pix(const struct iss_video *video, in iss_video_mbus_to_pix() argument 142 if (video->bpl_max) in iss_video_mbus_to_pix() 143 bpl = clamp(bpl, min_bpl, video->bpl_max); in iss_video_mbus_to_pix() 147 if (!video->bpl_zero_padding || bpl != min_bpl) in iss_video_mbus_to_pix() 148 bpl = ALIGN(bpl, video->bpl_alignment); in iss_video_mbus_to_pix() 187 iss_video_remote_subdev(struct iss_video *video, u32 *pad) in iss_video_remote_subdev() argument 191 remote = media_pad_remote_pad_first(&video->pad); in iss_video_remote_subdev() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/omap4iss/ |
| D | iss_video.c | 3 * TI OMAP4 ISS V4L2 Driver - Generic video node 106 * @video: ISS video instance 112 * per line value in the pix format and information from the video instance. 116 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun6i-csi/ |
| D | sun6i_video.c | 76 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 …]
|
| /kernel/linux/linux-6.6/drivers/staging/media/av7110/ |
| D | video_function_calls.rst | 6 Video Function Calls 12 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 [all …]
|
| /kernel/linux/linux-5.10/Documentation/userspace-api/media/dvb/ |
| D | video_function_calls.rst | 6 Video Function Calls 12 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 [all …]
|
| /kernel/linux/linux-5.10/drivers/media/platform/vsp1/ |
| D | vsp1_video.c | 3 * vsp1_video.c -- R-Car VSP1 Video Node 63 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() 305 * @video: the video node [all …]
|
| /kernel/linux/linux-6.6/drivers/media/platform/renesas/vsp1/ |
| D | vsp1_video.c | 3 * vsp1_video.c -- R-Car VSP1 Video Node 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() 87 static int __vsp1_video_try_format(struct vsp1_video *video, in __vsp1_video_try_format() argument 119 info = vsp1_get_format_info(video->vsp1, pix->pixelformat); in __vsp1_video_try_format() 121 info = vsp1_get_format_info(video->vsp1, VSP1_VIDEO_DEF_FORMAT); in __vsp1_video_try_format() 306 * @video: the video node [all …]
|
| /kernel/linux/linux-6.6/drivers/media/platform/nxp/imx8-isi/ |
| D | imx8-isi-video.c | 494 struct mxc_isi_video *video = &pipe->video; in mxc_isi_video_frame_write_done() local 500 spin_lock(&video->buf_lock); in mxc_isi_video_frame_write_done() 560 buf = list_first_entry_or_null(&video->out_active, in mxc_isi_video_frame_write_done() 591 video->frame_count += 2; in mxc_isi_video_frame_write_done() 596 next_buf = list_first_entry_or_null(&video->out_pending, in mxc_isi_video_frame_write_done() 599 next_buf = list_first_entry_or_null(&video->out_discard, in mxc_isi_video_frame_write_done() 629 video->frame_count += 2; in mxc_isi_video_frame_write_done() 637 list_move_tail(&next_buf->list, &video->out_active); in mxc_isi_video_frame_write_done() 641 buf->v4l2_buf.sequence = video->frame_count; in mxc_isi_video_frame_write_done() 645 list_move_tail(&buf->list, &video->out_discard); in mxc_isi_video_frame_write_done() [all …]
|
| /kernel/linux/linux-6.6/drivers/acpi/ |
| D | acpi_video.c | 3 * video.c - ACPI Video Driver 10 #define pr_fmt(fmt) "ACPI: video: " fmt 28 #include <acpi/video.h> 31 #define ACPI_VIDEO_BUS_NAME "Video Bus" 32 #define ACPI_VIDEO_DEVICE_NAME "Video Device" 37 MODULE_DESCRIPTION("ACPI Video Driver"); 44 * By default, we don't allow duplicate ACPI video bus devices 101 .name = "video", 111 u8 multihead:1; /* can switch video heads */ 112 u8 rom:1; /* can retrieve a video rom */ [all …]
|
| /kernel/linux/linux-5.10/drivers/acpi/ |
| D | acpi_video.c | 3 * video.c - ACPI Video Driver 26 #include <acpi/video.h> 31 #define ACPI_VIDEO_BUS_NAME "Video Bus" 32 #define ACPI_VIDEO_DEVICE_NAME "Video Device" 37 ACPI_MODULE_NAME("video"); 40 MODULE_DESCRIPTION("ACPI Video Driver"); 47 * By default, we don't allow duplicate ACPI video bus devices 107 .name = "video", 118 u8 multihead:1; /* can switch video heads */ 119 u8 rom:1; /* can retrieve a video rom */ [all …]
|
| /kernel/linux/linux-5.10/drivers/media/platform/qcom/camss/ |
| D | camss-video.c | 3 * camss-video.c 18 #include "camss-video.h" 275 static struct v4l2_subdev *video_remote_subdev(struct camss_video *video, in video_remote_subdev() argument 280 remote = media_entity_remote_pad(&video->pad); in video_remote_subdev() 291 static int video_get_subdev_format(struct camss_video *video, in video_get_subdev_format() argument 299 subdev = video_remote_subdev(video, &pad); in video_get_subdev_format() 312 video->formats, video->nformats); in video_get_subdev_format() 316 format->type = video->type; in video_get_subdev_format() 319 &video->formats[ret], video->bpl_alignment); in video_get_subdev_format() 323 * Video queue operations [all …]
|
| /kernel/linux/linux-6.6/Documentation/userspace-api/media/mediactl/ |
| D | media-types.rst | 34 .. _MEDIA-ENT-F-PROC-VIDEO-COMPOSER: 35 .. _MEDIA-ENT-F-PROC-VIDEO-PIXEL-FORMATTER: 36 .. _MEDIA-ENT-F-PROC-VIDEO-PIXEL-ENC-CONV: 37 .. _MEDIA-ENT-F-PROC-VIDEO-LUT: 38 .. _MEDIA-ENT-F-PROC-VIDEO-SCALER: 39 .. _MEDIA-ENT-F-PROC-VIDEO-STATISTICS: 40 .. _MEDIA-ENT-F-PROC-VIDEO-ENCODER: 41 .. _MEDIA-ENT-F-PROC-VIDEO-DECODER: 42 .. _MEDIA-ENT-F-PROC-VIDEO-ISP: 89 - Connector for a S-Video signal. [all …]
|
| /kernel/linux/linux-5.10/Documentation/userspace-api/media/mediactl/ |
| D | media-types.rst | 34 .. _MEDIA-ENT-F-PROC-VIDEO-COMPOSER: 35 .. _MEDIA-ENT-F-PROC-VIDEO-PIXEL-FORMATTER: 36 .. _MEDIA-ENT-F-PROC-VIDEO-PIXEL-ENC-CONV: 37 .. _MEDIA-ENT-F-PROC-VIDEO-LUT: 38 .. _MEDIA-ENT-F-PROC-VIDEO-SCALER: 39 .. _MEDIA-ENT-F-PROC-VIDEO-STATISTICS: 40 .. _MEDIA-ENT-F-PROC-VIDEO-ENCODER: 41 .. _MEDIA-ENT-F-PROC-VIDEO-DECODER: 88 - Connector for a S-Video signal. 94 - Camera video sensor entity. [all …]
|
| /kernel/linux/linux-6.6/drivers/media/platform/qcom/camss/ |
| D | camss-video.c | 3 * camss-video.c 18 #include "camss-video.h" 326 static struct v4l2_subdev *video_remote_subdev(struct camss_video *video, in video_remote_subdev() argument 331 remote = media_pad_remote_pad_first(&video->pad); in video_remote_subdev() 342 static int video_get_subdev_format(struct camss_video *video, in video_get_subdev_format() argument 352 subdev = video_remote_subdev(video, &pad); in video_get_subdev_format() 364 video->formats, video->nformats); in video_get_subdev_format() 368 format->type = video->type; in video_get_subdev_format() 371 &video->formats[ret], video->bpl_alignment); in video_get_subdev_format() 375 * Video queue operations [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/media/xilinx/ |
| 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 22 Video IP and System Design Guide" [UG934]. How the format relates to the IP [all …]
|
| D | xlnx,v-tpg.txt | 1 Xilinx Video Test Pattern Generator (TPG) 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. 26 - xlnx,vtc: A phandle referencing the Video Timing Controller that generates 27 video timings for the TPG test patterns. 31 video timings. 53 xlnx,video-format = <XVIP_VF_YUV_422>; 54 xlnx,video-width = <8>; [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/xilinx/ |
| 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 22 Video IP and System Design Guide" [UG934]. How the format relates to the IP [all …]
|
| D | xlnx,v-tpg.txt | 1 Xilinx Video Test Pattern Generator (TPG) 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. 26 - xlnx,vtc: A phandle referencing the Video Timing Controller that generates 27 video timings for the TPG test patterns. 31 video timings. 53 xlnx,video-format = <XVIP_VF_YUV_422>; 54 xlnx,video-width = <8>; [all …]
|