aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/videobuf-core.c14
-rw-r--r--drivers/media/video/videobuf-dma-contig.c4
-rw-r--r--drivers/media/video/videobuf-dma-sg.c6
-rw-r--r--drivers/media/video/videobuf-vmalloc.c4
4 files changed, 14 insertions, 14 deletions
diff --git a/drivers/media/video/videobuf-core.c b/drivers/media/video/videobuf-core.c
index 7d3378437ded..4d5658387955 100644
--- a/drivers/media/video/videobuf-core.c
+++ b/drivers/media/video/videobuf-core.c
@@ -52,18 +52,18 @@ MODULE_LICENSE("GPL");
52#define CALL(q, f, arg...) \ 52#define CALL(q, f, arg...) \
53 ((q->int_ops->f) ? q->int_ops->f(arg) : 0) 53 ((q->int_ops->f) ? q->int_ops->f(arg) : 0)
54 54
55struct videobuf_buffer *videobuf_alloc(struct videobuf_queue *q) 55struct videobuf_buffer *videobuf_alloc_vb(struct videobuf_queue *q)
56{ 56{
57 struct videobuf_buffer *vb; 57 struct videobuf_buffer *vb;
58 58
59 BUG_ON(q->msize < sizeof(*vb)); 59 BUG_ON(q->msize < sizeof(*vb));
60 60
61 if (!q->int_ops || !q->int_ops->alloc) { 61 if (!q->int_ops || !q->int_ops->alloc_vb) {
62 printk(KERN_ERR "No specific ops defined!\n"); 62 printk(KERN_ERR "No specific ops defined!\n");
63 BUG(); 63 BUG();
64 } 64 }
65 65
66 vb = q->int_ops->alloc(q->msize); 66 vb = q->int_ops->alloc_vb(q->msize);
67 if (NULL != vb) { 67 if (NULL != vb) {
68 init_waitqueue_head(&vb->done); 68 init_waitqueue_head(&vb->done);
69 vb->magic = MAGIC_BUFFER; 69 vb->magic = MAGIC_BUFFER;
@@ -71,7 +71,7 @@ struct videobuf_buffer *videobuf_alloc(struct videobuf_queue *q)
71 71
72 return vb; 72 return vb;
73} 73}
74EXPORT_SYMBOL_GPL(videobuf_alloc); 74EXPORT_SYMBOL_GPL(videobuf_alloc_vb);
75 75
76#define WAITON_CONDITION (vb->state != VIDEOBUF_ACTIVE &&\ 76#define WAITON_CONDITION (vb->state != VIDEOBUF_ACTIVE &&\
77 vb->state != VIDEOBUF_QUEUED) 77 vb->state != VIDEOBUF_QUEUED)
@@ -359,7 +359,7 @@ int __videobuf_mmap_setup(struct videobuf_queue *q,
359 359
360 /* Allocate and initialize buffers */ 360 /* Allocate and initialize buffers */
361 for (i = 0; i < bcount; i++) { 361 for (i = 0; i < bcount; i++) {
362 q->bufs[i] = videobuf_alloc(q); 362 q->bufs[i] = videobuf_alloc_vb(q);
363 363
364 if (NULL == q->bufs[i]) 364 if (NULL == q->bufs[i])
365 break; 365 break;
@@ -766,7 +766,7 @@ static ssize_t videobuf_read_zerocopy(struct videobuf_queue *q,
766 MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS); 766 MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS);
767 767
768 /* setup stuff */ 768 /* setup stuff */
769 q->read_buf = videobuf_alloc(q); 769 q->read_buf = videobuf_alloc_vb(q);
770 if (NULL == q->read_buf) 770 if (NULL == q->read_buf)
771 return -ENOMEM; 771 return -ENOMEM;
772 772
@@ -871,7 +871,7 @@ ssize_t videobuf_read_one(struct videobuf_queue *q,
871 if (NULL == q->read_buf) { 871 if (NULL == q->read_buf) {
872 /* need to capture a new frame */ 872 /* need to capture a new frame */
873 retval = -ENOMEM; 873 retval = -ENOMEM;
874 q->read_buf = videobuf_alloc(q); 874 q->read_buf = videobuf_alloc_vb(q);
875 875
876 dprintk(1, "video alloc=0x%p\n", q->read_buf); 876 dprintk(1, "video alloc=0x%p\n", q->read_buf);
877 if (NULL == q->read_buf) 877 if (NULL == q->read_buf)
diff --git a/drivers/media/video/videobuf-dma-contig.c b/drivers/media/video/videobuf-dma-contig.c
index 74730c624cfc..98e292c35185 100644
--- a/drivers/media/video/videobuf-dma-contig.c
+++ b/drivers/media/video/videobuf-dma-contig.c
@@ -190,7 +190,7 @@ static int videobuf_dma_contig_user_get(struct videobuf_dma_contig_memory *mem,
190 return ret; 190 return ret;
191} 191}
192 192
193static struct videobuf_buffer *__videobuf_alloc(size_t size) 193static struct videobuf_buffer *__videobuf_alloc_vb(size_t size)
194{ 194{
195 struct videobuf_dma_contig_memory *mem; 195 struct videobuf_dma_contig_memory *mem;
196 struct videobuf_buffer *vb; 196 struct videobuf_buffer *vb;
@@ -338,7 +338,7 @@ error:
338static struct videobuf_qtype_ops qops = { 338static struct videobuf_qtype_ops qops = {
339 .magic = MAGIC_QTYPE_OPS, 339 .magic = MAGIC_QTYPE_OPS,
340 340
341 .alloc = __videobuf_alloc, 341 .alloc_vb = __videobuf_alloc_vb,
342 .iolock = __videobuf_iolock, 342 .iolock = __videobuf_iolock,
343 .mmap_mapper = __videobuf_mmap_mapper, 343 .mmap_mapper = __videobuf_mmap_mapper,
344 .vaddr = __videobuf_to_vaddr, 344 .vaddr = __videobuf_to_vaddr,
diff --git a/drivers/media/video/videobuf-dma-sg.c b/drivers/media/video/videobuf-dma-sg.c
index 8359e6badd36..a9b109178578 100644
--- a/drivers/media/video/videobuf-dma-sg.c
+++ b/drivers/media/video/videobuf-dma-sg.c
@@ -428,7 +428,7 @@ static const struct vm_operations_struct videobuf_vm_ops = {
428 struct videobuf_dma_sg_memory 428 struct videobuf_dma_sg_memory
429 */ 429 */
430 430
431static struct videobuf_buffer *__videobuf_alloc(size_t size) 431static struct videobuf_buffer *__videobuf_alloc_vb(size_t size)
432{ 432{
433 struct videobuf_dma_sg_memory *mem; 433 struct videobuf_dma_sg_memory *mem;
434 struct videobuf_buffer *vb; 434 struct videobuf_buffer *vb;
@@ -638,7 +638,7 @@ done:
638static struct videobuf_qtype_ops sg_ops = { 638static struct videobuf_qtype_ops sg_ops = {
639 .magic = MAGIC_QTYPE_OPS, 639 .magic = MAGIC_QTYPE_OPS,
640 640
641 .alloc = __videobuf_alloc, 641 .alloc_vb = __videobuf_alloc_vb,
642 .iolock = __videobuf_iolock, 642 .iolock = __videobuf_iolock,
643 .sync = __videobuf_sync, 643 .sync = __videobuf_sync,
644 .mmap_mapper = __videobuf_mmap_mapper, 644 .mmap_mapper = __videobuf_mmap_mapper,
@@ -654,7 +654,7 @@ void *videobuf_sg_alloc(size_t size)
654 654
655 q.msize = size; 655 q.msize = size;
656 656
657 return videobuf_alloc(&q); 657 return videobuf_alloc_vb(&q);
658} 658}
659EXPORT_SYMBOL_GPL(videobuf_sg_alloc); 659EXPORT_SYMBOL_GPL(videobuf_sg_alloc);
660 660
diff --git a/drivers/media/video/videobuf-vmalloc.c b/drivers/media/video/videobuf-vmalloc.c
index 583728f4c221..cf5be6bfd745 100644
--- a/drivers/media/video/videobuf-vmalloc.c
+++ b/drivers/media/video/videobuf-vmalloc.c
@@ -135,7 +135,7 @@ static const struct vm_operations_struct videobuf_vm_ops = {
135 struct videobuf_dma_sg_memory 135 struct videobuf_dma_sg_memory
136 */ 136 */
137 137
138static struct videobuf_buffer *__videobuf_alloc(size_t size) 138static struct videobuf_buffer *__videobuf_alloc_vb(size_t size)
139{ 139{
140 struct videobuf_vmalloc_memory *mem; 140 struct videobuf_vmalloc_memory *mem;
141 struct videobuf_buffer *vb; 141 struct videobuf_buffer *vb;
@@ -293,7 +293,7 @@ error:
293static struct videobuf_qtype_ops qops = { 293static struct videobuf_qtype_ops qops = {
294 .magic = MAGIC_QTYPE_OPS, 294 .magic = MAGIC_QTYPE_OPS,
295 295
296 .alloc = __videobuf_alloc, 296 .alloc_vb = __videobuf_alloc_vb,
297 .iolock = __videobuf_iolock, 297 .iolock = __videobuf_iolock,
298 .mmap_mapper = __videobuf_mmap_mapper, 298 .mmap_mapper = __videobuf_mmap_mapper,
299 .vaddr = videobuf_to_vmalloc, 299 .vaddr = videobuf_to_vmalloc,