Lines Matching full:vb

573 	struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb);  in bttv_dma_free()
576 videobuf_waiton(q, &buf->vb, 0, 0); in bttv_dma_free()
581 buf->vb.state = VIDEOBUF_NEEDS_INIT; in bttv_dma_free()
601 vbi->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_vbi()
602 list_del(&vbi->vb.queue); in bttv_buffer_activate_vbi()
643 set->top->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_video()
644 if (set->top->vb.queue.next) in bttv_buffer_activate_video()
645 list_del(&set->top->vb.queue); in bttv_buffer_activate_video()
647 set->top->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_video()
648 set->bottom->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_video()
649 if (set->top->vb.queue.next) in bttv_buffer_activate_video()
650 list_del(&set->top->vb.queue); in bttv_buffer_activate_video()
651 if (set->bottom->vb.queue.next) in bttv_buffer_activate_video()
652 list_del(&set->bottom->vb.queue); in bttv_buffer_activate_video()
665 set->top->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_video()
666 if (set->top->vb.queue.next) in bttv_buffer_activate_video()
667 list_del(&set->top->vb.queue); in bttv_buffer_activate_video()
676 set->bottom->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_video()
677 if (set->bottom->vb.queue.next) in bttv_buffer_activate_video()
678 list_del(&set->bottom->vb.queue); in bttv_buffer_activate_video()
700 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); in bttv_buffer_risc()
703 btv->c.nr, v4l2_field_names[buf->vb.field], in bttv_buffer_risc()
704 buf->fmt->fourcc, buf->vb.width, buf->vb.height); in bttv_buffer_risc()
708 int bpl = (buf->fmt->depth >> 3) * buf->vb.width; in bttv_buffer_risc()
709 int bpf = bpl * (buf->vb.height >> 1); in bttv_buffer_risc()
711 bttv_calc_geo(btv,&buf->geo,buf->vb.width,buf->vb.height, in bttv_buffer_risc()
712 V4L2_FIELD_HAS_BOTH(buf->vb.field), in bttv_buffer_risc()
715 switch (buf->vb.field) { in bttv_buffer_risc()
720 buf->vb.height); in bttv_buffer_risc()
724 0,bpl,0,0,buf->vb.height); in bttv_buffer_risc()
728 0,bpl,bpl,0,buf->vb.height >> 1); in bttv_buffer_risc()
730 bpl,bpl,bpl,0,buf->vb.height >> 1); in bttv_buffer_risc()
734 0,bpl,0,0,buf->vb.height >> 1); in bttv_buffer_risc()
736 bpf,bpl,0,0,buf->vb.height >> 1); in bttv_buffer_risc()
749 uoffset = buf->vb.width * buf->vb.height; in bttv_buffer_risc()
750 voffset = buf->vb.width * buf->vb.height; in bttv_buffer_risc()
763 switch (buf->vb.field) { in bttv_buffer_risc()
765 bttv_calc_geo(btv,&buf->geo,buf->vb.width, in bttv_buffer_risc()
766 buf->vb.height,/* both_fields */ 0, in bttv_buffer_risc()
769 0,buf->vb.width,0,buf->vb.height, in bttv_buffer_risc()
774 bttv_calc_geo(btv,&buf->geo,buf->vb.width, in bttv_buffer_risc()
775 buf->vb.height,0, in bttv_buffer_risc()
778 0,buf->vb.width,0,buf->vb.height, in bttv_buffer_risc()
783 bttv_calc_geo(btv,&buf->geo,buf->vb.width, in bttv_buffer_risc()
784 buf->vb.height,1, in bttv_buffer_risc()
786 lines = buf->vb.height >> 1; in bttv_buffer_risc()
787 ypadding = buf->vb.width; in bttv_buffer_risc()
788 cpadding = buf->vb.width >> buf->fmt->hshift; in bttv_buffer_risc()
791 0,buf->vb.width,ypadding,lines, in bttv_buffer_risc()
798 ypadding,buf->vb.width,ypadding,lines, in bttv_buffer_risc()
806 bttv_calc_geo(btv,&buf->geo,buf->vb.width, in bttv_buffer_risc()
807 buf->vb.height,1, in bttv_buffer_risc()
809 lines = buf->vb.height >> 1; in bttv_buffer_risc()
810 ypadding = buf->vb.width; in bttv_buffer_risc()
811 cpadding = buf->vb.width >> buf->fmt->hshift; in bttv_buffer_risc()
814 0,buf->vb.width,0,lines, in bttv_buffer_risc()
822 lines * ypadding,buf->vb.width,0,lines, in bttv_buffer_risc()
837 buf->vb.field = V4L2_FIELD_SEQ_TB; in bttv_buffer_risc()
844 buf->vb.size/2 , RAW_BPL, 0, 0, RAW_LINES); in bttv_buffer_risc()
864 btv->c.nr, v4l2_field_names[buf->vb.field], in bttv_overlay_risc()
891 buf->vb.field = ov->field; in bttv_overlay_risc()