| /drivers/usb/gadget/function/ |
| A D | uvc_video.c | 127 if (video->payload_size == video->max_payload_size || in uvc_video_encode_bulk() 325 list = is_bulk ? &video->req_free : &video->req_ready; in uvcg_video_usb_req_queue() 334 struct uvc_video *video = ureq->video; in uvc_video_complete() local 412 queue_work(video->async_wq, &video->pump); in uvc_video_complete() 418 kthread_queue_work(video->kworker, &video->hw_submit); in uvc_video_complete() 475 queue_work(video->async_wq, &video->pump); in uvcg_video_hw_submit() 512 video->reqs_per_frame = video->uvc_num_requests = in uvc_video_prep_requests() 581 ureq->video = video; in uvc_video_alloc_requests() 653 video->encode(req, video, buf); in uvcg_video_pump() 790 video->encode = video->queue.use_sg ? in uvcg_video_enable() [all …]
|
| A D | uvc_v4l2.c | 149 struct uvc_video *video = &uvc->video; in find_closest_frame_by_size() local 233 struct uvc_video *video = &uvc->video; in uvc_v4l2_get_format() local 252 struct uvc_video *video = &uvc->video; in uvc_v4l2_try_format() local 310 struct uvc_video *video = &uvc->video; in uvc_v4l2_set_format() local 331 struct uvc_video *video = &uvc->video; in uvc_v4l2_g_parm() local 358 struct uvc_video *video = &uvc->video; in uvc_v4l2_s_parm() local 471 struct uvc_video *video = &uvc->video; in uvc_v4l2_reqbufs() local 484 struct uvc_video *video = &uvc->video; in uvc_v4l2_querybuf() local 494 struct uvc_video *video = &uvc->video; in uvc_v4l2_qbuf() local 512 struct uvc_video *video = &uvc->video; in uvc_v4l2_dqbuf() local [all …]
|
| /drivers/media/platform/aspeed/ |
| A D | aspeed-video.c | 599 if (!aspeed_video_alloc_buf(video, &video->bcd, in aspeed_video_start_frame() 607 &video->bcd.dma, video->bcd.size); in aspeed_video_start_frame() 609 aspeed_video_free_buf(video, &video->bcd); in aspeed_video_start_frame() 1044 memset(&video->perf, 0, sizeof(video->perf)); in aspeed_video_get_resolution() 1093 if (video->frame_top > video->frame_bottom) in aspeed_video_get_resolution() 1099 if (video->frame_left > video->frame_right) in aspeed_video_get_resolution() 1194 &video->srcs[0].dma, video->srcs[0].size); in aspeed_video_set_resolution() 1196 &video->srcs[1].dma, video->srcs[1].size); in aspeed_video_set_resolution() 1336 aspeed_video_free_buf(video, &video->bcd); in aspeed_video_stop() 2186 aspeed_video_free_buf(video, &video->jpeg); in aspeed_video_probe() [all …]
|
| /drivers/media/platform/nuvoton/ |
| A D | npcm-video.c | 826 npcm_video_command(video, video->ctrl_cmd); in npcm_video_start_frame() 852 video->rect[index] = video->rect_cnt; in npcm_video_get_diff_rect() 918 video->bytesperpixel = npcm_video_get_bpp(video); in npcm_video_set_resolution() 923 video->pix_fmt.sizeimage = video->pix_fmt.width * video->pix_fmt.height * in npcm_video_set_resolution() 925 video->pix_fmt.bytesperline = video->bytesperline; in npcm_video_set_resolution() 946 if (!npcm_video_alloc_fb(video, &video->src)) { in npcm_video_start() 964 npcm_video_ece_set_fb_addr(video, video->src.dma); in npcm_video_start() 965 npcm_video_ece_set_lp(video, video->bytesperline); in npcm_video_start() 984 npcm_video_free_fb(video, &video->src); in npcm_video_stop() 1026 npcm_video_ece_set_fb_addr(video, video->src.dma); in npcm_video_hextile() [all …]
|
| /drivers/media/platform/ti/omap3isp/ |
| A D | ispvideo.c | 241 if (entity == &video->video.entity) in isp_video_get_graph_data() 326 struct isp_video *video = vfh->video; in isp_video_queue_setup() local 344 struct isp_video *video = vfh->video; in isp_video_buffer_prepare() local 412 video->ops->queue(video, buffer); in isp_video_buffer_queue() 629 video->ops->queue(video, buf); in omap3isp_video_resume() 1092 pipe = to_isp_pipeline(&video->video.entity) ? : &video->pipe; in isp_video_streamon() 1335 handle->video = video; in isp_video_open() 1432 ret = media_entity_pads_init(&video->video.entity, 1, &video->pad); in omap3isp_video_init() 1449 snprintf(video->video.name, sizeof(video->video.name), in omap3isp_video_init() 1463 video_set_drvdata(&video->video, video); in omap3isp_video_init() [all …]
|
| A D | ispvideo.h | 143 #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 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); 207 void omap3isp_video_cancel_stream(struct isp_video *video); [all …]
|
| /drivers/staging/media/starfive/camss/ |
| A D | stf-video.c | 110 .type = video->type, in stf_video_init_format() 207 video->ops->queue_buffer(video, buffer); in video_buf_queue() 288 video->ops->start_streaming(video); in video_start_streaming() 290 ret = v4l2_subdev_call(video->source_subdev, video, s_stream, true); in video_start_streaming() 303 video->ops->flush_buffers(video, VB2_BUF_STATE_QUEUED); in video_start_streaming() 312 video->ops->stop_streaming(video); in video_stop_streaming() 314 v4l2_subdev_call(video->source_subdev, video, s_stream, false); in video_stop_streaming() 319 video->ops->flush_buffers(video, VB2_BUF_STATE_ERROR); in video_stop_streaming() 504 q = &video->vb2_q; in stf_video_register() 505 q->drv_priv = video; in stf_video_register() [all …]
|
| A D | stf-capture.c | 60 return container_of(video, struct stf_capture, video); in to_stf_capture() 130 stf_init_addrs(video); in stf_cap_s_cfg() 223 stf_channel_set(video); in stf_capture_start() 225 stf_wr_irq_enable(video); in stf_capture_start() 226 stf_wr_data_en(video); in stf_capture_start() 229 stf_cap_s_cfg(video); in stf_capture_start() 237 stf_wr_irq_disable(video); in stf_capture_stop() 239 stf_cap_s_cleanup(video); in stf_capture_stop() 260 cap->video.bpl_alignment = 8; in stf_capture_init() 264 cap->video.bpl_alignment = 1; in stf_capture_init() [all …]
|
| 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);
|
| /drivers/media/platform/nxp/imx8-isi/ |
| A D | imx8-isi-video.c | 494 struct mxc_isi_video *video = &pipe->video; in mxc_isi_video_frame_write_done() local 724 info->mbus_code, video->pix.width, video->pix.height); in mxc_isi_video_validate_format() 795 list = i < discard ? &video->out_discard : &video->out_pending; in mxc_isi_video_queue_first_buffers() 892 return mxc_isi_video_queue_setup(&video->pix, video->fmtinfo, in mxc_isi_vb2_queue_setup() 902 &video->pix); in mxc_isi_vb2_buffer_init() 912 video->fmtinfo, &video->pix); in mxc_isi_vb2_buffer_prepare() 1143 video->pix = *pix; in mxc_isi_video_s_fmt() 1358 struct mxc_isi_video *video = &pipe->video; in mxc_isi_video_suspend() local 1389 struct mxc_isi_video *video = &pipe->video; in mxc_isi_video_resume() local 1410 struct mxc_isi_video *video = &pipe->video; in mxc_isi_video_register() local [all …]
|
| /drivers/media/platform/renesas/vsp1/ |
| A D | vsp1_video.c | 1081 v4l2_fh_init(vfh, &video->video); in vsp1_video_open() 1233 rwpf->video = video; in vsp1_video_create() 1242 video->video.vfl_dir = VFL_DIR_TX; in vsp1_video_create() 1259 ret = media_entity_pads_init(&video->video.entity, 1, &video->pad); in vsp1_video_create() 1270 video->video.v4l2_dev = &video->vsp1->v4l2_dev; in vsp1_video_create() 1273 snprintf(video->video.name, sizeof(video->video.name), "%s %s", in vsp1_video_create() 1279 video_set_drvdata(&video->video, video); in vsp1_video_create() 1281 video->queue.type = video->type; in vsp1_video_create() 1283 video->queue.lock = &video->lock; in vsp1_video_create() 1284 video->queue.drv_priv = video; in vsp1_video_create() [all …]
|
| /drivers/media/platform/qcom/camss/ |
| A D | camss-video.c | 104 video->formats, video->nformats); in video_get_subdev_format() 111 &video->formats[ret], video->bpl_alignment); in video_get_subdev_format() 203 video->ops->queue_buffer(video, buffer); in video_buf_queue() 286 video->ops->flush_buffers(video, VB2_BUF_STATE_QUEUED); in video_start_streaming() 323 video->ops->flush_buffers(video, VB2_BUF_STATE_ERROR); in video_stop_streaming() 449 *f = video->active_fmt; in video_g_fmt() 467 if (video->line_based) in __video_try_fmt() 511 if (video->line_based) in __video_try_fmt() 722 vdev = &video->vdev; in msm_video_register() 726 q = &video->vb2_q; in msm_video_register() [all …]
|
| /drivers/acpi/ |
| A D | acpi_video.c | 1056 if (!video) in acpi_video_bus_check() 1070 if (video->cap._DOS || video->cap._DOD) { in acpi_video_bus_check() 1086 if (video->cap._GPD && video->cap._SPD && video->cap._VPO) { in acpi_video_bus_check() 1156 data->video = video; in acpi_video_bus_get_one_device() 1273 struct acpi_video_bus *video = device->video; in acpi_video_device_in_dod() local 1281 if (!video->attached_count || video->child_count > 8) in acpi_video_device_in_dod() 1548 if (!video || !video->input) in acpi_video_bus_notify() 1910 snprintf(video->phys, sizeof(video->phys), in acpi_video_bus_add_notify_handler() 2009 if (!video) in acpi_video_bus_add() 2094 kfree(video); in acpi_video_bus_add() [all …]
|
| /drivers/media/pci/mgb4/ |
| A D | mgb4_vout.c | 63 struct mgb4_regs *video = &voutdev->mgbdev->video; in get_timings() local 106 struct mgb4_regs *video = &voutdev->mgbdev->video; in queue_setup() local 142 struct mgb4_regs *video = &voutdev->mgbdev->video; in buffer_prepare() local 192 struct mgb4_regs *video = &mgbdev->video; in start_streaming() local 248 struct mgb4_regs *video = &voutdev->mgbdev->video; in vidioc_enum_fmt() local 264 struct mgb4_regs *video = &voutdev->mgbdev->video; in vidioc_g_fmt() local 296 struct mgb4_regs *video = &voutdev->mgbdev->video; in vidioc_try_fmt() local 328 struct mgb4_regs *video = &voutdev->mgbdev->video; in vidioc_s_fmt() local 394 struct mgb4_regs *video = &voutdev->mgbdev->video; in vidioc_enum_frameintervals() local 422 struct mgb4_regs *video = &voutdev->mgbdev->video; in vidioc_g_parm() local [all …]
|
| A D | mgb4_vin.c | 126 struct mgb4_regs *video = &vindev->mgbdev->video; in set_loopback_padding() local 141 struct mgb4_regs *video = &vindev->mgbdev->video; in get_timings() local 193 struct mgb4_regs *video = &vindev->mgbdev->video; in queue_setup() local 230 struct mgb4_regs *video = &vindev->mgbdev->video; in buffer_prepare() local 263 struct mgb4_regs *video = &vindev->mgbdev->video; in stop_streaming() local 287 struct mgb4_regs *video = &vindev->mgbdev->video; in start_streaming() local 362 struct mgb4_regs *video = &vindev->mgbdev->video; in vidioc_enum_fmt() local 379 struct mgb4_regs *video = &vindev->mgbdev->video; in vidioc_enum_frameintervals() local 404 struct mgb4_regs *video = &vindev->mgbdev->video; in vidioc_g_fmt() local 435 struct mgb4_regs *video = &vindev->mgbdev->video; in vidioc_try_fmt() local [all …]
|
| A D | mgb4_cmt.c | 194 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() 209 mgb4_mask_reg(video, regs->config, 0x100, 0x100); in mgb4_cmt_set_vout_freq() 214 mgb4_mask_reg(video, regs->config, 0x100, 0x0); in mgb4_cmt_set_vout_freq() 216 mgb4_write_reg(video, regs->config, config & ~0x1); in mgb4_cmt_set_vout_freq() 224 struct mgb4_regs *video = &vindev->mgbdev->video; in mgb4_cmt_set_vin_freq_range() local 236 config = mgb4_read_reg(video, regs->config); in mgb4_cmt_set_vin_freq_range() 240 mgb4_mask_reg(video, regs->config, 0x1000, 0x1000); in mgb4_cmt_set_vin_freq_range() 245 mgb4_mask_reg(video, regs->config, 0x1000, 0x0); in mgb4_cmt_set_vin_freq_range() [all …]
|
| A D | mgb4_sysfs_out.c | 30 config = mgb4_read_reg(&voutdev->mgbdev->video, in loopin_cnt() 66 u32 config = mgb4_read_reg(&voutdev->mgbdev->video, in video_source_show() 151 u32 config = mgb4_read_reg(&voutdev->mgbdev->video, in display_width_show() 191 u32 config = mgb4_read_reg(&voutdev->mgbdev->video, in display_height_show() 255 mgb4_write_reg(&voutdev->mgbdev->video, in frame_rate_store() 266 u32 sig = mgb4_read_reg(&voutdev->mgbdev->video, in hsync_width_show() 302 u32 sig = mgb4_read_reg(&voutdev->mgbdev->video, in vsync_width_show() 338 u32 sig = mgb4_read_reg(&voutdev->mgbdev->video, in hback_porch_show() 374 u32 sig = mgb4_read_reg(&voutdev->mgbdev->video, in vback_porch_show() 410 u32 sig = mgb4_read_reg(&voutdev->mgbdev->video, in hfront_porch_show() [all …]
|
| 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
|
| /drivers/media/platform/samsung/exynos4-is/ |
| A D | fimc-isp-video.c | 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() 157 if (video->format == NULL) in isp_video_capture_buffer_prepare() 164 v4l2_err(&video->ve.vdev, in isp_video_capture_buffer_prepare() 203 ivb->index = video->buf_count; in isp_video_capture_buffer_queue() 204 video->buffers[ivb->index] = ivb; in isp_video_capture_buffer_queue() 213 isp_dbg(2, &video->ve.vdev, in isp_video_capture_buffer_queue() 219 if (++video->buf_count < video->reqbufs_count) in isp_video_capture_buffer_queue() 222 video->buf_mask = (1UL << video->buf_count) - 1; in isp_video_capture_buffer_queue() [all …]
|
| /drivers/media/platform/xilinx/ |
| A D | xilinx-dma.c | 105 entity = &dma->video.entity; in xvip_pipeline_start_stop() 418 video_device_pipeline_stop(&dma->video); in xvip_dma_start_streaming() 660 dma->video.fops = &xvip_dma_fops; in xvip_dma_init() 661 dma->video.v4l2_dev = &xdev->v4l2_dev; in xvip_dma_init() 662 dma->video.queue = &dma->queue; in xvip_dma_init() 663 snprintf(dma->video.name, sizeof(dma->video.name), "%pOFn %s %u", in xvip_dma_init() 667 dma->video.vfl_type = VFL_TYPE_VIDEO; in xvip_dma_init() 672 dma->video.lock = &dma->lock; in xvip_dma_init() 679 video_set_drvdata(&dma->video, dma); in xvip_dma_init() 731 if (video_is_registered(&dma->video)) in xvip_dma_cleanup() [all …]
|
| /drivers/staging/fbtft/ |
| 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/
|
| /drivers/video/fbdev/matrox/ |
| A D | matroxfb_crtc2.c | 180 pos += m2info->video.offbase; in matroxfb_dh_pan_var() 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() 619 m2info->video.borrowed = mem; in matroxfb_dh_regit() 620 minfo->video.len_usable -= mem; in matroxfb_dh_regit() 621 m2info->video.offbase = minfo->video.len_usable; in matroxfb_dh_regit() 623 m2info->video.base = minfo->video.base + m2info->video.offbase; in matroxfb_dh_regit() 624 m2info->video.len = m2info->video.len_usable = m2info->video.len_maximum = mem; in matroxfb_dh_regit() 625 m2info->video.vbase.vaddr = vaddr_va(minfo->video.vbase) + m2info->video.offbase; in matroxfb_dh_regit() [all …]
|
| /drivers/video/fbdev/ |
| A D | xen-fbfront.c | 65 module_param_array(video, int, NULL, 0); 66 MODULE_PARM_DESC(video, 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() 364 video[KPARAM_WIDTH]); in xenfb_probe() 366 video[KPARAM_HEIGHT]); in xenfb_probe() 370 if (video[KPARAM_WIDTH] * video[KPARAM_HEIGHT] * XENFB_DEPTH / 8 in xenfb_probe() 373 video[KPARAM_MEM], video[KPARAM_WIDTH], in xenfb_probe() 374 video[KPARAM_HEIGHT]); in xenfb_probe() [all …]
|
| /drivers/media/pci/tw686x/ |
| 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).
|
| /drivers/staging/vc04_services/bcm2835-camera/ |
| A D | bcm2835-camera.c | 1077 port->es.video.crop.x = 0; in mmal_setup_encode_component() 1078 port->es.video.crop.y = 0; in mmal_setup_encode_component() 1620 format->es->video.width = 1024; in mmal_init() 1621 format->es->video.height = 768; in mmal_init() 1622 format->es->video.crop.x = 0; in mmal_init() 1623 format->es->video.crop.y = 0; in mmal_init() 1634 format->es->video.width = 1024; in mmal_init() 1636 format->es->video.crop.x = 0; in mmal_init() 1637 format->es->video.crop.y = 0; in mmal_init() 1649 format->es->video.crop.x = 0; in mmal_init() [all …]
|