Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: avoid use of 'videobuf'

The term 'videobuf' typically refers to the old videobuf version 1
framework. Avoid using this word in drivers that are converted to
vb2.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
f068a6ce 77423a62

+21 -21
+1 -1
Documentation/driver-api/media/drivers/pxa_camera.rst
··· 19 19 20 20 a) QCI stopped 21 21 Initially, the QCI interface is stopped. 22 - When a buffer is queued (pxa_videobuf_ops->buf_queue), the QCI starts. 22 + When a buffer is queued, start_streaming is called and the QCI starts. 23 23 24 24 b) QCI started 25 25 More buffers can be queued while the QCI is started without halting the
+1 -1
drivers/media/dvb-frontends/rtl2832_sdr.c
··· 245 245 if (unlikely(fbuf == NULL)) { 246 246 dev->vb_full++; 247 247 dev_notice_ratelimited(&pdev->dev, 248 - "videobuf is full, %d packets dropped\n", 248 + "video buffer is full, %d packets dropped\n", 249 249 dev->vb_full); 250 250 goto skip; 251 251 }
+1 -1
drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c
··· 1020 1020 cp->timeperframe.numerator = solo_enc->interval; 1021 1021 cp->timeperframe.denominator = solo_enc->solo_dev->fps; 1022 1022 cp->capturemode = 0; 1023 - /* XXX: Shouldn't we be able to get/set this from videobuf? */ 1023 + /* XXX: Shouldn't we be able to get/set this from vb2? */ 1024 1024 cp->readbuffers = 2; 1025 1025 1026 1026 return 0;
+4 -4
drivers/media/platform/intel/pxa_camera.c
··· 854 854 return -ENOMEM; 855 855 } 856 856 857 - static void pxa_videobuf_set_actdma(struct pxa_camera_dev *pcdev, 857 + static void pxa_video_buf_set_actdma(struct pxa_camera_dev *pcdev, 858 858 struct pxa_buffer *buf) 859 859 { 860 860 buf->active_dma = DMA_Y; ··· 973 973 * stopped. This means the tailed buffer would never be transferred by DMA. 974 974 * This function restarts the capture for this corner case, where : 975 975 * - DADR() == DADDR_STOP 976 - * - a videobuffer is queued on the pcdev->capture list 976 + * - a video buffer is queued on the pcdev->capture list 977 977 * 978 978 * Please check the "DMA hot chaining timeslice issue" in 979 979 * Documentation/driver-api/media/drivers/pxa_camera.rst ··· 1163 1163 pcdev->active = list_first_entry(&pcdev->capture, 1164 1164 struct pxa_buffer, queue); 1165 1165 buf = pcdev->active; 1166 - pxa_videobuf_set_actdma(pcdev, buf); 1166 + pxa_video_buf_set_actdma(pcdev, buf); 1167 1167 1168 1168 pxa_dma_start_channels(pcdev); 1169 1169 } ··· 1416 1416 * the actual buffer is yours 1417 1417 */ 1418 1418 buf->inwork = 0; 1419 - pxa_videobuf_set_actdma(pcdev, buf); 1419 + pxa_video_buf_set_actdma(pcdev, buf); 1420 1420 1421 1421 return ret; 1422 1422 }
+1 -1
drivers/media/platform/marvell/mcam-core.h
··· 32 32 33 33 #if !defined(MCAM_MODE_VMALLOC) && !defined(MCAM_MODE_DMA_CONTIG) && \ 34 34 !defined(MCAM_MODE_DMA_SG) 35 - #error One of the videobuf buffer modes must be selected in the config 35 + #error One of the vb2 buffer modes must be selected in the config 36 36 #endif 37 37 38 38
+1 -1
drivers/media/platform/renesas/vsp1/vsp1_video.c
··· 305 305 * @video: the video node 306 306 * 307 307 * This function completes the current buffer by filling its sequence number, 308 - * time stamp and payload size, and hands it back to the videobuf core. 308 + * time stamp and payload size, and hands it back to the vb2 core. 309 309 * 310 310 * Return the next queued buffer or NULL if the queue is empty. 311 311 */
+1 -1
drivers/media/platform/samsung/exynos4-is/fimc-core.h
··· 215 215 216 216 /** 217 217 * struct fimc_vid_buffer - the driver's video buffer 218 - * @vb: v4l videobuf buffer 218 + * @vb: v4l vb2 buffer 219 219 * @list: linked list structure for buffer queue 220 220 * @addr: precalculated DMA address set 221 221 * @index: buffer index for the output DMA engine
+1 -1
drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c
··· 323 323 } 324 324 ctx->sequence++; 325 325 /* The MFC returns address of the buffer, now we have to 326 - * check which videobuf does it correspond to */ 326 + * check which vb2_buffer does it correspond to */ 327 327 list_for_each_entry(dst_buf, &ctx->dst_queue, list) { 328 328 u32 addr = (u32)vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0); 329 329
+1 -1
drivers/media/test-drivers/vim2m.c
··· 2 2 /* 3 3 * A virtual v4l2-mem2mem example device. 4 4 * 5 - * This is a virtual device driver for testing mem-to-mem videobuf framework. 5 + * This is a virtual device driver for testing mem-to-mem vb2 framework. 6 6 * It simulates a device that uses memory buffers for both source and 7 7 * destination, processes the data and issues an "irq" (simulated by a delayed 8 8 * workqueue).
+1 -1
drivers/media/usb/airspy/airspy.c
··· 294 294 if (unlikely(fbuf == NULL)) { 295 295 s->vb_full++; 296 296 dev_notice_ratelimited(s->dev, 297 - "videobuf is full, %d packets dropped\n", 297 + "video buffer is full, %d packets dropped\n", 298 298 s->vb_full); 299 299 goto skip; 300 300 }
+2 -2
drivers/media/usb/au0828/au0828-video.c
··· 384 384 } 385 385 386 386 /* 387 - * video-buf generic routine to get the next available buffer 387 + * generic routine to get the next available buffer 388 388 */ 389 389 static inline void get_next_buf(struct au0828_dmaqueue *dma_q, 390 390 struct au0828_buffer **buf) ··· 459 459 460 460 461 461 /* 462 - * video-buf generic routine to get the next available VBI buffer 462 + * generic routine to get the next available VBI buffer 463 463 */ 464 464 static inline void vbi_get_next_buf(struct au0828_dmaqueue *dma_q, 465 465 struct au0828_buffer **buf)
+1 -1
drivers/media/usb/cx231xx/cx231xx-vbi.c
··· 558 558 } 559 559 560 560 /* 561 - * video-buf generic routine to get the next available buffer 561 + * generic routine to get the next available buffer 562 562 */ 563 563 static inline void get_next_vbi_buf(struct cx231xx_dmaqueue *dma_q, 564 564 struct cx231xx_buffer **buf)
+1 -1
drivers/media/usb/cx231xx/cx231xx-video.c
··· 220 220 } 221 221 222 222 /* 223 - * video-buf generic routine to get the next available buffer 223 + * generic routine to get the next available buffer 224 224 */ 225 225 static inline void get_next_buf(struct cx231xx_dmaqueue *dma_q, 226 226 struct cx231xx_buffer **buf)
+2 -2
drivers/media/usb/em28xx/em28xx-video.c
··· 440 440 } 441 441 442 442 /* 443 - * Copy picture data from USB buffer to videobuf buffer 443 + * Copy picture data from USB buffer to video buffer 444 444 */ 445 445 static void em28xx_copy_video(struct em28xx *dev, 446 446 struct em28xx_buffer *buf, ··· 521 521 } 522 522 523 523 /* 524 - * Copy VBI data from USB buffer to videobuf buffer 524 + * Copy VBI data from USB buffer to video buffer 525 525 */ 526 526 static void em28xx_copy_vbi(struct em28xx *dev, 527 527 struct em28xx_buffer *buf,
+1 -1
drivers/media/usb/msi2500/msi2500.c
··· 411 411 if (unlikely(fbuf == NULL)) { 412 412 dev->vb_full++; 413 413 dev_dbg_ratelimited(dev->dev, 414 - "videobuf is full, %d packets dropped\n", 414 + "video buffer is full, %d packets dropped\n", 415 415 dev->vb_full); 416 416 continue; 417 417 }
+1 -1
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
··· 80 80 static int pvr2_dvb_feed_thread(void *data) 81 81 { 82 82 int stat = pvr2_dvb_feed_func(data); 83 - /* from videobuf-dvb.c: */ 83 + 84 84 while (!kthread_should_stop()) { 85 85 set_current_state(TASK_INTERRUPTIBLE); 86 86 schedule();