Home
last modified time | relevance | path

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

12345678910>>...43

/linux-6.12.1/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.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
75 struct uvc_video_queue *queue = &video->queue; in uvc_video_encode_data()
90 uvc_video_encode_bulk(struct usb_request *req, struct uvc_video *video, in uvc_video_encode_bulk() argument
95 int len = video->req_size; in uvc_video_encode_bulk()
[all …]
Duvc_v4l2.c140 struct uvc_video *video = &uvc->video; in find_closest_frame_by_size() local
175 uvcg_dbg(&video->uvc->func, "Unsupported size %ux%u\n", rw, rh); in find_closest_frame_by_size()
224 struct uvc_video *video = &uvc->video; in uvc_v4l2_get_format() local
226 fmt->fmt.pix.pixelformat = video->fcc; in uvc_v4l2_get_format()
227 fmt->fmt.pix.width = video->width; in uvc_v4l2_get_format()
228 fmt->fmt.pix.height = video->height; in uvc_v4l2_get_format()
230 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; in uvc_v4l2_get_format()
231 fmt->fmt.pix.sizeimage = video->imagesize; in uvc_v4l2_get_format()
243 struct uvc_video *video = &uvc->video; in uvc_v4l2_try_format() local
249 if (fmt->type != video->queue.queue.type) in uvc_v4l2_try_format()
[all …]
/linux-6.12.1/drivers/media/platform/aspeed/
Daspeed-video.c491 static bool aspeed_video_alloc_buf(struct aspeed_video *video,
495 static void aspeed_video_free_buf(struct aspeed_video *video,
536 static void aspeed_video_update(struct aspeed_video *video, u32 reg, u32 clear, in aspeed_video_update() argument
539 u32 t = readl(video->base + reg); in aspeed_video_update()
544 writel(t, video->base + reg); in aspeed_video_update()
545 v4l2_dbg(3, debug, &video->v4l2_dev, "update %03x[%08x -> %08x]\n", in aspeed_video_update()
546 reg, before, readl(video->base + reg)); in aspeed_video_update()
549 static u32 aspeed_video_read(struct aspeed_video *video, u32 reg) in aspeed_video_read() argument
551 u32 t = readl(video->base + reg); in aspeed_video_read()
553 v4l2_dbg(3, debug, &video->v4l2_dev, "read %03x[%08x]\n", reg, t); in aspeed_video_read()
[all …]
/linux-6.12.1/drivers/media/platform/nuvoton/
Dnpcm-video.c210 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-6.12.1/drivers/media/platform/ti/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_pad_remote_pad_first(&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
241 if (entity == &video->video.entity) in isp_video_get_graph_data()
248 if (__video->type != video->type) in isp_video_get_graph_data()
[all …]
Dispvideo.h143 #define isp_video_dmaqueue_flags_clr(video) \ argument
144 ({ (video)->dmaqueue_flags = 0; })
152 int(*queue)(struct isp_video *video, struct isp_buffer *buffer);
156 struct video_device video; member
187 #define to_isp_video(vdev) container_of(vdev, struct isp_video, video)
191 struct isp_video *video; member
201 int omap3isp_video_init(struct isp_video *video, const char *name);
202 void omap3isp_video_cleanup(struct isp_video *video);
203 int omap3isp_video_register(struct isp_video *video,
205 void omap3isp_video_unregister(struct isp_video *video);
[all …]
/linux-6.12.1/drivers/staging/media/omap4iss/
Diss_video.c114 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()
204 iss_video_far_end(struct iss_video *video, struct iss_pipeline *pipe) in iss_video_far_end() argument
218 if (entity == &video->video.entity) in iss_video_far_end()
225 if (other->type != video->type) { in iss_video_far_end()
[all …]
Diss_video.h134 #define iss_video_dmaqueue_flags_clr(video) \ argument
135 ({ (video)->dmaqueue_flags = 0; })
143 int (*queue)(struct iss_video *video, struct iss_buffer *buffer);
147 struct video_device video; member
177 #define to_iss_video(vdev) container_of(vdev, struct iss_video, video)
181 struct iss_video *video; member
191 int omap4iss_video_init(struct iss_video *video, const char *name);
192 void omap4iss_video_cleanup(struct iss_video *video);
193 int omap4iss_video_register(struct iss_video *video,
195 void omap4iss_video_unregister(struct iss_video *video);
[all …]
/linux-6.12.1/drivers/staging/media/starfive/camss/
Dstf-video.c30 video_g_fi_by_index(struct stfcamss_video *video, int index) in video_g_fi_by_index() argument
32 if (index >= video->nformats) in video_g_fi_by_index()
35 return &video->formats[index]; in video_g_fi_by_index()
39 video_g_fi_by_mcode(struct stfcamss_video *video, u32 mcode) in video_g_fi_by_mcode() argument
43 for (i = 0; i < video->nformats; i++) { in video_g_fi_by_mcode()
44 if (video->formats[i].code == mcode) in video_g_fi_by_mcode()
45 return &video->formats[i]; in video_g_fi_by_mcode()
52 video_g_fi_by_pfmt(struct stfcamss_video *video, u32 pixelformat) in video_g_fi_by_pfmt() argument
56 for (i = 0; i < video->nformats; i++) { in video_g_fi_by_pfmt()
57 if (video->formats[i].pixelformat == pixelformat) in video_g_fi_by_pfmt()
[all …]
Dstf-capture.c58 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 …]
/linux-6.12.1/drivers/media/platform/renesas/vsp1/
Dvsp1_video.c63 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-6.12.1/drivers/media/platform/nxp/imx8-isi/
Dimx8-isi-video.c494 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 …]
/linux-6.12.1/drivers/media/platform/qcom/camss/
Dcamss-video.c67 static struct v4l2_subdev *video_remote_subdev(struct camss_video *video, in video_remote_subdev() argument
72 remote = media_pad_remote_pad_first(&video->pad); in video_remote_subdev()
83 static int video_get_subdev_format(struct camss_video *video, in video_get_subdev_format() argument
93 subdev = video_remote_subdev(video, &pad); in video_get_subdev_format()
104 video->formats, video->nformats); in video_get_subdev_format()
108 format->type = video->type; in video_get_subdev_format()
111 &video->formats[ret], video->bpl_alignment); in video_get_subdev_format()
122 struct camss_video *video = vb2_get_drv_priv(q); in video_queue_setup() local
124 &video->active_fmt.fmt.pix_mp; in video_queue_setup()
149 struct camss_video *video = vb2_get_drv_priv(vb->vb2_queue); in video_buf_init() local
[all …]
/linux-6.12.1/drivers/acpi/
Dacpi_video.c200 struct acpi_video_bus *video; member
208 static void acpi_video_device_rebind(struct acpi_video_bus *video);
209 static void acpi_video_device_bind(struct acpi_video_bus *video,
211 static int acpi_video_device_enumerate(struct acpi_video_bus *video);
256 struct acpi_video_device *video = cooling_dev->devdata; in video_get_max_state() local
258 *state = video->brightness->count - ACPI_VIDEO_FIRST_LEVEL - 1; in video_get_max_state()
265 struct acpi_video_device *video = cooling_dev->devdata; in video_get_cur_state() local
269 if (acpi_video_device_lcd_get_level_current(video, &level, false)) in video_get_cur_state()
271 for (offset = ACPI_VIDEO_FIRST_LEVEL; offset < video->brightness->count; in video_get_cur_state()
273 if (level == video->brightness->levels[offset]) { in video_get_cur_state()
[all …]
/linux-6.12.1/drivers/media/pci/mgb4/
Dmgb4_cmt.c194 struct mgb4_regs *video = &voutdev->mgbdev->video; in mgb4_cmt_set_vout_freq() local
205 config = mgb4_read_reg(video, regs->config); in mgb4_cmt_set_vout_freq()
207 mgb4_write_reg(video, regs->config, 0x1 | (config & ~0x3)); in mgb4_cmt_set_vout_freq()
212 mgb4_mask_reg(video, regs->config, 0x100, 0x100); in mgb4_cmt_set_vout_freq()
213 mgb4_mask_reg(video, regs->config, 0x100, 0x0); in mgb4_cmt_set_vout_freq()
215 mgb4_write_reg(video, regs->config, config & ~0x1); in mgb4_cmt_set_vout_freq()
223 struct mgb4_regs *video = &vindev->mgbdev->video; in mgb4_cmt_set_vin_freq_range() local
235 config = mgb4_read_reg(video, regs->config); in mgb4_cmt_set_vin_freq_range()
237 mgb4_write_reg(video, regs->config, 0x1 | (config & ~0x3)); in mgb4_cmt_set_vin_freq_range()
242 mgb4_mask_reg(video, regs->config, 0x1000, 0x1000); in mgb4_cmt_set_vin_freq_range()
[all …]
Dmgb4_vout.c67 struct mgb4_regs *video = &voutdev->mgbdev->video; in get_timings() local
70 u32 hsync = mgb4_read_reg(video, regs->hsync); in get_timings()
71 u32 vsync = mgb4_read_reg(video, regs->vsync); in get_timings()
72 u32 resolution = mgb4_read_reg(video, regs->resolution); in get_timings()
110 struct mgb4_regs *video = &voutdev->mgbdev->video; in queue_setup() local
111 u32 config = mgb4_read_reg(video, voutdev->config->regs.config); in queue_setup()
146 struct mgb4_regs *video = &voutdev->mgbdev->video; in buffer_prepare() local
147 u32 config = mgb4_read_reg(video, voutdev->config->regs.config); in buffer_prepare()
183 mgb4_mask_reg(&mgbdev->video, voutdev->config->regs.config, 0x2, 0x0); in stop_streaming()
193 struct mgb4_regs *video = &mgbdev->video; in start_streaming() local
[all …]
Dmgb4_vin.c96 config = mgb4_read_reg(&voutdev->mgbdev->video, in loopback_dev()
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 signal = mgb4_read_reg(video, regs->signal); in get_timings()
147 u32 signal2 = mgb4_read_reg(video, regs->signal2); 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
[all …]
Dmgb4_sysfs_out.c30 config = mgb4_read_reg(&voutdev->mgbdev->video, in loopin_cnt()
66 u32 config = mgb4_read_reg(&voutdev->mgbdev->video, in video_source_show()
114 config = mgb4_read_reg(&mgbdev->video, voutdev->config->regs.config); in video_source_store()
123 mgb4_mask_reg(&mgbdev->video, loopin_old->config->regs.config, in video_source_store()
126 mgb4_mask_reg(&mgbdev->video, loopin_new->config->regs.config, in video_source_store()
130 mgb4_write_reg(&mgbdev->video, voutdev->config->regs.config, in video_source_store()
133 mgb4_write_reg(&mgbdev->video, voutdev->config->regs.config, in video_source_store()
136 mgb4_mask_reg(&mgbdev->video, voutdev->config->regs.config, 0xc, in video_source_store()
151 u32 config = mgb4_read_reg(&voutdev->mgbdev->video, in display_width_show()
178 mgb4_mask_reg(&voutdev->mgbdev->video, voutdev->config->regs.resolution, in display_width_store()
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/media/xilinx/
Dvideo.txt1 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 …]
Dxlnx,v-tpg.txt16 - 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>;
Dxlnx,video.txt7 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-6.12.1/Documentation/userspace-api/media/v4l/
Ddv-timings.rst9 The video standards discussed so far have been dealing with Analog TV
10 and the corresponding video timings. Today there are many more different
12 DVI connectors etc., that carry video signals and there is a need to
13 extend the API to select the video timings for these interfaces. Since
16 set/get video timings at the input and output.
18 These ioctls deal with the detailed digital video timings that define
19 each video format. This includes parameters such as the active video
33 the DV timings as seen by the video receiver applications use the
36 When the hardware detects a video source change (e.g. the video
37 signal appears or disappears, or the video resolution changes), then
[all …]
/linux-6.12.1/drivers/media/platform/samsung/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 …]
/linux-6.12.1/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/
/linux-6.12.1/Documentation/admin-guide/media/
Di2c-cardlist.rst149 video-i2c I2C transport video
179 cx25840 Conexant CX2584x audio/video decoders
180 saa717x Philips SAA7171/3/4 audio/video decoders
197 ks0127 KS0127 video decoder
198 ml86v7667 OKI ML86V7667 video decoder
199 saa7110 Philips SAA7110 video decoder
200 saa7115 Philips SAA7111/3/4/5 video decoders
202 tvp514x Texas Instruments TVP514x video decoder
203 tvp5150 Texas Instruments TVP5150 video decoder
204 tvp7002 Texas Instruments TVP7002 video decoder
[all …]

12345678910>>...43