Lines Matching defs:vb

400 static int get_v4l2_buffer32(struct v4l2_buffer *vb,
408 memset(vb, 0, sizeof(*vb));
409 *vb = (struct v4l2_buffer) {
425 switch (vb->memory) {
428 vb->m.offset = vb32.m.offset;
431 vb->m.userptr = (unsigned long)compat_ptr(vb32.m.userptr);
434 vb->m.fd = vb32.m.fd;
438 if (V4L2_TYPE_IS_MULTIPLANAR(vb->type))
439 vb->m.planes = (void __force *)
446 static int get_v4l2_buffer32_time32(struct v4l2_buffer *vb,
454 *vb = (struct v4l2_buffer) {
469 switch (vb->memory) {
472 vb->m.offset = vb32.m.offset;
475 vb->m.userptr = (unsigned long)compat_ptr(vb32.m.userptr);
478 vb->m.fd = vb32.m.fd;
482 if (V4L2_TYPE_IS_MULTIPLANAR(vb->type))
483 vb->m.planes = (void __force *)
490 static int put_v4l2_buffer32(struct v4l2_buffer *vb,
497 .index = vb->index,
498 .type = vb->type,
499 .bytesused = vb->bytesused,
500 .flags = vb->flags,
501 .field = vb->field,
502 .timestamp.tv_sec = vb->timestamp.tv_sec,
503 .timestamp.tv_usec = vb->timestamp.tv_usec,
504 .timecode = vb->timecode,
505 .sequence = vb->sequence,
506 .memory = vb->memory,
507 .m.offset = vb->m.offset,
508 .length = vb->length,
509 .request_fd = vb->request_fd,
512 switch (vb->memory) {
515 vb32.m.offset = vb->m.offset;
518 vb32.m.userptr = (uintptr_t)(vb->m.userptr);
521 vb32.m.fd = vb->m.fd;
525 if (V4L2_TYPE_IS_MULTIPLANAR(vb->type))
526 vb32.m.planes = (uintptr_t)vb->m.planes;
535 static int put_v4l2_buffer32_time32(struct v4l2_buffer *vb,
542 .index = vb->index,
543 .type = vb->type,
544 .bytesused = vb->bytesused,
545 .flags = vb->flags,
546 .field = vb->field,
547 .timestamp.tv_sec = vb->timestamp.tv_sec,
548 .timestamp.tv_usec = vb->timestamp.tv_usec,
549 .timecode = vb->timecode,
550 .sequence = vb->sequence,
551 .memory = vb->memory,
552 .m.offset = vb->m.offset,
553 .length = vb->length,
554 .request_fd = vb->request_fd,
556 switch (vb->memory) {
559 vb32.m.offset = vb->m.offset;
562 vb32.m.userptr = (uintptr_t)(vb->m.userptr);
565 vb32.m.fd = vb->m.fd;
569 if (V4L2_TYPE_IS_MULTIPLANAR(vb->type))
570 vb32.m.planes = (uintptr_t)vb->m.planes;