vb                108 arch/alpha/math-emu/math.c 	unsigned long res, va, vb, vc, swcr, fpcr;
vb                131 arch/alpha/math-emu/math.c 		vb = alpha_read_fp_reg_s(fb);
vb                134 arch/alpha/math-emu/math.c 		FP_UNPACK_SP(SB, &vb);
vb                161 arch/alpha/math-emu/math.c 		vb = alpha_read_fp_reg(fb);
vb                165 arch/alpha/math-emu/math.c 			FP_UNPACK_RAW_DP(DB, &vb);
vb                196 arch/alpha/math-emu/math.c 		FP_UNPACK_DP(DB, &vb);
vb                227 arch/alpha/math-emu/math.c 				vb = alpha_read_fp_reg_s(fb);
vb                228 arch/alpha/math-emu/math.c 				FP_UNPACK_SP(SB, &vb);
vb                248 arch/alpha/math-emu/math.c 		vb = alpha_read_fp_reg(fb);
vb                256 arch/alpha/math-emu/math.c 			vc = ((vb & 0xc0000000) << 32 |	/* sign and msb */
vb                257 arch/alpha/math-emu/math.c 			      (vb & 0x3fffffff) << 29);	/* rest of the int */
vb                262 arch/alpha/math-emu/math.c 			FP_FROM_INT_S(SR, ((long)vb), 64, long);
vb                266 arch/alpha/math-emu/math.c 			FP_FROM_INT_D(DR, ((long)vb), 64, long);
vb                264 arch/powerpc/kernel/vecemu.c 	unsigned int va, vb, vc, vd;
vb                273 arch/powerpc/kernel/vecemu.c 	vb = (instr >> 11) & 0x1f;
vb                281 arch/powerpc/kernel/vecemu.c 			vaddfp(&vrs[vd], &vrs[va], &vrs[vb]);
vb                284 arch/powerpc/kernel/vecemu.c 			vsubfp(&vrs[vd], &vrs[va], &vrs[vb]);
vb                287 arch/powerpc/kernel/vecemu.c 			vrefp(&vrs[vd], &vrs[vb]);
vb                290 arch/powerpc/kernel/vecemu.c 			vrsqrtefp(&vrs[vd], &vrs[vb]);
vb                294 arch/powerpc/kernel/vecemu.c 				vrs[vd].u[i] = eexp2(vrs[vb].u[i]);
vb                298 arch/powerpc/kernel/vecemu.c 				vrs[vd].u[i] = elog2(vrs[vb].u[i]);
vb                302 arch/powerpc/kernel/vecemu.c 				vrs[vd].u[i] = rfin(vrs[vb].u[i]);
vb                306 arch/powerpc/kernel/vecemu.c 				vrs[vd].u[i] = rfiz(vrs[vb].u[i]);
vb                310 arch/powerpc/kernel/vecemu.c 				u32 x = vrs[vb].u[i];
vb                317 arch/powerpc/kernel/vecemu.c 				u32 x = vrs[vb].u[i];
vb                324 arch/powerpc/kernel/vecemu.c 				vrs[vd].u[i] = ctuxs(vrs[vb].u[i], va,
vb                329 arch/powerpc/kernel/vecemu.c 				vrs[vd].u[i] = ctsxs(vrs[vb].u[i], va,
vb                337 arch/powerpc/kernel/vecemu.c 		vmaddfp(&vrs[vd], &vrs[va], &vrs[vb], &vrs[vc]);
vb                340 arch/powerpc/kernel/vecemu.c 		vnmsubfp(&vrs[vd], &vrs[va], &vrs[vb], &vrs[vc]);
vb                182 arch/powerpc/math-emu/math_efp.c 	union dw_union vc, va, vb;
vb                203 arch/powerpc/math-emu/math_efp.c 	vb.wp[0] = current->thread.evr[fb];
vb                204 arch/powerpc/math-emu/math_efp.c 	vb.wp[1] = regs->gpr[fb];
vb                211 arch/powerpc/math-emu/math_efp.c 	pr_debug("vb: %08x  %08x\n", vb.wp[0], vb.wp[1]);
vb                222 arch/powerpc/math-emu/math_efp.c 			FP_UNPACK_SP(SB, vb.wp + 1);
vb                288 arch/powerpc/math-emu/math_efp.c 			FP_UNPACK_DP(DB, vb.dp);
vb                350 arch/powerpc/math-emu/math_efp.c 			FP_UNPACK_DP(DB, vb.dp);
vb                418 arch/powerpc/math-emu/math_efp.c 			FP_UNPACK_SP(SB, vb.wp + 1);
vb                496 arch/powerpc/math-emu/math_efp.c 			FP_UNPACK_SP(SB0, vb.wp);
vb                497 arch/powerpc/math-emu/math_efp.c 			FP_UNPACK_SP(SB1, vb.wp + 1);
vb                689 arch/powerpc/math-emu/math_efp.c 	pr_debug("vb: %08x  %08x\n", vb.wp[0], vb.wp[1]);
vb                975 arch/x86/tools/relocs.c static int cmp_relocs(const void *va, const void *vb)
vb                978 arch/x86/tools/relocs.c 	a = va; b = vb;
vb                574 block/partitions/ldm.c 	struct vblk *vb;
vb                591 block/partitions/ldm.c 		vb = list_entry (item, struct vblk, list);
vb                592 block/partitions/ldm.c 		part = &vb->vblk.part;
vb                720 block/partitions/ldm.c static bool ldm_parse_cmp3 (const u8 *buffer, int buflen, struct vblk *vb)
vb                725 block/partitions/ldm.c 	BUG_ON (!buffer || !vb);
vb                749 block/partitions/ldm.c 	comp = &vb->vblk.comp;
vb                771 block/partitions/ldm.c static int ldm_parse_dgr3 (const u8 *buffer, int buflen, struct vblk *vb)
vb                776 block/partitions/ldm.c 	BUG_ON (!buffer || !vb);
vb                798 block/partitions/ldm.c 	dgrp = &vb->vblk.dgrp;
vb                815 block/partitions/ldm.c static bool ldm_parse_dgr4 (const u8 *buffer, int buflen, struct vblk *vb)
vb                820 block/partitions/ldm.c 	BUG_ON (!buffer || !vb);
vb                856 block/partitions/ldm.c static bool ldm_parse_dsk3 (const u8 *buffer, int buflen, struct vblk *vb)
vb                861 block/partitions/ldm.c 	BUG_ON (!buffer || !vb);
vb                875 block/partitions/ldm.c 	disk = &vb->vblk.disk;
vb                895 block/partitions/ldm.c static bool ldm_parse_dsk4 (const u8 *buffer, int buflen, struct vblk *vb)
vb                900 block/partitions/ldm.c 	BUG_ON (!buffer || !vb);
vb                912 block/partitions/ldm.c 	disk = &vb->vblk.disk;
vb                928 block/partitions/ldm.c static bool ldm_parse_prt3(const u8 *buffer, int buflen, struct vblk *vb)
vb                933 block/partitions/ldm.c 	BUG_ON(!buffer || !vb);
vb                980 block/partitions/ldm.c 	part = &vb->vblk.part;
vb                986 block/partitions/ldm.c 	if (vb->flags & VBLK_FLAG_PART_INDEX)
vb               1004 block/partitions/ldm.c static bool ldm_parse_vol5(const u8 *buffer, int buflen, struct vblk *vb)
vb               1010 block/partitions/ldm.c 	BUG_ON(!buffer || !vb);
vb               1085 block/partitions/ldm.c 	volu = &vb->vblk.volu;
vb               1113 block/partitions/ldm.c static bool ldm_parse_vblk (const u8 *buf, int len, struct vblk *vb)
vb               1118 block/partitions/ldm.c 	BUG_ON (!buf || !vb);
vb               1126 block/partitions/ldm.c 	vb->flags  = buf[0x12];
vb               1127 block/partitions/ldm.c 	vb->type   = buf[0x13];
vb               1128 block/partitions/ldm.c 	vb->obj_id = ldm_get_vnum (buf + 0x18);
vb               1129 block/partitions/ldm.c 	ldm_get_vstr (buf+0x18+r_objid, vb->name, sizeof (vb->name));
vb               1131 block/partitions/ldm.c 	switch (vb->type) {
vb               1132 block/partitions/ldm.c 		case VBLK_CMP3:  result = ldm_parse_cmp3 (buf, len, vb); break;
vb               1133 block/partitions/ldm.c 		case VBLK_DSK3:  result = ldm_parse_dsk3 (buf, len, vb); break;
vb               1134 block/partitions/ldm.c 		case VBLK_DSK4:  result = ldm_parse_dsk4 (buf, len, vb); break;
vb               1135 block/partitions/ldm.c 		case VBLK_DGR3:  result = ldm_parse_dgr3 (buf, len, vb); break;
vb               1136 block/partitions/ldm.c 		case VBLK_DGR4:  result = ldm_parse_dgr4 (buf, len, vb); break;
vb               1137 block/partitions/ldm.c 		case VBLK_PRT3:  result = ldm_parse_prt3 (buf, len, vb); break;
vb               1138 block/partitions/ldm.c 		case VBLK_VOL5:  result = ldm_parse_vol5 (buf, len, vb); break;
vb               1143 block/partitions/ldm.c 			 (unsigned long long) vb->obj_id, vb->type);
vb               1146 block/partitions/ldm.c 			(unsigned long long) vb->obj_id, vb->type);
vb               1167 block/partitions/ldm.c 	struct vblk *vb;
vb               1172 block/partitions/ldm.c 	vb = kmalloc (sizeof (*vb), GFP_KERNEL);
vb               1173 block/partitions/ldm.c 	if (!vb) {
vb               1178 block/partitions/ldm.c 	if (!ldm_parse_vblk (data, len, vb)) {
vb               1179 block/partitions/ldm.c 		kfree(vb);
vb               1184 block/partitions/ldm.c 	switch (vb->type) {
vb               1187 block/partitions/ldm.c 		list_add (&vb->list, &ldb->v_dgrp);
vb               1191 block/partitions/ldm.c 		list_add (&vb->list, &ldb->v_disk);
vb               1194 block/partitions/ldm.c 		list_add (&vb->list, &ldb->v_volu);
vb               1197 block/partitions/ldm.c 		list_add (&vb->list, &ldb->v_comp);
vb               1203 block/partitions/ldm.c 			if ((v->vblk.part.disk_id == vb->vblk.part.disk_id) &&
vb               1204 block/partitions/ldm.c 			    (v->vblk.part.start > vb->vblk.part.start)) {
vb               1205 block/partitions/ldm.c 				list_add_tail (&vb->list, &v->list);
vb               1209 block/partitions/ldm.c 		list_add_tail (&vb->list, &ldb->v_part);
vb                 69 drivers/gpio/gpio-viperboard.c 	struct vprbrd *vb;
vb                 86 drivers/gpio/gpio-viperboard.c 	struct vprbrd *vb = gpio->vb;
vb                 87 drivers/gpio/gpio-viperboard.c 	struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf;
vb                 93 drivers/gpio/gpio-viperboard.c 	mutex_lock(&vb->lock);
vb                107 drivers/gpio/gpio-viperboard.c 	ret = usb_control_msg(vb->usb_dev, usb_sndctrlpipe(vb->usb_dev, 0),
vb                114 drivers/gpio/gpio-viperboard.c 	ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0),
vb                120 drivers/gpio/gpio-viperboard.c 	mutex_unlock(&vb->lock);
vb                136 drivers/gpio/gpio-viperboard.c 	struct vprbrd *vb = gpio->vb;
vb                137 drivers/gpio/gpio-viperboard.c 	struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf;
vb                145 drivers/gpio/gpio-viperboard.c 		mutex_lock(&vb->lock);
vb                159 drivers/gpio/gpio-viperboard.c 		ret = usb_control_msg(vb->usb_dev,
vb                160 drivers/gpio/gpio-viperboard.c 			usb_sndctrlpipe(vb->usb_dev, 0),
vb                165 drivers/gpio/gpio-viperboard.c 		mutex_unlock(&vb->lock);
vb                177 drivers/gpio/gpio-viperboard.c 	struct vprbrd *vb = gpio->vb;
vb                178 drivers/gpio/gpio-viperboard.c 	struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf;
vb                182 drivers/gpio/gpio-viperboard.c 	mutex_lock(&vb->lock);
vb                196 drivers/gpio/gpio-viperboard.c 	ret = usb_control_msg(vb->usb_dev, usb_sndctrlpipe(vb->usb_dev, 0),
vb                201 drivers/gpio/gpio-viperboard.c 	mutex_unlock(&vb->lock);
vb                214 drivers/gpio/gpio-viperboard.c 	struct vprbrd *vb = gpio->vb;
vb                215 drivers/gpio/gpio-viperboard.c 	struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf;
vb                223 drivers/gpio/gpio-viperboard.c 	mutex_lock(&vb->lock);
vb                237 drivers/gpio/gpio-viperboard.c 	ret = usb_control_msg(vb->usb_dev, usb_sndctrlpipe(vb->usb_dev, 0),
vb                242 drivers/gpio/gpio-viperboard.c 	mutex_unlock(&vb->lock);
vb                254 drivers/gpio/gpio-viperboard.c static int vprbrd_gpiob_setdir(struct vprbrd *vb, unsigned int offset,
vb                257 drivers/gpio/gpio-viperboard.c 	struct vprbrd_gpiob_msg *gbmsg = (struct vprbrd_gpiob_msg *)vb->buf;
vb                264 drivers/gpio/gpio-viperboard.c 	ret = usb_control_msg(vb->usb_dev, usb_sndctrlpipe(vb->usb_dev, 0),
vb                281 drivers/gpio/gpio-viperboard.c 	struct vprbrd *vb = gpio->vb;
vb                282 drivers/gpio/gpio-viperboard.c 	struct vprbrd_gpiob_msg *gbmsg = (struct vprbrd_gpiob_msg *)vb->buf;
vb                288 drivers/gpio/gpio-viperboard.c 	mutex_lock(&vb->lock);
vb                290 drivers/gpio/gpio-viperboard.c 	ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0),
vb                296 drivers/gpio/gpio-viperboard.c 	mutex_unlock(&vb->lock);
vb                312 drivers/gpio/gpio-viperboard.c 	struct vprbrd *vb = gpio->vb;
vb                313 drivers/gpio/gpio-viperboard.c 	struct vprbrd_gpiob_msg *gbmsg = (struct vprbrd_gpiob_msg *)vb->buf;
vb                321 drivers/gpio/gpio-viperboard.c 		mutex_lock(&vb->lock);
vb                327 drivers/gpio/gpio-viperboard.c 		ret = usb_control_msg(vb->usb_dev,
vb                328 drivers/gpio/gpio-viperboard.c 			usb_sndctrlpipe(vb->usb_dev, 0),
vb                333 drivers/gpio/gpio-viperboard.c 		mutex_unlock(&vb->lock);
vb                345 drivers/gpio/gpio-viperboard.c 	struct vprbrd *vb = gpio->vb;
vb                349 drivers/gpio/gpio-viperboard.c 	mutex_lock(&vb->lock);
vb                351 drivers/gpio/gpio-viperboard.c 	ret = vprbrd_gpiob_setdir(vb, offset, 0);
vb                353 drivers/gpio/gpio-viperboard.c 	mutex_unlock(&vb->lock);
vb                366 drivers/gpio/gpio-viperboard.c 	struct vprbrd *vb = gpio->vb;
vb                370 drivers/gpio/gpio-viperboard.c 	mutex_lock(&vb->lock);
vb                372 drivers/gpio/gpio-viperboard.c 	ret = vprbrd_gpiob_setdir(vb, offset, 1);
vb                376 drivers/gpio/gpio-viperboard.c 	mutex_unlock(&vb->lock);
vb                387 drivers/gpio/gpio-viperboard.c 	struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent);
vb                395 drivers/gpio/gpio-viperboard.c 	vb_gpio->vb = vb;
vb                 64 drivers/gpu/drm/via/via_dma.c 	*((uint32_t *)(vb)) = ((nReg) >> 2) | HALCYON_HEADER1;	\
vb                 65 drivers/gpu/drm/via/via_dma.c 	*((uint32_t *)(vb) + 1) = (nData);			\
vb                 66 drivers/gpu/drm/via/via_dma.c 	vb = ((uint32_t *)vb) + 2;				\
vb                 73 drivers/gpu/drm/via/via_dma.c 	*vb++ = (w1);				\
vb                 74 drivers/gpu/drm/via/via_dma.c 	*vb++ = (w2);				\
vb                270 drivers/gpu/drm/via/via_dma.c 	uint32_t *vb;
vb                298 drivers/gpu/drm/via/via_dma.c 	vb = via_check_dma(dev_priv, (cmd->size < 0x100) ? 0x102 : cmd->size);
vb                299 drivers/gpu/drm/via/via_dma.c 	if (vb == NULL)
vb                302 drivers/gpu/drm/via/via_dma.c 	memcpy(vb, dev_priv->pci_buf, cmd->size);
vb                385 drivers/gpu/drm/via/via_dma.c 					 uint32_t * vb, int qw_count)
vb                389 drivers/gpu/drm/via/via_dma.c 	return vb;
vb                493 drivers/gpu/drm/via/via_dma.c 	uint32_t *vb;
vb                499 drivers/gpu/drm/via/via_dma.c 	vb = via_get_dma(dev_priv);
vb                512 drivers/gpu/drm/via/via_dma.c 	vb = via_align_buffer(dev_priv, vb, qw_pad_count - 1);
vb                514 drivers/gpu/drm/via/via_dma.c 	return vb;
vb                578 drivers/gpu/drm/via/via_dma.c 	uint32_t *vb;
vb                581 drivers/gpu/drm/via/via_dma.c 	vb = via_get_dma(dev_priv);
vb                583 drivers/gpu/drm/via/via_dma.c 	via_align_buffer(dev_priv, vb, qwords);
vb                588 drivers/gpu/drm/via/via_dma.c 	uint32_t *vb = via_get_dma(dev_priv);
vb                 40 drivers/i2c/busses/i2c-viperboard.c 	struct vprbrd *vb = (struct vprbrd *)i2c->algo_data;
vb                 45 drivers/i2c/busses/i2c-viperboard.c 	ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0),
vb                113 drivers/i2c/busses/i2c-viperboard.c static int vprbrd_i2c_read(struct vprbrd *vb, struct i2c_msg *msg)
vb                118 drivers/i2c/busses/i2c-viperboard.c 		(struct vprbrd_i2c_read_msg *)vb->buf;
vb                200 drivers/i2c/busses/i2c-viperboard.c 		ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len1);
vb                208 drivers/i2c/busses/i2c-viperboard.c 			ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len2);
vb                218 drivers/i2c/busses/i2c-viperboard.c static int vprbrd_i2c_write(struct vprbrd *vb, struct i2c_msg *msg)
vb                224 drivers/i2c/busses/i2c-viperboard.c 		(struct vprbrd_i2c_write_msg *)vb->buf;
vb                255 drivers/i2c/busses/i2c-viperboard.c 		ret = usb_bulk_msg(vb->usb_dev,
vb                256 drivers/i2c/busses/i2c-viperboard.c 			usb_sndbulkpipe(vb->usb_dev,
vb                271 drivers/i2c/busses/i2c-viperboard.c 	struct vprbrd *vb = (struct vprbrd *)i2c->algo_data;
vb                273 drivers/i2c/busses/i2c-viperboard.c 		(struct vprbrd_i2c_addr_msg *)vb->buf;
vb                274 drivers/i2c/busses/i2c-viperboard.c 	struct vprbrd_i2c_status *smsg = (struct vprbrd_i2c_status *)vb->buf;
vb                286 drivers/i2c/busses/i2c-viperboard.c 		mutex_lock(&vb->lock);
vb                297 drivers/i2c/busses/i2c-viperboard.c 			ret = vprbrd_i2c_addr(vb->usb_dev, amsg);
vb                301 drivers/i2c/busses/i2c-viperboard.c 			ret = vprbrd_i2c_read(vb, pmsg);
vb                313 drivers/i2c/busses/i2c-viperboard.c 			ret = vprbrd_i2c_write(vb, pmsg);
vb                322 drivers/i2c/busses/i2c-viperboard.c 			ret = vprbrd_i2c_addr(vb->usb_dev, amsg);
vb                333 drivers/i2c/busses/i2c-viperboard.c 		mutex_unlock(&vb->lock);
vb                337 drivers/i2c/busses/i2c-viperboard.c 	mutex_unlock(&vb->lock);
vb                359 drivers/i2c/busses/i2c-viperboard.c 	struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent);
vb                373 drivers/i2c/busses/i2c-viperboard.c 	vb_i2c->i2c.algo_data = vb;
vb                379 drivers/i2c/busses/i2c-viperboard.c 		 vb->usb_dev->bus->busnum, vb->usb_dev->devnum);
vb                384 drivers/i2c/busses/i2c-viperboard.c 		pipe = usb_sndctrlpipe(vb->usb_dev, 0);
vb                385 drivers/i2c/busses/i2c-viperboard.c 		ret = usb_control_msg(vb->usb_dev, pipe,
vb                 32 drivers/iio/adc/viperboard_adc.c 	struct vprbrd *vb;
vb                 57 drivers/iio/adc/viperboard_adc.c 	struct vprbrd *vb = adc->vb;
vb                 58 drivers/iio/adc/viperboard_adc.c 	struct vprbrd_adc_msg *admsg = (struct vprbrd_adc_msg *)vb->buf;
vb                 62 drivers/iio/adc/viperboard_adc.c 		mutex_lock(&vb->lock);
vb                 68 drivers/iio/adc/viperboard_adc.c 		ret = usb_control_msg(vb->usb_dev,
vb                 69 drivers/iio/adc/viperboard_adc.c 			usb_sndctrlpipe(vb->usb_dev, 0), VPRBRD_USB_REQUEST_ADC,
vb                 77 drivers/iio/adc/viperboard_adc.c 		ret = usb_control_msg(vb->usb_dev,
vb                 78 drivers/iio/adc/viperboard_adc.c 			usb_rcvctrlpipe(vb->usb_dev, 0), VPRBRD_USB_REQUEST_ADC,
vb                 84 drivers/iio/adc/viperboard_adc.c 		mutex_unlock(&vb->lock);
vb                109 drivers/iio/adc/viperboard_adc.c 	struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent);
vb                122 drivers/iio/adc/viperboard_adc.c 	adc->vb = vb;
vb                291 drivers/input/rmi4/rmi_f54.c static void rmi_f54_buffer_queue(struct vb2_buffer *vb)
vb                293 drivers/input/rmi4/rmi_f54.c 	struct f54_data *f54 = vb2_get_drv_priv(vb->vb2_queue);
vb                333 drivers/input/rmi4/rmi_f54.c 	ptr = vb2_plane_vaddr(vb, 0);
vb                341 drivers/input/rmi4/rmi_f54.c 	vb2_set_plane_payload(vb, 0, rmi_f54_get_report_size(f54));
vb                347 drivers/input/rmi4/rmi_f54.c 	vb2_buffer_done(vb, state);
vb                342 drivers/input/touchscreen/atmel_mxt_ts.c 	struct vb2_buffer	vb;
vb               2349 drivers/input/touchscreen/atmel_mxt_ts.c static void mxt_buffer_queue(struct vb2_buffer *vb)
vb               2351 drivers/input/touchscreen/atmel_mxt_ts.c 	struct mxt_data *data = vb2_get_drv_priv(vb->vb2_queue);
vb               2356 drivers/input/touchscreen/atmel_mxt_ts.c 	ptr = vb2_plane_vaddr(vb, 0);
vb               2377 drivers/input/touchscreen/atmel_mxt_ts.c 	vb2_set_plane_payload(vb, 0, data->dbg.t37_nodes * sizeof(u16));
vb               2378 drivers/input/touchscreen/atmel_mxt_ts.c 	vb2_buffer_done(vb, VB2_BUF_STATE_DONE);
vb               2382 drivers/input/touchscreen/atmel_mxt_ts.c 	vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
vb                231 drivers/input/touchscreen/sur40.c 	struct vb2_v4l2_buffer vb;
vb                581 drivers/input/touchscreen/sur40.c 	sgt = vb2_dma_sg_plane_desc(&new_buf->vb.vb2_buf, 0);
vb                604 drivers/input/touchscreen/sur40.c 	new_buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                605 drivers/input/touchscreen/sur40.c 	new_buf->vb.sequence = sur40->sequence++;
vb                606 drivers/input/touchscreen/sur40.c 	new_buf->vb.field = V4L2_FIELD_NONE;
vb                607 drivers/input/touchscreen/sur40.c 	vb2_buffer_done(&new_buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                612 drivers/input/touchscreen/sur40.c 	vb2_buffer_done(&new_buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                854 drivers/input/touchscreen/sur40.c static int sur40_buffer_prepare(struct vb2_buffer *vb)
vb                856 drivers/input/touchscreen/sur40.c 	struct sur40_state *sur40 = vb2_get_drv_priv(vb->vb2_queue);
vb                859 drivers/input/touchscreen/sur40.c 	if (vb2_plane_size(vb, 0) < size) {
vb                861 drivers/input/touchscreen/sur40.c 			 vb2_plane_size(vb, 0), size);
vb                865 drivers/input/touchscreen/sur40.c 	vb2_set_plane_payload(vb, 0, size);
vb                872 drivers/input/touchscreen/sur40.c static void sur40_buffer_queue(struct vb2_buffer *vb)
vb                874 drivers/input/touchscreen/sur40.c 	struct sur40_state *sur40 = vb2_get_drv_priv(vb->vb2_queue);
vb                875 drivers/input/touchscreen/sur40.c 	struct sur40_buffer *buf = (struct sur40_buffer *)vb;
vb                889 drivers/input/touchscreen/sur40.c 		vb2_buffer_done(&buf->vb.vb2_buf, state);
vb                705 drivers/macintosh/via-pmu.c 	long pcharge, charge, vb, vmax, lmax;
vb                732 drivers/macintosh/via-pmu.c 		vb = (req->reply[1] << 8) | req->reply[2];
vb                733 drivers/macintosh/via-pmu.c 		voltage = (vb * 265 + 72665) / 10;
vb                737 drivers/macintosh/via-pmu.c 				vb += ((amperage - 200) * 15)/100;
vb                739 drivers/macintosh/via-pmu.c 			vb = (vb * 97) / 100;
vb                742 drivers/macintosh/via-pmu.c 		charge = (100 * vb) / vmax;
vb                 55 drivers/media/common/saa7146/saa7146_fops.c 	struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb);
vb                 60 drivers/media/common/saa7146/saa7146_fops.c 	videobuf_waiton(q, &buf->vb, 0, 0);
vb                 63 drivers/media/common/saa7146/saa7146_fops.c 	buf->vb.state = VIDEOBUF_NEEDS_INIT;
vb                 84 drivers/media/common/saa7146/saa7146_fops.c 		list_add_tail(&buf->vb.queue,&q->queue);
vb                 85 drivers/media/common/saa7146/saa7146_fops.c 		buf->vb.state = VIDEOBUF_QUEUED;
vb                108 drivers/media/common/saa7146/saa7146_fops.c 	q->curr->vb.state = state;
vb                109 drivers/media/common/saa7146/saa7146_fops.c 	q->curr->vb.ts = ktime_get_ns();
vb                110 drivers/media/common/saa7146/saa7146_fops.c 	wake_up(&q->curr->vb.done);
vb                127 drivers/media/common/saa7146/saa7146_fops.c 		buf = list_entry(q->queue.next,struct saa7146_buf,vb.queue);
vb                128 drivers/media/common/saa7146/saa7146_fops.c 		list_del(&buf->vb.queue);
vb                130 drivers/media/common/saa7146/saa7146_fops.c 			next = list_entry(q->queue.next,struct saa7146_buf, vb.queue);
vb                210 drivers/media/common/saa7146/saa7146_vbi.c 	buf->vb.state = VIDEOBUF_ACTIVE;
vb                219 drivers/media/common/saa7146/saa7146_vbi.c static int buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb,enum v4l2_field field)
vb                224 drivers/media/common/saa7146/saa7146_vbi.c 	struct saa7146_buf *buf = (struct saa7146_buf *)vb;
vb                233 drivers/media/common/saa7146/saa7146_vbi.c 	DEB_VBI("vb:%p\n", vb);
vb                235 drivers/media/common/saa7146/saa7146_vbi.c 	if (0 != buf->vb.baddr  &&  buf->vb.bsize < size) {
vb                240 drivers/media/common/saa7146/saa7146_vbi.c 	if (buf->vb.size != size)
vb                243 drivers/media/common/saa7146/saa7146_vbi.c 	if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
vb                244 drivers/media/common/saa7146/saa7146_vbi.c 		struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb);
vb                246 drivers/media/common/saa7146/saa7146_vbi.c 		buf->vb.width  = llength;
vb                247 drivers/media/common/saa7146/saa7146_vbi.c 		buf->vb.height = lines;
vb                248 drivers/media/common/saa7146/saa7146_vbi.c 		buf->vb.size   = size;
vb                249 drivers/media/common/saa7146/saa7146_vbi.c 		buf->vb.field  = field;	// FIXME: check this
vb                254 drivers/media/common/saa7146/saa7146_vbi.c 		err = videobuf_iolock(q,&buf->vb, NULL);
vb                262 drivers/media/common/saa7146/saa7146_vbi.c 	buf->vb.state = VIDEOBUF_PREPARED;
vb                289 drivers/media/common/saa7146/saa7146_vbi.c static void buffer_queue(struct videobuf_queue *q, struct videobuf_buffer *vb)
vb                295 drivers/media/common/saa7146/saa7146_vbi.c 	struct saa7146_buf *buf = (struct saa7146_buf *)vb;
vb                297 drivers/media/common/saa7146/saa7146_vbi.c 	DEB_VBI("vb:%p\n", vb);
vb                301 drivers/media/common/saa7146/saa7146_vbi.c static void buffer_release(struct videobuf_queue *q, struct videobuf_buffer *vb)
vb                306 drivers/media/common/saa7146/saa7146_vbi.c 	struct saa7146_buf *buf = (struct saa7146_buf *)vb;
vb                308 drivers/media/common/saa7146/saa7146_vbi.c 	DEB_VBI("vb:%p\n", vb);
vb                446 drivers/media/common/saa7146/saa7146_vbi.c 		vv->vbi_dmaq.curr->vb.field_count = vv->vbi_fieldcount;
vb                199 drivers/media/common/saa7146/saa7146_video.c 	struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb);
vb               1024 drivers/media/common/saa7146/saa7146_video.c 	buf->vb.state = VIDEOBUF_ACTIVE;
vb               1039 drivers/media/common/saa7146/saa7146_video.c 			  struct videobuf_buffer *vb, enum v4l2_field field)
vb               1045 drivers/media/common/saa7146/saa7146_video.c 	struct saa7146_buf *buf = (struct saa7146_buf *)vb;
vb               1048 drivers/media/common/saa7146/saa7146_video.c 	DEB_CAP("vbuf:%p\n", vb);
vb               1061 drivers/media/common/saa7146/saa7146_video.c 	if (0 != buf->vb.baddr && buf->vb.bsize < size) {
vb               1069 drivers/media/common/saa7146/saa7146_video.c 	if (buf->vb.width  != vv->video_fmt.width  ||
vb               1070 drivers/media/common/saa7146/saa7146_video.c 	    buf->vb.bytesperline != vv->video_fmt.bytesperline ||
vb               1071 drivers/media/common/saa7146/saa7146_video.c 	    buf->vb.height != vv->video_fmt.height ||
vb               1072 drivers/media/common/saa7146/saa7146_video.c 	    buf->vb.size   != size ||
vb               1073 drivers/media/common/saa7146/saa7146_video.c 	    buf->vb.field  != field      ||
vb               1074 drivers/media/common/saa7146/saa7146_video.c 	    buf->vb.field  != vv->video_fmt.field  ||
vb               1079 drivers/media/common/saa7146/saa7146_video.c 	if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
vb               1082 drivers/media/common/saa7146/saa7146_video.c 		buf->vb.bytesperline  = vv->video_fmt.bytesperline;
vb               1083 drivers/media/common/saa7146/saa7146_video.c 		buf->vb.width  = vv->video_fmt.width;
vb               1084 drivers/media/common/saa7146/saa7146_video.c 		buf->vb.height = vv->video_fmt.height;
vb               1085 drivers/media/common/saa7146/saa7146_video.c 		buf->vb.size   = size;
vb               1086 drivers/media/common/saa7146/saa7146_video.c 		buf->vb.field  = field;
vb               1088 drivers/media/common/saa7146/saa7146_video.c 		buf->vb.field  = vv->video_fmt.field;
vb               1101 drivers/media/common/saa7146/saa7146_video.c 		err = videobuf_iolock(q,&buf->vb, &vv->ov_fb);
vb               1108 drivers/media/common/saa7146/saa7146_video.c 	buf->vb.state = VIDEOBUF_PREPARED;
vb               1141 drivers/media/common/saa7146/saa7146_video.c static void buffer_queue(struct videobuf_queue *q, struct videobuf_buffer *vb)
vb               1147 drivers/media/common/saa7146/saa7146_video.c 	struct saa7146_buf *buf = (struct saa7146_buf *)vb;
vb               1149 drivers/media/common/saa7146/saa7146_video.c 	DEB_CAP("vbuf:%p\n", vb);
vb               1153 drivers/media/common/saa7146/saa7146_video.c static void buffer_release(struct videobuf_queue *q, struct videobuf_buffer *vb)
vb               1158 drivers/media/common/saa7146/saa7146_video.c 	struct saa7146_buf *buf = (struct saa7146_buf *)vb;
vb               1160 drivers/media/common/saa7146/saa7146_video.c 	DEB_CAP("vbuf:%p\n", vb);
vb                 53 drivers/media/common/videobuf2/videobuf2-core.c #define log_memop(vb, op)						\
vb                 55 drivers/media/common/videobuf2/videobuf2-core.c 		(vb)->vb2_queue, (vb)->index, #op,			\
vb                 56 drivers/media/common/videobuf2/videobuf2-core.c 		(vb)->vb2_queue->mem_ops->op ? "" : " (nop)")
vb                 58 drivers/media/common/videobuf2/videobuf2-core.c #define call_memop(vb, op, args...)					\
vb                 60 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_queue *_q = (vb)->vb2_queue;				\
vb                 63 drivers/media/common/videobuf2/videobuf2-core.c 	log_memop(vb, op);						\
vb                 66 drivers/media/common/videobuf2/videobuf2-core.c 		(vb)->cnt_mem_ ## op++;					\
vb                 70 drivers/media/common/videobuf2/videobuf2-core.c #define call_ptr_memop(vb, op, args...)					\
vb                 72 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_queue *_q = (vb)->vb2_queue;				\
vb                 75 drivers/media/common/videobuf2/videobuf2-core.c 	log_memop(vb, op);						\
vb                 78 drivers/media/common/videobuf2/videobuf2-core.c 		(vb)->cnt_mem_ ## op++;					\
vb                 82 drivers/media/common/videobuf2/videobuf2-core.c #define call_void_memop(vb, op, args...)				\
vb                 84 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_queue *_q = (vb)->vb2_queue;				\
vb                 86 drivers/media/common/videobuf2/videobuf2-core.c 	log_memop(vb, op);						\
vb                 89 drivers/media/common/videobuf2/videobuf2-core.c 	(vb)->cnt_mem_ ## op++;						\
vb                115 drivers/media/common/videobuf2/videobuf2-core.c #define log_vb_qop(vb, op, args...)					\
vb                117 drivers/media/common/videobuf2/videobuf2-core.c 		(vb)->vb2_queue, (vb)->index, #op,			\
vb                118 drivers/media/common/videobuf2/videobuf2-core.c 		(vb)->vb2_queue->ops->op ? "" : " (nop)")
vb                120 drivers/media/common/videobuf2/videobuf2-core.c #define call_vb_qop(vb, op, args...)					\
vb                124 drivers/media/common/videobuf2/videobuf2-core.c 	log_vb_qop(vb, op);						\
vb                125 drivers/media/common/videobuf2/videobuf2-core.c 	err = (vb)->vb2_queue->ops->op ?				\
vb                126 drivers/media/common/videobuf2/videobuf2-core.c 		(vb)->vb2_queue->ops->op(args) : 0;			\
vb                128 drivers/media/common/videobuf2/videobuf2-core.c 		(vb)->cnt_ ## op++;					\
vb                132 drivers/media/common/videobuf2/videobuf2-core.c #define call_void_vb_qop(vb, op, args...)				\
vb                134 drivers/media/common/videobuf2/videobuf2-core.c 	log_vb_qop(vb, op);						\
vb                135 drivers/media/common/videobuf2/videobuf2-core.c 	if ((vb)->vb2_queue->ops->op)					\
vb                136 drivers/media/common/videobuf2/videobuf2-core.c 		(vb)->vb2_queue->ops->op(args);				\
vb                137 drivers/media/common/videobuf2/videobuf2-core.c 	(vb)->cnt_ ## op++;						\
vb                142 drivers/media/common/videobuf2/videobuf2-core.c #define call_memop(vb, op, args...)					\
vb                143 drivers/media/common/videobuf2/videobuf2-core.c 	((vb)->vb2_queue->mem_ops->op ?					\
vb                144 drivers/media/common/videobuf2/videobuf2-core.c 		(vb)->vb2_queue->mem_ops->op(args) : 0)
vb                146 drivers/media/common/videobuf2/videobuf2-core.c #define call_ptr_memop(vb, op, args...)					\
vb                147 drivers/media/common/videobuf2/videobuf2-core.c 	((vb)->vb2_queue->mem_ops->op ?					\
vb                148 drivers/media/common/videobuf2/videobuf2-core.c 		(vb)->vb2_queue->mem_ops->op(args) : NULL)
vb                150 drivers/media/common/videobuf2/videobuf2-core.c #define call_void_memop(vb, op, args...)				\
vb                152 drivers/media/common/videobuf2/videobuf2-core.c 		if ((vb)->vb2_queue->mem_ops->op)			\
vb                153 drivers/media/common/videobuf2/videobuf2-core.c 			(vb)->vb2_queue->mem_ops->op(args);		\
vb                165 drivers/media/common/videobuf2/videobuf2-core.c #define call_vb_qop(vb, op, args...)					\
vb                166 drivers/media/common/videobuf2/videobuf2-core.c 	((vb)->vb2_queue->ops->op ? (vb)->vb2_queue->ops->op(args) : 0)
vb                168 drivers/media/common/videobuf2/videobuf2-core.c #define call_void_vb_qop(vb, op, args...)				\
vb                170 drivers/media/common/videobuf2/videobuf2-core.c 		if ((vb)->vb2_queue->ops->op)				\
vb                171 drivers/media/common/videobuf2/videobuf2-core.c 			(vb)->vb2_queue->ops->op(args);			\
vb                191 drivers/media/common/videobuf2/videobuf2-core.c static void __enqueue_in_driver(struct vb2_buffer *vb);
vb                196 drivers/media/common/videobuf2/videobuf2-core.c static int __vb2_buf_mem_alloc(struct vb2_buffer *vb)
vb                198 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_queue *q = vb->vb2_queue;
vb                207 drivers/media/common/videobuf2/videobuf2-core.c 	for (plane = 0; plane < vb->num_planes; ++plane) {
vb                209 drivers/media/common/videobuf2/videobuf2-core.c 		unsigned long size = PAGE_ALIGN(vb->planes[plane].length);
vb                212 drivers/media/common/videobuf2/videobuf2-core.c 		if (size < vb->planes[plane].length)
vb                215 drivers/media/common/videobuf2/videobuf2-core.c 		mem_priv = call_ptr_memop(vb, alloc,
vb                225 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].mem_priv = mem_priv;
vb                232 drivers/media/common/videobuf2/videobuf2-core.c 		call_void_memop(vb, put, vb->planes[plane - 1].mem_priv);
vb                233 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane - 1].mem_priv = NULL;
vb                242 drivers/media/common/videobuf2/videobuf2-core.c static void __vb2_buf_mem_free(struct vb2_buffer *vb)
vb                246 drivers/media/common/videobuf2/videobuf2-core.c 	for (plane = 0; plane < vb->num_planes; ++plane) {
vb                247 drivers/media/common/videobuf2/videobuf2-core.c 		call_void_memop(vb, put, vb->planes[plane].mem_priv);
vb                248 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].mem_priv = NULL;
vb                249 drivers/media/common/videobuf2/videobuf2-core.c 		dprintk(3, "freed plane %d of buffer %d\n", plane, vb->index);
vb                257 drivers/media/common/videobuf2/videobuf2-core.c static void __vb2_buf_userptr_put(struct vb2_buffer *vb)
vb                261 drivers/media/common/videobuf2/videobuf2-core.c 	for (plane = 0; plane < vb->num_planes; ++plane) {
vb                262 drivers/media/common/videobuf2/videobuf2-core.c 		if (vb->planes[plane].mem_priv)
vb                263 drivers/media/common/videobuf2/videobuf2-core.c 			call_void_memop(vb, put_userptr, vb->planes[plane].mem_priv);
vb                264 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].mem_priv = NULL;
vb                272 drivers/media/common/videobuf2/videobuf2-core.c static void __vb2_plane_dmabuf_put(struct vb2_buffer *vb, struct vb2_plane *p)
vb                278 drivers/media/common/videobuf2/videobuf2-core.c 		call_void_memop(vb, unmap_dmabuf, p->mem_priv);
vb                280 drivers/media/common/videobuf2/videobuf2-core.c 	call_void_memop(vb, detach_dmabuf, p->mem_priv);
vb                291 drivers/media/common/videobuf2/videobuf2-core.c static void __vb2_buf_dmabuf_put(struct vb2_buffer *vb)
vb                295 drivers/media/common/videobuf2/videobuf2-core.c 	for (plane = 0; plane < vb->num_planes; ++plane)
vb                296 drivers/media/common/videobuf2/videobuf2-core.c 		__vb2_plane_dmabuf_put(vb, &vb->planes[plane]);
vb                303 drivers/media/common/videobuf2/videobuf2-core.c static void __setup_offsets(struct vb2_buffer *vb)
vb                305 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_queue *q = vb->vb2_queue;
vb                309 drivers/media/common/videobuf2/videobuf2-core.c 	if (vb->index) {
vb                310 drivers/media/common/videobuf2/videobuf2-core.c 		struct vb2_buffer *prev = q->bufs[vb->index - 1];
vb                316 drivers/media/common/videobuf2/videobuf2-core.c 	for (plane = 0; plane < vb->num_planes; ++plane) {
vb                317 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].m.offset = off;
vb                320 drivers/media/common/videobuf2/videobuf2-core.c 				vb->index, plane, off);
vb                322 drivers/media/common/videobuf2/videobuf2-core.c 		off += vb->planes[plane].length;
vb                339 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb;
vb                348 drivers/media/common/videobuf2/videobuf2-core.c 		vb = kzalloc(q->buf_struct_size, GFP_KERNEL);
vb                349 drivers/media/common/videobuf2/videobuf2-core.c 		if (!vb) {
vb                354 drivers/media/common/videobuf2/videobuf2-core.c 		vb->state = VB2_BUF_STATE_DEQUEUED;
vb                355 drivers/media/common/videobuf2/videobuf2-core.c 		vb->vb2_queue = q;
vb                356 drivers/media/common/videobuf2/videobuf2-core.c 		vb->num_planes = num_planes;
vb                357 drivers/media/common/videobuf2/videobuf2-core.c 		vb->index = q->num_buffers + buffer;
vb                358 drivers/media/common/videobuf2/videobuf2-core.c 		vb->type = q->type;
vb                359 drivers/media/common/videobuf2/videobuf2-core.c 		vb->memory = memory;
vb                361 drivers/media/common/videobuf2/videobuf2-core.c 			vb->planes[plane].length = plane_sizes[plane];
vb                362 drivers/media/common/videobuf2/videobuf2-core.c 			vb->planes[plane].min_length = plane_sizes[plane];
vb                364 drivers/media/common/videobuf2/videobuf2-core.c 		call_void_bufop(q, init_buffer, vb);
vb                366 drivers/media/common/videobuf2/videobuf2-core.c 		q->bufs[vb->index] = vb;
vb                370 drivers/media/common/videobuf2/videobuf2-core.c 			ret = __vb2_buf_mem_alloc(vb);
vb                374 drivers/media/common/videobuf2/videobuf2-core.c 				q->bufs[vb->index] = NULL;
vb                375 drivers/media/common/videobuf2/videobuf2-core.c 				kfree(vb);
vb                378 drivers/media/common/videobuf2/videobuf2-core.c 			__setup_offsets(vb);
vb                384 drivers/media/common/videobuf2/videobuf2-core.c 			ret = call_vb_qop(vb, buf_init, vb);
vb                387 drivers/media/common/videobuf2/videobuf2-core.c 					buffer, vb);
vb                388 drivers/media/common/videobuf2/videobuf2-core.c 				__vb2_buf_mem_free(vb);
vb                389 drivers/media/common/videobuf2/videobuf2-core.c 				q->bufs[vb->index] = NULL;
vb                390 drivers/media/common/videobuf2/videobuf2-core.c 				kfree(vb);
vb                408 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb;
vb                412 drivers/media/common/videobuf2/videobuf2-core.c 		vb = q->bufs[buffer];
vb                413 drivers/media/common/videobuf2/videobuf2-core.c 		if (!vb)
vb                418 drivers/media/common/videobuf2/videobuf2-core.c 			__vb2_buf_mem_free(vb);
vb                420 drivers/media/common/videobuf2/videobuf2-core.c 			__vb2_buf_dmabuf_put(vb);
vb                422 drivers/media/common/videobuf2/videobuf2-core.c 			__vb2_buf_userptr_put(vb);
vb                456 drivers/media/common/videobuf2/videobuf2-core.c 		struct vb2_buffer *vb = q->bufs[buffer];
vb                458 drivers/media/common/videobuf2/videobuf2-core.c 		if (vb && vb->planes[0].mem_priv)
vb                459 drivers/media/common/videobuf2/videobuf2-core.c 			call_void_vb_qop(vb, buf_cleanup, vb);
vb                491 drivers/media/common/videobuf2/videobuf2-core.c 		struct vb2_buffer *vb = q->bufs[buffer];
vb                492 drivers/media/common/videobuf2/videobuf2-core.c 		bool unbalanced = vb->cnt_mem_alloc != vb->cnt_mem_put ||
vb                493 drivers/media/common/videobuf2/videobuf2-core.c 				  vb->cnt_mem_prepare != vb->cnt_mem_finish ||
vb                494 drivers/media/common/videobuf2/videobuf2-core.c 				  vb->cnt_mem_get_userptr != vb->cnt_mem_put_userptr ||
vb                495 drivers/media/common/videobuf2/videobuf2-core.c 				  vb->cnt_mem_attach_dmabuf != vb->cnt_mem_detach_dmabuf ||
vb                496 drivers/media/common/videobuf2/videobuf2-core.c 				  vb->cnt_mem_map_dmabuf != vb->cnt_mem_unmap_dmabuf ||
vb                497 drivers/media/common/videobuf2/videobuf2-core.c 				  vb->cnt_buf_queue != vb->cnt_buf_done ||
vb                498 drivers/media/common/videobuf2/videobuf2-core.c 				  vb->cnt_buf_prepare != vb->cnt_buf_finish ||
vb                499 drivers/media/common/videobuf2/videobuf2-core.c 				  vb->cnt_buf_init != vb->cnt_buf_cleanup;
vb                505 drivers/media/common/videobuf2/videobuf2-core.c 				vb->cnt_buf_init, vb->cnt_buf_cleanup,
vb                506 drivers/media/common/videobuf2/videobuf2-core.c 				vb->cnt_buf_prepare, vb->cnt_buf_finish);
vb                508 drivers/media/common/videobuf2/videobuf2-core.c 				vb->cnt_buf_out_validate, vb->cnt_buf_queue,
vb                509 drivers/media/common/videobuf2/videobuf2-core.c 				vb->cnt_buf_done, vb->cnt_buf_request_complete);
vb                511 drivers/media/common/videobuf2/videobuf2-core.c 				vb->cnt_mem_alloc, vb->cnt_mem_put,
vb                512 drivers/media/common/videobuf2/videobuf2-core.c 				vb->cnt_mem_prepare, vb->cnt_mem_finish,
vb                513 drivers/media/common/videobuf2/videobuf2-core.c 				vb->cnt_mem_mmap);
vb                515 drivers/media/common/videobuf2/videobuf2-core.c 				vb->cnt_mem_get_userptr, vb->cnt_mem_put_userptr);
vb                517 drivers/media/common/videobuf2/videobuf2-core.c 				vb->cnt_mem_attach_dmabuf, vb->cnt_mem_detach_dmabuf,
vb                518 drivers/media/common/videobuf2/videobuf2-core.c 				vb->cnt_mem_map_dmabuf, vb->cnt_mem_unmap_dmabuf);
vb                520 drivers/media/common/videobuf2/videobuf2-core.c 				vb->cnt_mem_get_dmabuf,
vb                521 drivers/media/common/videobuf2/videobuf2-core.c 				vb->cnt_mem_num_users,
vb                522 drivers/media/common/videobuf2/videobuf2-core.c 				vb->cnt_mem_vaddr,
vb                523 drivers/media/common/videobuf2/videobuf2-core.c 				vb->cnt_mem_cookie);
vb                543 drivers/media/common/videobuf2/videobuf2-core.c bool vb2_buffer_in_use(struct vb2_queue *q, struct vb2_buffer *vb)
vb                546 drivers/media/common/videobuf2/videobuf2-core.c 	for (plane = 0; plane < vb->num_planes; ++plane) {
vb                547 drivers/media/common/videobuf2/videobuf2-core.c 		void *mem_priv = vb->planes[plane].mem_priv;
vb                554 drivers/media/common/videobuf2/videobuf2-core.c 		if (mem_priv && call_memop(vb, num_users, mem_priv) > 1)
vb                902 drivers/media/common/videobuf2/videobuf2-core.c void *vb2_plane_vaddr(struct vb2_buffer *vb, unsigned int plane_no)
vb                904 drivers/media/common/videobuf2/videobuf2-core.c 	if (plane_no >= vb->num_planes || !vb->planes[plane_no].mem_priv)
vb                907 drivers/media/common/videobuf2/videobuf2-core.c 	return call_ptr_memop(vb, vaddr, vb->planes[plane_no].mem_priv);
vb                912 drivers/media/common/videobuf2/videobuf2-core.c void *vb2_plane_cookie(struct vb2_buffer *vb, unsigned int plane_no)
vb                914 drivers/media/common/videobuf2/videobuf2-core.c 	if (plane_no >= vb->num_planes || !vb->planes[plane_no].mem_priv)
vb                917 drivers/media/common/videobuf2/videobuf2-core.c 	return call_ptr_memop(vb, cookie, vb->planes[plane_no].mem_priv);
vb                921 drivers/media/common/videobuf2/videobuf2-core.c void vb2_buffer_done(struct vb2_buffer *vb, enum vb2_buffer_state state)
vb                923 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_queue *q = vb->vb2_queue;
vb                927 drivers/media/common/videobuf2/videobuf2-core.c 	if (WARN_ON(vb->state != VB2_BUF_STATE_ACTIVE))
vb                940 drivers/media/common/videobuf2/videobuf2-core.c 	vb->cnt_buf_done++;
vb                943 drivers/media/common/videobuf2/videobuf2-core.c 			vb->index, state);
vb                947 drivers/media/common/videobuf2/videobuf2-core.c 		for (plane = 0; plane < vb->num_planes; ++plane)
vb                948 drivers/media/common/videobuf2/videobuf2-core.c 			call_void_memop(vb, finish, vb->planes[plane].mem_priv);
vb                949 drivers/media/common/videobuf2/videobuf2-core.c 		vb->synced = 0;
vb                954 drivers/media/common/videobuf2/videobuf2-core.c 		vb->state = VB2_BUF_STATE_QUEUED;
vb                957 drivers/media/common/videobuf2/videobuf2-core.c 		list_add_tail(&vb->done_entry, &q->done_list);
vb                958 drivers/media/common/videobuf2/videobuf2-core.c 		vb->state = state;
vb                962 drivers/media/common/videobuf2/videobuf2-core.c 	if (state != VB2_BUF_STATE_QUEUED && vb->req_obj.req) {
vb                963 drivers/media/common/videobuf2/videobuf2-core.c 		media_request_object_unbind(&vb->req_obj);
vb                964 drivers/media/common/videobuf2/videobuf2-core.c 		media_request_object_put(&vb->req_obj);
vb                969 drivers/media/common/videobuf2/videobuf2-core.c 	trace_vb2_buf_done(q, vb);
vb                984 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb;
vb                988 drivers/media/common/videobuf2/videobuf2-core.c 	list_for_each_entry(vb, &q->done_list, done_entry)
vb                989 drivers/media/common/videobuf2/videobuf2-core.c 		vb->state = VB2_BUF_STATE_ERROR;
vb                997 drivers/media/common/videobuf2/videobuf2-core.c static int __prepare_mmap(struct vb2_buffer *vb)
vb               1001 drivers/media/common/videobuf2/videobuf2-core.c 	ret = call_bufop(vb->vb2_queue, fill_vb2_buffer,
vb               1002 drivers/media/common/videobuf2/videobuf2-core.c 			 vb, vb->planes);
vb               1003 drivers/media/common/videobuf2/videobuf2-core.c 	return ret ? ret : call_vb_qop(vb, buf_prepare, vb);
vb               1009 drivers/media/common/videobuf2/videobuf2-core.c static int __prepare_userptr(struct vb2_buffer *vb)
vb               1012 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_queue *q = vb->vb2_queue;
vb               1016 drivers/media/common/videobuf2/videobuf2-core.c 	bool reacquired = vb->planes[0].mem_priv == NULL;
vb               1018 drivers/media/common/videobuf2/videobuf2-core.c 	memset(planes, 0, sizeof(planes[0]) * vb->num_planes);
vb               1020 drivers/media/common/videobuf2/videobuf2-core.c 	ret = call_bufop(vb->vb2_queue, fill_vb2_buffer,
vb               1021 drivers/media/common/videobuf2/videobuf2-core.c 			 vb, planes);
vb               1025 drivers/media/common/videobuf2/videobuf2-core.c 	for (plane = 0; plane < vb->num_planes; ++plane) {
vb               1027 drivers/media/common/videobuf2/videobuf2-core.c 		if (vb->planes[plane].m.userptr &&
vb               1028 drivers/media/common/videobuf2/videobuf2-core.c 			vb->planes[plane].m.userptr == planes[plane].m.userptr
vb               1029 drivers/media/common/videobuf2/videobuf2-core.c 			&& vb->planes[plane].length == planes[plane].length)
vb               1036 drivers/media/common/videobuf2/videobuf2-core.c 		if (planes[plane].length < vb->planes[plane].min_length) {
vb               1039 drivers/media/common/videobuf2/videobuf2-core.c 						vb->planes[plane].min_length,
vb               1046 drivers/media/common/videobuf2/videobuf2-core.c 		if (vb->planes[plane].mem_priv) {
vb               1049 drivers/media/common/videobuf2/videobuf2-core.c 				vb->copied_timestamp = 0;
vb               1050 drivers/media/common/videobuf2/videobuf2-core.c 				call_void_vb_qop(vb, buf_cleanup, vb);
vb               1052 drivers/media/common/videobuf2/videobuf2-core.c 			call_void_memop(vb, put_userptr, vb->planes[plane].mem_priv);
vb               1055 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].mem_priv = NULL;
vb               1056 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].bytesused = 0;
vb               1057 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].length = 0;
vb               1058 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].m.userptr = 0;
vb               1059 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].data_offset = 0;
vb               1062 drivers/media/common/videobuf2/videobuf2-core.c 		mem_priv = call_ptr_memop(vb, get_userptr,
vb               1072 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].mem_priv = mem_priv;
vb               1079 drivers/media/common/videobuf2/videobuf2-core.c 	for (plane = 0; plane < vb->num_planes; ++plane) {
vb               1080 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].bytesused = planes[plane].bytesused;
vb               1081 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].length = planes[plane].length;
vb               1082 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].m.userptr = planes[plane].m.userptr;
vb               1083 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].data_offset = planes[plane].data_offset;
vb               1092 drivers/media/common/videobuf2/videobuf2-core.c 		ret = call_vb_qop(vb, buf_init, vb);
vb               1099 drivers/media/common/videobuf2/videobuf2-core.c 	ret = call_vb_qop(vb, buf_prepare, vb);
vb               1102 drivers/media/common/videobuf2/videobuf2-core.c 		call_void_vb_qop(vb, buf_cleanup, vb);
vb               1109 drivers/media/common/videobuf2/videobuf2-core.c 	for (plane = 0; plane < vb->num_planes; ++plane) {
vb               1110 drivers/media/common/videobuf2/videobuf2-core.c 		if (vb->planes[plane].mem_priv)
vb               1111 drivers/media/common/videobuf2/videobuf2-core.c 			call_void_memop(vb, put_userptr,
vb               1112 drivers/media/common/videobuf2/videobuf2-core.c 				vb->planes[plane].mem_priv);
vb               1113 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].mem_priv = NULL;
vb               1114 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].m.userptr = 0;
vb               1115 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].length = 0;
vb               1124 drivers/media/common/videobuf2/videobuf2-core.c static int __prepare_dmabuf(struct vb2_buffer *vb)
vb               1127 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_queue *q = vb->vb2_queue;
vb               1131 drivers/media/common/videobuf2/videobuf2-core.c 	bool reacquired = vb->planes[0].mem_priv == NULL;
vb               1133 drivers/media/common/videobuf2/videobuf2-core.c 	memset(planes, 0, sizeof(planes[0]) * vb->num_planes);
vb               1135 drivers/media/common/videobuf2/videobuf2-core.c 	ret = call_bufop(vb->vb2_queue, fill_vb2_buffer,
vb               1136 drivers/media/common/videobuf2/videobuf2-core.c 			 vb, planes);
vb               1140 drivers/media/common/videobuf2/videobuf2-core.c 	for (plane = 0; plane < vb->num_planes; ++plane) {
vb               1154 drivers/media/common/videobuf2/videobuf2-core.c 		if (planes[plane].length < vb->planes[plane].min_length) {
vb               1157 drivers/media/common/videobuf2/videobuf2-core.c 				vb->planes[plane].min_length);
vb               1164 drivers/media/common/videobuf2/videobuf2-core.c 		if (dbuf == vb->planes[plane].dbuf &&
vb               1165 drivers/media/common/videobuf2/videobuf2-core.c 			vb->planes[plane].length == planes[plane].length) {
vb               1174 drivers/media/common/videobuf2/videobuf2-core.c 			vb->copied_timestamp = 0;
vb               1175 drivers/media/common/videobuf2/videobuf2-core.c 			call_void_vb_qop(vb, buf_cleanup, vb);
vb               1179 drivers/media/common/videobuf2/videobuf2-core.c 		__vb2_plane_dmabuf_put(vb, &vb->planes[plane]);
vb               1180 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].bytesused = 0;
vb               1181 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].length = 0;
vb               1182 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].m.fd = 0;
vb               1183 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].data_offset = 0;
vb               1186 drivers/media/common/videobuf2/videobuf2-core.c 		mem_priv = call_ptr_memop(vb, attach_dmabuf,
vb               1196 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].dbuf = dbuf;
vb               1197 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].mem_priv = mem_priv;
vb               1205 drivers/media/common/videobuf2/videobuf2-core.c 	for (plane = 0; plane < vb->num_planes; ++plane) {
vb               1206 drivers/media/common/videobuf2/videobuf2-core.c 		if (vb->planes[plane].dbuf_mapped)
vb               1209 drivers/media/common/videobuf2/videobuf2-core.c 		ret = call_memop(vb, map_dmabuf, vb->planes[plane].mem_priv);
vb               1215 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].dbuf_mapped = 1;
vb               1222 drivers/media/common/videobuf2/videobuf2-core.c 	for (plane = 0; plane < vb->num_planes; ++plane) {
vb               1223 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].bytesused = planes[plane].bytesused;
vb               1224 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].length = planes[plane].length;
vb               1225 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].m.fd = planes[plane].m.fd;
vb               1226 drivers/media/common/videobuf2/videobuf2-core.c 		vb->planes[plane].data_offset = planes[plane].data_offset;
vb               1234 drivers/media/common/videobuf2/videobuf2-core.c 		ret = call_vb_qop(vb, buf_init, vb);
vb               1241 drivers/media/common/videobuf2/videobuf2-core.c 	ret = call_vb_qop(vb, buf_prepare, vb);
vb               1244 drivers/media/common/videobuf2/videobuf2-core.c 		call_void_vb_qop(vb, buf_cleanup, vb);
vb               1251 drivers/media/common/videobuf2/videobuf2-core.c 	__vb2_buf_dmabuf_put(vb);
vb               1259 drivers/media/common/videobuf2/videobuf2-core.c static void __enqueue_in_driver(struct vb2_buffer *vb)
vb               1261 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_queue *q = vb->vb2_queue;
vb               1263 drivers/media/common/videobuf2/videobuf2-core.c 	vb->state = VB2_BUF_STATE_ACTIVE;
vb               1266 drivers/media/common/videobuf2/videobuf2-core.c 	trace_vb2_buf_queue(q, vb);
vb               1268 drivers/media/common/videobuf2/videobuf2-core.c 	call_void_vb_qop(vb, buf_queue, vb);
vb               1271 drivers/media/common/videobuf2/videobuf2-core.c static int __buf_prepare(struct vb2_buffer *vb)
vb               1273 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_queue *q = vb->vb2_queue;
vb               1274 drivers/media/common/videobuf2/videobuf2-core.c 	enum vb2_buffer_state orig_state = vb->state;
vb               1283 drivers/media/common/videobuf2/videobuf2-core.c 	if (vb->prepared)
vb               1285 drivers/media/common/videobuf2/videobuf2-core.c 	WARN_ON(vb->synced);
vb               1288 drivers/media/common/videobuf2/videobuf2-core.c 		ret = call_vb_qop(vb, buf_out_validate, vb);
vb               1295 drivers/media/common/videobuf2/videobuf2-core.c 	vb->state = VB2_BUF_STATE_PREPARING;
vb               1299 drivers/media/common/videobuf2/videobuf2-core.c 		ret = __prepare_mmap(vb);
vb               1302 drivers/media/common/videobuf2/videobuf2-core.c 		ret = __prepare_userptr(vb);
vb               1305 drivers/media/common/videobuf2/videobuf2-core.c 		ret = __prepare_dmabuf(vb);
vb               1315 drivers/media/common/videobuf2/videobuf2-core.c 		vb->state = orig_state;
vb               1320 drivers/media/common/videobuf2/videobuf2-core.c 	for (plane = 0; plane < vb->num_planes; ++plane)
vb               1321 drivers/media/common/videobuf2/videobuf2-core.c 		call_void_memop(vb, prepare, vb->planes[plane].mem_priv);
vb               1323 drivers/media/common/videobuf2/videobuf2-core.c 	vb->synced = 1;
vb               1324 drivers/media/common/videobuf2/videobuf2-core.c 	vb->prepared = 1;
vb               1325 drivers/media/common/videobuf2/videobuf2-core.c 	vb->state = orig_state;
vb               1332 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb = container_of(obj, struct vb2_buffer, req_obj);
vb               1335 drivers/media/common/videobuf2/videobuf2-core.c 	if (WARN_ON(vb->state != VB2_BUF_STATE_IN_REQUEST))
vb               1338 drivers/media/common/videobuf2/videobuf2-core.c 	mutex_lock(vb->vb2_queue->lock);
vb               1339 drivers/media/common/videobuf2/videobuf2-core.c 	ret = __buf_prepare(vb);
vb               1340 drivers/media/common/videobuf2/videobuf2-core.c 	mutex_unlock(vb->vb2_queue->lock);
vb               1344 drivers/media/common/videobuf2/videobuf2-core.c static void __vb2_dqbuf(struct vb2_buffer *vb);
vb               1348 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb = container_of(obj, struct vb2_buffer, req_obj);
vb               1350 drivers/media/common/videobuf2/videobuf2-core.c 	mutex_lock(vb->vb2_queue->lock);
vb               1351 drivers/media/common/videobuf2/videobuf2-core.c 	__vb2_dqbuf(vb);
vb               1352 drivers/media/common/videobuf2/videobuf2-core.c 	vb->state = VB2_BUF_STATE_IN_REQUEST;
vb               1353 drivers/media/common/videobuf2/videobuf2-core.c 	mutex_unlock(vb->vb2_queue->lock);
vb               1354 drivers/media/common/videobuf2/videobuf2-core.c 	WARN_ON(!vb->req_obj.req);
vb               1362 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb = container_of(obj, struct vb2_buffer, req_obj);
vb               1364 drivers/media/common/videobuf2/videobuf2-core.c 	mutex_lock(vb->vb2_queue->lock);
vb               1365 drivers/media/common/videobuf2/videobuf2-core.c 	vb2_core_qbuf(vb->vb2_queue, vb->index, NULL, NULL);
vb               1366 drivers/media/common/videobuf2/videobuf2-core.c 	mutex_unlock(vb->vb2_queue->lock);
vb               1371 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb = container_of(obj, struct vb2_buffer, req_obj);
vb               1373 drivers/media/common/videobuf2/videobuf2-core.c 	if (vb->state == VB2_BUF_STATE_IN_REQUEST)
vb               1374 drivers/media/common/videobuf2/videobuf2-core.c 		call_void_bufop(vb->vb2_queue, init_buffer, vb);
vb               1379 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb = container_of(obj, struct vb2_buffer, req_obj);
vb               1381 drivers/media/common/videobuf2/videobuf2-core.c 	if (vb->state == VB2_BUF_STATE_IN_REQUEST) {
vb               1382 drivers/media/common/videobuf2/videobuf2-core.c 		vb->state = VB2_BUF_STATE_DEQUEUED;
vb               1383 drivers/media/common/videobuf2/videobuf2-core.c 		if (vb->request)
vb               1384 drivers/media/common/videobuf2/videobuf2-core.c 			media_request_put(vb->request);
vb               1385 drivers/media/common/videobuf2/videobuf2-core.c 		vb->request = NULL;
vb               1421 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb;
vb               1424 drivers/media/common/videobuf2/videobuf2-core.c 	vb = q->bufs[index];
vb               1425 drivers/media/common/videobuf2/videobuf2-core.c 	if (vb->state != VB2_BUF_STATE_DEQUEUED) {
vb               1427 drivers/media/common/videobuf2/videobuf2-core.c 			vb->state);
vb               1430 drivers/media/common/videobuf2/videobuf2-core.c 	if (vb->prepared) {
vb               1435 drivers/media/common/videobuf2/videobuf2-core.c 	ret = __buf_prepare(vb);
vb               1440 drivers/media/common/videobuf2/videobuf2-core.c 	call_void_bufop(q, fill_user_buffer, vb, pb);
vb               1442 drivers/media/common/videobuf2/videobuf2-core.c 	dprintk(2, "prepare of buffer %d succeeded\n", vb->index);
vb               1461 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb;
vb               1468 drivers/media/common/videobuf2/videobuf2-core.c 	list_for_each_entry(vb, &q->queued_list, queued_entry)
vb               1469 drivers/media/common/videobuf2/videobuf2-core.c 		__enqueue_in_driver(vb);
vb               1495 drivers/media/common/videobuf2/videobuf2-core.c 			vb = q->bufs[i];
vb               1496 drivers/media/common/videobuf2/videobuf2-core.c 			if (vb->state == VB2_BUF_STATE_ACTIVE)
vb               1497 drivers/media/common/videobuf2/videobuf2-core.c 				vb2_buffer_done(vb, VB2_BUF_STATE_QUEUED);
vb               1514 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb;
vb               1522 drivers/media/common/videobuf2/videobuf2-core.c 	vb = q->bufs[index];
vb               1524 drivers/media/common/videobuf2/videobuf2-core.c 	if (!req && vb->state != VB2_BUF_STATE_IN_REQUEST &&
vb               1531 drivers/media/common/videobuf2/videobuf2-core.c 	    (!req && vb->state != VB2_BUF_STATE_IN_REQUEST &&
vb               1541 drivers/media/common/videobuf2/videobuf2-core.c 		if (vb->state != VB2_BUF_STATE_DEQUEUED) {
vb               1543 drivers/media/common/videobuf2/videobuf2-core.c 				vb->index);
vb               1547 drivers/media/common/videobuf2/videobuf2-core.c 		if (q->is_output && !vb->prepared) {
vb               1548 drivers/media/common/videobuf2/videobuf2-core.c 			ret = call_vb_qop(vb, buf_out_validate, vb);
vb               1555 drivers/media/common/videobuf2/videobuf2-core.c 		media_request_object_init(&vb->req_obj);
vb               1562 drivers/media/common/videobuf2/videobuf2-core.c 						q, true, &vb->req_obj);
vb               1567 drivers/media/common/videobuf2/videobuf2-core.c 		vb->state = VB2_BUF_STATE_IN_REQUEST;
vb               1578 drivers/media/common/videobuf2/videobuf2-core.c 		vb->request = req;
vb               1582 drivers/media/common/videobuf2/videobuf2-core.c 			call_void_bufop(q, copy_timestamp, vb, pb);
vb               1583 drivers/media/common/videobuf2/videobuf2-core.c 			call_void_bufop(q, fill_user_buffer, vb, pb);
vb               1586 drivers/media/common/videobuf2/videobuf2-core.c 		dprintk(2, "qbuf of buffer %d succeeded\n", vb->index);
vb               1590 drivers/media/common/videobuf2/videobuf2-core.c 	if (vb->state != VB2_BUF_STATE_IN_REQUEST)
vb               1593 drivers/media/common/videobuf2/videobuf2-core.c 	switch (vb->state) {
vb               1596 drivers/media/common/videobuf2/videobuf2-core.c 		if (!vb->prepared) {
vb               1597 drivers/media/common/videobuf2/videobuf2-core.c 			ret = __buf_prepare(vb);
vb               1606 drivers/media/common/videobuf2/videobuf2-core.c 		dprintk(1, "invalid buffer state %d\n", vb->state);
vb               1614 drivers/media/common/videobuf2/videobuf2-core.c 	list_add_tail(&vb->queued_entry, &q->queued_list);
vb               1617 drivers/media/common/videobuf2/videobuf2-core.c 	vb->state = VB2_BUF_STATE_QUEUED;
vb               1620 drivers/media/common/videobuf2/videobuf2-core.c 		call_void_bufop(q, copy_timestamp, vb, pb);
vb               1622 drivers/media/common/videobuf2/videobuf2-core.c 	trace_vb2_qbuf(q, vb);
vb               1629 drivers/media/common/videobuf2/videobuf2-core.c 		__enqueue_in_driver(vb);
vb               1633 drivers/media/common/videobuf2/videobuf2-core.c 		call_void_bufop(q, fill_user_buffer, vb, pb);
vb               1648 drivers/media/common/videobuf2/videobuf2-core.c 	dprintk(2, "qbuf of buffer %d succeeded\n", vb->index);
vb               1740 drivers/media/common/videobuf2/videobuf2-core.c static int __vb2_get_done_vb(struct vb2_queue *q, struct vb2_buffer **vb,
vb               1758 drivers/media/common/videobuf2/videobuf2-core.c 	*vb = list_first_entry(&q->done_list, struct vb2_buffer, done_entry);
vb               1765 drivers/media/common/videobuf2/videobuf2-core.c 		ret = call_bufop(q, verify_planes_array, *vb, pb);
vb               1767 drivers/media/common/videobuf2/videobuf2-core.c 		list_del(&(*vb)->done_entry);
vb               1789 drivers/media/common/videobuf2/videobuf2-core.c static void __vb2_dqbuf(struct vb2_buffer *vb)
vb               1791 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_queue *q = vb->vb2_queue;
vb               1794 drivers/media/common/videobuf2/videobuf2-core.c 	if (vb->state == VB2_BUF_STATE_DEQUEUED)
vb               1797 drivers/media/common/videobuf2/videobuf2-core.c 	vb->state = VB2_BUF_STATE_DEQUEUED;
vb               1799 drivers/media/common/videobuf2/videobuf2-core.c 	call_void_bufop(q, init_buffer, vb);
vb               1805 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb = NULL;
vb               1808 drivers/media/common/videobuf2/videobuf2-core.c 	ret = __vb2_get_done_vb(q, &vb, pb, nonblocking);
vb               1812 drivers/media/common/videobuf2/videobuf2-core.c 	switch (vb->state) {
vb               1824 drivers/media/common/videobuf2/videobuf2-core.c 	call_void_vb_qop(vb, buf_finish, vb);
vb               1825 drivers/media/common/videobuf2/videobuf2-core.c 	vb->prepared = 0;
vb               1828 drivers/media/common/videobuf2/videobuf2-core.c 		*pindex = vb->index;
vb               1832 drivers/media/common/videobuf2/videobuf2-core.c 		call_void_bufop(q, fill_user_buffer, vb, pb);
vb               1835 drivers/media/common/videobuf2/videobuf2-core.c 	list_del(&vb->queued_entry);
vb               1838 drivers/media/common/videobuf2/videobuf2-core.c 	trace_vb2_dqbuf(q, vb);
vb               1841 drivers/media/common/videobuf2/videobuf2-core.c 	__vb2_dqbuf(vb);
vb               1843 drivers/media/common/videobuf2/videobuf2-core.c 	if (WARN_ON(vb->req_obj.req)) {
vb               1844 drivers/media/common/videobuf2/videobuf2-core.c 		media_request_object_unbind(&vb->req_obj);
vb               1845 drivers/media/common/videobuf2/videobuf2-core.c 		media_request_object_put(&vb->req_obj);
vb               1847 drivers/media/common/videobuf2/videobuf2-core.c 	if (vb->request)
vb               1848 drivers/media/common/videobuf2/videobuf2-core.c 		media_request_put(vb->request);
vb               1849 drivers/media/common/videobuf2/videobuf2-core.c 	vb->request = NULL;
vb               1852 drivers/media/common/videobuf2/videobuf2-core.c 			vb->index, vb->state);
vb               1922 drivers/media/common/videobuf2/videobuf2-core.c 		struct vb2_buffer *vb = q->bufs[i];
vb               1923 drivers/media/common/videobuf2/videobuf2-core.c 		struct media_request *req = vb->req_obj.req;
vb               1940 drivers/media/common/videobuf2/videobuf2-core.c 				call_void_vb_qop(vb, buf_request_complete, vb);
vb               1943 drivers/media/common/videobuf2/videobuf2-core.c 		if (vb->synced) {
vb               1946 drivers/media/common/videobuf2/videobuf2-core.c 			for (plane = 0; plane < vb->num_planes; ++plane)
vb               1947 drivers/media/common/videobuf2/videobuf2-core.c 				call_void_memop(vb, finish,
vb               1948 drivers/media/common/videobuf2/videobuf2-core.c 						vb->planes[plane].mem_priv);
vb               1949 drivers/media/common/videobuf2/videobuf2-core.c 			vb->synced = 0;
vb               1952 drivers/media/common/videobuf2/videobuf2-core.c 		if (vb->prepared) {
vb               1953 drivers/media/common/videobuf2/videobuf2-core.c 			call_void_vb_qop(vb, buf_finish, vb);
vb               1954 drivers/media/common/videobuf2/videobuf2-core.c 			vb->prepared = 0;
vb               1956 drivers/media/common/videobuf2/videobuf2-core.c 		__vb2_dqbuf(vb);
vb               1958 drivers/media/common/videobuf2/videobuf2-core.c 		if (vb->req_obj.req) {
vb               1959 drivers/media/common/videobuf2/videobuf2-core.c 			media_request_object_unbind(&vb->req_obj);
vb               1960 drivers/media/common/videobuf2/videobuf2-core.c 			media_request_object_put(&vb->req_obj);
vb               1962 drivers/media/common/videobuf2/videobuf2-core.c 		if (vb->request)
vb               1963 drivers/media/common/videobuf2/videobuf2-core.c 			media_request_put(vb->request);
vb               1964 drivers/media/common/videobuf2/videobuf2-core.c 		vb->request = NULL;
vb               1965 drivers/media/common/videobuf2/videobuf2-core.c 		vb->copied_timestamp = 0;
vb               2053 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb;
vb               2062 drivers/media/common/videobuf2/videobuf2-core.c 		vb = q->bufs[buffer];
vb               2064 drivers/media/common/videobuf2/videobuf2-core.c 		for (plane = 0; plane < vb->num_planes; ++plane) {
vb               2065 drivers/media/common/videobuf2/videobuf2-core.c 			if (vb->planes[plane].m.offset == off) {
vb               2079 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb = NULL;
vb               2109 drivers/media/common/videobuf2/videobuf2-core.c 	vb = q->bufs[index];
vb               2111 drivers/media/common/videobuf2/videobuf2-core.c 	if (plane >= vb->num_planes) {
vb               2121 drivers/media/common/videobuf2/videobuf2-core.c 	vb_plane = &vb->planes[plane];
vb               2123 drivers/media/common/videobuf2/videobuf2-core.c 	dbuf = call_ptr_memop(vb, get_dmabuf, vb_plane->mem_priv,
vb               2150 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb;
vb               2194 drivers/media/common/videobuf2/videobuf2-core.c 	vb = q->bufs[buffer];
vb               2201 drivers/media/common/videobuf2/videobuf2-core.c 	length = PAGE_ALIGN(vb->planes[plane].length);
vb               2216 drivers/media/common/videobuf2/videobuf2-core.c 	ret = call_memop(vb, mmap, vb->planes[plane].mem_priv, vma);
vb               2236 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb;
vb               2253 drivers/media/common/videobuf2/videobuf2-core.c 	vb = q->bufs[buffer];
vb               2255 drivers/media/common/videobuf2/videobuf2-core.c 	vaddr = vb2_plane_vaddr(vb, plane);
vb               2314 drivers/media/common/videobuf2/videobuf2-core.c 	struct vb2_buffer *vb = NULL;
vb               2382 drivers/media/common/videobuf2/videobuf2-core.c 		vb = list_first_entry(&q->done_list, struct vb2_buffer,
vb               2386 drivers/media/common/videobuf2/videobuf2-core.c 	if (vb && (vb->state == VB2_BUF_STATE_DONE
vb               2387 drivers/media/common/videobuf2/videobuf2-core.c 			|| vb->state == VB2_BUF_STATE_ERROR)) {
vb               2794 drivers/media/common/videobuf2/videobuf2-core.c 		struct vb2_buffer *vb;
vb               2800 drivers/media/common/videobuf2/videobuf2-core.c 			vb = q->bufs[index++];
vb               2809 drivers/media/common/videobuf2/videobuf2-core.c 				vb = q->bufs[index];
vb               2815 drivers/media/common/videobuf2/videobuf2-core.c 		if (vb->state != VB2_BUF_STATE_ERROR)
vb               2816 drivers/media/common/videobuf2/videobuf2-core.c 			if (threadio->fnc(vb, threadio->priv))
vb               2820 drivers/media/common/videobuf2/videobuf2-core.c 			vb->timestamp = ktime_get_ns();
vb               2822 drivers/media/common/videobuf2/videobuf2-core.c 			ret = vb2_core_qbuf(q, vb->index, NULL, NULL);
vb                 26 drivers/media/common/videobuf2/videobuf2-dvb.c static int dvb_fnc(struct vb2_buffer *vb, void *priv)
vb                 30 drivers/media/common/videobuf2/videobuf2-dvb.c 	dvb_dmx_swfilter(&dvb->demux, vb2_plane_vaddr(vb, 0),
vb                 31 drivers/media/common/videobuf2/videobuf2-dvb.c 				      vb2_get_plane_payload(vb, 0));
vb                 59 drivers/media/common/videobuf2/videobuf2-v4l2.c static int __verify_planes_array(struct vb2_buffer *vb, const struct v4l2_buffer *b)
vb                 70 drivers/media/common/videobuf2/videobuf2-v4l2.c 	if (b->length < vb->num_planes || b->length > VB2_MAX_PLANES) {
vb                 72 drivers/media/common/videobuf2/videobuf2-v4l2.c 			vb->num_planes, b->length);
vb                 79 drivers/media/common/videobuf2/videobuf2-v4l2.c static int __verify_planes_array_core(struct vb2_buffer *vb, const void *pb)
vb                 81 drivers/media/common/videobuf2/videobuf2-v4l2.c 	return __verify_planes_array(vb, pb);
vb                 88 drivers/media/common/videobuf2/videobuf2-v4l2.c static int __verify_length(struct vb2_buffer *vb, const struct v4l2_buffer *b)
vb                 98 drivers/media/common/videobuf2/videobuf2-v4l2.c 		for (plane = 0; plane < vb->num_planes; ++plane) {
vb                102 drivers/media/common/videobuf2/videobuf2-v4l2.c 				: vb->planes[plane].length;
vb                115 drivers/media/common/videobuf2/videobuf2-v4l2.c 			? b->length : vb->planes[0].length;
vb                127 drivers/media/common/videobuf2/videobuf2-v4l2.c static void __init_vb2_v4l2_buffer(struct vb2_buffer *vb)
vb                129 drivers/media/common/videobuf2/videobuf2-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                134 drivers/media/common/videobuf2/videobuf2-v4l2.c static void __copy_timestamp(struct vb2_buffer *vb, const void *pb)
vb                137 drivers/media/common/videobuf2/videobuf2-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                138 drivers/media/common/videobuf2/videobuf2-v4l2.c 	struct vb2_queue *q = vb->vb2_queue;
vb                146 drivers/media/common/videobuf2/videobuf2-v4l2.c 			vb->timestamp = v4l2_timeval_to_ns(&b->timestamp);
vb                153 drivers/media/common/videobuf2/videobuf2-v4l2.c static void vb2_warn_zero_bytesused(struct vb2_buffer *vb)
vb                163 drivers/media/common/videobuf2/videobuf2-v4l2.c 	if (vb->vb2_queue->allow_zero_bytesused)
vb                169 drivers/media/common/videobuf2/videobuf2-v4l2.c static int vb2_fill_vb2_v4l2_buffer(struct vb2_buffer *vb, struct v4l2_buffer *b)
vb                171 drivers/media/common/videobuf2/videobuf2-v4l2.c 	struct vb2_queue *q = vb->vb2_queue;
vb                172 drivers/media/common/videobuf2/videobuf2-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                177 drivers/media/common/videobuf2/videobuf2-v4l2.c 	ret = __verify_length(vb, b);
vb                201 drivers/media/common/videobuf2/videobuf2-v4l2.c 			for (plane = 0; plane < vb->num_planes; ++plane) {
vb                209 drivers/media/common/videobuf2/videobuf2-v4l2.c 			for (plane = 0; plane < vb->num_planes; ++plane) {
vb                217 drivers/media/common/videobuf2/videobuf2-v4l2.c 			for (plane = 0; plane < vb->num_planes; ++plane) {
vb                219 drivers/media/common/videobuf2/videobuf2-v4l2.c 					vb->planes[plane].m.offset;
vb                221 drivers/media/common/videobuf2/videobuf2-v4l2.c 					vb->planes[plane].length;
vb                244 drivers/media/common/videobuf2/videobuf2-v4l2.c 			for (plane = 0; plane < vb->num_planes; ++plane) {
vb                249 drivers/media/common/videobuf2/videobuf2-v4l2.c 					vb2_warn_zero_bytesused(vb);
vb                251 drivers/media/common/videobuf2/videobuf2-v4l2.c 				if (vb->vb2_queue->allow_zero_bytesused)
vb                284 drivers/media/common/videobuf2/videobuf2-v4l2.c 			planes[0].m.offset = vb->planes[0].m.offset;
vb                285 drivers/media/common/videobuf2/videobuf2-v4l2.c 			planes[0].length = vb->planes[0].length;
vb                292 drivers/media/common/videobuf2/videobuf2-v4l2.c 				vb2_warn_zero_bytesused(vb);
vb                294 drivers/media/common/videobuf2/videobuf2-v4l2.c 			if (vb->vb2_queue->allow_zero_bytesused)
vb                306 drivers/media/common/videobuf2/videobuf2-v4l2.c 	if (!vb->vb2_queue->copy_timestamp || !V4L2_TYPE_IS_OUTPUT(b->type)) {
vb                341 drivers/media/common/videobuf2/videobuf2-v4l2.c 	struct vb2_buffer *vb;
vb                365 drivers/media/common/videobuf2/videobuf2-v4l2.c 	vb = q->bufs[b->index];
vb                366 drivers/media/common/videobuf2/videobuf2-v4l2.c 	vbuf = to_vb2_v4l2_buffer(vb);
vb                367 drivers/media/common/videobuf2/videobuf2-v4l2.c 	ret = __verify_planes_array(vb, b);
vb                372 drivers/media/common/videobuf2/videobuf2-v4l2.c 	    vb->state != VB2_BUF_STATE_DEQUEUED) {
vb                377 drivers/media/common/videobuf2/videobuf2-v4l2.c 	if (!vb->prepared) {
vb                380 drivers/media/common/videobuf2/videobuf2-v4l2.c 		       sizeof(vbuf->planes[0]) * vb->num_planes);
vb                381 drivers/media/common/videobuf2/videobuf2-v4l2.c 		ret = vb2_fill_vb2_v4l2_buffer(vb, b);
vb                464 drivers/media/common/videobuf2/videobuf2-v4l2.c static void __fill_v4l2_buffer(struct vb2_buffer *vb, void *pb)
vb                467 drivers/media/common/videobuf2/videobuf2-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                468 drivers/media/common/videobuf2/videobuf2-v4l2.c 	struct vb2_queue *q = vb->vb2_queue;
vb                472 drivers/media/common/videobuf2/videobuf2-v4l2.c 	b->index = vb->index;
vb                473 drivers/media/common/videobuf2/videobuf2-v4l2.c 	b->type = vb->type;
vb                474 drivers/media/common/videobuf2/videobuf2-v4l2.c 	b->memory = vb->memory;
vb                479 drivers/media/common/videobuf2/videobuf2-v4l2.c 	b->timestamp = ns_to_timeval(vb->timestamp);
vb                490 drivers/media/common/videobuf2/videobuf2-v4l2.c 		b->length = vb->num_planes;
vb                491 drivers/media/common/videobuf2/videobuf2-v4l2.c 		for (plane = 0; plane < vb->num_planes; ++plane) {
vb                493 drivers/media/common/videobuf2/videobuf2-v4l2.c 			struct vb2_plane *psrc = &vb->planes[plane];
vb                511 drivers/media/common/videobuf2/videobuf2-v4l2.c 		b->length = vb->planes[0].length;
vb                512 drivers/media/common/videobuf2/videobuf2-v4l2.c 		b->bytesused = vb->planes[0].bytesused;
vb                514 drivers/media/common/videobuf2/videobuf2-v4l2.c 			b->m.offset = vb->planes[0].m.offset;
vb                516 drivers/media/common/videobuf2/videobuf2-v4l2.c 			b->m.userptr = vb->planes[0].m.userptr;
vb                518 drivers/media/common/videobuf2/videobuf2-v4l2.c 			b->m.fd = vb->planes[0].m.fd;
vb                535 drivers/media/common/videobuf2/videobuf2-v4l2.c 	switch (vb->state) {
vb                555 drivers/media/common/videobuf2/videobuf2-v4l2.c 	if ((vb->state == VB2_BUF_STATE_DEQUEUED ||
vb                556 drivers/media/common/videobuf2/videobuf2-v4l2.c 	     vb->state == VB2_BUF_STATE_IN_REQUEST) &&
vb                557 drivers/media/common/videobuf2/videobuf2-v4l2.c 	    vb->synced && vb->prepared)
vb                560 drivers/media/common/videobuf2/videobuf2-v4l2.c 	if (vb2_buffer_in_use(q, vb))
vb                573 drivers/media/common/videobuf2/videobuf2-v4l2.c static int __fill_vb2_buffer(struct vb2_buffer *vb, struct vb2_plane *planes)
vb                575 drivers/media/common/videobuf2/videobuf2-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                578 drivers/media/common/videobuf2/videobuf2-v4l2.c 	if (!vb->vb2_queue->copy_timestamp)
vb                579 drivers/media/common/videobuf2/videobuf2-v4l2.c 		vb->timestamp = 0;
vb                581 drivers/media/common/videobuf2/videobuf2-v4l2.c 	for (plane = 0; plane < vb->num_planes; ++plane) {
vb                582 drivers/media/common/videobuf2/videobuf2-v4l2.c 		if (vb->vb2_queue->memory != VB2_MEMORY_MMAP) {
vb                628 drivers/media/common/videobuf2/videobuf2-v4l2.c 	struct vb2_buffer *vb;
vb                640 drivers/media/common/videobuf2/videobuf2-v4l2.c 	vb = q->bufs[b->index];
vb                641 drivers/media/common/videobuf2/videobuf2-v4l2.c 	ret = __verify_planes_array(vb, b);
vb                 54 drivers/media/dvb-core/dvb_vb2.c static int _buffer_prepare(struct vb2_buffer *vb)
vb                 56 drivers/media/dvb-core/dvb_vb2.c 	struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                 59 drivers/media/dvb-core/dvb_vb2.c 	if (vb2_plane_size(vb, 0) < size) {
vb                 61 drivers/media/dvb-core/dvb_vb2.c 			ctx->name, vb2_plane_size(vb, 0), size);
vb                 65 drivers/media/dvb-core/dvb_vb2.c 	vb2_set_plane_payload(vb, 0, size);
vb                 71 drivers/media/dvb-core/dvb_vb2.c static void _buffer_queue(struct vb2_buffer *vb)
vb                 73 drivers/media/dvb-core/dvb_vb2.c 	struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                 74 drivers/media/dvb-core/dvb_vb2.c 	struct dvb_buffer *buf = container_of(vb, struct dvb_buffer, vb);
vb                104 drivers/media/dvb-core/dvb_vb2.c 		vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR);
vb                137 drivers/media/dvb-core/dvb_vb2.c static void _fill_dmx_buffer(struct vb2_buffer *vb, void *pb)
vb                139 drivers/media/dvb-core/dvb_vb2.c 	struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                142 drivers/media/dvb-core/dvb_vb2.c 	b->index = vb->index;
vb                143 drivers/media/dvb-core/dvb_vb2.c 	b->length = vb->planes[0].length;
vb                144 drivers/media/dvb-core/dvb_vb2.c 	b->bytesused = vb->planes[0].bytesused;
vb                145 drivers/media/dvb-core/dvb_vb2.c 	b->offset = vb->planes[0].m.offset;
vb                149 drivers/media/dvb-core/dvb_vb2.c static int _fill_vb2_buffer(struct vb2_buffer *vb, struct vb2_plane *planes)
vb                151 drivers/media/dvb-core/dvb_vb2.c 	struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                288 drivers/media/dvb-core/dvb_vb2.c 			ctx->remain = vb2_plane_size(&ctx->buf->vb, 0);
vb                293 drivers/media/dvb-core/dvb_vb2.c 			vb2_buffer_done(&ctx->buf->vb, VB2_BUF_STATE_ERROR);
vb                301 drivers/media/dvb-core/dvb_vb2.c 		vbuf = vb2_plane_vaddr(&ctx->buf->vb, 0);
vb                310 drivers/media/dvb-core/dvb_vb2.c 			vb2_buffer_done(&ctx->buf->vb, VB2_BUF_STATE_DONE);
vb                317 drivers/media/dvb-core/dvb_vb2.c 		vb2_set_plane_payload(&ctx->buf->vb, 0, ll);
vb                318 drivers/media/dvb-core/dvb_vb2.c 		vb2_buffer_done(&ctx->buf->vb, VB2_BUF_STATE_DONE);
vb                 97 drivers/media/dvb-frontends/rtl2832_sdr.c 	struct vb2_v4l2_buffer vb;
vb                254 drivers/media/dvb-frontends/rtl2832_sdr.c 		ptr = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0);
vb                257 drivers/media/dvb-frontends/rtl2832_sdr.c 		vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, len);
vb                258 drivers/media/dvb-frontends/rtl2832_sdr.c 		fbuf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                259 drivers/media/dvb-frontends/rtl2832_sdr.c 		fbuf->vb.sequence = dev->sequence++;
vb                260 drivers/media/dvb-frontends/rtl2832_sdr.c 		vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                413 drivers/media/dvb-frontends/rtl2832_sdr.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                451 drivers/media/dvb-frontends/rtl2832_sdr.c static int rtl2832_sdr_buf_prepare(struct vb2_buffer *vb)
vb                453 drivers/media/dvb-frontends/rtl2832_sdr.c 	struct rtl2832_sdr_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                462 drivers/media/dvb-frontends/rtl2832_sdr.c static void rtl2832_sdr_buf_queue(struct vb2_buffer *vb)
vb                464 drivers/media/dvb-frontends/rtl2832_sdr.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                465 drivers/media/dvb-frontends/rtl2832_sdr.c 	struct rtl2832_sdr_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                467 drivers/media/dvb-frontends/rtl2832_sdr.c 			container_of(vbuf, struct rtl2832_sdr_frame_buf, vb);
vb                472 drivers/media/dvb-frontends/rtl2832_sdr.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                462 drivers/media/i2c/mt9v111.c 	unsigned int vb;
vb                492 drivers/media/i2c/mt9v111.c 	best_fps = vb = hb = 0;
vb                498 drivers/media/i2c/mt9v111.c 	for (vb = MT9V111_CORE_R06_MIN_VBLANK;
vb                499 drivers/media/i2c/mt9v111.c 	     vb < MT9V111_CORE_R06_MAX_VBLANK; vb++) {
vb                503 drivers/media/i2c/mt9v111.c 					       (frm_cols + vb);
vb                524 drivers/media/i2c/mt9v111.c 	ret = v4l2_ctrl_s_ctrl_int64(mt9v111->vblank, vb);
vb                 40 drivers/media/i2c/video-i2c.c 	struct vb2_v4l2_buffer vb;
vb                416 drivers/media/i2c/video-i2c.c static int buffer_prepare(struct vb2_buffer *vb)
vb                418 drivers/media/i2c/video-i2c.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                419 drivers/media/i2c/video-i2c.c 	struct video_i2c_data *data = vb2_get_drv_priv(vb->vb2_queue);
vb                422 drivers/media/i2c/video-i2c.c 	if (vb2_plane_size(vb, 0) < size)
vb                426 drivers/media/i2c/video-i2c.c 	vb2_set_plane_payload(vb, 0, size);
vb                431 drivers/media/i2c/video-i2c.c static void buffer_queue(struct vb2_buffer *vb)
vb                433 drivers/media/i2c/video-i2c.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                434 drivers/media/i2c/video-i2c.c 	struct video_i2c_data *data = vb2_get_drv_priv(vb->vb2_queue);
vb                436 drivers/media/i2c/video-i2c.c 			container_of(vbuf, struct video_i2c_buffer, vb);
vb                469 drivers/media/i2c/video-i2c.c 			struct vb2_buffer *vb2_buf = &vid_cap_buf->vb.vb2_buf;
vb                475 drivers/media/i2c/video-i2c.c 			vid_cap_buf->vb.sequence = data->sequence++;
vb                500 drivers/media/i2c/video-i2c.c 		vb2_buffer_done(&buf->vb.vb2_buf, state);
vb               1506 drivers/media/pci/bt8xx/bttv-driver.c 		new->vb.state = VIDEOBUF_DONE;
vb               1515 drivers/media/pci/bt8xx/bttv-driver.c 			old, old->vb.state);
vb               1546 drivers/media/pci/bt8xx/bttv-driver.c 		if (width*height > buf->vb.bsize)
vb               1548 drivers/media/pci/bt8xx/bttv-driver.c 		buf->vb.size = buf->vb.bsize;
vb               1587 drivers/media/pci/bt8xx/bttv-driver.c 		buf->vb.size = (width * height * fmt->depth) >> 3;
vb               1588 drivers/media/pci/bt8xx/bttv-driver.c 		if (0 != buf->vb.baddr  &&  buf->vb.bsize < buf->vb.size)
vb               1593 drivers/media/pci/bt8xx/bttv-driver.c 	if (buf->vb.width != width || buf->vb.height != height ||
vb               1594 drivers/media/pci/bt8xx/bttv-driver.c 	    buf->vb.field != field ||
vb               1600 drivers/media/pci/bt8xx/bttv-driver.c 		buf->vb.width  = width;
vb               1601 drivers/media/pci/bt8xx/bttv-driver.c 		buf->vb.height = height;
vb               1602 drivers/media/pci/bt8xx/bttv-driver.c 		buf->vb.field  = field;
vb               1610 drivers/media/pci/bt8xx/bttv-driver.c 	if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
vb               1612 drivers/media/pci/bt8xx/bttv-driver.c 		if (0 != (rc = videobuf_iolock(q,&buf->vb,&btv->fbuf)))
vb               1620 drivers/media/pci/bt8xx/bttv-driver.c 	buf->vb.state = VIDEOBUF_PREPARED;
vb               1642 drivers/media/pci/bt8xx/bttv-driver.c buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb,
vb               1645 drivers/media/pci/bt8xx/bttv-driver.c 	struct bttv_buffer *buf = container_of(vb,struct bttv_buffer,vb);
vb               1653 drivers/media/pci/bt8xx/bttv-driver.c buffer_queue(struct videobuf_queue *q, struct videobuf_buffer *vb)
vb               1655 drivers/media/pci/bt8xx/bttv-driver.c 	struct bttv_buffer *buf = container_of(vb,struct bttv_buffer,vb);
vb               1659 drivers/media/pci/bt8xx/bttv-driver.c 	buf->vb.state = VIDEOBUF_QUEUED;
vb               1660 drivers/media/pci/bt8xx/bttv-driver.c 	list_add_tail(&buf->vb.queue,&btv->capture);
vb               1667 drivers/media/pci/bt8xx/bttv-driver.c static void buffer_release(struct videobuf_queue *q, struct videobuf_buffer *vb)
vb               1669 drivers/media/pci/bt8xx/bttv-driver.c 	struct bttv_buffer *buf = container_of(vb,struct bttv_buffer,vb);
vb               2928 drivers/media/pci/bt8xx/bttv-driver.c 		buf = list_entry(fh->cap.stream.next,struct bttv_buffer,vb.stream);
vb               2951 drivers/media/pci/bt8xx/bttv-driver.c 	poll_wait(file, &buf->vb.done, wait);
vb               2952 drivers/media/pci/bt8xx/bttv-driver.c 	if (buf->vb.state == VIDEOBUF_DONE ||
vb               2953 drivers/media/pci/bt8xx/bttv-driver.c 	    buf->vb.state == VIDEOBUF_ERROR)
vb               3473 drivers/media/pci/bt8xx/bttv-driver.c 		item = list_entry(btv->capture.next, struct bttv_buffer, vb.queue);
vb               3474 drivers/media/pci/bt8xx/bttv-driver.c 		if (V4L2_FIELD_HAS_TOP(item->vb.field))
vb               3476 drivers/media/pci/bt8xx/bttv-driver.c 		if (V4L2_FIELD_HAS_BOTTOM(item->vb.field))
vb               3480 drivers/media/pci/bt8xx/bttv-driver.c 		if (!V4L2_FIELD_HAS_BOTH(item->vb.field) &&
vb               3481 drivers/media/pci/bt8xx/bttv-driver.c 		    (item->vb.queue.next != &btv->capture)) {
vb               3482 drivers/media/pci/bt8xx/bttv-driver.c 			item = list_entry(item->vb.queue.next, struct bttv_buffer, vb.queue);
vb               3510 drivers/media/pci/bt8xx/bttv-driver.c 			if (!V4L2_FIELD_HAS_BOTH(item->vb.field)) {
vb               3512 drivers/media/pci/bt8xx/bttv-driver.c 				    V4L2_FIELD_BOTTOM == item->vb.field) {
vb               3523 drivers/media/pci/bt8xx/bttv-driver.c 		if (V4L2_FIELD_HAS_BOTH(btv->screen->vb.field)) {
vb               3529 drivers/media/pci/bt8xx/bttv-driver.c 			if (V4L2_FIELD_TOP == btv->screen->vb.field &&
vb               3533 drivers/media/pci/bt8xx/bttv-driver.c 			if (V4L2_FIELD_BOTTOM == btv->screen->vb.field &&
vb               3557 drivers/media/pci/bt8xx/bttv-driver.c 			wakeup->top->vb.ts = ts;
vb               3558 drivers/media/pci/bt8xx/bttv-driver.c 			wakeup->top->vb.field_count = btv->field_count;
vb               3559 drivers/media/pci/bt8xx/bttv-driver.c 			wakeup->top->vb.state = state;
vb               3560 drivers/media/pci/bt8xx/bttv-driver.c 			wake_up(&wakeup->top->vb.done);
vb               3567 drivers/media/pci/bt8xx/bttv-driver.c 			wakeup->top->vb.ts = ts;
vb               3568 drivers/media/pci/bt8xx/bttv-driver.c 			wakeup->top->vb.field_count = btv->field_count;
vb               3569 drivers/media/pci/bt8xx/bttv-driver.c 			wakeup->top->vb.state = state;
vb               3570 drivers/media/pci/bt8xx/bttv-driver.c 			wake_up(&wakeup->top->vb.done);
vb               3576 drivers/media/pci/bt8xx/bttv-driver.c 			wakeup->bottom->vb.ts = ts;
vb               3577 drivers/media/pci/bt8xx/bttv-driver.c 			wakeup->bottom->vb.field_count = btv->field_count;
vb               3578 drivers/media/pci/bt8xx/bttv-driver.c 			wakeup->bottom->vb.state = state;
vb               3579 drivers/media/pci/bt8xx/bttv-driver.c 			wake_up(&wakeup->bottom->vb.done);
vb               3591 drivers/media/pci/bt8xx/bttv-driver.c 	wakeup->vb.ts = ktime_get_ns();
vb               3592 drivers/media/pci/bt8xx/bttv-driver.c 	wakeup->vb.field_count = btv->field_count;
vb               3593 drivers/media/pci/bt8xx/bttv-driver.c 	wakeup->vb.state = state;
vb               3594 drivers/media/pci/bt8xx/bttv-driver.c 	wake_up(&wakeup->vb.done);
vb               3632 drivers/media/pci/bt8xx/bttv-driver.c 		item = list_entry(btv->capture.next, struct bttv_buffer, vb.queue);
vb               3633 drivers/media/pci/bt8xx/bttv-driver.c 		list_del(&item->vb.queue);
vb               3634 drivers/media/pci/bt8xx/bttv-driver.c 		item->vb.state = VIDEOBUF_ERROR;
vb               3635 drivers/media/pci/bt8xx/bttv-driver.c 		wake_up(&item->vb.done);
vb               3638 drivers/media/pci/bt8xx/bttv-driver.c 		item = list_entry(btv->vcapture.next, struct bttv_buffer, vb.queue);
vb               3639 drivers/media/pci/bt8xx/bttv-driver.c 		list_del(&item->vb.queue);
vb               3640 drivers/media/pci/bt8xx/bttv-driver.c 		item->vb.state = VIDEOBUF_ERROR;
vb               3641 drivers/media/pci/bt8xx/bttv-driver.c 		wake_up(&item->vb.done);
vb               3661 drivers/media/pci/bt8xx/bttv-driver.c 	wakeup->vb.ts = ktime_get_ns();
vb               3662 drivers/media/pci/bt8xx/bttv-driver.c 	wakeup->vb.field_count = btv->field_count;
vb               3663 drivers/media/pci/bt8xx/bttv-driver.c 	wakeup->vb.state = VIDEOBUF_DONE;
vb               3664 drivers/media/pci/bt8xx/bttv-driver.c 	wake_up(&wakeup->vb.done);
vb               3726 drivers/media/pci/bt8xx/bttv-driver.c 		new = list_entry(btv->vcapture.next, struct bttv_buffer, vb.queue);
vb                573 drivers/media/pci/bt8xx/bttv-risc.c 	struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb);
vb                576 drivers/media/pci/bt8xx/bttv-risc.c 	videobuf_waiton(q, &buf->vb, 0, 0);
vb                581 drivers/media/pci/bt8xx/bttv-risc.c 	buf->vb.state = VIDEOBUF_NEEDS_INIT;
vb                601 drivers/media/pci/bt8xx/bttv-risc.c 		vbi->vb.state = VIDEOBUF_ACTIVE;
vb                602 drivers/media/pci/bt8xx/bttv-risc.c 		list_del(&vbi->vb.queue);
vb                643 drivers/media/pci/bt8xx/bttv-risc.c 			set->top->vb.state    = VIDEOBUF_ACTIVE;
vb                644 drivers/media/pci/bt8xx/bttv-risc.c 			if (set->top->vb.queue.next)
vb                645 drivers/media/pci/bt8xx/bttv-risc.c 				list_del(&set->top->vb.queue);
vb                647 drivers/media/pci/bt8xx/bttv-risc.c 			set->top->vb.state    = VIDEOBUF_ACTIVE;
vb                648 drivers/media/pci/bt8xx/bttv-risc.c 			set->bottom->vb.state = VIDEOBUF_ACTIVE;
vb                649 drivers/media/pci/bt8xx/bttv-risc.c 			if (set->top->vb.queue.next)
vb                650 drivers/media/pci/bt8xx/bttv-risc.c 				list_del(&set->top->vb.queue);
vb                651 drivers/media/pci/bt8xx/bttv-risc.c 			if (set->bottom->vb.queue.next)
vb                652 drivers/media/pci/bt8xx/bttv-risc.c 				list_del(&set->bottom->vb.queue);
vb                665 drivers/media/pci/bt8xx/bttv-risc.c 		set->top->vb.state  = VIDEOBUF_ACTIVE;
vb                666 drivers/media/pci/bt8xx/bttv-risc.c 		if (set->top->vb.queue.next)
vb                667 drivers/media/pci/bt8xx/bttv-risc.c 			list_del(&set->top->vb.queue);
vb                676 drivers/media/pci/bt8xx/bttv-risc.c 		set->bottom->vb.state = VIDEOBUF_ACTIVE;
vb                677 drivers/media/pci/bt8xx/bttv-risc.c 		if (set->bottom->vb.queue.next)
vb                678 drivers/media/pci/bt8xx/bttv-risc.c 			list_del(&set->bottom->vb.queue);
vb                700 drivers/media/pci/bt8xx/bttv-risc.c 	struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb);
vb                703 drivers/media/pci/bt8xx/bttv-risc.c 		btv->c.nr, v4l2_field_names[buf->vb.field],
vb                704 drivers/media/pci/bt8xx/bttv-risc.c 		buf->fmt->fourcc, buf->vb.width, buf->vb.height);
vb                708 drivers/media/pci/bt8xx/bttv-risc.c 		int bpl = (buf->fmt->depth >> 3) * buf->vb.width;
vb                709 drivers/media/pci/bt8xx/bttv-risc.c 		int bpf = bpl * (buf->vb.height >> 1);
vb                711 drivers/media/pci/bt8xx/bttv-risc.c 		bttv_calc_geo(btv,&buf->geo,buf->vb.width,buf->vb.height,
vb                712 drivers/media/pci/bt8xx/bttv-risc.c 			      V4L2_FIELD_HAS_BOTH(buf->vb.field),
vb                715 drivers/media/pci/bt8xx/bttv-risc.c 		switch (buf->vb.field) {
vb                720 drivers/media/pci/bt8xx/bttv-risc.c 					 buf->vb.height);
vb                724 drivers/media/pci/bt8xx/bttv-risc.c 					 0,bpl,0,0,buf->vb.height);
vb                728 drivers/media/pci/bt8xx/bttv-risc.c 					 0,bpl,bpl,0,buf->vb.height >> 1);
vb                730 drivers/media/pci/bt8xx/bttv-risc.c 					 bpl,bpl,bpl,0,buf->vb.height >> 1);
vb                734 drivers/media/pci/bt8xx/bttv-risc.c 					 0,bpl,0,0,buf->vb.height >> 1);
vb                736 drivers/media/pci/bt8xx/bttv-risc.c 					 bpf,bpl,0,0,buf->vb.height >> 1);
vb                749 drivers/media/pci/bt8xx/bttv-risc.c 		uoffset = buf->vb.width * buf->vb.height;
vb                750 drivers/media/pci/bt8xx/bttv-risc.c 		voffset = buf->vb.width * buf->vb.height;
vb                763 drivers/media/pci/bt8xx/bttv-risc.c 		switch (buf->vb.field) {
vb                765 drivers/media/pci/bt8xx/bttv-risc.c 			bttv_calc_geo(btv,&buf->geo,buf->vb.width,
vb                766 drivers/media/pci/bt8xx/bttv-risc.c 				      buf->vb.height,/* both_fields */ 0,
vb                769 drivers/media/pci/bt8xx/bttv-risc.c 					 0,buf->vb.width,0,buf->vb.height,
vb                774 drivers/media/pci/bt8xx/bttv-risc.c 			bttv_calc_geo(btv,&buf->geo,buf->vb.width,
vb                775 drivers/media/pci/bt8xx/bttv-risc.c 				      buf->vb.height,0,
vb                778 drivers/media/pci/bt8xx/bttv-risc.c 					 0,buf->vb.width,0,buf->vb.height,
vb                783 drivers/media/pci/bt8xx/bttv-risc.c 			bttv_calc_geo(btv,&buf->geo,buf->vb.width,
vb                784 drivers/media/pci/bt8xx/bttv-risc.c 				      buf->vb.height,1,
vb                786 drivers/media/pci/bt8xx/bttv-risc.c 			lines    = buf->vb.height >> 1;
vb                787 drivers/media/pci/bt8xx/bttv-risc.c 			ypadding = buf->vb.width;
vb                788 drivers/media/pci/bt8xx/bttv-risc.c 			cpadding = buf->vb.width >> buf->fmt->hshift;
vb                791 drivers/media/pci/bt8xx/bttv-risc.c 					 0,buf->vb.width,ypadding,lines,
vb                798 drivers/media/pci/bt8xx/bttv-risc.c 					 ypadding,buf->vb.width,ypadding,lines,
vb                806 drivers/media/pci/bt8xx/bttv-risc.c 			bttv_calc_geo(btv,&buf->geo,buf->vb.width,
vb                807 drivers/media/pci/bt8xx/bttv-risc.c 				      buf->vb.height,1,
vb                809 drivers/media/pci/bt8xx/bttv-risc.c 			lines    = buf->vb.height >> 1;
vb                810 drivers/media/pci/bt8xx/bttv-risc.c 			ypadding = buf->vb.width;
vb                811 drivers/media/pci/bt8xx/bttv-risc.c 			cpadding = buf->vb.width >> buf->fmt->hshift;
vb                814 drivers/media/pci/bt8xx/bttv-risc.c 					 0,buf->vb.width,0,lines,
vb                822 drivers/media/pci/bt8xx/bttv-risc.c 					 lines * ypadding,buf->vb.width,0,lines,
vb                837 drivers/media/pci/bt8xx/bttv-risc.c 		buf->vb.field = V4L2_FIELD_SEQ_TB;
vb                844 drivers/media/pci/bt8xx/bttv-risc.c 				 buf->vb.size/2 , RAW_BPL, 0, 0, RAW_LINES);
vb                864 drivers/media/pci/bt8xx/bttv-risc.c 		btv->c.nr, v4l2_field_names[buf->vb.field],
vb                891 drivers/media/pci/bt8xx/bttv-risc.c 	buf->vb.field = ov->field;
vb                 92 drivers/media/pci/bt8xx/bttv-vbi.c 			      struct videobuf_buffer *vb,
vb                 97 drivers/media/pci/bt8xx/bttv-vbi.c 	struct bttv_buffer *buf = container_of(vb,struct bttv_buffer,vb);
vb                103 drivers/media/pci/bt8xx/bttv-vbi.c 	buf->vb.size = IMAGE_SIZE(&fh->vbi_fmt.fmt);
vb                104 drivers/media/pci/bt8xx/bttv-vbi.c 	if (0 != buf->vb.baddr  &&  buf->vb.bsize < buf->vb.size)
vb                139 drivers/media/pci/bt8xx/bttv-vbi.c 	if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
vb                141 drivers/media/pci/bt8xx/bttv-vbi.c 		if (0 != (rc = videobuf_iolock(q, &buf->vb, NULL)))
vb                147 drivers/media/pci/bt8xx/bttv-vbi.c 		struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb);
vb                186 drivers/media/pci/bt8xx/bttv-vbi.c 	buf->vb.state = VIDEOBUF_PREPARED;
vb                187 drivers/media/pci/bt8xx/bttv-vbi.c 	buf->vb.field = field;
vb                189 drivers/media/pci/bt8xx/bttv-vbi.c 		vb, &buf->top, &buf->bottom,
vb                190 drivers/media/pci/bt8xx/bttv-vbi.c 		v4l2_field_names[buf->vb.field]);
vb                199 drivers/media/pci/bt8xx/bttv-vbi.c vbi_buffer_queue(struct videobuf_queue *q, struct videobuf_buffer *vb)
vb                203 drivers/media/pci/bt8xx/bttv-vbi.c 	struct bttv_buffer *buf = container_of(vb,struct bttv_buffer,vb);
vb                205 drivers/media/pci/bt8xx/bttv-vbi.c 	dprintk("queue %p\n",vb);
vb                206 drivers/media/pci/bt8xx/bttv-vbi.c 	buf->vb.state = VIDEOBUF_QUEUED;
vb                207 drivers/media/pci/bt8xx/bttv-vbi.c 	list_add_tail(&buf->vb.queue,&btv->vcapture);
vb                214 drivers/media/pci/bt8xx/bttv-vbi.c static void vbi_buffer_release(struct videobuf_queue *q, struct videobuf_buffer *vb)
vb                218 drivers/media/pci/bt8xx/bttv-vbi.c 	struct bttv_buffer *buf = container_of(vb,struct bttv_buffer,vb);
vb                220 drivers/media/pci/bt8xx/bttv-vbi.c 	dprintk("free %p\n",vb);
vb                146 drivers/media/pci/bt8xx/bttvp.h 	struct videobuf_buffer     vb;
vb                185 drivers/media/pci/cobalt/cobalt-alsa-pcm.c static int alsa_fnc(struct vb2_buffer *vb, void *priv)
vb                188 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	unsigned char *p = vb2_plane_vaddr(vb, 0);
vb                201 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 			vb2_plane_vaddr(vb, 0),
vb                203 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 			vb2_get_plane_payload(vb, 0) / (8 * 4));
vb                404 drivers/media/pci/cobalt/cobalt-alsa-pcm.c static int alsa_pb_fnc(struct vb2_buffer *vb, void *priv)
vb                410 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 				vb2_plane_vaddr(vb, 0),
vb                412 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 				vb2_get_plane_payload(vb, 0) / (8 * 4));
vb                199 drivers/media/pci/cobalt/cobalt-driver.h 	struct vb2_v4l2_buffer vb;
vb                206 drivers/media/pci/cobalt/cobalt-driver.h 	return container_of(vb2, struct cobalt_buffer, vb);
vb                125 drivers/media/pci/cobalt/cobalt-irq.c 	cb->vb.vb2_buf.timestamp = ktime_get_ns();
vb                128 drivers/media/pci/cobalt/cobalt-irq.c 	cb->vb.sequence = s->sequence++;
vb                129 drivers/media/pci/cobalt/cobalt-irq.c 	vb2_buffer_done(&cb->vb.vb2_buf,
vb                 52 drivers/media/pci/cobalt/cobalt-v4l2.c static int cobalt_buf_init(struct vb2_buffer *vb)
vb                 54 drivers/media/pci/cobalt/cobalt-v4l2.c 	struct cobalt_stream *s = vb->vb2_queue->drv_priv;
vb                 61 drivers/media/pci/cobalt/cobalt-v4l2.c 	struct sg_dma_desc_info *desc = &s->dma_desc_info[vb->index];
vb                 62 drivers/media/pci/cobalt/cobalt-v4l2.c 	struct sg_table *sg_desc = vb2_dma_sg_plane_desc(vb, 0);
vb                 67 drivers/media/pci/cobalt/cobalt-v4l2.c 	if (vb2_plane_size(vb, 0) < size) {
vb                 69 drivers/media/pci/cobalt/cobalt-v4l2.c 					vb2_plane_size(vb, 0), size);
vb                 88 drivers/media/pci/cobalt/cobalt-v4l2.c static void cobalt_buf_cleanup(struct vb2_buffer *vb)
vb                 90 drivers/media/pci/cobalt/cobalt-v4l2.c 	struct cobalt_stream *s = vb->vb2_queue->drv_priv;
vb                 91 drivers/media/pci/cobalt/cobalt-v4l2.c 	struct sg_dma_desc_info *desc = &s->dma_desc_info[vb->index];
vb                 96 drivers/media/pci/cobalt/cobalt-v4l2.c static int cobalt_buf_prepare(struct vb2_buffer *vb)
vb                 98 drivers/media/pci/cobalt/cobalt-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                 99 drivers/media/pci/cobalt/cobalt-v4l2.c 	struct cobalt_stream *s = vb->vb2_queue->drv_priv;
vb                101 drivers/media/pci/cobalt/cobalt-v4l2.c 	vb2_set_plane_payload(vb, 0, s->stride * s->height);
vb                115 drivers/media/pci/cobalt/cobalt-v4l2.c 		desc[i] = &s->dma_desc_info[cb->vb.vb2_buf.index];
vb                122 drivers/media/pci/cobalt/cobalt-v4l2.c static void cobalt_buf_queue(struct vb2_buffer *vb)
vb                124 drivers/media/pci/cobalt/cobalt-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                125 drivers/media/pci/cobalt/cobalt-v4l2.c 	struct vb2_queue *q = vb->vb2_queue;
vb                128 drivers/media/pci/cobalt/cobalt-v4l2.c 	struct sg_dma_desc_info *desc = &s->dma_desc_info[vb->index];
vb                275 drivers/media/pci/cobalt/cobalt-v4l2.c 	omni_sg_dma_start(s, &s->dma_desc_info[cb->vb.vb2_buf.index]);
vb                372 drivers/media/pci/cobalt/cobalt-v4l2.c 		desc = &s->dma_desc_info[cb->vb.vb2_buf.index];
vb                407 drivers/media/pci/cobalt/cobalt-v4l2.c 		vb2_buffer_done(&cb->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                410 drivers/media/pci/cx18/cx18-driver.h 	struct videobuf_buffer vb;
vb                690 drivers/media/pci/cx18/cx18-fileops.c 			struct cx18_videobuf_buffer, vb.queue);
vb                691 drivers/media/pci/cx18/cx18-fileops.c 		list_del(&buf->vb.queue);
vb                692 drivers/media/pci/cx18/cx18-fileops.c 		buf->vb.state = VIDEOBUF_ERROR;
vb                693 drivers/media/pci/cx18/cx18-fileops.c 		wake_up(&buf->vb.done);
vb                166 drivers/media/pci/cx18/cx18-mailbox.c 		vb.queue);
vb                168 drivers/media/pci/cx18/cx18-mailbox.c 	p = videobuf_to_vmalloc(&vb_buf->vb);
vb                177 drivers/media/pci/cx18/cx18-mailbox.c 		if ((offset + buf->bytesused) <= vb_buf->vb.bsize) {
vb                191 drivers/media/pci/cx18/cx18-mailbox.c 		vb_buf->vb.ts = ktime_get_ns();
vb                192 drivers/media/pci/cx18/cx18-mailbox.c 		list_del(&vb_buf->vb.queue);
vb                193 drivers/media/pci/cx18/cx18-mailbox.c 		vb_buf->vb.state = VIDEOBUF_DONE;
vb                194 drivers/media/pci/cx18/cx18-mailbox.c 		wake_up(&vb_buf->vb.done);
vb                 98 drivers/media/pci/cx18/cx18-streams.c 	videobuf_waiton(q, &buf->vb, 0, 0);
vb                 99 drivers/media/pci/cx18/cx18-streams.c 	videobuf_vmalloc_free(&buf->vb);
vb                100 drivers/media/pci/cx18/cx18-streams.c 	buf->vb.state = VIDEOBUF_NEEDS_INIT;
vb                119 drivers/media/pci/cx18/cx18-streams.c 	buf->vb.size = (width * height * 2);
vb                120 drivers/media/pci/cx18/cx18-streams.c 	if ((buf->vb.baddr != 0) && (buf->vb.bsize < buf->vb.size))
vb                124 drivers/media/pci/cx18/cx18-streams.c 	if (buf->vb.width != width || buf->vb.height != height ||
vb                125 drivers/media/pci/cx18/cx18-streams.c 	    buf->vb.field != field || s->pixelformat != pixelformat ||
vb                128 drivers/media/pci/cx18/cx18-streams.c 		buf->vb.width  = width;
vb                129 drivers/media/pci/cx18/cx18-streams.c 		buf->vb.height = height;
vb                130 drivers/media/pci/cx18/cx18-streams.c 		buf->vb.field  = field;
vb                143 drivers/media/pci/cx18/cx18-streams.c 	if ((buf->vb.baddr != 0) && (buf->vb.bsize < buf->vb.size))
vb                146 drivers/media/pci/cx18/cx18-streams.c 	if (buf->vb.field == 0)
vb                147 drivers/media/pci/cx18/cx18-streams.c 		buf->vb.field = V4L2_FIELD_INTERLACED;
vb                149 drivers/media/pci/cx18/cx18-streams.c 	if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
vb                150 drivers/media/pci/cx18/cx18-streams.c 		buf->vb.width  = width;
vb                151 drivers/media/pci/cx18/cx18-streams.c 		buf->vb.height = height;
vb                152 drivers/media/pci/cx18/cx18-streams.c 		buf->vb.field  = field;
vb                162 drivers/media/pci/cx18/cx18-streams.c 		rc = videobuf_iolock(q, &buf->vb, NULL);
vb                166 drivers/media/pci/cx18/cx18-streams.c 	buf->vb.state = VIDEOBUF_PREPARED;
vb                201 drivers/media/pci/cx18/cx18-streams.c 	struct videobuf_buffer *vb,
vb                205 drivers/media/pci/cx18/cx18-streams.c 		container_of(vb, struct cx18_videobuf_buffer, vb);
vb                214 drivers/media/pci/cx18/cx18-streams.c 	struct videobuf_buffer *vb)
vb                217 drivers/media/pci/cx18/cx18-streams.c 		container_of(vb, struct cx18_videobuf_buffer, vb);
vb                223 drivers/media/pci/cx18/cx18-streams.c static void buffer_queue(struct videobuf_queue *q, struct videobuf_buffer *vb)
vb                226 drivers/media/pci/cx18/cx18-streams.c 		container_of(vb, struct cx18_videobuf_buffer, vb);
vb                229 drivers/media/pci/cx18/cx18-streams.c 	buf->vb.state = VIDEOBUF_QUEUED;
vb                231 drivers/media/pci/cx18/cx18-streams.c 	list_add_tail(&buf->vb.queue, &s->vb_capture);
vb               1137 drivers/media/pci/cx23885/cx23885-417.c static int buffer_prepare(struct vb2_buffer *vb)
vb               1139 drivers/media/pci/cx23885/cx23885-417.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1140 drivers/media/pci/cx23885/cx23885-417.c 	struct cx23885_dev *dev = vb->vb2_queue->drv_priv;
vb               1142 drivers/media/pci/cx23885/cx23885-417.c 		container_of(vbuf, struct cx23885_buffer, vb);
vb               1147 drivers/media/pci/cx23885/cx23885-417.c static void buffer_finish(struct vb2_buffer *vb)
vb               1149 drivers/media/pci/cx23885/cx23885-417.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1150 drivers/media/pci/cx23885/cx23885-417.c 	struct cx23885_dev *dev = vb->vb2_queue->drv_priv;
vb               1152 drivers/media/pci/cx23885/cx23885-417.c 		struct cx23885_buffer, vb);
vb               1157 drivers/media/pci/cx23885/cx23885-417.c static void buffer_queue(struct vb2_buffer *vb)
vb               1159 drivers/media/pci/cx23885/cx23885-417.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1160 drivers/media/pci/cx23885/cx23885-417.c 	struct cx23885_dev *dev = vb->vb2_queue->drv_priv;
vb               1162 drivers/media/pci/cx23885/cx23885-417.c 		struct cx23885_buffer, vb);
vb               1188 drivers/media/pci/cx23885/cx23885-417.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED);
vb                437 drivers/media/pci/cx23885/cx23885-core.c 		buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                438 drivers/media/pci/cx23885/cx23885-core.c 		buf->vb.sequence = q->count++;
vb                441 drivers/media/pci/cx23885/cx23885-core.c 				buf->vb.vb2_buf.index, count, q->count);
vb                444 drivers/media/pci/cx23885/cx23885-core.c 				buf->vb.vb2_buf.index, count, q->count);
vb                447 drivers/media/pci/cx23885/cx23885-core.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb               1578 drivers/media/pci/cx23885/cx23885-core.c 	struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0);
vb               1581 drivers/media/pci/cx23885/cx23885-core.c 	if (vb2_plane_size(&buf->vb.vb2_buf, 0) < size)
vb               1583 drivers/media/pci/cx23885/cx23885-core.c 	vb2_set_plane_payload(&buf->vb.vb2_buf, 0, size);
vb               1628 drivers/media/pci/cx23885/cx23885-core.c 			buf, buf->vb.vb2_buf.index, __func__);
vb               1636 drivers/media/pci/cx23885/cx23885-core.c 			 buf, buf->vb.vb2_buf.index, __func__);
vb               1654 drivers/media/pci/cx23885/cx23885-core.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb               1656 drivers/media/pci/cx23885/cx23885-core.c 			buf, buf->vb.vb2_buf.index, reason,
vb                103 drivers/media/pci/cx23885/cx23885-dvb.c static int buffer_prepare(struct vb2_buffer *vb)
vb                105 drivers/media/pci/cx23885/cx23885-dvb.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                106 drivers/media/pci/cx23885/cx23885-dvb.c 	struct cx23885_tsport *port = vb->vb2_queue->drv_priv;
vb                108 drivers/media/pci/cx23885/cx23885-dvb.c 		container_of(vbuf, struct cx23885_buffer, vb);
vb                113 drivers/media/pci/cx23885/cx23885-dvb.c static void buffer_finish(struct vb2_buffer *vb)
vb                115 drivers/media/pci/cx23885/cx23885-dvb.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                116 drivers/media/pci/cx23885/cx23885-dvb.c 	struct cx23885_tsport *port = vb->vb2_queue->drv_priv;
vb                119 drivers/media/pci/cx23885/cx23885-dvb.c 		struct cx23885_buffer, vb);
vb                124 drivers/media/pci/cx23885/cx23885-dvb.c static void buffer_queue(struct vb2_buffer *vb)
vb                126 drivers/media/pci/cx23885/cx23885-dvb.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                127 drivers/media/pci/cx23885/cx23885-dvb.c 	struct cx23885_tsport *port = vb->vb2_queue->drv_priv;
vb                129 drivers/media/pci/cx23885/cx23885-dvb.c 		struct cx23885_buffer, vb);
vb                128 drivers/media/pci/cx23885/cx23885-vbi.c static int buffer_prepare(struct vb2_buffer *vb)
vb                130 drivers/media/pci/cx23885/cx23885-vbi.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                131 drivers/media/pci/cx23885/cx23885-vbi.c 	struct cx23885_dev *dev = vb->vb2_queue->drv_priv;
vb                133 drivers/media/pci/cx23885/cx23885-vbi.c 		struct cx23885_buffer, vb);
vb                134 drivers/media/pci/cx23885/cx23885-vbi.c 	struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0);
vb                140 drivers/media/pci/cx23885/cx23885-vbi.c 	if (vb2_plane_size(vb, 0) < lines * VBI_LINE_LENGTH * 2)
vb                142 drivers/media/pci/cx23885/cx23885-vbi.c 	vb2_set_plane_payload(vb, 0, lines * VBI_LINE_LENGTH * 2);
vb                152 drivers/media/pci/cx23885/cx23885-vbi.c static void buffer_finish(struct vb2_buffer *vb)
vb                154 drivers/media/pci/cx23885/cx23885-vbi.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                156 drivers/media/pci/cx23885/cx23885-vbi.c 		struct cx23885_buffer, vb);
vb                158 drivers/media/pci/cx23885/cx23885-vbi.c 	cx23885_free_buffer(vb->vb2_queue->drv_priv, buf);
vb                182 drivers/media/pci/cx23885/cx23885-vbi.c static void buffer_queue(struct vb2_buffer *vb)
vb                184 drivers/media/pci/cx23885/cx23885-vbi.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                185 drivers/media/pci/cx23885/cx23885-vbi.c 	struct cx23885_dev *dev = vb->vb2_queue->drv_priv;
vb                187 drivers/media/pci/cx23885/cx23885-vbi.c 			struct cx23885_buffer, vb);
vb                202 drivers/media/pci/cx23885/cx23885-vbi.c 			buf, buf->vb.vb2_buf.index);
vb                213 drivers/media/pci/cx23885/cx23885-vbi.c 			buf, buf->vb.vb2_buf.index);
vb                241 drivers/media/pci/cx23885/cx23885-vbi.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                 98 drivers/media/pci/cx23885/cx23885-video.c 	buf->vb.sequence = q->count++;
vb                 99 drivers/media/pci/cx23885/cx23885-video.c 	buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                101 drivers/media/pci/cx23885/cx23885-video.c 			buf->vb.vb2_buf.index, count, q->count);
vb                103 drivers/media/pci/cx23885/cx23885-video.c 	vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                340 drivers/media/pci/cx23885/cx23885-video.c static int buffer_prepare(struct vb2_buffer *vb)
vb                342 drivers/media/pci/cx23885/cx23885-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                343 drivers/media/pci/cx23885/cx23885-video.c 	struct cx23885_dev *dev = vb->vb2_queue->drv_priv;
vb                345 drivers/media/pci/cx23885/cx23885-video.c 		container_of(vbuf, struct cx23885_buffer, vb);
vb                347 drivers/media/pci/cx23885/cx23885-video.c 	struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0);
vb                352 drivers/media/pci/cx23885/cx23885-video.c 	if (vb2_plane_size(vb, 0) < dev->height * buf->bpl)
vb                354 drivers/media/pci/cx23885/cx23885-video.c 	vb2_set_plane_payload(vb, 0, dev->height * buf->bpl);
vb                415 drivers/media/pci/cx23885/cx23885-video.c 		buf, buf->vb.vb2_buf.index,
vb                421 drivers/media/pci/cx23885/cx23885-video.c static void buffer_finish(struct vb2_buffer *vb)
vb                423 drivers/media/pci/cx23885/cx23885-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                425 drivers/media/pci/cx23885/cx23885-video.c 		struct cx23885_buffer, vb);
vb                427 drivers/media/pci/cx23885/cx23885-video.c 	cx23885_free_buffer(vb->vb2_queue->drv_priv, buf);
vb                451 drivers/media/pci/cx23885/cx23885-video.c static void buffer_queue(struct vb2_buffer *vb)
vb                453 drivers/media/pci/cx23885/cx23885-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                454 drivers/media/pci/cx23885/cx23885-video.c 	struct cx23885_dev *dev = vb->vb2_queue->drv_priv;
vb                456 drivers/media/pci/cx23885/cx23885-video.c 		struct cx23885_buffer, vb);
vb                471 drivers/media/pci/cx23885/cx23885-video.c 			buf, buf->vb.vb2_buf.index);
vb                479 drivers/media/pci/cx23885/cx23885-video.c 				buf, buf->vb.vb2_buf.index);
vb                508 drivers/media/pci/cx23885/cx23885-video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                173 drivers/media/pci/cx23885/cx23885.h 	struct vb2_v4l2_buffer vb;
vb                116 drivers/media/pci/cx25821/cx25821-video.c 			buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                117 drivers/media/pci/cx25821/cx25821-video.c 			buf->vb.sequence = dmaq->count++;
vb                119 drivers/media/pci/cx25821/cx25821-video.c 			vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                142 drivers/media/pci/cx25821/cx25821-video.c static int cx25821_buffer_prepare(struct vb2_buffer *vb)
vb                144 drivers/media/pci/cx25821/cx25821-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                145 drivers/media/pci/cx25821/cx25821-video.c 	struct cx25821_channel *chan = vb->vb2_queue->drv_priv;
vb                148 drivers/media/pci/cx25821/cx25821-video.c 		container_of(vbuf, struct cx25821_buffer, vb);
vb                149 drivers/media/pci/cx25821/cx25821-video.c 	struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0);
vb                159 drivers/media/pci/cx25821/cx25821-video.c 	if (vb2_plane_size(vb, 0) < chan->height * buf->bpl)
vb                161 drivers/media/pci/cx25821/cx25821-video.c 	vb2_set_plane_payload(vb, 0, chan->height * buf->bpl);
vb                162 drivers/media/pci/cx25821/cx25821-video.c 	buf->vb.field = chan->field;
vb                217 drivers/media/pci/cx25821/cx25821-video.c 		buf, buf->vb.vb2_buf.index, chan->width, chan->height,
vb                224 drivers/media/pci/cx25821/cx25821-video.c static void cx25821_buffer_finish(struct vb2_buffer *vb)
vb                226 drivers/media/pci/cx25821/cx25821-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                228 drivers/media/pci/cx25821/cx25821-video.c 		container_of(vbuf, struct cx25821_buffer, vb);
vb                229 drivers/media/pci/cx25821/cx25821-video.c 	struct cx25821_channel *chan = vb->vb2_queue->drv_priv;
vb                235 drivers/media/pci/cx25821/cx25821-video.c static void cx25821_buffer_queue(struct vb2_buffer *vb)
vb                237 drivers/media/pci/cx25821/cx25821-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                239 drivers/media/pci/cx25821/cx25821-video.c 		container_of(vbuf, struct cx25821_buffer, vb);
vb                240 drivers/media/pci/cx25821/cx25821-video.c 	struct cx25821_channel *chan = vb->vb2_queue->drv_priv;
vb                288 drivers/media/pci/cx25821/cx25821-video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                114 drivers/media/pci/cx25821/cx25821.h 	struct vb2_v4l2_buffer vb;
vb                671 drivers/media/pci/cx88/cx88-blackbird.c static int buffer_prepare(struct vb2_buffer *vb)
vb                673 drivers/media/pci/cx88/cx88-blackbird.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                674 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx8802_dev *dev = vb->vb2_queue->drv_priv;
vb                675 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb);
vb                677 drivers/media/pci/cx88/cx88-blackbird.c 	return cx8802_buf_prepare(vb->vb2_queue, dev, buf);
vb                680 drivers/media/pci/cx88/cx88-blackbird.c static void buffer_finish(struct vb2_buffer *vb)
vb                682 drivers/media/pci/cx88/cx88-blackbird.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                683 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx8802_dev *dev = vb->vb2_queue->drv_priv;
vb                684 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb);
vb                692 drivers/media/pci/cx88/cx88-blackbird.c static void buffer_queue(struct vb2_buffer *vb)
vb                694 drivers/media/pci/cx88/cx88-blackbird.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                695 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx8802_dev *dev = vb->vb2_queue->drv_priv;
vb                696 drivers/media/pci/cx88/cx88-blackbird.c 	struct cx88_buffer    *buf = container_of(vbuf, struct cx88_buffer, vb);
vb                745 drivers/media/pci/cx88/cx88-blackbird.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED);
vb                773 drivers/media/pci/cx88/cx88-blackbird.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                525 drivers/media/pci/cx88/cx88-core.c 	buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                526 drivers/media/pci/cx88/cx88-core.c 	buf->vb.field = core->field;
vb                527 drivers/media/pci/cx88/cx88-core.c 	buf->vb.sequence = q->count++;
vb                529 drivers/media/pci/cx88/cx88-core.c 	vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                 89 drivers/media/pci/cx88/cx88-dvb.c static int buffer_prepare(struct vb2_buffer *vb)
vb                 91 drivers/media/pci/cx88/cx88-dvb.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                 92 drivers/media/pci/cx88/cx88-dvb.c 	struct cx8802_dev *dev = vb->vb2_queue->drv_priv;
vb                 93 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb);
vb                 95 drivers/media/pci/cx88/cx88-dvb.c 	return cx8802_buf_prepare(vb->vb2_queue, dev, buf);
vb                 98 drivers/media/pci/cx88/cx88-dvb.c static void buffer_finish(struct vb2_buffer *vb)
vb                100 drivers/media/pci/cx88/cx88-dvb.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                101 drivers/media/pci/cx88/cx88-dvb.c 	struct cx8802_dev *dev = vb->vb2_queue->drv_priv;
vb                102 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb);
vb                110 drivers/media/pci/cx88/cx88-dvb.c static void buffer_queue(struct vb2_buffer *vb)
vb                112 drivers/media/pci/cx88/cx88-dvb.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                113 drivers/media/pci/cx88/cx88-dvb.c 	struct cx8802_dev *dev = vb->vb2_queue->drv_priv;
vb                114 drivers/media/pci/cx88/cx88-dvb.c 	struct cx88_buffer    *buf = container_of(vbuf, struct cx88_buffer, vb);
vb                144 drivers/media/pci/cx88/cx88-dvb.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                206 drivers/media/pci/cx88/cx88-mpeg.c 		buf, buf->vb.vb2_buf.index);
vb                217 drivers/media/pci/cx88/cx88-mpeg.c 	struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0);
vb                221 drivers/media/pci/cx88/cx88-mpeg.c 	if (vb2_plane_size(&buf->vb.vb2_buf, 0) < size)
vb                223 drivers/media/pci/cx88/cx88-mpeg.c 	vb2_set_plane_payload(&buf->vb.vb2_buf, 0, size);
vb                253 drivers/media/pci/cx88/cx88-mpeg.c 			buf, buf->vb.vb2_buf.index, __func__);
vb                262 drivers/media/pci/cx88/cx88-mpeg.c 			buf, buf->vb.vb2_buf.index, __func__);
vb                279 drivers/media/pci/cx88/cx88-mpeg.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                108 drivers/media/pci/cx88/cx88-vbi.c 		buf, buf->vb.vb2_buf.index);
vb                129 drivers/media/pci/cx88/cx88-vbi.c static int buffer_prepare(struct vb2_buffer *vb)
vb                131 drivers/media/pci/cx88/cx88-vbi.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                132 drivers/media/pci/cx88/cx88-vbi.c 	struct cx8800_dev *dev = vb->vb2_queue->drv_priv;
vb                133 drivers/media/pci/cx88/cx88-vbi.c 	struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb);
vb                134 drivers/media/pci/cx88/cx88-vbi.c 	struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0);
vb                143 drivers/media/pci/cx88/cx88-vbi.c 	if (vb2_plane_size(vb, 0) < size)
vb                145 drivers/media/pci/cx88/cx88-vbi.c 	vb2_set_plane_payload(vb, 0, size);
vb                154 drivers/media/pci/cx88/cx88-vbi.c static void buffer_finish(struct vb2_buffer *vb)
vb                156 drivers/media/pci/cx88/cx88-vbi.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                157 drivers/media/pci/cx88/cx88-vbi.c 	struct cx8800_dev *dev = vb->vb2_queue->drv_priv;
vb                158 drivers/media/pci/cx88/cx88-vbi.c 	struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb);
vb                166 drivers/media/pci/cx88/cx88-vbi.c static void buffer_queue(struct vb2_buffer *vb)
vb                168 drivers/media/pci/cx88/cx88-vbi.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                169 drivers/media/pci/cx88/cx88-vbi.c 	struct cx8800_dev *dev = vb->vb2_queue->drv_priv;
vb                170 drivers/media/pci/cx88/cx88-vbi.c 	struct cx88_buffer    *buf = container_of(vbuf, struct cx88_buffer, vb);
vb                182 drivers/media/pci/cx88/cx88-vbi.c 			buf, buf->vb.vb2_buf.index);
vb                190 drivers/media/pci/cx88/cx88-vbi.c 			buf, buf->vb.vb2_buf.index);
vb                221 drivers/media/pci/cx88/cx88-vbi.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                413 drivers/media/pci/cx88/cx88-video.c 			buf, buf->vb.vb2_buf.index);
vb                434 drivers/media/pci/cx88/cx88-video.c static int buffer_prepare(struct vb2_buffer *vb)
vb                436 drivers/media/pci/cx88/cx88-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                437 drivers/media/pci/cx88/cx88-video.c 	struct cx8800_dev *dev = vb->vb2_queue->drv_priv;
vb                439 drivers/media/pci/cx88/cx88-video.c 	struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb);
vb                440 drivers/media/pci/cx88/cx88-video.c 	struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0);
vb                444 drivers/media/pci/cx88/cx88-video.c 	if (vb2_plane_size(vb, 0) < core->height * buf->bpl)
vb                446 drivers/media/pci/cx88/cx88-video.c 	vb2_set_plane_payload(vb, 0, core->height * buf->bpl);
vb                483 drivers/media/pci/cx88/cx88-video.c 		buf, buf->vb.vb2_buf.index, __func__,
vb                489 drivers/media/pci/cx88/cx88-video.c static void buffer_finish(struct vb2_buffer *vb)
vb                491 drivers/media/pci/cx88/cx88-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                492 drivers/media/pci/cx88/cx88-video.c 	struct cx8800_dev *dev = vb->vb2_queue->drv_priv;
vb                493 drivers/media/pci/cx88/cx88-video.c 	struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb);
vb                501 drivers/media/pci/cx88/cx88-video.c static void buffer_queue(struct vb2_buffer *vb)
vb                503 drivers/media/pci/cx88/cx88-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                504 drivers/media/pci/cx88/cx88-video.c 	struct cx8800_dev *dev = vb->vb2_queue->drv_priv;
vb                505 drivers/media/pci/cx88/cx88-video.c 	struct cx88_buffer    *buf = container_of(vbuf, struct cx88_buffer, vb);
vb                517 drivers/media/pci/cx88/cx88-video.c 			buf, buf->vb.vb2_buf.index);
vb                525 drivers/media/pci/cx88/cx88-video.c 			buf, buf->vb.vb2_buf.index);
vb                555 drivers/media/pci/cx88/cx88-video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                315 drivers/media/pci/cx88/cx88.h 	struct vb2_v4l2_buffer vb;
vb                140 drivers/media/pci/dt3155/dt3155.c static int dt3155_buf_prepare(struct vb2_buffer *vb)
vb                142 drivers/media/pci/dt3155/dt3155.c 	struct dt3155_priv *pd = vb2_get_drv_priv(vb->vb2_queue);
vb                144 drivers/media/pci/dt3155/dt3155.c 	vb2_set_plane_payload(vb, 0, pd->width * pd->height);
vb                151 drivers/media/pci/dt3155/dt3155.c 	struct vb2_buffer *vb = &pd->curr_buf->vb2_buf;
vb                155 drivers/media/pci/dt3155/dt3155.c 	dma_addr = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                179 drivers/media/pci/dt3155/dt3155.c 	struct vb2_buffer *vb;
vb                204 drivers/media/pci/dt3155/dt3155.c 		vb = list_first_entry(&pd->dmaq, typeof(*vb), done_entry);
vb                205 drivers/media/pci/dt3155/dt3155.c 		list_del(&vb->done_entry);
vb                206 drivers/media/pci/dt3155/dt3155.c 		vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
vb                211 drivers/media/pci/dt3155/dt3155.c static void dt3155_buf_queue(struct vb2_buffer *vb)
vb                213 drivers/media/pci/dt3155/dt3155.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                214 drivers/media/pci/dt3155/dt3155.c 	struct dt3155_priv *pd = vb2_get_drv_priv(vb->vb2_queue);
vb                219 drivers/media/pci/dt3155/dt3155.c 		list_add_tail(&vb->done_entry, &pd->dmaq);
vb                179 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	struct vb2_buffer *vb = &b->vbb.vb2_buf;
vb                180 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	unsigned int length = vb->planes[0].length;
vb                838 drivers/media/pci/intel/ipu3/ipu3-cio2.c static int cio2_vb2_buf_init(struct vb2_buffer *vb)
vb                840 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	struct cio2_device *cio2 = vb2_get_drv_priv(vb->vb2_queue);
vb                843 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		container_of(vb, struct cio2_buffer, vbb.vb2_buf);
vb                846 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	unsigned int pages = DIV_ROUND_UP(vb->planes[0].length, CIO2_PAGE_SIZE);
vb                854 drivers/media/pci/intel/ipu3/ipu3-cio2.c 			vb->planes[0].length);
vb                868 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	sg = vb2_dma_sg_plane_desc(vb, 0);
vb                897 drivers/media/pci/intel/ipu3/ipu3-cio2.c static void cio2_vb2_buf_queue(struct vb2_buffer *vb)
vb                899 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	struct cio2_device *cio2 = vb2_get_drv_priv(vb->vb2_queue);
vb                901 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		container_of(vb->vb2_queue, struct cio2_queue, vbq);
vb                903 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		container_of(vb, struct cio2_buffer, vbb.vb2_buf);
vb                910 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	dev_dbg(&cio2->pci_dev->dev, "queue buffer %d\n", vb->index);
vb                955 drivers/media/pci/intel/ipu3/ipu3-cio2.c 			for (j = 0; j < vb->num_planes; j++)
vb                956 drivers/media/pci/intel/ipu3/ipu3-cio2.c 				vb2_set_plane_payload(vb, j,
vb                968 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
vb                972 drivers/media/pci/intel/ipu3/ipu3-cio2.c static void cio2_vb2_buf_cleanup(struct vb2_buffer *vb)
vb                974 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	struct cio2_device *cio2 = vb2_get_drv_priv(vb->vb2_queue);
vb                976 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		container_of(vb, struct cio2_buffer, vbb.vb2_buf);
vb                106 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	struct vb2_v4l2_buffer vb;
vb                303 drivers/media/pci/netup_unidvb/netup_unidvb_core.c static int netup_unidvb_buf_prepare(struct vb2_buffer *vb)
vb                305 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	struct netup_dma *dma = vb2_get_drv_priv(vb->vb2_queue);
vb                306 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                308 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 				struct netup_unidvb_buffer, vb);
vb                315 drivers/media/pci/netup_unidvb/netup_unidvb_core.c static void netup_unidvb_buf_queue(struct vb2_buffer *vb)
vb                318 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	struct netup_dma *dma = vb2_get_drv_priv(vb->vb2_queue);
vb                319 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                321 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 				struct netup_unidvb_buffer, vb);
vb                537 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 	u8 *p = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
vb                607 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 			buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                608 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 			vb2_set_plane_payload(&buf->vb.vb2_buf, 0, buf->size);
vb                609 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 			vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                627 drivers/media/pci/netup_unidvb/netup_unidvb_core.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                883 drivers/media/pci/ngene/ngene.h 	struct videobuf_buffer     vb;
vb                965 drivers/media/pci/saa7134/saa7134-video.c void saa7134_vb2_buffer_queue(struct vb2_buffer *vb)
vb                967 drivers/media/pci/saa7134/saa7134-video.c 	struct saa7134_dmaqueue *dmaq = vb->vb2_queue->drv_priv;
vb                969 drivers/media/pci/saa7134/saa7134-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                806 drivers/media/pci/saa7134/saa7134.h void saa7134_vb2_buffer_queue(struct vb2_buffer *vb);
vb                176 drivers/media/pci/saa7164/saa7164-api.c 	struct tmComResEncVideoBitRate vb;
vb                202 drivers/media/pci/saa7164/saa7164-api.c 		vb.ucVideoBitRateMode = EU_VIDEO_BIT_RATE_MODE_CONSTANT;
vb                204 drivers/media/pci/saa7164/saa7164-api.c 		vb.ucVideoBitRateMode = EU_VIDEO_BIT_RATE_MODE_VARIABLE_PEAK;
vb                205 drivers/media/pci/saa7164/saa7164-api.c 	vb.dwVideoBitRate = port->encoder_params.bitrate;
vb                206 drivers/media/pci/saa7164/saa7164-api.c 	vb.dwVideoBitRatePeak = port->encoder_params.bitrate_peak;
vb                210 drivers/media/pci/saa7164/saa7164-api.c 		&vb);
vb                450 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 			  struct vb2_buffer *vb, const vop_header *vh)
vb                452 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                454 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0);
vb                459 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	if (vb2_plane_size(vb, 0) < vop_jpeg_size(vh) + solo_enc->jpeg_len)
vb                463 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	vb2_set_plane_payload(vb, 0, vop_jpeg_size(vh) + solo_enc->jpeg_len);
vb                472 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		struct vb2_buffer *vb, const vop_header *vh)
vb                474 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                476 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0);
vb                480 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	if (vb2_plane_size(vb, 0) < vop_mpeg_size(vh))
vb                489 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		vb2_set_plane_payload(vb, 0, vop_mpeg_size(vh) +
vb                493 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		vb2_set_plane_payload(vb, 0, vop_mpeg_size(vh));
vb                507 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 			    struct vb2_buffer *vb, struct solo_enc_buf *enc_buf)
vb                509 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                516 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		ret = solo_fill_mpeg(solo_enc, vb, vh);
vb                519 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		ret = solo_fill_jpeg(solo_enc, vb, vh);
vb                525 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		vb->timestamp = ktime_get_ns();
vb                543 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	vb2_buffer_done(vb, ret ? VB2_BUF_STATE_ERROR : VB2_BUF_STATE_DONE);
vb                551 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	struct solo_vb2_buf *vb;
vb                563 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	vb = list_first_entry(&solo_enc->vidq_active, struct solo_vb2_buf,
vb                565 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	list_del(&vb->list);
vb                568 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	solo_enc_fillbuf(solo_enc, &vb->vb.vb2_buf, enc_buf);
vb                669 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c static void solo_enc_buf_queue(struct vb2_buffer *vb)
vb                671 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                672 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                675 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		container_of(vbuf, struct solo_vb2_buf, vb);
vb                728 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                733 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c static void solo_enc_buf_finish(struct vb2_buffer *vb)
vb                735 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                736 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	struct solo_enc_dev *solo_enc = vb2_get_drv_priv(vb->vb2_queue);
vb                737 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0);
vb                184 drivers/media/pci/solo6x10/solo6x10-v4l2.c 			 struct vb2_buffer *vb)
vb                186 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                192 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	addr = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                197 drivers/media/pci/solo6x10/solo6x10-v4l2.c 		void *p = vb2_plane_vaddr(vb, 0);
vb                216 drivers/media/pci/solo6x10/solo6x10-v4l2.c 		vb2_set_plane_payload(vb, 0,
vb                219 drivers/media/pci/solo6x10/solo6x10-v4l2.c 		vb->timestamp = ktime_get_ns();
vb                222 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	vb2_buffer_done(vb, error ? VB2_BUF_STATE_ERROR : VB2_BUF_STATE_DONE);
vb                227 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	struct solo_vb2_buf *vb;
vb                244 drivers/media/pci/solo6x10/solo6x10-v4l2.c 		vb = list_first_entry(&solo_dev->vidq_active, struct solo_vb2_buf,
vb                248 drivers/media/pci/solo6x10/solo6x10-v4l2.c 		list_del(&vb->list);
vb                252 drivers/media/pci/solo6x10/solo6x10-v4l2.c 		solo_fillbuf(solo_dev, &vb->vb.vb2_buf);
vb                343 drivers/media/pci/solo6x10/solo6x10-v4l2.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                349 drivers/media/pci/solo6x10/solo6x10-v4l2.c static void solo_buf_queue(struct vb2_buffer *vb)
vb                351 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                352 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                355 drivers/media/pci/solo6x10/solo6x10-v4l2.c 		container_of(vbuf, struct solo_vb2_buf, vb);
vb                130 drivers/media/pci/solo6x10/solo6x10.h 	struct vb2_v4l2_buffer vb;
vb                 75 drivers/media/pci/sta2x11/sta2x11_vip.c 	struct vb2_v4l2_buffer vb;
vb                 81 drivers/media/pci/sta2x11/sta2x11_vip.c 	return container_of(vb2, struct vip_buffer, vb);
vb                271 drivers/media/pci/sta2x11/sta2x11_vip.c static int buffer_init(struct vb2_buffer *vb)
vb                273 drivers/media/pci/sta2x11/sta2x11_vip.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                276 drivers/media/pci/sta2x11/sta2x11_vip.c 	vip_buf->dma = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                281 drivers/media/pci/sta2x11/sta2x11_vip.c static int buffer_prepare(struct vb2_buffer *vb)
vb                283 drivers/media/pci/sta2x11/sta2x11_vip.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                284 drivers/media/pci/sta2x11/sta2x11_vip.c 	struct sta2x11_vip *vip = vb2_get_drv_priv(vb->vb2_queue);
vb                289 drivers/media/pci/sta2x11/sta2x11_vip.c 	if (vb2_plane_size(vb, 0) < size) {
vb                291 drivers/media/pci/sta2x11/sta2x11_vip.c 			 vb2_plane_size(vb, 0), size);
vb                295 drivers/media/pci/sta2x11/sta2x11_vip.c 	vb2_set_plane_payload(&vip_buf->vb.vb2_buf, 0, size);
vb                299 drivers/media/pci/sta2x11/sta2x11_vip.c static void buffer_queue(struct vb2_buffer *vb)
vb                301 drivers/media/pci/sta2x11/sta2x11_vip.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                302 drivers/media/pci/sta2x11/sta2x11_vip.c 	struct sta2x11_vip *vip = vb2_get_drv_priv(vb->vb2_queue);
vb                316 drivers/media/pci/sta2x11/sta2x11_vip.c static void buffer_finish(struct vb2_buffer *vb)
vb                318 drivers/media/pci/sta2x11/sta2x11_vip.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                319 drivers/media/pci/sta2x11/sta2x11_vip.c 	struct sta2x11_vip *vip = vb2_get_drv_priv(vb->vb2_queue);
vb                327 drivers/media/pci/sta2x11/sta2x11_vip.c 	if (vb2_is_streaming(vb->vb2_queue))
vb                360 drivers/media/pci/sta2x11/sta2x11_vip.c 		vb2_buffer_done(&vip_buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                804 drivers/media/pci/sta2x11/sta2x11_vip.c 		vip->active->vb.vb2_buf.timestamp = ktime_get_ns();
vb                805 drivers/media/pci/sta2x11/sta2x11_vip.c 		vip->active->vb.sequence = vip->sequence++;
vb                806 drivers/media/pci/sta2x11/sta2x11_vip.c 		vb2_buffer_done(&vip->active->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                195 drivers/media/pci/tw5864/tw5864-video.c static void tw5864_buf_queue(struct vb2_buffer *vb)
vb                197 drivers/media/pci/tw5864/tw5864-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                198 drivers/media/pci/tw5864/tw5864-video.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                200 drivers/media/pci/tw5864/tw5864-video.c 	struct tw5864_buf *buf = container_of(vbuf, struct tw5864_buf, vb);
vb                441 drivers/media/pci/tw5864/tw5864-video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED);
vb                454 drivers/media/pci/tw5864/tw5864-video.c 	if (input->vb) {
vb                455 drivers/media/pci/tw5864/tw5864-video.c 		vb2_buffer_done(&input->vb->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                456 drivers/media/pci/tw5864/tw5864-video.c 		input->vb = NULL;
vb                463 drivers/media/pci/tw5864/tw5864-video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb               1216 drivers/media/pci/tw5864/tw5864-video.c 	struct tw5864_buf *vb = input->vb;
vb               1221 drivers/media/pci/tw5864/tw5864-video.c 	if (!vb) {
vb               1225 drivers/media/pci/tw5864/tw5864-video.c 			input->vb = NULL;
vb               1228 drivers/media/pci/tw5864/tw5864-video.c 		vb = list_first_entry(&input->active, struct tw5864_buf, list);
vb               1229 drivers/media/pci/tw5864/tw5864-video.c 		list_del(&vb->list);
vb               1233 drivers/media/pci/tw5864/tw5864-video.c 	dst = vb2_plane_vaddr(&vb->vb.vb2_buf, 0);
vb               1234 drivers/media/pci/tw5864/tw5864-video.c 	dst_space = vb2_plane_size(&vb->vb.vb2_buf, 0);
vb               1259 drivers/media/pci/tw5864/tw5864-video.c 	input->vb = vb;
vb               1365 drivers/media/pci/tw5864/tw5864-video.c 	struct tw5864_buf *vb;
vb               1385 drivers/media/pci/tw5864/tw5864-video.c 	vb = input->vb;
vb               1386 drivers/media/pci/tw5864/tw5864-video.c 	input->vb = NULL;
vb               1389 drivers/media/pci/tw5864/tw5864-video.c 	if (!vb) { /* Gone because of disabling */
vb               1394 drivers/media/pci/tw5864/tw5864-video.c 	v4l2_buf = to_vb2_v4l2_buffer(&vb->vb.vb2_buf);
vb               1433 drivers/media/pci/tw5864/tw5864-video.c 	vb2_set_plane_payload(&vb->vb.vb2_buf, 0,
vb               1434 drivers/media/pci/tw5864/tw5864-video.c 			      dst - (u8 *)vb2_plane_vaddr(&vb->vb.vb2_buf, 0));
vb               1436 drivers/media/pci/tw5864/tw5864-video.c 	vb->vb.vb2_buf.timestamp = frame->timestamp;
vb               1454 drivers/media/pci/tw5864/tw5864-video.c 	vb2_buffer_done(&vb->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                 61 drivers/media/pci/tw5864/tw5864.h 	struct vb2_v4l2_buffer vb;
vb                116 drivers/media/pci/tw5864/tw5864.h 	struct tw5864_buf *vb;
vb                403 drivers/media/pci/tw68/tw68-video.c static void tw68_buf_queue(struct vb2_buffer *vb)
vb                405 drivers/media/pci/tw68/tw68-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                406 drivers/media/pci/tw68/tw68-video.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                408 drivers/media/pci/tw68/tw68-video.c 	struct tw68_buf *buf = container_of(vbuf, struct tw68_buf, vb);
vb                438 drivers/media/pci/tw68/tw68-video.c static int tw68_buf_prepare(struct vb2_buffer *vb)
vb                440 drivers/media/pci/tw68/tw68-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                441 drivers/media/pci/tw68/tw68-video.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                443 drivers/media/pci/tw68/tw68-video.c 	struct tw68_buf *buf = container_of(vbuf, struct tw68_buf, vb);
vb                444 drivers/media/pci/tw68/tw68-video.c 	struct sg_table *dma = vb2_dma_sg_plane_desc(vb, 0);
vb                448 drivers/media/pci/tw68/tw68-video.c 	if (vb2_plane_size(vb, 0) < size)
vb                450 drivers/media/pci/tw68/tw68-video.c 	vb2_set_plane_payload(vb, 0, size);
vb                481 drivers/media/pci/tw68/tw68-video.c static void tw68_buf_finish(struct vb2_buffer *vb)
vb                483 drivers/media/pci/tw68/tw68-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                484 drivers/media/pci/tw68/tw68-video.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                486 drivers/media/pci/tw68/tw68-video.c 	struct tw68_buf *buf = container_of(vbuf, struct tw68_buf, vb);
vb                513 drivers/media/pci/tw68/tw68-video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                990 drivers/media/pci/tw68/tw68-video.c 		buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                991 drivers/media/pci/tw68/tw68-video.c 		buf->vb.field = dev->field;
vb                992 drivers/media/pci/tw68/tw68-video.c 		buf->vb.sequence = dev->seqnr++;
vb                993 drivers/media/pci/tw68/tw68-video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                112 drivers/media/pci/tw68/tw68.h 	struct vb2_v4l2_buffer vb;
vb                 54 drivers/media/pci/tw686x/tw686x-video.c 	struct vb2_v4l2_buffer *vb;
vb                 58 drivers/media/pci/tw686x/tw686x-video.c 		vb = &vc->curr_bufs[pb]->vb;
vb                 60 drivers/media/pci/tw686x/tw686x-video.c 		vb->field = dev->dma_ops->field;
vb                 61 drivers/media/pci/tw686x/tw686x-video.c 		vb->sequence = vc->sequence++;
vb                 62 drivers/media/pci/tw686x/tw686x-video.c 		vb2_buf = &vb->vb2_buf;
vb                167 drivers/media/pci/tw686x/tw686x-video.c 		phys = vb2_dma_contig_plane_dma_addr(&buf->vb.vb2_buf, 0);
vb                170 drivers/media/pci/tw686x/tw686x-video.c 		buf->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE;
vb                188 drivers/media/pci/tw686x/tw686x-video.c 	struct sg_table *vbuf = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0);
vb                242 drivers/media/pci/tw686x/tw686x-video.c 			vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                246 drivers/media/pci/tw686x/tw686x-video.c 		buf->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE;
vb                448 drivers/media/pci/tw686x/tw686x-video.c static void tw686x_buf_queue(struct vb2_buffer *vb)
vb                450 drivers/media/pci/tw686x/tw686x-video.c 	struct tw686x_video_channel *vc = vb2_get_drv_priv(vb->vb2_queue);
vb                454 drivers/media/pci/tw686x/tw686x-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                456 drivers/media/pci/tw686x/tw686x-video.c 		container_of(vbuf, struct tw686x_v4l2_buf, vb);
vb                463 drivers/media/pci/tw686x/tw686x-video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                483 drivers/media/pci/tw686x/tw686x-video.c 		vb2_buffer_done(&buf->vb.vb2_buf, state);
vb                488 drivers/media/pci/tw686x/tw686x-video.c 			vb2_buffer_done(&vc->curr_bufs[pb]->vb.vb2_buf, state);
vb                564 drivers/media/pci/tw686x/tw686x-video.c static int tw686x_buf_prepare(struct vb2_buffer *vb)
vb                566 drivers/media/pci/tw686x/tw686x-video.c 	struct tw686x_video_channel *vc = vb2_get_drv_priv(vb->vb2_queue);
vb                570 drivers/media/pci/tw686x/tw686x-video.c 	if (vb2_plane_size(vb, 0) < size)
vb                572 drivers/media/pci/tw686x/tw686x-video.c 	vb2_set_plane_payload(vb, 0, size);
vb                 61 drivers/media/pci/tw686x/tw686x.h 	struct vb2_v4l2_buffer vb;
vb                300 drivers/media/platform/am437x/am437x-vpfe.c struct vpfe_cap_buffer *to_vpfe_buffer(struct vb2_v4l2_buffer *vb)
vb                302 drivers/media/platform/am437x/am437x-vpfe.c 	return container_of(vb, struct vpfe_cap_buffer, vb);
vb               1250 drivers/media/platform/am437x/am437x-vpfe.c 	       vb2_dma_contig_plane_dma_addr(&vpfe->next_frm->vb.vb2_buf, 0));
vb               1257 drivers/media/platform/am437x/am437x-vpfe.c 	addr = vb2_dma_contig_plane_dma_addr(&vpfe->next_frm->vb.vb2_buf, 0) +
vb               1273 drivers/media/platform/am437x/am437x-vpfe.c 	vpfe->cur_frm->vb.vb2_buf.timestamp = ktime_get_ns();
vb               1274 drivers/media/platform/am437x/am437x-vpfe.c 	vpfe->cur_frm->vb.field = vpfe->fmt.fmt.pix.field;
vb               1275 drivers/media/platform/am437x/am437x-vpfe.c 	vpfe->cur_frm->vb.sequence = vpfe->sequence++;
vb               1276 drivers/media/platform/am437x/am437x-vpfe.c 	vb2_buffer_done(&vpfe->cur_frm->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb               1932 drivers/media/platform/am437x/am437x-vpfe.c static int vpfe_buffer_prepare(struct vb2_buffer *vb)
vb               1934 drivers/media/platform/am437x/am437x-vpfe.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1935 drivers/media/platform/am437x/am437x-vpfe.c 	struct vpfe_device *vpfe = vb2_get_drv_priv(vb->vb2_queue);
vb               1937 drivers/media/platform/am437x/am437x-vpfe.c 	vb2_set_plane_payload(vb, 0, vpfe->fmt.fmt.pix.sizeimage);
vb               1939 drivers/media/platform/am437x/am437x-vpfe.c 	if (vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0))
vb               1951 drivers/media/platform/am437x/am437x-vpfe.c static void vpfe_buffer_queue(struct vb2_buffer *vb)
vb               1953 drivers/media/platform/am437x/am437x-vpfe.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1954 drivers/media/platform/am437x/am437x-vpfe.c 	struct vpfe_device *vpfe = vb2_get_drv_priv(vb->vb2_queue);
vb               2000 drivers/media/platform/am437x/am437x-vpfe.c 	addr = vb2_dma_contig_plane_dma_addr(&vpfe->cur_frm->vb.vb2_buf, 0);
vb               2017 drivers/media/platform/am437x/am437x-vpfe.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED);
vb               2049 drivers/media/platform/am437x/am437x-vpfe.c 		vb2_buffer_done(&vpfe->cur_frm->vb.vb2_buf,
vb               2053 drivers/media/platform/am437x/am437x-vpfe.c 			vb2_buffer_done(&vpfe->cur_frm->vb.vb2_buf,
vb               2056 drivers/media/platform/am437x/am437x-vpfe.c 			vb2_buffer_done(&vpfe->next_frm->vb.vb2_buf,
vb               2064 drivers/media/platform/am437x/am437x-vpfe.c 		vb2_buffer_done(&vpfe->next_frm->vb.vb2_buf,
vb                102 drivers/media/platform/am437x/am437x-vpfe.h 	struct vb2_v4l2_buffer vb;
vb                200 drivers/media/platform/aspeed-video.c 	struct vb2_v4l2_buffer vb;
vb                205 drivers/media/platform/aspeed-video.c 	container_of((x), struct aspeed_video_buffer, vb)
vb                458 drivers/media/platform/aspeed-video.c 	addr = vb2_dma_contig_plane_dma_addr(&buf->vb.vb2_buf, 0);
vb                520 drivers/media/platform/aspeed-video.c 		vb2_buffer_done(&buf->vb.vb2_buf, state);
vb                583 drivers/media/platform/aspeed-video.c 			vb2_set_plane_payload(&buf->vb.vb2_buf, 0, frame_size);
vb                586 drivers/media/platform/aspeed-video.c 				buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                587 drivers/media/platform/aspeed-video.c 				buf->vb.sequence = video->sequence++;
vb                588 drivers/media/platform/aspeed-video.c 				buf->vb.field = V4L2_FIELD_NONE;
vb                589 drivers/media/platform/aspeed-video.c 				vb2_buffer_done(&buf->vb.vb2_buf,
vb               1418 drivers/media/platform/aspeed-video.c static int aspeed_video_buf_prepare(struct vb2_buffer *vb)
vb               1420 drivers/media/platform/aspeed-video.c 	struct aspeed_video *video = vb2_get_drv_priv(vb->vb2_queue);
vb               1422 drivers/media/platform/aspeed-video.c 	if (vb2_plane_size(vb, 0) < video->max_compressed_size)
vb               1474 drivers/media/platform/aspeed-video.c static void aspeed_video_buf_queue(struct vb2_buffer *vb)
vb               1477 drivers/media/platform/aspeed-video.c 	struct aspeed_video *video = vb2_get_drv_priv(vb->vb2_queue);
vb               1478 drivers/media/platform/aspeed-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                549 drivers/media/platform/atmel/atmel-isc-base.c static int isc_buffer_prepare(struct vb2_buffer *vb)
vb                551 drivers/media/platform/atmel/atmel-isc-base.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                552 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = vb2_get_drv_priv(vb->vb2_queue);
vb                555 drivers/media/platform/atmel/atmel-isc-base.c 	if (vb2_plane_size(vb, 0) < size) {
vb                557 drivers/media/platform/atmel/atmel-isc-base.c 			 vb2_plane_size(vb, 0), size);
vb                561 drivers/media/platform/atmel/atmel-isc-base.c 	vb2_set_plane_payload(vb, 0, size);
vb                609 drivers/media/platform/atmel/atmel-isc-base.c 	addr0 = vb2_dma_contig_plane_dma_addr(&isc->cur_frm->vb.vb2_buf, 0);
vb                821 drivers/media/platform/atmel/atmel-isc-base.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED);
vb                857 drivers/media/platform/atmel/atmel-isc-base.c 		vb2_buffer_done(&isc->cur_frm->vb.vb2_buf,
vb                862 drivers/media/platform/atmel/atmel-isc-base.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                867 drivers/media/platform/atmel/atmel-isc-base.c static void isc_buffer_queue(struct vb2_buffer *vb)
vb                869 drivers/media/platform/atmel/atmel-isc-base.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                870 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_buffer *buf = container_of(vbuf, struct isc_buffer, vb);
vb                871 drivers/media/platform/atmel/atmel-isc-base.c 	struct isc_device *isc = vb2_get_drv_priv(vb->vb2_queue);
vb                876 drivers/media/platform/atmel/atmel-isc-base.c 		vb2_is_streaming(vb->vb2_queue)) {
vb               1594 drivers/media/platform/atmel/atmel-isc-base.c 			struct vb2_v4l2_buffer *vbuf = &isc->cur_frm->vb;
vb               1595 drivers/media/platform/atmel/atmel-isc-base.c 			struct vb2_buffer *vb = &vbuf->vb2_buf;
vb               1597 drivers/media/platform/atmel/atmel-isc-base.c 			vb->timestamp = ktime_get_ns();
vb               1599 drivers/media/platform/atmel/atmel-isc-base.c 			vb2_buffer_done(vb, VB2_BUF_STATE_DONE);
vb                 37 drivers/media/platform/atmel/atmel-isc.h 	struct vb2_v4l2_buffer  vb;
vb                 65 drivers/media/platform/atmel/atmel-isi.c 	struct vb2_v4l2_buffer vb;
vb                177 drivers/media/platform/atmel/atmel-isi.c 		struct vb2_v4l2_buffer *vbuf = &isi->active->vb;
vb                295 drivers/media/platform/atmel/atmel-isi.c static int buffer_init(struct vb2_buffer *vb)
vb                297 drivers/media/platform/atmel/atmel-isi.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                298 drivers/media/platform/atmel/atmel-isi.c 	struct frame_buffer *buf = container_of(vbuf, struct frame_buffer, vb);
vb                306 drivers/media/platform/atmel/atmel-isi.c static int buffer_prepare(struct vb2_buffer *vb)
vb                308 drivers/media/platform/atmel/atmel-isi.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                309 drivers/media/platform/atmel/atmel-isi.c 	struct frame_buffer *buf = container_of(vbuf, struct frame_buffer, vb);
vb                310 drivers/media/platform/atmel/atmel-isi.c 	struct atmel_isi *isi = vb2_get_drv_priv(vb->vb2_queue);
vb                316 drivers/media/platform/atmel/atmel-isi.c 	if (vb2_plane_size(vb, 0) < size) {
vb                318 drivers/media/platform/atmel/atmel-isi.c 				__func__, vb2_plane_size(vb, 0), size);
vb                322 drivers/media/platform/atmel/atmel-isi.c 	vb2_set_plane_payload(vb, 0, size);
vb                337 drivers/media/platform/atmel/atmel-isi.c 					vb2_dma_contig_plane_dma_addr(vb, 0);
vb                347 drivers/media/platform/atmel/atmel-isi.c static void buffer_cleanup(struct vb2_buffer *vb)
vb                349 drivers/media/platform/atmel/atmel-isi.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                350 drivers/media/platform/atmel/atmel-isi.c 	struct atmel_isi *isi = vb2_get_drv_priv(vb->vb2_queue);
vb                351 drivers/media/platform/atmel/atmel-isi.c 	struct frame_buffer *buf = container_of(vbuf, struct frame_buffer, vb);
vb                401 drivers/media/platform/atmel/atmel-isi.c static void buffer_queue(struct vb2_buffer *vb)
vb                403 drivers/media/platform/atmel/atmel-isi.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                404 drivers/media/platform/atmel/atmel-isi.c 	struct atmel_isi *isi = vb2_get_drv_priv(vb->vb2_queue);
vb                405 drivers/media/platform/atmel/atmel-isi.c 	struct frame_buffer *buf = container_of(vbuf, struct frame_buffer, vb);
vb                413 drivers/media/platform/atmel/atmel-isi.c 		if (vb2_is_streaming(vb->vb2_queue))
vb                466 drivers/media/platform/atmel/atmel-isi.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED);
vb                491 drivers/media/platform/atmel/atmel-isi.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                373 drivers/media/platform/coda/coda-bit.c 						       vb);
vb                422 drivers/media/platform/coda/coda-bit.c 						       vb);
vb                623 drivers/media/platform/coda/coda-bit.c 	struct vb2_buffer *vb = &buf->vb2_buf;
vb                632 drivers/media/platform/coda/coda-bit.c 		memset(vb2_plane_vaddr(vb, 0), 0, 64);
vb                634 drivers/media/platform/coda/coda-bit.c 	coda_write(dev, vb2_dma_contig_plane_dma_addr(vb, 0),
vb                636 drivers/media/platform/coda/coda-bit.c 	bufsize = vb2_plane_size(vb, 0);
vb                666 drivers/media/platform/coda/coda-bit.c 			if (((char *)vb2_plane_vaddr(vb, 0))[i] != 0)
vb                673 drivers/media/platform/coda/coda-bit.c 	memcpy(header, vb2_plane_vaddr(vb, 0), *size);
vb               1598 drivers/media/platform/coda/coda-common.c static int coda_buf_prepare(struct vb2_buffer *vb)
vb               1600 drivers/media/platform/coda/coda-common.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1601 drivers/media/platform/coda/coda-common.c 	struct coda_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1604 drivers/media/platform/coda/coda-common.c 	q_data = get_q_data(ctx, vb->vb2_queue->type);
vb               1605 drivers/media/platform/coda/coda-common.c 	if (V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) {
vb               1615 drivers/media/platform/coda/coda-common.c 	if (vb2_plane_size(vb, 0) < q_data->sizeimage) {
vb               1618 drivers/media/platform/coda/coda-common.c 			  __func__, vb2_plane_size(vb, 0),
vb               1729 drivers/media/platform/coda/coda-common.c static void coda_buf_queue(struct vb2_buffer *vb)
vb               1731 drivers/media/platform/coda/coda-common.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1732 drivers/media/platform/coda/coda-common.c 	struct coda_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1733 drivers/media/platform/coda/coda-common.c 	struct vb2_queue *vq = vb->vb2_queue;
vb               1736 drivers/media/platform/coda/coda-common.c 	q_data = get_q_data(ctx, vb->vb2_queue->type);
vb               1747 drivers/media/platform/coda/coda-common.c 		if (vb2_get_plane_payload(vb, 0) == 0)
vb               1758 drivers/media/platform/coda/coda-common.c 				coda_sps_parse_profile(ctx, vb);
vb               1767 drivers/media/platform/coda/coda-common.c 		if (vb2_is_streaming(vb->vb2_queue))
vb               1777 drivers/media/platform/coda/coda-common.c 			if (vb2_is_streaming(vb->vb2_queue) &&
vb               1919 drivers/media/platform/coda/coda-common.c 			v4l2_m2m_buf_done(&m2m_buf->vb, VB2_BUF_STATE_DONE);
vb               1928 drivers/media/platform/coda/coda-common.c 			v4l2_m2m_buf_done(&m2m_buf->vb, VB2_BUF_STATE_QUEUED);
vb                 31 drivers/media/platform/coda/coda-h264.c int coda_sps_parse_profile(struct coda_ctx *ctx, struct vb2_buffer *vb)
vb                 33 drivers/media/platform/coda/coda-h264.c 	const u8 *buf = vb2_plane_vaddr(vb, 0);
vb                 34 drivers/media/platform/coda/coda-h264.c 	const u8 *end = buf + vb2_get_plane_payload(vb, 0);
vb                177 drivers/media/platform/coda/coda-jpeg.c bool coda_jpeg_check_buffer(struct coda_ctx *ctx, struct vb2_buffer *vb)
vb                179 drivers/media/platform/coda/coda-jpeg.c 	void *vaddr = vb2_plane_vaddr(vb, 0);
vb                187 drivers/media/platform/coda/coda-jpeg.c 	len = vb2_get_plane_payload(vb, 0);
vb                193 drivers/media/platform/coda/coda-jpeg.c 				vb2_set_plane_payload(vb, 0, len - i);
vb                350 drivers/media/platform/coda/coda.h int coda_sps_parse_profile(struct coda_ctx *ctx, struct vb2_buffer *vb);
vb                364 drivers/media/platform/coda/coda.h bool coda_jpeg_check_buffer(struct coda_ctx *ctx, struct vb2_buffer *vb);
vb                 68 drivers/media/platform/davinci/vpbe_display.c 	layer->cur_frm->vb.vb2_buf.timestamp = ktime_get_ns();
vb                 69 drivers/media/platform/davinci/vpbe_display.c 	vb2_buffer_done(&layer->cur_frm->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                 98 drivers/media/platform/davinci/vpbe_display.c 	layer->next_frm->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE;
vb                 99 drivers/media/platform/davinci/vpbe_display.c 	addr = vb2_dma_contig_plane_dma_addr(&layer->next_frm->vb.vb2_buf, 0);
vb                194 drivers/media/platform/davinci/vpbe_display.c static int vpbe_buffer_prepare(struct vb2_buffer *vb)
vb                196 drivers/media/platform/davinci/vpbe_display.c 	struct vb2_queue *q = vb->vb2_queue;
vb                204 drivers/media/platform/davinci/vpbe_display.c 	vb2_set_plane_payload(vb, 0, layer->pix_fmt.sizeimage);
vb                205 drivers/media/platform/davinci/vpbe_display.c 	if (vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0))
vb                208 drivers/media/platform/davinci/vpbe_display.c 	addr = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                250 drivers/media/platform/davinci/vpbe_display.c static void vpbe_buffer_queue(struct vb2_buffer *vb)
vb                252 drivers/media/platform/davinci/vpbe_display.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                255 drivers/media/platform/davinci/vpbe_display.c 				struct vpbe_disp_buffer, vb);
vb                256 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_layer *layer = vb2_get_drv_priv(vb->vb2_queue);
vb                284 drivers/media/platform/davinci/vpbe_display.c 	layer->cur_frm->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE;
vb                293 drivers/media/platform/davinci/vpbe_display.c 		vb2_buffer_done(&layer->cur_frm->vb.vb2_buf,
vb                297 drivers/media/platform/davinci/vpbe_display.c 			vb2_buffer_done(&buf->vb.vb2_buf,
vb                328 drivers/media/platform/davinci/vpbe_display.c 		vb2_buffer_done(&layer->cur_frm->vb.vb2_buf,
vb                332 drivers/media/platform/davinci/vpbe_display.c 			vb2_buffer_done(&layer->cur_frm->vb.vb2_buf,
vb                335 drivers/media/platform/davinci/vpbe_display.c 			vb2_buffer_done(&layer->next_frm->vb.vb2_buf,
vb                343 drivers/media/platform/davinci/vpbe_display.c 		vb2_buffer_done(&layer->next_frm->vb.vb2_buf,
vb                381 drivers/media/platform/davinci/vpbe_display.c 	addr = vb2_dma_contig_plane_dma_addr(&layer->cur_frm->vb.vb2_buf, 0);
vb               1176 drivers/media/platform/davinci/vpfe_capture.c 				struct videobuf_buffer *vb,
vb               1187 drivers/media/platform/davinci/vpfe_capture.c 	if (VIDEOBUF_NEEDS_INIT == vb->state) {
vb               1188 drivers/media/platform/davinci/vpfe_capture.c 		vb->width = vpfe_dev->fmt.fmt.pix.width;
vb               1189 drivers/media/platform/davinci/vpfe_capture.c 		vb->height = vpfe_dev->fmt.fmt.pix.height;
vb               1190 drivers/media/platform/davinci/vpfe_capture.c 		vb->size = vpfe_dev->fmt.fmt.pix.sizeimage;
vb               1191 drivers/media/platform/davinci/vpfe_capture.c 		vb->field = field;
vb               1193 drivers/media/platform/davinci/vpfe_capture.c 		ret = videobuf_iolock(vq, vb, NULL);
vb               1197 drivers/media/platform/davinci/vpfe_capture.c 		addr = videobuf_to_dma_contig(vb);
vb               1202 drivers/media/platform/davinci/vpfe_capture.c 		vb->state = VIDEOBUF_PREPARED;
vb               1208 drivers/media/platform/davinci/vpfe_capture.c 				struct videobuf_buffer *vb)
vb               1219 drivers/media/platform/davinci/vpfe_capture.c 	list_add_tail(&vb->queue, &vpfe_dev->dma_queue);
vb               1223 drivers/media/platform/davinci/vpfe_capture.c 	vb->state = VIDEOBUF_QUEUED;
vb               1227 drivers/media/platform/davinci/vpfe_capture.c 				  struct videobuf_buffer *vb)
vb               1242 drivers/media/platform/davinci/vpfe_capture.c 	videobuf_dma_contig_free(vq, vb);
vb               1243 drivers/media/platform/davinci/vpfe_capture.c 	vb->state = VIDEOBUF_NEEDS_INIT;
vb                 55 drivers/media/platform/davinci/vpif_capture.c struct vpif_cap_buffer *to_vpif_buffer(struct vb2_v4l2_buffer *vb)
vb                 57 drivers/media/platform/davinci/vpif_capture.c 	return container_of(vb, struct vpif_cap_buffer, vb);
vb                 68 drivers/media/platform/davinci/vpif_capture.c static int vpif_buffer_prepare(struct vb2_buffer *vb)
vb                 70 drivers/media/platform/davinci/vpif_capture.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                 71 drivers/media/platform/davinci/vpif_capture.c 	struct vb2_queue *q = vb->vb2_queue;
vb                 80 drivers/media/platform/davinci/vpif_capture.c 	vb2_set_plane_payload(vb, 0, common->fmt.fmt.pix.sizeimage);
vb                 81 drivers/media/platform/davinci/vpif_capture.c 	if (vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0))
vb                 86 drivers/media/platform/davinci/vpif_capture.c 	addr = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                141 drivers/media/platform/davinci/vpif_capture.c static void vpif_buffer_queue(struct vb2_buffer *vb)
vb                143 drivers/media/platform/davinci/vpif_capture.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                144 drivers/media/platform/davinci/vpif_capture.c 	struct channel_obj *ch = vb2_get_drv_priv(vb->vb2_queue);
vb                212 drivers/media/platform/davinci/vpif_capture.c 	addr = vb2_dma_contig_plane_dma_addr(&common->cur_frm->vb.vb2_buf, 0);
vb                242 drivers/media/platform/davinci/vpif_capture.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED);
vb                284 drivers/media/platform/davinci/vpif_capture.c 		vb2_buffer_done(&common->cur_frm->vb.vb2_buf,
vb                288 drivers/media/platform/davinci/vpif_capture.c 			vb2_buffer_done(&common->cur_frm->vb.vb2_buf,
vb                291 drivers/media/platform/davinci/vpif_capture.c 			vb2_buffer_done(&common->next_frm->vb.vb2_buf,
vb                300 drivers/media/platform/davinci/vpif_capture.c 		vb2_buffer_done(&common->next_frm->vb.vb2_buf,
vb                326 drivers/media/platform/davinci/vpif_capture.c 	common->cur_frm->vb.vb2_buf.timestamp = ktime_get_ns();
vb                327 drivers/media/platform/davinci/vpif_capture.c 	vb2_buffer_done(&common->cur_frm->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                350 drivers/media/platform/davinci/vpif_capture.c 	addr = vb2_dma_contig_plane_dma_addr(&common->next_frm->vb.vb2_buf, 0);
vb                 42 drivers/media/platform/davinci/vpif_capture.h 	struct vb2_v4l2_buffer vb;
vb                 58 drivers/media/platform/davinci/vpif_display.c struct vpif_disp_buffer *to_vpif_buffer(struct vb2_v4l2_buffer *vb)
vb                 60 drivers/media/platform/davinci/vpif_display.c 	return container_of(vb, struct vpif_disp_buffer, vb);
vb                 71 drivers/media/platform/davinci/vpif_display.c static int vpif_buffer_prepare(struct vb2_buffer *vb)
vb                 73 drivers/media/platform/davinci/vpif_display.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                 74 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = vb2_get_drv_priv(vb->vb2_queue);
vb                 79 drivers/media/platform/davinci/vpif_display.c 	vb2_set_plane_payload(vb, 0, common->fmt.fmt.pix.sizeimage);
vb                 80 drivers/media/platform/davinci/vpif_display.c 	if (vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0))
vb                 85 drivers/media/platform/davinci/vpif_display.c 	if (vb->vb2_queue->type != V4L2_BUF_TYPE_SLICED_VBI_OUTPUT) {
vb                 86 drivers/media/platform/davinci/vpif_display.c 		unsigned long addr = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                143 drivers/media/platform/davinci/vpif_display.c static void vpif_buffer_queue(struct vb2_buffer *vb)
vb                145 drivers/media/platform/davinci/vpif_display.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                147 drivers/media/platform/davinci/vpif_display.c 	struct channel_obj *ch = vb2_get_drv_priv(vb->vb2_queue);
vb                205 drivers/media/platform/davinci/vpif_display.c 	addr = vb2_dma_contig_plane_dma_addr(&common->cur_frm->vb.vb2_buf, 0);
vb                237 drivers/media/platform/davinci/vpif_display.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED);
vb                272 drivers/media/platform/davinci/vpif_display.c 		vb2_buffer_done(&common->cur_frm->vb.vb2_buf,
vb                276 drivers/media/platform/davinci/vpif_display.c 			vb2_buffer_done(&common->cur_frm->vb.vb2_buf,
vb                279 drivers/media/platform/davinci/vpif_display.c 			vb2_buffer_done(&common->next_frm->vb.vb2_buf,
vb                287 drivers/media/platform/davinci/vpif_display.c 		vb2_buffer_done(&common->next_frm->vb.vb2_buf,
vb                316 drivers/media/platform/davinci/vpif_display.c 	addr = vb2_dma_contig_plane_dma_addr(&common->next_frm->vb.vb2_buf, 0);
vb                334 drivers/media/platform/davinci/vpif_display.c 		common->cur_frm->vb.vb2_buf.timestamp = ktime_get_ns();
vb                336 drivers/media/platform/davinci/vpif_display.c 		vb2_buffer_done(&common->cur_frm->vb.vb2_buf,
vb                390 drivers/media/platform/davinci/vpif_display.c 				common->cur_frm->vb.vb2_buf.timestamp =
vb                392 drivers/media/platform/davinci/vpif_display.c 				vb2_buffer_done(&common->cur_frm->vb.vb2_buf,
vb                 65 drivers/media/platform/davinci/vpif_display.h 	struct vb2_v4l2_buffer vb;
vb                800 drivers/media/platform/exynos-gsc/gsc-core.c int gsc_prepare_addr(struct gsc_ctx *ctx, struct vb2_buffer *vb,
vb                806 drivers/media/platform/exynos-gsc/gsc-core.c 	if ((vb == NULL) || (frame == NULL))
vb                814 drivers/media/platform/exynos-gsc/gsc-core.c 	addr->y = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                843 drivers/media/platform/exynos-gsc/gsc-core.c 			addr->cb = vb2_dma_contig_plane_dma_addr(vb, 1);
vb                846 drivers/media/platform/exynos-gsc/gsc-core.c 			addr->cr = vb2_dma_contig_plane_dma_addr(vb, 2);
vb                133 drivers/media/platform/exynos-gsc/gsc-core.h 	struct vb2_v4l2_buffer vb;
vb                403 drivers/media/platform/exynos-gsc/gsc-core.h int gsc_prepare_addr(struct gsc_ctx *ctx, struct vb2_buffer *vb,
vb                248 drivers/media/platform/exynos-gsc/gsc-m2m.c static int gsc_m2m_buf_prepare(struct vb2_buffer *vb)
vb                250 drivers/media/platform/exynos-gsc/gsc-m2m.c 	struct gsc_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                254 drivers/media/platform/exynos-gsc/gsc-m2m.c 	frame = ctx_get_frame(ctx, vb->vb2_queue->type);
vb                258 drivers/media/platform/exynos-gsc/gsc-m2m.c 	if (!V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) {
vb                260 drivers/media/platform/exynos-gsc/gsc-m2m.c 			vb2_set_plane_payload(vb, i, frame->payload[i]);
vb                266 drivers/media/platform/exynos-gsc/gsc-m2m.c static void gsc_m2m_buf_queue(struct vb2_buffer *vb)
vb                268 drivers/media/platform/exynos-gsc/gsc-m2m.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                269 drivers/media/platform/exynos-gsc/gsc-m2m.c 	struct gsc_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                103 drivers/media/platform/exynos4-is/fimc-capture.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                111 drivers/media/platform/exynos4-is/fimc-capture.c 			vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                194 drivers/media/platform/exynos4-is/fimc-capture.c 		v_buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                195 drivers/media/platform/exynos4-is/fimc-capture.c 		v_buf->vb.sequence = cap->frame_count++;
vb                197 drivers/media/platform/exynos4-is/fimc-capture.c 		vb2_buffer_done(&v_buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                228 drivers/media/platform/exynos4-is/fimc-capture.c 			vaddr = vb2_plane_vaddr(&v_buf->vb.vb2_buf, plane);
vb                310 drivers/media/platform/exynos4-is/fimc-capture.c static void buffer_queue(struct vb2_buffer *vb);
vb                333 drivers/media/platform/exynos4-is/fimc-capture.c 		buffer_queue(&buf->vb.vb2_buf);
vb                375 drivers/media/platform/exynos4-is/fimc-capture.c static int buffer_prepare(struct vb2_buffer *vb)
vb                377 drivers/media/platform/exynos4-is/fimc-capture.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                387 drivers/media/platform/exynos4-is/fimc-capture.c 		if (vb2_plane_size(vb, i) < size) {
vb                390 drivers/media/platform/exynos4-is/fimc-capture.c 				 vb2_plane_size(vb, i), size);
vb                393 drivers/media/platform/exynos4-is/fimc-capture.c 		vb2_set_plane_payload(vb, i, size);
vb                399 drivers/media/platform/exynos4-is/fimc-capture.c static void buffer_queue(struct vb2_buffer *vb)
vb                401 drivers/media/platform/exynos4-is/fimc-capture.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                403 drivers/media/platform/exynos4-is/fimc-capture.c 		= container_of(vbuf, struct fimc_vid_buffer, vb);
vb                404 drivers/media/platform/exynos4-is/fimc-capture.c 	struct fimc_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                412 drivers/media/platform/exynos4-is/fimc-capture.c 	fimc_prepare_addr(ctx, &buf->vb.vb2_buf, &ctx->d_frame, &buf->paddr);
vb               1466 drivers/media/platform/exynos4-is/fimc-capture.c 			vb2_set_plane_payload(&buf->vb.vb2_buf, 0,
vb                327 drivers/media/platform/exynos4-is/fimc-core.c int fimc_prepare_addr(struct fimc_ctx *ctx, struct vb2_buffer *vb,
vb                333 drivers/media/platform/exynos4-is/fimc-core.c 	if (vb == NULL || frame == NULL)
vb                341 drivers/media/platform/exynos4-is/fimc-core.c 	paddr->y = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                369 drivers/media/platform/exynos4-is/fimc-core.c 			paddr->cb = vb2_dma_contig_plane_dma_addr(vb, 1);
vb                372 drivers/media/platform/exynos4-is/fimc-core.c 			paddr->cr = vb2_dma_contig_plane_dma_addr(vb, 2);
vb                224 drivers/media/platform/exynos4-is/fimc-core.h 	struct vb2_v4l2_buffer vb;
vb                633 drivers/media/platform/exynos4-is/fimc-core.h int fimc_prepare_addr(struct fimc_ctx *ctx, struct vb2_buffer *vb,
vb                151 drivers/media/platform/exynos4-is/fimc-isp-video.c static int isp_video_capture_buffer_prepare(struct vb2_buffer *vb)
vb                153 drivers/media/platform/exynos4-is/fimc-isp-video.c 	struct fimc_isp *isp = vb2_get_drv_priv(vb->vb2_queue);
vb                163 drivers/media/platform/exynos4-is/fimc-isp-video.c 		if (vb2_plane_size(vb, i) < size) {
vb                166 drivers/media/platform/exynos4-is/fimc-isp-video.c 				 vb2_plane_size(vb, i), size);
vb                169 drivers/media/platform/exynos4-is/fimc-isp-video.c 		vb2_set_plane_payload(vb, i, size);
vb                174 drivers/media/platform/exynos4-is/fimc-isp-video.c 		dma_addr_t dma_addr = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                186 drivers/media/platform/exynos4-is/fimc-isp-video.c static void isp_video_capture_buffer_queue(struct vb2_buffer *vb)
vb                188 drivers/media/platform/exynos4-is/fimc-isp-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                189 drivers/media/platform/exynos4-is/fimc-isp-video.c 	struct fimc_isp *isp = vb2_get_drv_priv(vb->vb2_queue);
vb                209 drivers/media/platform/exynos4-is/fimc-isp-video.c 			ivb->dma_addr[i] = vb2_dma_contig_plane_dma_addr(vb, i);
vb                215 drivers/media/platform/exynos4-is/fimc-isp-video.c 				buf_index, ivb->index, i, vb->index,
vb                227 drivers/media/platform/exynos4-is/fimc-isp-video.c 		isp_video_capture_start_streaming(vb->vb2_queue, 0);
vb                245 drivers/media/platform/exynos4-is/fimc-isp-video.c 	vbuf = &video->buffers[buf_index]->vb;
vb                102 drivers/media/platform/exynos4-is/fimc-isp.h 	struct vb2_v4l2_buffer vb;
vb                107 drivers/media/platform/exynos4-is/fimc-isp.h #define to_isp_video_buf(_b) container_of(_b, struct isp_video_buf, vb)
vb                193 drivers/media/platform/exynos4-is/fimc-lite.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                201 drivers/media/platform/exynos4-is/fimc-lite.c 			vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                285 drivers/media/platform/exynos4-is/fimc-lite.c 		vbuf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                286 drivers/media/platform/exynos4-is/fimc-lite.c 		vbuf->vb.sequence = fimc->frame_count++;
vb                288 drivers/media/platform/exynos4-is/fimc-lite.c 		vb2_buffer_done(&vbuf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                378 drivers/media/platform/exynos4-is/fimc-lite.c static int buffer_prepare(struct vb2_buffer *vb)
vb                380 drivers/media/platform/exynos4-is/fimc-lite.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                390 drivers/media/platform/exynos4-is/fimc-lite.c 		if (vb2_plane_size(vb, i) < size) {
vb                393 drivers/media/platform/exynos4-is/fimc-lite.c 				 vb2_plane_size(vb, i), size);
vb                396 drivers/media/platform/exynos4-is/fimc-lite.c 		vb2_set_plane_payload(vb, i, size);
vb                402 drivers/media/platform/exynos4-is/fimc-lite.c static void buffer_queue(struct vb2_buffer *vb)
vb                404 drivers/media/platform/exynos4-is/fimc-lite.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                406 drivers/media/platform/exynos4-is/fimc-lite.c 		= container_of(vbuf, struct flite_buffer, vb);
vb                407 drivers/media/platform/exynos4-is/fimc-lite.c 	struct fimc_lite *fimc = vb2_get_drv_priv(vb->vb2_queue);
vb                411 drivers/media/platform/exynos4-is/fimc-lite.c 	buf->paddr = vb2_dma_contig_plane_dma_addr(vb, 0);
vb               1590 drivers/media/platform/exynos4-is/fimc-lite.c 		buffer_queue(&buf->vb.vb2_buf);
vb                100 drivers/media/platform/exynos4-is/fimc-lite.h 	struct vb2_v4l2_buffer vb;
vb                195 drivers/media/platform/exynos4-is/fimc-m2m.c static int fimc_buf_prepare(struct vb2_buffer *vb)
vb                197 drivers/media/platform/exynos4-is/fimc-m2m.c 	struct fimc_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                201 drivers/media/platform/exynos4-is/fimc-m2m.c 	frame = ctx_get_frame(ctx, vb->vb2_queue->type);
vb                206 drivers/media/platform/exynos4-is/fimc-m2m.c 		vb2_set_plane_payload(vb, i, frame->payload[i]);
vb                211 drivers/media/platform/exynos4-is/fimc-m2m.c static void fimc_buf_queue(struct vb2_buffer *vb)
vb                213 drivers/media/platform/exynos4-is/fimc-m2m.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                214 drivers/media/platform/exynos4-is/fimc-m2m.c 	struct fimc_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                 82 drivers/media/platform/fsl-viu.c 	struct videobuf_buffer vb;
vb                296 drivers/media/platform/fsl-viu.c 		buf = list_entry(vidq->active.next, struct viu_buf, vb.queue);
vb                298 drivers/media/platform/fsl-viu.c 			buf, buf->vb.i);
vb                303 drivers/media/platform/fsl-viu.c 		list_for_each_entry_safe(buf, prev, &vidq->active, vb.queue) {
vb                304 drivers/media/platform/fsl-viu.c 			list_del(&buf->vb.queue);
vb                305 drivers/media/platform/fsl-viu.c 			buf->vb.state = VIDEOBUF_ERROR;
vb                306 drivers/media/platform/fsl-viu.c 			wake_up(&buf->vb.done);
vb                316 drivers/media/platform/fsl-viu.c 		buf = list_entry(vidq->queued.next, struct viu_buf, vb.queue);
vb                318 drivers/media/platform/fsl-viu.c 			list_move_tail(&buf->vb.queue, &vidq->active);
vb                324 drivers/media/platform/fsl-viu.c 			buf->vb.state = VIDEOBUF_ACTIVE;
vb                327 drivers/media/platform/fsl-viu.c 				buf, buf->vb.i);
vb                329 drivers/media/platform/fsl-viu.c 		} else if (prev->vb.width  == buf->vb.width  &&
vb                330 drivers/media/platform/fsl-viu.c 			   prev->vb.height == buf->vb.height &&
vb                332 drivers/media/platform/fsl-viu.c 			list_move_tail(&buf->vb.queue, &vidq->active);
vb                333 drivers/media/platform/fsl-viu.c 			buf->vb.state = VIDEOBUF_ACTIVE;
vb                335 drivers/media/platform/fsl-viu.c 				buf, buf->vb.i);
vb                350 drivers/media/platform/fsl-viu.c 		buf = list_entry(vidq->active.next, struct viu_buf, vb.queue);
vb                351 drivers/media/platform/fsl-viu.c 		list_del(&buf->vb.queue);
vb                352 drivers/media/platform/fsl-viu.c 		buf->vb.state = VIDEOBUF_ERROR;
vb                353 drivers/media/platform/fsl-viu.c 		wake_up(&buf->vb.done);
vb                354 drivers/media/platform/fsl-viu.c 		dprintk(1, "viu/0: [%p/%d] timeout\n", buf, buf->vb.i);
vb                381 drivers/media/platform/fsl-viu.c 	struct videobuf_buffer *vb = &buf->vb;
vb                386 drivers/media/platform/fsl-viu.c 	videobuf_waiton(vq, &buf->vb, 0, 0);
vb                389 drivers/media/platform/fsl-viu.c 		vaddr = vq->int_ops->vaddr(vb);
vb                392 drivers/media/platform/fsl-viu.c 		videobuf_dma_contig_free(vq, &buf->vb);
vb                394 drivers/media/platform/fsl-viu.c 	buf->vb.state = VIDEOBUF_NEEDS_INIT;
vb                403 drivers/media/platform/fsl-viu.c 	reg_val.field_base_addr = videobuf_to_dma_contig(&buf->vb);
vb                406 drivers/media/platform/fsl-viu.c 		buf, buf->vb.i, (unsigned long)reg_val.field_base_addr);
vb                414 drivers/media/platform/fsl-viu.c 		reg_val.dma_inc = buf->vb.width * 2;
vb                418 drivers/media/platform/fsl-viu.c 		reg_val.dma_inc = buf->vb.width * 4;
vb                427 drivers/media/platform/fsl-viu.c 	reg_val.picture_count = (buf->vb.height / 2) << 16 |
vb                428 drivers/media/platform/fsl-viu.c 				buf->vb.width;
vb                432 drivers/media/platform/fsl-viu.c 	buf->vb.state = VIDEOBUF_ACTIVE;
vb                433 drivers/media/platform/fsl-viu.c 	dev->capfield = buf->vb.field;
vb                436 drivers/media/platform/fsl-viu.c 	if (!V4L2_FIELD_HAS_BOTH(buf->vb.field))
vb                447 drivers/media/platform/fsl-viu.c 			  struct videobuf_buffer *vb,
vb                451 drivers/media/platform/fsl-viu.c 	struct viu_buf *buf = container_of(vb, struct viu_buf, vb);
vb                459 drivers/media/platform/fsl-viu.c 	buf->vb.size = (fh->width * fh->height * fh->fmt->depth) >> 3;
vb                460 drivers/media/platform/fsl-viu.c 	if (buf->vb.baddr != 0 && buf->vb.bsize < buf->vb.size)
vb                464 drivers/media/platform/fsl-viu.c 	    buf->vb.width  != fh->width  ||
vb                465 drivers/media/platform/fsl-viu.c 	    buf->vb.height != fh->height ||
vb                466 drivers/media/platform/fsl-viu.c 	    buf->vb.field  != field) {
vb                468 drivers/media/platform/fsl-viu.c 		buf->vb.width  = fh->width;
vb                469 drivers/media/platform/fsl-viu.c 		buf->vb.height = fh->height;
vb                470 drivers/media/platform/fsl-viu.c 		buf->vb.field  = field;
vb                473 drivers/media/platform/fsl-viu.c 	if (buf->vb.state == VIDEOBUF_NEEDS_INIT) {
vb                474 drivers/media/platform/fsl-viu.c 		rc = videobuf_iolock(vq, &buf->vb, NULL);
vb                478 drivers/media/platform/fsl-viu.c 		buf->vb.width  = fh->width;
vb                479 drivers/media/platform/fsl-viu.c 		buf->vb.height = fh->height;
vb                480 drivers/media/platform/fsl-viu.c 		buf->vb.field  = field;
vb                484 drivers/media/platform/fsl-viu.c 	buf->vb.state = VIDEOBUF_PREPARED;
vb                492 drivers/media/platform/fsl-viu.c static void buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb)
vb                494 drivers/media/platform/fsl-viu.c 	struct viu_buf       *buf     = container_of(vb, struct viu_buf, vb);
vb                501 drivers/media/platform/fsl-viu.c 		dprintk(1, "adding vb queue=%p\n", &buf->vb.queue);
vb                507 drivers/media/platform/fsl-viu.c 		list_add_tail(&buf->vb.queue, &vidq->queued);
vb                508 drivers/media/platform/fsl-viu.c 		buf->vb.state = VIDEOBUF_QUEUED;
vb                510 drivers/media/platform/fsl-viu.c 			buf, buf->vb.i);
vb                512 drivers/media/platform/fsl-viu.c 		dprintk(1, "adding vb active=%p\n", &buf->vb.queue);
vb                513 drivers/media/platform/fsl-viu.c 		list_add_tail(&buf->vb.queue, &vidq->active);
vb                514 drivers/media/platform/fsl-viu.c 		buf->vb.state = VIDEOBUF_ACTIVE;
vb                517 drivers/media/platform/fsl-viu.c 			buf, buf->vb.i);
vb                521 drivers/media/platform/fsl-viu.c 		dprintk(1, "adding vb queue2=%p\n", &buf->vb.queue);
vb                522 drivers/media/platform/fsl-viu.c 		prev = list_entry(vidq->active.prev, struct viu_buf, vb.queue);
vb                523 drivers/media/platform/fsl-viu.c 		if (prev->vb.width  == buf->vb.width  &&
vb                524 drivers/media/platform/fsl-viu.c 		    prev->vb.height == buf->vb.height &&
vb                526 drivers/media/platform/fsl-viu.c 			list_add_tail(&buf->vb.queue, &vidq->active);
vb                527 drivers/media/platform/fsl-viu.c 			buf->vb.state = VIDEOBUF_ACTIVE;
vb                529 drivers/media/platform/fsl-viu.c 				buf, buf->vb.i);
vb                531 drivers/media/platform/fsl-viu.c 			list_add_tail(&buf->vb.queue, &vidq->queued);
vb                532 drivers/media/platform/fsl-viu.c 			buf->vb.state = VIDEOBUF_QUEUED;
vb                534 drivers/media/platform/fsl-viu.c 				buf, buf->vb.i);
vb                540 drivers/media/platform/fsl-viu.c 				struct videobuf_buffer *vb)
vb                542 drivers/media/platform/fsl-viu.c 	struct viu_buf *buf  = container_of(vb, struct viu_buf, vb);
vb                964 drivers/media/platform/fsl-viu.c 					vb.queue);
vb                969 drivers/media/platform/fsl-viu.c 					vb.queue);
vb                970 drivers/media/platform/fsl-viu.c 		list_del(&buf->vb.queue);
vb                973 drivers/media/platform/fsl-viu.c 		list_add_tail(&buf->vb.queue, &vidq->active);
vb                974 drivers/media/platform/fsl-viu.c 		buf->vb.state = VIDEOBUF_ACTIVE;
vb               1075 drivers/media/platform/fsl-viu.c 				 struct viu_buf, vb.queue);
vb               1077 drivers/media/platform/fsl-viu.c 			buf, buf->vb.i,
vb               1078 drivers/media/platform/fsl-viu.c 			(unsigned long)videobuf_to_dma_contig(&buf->vb),
vb               1081 drivers/media/platform/fsl-viu.c 		if (waitqueue_active(&buf->vb.done)) {
vb               1082 drivers/media/platform/fsl-viu.c 			list_del(&buf->vb.queue);
vb               1083 drivers/media/platform/fsl-viu.c 			buf->vb.ts = ktime_get_ns();
vb               1084 drivers/media/platform/fsl-viu.c 			buf->vb.state = VIDEOBUF_DONE;
vb               1085 drivers/media/platform/fsl-viu.c 			buf->vb.field_count++;
vb               1086 drivers/media/platform/fsl-viu.c 			wake_up(&buf->vb.done);
vb               1392 drivers/media/platform/imx-pxp.c static int pxp_buf_prepare(struct vb2_buffer *vb)
vb               1394 drivers/media/platform/imx-pxp.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1395 drivers/media/platform/imx-pxp.c 	struct pxp_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1399 drivers/media/platform/imx-pxp.c 	dprintk(ctx->dev, "type: %d\n", vb->vb2_queue->type);
vb               1401 drivers/media/platform/imx-pxp.c 	q_data = get_q_data(ctx, vb->vb2_queue->type);
vb               1402 drivers/media/platform/imx-pxp.c 	if (V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) {
vb               1411 drivers/media/platform/imx-pxp.c 	if (vb2_plane_size(vb, 0) < q_data->sizeimage) {
vb               1413 drivers/media/platform/imx-pxp.c 			__func__, vb2_plane_size(vb, 0),
vb               1418 drivers/media/platform/imx-pxp.c 	vb2_set_plane_payload(vb, 0, q_data->sizeimage);
vb               1423 drivers/media/platform/imx-pxp.c static void pxp_buf_queue(struct vb2_buffer *vb)
vb               1425 drivers/media/platform/imx-pxp.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1426 drivers/media/platform/imx-pxp.c 	struct pxp_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                759 drivers/media/platform/m2m-deinterlace.c static int deinterlace_buf_prepare(struct vb2_buffer *vb)
vb                761 drivers/media/platform/m2m-deinterlace.c 	struct deinterlace_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                764 drivers/media/platform/m2m-deinterlace.c 	dprintk(ctx->dev, "type: %d\n", vb->vb2_queue->type);
vb                766 drivers/media/platform/m2m-deinterlace.c 	q_data = get_q_data(vb->vb2_queue->type);
vb                768 drivers/media/platform/m2m-deinterlace.c 	if (vb2_plane_size(vb, 0) < q_data->sizeimage) {
vb                770 drivers/media/platform/m2m-deinterlace.c 			__func__, vb2_plane_size(vb, 0), (long)q_data->sizeimage);
vb                774 drivers/media/platform/m2m-deinterlace.c 	vb2_set_plane_payload(vb, 0, q_data->sizeimage);
vb                779 drivers/media/platform/m2m-deinterlace.c static void deinterlace_buf_queue(struct vb2_buffer *vb)
vb                781 drivers/media/platform/m2m-deinterlace.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                782 drivers/media/platform/m2m-deinterlace.c 	struct deinterlace_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                201 drivers/media/platform/marvell-ccic/mcam-core.c static inline struct mcam_vb_buffer *vb_to_mvb(struct vb2_v4l2_buffer *vb)
vb                203 drivers/media/platform/marvell-ccic/mcam-core.c 	return container_of(vb, struct mcam_vb_buffer, vb_buf);
vb                538 drivers/media/platform/marvell-ccic/mcam-core.c 	struct vb2_v4l2_buffer *vb;
vb                558 drivers/media/platform/marvell-ccic/mcam-core.c 	vb = &buf->vb_buf;
vb                560 drivers/media/platform/marvell-ccic/mcam-core.c 	dma_handle = vb2_dma_contig_plane_dma_addr(&vb->vb2_buf, 0);
vb               1112 drivers/media/platform/marvell-ccic/mcam-core.c static void mcam_vb_buf_queue(struct vb2_buffer *vb)
vb               1114 drivers/media/platform/marvell-ccic/mcam-core.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1116 drivers/media/platform/marvell-ccic/mcam-core.c 	struct mcam_camera *cam = vb2_get_drv_priv(vb->vb2_queue);
vb               1234 drivers/media/platform/marvell-ccic/mcam-core.c static int mcam_vb_sg_buf_init(struct vb2_buffer *vb)
vb               1236 drivers/media/platform/marvell-ccic/mcam-core.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1238 drivers/media/platform/marvell-ccic/mcam-core.c 	struct mcam_camera *cam = vb2_get_drv_priv(vb->vb2_queue);
vb               1251 drivers/media/platform/marvell-ccic/mcam-core.c static int mcam_vb_sg_buf_prepare(struct vb2_buffer *vb)
vb               1253 drivers/media/platform/marvell-ccic/mcam-core.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1255 drivers/media/platform/marvell-ccic/mcam-core.c 	struct sg_table *sg_table = vb2_dma_sg_plane_desc(vb, 0);
vb               1268 drivers/media/platform/marvell-ccic/mcam-core.c static void mcam_vb_sg_buf_cleanup(struct vb2_buffer *vb)
vb               1270 drivers/media/platform/marvell-ccic/mcam-core.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1271 drivers/media/platform/marvell-ccic/mcam-core.c 	struct mcam_camera *cam = vb2_get_drv_priv(vb->vb2_queue);
vb                 79 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 							struct vb2_buffer *vb)
vb                 81 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	return container_of(to_vb2_v4l2_buffer(vb), struct mtk_jpeg_src_buf, b);
vb                509 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	struct vb2_buffer *vb;
vb                521 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	vb = vb2_get_buffer(vq, buf->index);
vb                522 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	jpeg_src_buf = mtk_jpeg_vb2_to_srcbuf(vb);
vb                584 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c static int mtk_jpeg_buf_prepare(struct vb2_buffer *vb)
vb                586 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	struct mtk_jpeg_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                590 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	q_data = mtk_jpeg_get_q_data(ctx, vb->vb2_queue->type);
vb                595 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		vb2_set_plane_payload(vb, i, q_data->sizeimage[i]);
vb                654 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c static void mtk_jpeg_buf_queue(struct vb2_buffer *vb)
vb                656 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	struct mtk_jpeg_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                663 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		 vb->vb2_queue->type, vb->index, vb);
vb                665 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	if (vb->vb2_queue->type != V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE)
vb                668 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	jpeg_src_buf = mtk_jpeg_vb2_to_srcbuf(vb);
vb                676 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	header_valid = mtk_jpeg_parse(param, (u8 *)vb2_plane_vaddr(vb, 0),
vb                677 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 				      vb2_get_plane_payload(vb, 0));
vb                680 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
vb                694 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, to_vb2_v4l2_buffer(vb));
vb                709 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	struct vb2_v4l2_buffer *vb;
vb                718 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	while ((vb = mtk_jpeg_buf_remove(ctx, q->type)))
vb                719 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		v4l2_m2m_buf_done(vb, VB2_BUF_STATE_QUEUED);
vb                726 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	struct vb2_v4l2_buffer *vb;
vb                737 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);
vb                738 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		src_buf = mtk_jpeg_vb2_to_srcbuf(&vb->vb2_buf);
vb                745 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	while ((vb = mtk_jpeg_buf_remove(ctx, q->type)))
vb                746 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		v4l2_m2m_buf_done(vb, VB2_BUF_STATE_ERROR);
vb                425 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct vb2_buffer *vb;
vb                427 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	vb = mtk_mdp_m2m_buf_remove(ctx, q->type);
vb                428 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	while (vb != NULL) {
vb                429 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		v4l2_m2m_buf_done(to_vb2_v4l2_buffer(vb), VB2_BUF_STATE_ERROR);
vb                430 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		vb = mtk_mdp_m2m_buf_remove(ctx, q->type);
vb                438 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 				 struct vb2_buffer *vb,
vb                447 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		addr->addr[i] = vb2_dma_contig_plane_dma_addr(vb, i);
vb                569 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c static int mtk_mdp_m2m_buf_prepare(struct vb2_buffer *vb)
vb                571 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct mtk_mdp_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                575 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	frame = mtk_mdp_ctx_get_frame(ctx, vb->vb2_queue->type);
vb                577 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	if (!V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) {
vb                579 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 			vb2_set_plane_payload(vb, i, frame->payload[i]);
vb                585 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c static void mtk_mdp_m2m_buf_queue(struct vb2_buffer *vb)
vb                587 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct mtk_mdp_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                589 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	v4l2_m2m_buf_queue(ctx->m2m_ctx, to_vb2_v4l2_buffer(vb));
vb                126 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		vb2_set_plane_payload(&dstbuf->vb.vb2_buf, 0,
vb                129 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 			vb2_set_plane_payload(&dstbuf->vb.vb2_buf, 1,
vb                135 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 				dstbuf->vb.vb2_buf.index,
vb                138 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		v4l2_m2m_buf_done(&dstbuf->vb, VB2_BUF_STATE_DONE);
vb                142 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	return &dstbuf->vb.vb2_buf;
vb                190 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 				dstbuf->vb.vb2_buf.index,
vb                192 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 			v4l2_m2m_buf_queue(ctx->m2m_ctx, &dstbuf->vb);
vb                208 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 					dstbuf->vb.vb2_buf.index);
vb                209 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 			v4l2_m2m_buf_queue(ctx->m2m_ctx, &dstbuf->vb);
vb                222 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 					dstbuf->vb.vb2_buf.index,
vb                229 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	return &dstbuf->vb.vb2_buf;
vb                368 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	src_buf_info = container_of(src_buf, struct mtk_video_dec_buf, vb);
vb                369 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	dst_buf_info = container_of(dst_buf, struct mtk_video_dec_buf, vb);
vb                400 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		vb2_set_plane_payload(&dst_buf_info->vb.vb2_buf, 0, 0);
vb                402 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 			vb2_set_plane_payload(&dst_buf_info->vb.vb2_buf, 1, 0);
vb                404 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		v4l2_m2m_buf_done(&dst_buf_info->vb, VB2_BUF_STATE_DONE);
vb                420 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	dst_buf_info->vb.vb2_buf.timestamp
vb                421 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 			= src_buf_info->vb.vb2_buf.timestamp;
vb                422 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	dst_buf_info->vb.timecode
vb                423 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 			= src_buf_info->vb.timecode;
vb                437 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 			src_buf_info->vb.vb2_buf.timestamp,
vb                446 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		v4l2_m2m_buf_done(&src_buf_info->vb, VB2_BUF_STATE_ERROR);
vb                453 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		v4l2_m2m_buf_done(&src_buf_info->vb, VB2_BUF_STATE_DONE);
vb                525 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		v4l2_m2m_buf_queue(ctx->m2m_ctx, &ctx->empty_flush_buf->vb);
vb               1099 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c static int vb2ops_vdec_buf_prepare(struct vb2_buffer *vb)
vb               1101 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1106 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 			ctx->id, vb->vb2_queue->type, vb->index);
vb               1108 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	q_data = mtk_vdec_get_q_data(ctx, vb->vb2_queue->type);
vb               1111 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		if (vb2_plane_size(vb, i) < q_data->sizeimage[i]) {
vb               1113 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 				i, vb2_plane_size(vb, i),
vb               1121 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c static void vb2ops_vdec_buf_queue(struct vb2_buffer *vb)
vb               1128 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1134 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 			ctx->id, vb->vb2_queue->type,
vb               1135 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 			vb->index, vb);
vb               1139 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	if (vb->vb2_queue->type != V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) {
vb               1140 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		vb2_v4l2 = to_vb2_v4l2_buffer(vb);
vb               1141 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		buf = container_of(vb2_v4l2, struct mtk_video_dec_buf, vb);
vb               1155 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	v4l2_m2m_buf_queue(ctx->m2m_ctx, to_vb2_v4l2_buffer(vb));
vb               1168 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	buf = container_of(src_buf, struct mtk_video_dec_buf, vb);
vb               1241 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c static void vb2ops_vdec_buf_finish(struct vb2_buffer *vb)
vb               1243 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1248 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	vb2_v4l2 = container_of(vb, struct vb2_v4l2_buffer, vb2_buf);
vb               1249 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	buf = container_of(vb2_v4l2, struct mtk_video_dec_buf, vb);
vb               1251 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	if (vb->vb2_queue->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
vb               1264 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c static int vb2ops_vdec_buf_init(struct vb2_buffer *vb)
vb               1266 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	struct vb2_v4l2_buffer *vb2_v4l2 = container_of(vb,
vb               1269 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 					struct mtk_video_dec_buf, vb);
vb               1271 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 	if (vb->vb2_queue->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
vb               1302 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 					src_buf, struct mtk_video_dec_buf, vb);
vb                 50 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.h 	struct vb2_v4l2_buffer	vb;
vb                140 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c 	ctx->empty_flush_buf->vb.vb2_buf.vb2_queue = src_vq;
vb                774 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c static int vb2ops_venc_buf_prepare(struct vb2_buffer *vb)
vb                776 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 	struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                780 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 	q_data = mtk_venc_get_q_data(ctx, vb->vb2_queue->type);
vb                783 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 		if (vb2_plane_size(vb, i) < q_data->sizeimage[i]) {
vb                785 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 				i, vb2_plane_size(vb, i),
vb                794 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c static void vb2ops_venc_buf_queue(struct vb2_buffer *vb)
vb                796 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 	struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                798 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 			container_of(vb, struct vb2_v4l2_buffer, vb2_buf);
vb                801 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 			container_of(vb2_v4l2, struct mtk_video_enc_buf, vb);
vb                803 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 	if ((vb->vb2_queue->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) &&
vb                807 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 			       mtk_buf->vb.vb2_buf.index,
vb                814 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 	v4l2_m2m_buf_queue(ctx->m2m_ctx, to_vb2_v4l2_buffer(vb));
vb                989 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 			container_of(vb2_v4l2, struct mtk_video_enc_buf, vb);
vb               1001 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 				mtk_buf->vb.vb2_buf.index,
vb               1012 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 			       mtk_buf->vb.vb2_buf.index,
vb               1029 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 				mtk_buf->vb.vb2_buf.index,
vb                 33 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.h 	struct vb2_v4l2_buffer vb;
vb                647 drivers/media/platform/mx2_emmaprp.c static int emmaprp_buf_prepare(struct vb2_buffer *vb)
vb                649 drivers/media/platform/mx2_emmaprp.c 	struct emmaprp_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                652 drivers/media/platform/mx2_emmaprp.c 	dprintk(ctx->dev, "type: %d\n", vb->vb2_queue->type);
vb                654 drivers/media/platform/mx2_emmaprp.c 	q_data = get_q_data(ctx, vb->vb2_queue->type);
vb                656 drivers/media/platform/mx2_emmaprp.c 	if (vb2_plane_size(vb, 0) < q_data->sizeimage) {
vb                659 drivers/media/platform/mx2_emmaprp.c 			__func__, vb2_plane_size(vb, 0),
vb                664 drivers/media/platform/mx2_emmaprp.c 	vb2_set_plane_payload(vb, 0, q_data->sizeimage);
vb                669 drivers/media/platform/mx2_emmaprp.c static void emmaprp_buf_queue(struct vb2_buffer *vb)
vb                671 drivers/media/platform/mx2_emmaprp.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                672 drivers/media/platform/mx2_emmaprp.c 	struct emmaprp_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                962 drivers/media/platform/omap/omap_vout.c static int omap_vout_vb2_prepare(struct vb2_buffer *vb)
vb                964 drivers/media/platform/omap/omap_vout.c 	struct omap_vout_device *vout = vb2_get_drv_priv(vb->vb2_queue);
vb                966 drivers/media/platform/omap/omap_vout.c 	struct omap_vout_buffer *voutbuf = vb2_to_omap_vout_buffer(vb);
vb                967 drivers/media/platform/omap/omap_vout.c 	dma_addr_t buf_phy_addr = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                969 drivers/media/platform/omap/omap_vout.c 	if (vb2_plane_size(vb, 0) < vout->pix.sizeimage) {
vb                972 drivers/media/platform/omap/omap_vout.c 			__func__, vb2_plane_size(vb, 0), vout->pix.sizeimage);
vb                976 drivers/media/platform/omap/omap_vout.c 	vb2_set_plane_payload(vb, 0, vout->pix.sizeimage);
vb                979 drivers/media/platform/omap/omap_vout.c 	vout->queued_buf_addr[vb->index] = (u8 *)buf_phy_addr;
vb                981 drivers/media/platform/omap/omap_vout.c 		return omap_vout_prepare_vrfb(vout, vb);
vb                985 drivers/media/platform/omap/omap_vout.c static void omap_vout_vb2_queue(struct vb2_buffer *vb)
vb                987 drivers/media/platform/omap/omap_vout.c 	struct omap_vout_device *vout = vb2_get_drv_priv(vb->vb2_queue);
vb                988 drivers/media/platform/omap/omap_vout.c 	struct omap_vout_buffer *voutbuf = vb2_to_omap_vout_buffer(vb);
vb                231 drivers/media/platform/omap/omap_vout_vrfb.c 			   struct vb2_buffer *vb)
vb                238 drivers/media/platform/omap/omap_vout_vrfb.c 	dma_addr_t buf_phy_addr = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                257 drivers/media/platform/omap/omap_vout_vrfb.c 	xt->dst_start = vout->vrfb_context[vb->index].paddr[0];
vb                308 drivers/media/platform/omap/omap_vout_vrfb.c 	vout->queued_buf_addr[vb->index] = (u8 *)
vb                309 drivers/media/platform/omap/omap_vout_vrfb.c 		vout->vrfb_context[vb->index].paddr[rotation];
vb                 23 drivers/media/platform/omap/omap_vout_vrfb.h 			struct vb2_buffer *vb);
vb                 35 drivers/media/platform/omap/omap_vout_vrfb.h 			struct vb2_buffer *vb)
vb                124 drivers/media/platform/omap/omap_voutdef.h static inline struct omap_vout_buffer *vb2_to_omap_vout_buffer(struct vb2_buffer *vb)
vb                126 drivers/media/platform/omap/omap_voutdef.h 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                371 drivers/media/platform/omap3isp/ispvideo.c 	vb2_set_plane_payload(&buffer->vb.vb2_buf, 0,
vb                402 drivers/media/platform/omap3isp/ispvideo.c 		vb2_buffer_done(&buffer->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                454 drivers/media/platform/omap3isp/ispvideo.c 		vb2_buffer_done(&buf->vb.vb2_buf, state);
vb                532 drivers/media/platform/omap3isp/ispvideo.c 	buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                541 drivers/media/platform/omap3isp/ispvideo.c 		buf->vb.sequence =
vb                544 drivers/media/platform/omap3isp/ispvideo.c 		buf->vb.sequence = atomic_read(&pipe->frame_number);
vb                547 drivers/media/platform/omap3isp/ispvideo.c 		buf->vb.sequence /= 2;
vb                549 drivers/media/platform/omap3isp/ispvideo.c 	buf->vb.field = pipe->field;
vb                559 drivers/media/platform/omap3isp/ispvideo.c 	vb2_buffer_done(&buf->vb.vb2_buf, vb_state);
vb                122 drivers/media/platform/omap3isp/ispvideo.h 	struct vb2_v4l2_buffer vb;
vb                127 drivers/media/platform/omap3isp/ispvideo.h #define to_isp_buffer(buf)	container_of(buf, struct isp_buffer, vb)
vb                806 drivers/media/platform/pxa_camera.c static struct pxa_buffer *vb2_to_pxa_buffer(struct vb2_buffer *vb)
vb                808 drivers/media/platform/pxa_camera.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                984 drivers/media/platform/pxa_camera.c 	struct vb2_buffer *vb = &buf->vbuf.vb2_buf;
vb                985 drivers/media/platform/pxa_camera.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                989 drivers/media/platform/pxa_camera.c 	vb->timestamp = ktime_get_ns();
vb                992 drivers/media/platform/pxa_camera.c 	vb2_buffer_done(vb, VB2_BUF_STATE_DONE);
vb               1374 drivers/media/platform/pxa_camera.c 	struct vb2_buffer *vb = &buf->vbuf.vb2_buf;
vb               1375 drivers/media/platform/pxa_camera.c 	struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0);
vb               1378 drivers/media/platform/pxa_camera.c 	unsigned long size = vb2_plane_size(vb, 0);
vb               1414 drivers/media/platform/pxa_camera.c static void pxac_vb2_cleanup(struct vb2_buffer *vb)
vb               1416 drivers/media/platform/pxa_camera.c 	struct pxa_buffer *buf = vb2_to_pxa_buffer(vb);
vb               1417 drivers/media/platform/pxa_camera.c 	struct pxa_camera_dev *pcdev = vb2_get_drv_priv(vb->vb2_queue);
vb               1420 drivers/media/platform/pxa_camera.c 		 "%s(vb=%p)\n", __func__, vb);
vb               1424 drivers/media/platform/pxa_camera.c static void pxac_vb2_queue(struct vb2_buffer *vb)
vb               1426 drivers/media/platform/pxa_camera.c 	struct pxa_buffer *buf = vb2_to_pxa_buffer(vb);
vb               1427 drivers/media/platform/pxa_camera.c 	struct pxa_camera_dev *pcdev = vb2_get_drv_priv(vb->vb2_queue);
vb               1431 drivers/media/platform/pxa_camera.c 		__func__, vb, pcdev->channels, vb2_get_plane_payload(vb, 0),
vb               1445 drivers/media/platform/pxa_camera.c static int pxac_vb2_prepare(struct vb2_buffer *vb)
vb               1447 drivers/media/platform/pxa_camera.c 	struct pxa_camera_dev *pcdev = vb2_get_drv_priv(vb->vb2_queue);
vb               1448 drivers/media/platform/pxa_camera.c 	struct pxa_buffer *buf = vb2_to_pxa_buffer(vb);
vb               1454 drivers/media/platform/pxa_camera.c 		vb2_set_plane_payload(vb, 0, pcdev->current_pix.sizeimage);
vb               1462 drivers/media/platform/pxa_camera.c 		__func__, vb, pcdev->channels, vb2_get_plane_payload(vb, 0));
vb               1471 drivers/media/platform/pxa_camera.c 	for (i = 0; i < vb->num_planes; i++)
vb               1472 drivers/media/platform/pxa_camera.c 		memset((void *)vb2_plane_vaddr(vb, i),
vb               1473 drivers/media/platform/pxa_camera.c 		       0xaa, vb2_get_plane_payload(vb, i));
vb               1486 drivers/media/platform/pxa_camera.c static int pxac_vb2_init(struct vb2_buffer *vb)
vb               1488 drivers/media/platform/pxa_camera.c 	struct pxa_camera_dev *pcdev = vb2_get_drv_priv(vb->vb2_queue);
vb               1489 drivers/media/platform/pxa_camera.c 	struct pxa_buffer *buf = vb2_to_pxa_buffer(vb);
vb                492 drivers/media/platform/qcom/camss/camss-vfe.c 		vb2_buffer_done(&buf->vb.vb2_buf, state);
vb                960 drivers/media/platform/qcom/camss/camss-vfe.c 			vb2_buffer_done(&output->last_buffer->vb.vb2_buf,
vb               1042 drivers/media/platform/qcom/camss/camss-vfe.c 	ready_buf->vb.vb2_buf.timestamp = ts;
vb               1043 drivers/media/platform/qcom/camss/camss-vfe.c 	ready_buf->vb.sequence = output->sequence++;
vb               1070 drivers/media/platform/qcom/camss/camss-vfe.c 		vb2_buffer_done(&ready_buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb               1389 drivers/media/platform/qcom/camss/camss-vfe.c 		vb2_buffer_done(&output->buf[0]->vb.vb2_buf, state);
vb               1392 drivers/media/platform/qcom/camss/camss-vfe.c 		vb2_buffer_done(&output->buf[1]->vb.vb2_buf, state);
vb               1395 drivers/media/platform/qcom/camss/camss-vfe.c 		vb2_buffer_done(&output->last_buffer->vb.vb2_buf, state);
vb                348 drivers/media/platform/qcom/camss/camss-video.c static int video_buf_init(struct vb2_buffer *vb)
vb                350 drivers/media/platform/qcom/camss/camss-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                351 drivers/media/platform/qcom/camss/camss-video.c 	struct camss_video *video = vb2_get_drv_priv(vb->vb2_queue);
vb                353 drivers/media/platform/qcom/camss/camss-video.c 						   vb);
vb                360 drivers/media/platform/qcom/camss/camss-video.c 		sgt = vb2_dma_sg_plane_desc(vb, i);
vb                378 drivers/media/platform/qcom/camss/camss-video.c static int video_buf_prepare(struct vb2_buffer *vb)
vb                380 drivers/media/platform/qcom/camss/camss-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                381 drivers/media/platform/qcom/camss/camss-video.c 	struct camss_video *video = vb2_get_drv_priv(vb->vb2_queue);
vb                387 drivers/media/platform/qcom/camss/camss-video.c 		if (format->plane_fmt[i].sizeimage > vb2_plane_size(vb, i))
vb                390 drivers/media/platform/qcom/camss/camss-video.c 		vb2_set_plane_payload(vb, i, format->plane_fmt[i].sizeimage);
vb                398 drivers/media/platform/qcom/camss/camss-video.c static void video_buf_queue(struct vb2_buffer *vb)
vb                400 drivers/media/platform/qcom/camss/camss-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                401 drivers/media/platform/qcom/camss/camss-video.c 	struct camss_video *video = vb2_get_drv_priv(vb->vb2_queue);
vb                403 drivers/media/platform/qcom/camss/camss-video.c 						   vb);
vb                 23 drivers/media/platform/qcom/camss/camss-video.h 	struct vb2_v4l2_buffer vb;
vb                202 drivers/media/platform/qcom/venus/core.h 	struct vb2_v4l2_buffer vb;
vb                211 drivers/media/platform/qcom/venus/core.h #define to_venus_buffer(ptr)	container_of(ptr, struct venus_buffer, vb)
vb                469 drivers/media/platform/qcom/venus/helpers.c 	struct vb2_buffer *vb = &vbuf->vb2_buf;
vb                472 drivers/media/platform/qcom/venus/helpers.c 	u64 ts_us = vb->timestamp;
vb                492 drivers/media/platform/qcom/venus/helpers.c 	inst->tss[slot].ts_ns = vb->timestamp;
vb                498 drivers/media/platform/qcom/venus/helpers.c 	struct vb2_buffer *vb = &vbuf->vb2_buf;
vb                511 drivers/media/platform/qcom/venus/helpers.c 		vb->timestamp = inst->tss[i].ts_ns;
vb                521 drivers/media/platform/qcom/venus/helpers.c 	struct vb2_buffer *vb = &vbuf->vb2_buf;
vb                522 drivers/media/platform/qcom/venus/helpers.c 	unsigned int type = vb->type;
vb                529 drivers/media/platform/qcom/venus/helpers.c 	fdata.timestamp = vb->timestamp;
vb                536 drivers/media/platform/qcom/venus/helpers.c 		fdata.filled_len = vb2_get_plane_payload(vb, 0);
vb                537 drivers/media/platform/qcom/venus/helpers.c 		fdata.offset = vb->planes[0].data_offset;
vb                973 drivers/media/platform/qcom/venus/helpers.c 		ret = session_process_buf(inst, &buf->vb);
vb                975 drivers/media/platform/qcom/venus/helpers.c 			return_buf_error(inst, &buf->vb);
vb                988 drivers/media/platform/qcom/venus/helpers.c 		if (buf->vb.vb2_buf.index == idx) {
vb               1030 drivers/media/platform/qcom/venus/helpers.c int venus_helper_vb2_buf_init(struct vb2_buffer *vb)
vb               1032 drivers/media/platform/qcom/venus/helpers.c 	struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue);
vb               1033 drivers/media/platform/qcom/venus/helpers.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1037 drivers/media/platform/qcom/venus/helpers.c 	sgt = vb2_dma_sg_plane_desc(vb, 0);
vb               1041 drivers/media/platform/qcom/venus/helpers.c 	buf->size = vb2_plane_size(vb, 0);
vb               1044 drivers/media/platform/qcom/venus/helpers.c 	if (vb->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE)
vb               1051 drivers/media/platform/qcom/venus/helpers.c int venus_helper_vb2_buf_prepare(struct vb2_buffer *vb)
vb               1053 drivers/media/platform/qcom/venus/helpers.c 	struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue);
vb               1055 drivers/media/platform/qcom/venus/helpers.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1057 drivers/media/platform/qcom/venus/helpers.c 	if (V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) {
vb               1067 drivers/media/platform/qcom/venus/helpers.c 	if (vb->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE &&
vb               1068 drivers/media/platform/qcom/venus/helpers.c 	    vb2_plane_size(vb, 0) < out_buf_size)
vb               1070 drivers/media/platform/qcom/venus/helpers.c 	if (vb->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE &&
vb               1071 drivers/media/platform/qcom/venus/helpers.c 	    vb2_plane_size(vb, 0) < inst->input_buf_size)
vb               1078 drivers/media/platform/qcom/venus/helpers.c void venus_helper_vb2_buf_queue(struct vb2_buffer *vb)
vb               1080 drivers/media/platform/qcom/venus/helpers.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1081 drivers/media/platform/qcom/venus/helpers.c 	struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue);
vb               1093 drivers/media/platform/qcom/venus/helpers.c 	if (vb2_start_streaming_called(vb->vb2_queue)) {
vb               1165 drivers/media/platform/qcom/venus/helpers.c 		ret = session_process_buf(inst, &buf->vb);
vb               1167 drivers/media/platform/qcom/venus/helpers.c 			return_buf_error(inst, &buf->vb);
vb               1183 drivers/media/platform/qcom/venus/helpers.c 		ret = session_process_buf(inst, &buf->vb);
vb               1185 drivers/media/platform/qcom/venus/helpers.c 			return_buf_error(inst, &buf->vb);
vb               1239 drivers/media/platform/qcom/venus/helpers.c 		ret = session_process_buf(inst, &buf->vb);
vb               1241 drivers/media/platform/qcom/venus/helpers.c 			return_buf_error(inst, &buf->vb);
vb               1245 drivers/media/platform/qcom/venus/helpers.c 		ret = session_process_buf(inst, &buf->vb);
vb               1247 drivers/media/platform/qcom/venus/helpers.c 			return_buf_error(inst, &buf->vb);
vb                 19 drivers/media/platform/qcom/venus/helpers.h int venus_helper_vb2_buf_init(struct vb2_buffer *vb);
vb                 20 drivers/media/platform/qcom/venus/helpers.h int venus_helper_vb2_buf_prepare(struct vb2_buffer *vb);
vb                 21 drivers/media/platform/qcom/venus/helpers.h void venus_helper_vb2_buf_queue(struct vb2_buffer *vb);
vb               1081 drivers/media/platform/qcom/venus/vdec.c static int vdec_buf_init(struct vb2_buffer *vb)
vb               1083 drivers/media/platform/qcom/venus/vdec.c 	struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue);
vb               1087 drivers/media/platform/qcom/venus/vdec.c 	return venus_helper_vb2_buf_init(vb);
vb               1090 drivers/media/platform/qcom/venus/vdec.c static void vdec_buf_cleanup(struct vb2_buffer *vb)
vb               1092 drivers/media/platform/qcom/venus/vdec.c 	struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue);
vb               1115 drivers/media/platform/qcom/venus/vdec.c 	struct vb2_buffer *vb;
vb               1129 drivers/media/platform/qcom/venus/vdec.c 	vb = &vbuf->vb2_buf;
vb               1132 drivers/media/platform/qcom/venus/vdec.c 		vb2_set_plane_payload(vb, 0, bytesused);
vb               1133 drivers/media/platform/qcom/venus/vdec.c 		vb->planes[0].data_offset = data_offset;
vb               1134 drivers/media/platform/qcom/venus/vdec.c 		vb->timestamp = timestamp_us * NSEC_PER_USEC;
vb               1159 drivers/media/platform/qcom/venus/vdec.c 		vb2_set_plane_payload(vb, 0, 0);
vb               1160 drivers/media/platform/qcom/venus/vdec.c 		vb->timestamp = 0;
vb               1037 drivers/media/platform/qcom/venus/venc.c 	struct vb2_buffer *vb;
vb               1052 drivers/media/platform/qcom/venus/venc.c 		vb = &vbuf->vb2_buf;
vb               1053 drivers/media/platform/qcom/venus/venc.c 		vb2_set_plane_payload(vb, 0, bytesused + data_offset);
vb               1054 drivers/media/platform/qcom/venus/venc.c 		vb->planes[0].data_offset = data_offset;
vb               1055 drivers/media/platform/qcom/venus/venc.c 		vb->timestamp = timestamp_us * NSEC_PER_USEC;
vb                136 drivers/media/platform/rcar-vin/rcar-dma.c 	struct vb2_v4l2_buffer vb;
vb                142 drivers/media/platform/rcar-vin/rcar-dma.c 					       vb)->list)
vb                852 drivers/media/platform/rcar-vin/rcar-dma.c 		vbuf = &buf->vb;
vb                988 drivers/media/platform/rcar-vin/rcar-dma.c 		vb2_buffer_done(&buf->vb.vb2_buf, state);
vb               1010 drivers/media/platform/rcar-vin/rcar-dma.c static int rvin_buffer_prepare(struct vb2_buffer *vb)
vb               1012 drivers/media/platform/rcar-vin/rcar-dma.c 	struct rvin_dev *vin = vb2_get_drv_priv(vb->vb2_queue);
vb               1015 drivers/media/platform/rcar-vin/rcar-dma.c 	if (vb2_plane_size(vb, 0) < size) {
vb               1017 drivers/media/platform/rcar-vin/rcar-dma.c 			vb2_plane_size(vb, 0), size);
vb               1021 drivers/media/platform/rcar-vin/rcar-dma.c 	vb2_set_plane_payload(vb, 0, size);
vb               1026 drivers/media/platform/rcar-vin/rcar-dma.c static void rvin_buffer_queue(struct vb2_buffer *vb)
vb               1028 drivers/media/platform/rcar-vin/rcar-dma.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1029 drivers/media/platform/rcar-vin/rcar-dma.c 	struct rvin_dev *vin = vb2_get_drv_priv(vb->vb2_queue);
vb                181 drivers/media/platform/rcar_drif.c 	struct vb2_v4l2_buffer vb;
vb                312 drivers/media/platform/rcar_drif.c 		vb2_buffer_done(&fbuf->vb.vb2_buf, state);
vb                441 drivers/media/platform/rcar_drif.c static void rcar_drif_buf_queue(struct vb2_buffer *vb)
vb                443 drivers/media/platform/rcar_drif.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                444 drivers/media/platform/rcar_drif.c 	struct rcar_drif_sdr *sdr = vb2_get_drv_priv(vb->vb2_queue);
vb                446 drivers/media/platform/rcar_drif.c 			container_of(vbuf, struct rcar_drif_frame_buf, vb);
vb                449 drivers/media/platform/rcar_drif.c 	rdrif_dbg(sdr, "buf_queue idx %u\n", vb->index);
vb                581 drivers/media/platform/rcar_drif.c 		memcpy(vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0) +
vb                584 drivers/media/platform/rcar_drif.c 	fbuf->vb.field = V4L2_FIELD_NONE;
vb                585 drivers/media/platform/rcar_drif.c 	fbuf->vb.sequence = produced;
vb                586 drivers/media/platform/rcar_drif.c 	fbuf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                587 drivers/media/platform/rcar_drif.c 	vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, sdr->fmt->buffersize);
vb                590 drivers/media/platform/rcar_drif.c 	vb2_buffer_done(&fbuf->vb.vb2_buf,
vb                521 drivers/media/platform/rcar_fdp1.c 	struct vb2_v4l2_buffer		*vb;
vb                540 drivers/media/platform/rcar_fdp1.c static inline struct fdp1_buffer *to_fdp1_buffer(struct vb2_v4l2_buffer *vb)
vb                542 drivers/media/platform/rcar_fdp1.c 	return container_of(vb, struct fdp1_buffer, m2m_buf.vb);
vb                727 drivers/media/platform/rcar_fdp1.c 		v4l2_m2m_buf_done(fbuf->vb, VB2_BUF_STATE_DONE);
vb               1220 drivers/media/platform/rcar_fdp1.c 	job->active->vb->sequence = ctx->sequence;
vb               1221 drivers/media/platform/rcar_fdp1.c 	job->dst->vb->sequence = ctx->sequence;
vb               1238 drivers/media/platform/rcar_fdp1.c 	job->dst->vb->vb2_buf.timestamp = job->active->vb->vb2_buf.timestamp;
vb               1240 drivers/media/platform/rcar_fdp1.c 	job->dst->vb->flags = job->active->vb->flags &
vb               1334 drivers/media/platform/rcar_fdp1.c 	v4l2_m2m_buf_done(job->dst->vb, state);
vb               1800 drivers/media/platform/rcar_fdp1.c 	fbuf->vb = vbuf;
vb               1851 drivers/media/platform/rcar_fdp1.c static int fdp1_buf_prepare(struct vb2_buffer *vb)
vb               1853 drivers/media/platform/rcar_fdp1.c 	struct fdp1_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1854 drivers/media/platform/rcar_fdp1.c 	struct fdp1_q_data *q_data = get_q_data(ctx, vb->vb2_queue->type);
vb               1855 drivers/media/platform/rcar_fdp1.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1859 drivers/media/platform/rcar_fdp1.c 	if (V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) {
vb               1899 drivers/media/platform/rcar_fdp1.c 		if (vb2_plane_size(vb, i) < size) {
vb               1903 drivers/media/platform/rcar_fdp1.c 				vb2_plane_size(vb, i), size);
vb               1908 drivers/media/platform/rcar_fdp1.c 		vb2_set_plane_payload(vb, i, size);
vb               1918 drivers/media/platform/rcar_fdp1.c static void fdp1_buf_queue(struct vb2_buffer *vb)
vb               1920 drivers/media/platform/rcar_fdp1.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1921 drivers/media/platform/rcar_fdp1.c 	struct fdp1_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               2016 drivers/media/platform/rcar_fdp1.c 			v4l2_m2m_buf_done(job->dst->vb, VB2_BUF_STATE_ERROR);
vb                467 drivers/media/platform/rcar_jpu.c static struct jpu_buffer *vb2_to_jpu_buffer(struct vb2_v4l2_buffer *vb)
vb                470 drivers/media/platform/rcar_jpu.c 		container_of(vb, struct v4l2_m2m_buffer, vb);
vb               1039 drivers/media/platform/rcar_jpu.c static int jpu_buf_prepare(struct vb2_buffer *vb)
vb               1041 drivers/media/platform/rcar_jpu.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1042 drivers/media/platform/rcar_jpu.c 	struct jpu_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1046 drivers/media/platform/rcar_jpu.c 	q_data = jpu_get_q_data(ctx, vb->vb2_queue->type);
vb               1048 drivers/media/platform/rcar_jpu.c 	if (V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) {
vb               1061 drivers/media/platform/rcar_jpu.c 		if (vb2_plane_size(vb, i) < size) {
vb               1064 drivers/media/platform/rcar_jpu.c 			       __func__, vb2_plane_size(vb, i), size);
vb               1069 drivers/media/platform/rcar_jpu.c 		if (!ctx->encoder && !V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type))
vb               1070 drivers/media/platform/rcar_jpu.c 			vb2_set_plane_payload(vb, i, size);
vb               1076 drivers/media/platform/rcar_jpu.c static void jpu_buf_queue(struct vb2_buffer *vb)
vb               1078 drivers/media/platform/rcar_jpu.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1079 drivers/media/platform/rcar_jpu.c 	struct jpu_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1081 drivers/media/platform/rcar_jpu.c 	if (!ctx->encoder && V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) {
vb               1084 drivers/media/platform/rcar_jpu.c 		void *buffer = vb2_plane_vaddr(vb, 0);
vb               1085 drivers/media/platform/rcar_jpu.c 		unsigned long buf_size = vb2_get_plane_payload(vb, 0);
vb               1122 drivers/media/platform/rcar_jpu.c 	vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
vb               1125 drivers/media/platform/rcar_jpu.c static void jpu_buf_finish(struct vb2_buffer *vb)
vb               1127 drivers/media/platform/rcar_jpu.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1129 drivers/media/platform/rcar_jpu.c 	struct jpu_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1131 drivers/media/platform/rcar_jpu.c 	enum v4l2_buf_type type = vb->vb2_queue->type;
vb               1134 drivers/media/platform/rcar_jpu.c 	if (vb->state == VB2_BUF_STATE_DONE)
vb               1137 drivers/media/platform/rcar_jpu.c 	if (!ctx->encoder || vb->state != VB2_BUF_STATE_DONE ||
vb               1141 drivers/media/platform/rcar_jpu.c 	buffer = vb2_plane_vaddr(vb, 0);
vb               1163 drivers/media/platform/rcar_jpu.c 	struct vb2_v4l2_buffer *vb;
vb               1168 drivers/media/platform/rcar_jpu.c 			vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx);
vb               1170 drivers/media/platform/rcar_jpu.c 			vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx);
vb               1171 drivers/media/platform/rcar_jpu.c 		if (vb == NULL)
vb               1174 drivers/media/platform/rcar_jpu.c 		v4l2_m2m_buf_done(vb, VB2_BUF_STATE_ERROR);
vb                142 drivers/media/platform/renesas-ceu.c 	struct vb2_v4l2_buffer vb;
vb                148 drivers/media/platform/renesas-ceu.c 	return container_of(vbuf, struct ceu_buffer, vb);
vb                534 drivers/media/platform/renesas-ceu.c 		ceudev->active = &buf->vb;
vb                551 drivers/media/platform/renesas-ceu.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                646 drivers/media/platform/renesas-ceu.c static void ceu_vb2_queue(struct vb2_buffer *vb)
vb                648 drivers/media/platform/renesas-ceu.c 	struct ceu_device *ceudev = vb2_get_drv_priv(vb->vb2_queue);
vb                649 drivers/media/platform/renesas-ceu.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                658 drivers/media/platform/renesas-ceu.c static int ceu_vb2_prepare(struct vb2_buffer *vb)
vb                660 drivers/media/platform/renesas-ceu.c 	struct ceu_device *ceudev = vb2_get_drv_priv(vb->vb2_queue);
vb                665 drivers/media/platform/renesas-ceu.c 		if (vb2_plane_size(vb, i) < pix->plane_fmt[i].sizeimage) {
vb                668 drivers/media/platform/renesas-ceu.c 				vb2_plane_size(vb, i),
vb                673 drivers/media/platform/renesas-ceu.c 		vb2_set_plane_payload(vb, i, pix->plane_fmt[i].sizeimage);
vb                713 drivers/media/platform/renesas-ceu.c 	ceudev->active = &buf->vb;
vb                762 drivers/media/platform/renesas-ceu.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                 38 drivers/media/platform/rockchip/rga/rga-buf.c static int rga_buf_prepare(struct vb2_buffer *vb)
vb                 40 drivers/media/platform/rockchip/rga/rga-buf.c 	struct rga_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                 41 drivers/media/platform/rockchip/rga/rga-buf.c 	struct rga_frame *f = rga_get_frame(ctx, vb->vb2_queue->type);
vb                 46 drivers/media/platform/rockchip/rga/rga-buf.c 	vb2_set_plane_payload(vb, 0, f->size);
vb                 51 drivers/media/platform/rockchip/rga/rga-buf.c static void rga_buf_queue(struct vb2_buffer *vb)
vb                 53 drivers/media/platform/rockchip/rga/rga-buf.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                 54 drivers/media/platform/rockchip/rga/rga-buf.c 	struct rga_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                113 drivers/media/platform/rockchip/rga/rga-buf.c void rga_buf_map(struct vb2_buffer *vb)
vb                115 drivers/media/platform/rockchip/rga/rga-buf.c 	struct rga_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                123 drivers/media/platform/rockchip/rga/rga-buf.c 	if (vb->type == V4L2_BUF_TYPE_VIDEO_OUTPUT)
vb                129 drivers/media/platform/rockchip/rga/rga-buf.c 	sgt = vb2_plane_cookie(vb, 0);
vb                 92 drivers/media/platform/rockchip/rga/rga.h void rga_buf_map(struct vb2_buffer *vb);
vb                166 drivers/media/platform/s3c-camif/camif-capture.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                171 drivers/media/platform/s3c-camif/camif-capture.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                241 drivers/media/platform/s3c-camif/camif-capture.c static int camif_prepare_addr(struct camif_vp *vp, struct vb2_buffer *vb,
vb                247 drivers/media/platform/s3c-camif/camif-capture.c 	if (vb == NULL || frame == NULL)
vb                255 drivers/media/platform/s3c-camif/camif-capture.c 	paddr->y = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                340 drivers/media/platform/s3c-camif/camif-capture.c 			vbuf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                341 drivers/media/platform/s3c-camif/camif-capture.c 			vbuf->vb.sequence = vp->frame_sequence++;
vb                342 drivers/media/platform/s3c-camif/camif-capture.c 			vb2_buffer_done(&vbuf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                461 drivers/media/platform/s3c-camif/camif-capture.c static int buffer_prepare(struct vb2_buffer *vb)
vb                463 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = vb2_get_drv_priv(vb->vb2_queue);
vb                468 drivers/media/platform/s3c-camif/camif-capture.c 	if (vb2_plane_size(vb, 0) < vp->payload) {
vb                470 drivers/media/platform/s3c-camif/camif-capture.c 			 vb2_plane_size(vb, 0), vp->payload);
vb                473 drivers/media/platform/s3c-camif/camif-capture.c 	vb2_set_plane_payload(vb, 0, vp->payload);
vb                478 drivers/media/platform/s3c-camif/camif-capture.c static void buffer_queue(struct vb2_buffer *vb)
vb                480 drivers/media/platform/s3c-camif/camif-capture.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                481 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_buffer *buf = container_of(vbuf, struct camif_buffer, vb);
vb                482 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = vb2_get_drv_priv(vb->vb2_queue);
vb                487 drivers/media/platform/s3c-camif/camif-capture.c 	WARN_ON(camif_prepare_addr(vp, &buf->vb.vb2_buf, &buf->paddr));
vb                319 drivers/media/platform/s3c-camif/camif-core.h 	struct vb2_v4l2_buffer vb;
vb                114 drivers/media/platform/s5p-g2d/g2d.c static int g2d_buf_prepare(struct vb2_buffer *vb)
vb                116 drivers/media/platform/s5p-g2d/g2d.c 	struct g2d_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                117 drivers/media/platform/s5p-g2d/g2d.c 	struct g2d_frame *f = get_frame(ctx, vb->vb2_queue->type);
vb                121 drivers/media/platform/s5p-g2d/g2d.c 	vb2_set_plane_payload(vb, 0, f->size);
vb                125 drivers/media/platform/s5p-g2d/g2d.c static void g2d_buf_queue(struct vb2_buffer *vb)
vb                127 drivers/media/platform/s5p-g2d/g2d.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                128 drivers/media/platform/s5p-g2d/g2d.c 	struct g2d_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                767 drivers/media/platform/s5p-jpeg/jpeg-core.c 	struct vb2_v4l2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);
vb                774 drivers/media/platform/s5p-jpeg/jpeg-core.c 		(unsigned long)vb2_plane_vaddr(&vb->vb2_buf, 0) + ctx->out_q.sos + 2;
vb                804 drivers/media/platform/s5p-jpeg/jpeg-core.c 	struct vb2_v4l2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);
vb                811 drivers/media/platform/s5p-jpeg/jpeg-core.c 		jpeg_buffer.data = (unsigned long)vb2_plane_vaddr(&vb->vb2_buf, 0) +
vb                863 drivers/media/platform/s5p-jpeg/jpeg-core.c 	struct vb2_v4l2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);
vb                869 drivers/media/platform/s5p-jpeg/jpeg-core.c 		(unsigned long)vb2_plane_vaddr(&vb->vb2_buf, 0) + ctx->out_q.sof;
vb                894 drivers/media/platform/s5p-jpeg/jpeg-core.c 	struct vb2_v4l2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);
vb                901 drivers/media/platform/s5p-jpeg/jpeg-core.c 		jpeg_buffer.data = (unsigned long)vb2_plane_vaddr(&vb->vb2_buf, 0) +
vb               2127 drivers/media/platform/s5p-jpeg/jpeg-core.c 	struct vb2_v4l2_buffer *vb;
vb               2137 drivers/media/platform/s5p-jpeg/jpeg-core.c 		vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);
vb               2143 drivers/media/platform/s5p-jpeg/jpeg-core.c 		vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
vb               2146 drivers/media/platform/s5p-jpeg/jpeg-core.c 	jpeg_addr.y = vb2_dma_contig_plane_dma_addr(&vb->vb2_buf, 0);
vb               2164 drivers/media/platform/s5p-jpeg/jpeg-core.c 	struct vb2_v4l2_buffer *vb;
vb               2168 drivers/media/platform/s5p-jpeg/jpeg-core.c 		vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
vb               2170 drivers/media/platform/s5p-jpeg/jpeg-core.c 		vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);
vb               2172 drivers/media/platform/s5p-jpeg/jpeg-core.c 	jpeg_addr = vb2_dma_contig_plane_dma_addr(&vb->vb2_buf, 0);
vb               2288 drivers/media/platform/s5p-jpeg/jpeg-core.c 	struct vb2_v4l2_buffer *vb;
vb               2295 drivers/media/platform/s5p-jpeg/jpeg-core.c 		vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);
vb               2298 drivers/media/platform/s5p-jpeg/jpeg-core.c 		vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
vb               2302 drivers/media/platform/s5p-jpeg/jpeg-core.c 	jpeg_addr.y = vb2_dma_contig_plane_dma_addr(&vb->vb2_buf, 0);
vb               2320 drivers/media/platform/s5p-jpeg/jpeg-core.c 	struct vb2_v4l2_buffer *vb;
vb               2324 drivers/media/platform/s5p-jpeg/jpeg-core.c 		vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
vb               2326 drivers/media/platform/s5p-jpeg/jpeg-core.c 		vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);
vb               2328 drivers/media/platform/s5p-jpeg/jpeg-core.c 	jpeg_addr = vb2_dma_contig_plane_dma_addr(&vb->vb2_buf, 0);
vb               2489 drivers/media/platform/s5p-jpeg/jpeg-core.c static int s5p_jpeg_buf_prepare(struct vb2_buffer *vb)
vb               2491 drivers/media/platform/s5p-jpeg/jpeg-core.c 	struct s5p_jpeg_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               2494 drivers/media/platform/s5p-jpeg/jpeg-core.c 	q_data = get_q_data(ctx, vb->vb2_queue->type);
vb               2497 drivers/media/platform/s5p-jpeg/jpeg-core.c 	if (vb2_plane_size(vb, 0) < q_data->size) {
vb               2499 drivers/media/platform/s5p-jpeg/jpeg-core.c 				__func__, vb2_plane_size(vb, 0),
vb               2504 drivers/media/platform/s5p-jpeg/jpeg-core.c 	vb2_set_plane_payload(vb, 0, q_data->size);
vb               2533 drivers/media/platform/s5p-jpeg/jpeg-core.c static void s5p_jpeg_buf_queue(struct vb2_buffer *vb)
vb               2535 drivers/media/platform/s5p-jpeg/jpeg-core.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               2536 drivers/media/platform/s5p-jpeg/jpeg-core.c 	struct s5p_jpeg_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               2539 drivers/media/platform/s5p-jpeg/jpeg-core.c 	    vb->vb2_queue->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) {
vb               2554 drivers/media/platform/s5p-jpeg/jpeg-core.c 		     (unsigned long)vb2_plane_vaddr(vb, 0),
vb               2556 drivers/media/platform/s5p-jpeg/jpeg-core.c 			 vb2_get_plane_payload(vb, 0)), ctx);
vb               2558 drivers/media/platform/s5p-jpeg/jpeg-core.c 			vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
vb                942 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c static int s5p_mfc_buf_init(struct vb2_buffer *vb)
vb                944 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                945 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                954 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 					vb2_dma_contig_plane_dma_addr(vb, i)))) {
vb                959 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 		if (vb2_plane_size(vb, 0) < ctx->luma_size ||
vb                960 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 			vb2_plane_size(vb, 1) < ctx->chroma_size) {
vb                964 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 		i = vb->index;
vb                967 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 					vb2_dma_contig_plane_dma_addr(vb, 0);
vb                969 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 					vb2_dma_contig_plane_dma_addr(vb, 1);
vb                973 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 					vb2_dma_contig_plane_dma_addr(vb, 0)))) {
vb                977 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 		if (vb2_plane_size(vb, 0) < ctx->dec_src_buf_size) {
vb                982 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 		i = vb->index;
vb                985 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 					vb2_dma_contig_plane_dma_addr(vb, 0);
vb               1055 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c static void s5p_mfc_buf_queue(struct vb2_buffer *vb)
vb               1057 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 	struct vb2_queue *vq = vb->vb2_queue;
vb               1064 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 		mfc_buf = &ctx->src_bufs[vb->index];
vb               1071 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 		mfc_buf = &ctx->dst_bufs[vb->index];
vb               1075 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 		set_bit(vb->index, &ctx->dec_dst_flag);
vb               2345 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c static int check_vb_with_fmt(struct s5p_mfc_fmt *fmt, struct vb2_buffer *vb)
vb               2351 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 	if (fmt->num_planes != vb->num_planes) {
vb               2356 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 		dma_addr_t dma = vb2_dma_contig_plane_dma_addr(vb, i);
vb               2362 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 			  vb->index, i, &dma);
vb               2418 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c static int s5p_mfc_buf_init(struct vb2_buffer *vb)
vb               2420 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               2421 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 	struct vb2_queue *vq = vb->vb2_queue;
vb               2427 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 		ret = check_vb_with_fmt(ctx->dst_fmt, vb);
vb               2430 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 		i = vb->index;
vb               2433 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 					vb2_dma_contig_plane_dma_addr(vb, 0);
vb               2436 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 		ret = check_vb_with_fmt(ctx->src_fmt, vb);
vb               2439 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 		i = vb->index;
vb               2442 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 					vb2_dma_contig_plane_dma_addr(vb, 0);
vb               2444 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 					vb2_dma_contig_plane_dma_addr(vb, 1);
vb               2453 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c static int s5p_mfc_buf_prepare(struct vb2_buffer *vb)
vb               2455 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 	struct vb2_queue *vq = vb->vb2_queue;
vb               2460 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 		ret = check_vb_with_fmt(ctx->dst_fmt, vb);
vb               2464 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 			vb2_plane_size(vb, 0), ctx->enc_dst_buf_size);
vb               2465 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 		if (vb2_plane_size(vb, 0) < ctx->enc_dst_buf_size) {
vb               2470 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 		ret = check_vb_with_fmt(ctx->src_fmt, vb);
vb               2474 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 			vb2_plane_size(vb, 0), ctx->luma_size);
vb               2476 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 			vb2_plane_size(vb, 1), ctx->chroma_size);
vb               2477 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 		if (vb2_plane_size(vb, 0) < ctx->luma_size ||
vb               2478 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 		    vb2_plane_size(vb, 1) < ctx->chroma_size) {
vb               2548 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c static void s5p_mfc_buf_queue(struct vb2_buffer *vb)
vb               2550 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 	struct vb2_queue *vq = vb->vb2_queue;
vb               2557 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 		vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
vb               2562 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 		mfc_buf = &ctx->dst_bufs[vb->index];
vb               2570 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c 		mfc_buf = &ctx->src_bufs[vb->index];
vb                882 drivers/media/platform/sh_veu.c static int sh_veu_buf_prepare(struct vb2_buffer *vb)
vb                884 drivers/media/platform/sh_veu.c 	struct sh_veu_dev *veu = vb2_get_drv_priv(vb->vb2_queue);
vb                888 drivers/media/platform/sh_veu.c 	vfmt = sh_veu_get_vfmt(veu, vb->vb2_queue->type);
vb                892 drivers/media/platform/sh_veu.c 	if (vb2_plane_size(vb, 0) < sizeimage) {
vb                894 drivers/media/platform/sh_veu.c 			__func__, vb2_plane_size(vb, 0), sizeimage);
vb                898 drivers/media/platform/sh_veu.c 	vb2_set_plane_payload(vb, 0, sizeimage);
vb                903 drivers/media/platform/sh_veu.c static void sh_veu_buf_queue(struct vb2_buffer *vb)
vb                905 drivers/media/platform/sh_veu.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                906 drivers/media/platform/sh_veu.c 	struct sh_veu_dev *veu = vb2_get_drv_priv(vb->vb2_queue);
vb                907 drivers/media/platform/sh_veu.c 	dev_dbg(veu->dev, "%s(%d)\n", __func__, vb->type);
vb                 63 drivers/media/platform/sh_vou.c 	struct vb2_v4l2_buffer vb;
vb                 70 drivers/media/platform/sh_vou.c 	return container_of(vb2, struct sh_vou_buffer, vb);
vb                254 drivers/media/platform/sh_vou.c static int sh_vou_buf_prepare(struct vb2_buffer *vb)
vb                256 drivers/media/platform/sh_vou.c 	struct sh_vou_device *vou_dev = vb2_get_drv_priv(vb->vb2_queue);
vb                263 drivers/media/platform/sh_vou.c 	if (vb2_plane_size(vb, 0) < size) {
vb                266 drivers/media/platform/sh_vou.c 			 vb2_plane_size(vb, 0), size);
vb                270 drivers/media/platform/sh_vou.c 	vb2_set_plane_payload(vb, 0, size);
vb                275 drivers/media/platform/sh_vou.c static void sh_vou_buf_queue(struct vb2_buffer *vb)
vb                277 drivers/media/platform/sh_vou.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                278 drivers/media/platform/sh_vou.c 	struct sh_vou_device *vou_dev = vb2_get_drv_priv(vb->vb2_queue);
vb                298 drivers/media/platform/sh_vou.c 			vb2_buffer_done(&buf->vb.vb2_buf,
vb                314 drivers/media/platform/sh_vou.c 	sh_vou_schedule_next(vou_dev, &buf->vb);
vb                320 drivers/media/platform/sh_vou.c 	sh_vou_schedule_next(vou_dev, &buf->vb);
vb                350 drivers/media/platform/sh_vou.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb               1018 drivers/media/platform/sh_vou.c 	struct sh_vou_buffer *vb;
vb               1052 drivers/media/platform/sh_vou.c 	vb = vou_dev->active;
vb               1053 drivers/media/platform/sh_vou.c 	if (list_is_singular(&vb->list)) {
vb               1055 drivers/media/platform/sh_vou.c 		sh_vou_schedule_next(vou_dev, &vb->vb);
vb               1060 drivers/media/platform/sh_vou.c 	list_del(&vb->list);
vb               1062 drivers/media/platform/sh_vou.c 	vb->vb.vb2_buf.timestamp = ktime_get_ns();
vb               1063 drivers/media/platform/sh_vou.c 	vb->vb.sequence = vou_dev->sequence++;
vb               1064 drivers/media/platform/sh_vou.c 	vb->vb.field = V4L2_FIELD_INTERLACED;
vb               1065 drivers/media/platform/sh_vou.c 	vb2_buffer_done(&vb->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb               1072 drivers/media/platform/sh_vou.c 		sh_vou_schedule_next(vou_dev, &vou_dev->active->vb);
vb               1076 drivers/media/platform/sh_vou.c 		sh_vou_schedule_next(vou_dev, &new->vb);
vb                253 drivers/media/platform/sti/bdisp/bdisp-v4l2.c static int bdisp_get_addr(struct bdisp_ctx *ctx, struct vb2_buffer *vb,
vb                256 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 	if (!vb || !frame)
vb                259 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 	paddr[0] = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                466 drivers/media/platform/sti/bdisp/bdisp-v4l2.c static int bdisp_buf_prepare(struct vb2_buffer *vb)
vb                468 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 	struct bdisp_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                469 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 	struct bdisp_frame *frame = ctx_get_frame(ctx, vb->vb2_queue->type);
vb                476 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 	if (vb->vb2_queue->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)
vb                477 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 		vb2_set_plane_payload(vb, 0, frame->sizeimage);
vb                482 drivers/media/platform/sti/bdisp/bdisp-v4l2.c static void bdisp_buf_queue(struct vb2_buffer *vb)
vb                484 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                485 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 	struct bdisp_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                488 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 	if (!vb2_get_plane_payload(vb, 0)) {
vb                490 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 		vb2_buffer_done(vb, VB2_BUF_STATE_DONE);
vb               1115 drivers/media/platform/sti/delta/delta-v4l2.c static int delta_vb2_au_prepare(struct vb2_buffer *vb)
vb               1117 drivers/media/platform/sti/delta/delta-v4l2.c 	struct vb2_queue *q = vb->vb2_queue;
vb               1120 drivers/media/platform/sti/delta/delta-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1130 drivers/media/platform/sti/delta/delta-v4l2.c 			ctx->name, vb->index, au->vaddr, &au->paddr);
vb               1295 drivers/media/platform/sti/delta/delta-v4l2.c static void delta_vb2_au_queue(struct vb2_buffer *vb)
vb               1297 drivers/media/platform/sti/delta/delta-v4l2.c 	struct vb2_queue *q = vb->vb2_queue;
vb               1299 drivers/media/platform/sti/delta/delta-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1461 drivers/media/platform/sti/delta/delta-v4l2.c static int delta_vb2_frame_prepare(struct vb2_buffer *vb)
vb               1463 drivers/media/platform/sti/delta/delta-v4l2.c 	struct vb2_queue *q = vb->vb2_queue;
vb               1466 drivers/media/platform/sti/delta/delta-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1486 drivers/media/platform/sti/delta/delta-v4l2.c 			ctx->name, vb->index, frame->vaddr,
vb               1495 drivers/media/platform/sti/delta/delta-v4l2.c static void delta_vb2_frame_finish(struct vb2_buffer *vb)
vb               1497 drivers/media/platform/sti/delta/delta-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1502 drivers/media/platform/sti/delta/delta-v4l2.c 	vb->timestamp = frame->dts;
vb               1507 drivers/media/platform/sti/delta/delta-v4l2.c static void delta_vb2_frame_queue(struct vb2_buffer *vb)
vb               1509 drivers/media/platform/sti/delta/delta-v4l2.c 	struct vb2_queue *q = vb->vb2_queue;
vb               1511 drivers/media/platform/sti/delta/delta-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                933 drivers/media/platform/sti/hva/hva-v4l2.c static int hva_buf_prepare(struct vb2_buffer *vb)
vb                935 drivers/media/platform/sti/hva/hva-v4l2.c 	struct hva_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                937 drivers/media/platform/sti/hva/hva-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                939 drivers/media/platform/sti/hva/hva-v4l2.c 	if (vb->vb2_queue->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) {
vb                947 drivers/media/platform/sti/hva/hva-v4l2.c 				ctx->name, vb->index, vbuf->field);
vb                961 drivers/media/platform/sti/hva/hva-v4l2.c 				ctx->name, vb->index,
vb                977 drivers/media/platform/sti/hva/hva-v4l2.c 				ctx->name, vb->index,
vb                985 drivers/media/platform/sti/hva/hva-v4l2.c static void hva_buf_queue(struct vb2_buffer *vb)
vb                987 drivers/media/platform/sti/hva/hva-v4l2.c 	struct hva_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                988 drivers/media/platform/sti/hva/hva-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                127 drivers/media/platform/sti/hva/hva.h #define to_hva_frame(vb) \
vb                128 drivers/media/platform/sti/hva/hva.h 	container_of(vb, struct hva_frame, vbuf)
vb                154 drivers/media/platform/sti/hva/hva.h #define to_hva_stream(vb) \
vb                155 drivers/media/platform/sti/hva/hva.h 	container_of(vb, struct hva_stream, vbuf)
vb                121 drivers/media/platform/stm32/stm32-dcmi.c 	struct vb2_v4l2_buffer	vb;
vb                217 drivers/media/platform/stm32/stm32-dcmi.c 	vbuf = &buf->vb;
vb                516 drivers/media/platform/stm32/stm32-dcmi.c static int dcmi_buf_init(struct vb2_buffer *vb)
vb                518 drivers/media/platform/stm32/stm32-dcmi.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                519 drivers/media/platform/stm32/stm32-dcmi.c 	struct dcmi_buf *buf = container_of(vbuf, struct dcmi_buf, vb);
vb                526 drivers/media/platform/stm32/stm32-dcmi.c static int dcmi_buf_prepare(struct vb2_buffer *vb)
vb                528 drivers/media/platform/stm32/stm32-dcmi.c 	struct stm32_dcmi *dcmi =  vb2_get_drv_priv(vb->vb2_queue);
vb                529 drivers/media/platform/stm32/stm32-dcmi.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                530 drivers/media/platform/stm32/stm32-dcmi.c 	struct dcmi_buf *buf = container_of(vbuf, struct dcmi_buf, vb);
vb                535 drivers/media/platform/stm32/stm32-dcmi.c 	if (vb2_plane_size(vb, 0) < size) {
vb                537 drivers/media/platform/stm32/stm32-dcmi.c 			__func__, vb2_plane_size(vb, 0), size);
vb                541 drivers/media/platform/stm32/stm32-dcmi.c 	vb2_set_plane_payload(vb, 0, size);
vb                546 drivers/media/platform/stm32/stm32-dcmi.c 			vb2_dma_contig_plane_dma_addr(&buf->vb.vb2_buf, 0);
vb                547 drivers/media/platform/stm32/stm32-dcmi.c 		buf->size = vb2_plane_size(&buf->vb.vb2_buf, 0);
vb                550 drivers/media/platform/stm32/stm32-dcmi.c 		vb2_set_plane_payload(&buf->vb.vb2_buf, 0, buf->size);
vb                553 drivers/media/platform/stm32/stm32-dcmi.c 			vb->index, &buf->paddr, buf->size);
vb                559 drivers/media/platform/stm32/stm32-dcmi.c static void dcmi_buf_queue(struct vb2_buffer *vb)
vb                561 drivers/media/platform/stm32/stm32-dcmi.c 	struct stm32_dcmi *dcmi =  vb2_get_drv_priv(vb->vb2_queue);
vb                562 drivers/media/platform/stm32/stm32-dcmi.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                563 drivers/media/platform/stm32/stm32-dcmi.c 	struct dcmi_buf *buf = container_of(vbuf, struct dcmi_buf, vb);
vb                575 drivers/media/platform/stm32/stm32-dcmi.c 			buf->vb.vb2_buf.index);
vb                849 drivers/media/platform/stm32/stm32-dcmi.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED);
vb                877 drivers/media/platform/stm32/stm32-dcmi.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                 20 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c 	struct vb2_v4l2_buffer	vb;
vb                 27 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c 	return container_of(p, struct sun4i_csi_buffer, vb);
vb                 73 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c static int sun4i_csi_buffer_prepare(struct vb2_buffer *vb)
vb                 75 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c 	struct sun4i_csi *csi = vb2_get_drv_priv(vb->vb2_queue);
vb                 81 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c 		if (vb2_plane_size(vb, i) < size) {
vb                 83 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c 				vb2_plane_size(vb, i), size);
vb                 87 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c 		vb2_set_plane_payload(vb, i, size);
vb                130 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c 	v_buf = &c_buf->vb;
vb                193 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c static void sun4i_csi_buffer_queue(struct vb2_buffer *vb)
vb                195 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c 	struct sun4i_csi *csi = vb2_get_drv_priv(vb->vb2_queue);
vb                196 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c 	struct sun4i_csi_buffer *buf = vb2_to_csi_buffer(vb);
vb                211 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c 		vb2_buffer_done(&buf->vb.vb2_buf, state);
vb                 27 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 	struct vb2_v4l2_buffer		vb;
vb                109 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c static int sun6i_video_buffer_prepare(struct vb2_buffer *vb)
vb                111 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                113 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 			container_of(vbuf, struct sun6i_csi_buffer, vb);
vb                114 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 	struct sun6i_video *video = vb2_get_drv_priv(vb->vb2_queue);
vb                117 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 	if (vb2_plane_size(vb, 0) < size) {
vb                119 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 			 vb2_plane_size(vb, 0), size);
vb                123 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 	vb2_set_plane_payload(vb, 0, size);
vb                125 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 	buf->dma_addr = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                212 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED);
vb                237 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                242 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c static void sun6i_video_buffer_queue(struct vb2_buffer *vb)
vb                244 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                246 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 			container_of(vbuf, struct sun6i_csi_buffer, vb);
vb                247 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 	struct sun6i_video *video = vb2_get_drv_priv(vb->vb2_queue);
vb                285 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 	vbuf = &buf->vb;
vb                210 drivers/media/platform/ti-vpe/cal.c 	struct vb2_v4l2_buffer	vb;
vb                820 drivers/media/platform/ti-vpe/cal.c 	addr = vb2_dma_contig_plane_dma_addr(&buf->vb.vb2_buf, 0);
vb                826 drivers/media/platform/ti-vpe/cal.c 	ctx->cur_frm->vb.vb2_buf.timestamp = ktime_get_ns();
vb                827 drivers/media/platform/ti-vpe/cal.c 	ctx->cur_frm->vb.field = ctx->m_fmt.field;
vb                828 drivers/media/platform/ti-vpe/cal.c 	ctx->cur_frm->vb.sequence = ctx->sequence++;
vb                830 drivers/media/platform/ti-vpe/cal.c 	vb2_buffer_done(&ctx->cur_frm->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb               1235 drivers/media/platform/ti-vpe/cal.c static int cal_buffer_prepare(struct vb2_buffer *vb)
vb               1237 drivers/media/platform/ti-vpe/cal.c 	struct cal_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1238 drivers/media/platform/ti-vpe/cal.c 	struct cal_buffer *buf = container_of(vb, struct cal_buffer,
vb               1239 drivers/media/platform/ti-vpe/cal.c 					      vb.vb2_buf);
vb               1246 drivers/media/platform/ti-vpe/cal.c 	if (vb2_plane_size(vb, 0) < size) {
vb               1249 drivers/media/platform/ti-vpe/cal.c 			vb2_plane_size(vb, 0), size);
vb               1253 drivers/media/platform/ti-vpe/cal.c 	vb2_set_plane_payload(&buf->vb.vb2_buf, 0, size);
vb               1257 drivers/media/platform/ti-vpe/cal.c static void cal_buffer_queue(struct vb2_buffer *vb)
vb               1259 drivers/media/platform/ti-vpe/cal.c 	struct cal_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1260 drivers/media/platform/ti-vpe/cal.c 	struct cal_buffer *buf = container_of(vb, struct cal_buffer,
vb               1261 drivers/media/platform/ti-vpe/cal.c 					      vb.vb2_buf);
vb               1293 drivers/media/platform/ti-vpe/cal.c 	addr = vb2_dma_contig_plane_dma_addr(&ctx->cur_frm->vb.vb2_buf, 0);
vb               1328 drivers/media/platform/ti-vpe/cal.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED);
vb               1350 drivers/media/platform/ti-vpe/cal.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb               1354 drivers/media/platform/ti-vpe/cal.c 		vb2_buffer_done(&ctx->cur_frm->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb               1356 drivers/media/platform/ti-vpe/cal.c 		vb2_buffer_done(&ctx->cur_frm->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb               1357 drivers/media/platform/ti-vpe/cal.c 		vb2_buffer_done(&ctx->next_frm->vb.vb2_buf,
vb               1014 drivers/media/platform/ti-vpe/vpe.c 	struct vb2_buffer *vb = &ctx->dst_vb->vb2_buf;
vb               1039 drivers/media/platform/ti-vpe/vpe.c 			dma_addr = vb2_dma_contig_plane_dma_addr(vb, 0);
vb               1043 drivers/media/platform/ti-vpe/vpe.c 			dma_addr = vb2_dma_contig_plane_dma_addr(vb, plane);
vb               1076 drivers/media/platform/ti-vpe/vpe.c 	struct vb2_buffer *vb = &ctx->src_vbs[p_data->vb_index]->vb2_buf;
vb               1077 drivers/media/platform/ti-vpe/vpe.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1103 drivers/media/platform/ti-vpe/vpe.c 			dma_addr = vb2_dma_contig_plane_dma_addr(vb, 0);
vb               1107 drivers/media/platform/ti-vpe/vpe.c 			dma_addr = vb2_dma_contig_plane_dma_addr(vb, plane);
vb               2028 drivers/media/platform/ti-vpe/vpe.c static int vpe_buf_prepare(struct vb2_buffer *vb)
vb               2030 drivers/media/platform/ti-vpe/vpe.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               2031 drivers/media/platform/ti-vpe/vpe.c 	struct vpe_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               2035 drivers/media/platform/ti-vpe/vpe.c 	vpe_dbg(ctx->dev, "type: %d\n", vb->vb2_queue->type);
vb               2037 drivers/media/platform/ti-vpe/vpe.c 	q_data = get_q_data(ctx, vb->vb2_queue->type);
vb               2040 drivers/media/platform/ti-vpe/vpe.c 	if (vb->vb2_queue->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) {
vb               2052 drivers/media/platform/ti-vpe/vpe.c 		if (vb2_plane_size(vb, i) < q_data->sizeimage[i]) {
vb               2055 drivers/media/platform/ti-vpe/vpe.c 				vb2_plane_size(vb, i),
vb               2062 drivers/media/platform/ti-vpe/vpe.c 		vb2_set_plane_payload(vb, i, q_data->sizeimage[i]);
vb               2067 drivers/media/platform/ti-vpe/vpe.c static void vpe_buf_queue(struct vb2_buffer *vb)
vb               2069 drivers/media/platform/ti-vpe/vpe.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               2070 drivers/media/platform/ti-vpe/vpe.c 	struct vpe_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               2099 drivers/media/platform/ti-vpe/vpe.c 	struct vb2_v4l2_buffer *vb;
vb               2104 drivers/media/platform/ti-vpe/vpe.c 			vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx);
vb               2106 drivers/media/platform/ti-vpe/vpe.c 			vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx);
vb               2107 drivers/media/platform/ti-vpe/vpe.c 		if (!vb)
vb               2110 drivers/media/platform/ti-vpe/vpe.c 		v4l2_m2m_buf_done(vb, state);
vb                345 drivers/media/platform/via-camera.c 	struct via_buffer *vb;
vb                354 drivers/media/platform/via-camera.c 	vb = viacam_next_buffer(cam);
vb                355 drivers/media/platform/via-camera.c 	if (vb == NULL)
vb                367 drivers/media/platform/via-camera.c 	sgt = vb2_dma_sg_plane_desc(&vb->vbuf.vb2_buf, 0);
vb                368 drivers/media/platform/via-camera.c 	vb->vbuf.vb2_buf.timestamp = ktime_get_ns();
vb                370 drivers/media/platform/via-camera.c 	vb->vbuf.sequence = cam->sequence++;
vb                371 drivers/media/platform/via-camera.c 	vb->vbuf.field = V4L2_FIELD_NONE;
vb                372 drivers/media/platform/via-camera.c 	list_del(&vb->queue);
vb                373 drivers/media/platform/via-camera.c 	vb2_buffer_done(&vb->vbuf.vb2_buf, VB2_BUF_STATE_DONE);
vb                573 drivers/media/platform/via-camera.c static struct via_buffer *vb2_to_via_buffer(struct vb2_buffer *vb)
vb                575 drivers/media/platform/via-camera.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                580 drivers/media/platform/via-camera.c static void viacam_vb2_queue(struct vb2_buffer *vb)
vb                582 drivers/media/platform/via-camera.c 	struct via_camera *cam = vb2_get_drv_priv(vb->vb2_queue);
vb                583 drivers/media/platform/via-camera.c 	struct via_buffer *via = vb2_to_via_buffer(vb);
vb                588 drivers/media/platform/via-camera.c static int viacam_vb2_prepare(struct vb2_buffer *vb)
vb                590 drivers/media/platform/via-camera.c 	struct via_camera *cam = vb2_get_drv_priv(vb->vb2_queue);
vb                592 drivers/media/platform/via-camera.c 	if (vb2_plane_size(vb, 0) < cam->user_format.sizeimage) {
vb                595 drivers/media/platform/via-camera.c 			vb2_plane_size(vb, 0),
vb                600 drivers/media/platform/via-camera.c 	vb2_set_plane_payload(vb, 0, cam->user_format.sizeimage);
vb               1428 drivers/media/platform/vicodec/vicodec-core.c static int vicodec_buf_out_validate(struct vb2_buffer *vb)
vb               1430 drivers/media/platform/vicodec/vicodec-core.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1436 drivers/media/platform/vicodec/vicodec-core.c static int vicodec_buf_prepare(struct vb2_buffer *vb)
vb               1438 drivers/media/platform/vicodec/vicodec-core.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1439 drivers/media/platform/vicodec/vicodec-core.c 	struct vicodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1442 drivers/media/platform/vicodec/vicodec-core.c 	dprintk(ctx->dev, "type: %d\n", vb->vb2_queue->type);
vb               1444 drivers/media/platform/vicodec/vicodec-core.c 	q_data = get_q_data(ctx, vb->vb2_queue->type);
vb               1445 drivers/media/platform/vicodec/vicodec-core.c 	if (V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) {
vb               1455 drivers/media/platform/vicodec/vicodec-core.c 	if (vb2_plane_size(vb, 0) < q_data->vb2_sizeimage) {
vb               1458 drivers/media/platform/vicodec/vicodec-core.c 			__func__, vb2_plane_size(vb, 0),
vb               1466 drivers/media/platform/vicodec/vicodec-core.c static void vicodec_buf_queue(struct vb2_buffer *vb)
vb               1468 drivers/media/platform/vicodec/vicodec-core.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1469 drivers/media/platform/vicodec/vicodec-core.c 	struct vicodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1484 drivers/media/platform/vicodec/vicodec-core.c 		if (!V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type) &&
vb               1488 drivers/media/platform/vicodec/vicodec-core.c 			for (i = 0; i < vb->num_planes; i++)
vb               1489 drivers/media/platform/vicodec/vicodec-core.c 				vb->planes[i].bytesused = 0;
vb               1492 drivers/media/platform/vicodec/vicodec-core.c 			vbuf->sequence = get_q_data(ctx, vb->vb2_queue->type)->sequence++;
vb               1493 drivers/media/platform/vicodec/vicodec-core.c 			vb2_buffer_done(vb, VB2_BUF_STATE_DONE);
vb               1522 drivers/media/platform/vicodec/vicodec-core.c 	    !V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) {
vb               1737 drivers/media/platform/vicodec/vicodec-core.c static void vicodec_buf_request_complete(struct vb2_buffer *vb)
vb               1739 drivers/media/platform/vicodec/vicodec-core.c 	struct vicodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1741 drivers/media/platform/vicodec/vicodec-core.c 	v4l2_ctrl_request_complete(vb->req_obj.req, &ctx->hdl);
vb               2020 drivers/media/platform/vicodec/vicodec-core.c 		struct vb2_buffer *vb;
vb               2023 drivers/media/platform/vicodec/vicodec-core.c 			vb = container_of(obj, struct vb2_buffer, req_obj);
vb               2024 drivers/media/platform/vicodec/vicodec-core.c 			ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1022 drivers/media/platform/vim2m.c static int vim2m_buf_out_validate(struct vb2_buffer *vb)
vb               1024 drivers/media/platform/vim2m.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1025 drivers/media/platform/vim2m.c 	struct vim2m_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1037 drivers/media/platform/vim2m.c static int vim2m_buf_prepare(struct vb2_buffer *vb)
vb               1039 drivers/media/platform/vim2m.c 	struct vim2m_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1042 drivers/media/platform/vim2m.c 	dprintk(ctx->dev, 2, "type: %s\n", type_name(vb->vb2_queue->type));
vb               1044 drivers/media/platform/vim2m.c 	q_data = get_q_data(ctx, vb->vb2_queue->type);
vb               1047 drivers/media/platform/vim2m.c 	if (vb2_plane_size(vb, 0) < q_data->sizeimage) {
vb               1050 drivers/media/platform/vim2m.c 			__func__, vb2_plane_size(vb, 0),
vb               1055 drivers/media/platform/vim2m.c 	vb2_set_plane_payload(vb, 0, q_data->sizeimage);
vb               1060 drivers/media/platform/vim2m.c static void vim2m_buf_queue(struct vb2_buffer *vb)
vb               1062 drivers/media/platform/vim2m.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1063 drivers/media/platform/vim2m.c 	struct vim2m_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1106 drivers/media/platform/vim2m.c static void vim2m_buf_request_complete(struct vb2_buffer *vb)
vb               1108 drivers/media/platform/vim2m.c 	struct vim2m_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb               1110 drivers/media/platform/vim2m.c 	v4l2_ctrl_request_complete(vb->req_obj.req, &ctx->hdl);
vb                303 drivers/media/platform/vimc/vimc-capture.c static int vimc_cap_buffer_prepare(struct vb2_buffer *vb)
vb                305 drivers/media/platform/vimc/vimc-capture.c 	struct vimc_cap_device *vcap = vb2_get_drv_priv(vb->vb2_queue);
vb                308 drivers/media/platform/vimc/vimc-capture.c 	if (vb2_plane_size(vb, 0) < size) {
vb                310 drivers/media/platform/vimc/vimc-capture.c 			vcap->vdev.name, vb2_plane_size(vb, 0), size);
vb                 74 drivers/media/platform/vivid/vivid-core.h 	struct vb2_v4l2_buffer vb;
vb                228 drivers/media/platform/vivid/vivid-kthread-cap.c 		return vb2_plane_vaddr(&buf->vb.vb2_buf, p);
vb                229 drivers/media/platform/vivid/vivid-kthread-cap.c 	vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
vb                238 drivers/media/platform/vivid/vivid-kthread-cap.c 	bool blank = dev->must_blank[vid_cap_buf->vb.vb2_buf.index];
vb                275 drivers/media/platform/vivid/vivid-kthread-cap.c 	vid_cap_buf->vb.field = vid_out_buf->vb.field;
vb                280 drivers/media/platform/vivid/vivid-kthread-cap.c 		voutbuf += vid_out_buf->vb.vb2_buf.planes[p].data_offset;
vb                427 drivers/media/platform/vivid/vivid-kthread-cap.c 	buf->vb.sequence = dev->vid_cap_seq_count;
vb                435 drivers/media/platform/vivid/vivid-kthread-cap.c 		buf->vb.field = ((dev->vid_cap_seq_count & 1) ^ is_60hz) ?
vb                441 drivers/media/platform/vivid/vivid-kthread-cap.c 		buf->vb.sequence /= 2;
vb                443 drivers/media/platform/vivid/vivid-kthread-cap.c 		buf->vb.field = dev->field_cap;
vb                445 drivers/media/platform/vivid/vivid-kthread-cap.c 	tpg_s_field(tpg, buf->vb.field,
vb                447 drivers/media/platform/vivid/vivid-kthread-cap.c 	tpg_s_perc_fill_blank(tpg, dev->must_blank[buf->vb.vb2_buf.index]);
vb                470 drivers/media/platform/vivid/vivid-kthread-cap.c 	dev->must_blank[buf->vb.vb2_buf.index] = false;
vb                485 drivers/media/platform/vivid/vivid-kthread-cap.c 				buf->vb.sequence,
vb                487 drivers/media/platform/vivid/vivid-kthread-cap.c 					(buf->vb.field == V4L2_FIELD_TOP ?
vb                596 drivers/media/platform/vivid/vivid-kthread-cap.c 	void *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
vb                612 drivers/media/platform/vivid/vivid-kthread-cap.c 	    dev->overlay_cap_field != buf->vb.field)
vb                718 drivers/media/platform/vivid/vivid-kthread-cap.c 		v4l2_ctrl_request_setup(vid_cap_buf->vb.vb2_buf.req_obj.req,
vb                723 drivers/media/platform/vivid/vivid-kthread-cap.c 			vid_cap_buf->vb.vb2_buf.index);
vb                730 drivers/media/platform/vivid/vivid-kthread-cap.c 		v4l2_ctrl_request_complete(vid_cap_buf->vb.vb2_buf.req_obj.req,
vb                732 drivers/media/platform/vivid/vivid-kthread-cap.c 		vb2_buffer_done(&vid_cap_buf->vb.vb2_buf, dev->dqbuf_error ?
vb                735 drivers/media/platform/vivid/vivid-kthread-cap.c 				vid_cap_buf->vb.vb2_buf.index);
vb                737 drivers/media/platform/vivid/vivid-kthread-cap.c 		vid_cap_buf->vb.vb2_buf.timestamp = f_time;
vb                743 drivers/media/platform/vivid/vivid-kthread-cap.c 		v4l2_ctrl_request_setup(vbi_cap_buf->vb.vb2_buf.req_obj.req,
vb                749 drivers/media/platform/vivid/vivid-kthread-cap.c 		v4l2_ctrl_request_complete(vbi_cap_buf->vb.vb2_buf.req_obj.req,
vb                751 drivers/media/platform/vivid/vivid-kthread-cap.c 		vb2_buffer_done(&vbi_cap_buf->vb.vb2_buf, dev->dqbuf_error ?
vb                754 drivers/media/platform/vivid/vivid-kthread-cap.c 				vbi_cap_buf->vb.vb2_buf.index);
vb                759 drivers/media/platform/vivid/vivid-kthread-cap.c 		vbi_cap_buf->vb.vb2_buf.timestamp = f_time + vbi_period;
vb                935 drivers/media/platform/vivid/vivid-kthread-cap.c 			v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req,
vb                937 drivers/media/platform/vivid/vivid-kthread-cap.c 			vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                939 drivers/media/platform/vivid/vivid-kthread-cap.c 				buf->vb.vb2_buf.index);
vb                950 drivers/media/platform/vivid/vivid-kthread-cap.c 			v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req,
vb                952 drivers/media/platform/vivid/vivid-kthread-cap.c 			vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                954 drivers/media/platform/vivid/vivid-kthread-cap.c 				buf->vb.vb2_buf.index);
vb                 78 drivers/media/platform/vivid/vivid-kthread-out.c 		v4l2_ctrl_request_setup(vid_out_buf->vb.vb2_buf.req_obj.req,
vb                 80 drivers/media/platform/vivid/vivid-kthread-out.c 		v4l2_ctrl_request_complete(vid_out_buf->vb.vb2_buf.req_obj.req,
vb                 82 drivers/media/platform/vivid/vivid-kthread-out.c 		vid_out_buf->vb.sequence = dev->vid_out_seq_count;
vb                 88 drivers/media/platform/vivid/vivid-kthread-out.c 			vid_out_buf->vb.sequence /= 2;
vb                 90 drivers/media/platform/vivid/vivid-kthread-out.c 		vid_out_buf->vb.vb2_buf.timestamp =
vb                 92 drivers/media/platform/vivid/vivid-kthread-out.c 		vb2_buffer_done(&vid_out_buf->vb.vb2_buf, dev->dqbuf_error ?
vb                 95 drivers/media/platform/vivid/vivid-kthread-out.c 			vid_out_buf->vb.vb2_buf.index);
vb                 99 drivers/media/platform/vivid/vivid-kthread-out.c 		v4l2_ctrl_request_setup(vbi_out_buf->vb.vb2_buf.req_obj.req,
vb                101 drivers/media/platform/vivid/vivid-kthread-out.c 		v4l2_ctrl_request_complete(vbi_out_buf->vb.vb2_buf.req_obj.req,
vb                106 drivers/media/platform/vivid/vivid-kthread-out.c 		vbi_out_buf->vb.sequence = dev->vbi_out_seq_count;
vb                107 drivers/media/platform/vivid/vivid-kthread-out.c 		vbi_out_buf->vb.vb2_buf.timestamp =
vb                109 drivers/media/platform/vivid/vivid-kthread-out.c 		vb2_buffer_done(&vbi_out_buf->vb.vb2_buf, dev->dqbuf_error ?
vb                112 drivers/media/platform/vivid/vivid-kthread-out.c 			vbi_out_buf->vb.vb2_buf.index);
vb                280 drivers/media/platform/vivid/vivid-kthread-out.c 			v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req,
vb                282 drivers/media/platform/vivid/vivid-kthread-out.c 			vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                284 drivers/media/platform/vivid/vivid-kthread-out.c 				buf->vb.vb2_buf.index);
vb                295 drivers/media/platform/vivid/vivid-kthread-out.c 			v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req,
vb                297 drivers/media/platform/vivid/vivid-kthread-out.c 			vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                299 drivers/media/platform/vivid/vivid-kthread-out.c 				buf->vb.vb2_buf.index);
vb                104 drivers/media/platform/vivid/vivid-sdr-cap.c 		sdr_cap_buf->vb.sequence = dev->sdr_cap_seq_count;
vb                105 drivers/media/platform/vivid/vivid-sdr-cap.c 		v4l2_ctrl_request_setup(sdr_cap_buf->vb.vb2_buf.req_obj.req,
vb                107 drivers/media/platform/vivid/vivid-sdr-cap.c 		v4l2_ctrl_request_complete(sdr_cap_buf->vb.vb2_buf.req_obj.req,
vb                110 drivers/media/platform/vivid/vivid-sdr-cap.c 		sdr_cap_buf->vb.vb2_buf.timestamp =
vb                112 drivers/media/platform/vivid/vivid-sdr-cap.c 		vb2_buffer_done(&sdr_cap_buf->vb.vb2_buf, dev->dqbuf_error ?
vb                220 drivers/media/platform/vivid/vivid-sdr-cap.c static int sdr_cap_buf_prepare(struct vb2_buffer *vb)
vb                222 drivers/media/platform/vivid/vivid-sdr-cap.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                235 drivers/media/platform/vivid/vivid-sdr-cap.c 	if (vb2_plane_size(vb, 0) < size) {
vb                237 drivers/media/platform/vivid/vivid-sdr-cap.c 				__func__, vb2_plane_size(vb, 0), size);
vb                240 drivers/media/platform/vivid/vivid-sdr-cap.c 	vb2_set_plane_payload(vb, 0, size);
vb                245 drivers/media/platform/vivid/vivid-sdr-cap.c static void sdr_cap_buf_queue(struct vb2_buffer *vb)
vb                247 drivers/media/platform/vivid/vivid-sdr-cap.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                248 drivers/media/platform/vivid/vivid-sdr-cap.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                249 drivers/media/platform/vivid/vivid-sdr-cap.c 	struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb);
vb                283 drivers/media/platform/vivid/vivid-sdr-cap.c 			vb2_buffer_done(&buf->vb.vb2_buf,
vb                304 drivers/media/platform/vivid/vivid-sdr-cap.c 		v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req,
vb                306 drivers/media/platform/vivid/vivid-sdr-cap.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                314 drivers/media/platform/vivid/vivid-sdr-cap.c static void sdr_cap_buf_request_complete(struct vb2_buffer *vb)
vb                316 drivers/media/platform/vivid/vivid-sdr-cap.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                318 drivers/media/platform/vivid/vivid-sdr-cap.c 	v4l2_ctrl_request_complete(vb->req_obj.req, &dev->ctrl_hdl_sdr_cap);
vb                508 drivers/media/platform/vivid/vivid-sdr-cap.c 	u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
vb                510 drivers/media/platform/vivid/vivid-sdr-cap.c 	unsigned long plane_size = vb2_plane_size(&buf->vb.vb2_buf, 0);
vb                 85 drivers/media/platform/vivid/vivid-vbi-cap.c 	u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
vb                 88 drivers/media/platform/vivid/vivid-vbi-cap.c 	buf->vb.sequence = dev->vbi_cap_seq_count;
vb                 90 drivers/media/platform/vivid/vivid-vbi-cap.c 		buf->vb.sequence /= 2;
vb                 92 drivers/media/platform/vivid/vivid-vbi-cap.c 	vivid_sliced_vbi_cap_fill(dev, buf->vb.sequence);
vb                 94 drivers/media/platform/vivid/vivid-vbi-cap.c 	memset(vbuf, 0x10, vb2_plane_size(&buf->vb.vb2_buf, 0));
vb                105 drivers/media/platform/vivid/vivid-vbi-cap.c 			vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
vb                107 drivers/media/platform/vivid/vivid-vbi-cap.c 	buf->vb.sequence = dev->vbi_cap_seq_count;
vb                109 drivers/media/platform/vivid/vivid-vbi-cap.c 		buf->vb.sequence /= 2;
vb                111 drivers/media/platform/vivid/vivid-vbi-cap.c 	vivid_sliced_vbi_cap_fill(dev, buf->vb.sequence);
vb                113 drivers/media/platform/vivid/vivid-vbi-cap.c 	memset(vbuf, 0, vb2_plane_size(&buf->vb.vb2_buf, 0));
vb                144 drivers/media/platform/vivid/vivid-vbi-cap.c static int vbi_cap_buf_prepare(struct vb2_buffer *vb)
vb                146 drivers/media/platform/vivid/vivid-vbi-cap.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                148 drivers/media/platform/vivid/vivid-vbi-cap.c 	unsigned size = vb->vb2_queue->type == V4L2_BUF_TYPE_SLICED_VBI_CAPTURE ?
vb                162 drivers/media/platform/vivid/vivid-vbi-cap.c 	if (vb2_plane_size(vb, 0) < size) {
vb                164 drivers/media/platform/vivid/vivid-vbi-cap.c 				__func__, vb2_plane_size(vb, 0), size);
vb                167 drivers/media/platform/vivid/vivid-vbi-cap.c 	vb2_set_plane_payload(vb, 0, size);
vb                172 drivers/media/platform/vivid/vivid-vbi-cap.c static void vbi_cap_buf_queue(struct vb2_buffer *vb)
vb                174 drivers/media/platform/vivid/vivid-vbi-cap.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                175 drivers/media/platform/vivid/vivid-vbi-cap.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                176 drivers/media/platform/vivid/vivid-vbi-cap.c 	struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb);
vb                203 drivers/media/platform/vivid/vivid-vbi-cap.c 			vb2_buffer_done(&buf->vb.vb2_buf,
vb                219 drivers/media/platform/vivid/vivid-vbi-cap.c static void vbi_cap_buf_request_complete(struct vb2_buffer *vb)
vb                221 drivers/media/platform/vivid/vivid-vbi-cap.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                223 drivers/media/platform/vivid/vivid-vbi-cap.c 	v4l2_ctrl_request_complete(vb->req_obj.req, &dev->ctrl_hdl_vbi_cap);
vb                 40 drivers/media/platform/vivid/vivid-vbi-out.c static int vbi_out_buf_prepare(struct vb2_buffer *vb)
vb                 42 drivers/media/platform/vivid/vivid-vbi-out.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                 44 drivers/media/platform/vivid/vivid-vbi-out.c 	unsigned size = vb->vb2_queue->type == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT ?
vb                 58 drivers/media/platform/vivid/vivid-vbi-out.c 	if (vb2_plane_size(vb, 0) < size) {
vb                 60 drivers/media/platform/vivid/vivid-vbi-out.c 				__func__, vb2_plane_size(vb, 0), size);
vb                 63 drivers/media/platform/vivid/vivid-vbi-out.c 	vb2_set_plane_payload(vb, 0, size);
vb                 68 drivers/media/platform/vivid/vivid-vbi-out.c static void vbi_out_buf_queue(struct vb2_buffer *vb)
vb                 70 drivers/media/platform/vivid/vivid-vbi-out.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                 71 drivers/media/platform/vivid/vivid-vbi-out.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                 72 drivers/media/platform/vivid/vivid-vbi-out.c 	struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb);
vb                 99 drivers/media/platform/vivid/vivid-vbi-out.c 			vb2_buffer_done(&buf->vb.vb2_buf,
vb                118 drivers/media/platform/vivid/vivid-vbi-out.c static void vbi_out_buf_request_complete(struct vb2_buffer *vb)
vb                120 drivers/media/platform/vivid/vivid-vbi-out.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                122 drivers/media/platform/vivid/vivid-vbi-out.c 	v4l2_ctrl_request_complete(vb->req_obj.req, &dev->ctrl_hdl_vbi_out);
vb                223 drivers/media/platform/vivid/vivid-vbi-out.c 		vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
vb                225 drivers/media/platform/vivid/vivid-vbi-out.c 		vb2_get_plane_payload(&buf->vb.vb2_buf, 0) / sizeof(*vbi);
vb                139 drivers/media/platform/vivid/vivid-vid-cap.c static int vid_cap_buf_prepare(struct vb2_buffer *vb)
vb                141 drivers/media/platform/vivid/vivid-vid-cap.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                165 drivers/media/platform/vivid/vivid-vid-cap.c 		if (vb2_plane_size(vb, p) < size) {
vb                167 drivers/media/platform/vivid/vivid-vid-cap.c 					__func__, p, vb2_plane_size(vb, p), size);
vb                171 drivers/media/platform/vivid/vivid-vid-cap.c 		vb2_set_plane_payload(vb, p, size);
vb                172 drivers/media/platform/vivid/vivid-vid-cap.c 		vb->planes[p].data_offset = dev->fmt_cap->data_offset[p];
vb                178 drivers/media/platform/vivid/vivid-vid-cap.c static void vid_cap_buf_finish(struct vb2_buffer *vb)
vb                180 drivers/media/platform/vivid/vivid-vid-cap.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                181 drivers/media/platform/vivid/vivid-vid-cap.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                204 drivers/media/platform/vivid/vivid-vid-cap.c static void vid_cap_buf_queue(struct vb2_buffer *vb)
vb                206 drivers/media/platform/vivid/vivid-vid-cap.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                207 drivers/media/platform/vivid/vivid-vid-cap.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                208 drivers/media/platform/vivid/vivid-vid-cap.c 	struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb);
vb                241 drivers/media/platform/vivid/vivid-vid-cap.c 			vb2_buffer_done(&buf->vb.vb2_buf,
vb                258 drivers/media/platform/vivid/vivid-vid-cap.c static void vid_cap_buf_request_complete(struct vb2_buffer *vb)
vb                260 drivers/media/platform/vivid/vivid-vid-cap.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                262 drivers/media/platform/vivid/vivid-vid-cap.c 	v4l2_ctrl_request_complete(vb->req_obj.req, &dev->ctrl_hdl_vid_cap);
vb                 87 drivers/media/platform/vivid/vivid-vid-out.c static int vid_out_buf_out_validate(struct vb2_buffer *vb)
vb                 89 drivers/media/platform/vivid/vivid-vid-out.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                 90 drivers/media/platform/vivid/vivid-vid-out.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                102 drivers/media/platform/vivid/vivid-vid-out.c static int vid_out_buf_prepare(struct vb2_buffer *vb)
vb                104 drivers/media/platform/vivid/vivid-vid-out.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                131 drivers/media/platform/vivid/vivid-vid-out.c 		size += vb->planes[p].data_offset;
vb                133 drivers/media/platform/vivid/vivid-vid-out.c 		if (vb2_get_plane_payload(vb, p) < size) {
vb                135 drivers/media/platform/vivid/vivid-vid-out.c 					__func__, p, vb2_get_plane_payload(vb, p), size);
vb                143 drivers/media/platform/vivid/vivid-vid-out.c static void vid_out_buf_queue(struct vb2_buffer *vb)
vb                145 drivers/media/platform/vivid/vivid-vid-out.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                146 drivers/media/platform/vivid/vivid-vid-out.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                147 drivers/media/platform/vivid/vivid-vid-out.c 	struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb);
vb                177 drivers/media/platform/vivid/vivid-vid-out.c 			vb2_buffer_done(&buf->vb.vb2_buf,
vb                194 drivers/media/platform/vivid/vivid-vid-out.c static void vid_out_buf_request_complete(struct vb2_buffer *vb)
vb                196 drivers/media/platform/vivid/vivid-vid-out.c 	struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                198 drivers/media/platform/vivid/vivid-vid-out.c 	v4l2_ctrl_request_complete(vb->req_obj.req, &dev->ctrl_hdl_vid_out);
vb                105 drivers/media/platform/vsp1/vsp1_histo.c static int histo_buffer_prepare(struct vb2_buffer *vb)
vb                107 drivers/media/platform/vsp1/vsp1_histo.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                108 drivers/media/platform/vsp1/vsp1_histo.c 	struct vsp1_histogram *histo = vb2_get_drv_priv(vb->vb2_queue);
vb                111 drivers/media/platform/vsp1/vsp1_histo.c 	if (vb->num_planes != 1)
vb                114 drivers/media/platform/vsp1/vsp1_histo.c 	if (vb2_plane_size(vb, 0) < histo->data_size)
vb                117 drivers/media/platform/vsp1/vsp1_histo.c 	buf->addr = vb2_plane_vaddr(vb, 0);
vb                122 drivers/media/platform/vsp1/vsp1_histo.c static void histo_buffer_queue(struct vb2_buffer *vb)
vb                124 drivers/media/platform/vsp1/vsp1_histo.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                125 drivers/media/platform/vsp1/vsp1_histo.c 	struct vsp1_histogram *histo = vb2_get_drv_priv(vb->vb2_queue);
vb                733 drivers/media/platform/vsp1/vsp1_video.c static int vsp1_video_buffer_prepare(struct vb2_buffer *vb)
vb                735 drivers/media/platform/vsp1/vsp1_video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                736 drivers/media/platform/vsp1/vsp1_video.c 	struct vsp1_video *video = vb2_get_drv_priv(vb->vb2_queue);
vb                741 drivers/media/platform/vsp1/vsp1_video.c 	if (vb->num_planes < format->num_planes)
vb                744 drivers/media/platform/vsp1/vsp1_video.c 	for (i = 0; i < vb->num_planes; ++i) {
vb                745 drivers/media/platform/vsp1/vsp1_video.c 		buf->mem.addr[i] = vb2_dma_contig_plane_dma_addr(vb, i);
vb                747 drivers/media/platform/vsp1/vsp1_video.c 		if (vb2_plane_size(vb, i) < format->plane_fmt[i].sizeimage)
vb                757 drivers/media/platform/vsp1/vsp1_video.c static void vsp1_video_buffer_queue(struct vb2_buffer *vb)
vb                759 drivers/media/platform/vsp1/vsp1_video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                760 drivers/media/platform/vsp1/vsp1_video.c 	struct vsp1_video *video = vb2_get_drv_priv(vb->vb2_queue);
vb                297 drivers/media/platform/xilinx/xilinx-dma.c #define to_xvip_dma_buffer(vb)	container_of(vb, struct xvip_dma_buffer, buf)
vb                332 drivers/media/platform/xilinx/xilinx-dma.c static int xvip_dma_buffer_prepare(struct vb2_buffer *vb)
vb                334 drivers/media/platform/xilinx/xilinx-dma.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                335 drivers/media/platform/xilinx/xilinx-dma.c 	struct xvip_dma *dma = vb2_get_drv_priv(vb->vb2_queue);
vb                343 drivers/media/platform/xilinx/xilinx-dma.c static void xvip_dma_buffer_queue(struct vb2_buffer *vb)
vb                345 drivers/media/platform/xilinx/xilinx-dma.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                346 drivers/media/platform/xilinx/xilinx-dma.c 	struct xvip_dma *dma = vb2_get_drv_priv(vb->vb2_queue);
vb                349 drivers/media/platform/xilinx/xilinx-dma.c 	dma_addr_t addr = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                 91 drivers/media/usb/airspy/airspy.c 	struct vb2_v4l2_buffer vb;
vb                303 drivers/media/usb/airspy/airspy.c 		ptr = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0);
vb                306 drivers/media/usb/airspy/airspy.c 		vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, len);
vb                307 drivers/media/usb/airspy/airspy.c 		fbuf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                308 drivers/media/usb/airspy/airspy.c 		fbuf->vb.sequence = s->sequence++;
vb                309 drivers/media/usb/airspy/airspy.c 		vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                451 drivers/media/usb/airspy/airspy.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                495 drivers/media/usb/airspy/airspy.c static void airspy_buf_queue(struct vb2_buffer *vb)
vb                497 drivers/media/usb/airspy/airspy.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                498 drivers/media/usb/airspy/airspy.c 	struct airspy *s = vb2_get_drv_priv(vb->vb2_queue);
vb                500 drivers/media/usb/airspy/airspy.c 			container_of(vbuf, struct airspy_frame_buf, vb);
vb                505 drivers/media/usb/airspy/airspy.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                564 drivers/media/usb/airspy/airspy.c 			vb2_buffer_done(&buf->vb.vb2_buf,
vb                 34 drivers/media/usb/au0828/au0828-vbi.c static int vbi_buffer_prepare(struct vb2_buffer *vb)
vb                 36 drivers/media/usb/au0828/au0828-vbi.c 	struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                 41 drivers/media/usb/au0828/au0828-vbi.c 	if (vb2_plane_size(vb, 0) < size) {
vb                 43 drivers/media/usb/au0828/au0828-vbi.c 			__func__, vb2_plane_size(vb, 0), size);
vb                 46 drivers/media/usb/au0828/au0828-vbi.c 	vb2_set_plane_payload(vb, 0, size);
vb                 52 drivers/media/usb/au0828/au0828-vbi.c vbi_buffer_queue(struct vb2_buffer *vb)
vb                 54 drivers/media/usb/au0828/au0828-vbi.c 	struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                 55 drivers/media/usb/au0828/au0828-vbi.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                 57 drivers/media/usb/au0828/au0828-vbi.c 			container_of(vbuf, struct au0828_buffer, vb);
vb                 61 drivers/media/usb/au0828/au0828-vbi.c 	buf->mem = vb2_plane_vaddr(vb, 0);
vb                 62 drivers/media/usb/au0828/au0828-vbi.c 	buf->length = vb2_plane_size(vb, 0);
vb                290 drivers/media/usb/au0828/au0828-video.c 	struct vb2_v4l2_buffer *vb = &buf->vb;
vb                291 drivers/media/usb/au0828/au0828-video.c 	struct vb2_queue *q = vb->vb2_buf.vb2_queue;
vb                297 drivers/media/usb/au0828/au0828-video.c 		vb->sequence = dev->frame_count++;
vb                299 drivers/media/usb/au0828/au0828-video.c 		vb->sequence = dev->vbi_frame_count++;
vb                301 drivers/media/usb/au0828/au0828-video.c 	vb->field = V4L2_FIELD_INTERLACED;
vb                302 drivers/media/usb/au0828/au0828-video.c 	vb->vb2_buf.timestamp = ktime_get_ns();
vb                303 drivers/media/usb/au0828/au0828-video.c 	vb2_buffer_done(&vb->vb2_buf, VB2_BUF_STATE_DONE);
vb                519 drivers/media/usb/au0828/au0828-video.c 		outp = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
vb                523 drivers/media/usb/au0828/au0828-video.c 		vbioutp = vb2_plane_vaddr(&vbi_buf->vb.vb2_buf, 0);
vb                562 drivers/media/usb/au0828/au0828-video.c 						&vbi_buf->vb.vb2_buf, 0);
vb                572 drivers/media/usb/au0828/au0828-video.c 						&buf->vb.vb2_buf, 0);
vb                698 drivers/media/usb/au0828/au0828-video.c buffer_prepare(struct vb2_buffer *vb)
vb                700 drivers/media/usb/au0828/au0828-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                702 drivers/media/usb/au0828/au0828-video.c 				struct au0828_buffer, vb);
vb                703 drivers/media/usb/au0828/au0828-video.c 	struct au0828_dev    *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                707 drivers/media/usb/au0828/au0828-video.c 	if (vb2_plane_size(vb, 0) < buf->length) {
vb                709 drivers/media/usb/au0828/au0828-video.c 			__func__, vb2_plane_size(vb, 0), buf->length);
vb                712 drivers/media/usb/au0828/au0828-video.c 	vb2_set_plane_payload(&buf->vb.vb2_buf, 0, buf->length);
vb                717 drivers/media/usb/au0828/au0828-video.c buffer_queue(struct vb2_buffer *vb)
vb                719 drivers/media/usb/au0828/au0828-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                722 drivers/media/usb/au0828/au0828-video.c 							vb);
vb                723 drivers/media/usb/au0828/au0828-video.c 	struct au0828_dev       *dev     = vb2_get_drv_priv(vb->vb2_queue);
vb                727 drivers/media/usb/au0828/au0828-video.c 	buf->mem = vb2_plane_vaddr(vb, 0);
vb                728 drivers/media/usb/au0828/au0828-video.c 	buf->length = vb2_plane_size(vb, 0);
vb                868 drivers/media/usb/au0828/au0828-video.c 		vb2_buffer_done(&dev->isoc_ctl.buf->vb.vb2_buf,
vb                876 drivers/media/usb/au0828/au0828-video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                898 drivers/media/usb/au0828/au0828-video.c 		vb2_buffer_done(&dev->isoc_ctl.vbi_buf->vb.vb2_buf,
vb                907 drivers/media/usb/au0828/au0828-video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                966 drivers/media/usb/au0828/au0828-video.c 		vid_data = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
vb                990 drivers/media/usb/au0828/au0828-video.c 		vbi_data = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
vb                157 drivers/media/usb/au0828/au0828.h 	struct vb2_v4l2_buffer vb;
vb               1261 drivers/media/usb/cx231xx/cx231xx-417.c 	videobuf_waiton(vq, &buf->vb, 0, 0);
vb               1262 drivers/media/usb/cx231xx/cx231xx-417.c 	videobuf_vmalloc_free(&buf->vb);
vb               1263 drivers/media/usb/cx231xx/cx231xx-417.c 	buf->vb.state = VIDEOBUF_NEEDS_INIT;
vb               1279 drivers/media/usb/cx231xx/cx231xx-417.c 				struct cx231xx_buffer, vb.queue);
vb               1285 drivers/media/usb/cx231xx/cx231xx-417.c 	vbuf = videobuf_to_vmalloc(&buf->vb);
vb               1309 drivers/media/usb/cx231xx/cx231xx-417.c 		buf->vb.state = VIDEOBUF_DONE;
vb               1310 drivers/media/usb/cx231xx/cx231xx-417.c 		buf->vb.field_count++;
vb               1311 drivers/media/usb/cx231xx/cx231xx-417.c 		buf->vb.ts = ktime_get_ns();
vb               1312 drivers/media/usb/cx231xx/cx231xx-417.c 		list_del(&buf->vb.queue);
vb               1313 drivers/media/usb/cx231xx/cx231xx-417.c 		wake_up(&buf->vb.done);
vb               1335 drivers/media/usb/cx231xx/cx231xx-417.c 			struct cx231xx_buffer, vb.queue);
vb               1338 drivers/media/usb/cx231xx/cx231xx-417.c 	vbuf = videobuf_to_vmalloc(&buf->vb);
vb               1340 drivers/media/usb/cx231xx/cx231xx-417.c 	buf->vb.state = VIDEOBUF_DONE;
vb               1341 drivers/media/usb/cx231xx/cx231xx-417.c 	buf->vb.field_count++;
vb               1342 drivers/media/usb/cx231xx/cx231xx-417.c 	buf->vb.ts = ktime_get_ns();
vb               1343 drivers/media/usb/cx231xx/cx231xx-417.c 	list_del(&buf->vb.queue);
vb               1344 drivers/media/usb/cx231xx/cx231xx-417.c 	wake_up(&buf->vb.done);
vb               1398 drivers/media/usb/cx231xx/cx231xx-417.c 	struct videobuf_buffer *vb, enum v4l2_field field)
vb               1402 drivers/media/usb/cx231xx/cx231xx-417.c 	    container_of(vb, struct cx231xx_buffer, vb);
vb               1407 drivers/media/usb/cx231xx/cx231xx-417.c 	if (0 != buf->vb.baddr  &&  buf->vb.bsize < size)
vb               1409 drivers/media/usb/cx231xx/cx231xx-417.c 	buf->vb.width = fh->dev->ts1.ts_packet_size;
vb               1410 drivers/media/usb/cx231xx/cx231xx-417.c 	buf->vb.height = fh->dev->ts1.ts_packet_count;
vb               1411 drivers/media/usb/cx231xx/cx231xx-417.c 	buf->vb.size = size;
vb               1412 drivers/media/usb/cx231xx/cx231xx-417.c 	buf->vb.field = field;
vb               1414 drivers/media/usb/cx231xx/cx231xx-417.c 	if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
vb               1415 drivers/media/usb/cx231xx/cx231xx-417.c 		rc = videobuf_iolock(q, &buf->vb, NULL);
vb               1452 drivers/media/usb/cx231xx/cx231xx-417.c 	buf->vb.state = VIDEOBUF_PREPARED;
vb               1461 drivers/media/usb/cx231xx/cx231xx-417.c 	struct videobuf_buffer *vb)
vb               1466 drivers/media/usb/cx231xx/cx231xx-417.c 	    container_of(vb, struct cx231xx_buffer, vb);
vb               1470 drivers/media/usb/cx231xx/cx231xx-417.c 	buf->vb.state = VIDEOBUF_QUEUED;
vb               1471 drivers/media/usb/cx231xx/cx231xx-417.c 	list_add_tail(&buf->vb.queue, &vidq->active);
vb               1476 drivers/media/usb/cx231xx/cx231xx-417.c 	struct videobuf_buffer *vb)
vb               1479 drivers/media/usb/cx231xx/cx231xx-417.c 	    container_of(vb, struct cx231xx_buffer, vb);
vb                199 drivers/media/usb/cx231xx/cx231xx-vbi.c 	videobuf_vmalloc_free(&buf->vb);
vb                200 drivers/media/usb/cx231xx/cx231xx-vbi.c 	buf->vb.state = VIDEOBUF_NEEDS_INIT;
vb                204 drivers/media/usb/cx231xx/cx231xx-vbi.c vbi_buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb,
vb                209 drivers/media/usb/cx231xx/cx231xx-vbi.c 	    container_of(vb, struct cx231xx_buffer, vb);
vb                216 drivers/media/usb/cx231xx/cx231xx-vbi.c 	buf->vb.size = ((dev->width << 1) * height * 2);
vb                218 drivers/media/usb/cx231xx/cx231xx-vbi.c 	if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size)
vb                221 drivers/media/usb/cx231xx/cx231xx-vbi.c 	buf->vb.width = dev->width;
vb                222 drivers/media/usb/cx231xx/cx231xx-vbi.c 	buf->vb.height = height;
vb                223 drivers/media/usb/cx231xx/cx231xx-vbi.c 	buf->vb.field = field;
vb                224 drivers/media/usb/cx231xx/cx231xx-vbi.c 	buf->vb.field = V4L2_FIELD_SEQ_TB;
vb                226 drivers/media/usb/cx231xx/cx231xx-vbi.c 	if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
vb                227 drivers/media/usb/cx231xx/cx231xx-vbi.c 		rc = videobuf_iolock(vq, &buf->vb, NULL);
vb                244 drivers/media/usb/cx231xx/cx231xx-vbi.c 	buf->vb.state = VIDEOBUF_PREPARED;
vb                253 drivers/media/usb/cx231xx/cx231xx-vbi.c vbi_buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb)
vb                256 drivers/media/usb/cx231xx/cx231xx-vbi.c 	    container_of(vb, struct cx231xx_buffer, vb);
vb                261 drivers/media/usb/cx231xx/cx231xx-vbi.c 	buf->vb.state = VIDEOBUF_QUEUED;
vb                262 drivers/media/usb/cx231xx/cx231xx-vbi.c 	list_add_tail(&buf->vb.queue, &vidq->active);
vb                267 drivers/media/usb/cx231xx/cx231xx-vbi.c 			       struct videobuf_buffer *vb)
vb                270 drivers/media/usb/cx231xx/cx231xx-vbi.c 	    container_of(vb, struct cx231xx_buffer, vb);
vb                517 drivers/media/usb/cx231xx/cx231xx-vbi.c 	buf->vb.state = VIDEOBUF_DONE;
vb                518 drivers/media/usb/cx231xx/cx231xx-vbi.c 	buf->vb.field_count++;
vb                519 drivers/media/usb/cx231xx/cx231xx-vbi.c 	buf->vb.ts = ktime_get_ns();
vb                523 drivers/media/usb/cx231xx/cx231xx-vbi.c 	list_del(&buf->vb.queue);
vb                524 drivers/media/usb/cx231xx/cx231xx-vbi.c 	wake_up(&buf->vb.done);
vb                614 drivers/media/usb/cx231xx/cx231xx-vbi.c 	*buf = list_entry(dma_q->active.next, struct cx231xx_buffer, vb.queue);
vb                617 drivers/media/usb/cx231xx/cx231xx-vbi.c 	outp = videobuf_to_vmalloc(&(*buf)->vb);
vb                618 drivers/media/usb/cx231xx/cx231xx-vbi.c 	memset(outp, 0, (*buf)->vb.size);
vb                659 drivers/media/usb/cx231xx/cx231xx-vbi.c 	p_out_buffer = videobuf_to_vmalloc(&buf->vb);
vb                169 drivers/media/usb/cx231xx/cx231xx-video.c 	cx231xx_isocdbg("[%p/%d] wakeup\n", buf, buf->vb.i);
vb                170 drivers/media/usb/cx231xx/cx231xx-video.c 	buf->vb.state = VIDEOBUF_DONE;
vb                171 drivers/media/usb/cx231xx/cx231xx-video.c 	buf->vb.field_count++;
vb                172 drivers/media/usb/cx231xx/cx231xx-video.c 	buf->vb.ts = ktime_get_ns();
vb                179 drivers/media/usb/cx231xx/cx231xx-video.c 	list_del(&buf->vb.queue);
vb                180 drivers/media/usb/cx231xx/cx231xx-video.c 	wake_up(&buf->vb.done);
vb                244 drivers/media/usb/cx231xx/cx231xx-video.c 	*buf = list_entry(dma_q->active.next, struct cx231xx_buffer, vb.queue);
vb                247 drivers/media/usb/cx231xx/cx231xx-video.c 	outp = videobuf_to_vmalloc(&(*buf)->vb);
vb                248 drivers/media/usb/cx231xx/cx231xx-video.c 	memset(outp, 0, (*buf)->vb.size);
vb                656 drivers/media/usb/cx231xx/cx231xx-video.c 	p_out_buffer = videobuf_to_vmalloc(&buf->vb);
vb                675 drivers/media/usb/cx231xx/cx231xx-video.c 	if ((u8 *)(startwrite + lencopy) > (u8 *)(p_out_buffer + buf->vb.size))
vb                758 drivers/media/usb/cx231xx/cx231xx-video.c 	videobuf_vmalloc_free(&buf->vb);
vb                759 drivers/media/usb/cx231xx/cx231xx-video.c 	buf->vb.state = VIDEOBUF_NEEDS_INIT;
vb                763 drivers/media/usb/cx231xx/cx231xx-video.c buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb,
vb                768 drivers/media/usb/cx231xx/cx231xx-video.c 	    container_of(vb, struct cx231xx_buffer, vb);
vb                773 drivers/media/usb/cx231xx/cx231xx-video.c 	buf->vb.size = (fh->dev->width * fh->dev->height * dev->format->depth
vb                775 drivers/media/usb/cx231xx/cx231xx-video.c 	if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size)
vb                778 drivers/media/usb/cx231xx/cx231xx-video.c 	buf->vb.width = dev->width;
vb                779 drivers/media/usb/cx231xx/cx231xx-video.c 	buf->vb.height = dev->height;
vb                780 drivers/media/usb/cx231xx/cx231xx-video.c 	buf->vb.field = field;
vb                782 drivers/media/usb/cx231xx/cx231xx-video.c 	if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
vb                783 drivers/media/usb/cx231xx/cx231xx-video.c 		rc = videobuf_iolock(vq, &buf->vb, NULL);
vb                814 drivers/media/usb/cx231xx/cx231xx-video.c 	buf->vb.state = VIDEOBUF_PREPARED;
vb                823 drivers/media/usb/cx231xx/cx231xx-video.c static void buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb)
vb                826 drivers/media/usb/cx231xx/cx231xx-video.c 	    container_of(vb, struct cx231xx_buffer, vb);
vb                831 drivers/media/usb/cx231xx/cx231xx-video.c 	buf->vb.state = VIDEOBUF_QUEUED;
vb                832 drivers/media/usb/cx231xx/cx231xx-video.c 	list_add_tail(&buf->vb.queue, &vidq->active);
vb                837 drivers/media/usb/cx231xx/cx231xx-video.c 			   struct videobuf_buffer *vb)
vb                840 drivers/media/usb/cx231xx/cx231xx-video.c 	    container_of(vb, struct cx231xx_buffer, vb);
vb                226 drivers/media/usb/cx231xx/cx231xx.h 	struct videobuf_buffer vb;
vb                 63 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_v_buf_init(struct vb2_buffer *vb)
vb                 65 drivers/media/usb/dvb-usb/cxusb-analog.c 	struct dvb_usb_device *dvbdev = vb2_get_drv_priv(vb->vb2_queue);
vb                 70 drivers/media/usb/dvb-usb/cxusb-analog.c 	if (vb2_plane_size(vb, 0) < cxdev->width * cxdev->height * 2)
vb                940 drivers/media/usb/dvb-usb/cxusb-analog.c static void cxusub_medion_v_buf_queue(struct vb2_buffer *vb)
vb                942 drivers/media/usb/dvb-usb/cxusb-analog.c 	struct vb2_v4l2_buffer *v4l2buf = to_vb2_v4l2_buffer(vb);
vb                945 drivers/media/usb/dvb-usb/cxusb-analog.c 	struct dvb_usb_device *dvbdev = vb2_get_drv_priv(vb->vb2_queue);
vb                 54 drivers/media/usb/em28xx/em28xx-vbi.c static int vbi_buffer_prepare(struct vb2_buffer *vb)
vb                 56 drivers/media/usb/em28xx/em28xx-vbi.c 	struct em28xx        *dev  = vb2_get_drv_priv(vb->vb2_queue);
vb                 62 drivers/media/usb/em28xx/em28xx-vbi.c 	if (vb2_plane_size(vb, 0) < size) {
vb                 65 drivers/media/usb/em28xx/em28xx-vbi.c 			 __func__, vb2_plane_size(vb, 0), size);
vb                 68 drivers/media/usb/em28xx/em28xx-vbi.c 	vb2_set_plane_payload(vb, 0, size);
vb                 74 drivers/media/usb/em28xx/em28xx-vbi.c vbi_buffer_queue(struct vb2_buffer *vb)
vb                 76 drivers/media/usb/em28xx/em28xx-vbi.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                 77 drivers/media/usb/em28xx/em28xx-vbi.c 	struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                 79 drivers/media/usb/em28xx/em28xx-vbi.c 		container_of(vbuf, struct em28xx_buffer, vb);
vb                 83 drivers/media/usb/em28xx/em28xx-vbi.c 	buf->mem = vb2_plane_vaddr(vb, 0);
vb                 84 drivers/media/usb/em28xx/em28xx-vbi.c 	buf->length = vb2_plane_size(vb, 0);
vb                442 drivers/media/usb/em28xx/em28xx-video.c 	buf->vb.sequence = dev->v4l2->field_count++;
vb                444 drivers/media/usb/em28xx/em28xx-video.c 		buf->vb.field = V4L2_FIELD_NONE;
vb                446 drivers/media/usb/em28xx/em28xx-video.c 		buf->vb.field = V4L2_FIELD_INTERLACED;
vb                447 drivers/media/usb/em28xx/em28xx-video.c 	buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                449 drivers/media/usb/em28xx/em28xx-video.c 	vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb               1058 drivers/media/usb/em28xx/em28xx-video.c buffer_prepare(struct vb2_buffer *vb)
vb               1060 drivers/media/usb/em28xx/em28xx-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1061 drivers/media/usb/em28xx/em28xx-video.c 	struct em28xx        *dev = vb2_get_drv_priv(vb->vb2_queue);
vb               1069 drivers/media/usb/em28xx/em28xx-video.c 	if (vb2_plane_size(vb, 0) < size) {
vb               1071 drivers/media/usb/em28xx/em28xx-video.c 				__func__, vb2_plane_size(vb, 0), size);
vb               1074 drivers/media/usb/em28xx/em28xx-video.c 	vb2_set_plane_payload(vb, 0, size);
vb               1168 drivers/media/usb/em28xx/em28xx-video.c 		vb2_buffer_done(&dev->usb_ctl.vid_buf->vb.vb2_buf,
vb               1177 drivers/media/usb/em28xx/em28xx-video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb               1203 drivers/media/usb/em28xx/em28xx-video.c 		vb2_buffer_done(&dev->usb_ctl.vbi_buf->vb.vb2_buf,
vb               1212 drivers/media/usb/em28xx/em28xx-video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb               1218 drivers/media/usb/em28xx/em28xx-video.c buffer_queue(struct vb2_buffer *vb)
vb               1220 drivers/media/usb/em28xx/em28xx-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               1221 drivers/media/usb/em28xx/em28xx-video.c 	struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue);
vb               1223 drivers/media/usb/em28xx/em28xx-video.c 		container_of(vbuf, struct em28xx_buffer, vb);
vb               1228 drivers/media/usb/em28xx/em28xx-video.c 	buf->mem = vb2_plane_vaddr(vb, 0);
vb               1229 drivers/media/usb/em28xx/em28xx-video.c 	buf->length = vb2_plane_size(vb, 0);
vb                281 drivers/media/usb/em28xx/em28xx.h 	struct vb2_v4l2_buffer	vb;		/* must be first */
vb                379 drivers/media/usb/go7007/go7007-driver.c static inline void store_byte(struct go7007_buffer *vb, u8 byte)
vb                381 drivers/media/usb/go7007/go7007-driver.c 	if (vb && vb->vb.vb2_buf.planes[0].bytesused < GO7007_BUF_SIZE) {
vb                382 drivers/media/usb/go7007/go7007-driver.c 		u8 *ptr = vb2_plane_vaddr(&vb->vb.vb2_buf, 0);
vb                384 drivers/media/usb/go7007/go7007-driver.c 		ptr[vb->vb.vb2_buf.planes[0].bytesused++] = byte;
vb                388 drivers/media/usb/go7007/go7007-driver.c static void go7007_set_motion_regions(struct go7007 *go, struct go7007_buffer *vb,
vb                396 drivers/media/usb/go7007/go7007-driver.c 				.frame_sequence = vb->vb.sequence,
vb                410 drivers/media/usb/go7007/go7007-driver.c static void go7007_motion_regions(struct go7007 *go, struct go7007_buffer *vb)
vb                412 drivers/media/usb/go7007/go7007-driver.c 	u32 *bytesused = &vb->vb.vb2_buf.planes[0].bytesused;
vb                420 drivers/media/usb/go7007/go7007-driver.c 		store_byte(vb, go->active_map[i]);
vb                433 drivers/media/usb/go7007/go7007-driver.c 	go7007_set_motion_regions(go, vb, motion_regions);
vb                439 drivers/media/usb/go7007/go7007-driver.c static struct go7007_buffer *frame_boundary(struct go7007 *go, struct go7007_buffer *vb)
vb                445 drivers/media/usb/go7007/go7007-driver.c 	if (vb == NULL) {
vb                448 drivers/media/usb/go7007/go7007-driver.c 			vb = go->active_buf =
vb                452 drivers/media/usb/go7007/go7007-driver.c 		return vb;
vb                454 drivers/media/usb/go7007/go7007-driver.c 	bytesused = &vb->vb.vb2_buf.planes[0].bytesused;
vb                456 drivers/media/usb/go7007/go7007-driver.c 	vb->vb.sequence = go->next_seq++;
vb                457 drivers/media/usb/go7007/go7007-driver.c 	if (vb->modet_active && *bytesused + 216 < GO7007_BUF_SIZE)
vb                458 drivers/media/usb/go7007/go7007-driver.c 		go7007_motion_regions(go, vb);
vb                460 drivers/media/usb/go7007/go7007-driver.c 		go7007_set_motion_regions(go, vb, 0);
vb                462 drivers/media/usb/go7007/go7007-driver.c 	vb->vb.vb2_buf.timestamp = ktime_get_ns();
vb                463 drivers/media/usb/go7007/go7007-driver.c 	vb_tmp = vb;
vb                465 drivers/media/usb/go7007/go7007-driver.c 	list_del(&vb->list);
vb                467 drivers/media/usb/go7007/go7007-driver.c 		vb = NULL;
vb                469 drivers/media/usb/go7007/go7007-driver.c 		vb = list_first_entry(&go->vidq_active,
vb                471 drivers/media/usb/go7007/go7007-driver.c 	go->active_buf = vb;
vb                473 drivers/media/usb/go7007/go7007-driver.c 	vb2_buffer_done(&vb_tmp->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                474 drivers/media/usb/go7007/go7007-driver.c 	return vb;
vb                498 drivers/media/usb/go7007/go7007-driver.c 	struct go7007_buffer *vb = go->active_buf;
vb                516 drivers/media/usb/go7007/go7007-driver.c 		if (vb && vb->vb.vb2_buf.planes[0].bytesused >=
vb                519 drivers/media/usb/go7007/go7007-driver.c 			vb->vb.vb2_buf.planes[0].bytesused = 0;
vb                520 drivers/media/usb/go7007/go7007-driver.c 			vb->frame_offset = 0;
vb                521 drivers/media/usb/go7007/go7007-driver.c 			vb->modet_active = 0;
vb                522 drivers/media/usb/go7007/go7007-driver.c 			vb = go->active_buf = NULL;
vb                535 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, buf[i]);
vb                545 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x00);
vb                549 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x00);
vb                550 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, buf[i]);
vb                558 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x00);
vb                565 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x00);
vb                566 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x00);
vb                570 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x00);
vb                571 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x00);
vb                572 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, buf[i]);
vb                580 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x00);
vb                581 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x00);
vb                582 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x01);
vb                583 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0xF8);
vb                595 drivers/media/usb/go7007/go7007-driver.c 				if (vb == NULL || go->seen_frame)
vb                596 drivers/media/usb/go7007/go7007-driver.c 					vb = frame_boundary(go, vb);
vb                598 drivers/media/usb/go7007/go7007-driver.c 				if (vb && go->seen_frame)
vb                599 drivers/media/usb/go7007/go7007-driver.c 					vb->frame_offset =
vb                600 drivers/media/usb/go7007/go7007-driver.c 					vb->vb.vb2_buf.planes[0].bytesused;
vb                619 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x00);
vb                620 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x00);
vb                621 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x01);
vb                625 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x00);
vb                626 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x00);
vb                627 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0x01);
vb                628 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, buf[i]);
vb                636 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0xFF);
vb                640 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0xFF);
vb                645 drivers/media/usb/go7007/go7007-driver.c 					vb = frame_boundary(go, vb);
vb                648 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, 0xFF);
vb                649 drivers/media/usb/go7007/go7007-driver.c 				store_byte(vb, buf[i]);
vb                672 drivers/media/usb/go7007/go7007-driver.c 			} else if (go->parse_length == 207 && vb) {
vb                673 drivers/media/usb/go7007/go7007-driver.c 				vb->modet_active = buf[i];
vb                131 drivers/media/usb/go7007/go7007-priv.h 	struct vb2_v4l2_buffer vb;
vb                 45 drivers/media/usb/go7007/go7007-v4l2.c static u32 get_frame_type_flag(struct go7007_buffer *vb, int format)
vb                 47 drivers/media/usb/go7007/go7007-v4l2.c 	u8 *ptr = vb2_plane_vaddr(&vb->vb.vb2_buf, 0);
vb                 53 drivers/media/usb/go7007/go7007-v4l2.c 		switch ((ptr[vb->frame_offset + 4] >> 6) & 0x3) {
vb                 65 drivers/media/usb/go7007/go7007-v4l2.c 		switch ((ptr[vb->frame_offset + 5] >> 3) & 0x7) {
vb                356 drivers/media/usb/go7007/go7007-v4l2.c static void go7007_buf_queue(struct vb2_buffer *vb)
vb                358 drivers/media/usb/go7007/go7007-v4l2.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                360 drivers/media/usb/go7007/go7007-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                362 drivers/media/usb/go7007/go7007-v4l2.c 		container_of(vbuf, struct go7007_buffer, vb);
vb                370 drivers/media/usb/go7007/go7007-v4l2.c static int go7007_buf_prepare(struct vb2_buffer *vb)
vb                372 drivers/media/usb/go7007/go7007-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                374 drivers/media/usb/go7007/go7007-v4l2.c 		container_of(vbuf, struct go7007_buffer, vb);
vb                378 drivers/media/usb/go7007/go7007-v4l2.c 	vb->planes[0].bytesused = 0;
vb                382 drivers/media/usb/go7007/go7007-v4l2.c static void go7007_buf_finish(struct vb2_buffer *vb)
vb                384 drivers/media/usb/go7007/go7007-v4l2.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                386 drivers/media/usb/go7007/go7007-v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                388 drivers/media/usb/go7007/go7007-v4l2.c 		container_of(vbuf, struct go7007_buffer, vb);
vb                406 drivers/media/usb/gspca/gspca.c 		gspca_dev->image = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
vb                450 drivers/media/usb/gspca/gspca.c 		buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                451 drivers/media/usb/gspca/gspca.c 		vb2_set_plane_payload(&buf->vb.vb2_buf, 0,
vb                453 drivers/media/usb/gspca/gspca.c 		buf->vb.sequence = gspca_dev->sequence++;
vb                454 drivers/media/usb/gspca/gspca.c 		buf->vb.field = V4L2_FIELD_NONE;
vb                457 drivers/media/usb/gspca/gspca.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb               1301 drivers/media/usb/gspca/gspca.c static int gspca_buffer_prepare(struct vb2_buffer *vb)
vb               1303 drivers/media/usb/gspca/gspca.c 	struct gspca_dev *gspca_dev = vb2_get_drv_priv(vb->vb2_queue);
vb               1306 drivers/media/usb/gspca/gspca.c 	if (vb2_plane_size(vb, 0) < size) {
vb               1308 drivers/media/usb/gspca/gspca.c 			 vb2_plane_size(vb, 0), size);
vb               1314 drivers/media/usb/gspca/gspca.c static void gspca_buffer_finish(struct vb2_buffer *vb)
vb               1316 drivers/media/usb/gspca/gspca.c 	struct gspca_dev *gspca_dev = vb2_get_drv_priv(vb->vb2_queue);
vb               1326 drivers/media/usb/gspca/gspca.c static void gspca_buffer_queue(struct vb2_buffer *vb)
vb               1328 drivers/media/usb/gspca/gspca.c 	struct gspca_dev *gspca_dev = vb2_get_drv_priv(vb->vb2_queue);
vb               1329 drivers/media/usb/gspca/gspca.c 	struct gspca_buffer *buf = to_gspca_buffer(vb);
vb               1345 drivers/media/usb/gspca/gspca.c 		vb2_buffer_done(&buf->vb.vb2_buf, state);
vb                144 drivers/media/usb/gspca/gspca.h 	struct vb2_v4l2_buffer vb;
vb                150 drivers/media/usb/gspca/gspca.h 	return container_of(vb2, struct gspca_buffer, vb.vb2_buf);
vb                 89 drivers/media/usb/hackrf/hackrf.c 	struct vb2_v4l2_buffer vb;
vb                514 drivers/media/usb/hackrf/hackrf.c 	len = min_t(unsigned long, vb2_plane_size(&buffer->vb.vb2_buf, 0),
vb                516 drivers/media/usb/hackrf/hackrf.c 	hackrf_copy_stream(dev, vb2_plane_vaddr(&buffer->vb.vb2_buf, 0),
vb                518 drivers/media/usb/hackrf/hackrf.c 	vb2_set_plane_payload(&buffer->vb.vb2_buf, 0, len);
vb                519 drivers/media/usb/hackrf/hackrf.c 	buffer->vb.sequence = dev->sequence++;
vb                520 drivers/media/usb/hackrf/hackrf.c 	buffer->vb.vb2_buf.timestamp = ktime_get_ns();
vb                521 drivers/media/usb/hackrf/hackrf.c 	vb2_buffer_done(&buffer->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                560 drivers/media/usb/hackrf/hackrf.c 		    vb2_get_plane_payload(&buffer->vb.vb2_buf, 0));
vb                562 drivers/media/usb/hackrf/hackrf.c 			   vb2_plane_vaddr(&buffer->vb.vb2_buf, 0), len);
vb                564 drivers/media/usb/hackrf/hackrf.c 	buffer->vb.sequence = dev->sequence++;
vb                565 drivers/media/usb/hackrf/hackrf.c 	buffer->vb.vb2_buf.timestamp = ktime_get_ns();
vb                566 drivers/media/usb/hackrf/hackrf.c 	vb2_buffer_done(&buffer->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                745 drivers/media/usb/hackrf/hackrf.c 		vb2_buffer_done(&buffer->vb.vb2_buf, state);
vb                769 drivers/media/usb/hackrf/hackrf.c static void hackrf_buf_queue(struct vb2_buffer *vb)
vb                771 drivers/media/usb/hackrf/hackrf.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                772 drivers/media/usb/hackrf/hackrf.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                774 drivers/media/usb/hackrf/hackrf.c 	struct hackrf_buffer *buffer = container_of(vbuf, struct hackrf_buffer, vb);
vb                101 drivers/media/usb/msi2500/msi2500.c 	struct vb2_v4l2_buffer vb;
vb                420 drivers/media/usb/msi2500/msi2500.c 		ptr = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0);
vb                422 drivers/media/usb/msi2500/msi2500.c 		vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, flen);
vb                423 drivers/media/usb/msi2500/msi2500.c 		vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                557 drivers/media/usb/msi2500/msi2500.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                615 drivers/media/usb/msi2500/msi2500.c static void msi2500_buf_queue(struct vb2_buffer *vb)
vb                617 drivers/media/usb/msi2500/msi2500.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                618 drivers/media/usb/msi2500/msi2500.c 	struct msi2500_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                621 drivers/media/usb/msi2500/msi2500.c 						     vb);
vb                626 drivers/media/usb/msi2500/msi2500.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                261 drivers/media/usb/pwc/pwc-if.c 			fbuf->vb.field = V4L2_FIELD_NONE;
vb                262 drivers/media/usb/pwc/pwc-if.c 			fbuf->vb.sequence = pdev->vframe_count;
vb                263 drivers/media/usb/pwc/pwc-if.c 			vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                311 drivers/media/usb/pwc/pwc-if.c 				vb2_buffer_done(&pdev->fill_buf->vb.vb2_buf,
vb                345 drivers/media/usb/pwc/pwc-if.c 				fbuf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                554 drivers/media/usb/pwc/pwc-if.c 		vb2_buffer_done(&buf->vb.vb2_buf, state);
vb                626 drivers/media/usb/pwc/pwc-if.c static int buffer_init(struct vb2_buffer *vb)
vb                628 drivers/media/usb/pwc/pwc-if.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                630 drivers/media/usb/pwc/pwc-if.c 		container_of(vbuf, struct pwc_frame_buf, vb);
vb                640 drivers/media/usb/pwc/pwc-if.c static int buffer_prepare(struct vb2_buffer *vb)
vb                642 drivers/media/usb/pwc/pwc-if.c 	struct pwc_device *pdev = vb2_get_drv_priv(vb->vb2_queue);
vb                651 drivers/media/usb/pwc/pwc-if.c static void buffer_finish(struct vb2_buffer *vb)
vb                653 drivers/media/usb/pwc/pwc-if.c 	struct pwc_device *pdev = vb2_get_drv_priv(vb->vb2_queue);
vb                654 drivers/media/usb/pwc/pwc-if.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                656 drivers/media/usb/pwc/pwc-if.c 		container_of(vbuf, struct pwc_frame_buf, vb);
vb                658 drivers/media/usb/pwc/pwc-if.c 	if (vb->state == VB2_BUF_STATE_DONE) {
vb                669 drivers/media/usb/pwc/pwc-if.c static void buffer_cleanup(struct vb2_buffer *vb)
vb                671 drivers/media/usb/pwc/pwc-if.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                673 drivers/media/usb/pwc/pwc-if.c 		container_of(vbuf, struct pwc_frame_buf, vb);
vb                678 drivers/media/usb/pwc/pwc-if.c static void buffer_queue(struct vb2_buffer *vb)
vb                680 drivers/media/usb/pwc/pwc-if.c 	struct pwc_device *pdev = vb2_get_drv_priv(vb->vb2_queue);
vb                681 drivers/media/usb/pwc/pwc-if.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                683 drivers/media/usb/pwc/pwc-if.c 		container_of(vbuf, struct pwc_frame_buf, vb);
vb                688 drivers/media/usb/pwc/pwc-if.c 		vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
vb                737 drivers/media/usb/pwc/pwc-if.c 		vb2_buffer_done(&pdev->fill_buf->vb.vb2_buf,
vb                 31 drivers/media/usb/pwc/pwc-uncompress.c 	image = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0);
vb                 46 drivers/media/usb/pwc/pwc-uncompress.c 		vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0,
vb                 51 drivers/media/usb/pwc/pwc-uncompress.c 	vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0,
vb                203 drivers/media/usb/pwc/pwc.h 	struct vb2_v4l2_buffer vb;
vb                283 drivers/media/usb/s2255/s2255drv.c 	struct vb2_v4l2_buffer vb;
vb                558 drivers/media/usb/s2255/s2255drv.c 	buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                559 drivers/media/usb/s2255/s2255drv.c 	buf->vb.field = vc->field;
vb                560 drivers/media/usb/s2255/s2255drv.c 	buf->vb.sequence = vc->frame_count;
vb                565 drivers/media/usb/s2255/s2255drv.c 	vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                597 drivers/media/usb/s2255/s2255drv.c 	char *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
vb                620 drivers/media/usb/s2255/s2255drv.c 			vb2_set_plane_payload(&buf->vb.vb2_buf, 0, jpgsize);
vb                656 drivers/media/usb/s2255/s2255drv.c static int buffer_prepare(struct vb2_buffer *vb)
vb                658 drivers/media/usb/s2255/s2255drv.c 	struct s2255_vc *vc = vb2_get_drv_priv(vb->vb2_queue);
vb                659 drivers/media/usb/s2255/s2255drv.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                660 drivers/media/usb/s2255/s2255drv.c 	struct s2255_buffer *buf = container_of(vbuf, struct s2255_buffer, vb);
vb                677 drivers/media/usb/s2255/s2255drv.c 	if (vb2_plane_size(vb, 0) < size) {
vb                682 drivers/media/usb/s2255/s2255drv.c 	vb2_set_plane_payload(&buf->vb.vb2_buf, 0, size);
vb                686 drivers/media/usb/s2255/s2255drv.c static void buffer_queue(struct vb2_buffer *vb)
vb                688 drivers/media/usb/s2255/s2255drv.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                689 drivers/media/usb/s2255/s2255drv.c 	struct s2255_buffer *buf = container_of(vbuf, struct s2255_buffer, vb);
vb                690 drivers/media/usb/s2255/s2255drv.c 	struct s2255_vc *vc = vb2_get_drv_priv(vb->vb2_queue);
vb               1089 drivers/media/usb/s2255/s2255drv.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb               1091 drivers/media/usb/s2255/s2255drv.c 			buf, buf->vb.vb2_buf.index);
vb                680 drivers/media/usb/stk1160/stk1160-v4l.c static void buffer_queue(struct vb2_buffer *vb)
vb                683 drivers/media/usb/stk1160/stk1160-v4l.c 	struct stk1160 *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                684 drivers/media/usb/stk1160/stk1160-v4l.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                686 drivers/media/usb/stk1160/stk1160-v4l.c 		container_of(vbuf, struct stk1160_buffer, vb);
vb                694 drivers/media/usb/stk1160/stk1160-v4l.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                697 drivers/media/usb/stk1160/stk1160-v4l.c 		buf->mem = vb2_plane_vaddr(vb, 0);
vb                698 drivers/media/usb/stk1160/stk1160-v4l.c 		buf->length = vb2_plane_size(vb, 0);
vb                707 drivers/media/usb/stk1160/stk1160-v4l.c 			vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                759 drivers/media/usb/stk1160/stk1160-v4l.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                761 drivers/media/usb/stk1160/stk1160-v4l.c 			    buf, buf->vb.vb2_buf.index);
vb                769 drivers/media/usb/stk1160/stk1160-v4l.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                771 drivers/media/usb/stk1160/stk1160-v4l.c 			    buf, buf->vb.vb2_buf.index);
vb                 89 drivers/media/usb/stk1160/stk1160-video.c 	buf->vb.sequence = dev->sequence++;
vb                 90 drivers/media/usb/stk1160/stk1160-video.c 	buf->vb.field = V4L2_FIELD_INTERLACED;
vb                 91 drivers/media/usb/stk1160/stk1160-video.c 	buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                 93 drivers/media/usb/stk1160/stk1160-video.c 	vb2_set_plane_payload(&buf->vb.vb2_buf, 0, buf->bytesused);
vb                 94 drivers/media/usb/stk1160/stk1160-video.c 	vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                 72 drivers/media/usb/stk1160/stk1160.h 	struct vb2_v4l2_buffer vb;
vb                 92 drivers/media/usb/tm6000/tm6000-video.c 			struct tm6000_buffer, vb.queue);
vb                103 drivers/media/usb/tm6000/tm6000-video.c 	dprintk(dev, V4L2_DEBUG_ISOC, "[%p/%d] wakeup\n", buf, buf->vb.i);
vb                104 drivers/media/usb/tm6000/tm6000-video.c 	buf->vb.state = VIDEOBUF_DONE;
vb                105 drivers/media/usb/tm6000/tm6000-video.c 	buf->vb.field_count++;
vb                106 drivers/media/usb/tm6000/tm6000-video.c 	buf->vb.ts = ktime_get_ns();
vb                108 drivers/media/usb/tm6000/tm6000-video.c 	list_del(&buf->vb.queue);
vb                109 drivers/media/usb/tm6000/tm6000-video.c 	wake_up(&buf->vb.done);
vb                134 drivers/media/usb/tm6000/tm6000-video.c 		voutp = videobuf_to_vmalloc(&vbuf->vb);
vb                202 drivers/media/usb/tm6000/tm6000-video.c 						voutp = videobuf_to_vmalloc(&vbuf->vb);
vb                205 drivers/media/usb/tm6000/tm6000-video.c 						memset(voutp, 0, vbuf->vb.size);
vb                207 drivers/media/usb/tm6000/tm6000-video.c 					linewidth = vbuf->vb.width << 1;
vb                211 drivers/media/usb/tm6000/tm6000-video.c 					if (pos + size > vbuf->vb.size)
vb                295 drivers/media/usb/tm6000/tm6000-video.c 		outp = videobuf_to_vmalloc(&buf->vb);
vb                301 drivers/media/usb/tm6000/tm6000-video.c 		cpysize = min(len, buf->vb.size-pos);
vb                306 drivers/media/usb/tm6000/tm6000-video.c 		if (pos >= buf->vb.size) {
vb                314 drivers/media/usb/tm6000/tm6000-video.c 			outp = videobuf_to_vmalloc(&(buf->vb));
vb                711 drivers/media/usb/tm6000/tm6000-video.c 	videobuf_vmalloc_free(&buf->vb);
vb                712 drivers/media/usb/tm6000/tm6000-video.c 	buf->vb.state = VIDEOBUF_NEEDS_INIT;
vb                716 drivers/media/usb/tm6000/tm6000-video.c buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb,
vb                720 drivers/media/usb/tm6000/tm6000-video.c 	struct tm6000_buffer *buf = container_of(vb, struct tm6000_buffer, vb);
vb                729 drivers/media/usb/tm6000/tm6000-video.c 	buf->vb.size = fh->fmt->depth*fh->width*fh->height >> 3;
vb                730 drivers/media/usb/tm6000/tm6000-video.c 	if (0 != buf->vb.baddr  &&  buf->vb.bsize < buf->vb.size)
vb                734 drivers/media/usb/tm6000/tm6000-video.c 	    buf->vb.width  != fh->width  ||
vb                735 drivers/media/usb/tm6000/tm6000-video.c 	    buf->vb.height != fh->height ||
vb                736 drivers/media/usb/tm6000/tm6000-video.c 	    buf->vb.field  != field) {
vb                738 drivers/media/usb/tm6000/tm6000-video.c 		buf->vb.width  = fh->width;
vb                739 drivers/media/usb/tm6000/tm6000-video.c 		buf->vb.height = fh->height;
vb                740 drivers/media/usb/tm6000/tm6000-video.c 		buf->vb.field  = field;
vb                741 drivers/media/usb/tm6000/tm6000-video.c 		buf->vb.state = VIDEOBUF_NEEDS_INIT;
vb                744 drivers/media/usb/tm6000/tm6000-video.c 	if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
vb                745 drivers/media/usb/tm6000/tm6000-video.c 		rc = videobuf_iolock(vq, &buf->vb, NULL);
vb                761 drivers/media/usb/tm6000/tm6000-video.c 	buf->vb.state = VIDEOBUF_PREPARED;
vb                770 drivers/media/usb/tm6000/tm6000-video.c buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb)
vb                772 drivers/media/usb/tm6000/tm6000-video.c 	struct tm6000_buffer    *buf     = container_of(vb, struct tm6000_buffer, vb);
vb                777 drivers/media/usb/tm6000/tm6000-video.c 	buf->vb.state = VIDEOBUF_QUEUED;
vb                778 drivers/media/usb/tm6000/tm6000-video.c 	list_add_tail(&buf->vb.queue, &vidq->active);
vb                781 drivers/media/usb/tm6000/tm6000-video.c static void buffer_release(struct videobuf_queue *vq, struct videobuf_buffer *vb)
vb                783 drivers/media/usb/tm6000/tm6000-video.c 	struct tm6000_buffer   *buf  = container_of(vb, struct tm6000_buffer, vb);
vb               1435 drivers/media/usb/tm6000/tm6000-video.c 		buf = list_entry(fh->vb_vidq.stream.next, struct tm6000_buffer, vb.stream);
vb               1436 drivers/media/usb/tm6000/tm6000-video.c 		poll_wait(file, &buf->vb.done, wait);
vb               1437 drivers/media/usb/tm6000/tm6000-video.c 		if (buf->vb.state == VIDEOBUF_DONE ||
vb               1438 drivers/media/usb/tm6000/tm6000-video.c 		    buf->vb.state == VIDEOBUF_ERROR)
vb                 74 drivers/media/usb/tm6000/tm6000.h 	struct videobuf_buffer vb;
vb                425 drivers/media/usb/usbtv/usbtv-video.c 	frame = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
vb                435 drivers/media/usb/usbtv/usbtv-video.c 			int size = vb2_plane_size(&buf->vb.vb2_buf, 0);
vb                441 drivers/media/usb/usbtv/usbtv-video.c 			buf->vb.field = V4L2_FIELD_INTERLACED;
vb                442 drivers/media/usb/usbtv/usbtv-video.c 			buf->vb.sequence = usbtv->sequence++;
vb                443 drivers/media/usb/usbtv/usbtv-video.c 			buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                444 drivers/media/usb/usbtv/usbtv-video.c 			vb2_set_plane_payload(&buf->vb.vb2_buf, 0, size);
vb                445 drivers/media/usb/usbtv/usbtv-video.c 			vb2_buffer_done(&buf->vb.vb2_buf, state);
vb                549 drivers/media/usb/usbtv/usbtv-video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                737 drivers/media/usb/usbtv/usbtv-video.c static void usbtv_buf_queue(struct vb2_buffer *vb)
vb                739 drivers/media/usb/usbtv/usbtv-video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                740 drivers/media/usb/usbtv/usbtv-video.c 	struct usbtv *usbtv = vb2_get_drv_priv(vb->vb2_queue);
vb                741 drivers/media/usb/usbtv/usbtv-video.c 	struct usbtv_buf *buf = container_of(vbuf, struct usbtv_buf, vb);
vb                745 drivers/media/usb/usbtv/usbtv-video.c 		vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
vb                 81 drivers/media/usb/usbtv/usbtv.h 	struct vb2_v4l2_buffer vb;
vb                865 drivers/media/usb/usbvision/usbvision-core.c 	int y_, u_, v_, vb, uvg, ur;
vb                912 drivers/media/usb/usbvision/usbvision-core.c 			vb = 132252 * v_;
vb                922 drivers/media/usb/usbvision/usbvision-core.c 				b_ = (y_ + vb) >> 16;
vb                965 drivers/media/usb/usbvision/usbvision-core.c 				b_ = (y_ + vb) >> 16;
vb               1010 drivers/media/usb/usbvision/usbvision-core.c 				b_ = (y_ + vb) >> 16;
vb               1053 drivers/media/usb/usbvision/usbvision-core.c 				b_ = (y_ + vb) >> 16;
vb                672 drivers/media/usb/usbvision/usbvision-video.c 			    void *priv, struct v4l2_buffer *vb)
vb                679 drivers/media/usb/usbvision/usbvision-video.c 	if (vb->index >= usbvision->num_frames)
vb                682 drivers/media/usb/usbvision/usbvision-video.c 	vb->flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
vb                683 drivers/media/usb/usbvision/usbvision-video.c 	frame = &usbvision->frame[vb->index];
vb                685 drivers/media/usb/usbvision/usbvision-video.c 		vb->flags |= V4L2_BUF_FLAG_QUEUED;
vb                687 drivers/media/usb/usbvision/usbvision-video.c 		vb->flags |= V4L2_BUF_FLAG_DONE;
vb                689 drivers/media/usb/usbvision/usbvision-video.c 		vb->flags |= V4L2_BUF_FLAG_MAPPED;
vb                690 drivers/media/usb/usbvision/usbvision-video.c 	vb->memory = V4L2_MEMORY_MMAP;
vb                692 drivers/media/usb/usbvision/usbvision-video.c 	vb->m.offset = vb->index * PAGE_ALIGN(usbvision->max_frame_size);
vb                694 drivers/media/usb/usbvision/usbvision-video.c 	vb->memory = V4L2_MEMORY_MMAP;
vb                695 drivers/media/usb/usbvision/usbvision-video.c 	vb->field = V4L2_FIELD_NONE;
vb                696 drivers/media/usb/usbvision/usbvision-video.c 	vb->length = usbvision->curwidth *
vb                699 drivers/media/usb/usbvision/usbvision-video.c 	vb->timestamp = ns_to_timeval(usbvision->frame[vb->index].ts);
vb                700 drivers/media/usb/usbvision/usbvision-video.c 	vb->sequence = usbvision->frame[vb->index].sequence;
vb                704 drivers/media/usb/usbvision/usbvision-video.c static int vidioc_qbuf(struct file *file, void *priv, struct v4l2_buffer *vb)
vb                711 drivers/media/usb/usbvision/usbvision-video.c 	if (vb->index >= usbvision->num_frames)
vb                714 drivers/media/usb/usbvision/usbvision-video.c 	frame = &usbvision->frame[vb->index];
vb                724 drivers/media/usb/usbvision/usbvision-video.c 	vb->flags &= ~V4L2_BUF_FLAG_DONE;
vb                730 drivers/media/usb/usbvision/usbvision-video.c 	list_add_tail(&usbvision->frame[vb->index].frame, &usbvision->inqueue);
vb                736 drivers/media/usb/usbvision/usbvision-video.c static int vidioc_dqbuf(struct file *file, void *priv, struct v4l2_buffer *vb)
vb                761 drivers/media/usb/usbvision/usbvision-video.c 	vb->memory = V4L2_MEMORY_MMAP;
vb                762 drivers/media/usb/usbvision/usbvision-video.c 	vb->flags = V4L2_BUF_FLAG_MAPPED |
vb                766 drivers/media/usb/usbvision/usbvision-video.c 	vb->index = f->index;
vb                767 drivers/media/usb/usbvision/usbvision-video.c 	vb->sequence = f->sequence;
vb                768 drivers/media/usb/usbvision/usbvision-video.c 	vb->timestamp = ns_to_timeval(f->ts);
vb                769 drivers/media/usb/usbvision/usbvision-video.c 	vb->field = V4L2_FIELD_NONE;
vb                770 drivers/media/usb/usbvision/usbvision-video.c 	vb->bytesused = f->scanlength;
vb                104 drivers/media/usb/uvc/uvc_queue.c static int uvc_buffer_prepare(struct vb2_buffer *vb)
vb                106 drivers/media/usb/uvc/uvc_queue.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                107 drivers/media/usb/uvc/uvc_queue.c 	struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue);
vb                110 drivers/media/usb/uvc/uvc_queue.c 	if (vb->type == V4L2_BUF_TYPE_VIDEO_OUTPUT &&
vb                111 drivers/media/usb/uvc/uvc_queue.c 	    vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) {
vb                121 drivers/media/usb/uvc/uvc_queue.c 	buf->mem = vb2_plane_vaddr(vb, 0);
vb                122 drivers/media/usb/uvc/uvc_queue.c 	buf->length = vb2_plane_size(vb, 0);
vb                123 drivers/media/usb/uvc/uvc_queue.c 	if (vb->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
vb                126 drivers/media/usb/uvc/uvc_queue.c 		buf->bytesused = vb2_get_plane_payload(vb, 0);
vb                131 drivers/media/usb/uvc/uvc_queue.c static void uvc_buffer_queue(struct vb2_buffer *vb)
vb                133 drivers/media/usb/uvc/uvc_queue.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                134 drivers/media/usb/uvc/uvc_queue.c 	struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue);
vb                147 drivers/media/usb/uvc/uvc_queue.c 		vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
vb                153 drivers/media/usb/uvc/uvc_queue.c static void uvc_buffer_finish(struct vb2_buffer *vb)
vb                155 drivers/media/usb/uvc/uvc_queue.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                156 drivers/media/usb/uvc/uvc_queue.c 	struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue);
vb                160 drivers/media/usb/uvc/uvc_queue.c 	if (vb->state == VB2_BUF_STATE_DONE)
vb                479 drivers/media/usb/uvc/uvc_queue.c 	struct vb2_buffer *vb = &buf->buf.vb2_buf;
vb                480 drivers/media/usb/uvc/uvc_queue.c 	struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue);
vb                190 drivers/media/usb/zr364xx/zr364xx.c 	struct videobuf_buffer vb;
vb                363 drivers/media/usb/zr364xx/zr364xx.c 	videobuf_vmalloc_free(&buf->vb);
vb                364 drivers/media/usb/zr364xx/zr364xx.c 	buf->vb.state = VIDEOBUF_NEEDS_INIT;
vb                367 drivers/media/usb/zr364xx/zr364xx.c static int buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb,
vb                371 drivers/media/usb/zr364xx/zr364xx.c 	struct zr364xx_buffer *buf = container_of(vb, struct zr364xx_buffer,
vb                372 drivers/media/usb/zr364xx/zr364xx.c 						  vb);
vb                379 drivers/media/usb/zr364xx/zr364xx.c 	buf->vb.size = cam->width * cam->height * (cam->fmt->depth >> 3);
vb                381 drivers/media/usb/zr364xx/zr364xx.c 	if (buf->vb.baddr != 0 && buf->vb.bsize < buf->vb.size) {
vb                387 drivers/media/usb/zr364xx/zr364xx.c 	buf->vb.width = cam->width;
vb                388 drivers/media/usb/zr364xx/zr364xx.c 	buf->vb.height = cam->height;
vb                389 drivers/media/usb/zr364xx/zr364xx.c 	buf->vb.field = field;
vb                391 drivers/media/usb/zr364xx/zr364xx.c 	if (buf->vb.state == VIDEOBUF_NEEDS_INIT) {
vb                392 drivers/media/usb/zr364xx/zr364xx.c 		rc = videobuf_iolock(vq, &buf->vb, NULL);
vb                397 drivers/media/usb/zr364xx/zr364xx.c 	buf->vb.state = VIDEOBUF_PREPARED;
vb                404 drivers/media/usb/zr364xx/zr364xx.c static void buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb)
vb                406 drivers/media/usb/zr364xx/zr364xx.c 	struct zr364xx_buffer *buf = container_of(vb, struct zr364xx_buffer,
vb                407 drivers/media/usb/zr364xx/zr364xx.c 						  vb);
vb                412 drivers/media/usb/zr364xx/zr364xx.c 	buf->vb.state = VIDEOBUF_QUEUED;
vb                413 drivers/media/usb/zr364xx/zr364xx.c 	list_add_tail(&buf->vb.queue, &cam->vidq.active);
vb                417 drivers/media/usb/zr364xx/zr364xx.c 			   struct videobuf_buffer *vb)
vb                419 drivers/media/usb/zr364xx/zr364xx.c 	struct zr364xx_buffer *buf = container_of(vb, struct zr364xx_buffer,
vb                420 drivers/media/usb/zr364xx/zr364xx.c 						  vb);
vb                484 drivers/media/usb/zr364xx/zr364xx.c 	char *vbuf = videobuf_to_vmalloc(&buf->vb);
vb                495 drivers/media/usb/zr364xx/zr364xx.c 			buf->vb.size = jpgsize;
vb                496 drivers/media/usb/zr364xx/zr364xx.c 			memcpy(vbuf, tmpbuf, buf->vb.size);
vb                509 drivers/media/usb/zr364xx/zr364xx.c 	buf->vb.field_count = cam->frame_count * 2;
vb                510 drivers/media/usb/zr364xx/zr364xx.c 	buf->vb.ts = ktime_get_ns();
vb                511 drivers/media/usb/zr364xx/zr364xx.c 	buf->vb.state = VIDEOBUF_DONE;
vb                530 drivers/media/usb/zr364xx/zr364xx.c 			 struct zr364xx_buffer, vb.queue);
vb                532 drivers/media/usb/zr364xx/zr364xx.c 	if (!waitqueue_active(&buf->vb.done)) {
vb                537 drivers/media/usb/zr364xx/zr364xx.c 	list_del(&buf->vb.queue);
vb                538 drivers/media/usb/zr364xx/zr364xx.c 	buf->vb.ts = ktime_get_ns();
vb                539 drivers/media/usb/zr364xx/zr364xx.c 	DBG("[%p/%d] wakeup\n", buf, buf->vb.i);
vb                541 drivers/media/usb/zr364xx/zr364xx.c 	wake_up(&buf->vb.done);
vb                542 drivers/media/usb/zr364xx/zr364xx.c 	DBG("wakeup [buf/i] [%p/%d]\n", buf, buf->vb.i);
vb                144 drivers/media/v4l2-core/v4l2-mem2mem.c 	return &b->vb;
vb                162 drivers/media/v4l2-core/v4l2-mem2mem.c 	return &b->vb;
vb                181 drivers/media/v4l2-core/v4l2-mem2mem.c 	return &b->vb;
vb                192 drivers/media/v4l2-core/v4l2-mem2mem.c 	b = container_of(vbuf, struct v4l2_m2m_buffer, vb);
vb                209 drivers/media/v4l2-core/v4l2-mem2mem.c 		if (b->vb.vb2_buf.index == idx) {
vb                212 drivers/media/v4l2-core/v4l2-mem2mem.c 			ret = &b->vb;
vb                963 drivers/media/v4l2-core/v4l2-mem2mem.c 				struct v4l2_m2m_buffer, vb);
vb               1014 drivers/media/v4l2-core/v4l2-mem2mem.c 		struct vb2_buffer *vb;
vb               1021 drivers/media/v4l2-core/v4l2-mem2mem.c 			vb = container_of(obj, struct vb2_buffer, req_obj);
vb               1022 drivers/media/v4l2-core/v4l2-mem2mem.c 			WARN_ON(!V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type));
vb               1023 drivers/media/v4l2-core/v4l2-mem2mem.c 			m2m_ctx_obj = container_of(vb->vb2_queue,
vb                 56 drivers/media/v4l2-core/videobuf-core.c 	struct videobuf_buffer *vb;
vb                 58 drivers/media/v4l2-core/videobuf-core.c 	BUG_ON(q->msize < sizeof(*vb));
vb                 65 drivers/media/v4l2-core/videobuf-core.c 	vb = q->int_ops->alloc_vb(q->msize);
vb                 66 drivers/media/v4l2-core/videobuf-core.c 	if (NULL != vb) {
vb                 67 drivers/media/v4l2-core/videobuf-core.c 		init_waitqueue_head(&vb->done);
vb                 68 drivers/media/v4l2-core/videobuf-core.c 		vb->magic = MAGIC_BUFFER;
vb                 71 drivers/media/v4l2-core/videobuf-core.c 	return vb;
vb                 76 drivers/media/v4l2-core/videobuf-core.c 					   struct videobuf_buffer *vb)
vb                 82 drivers/media/v4l2-core/videobuf-core.c 	rc = vb->state != VIDEOBUF_ACTIVE && vb->state != VIDEOBUF_QUEUED;
vb                 87 drivers/media/v4l2-core/videobuf-core.c int videobuf_waiton(struct videobuf_queue *q, struct videobuf_buffer *vb,
vb                 93 drivers/media/v4l2-core/videobuf-core.c 	MAGIC_CHECK(vb->magic, MAGIC_BUFFER);
vb                 96 drivers/media/v4l2-core/videobuf-core.c 		if (state_neither_active_nor_queued(q, vb))
vb                108 drivers/media/v4l2-core/videobuf-core.c 		ret = wait_event_interruptible(vb->done,
vb                109 drivers/media/v4l2-core/videobuf-core.c 					state_neither_active_nor_queued(q, vb));
vb                111 drivers/media/v4l2-core/videobuf-core.c 		wait_event(vb->done, state_neither_active_nor_queued(q, vb));
vb                120 drivers/media/v4l2-core/videobuf-core.c int videobuf_iolock(struct videobuf_queue *q, struct videobuf_buffer *vb,
vb                123 drivers/media/v4l2-core/videobuf-core.c 	MAGIC_CHECK(vb->magic, MAGIC_BUFFER);
vb                126 drivers/media/v4l2-core/videobuf-core.c 	return CALL(q, iolock, q, vb, fbuf);
vb                318 drivers/media/v4l2-core/videobuf-core.c 			    struct videobuf_buffer *vb, enum v4l2_buf_type type)
vb                320 drivers/media/v4l2-core/videobuf-core.c 	MAGIC_CHECK(vb->magic, MAGIC_BUFFER);
vb                323 drivers/media/v4l2-core/videobuf-core.c 	b->index    = vb->i;
vb                326 drivers/media/v4l2-core/videobuf-core.c 	b->memory   = vb->memory;
vb                329 drivers/media/v4l2-core/videobuf-core.c 		b->m.offset  = vb->boff;
vb                330 drivers/media/v4l2-core/videobuf-core.c 		b->length    = vb->bsize;
vb                333 drivers/media/v4l2-core/videobuf-core.c 		b->m.userptr = vb->baddr;
vb                334 drivers/media/v4l2-core/videobuf-core.c 		b->length    = vb->bsize;
vb                337 drivers/media/v4l2-core/videobuf-core.c 		b->m.offset  = vb->boff;
vb                345 drivers/media/v4l2-core/videobuf-core.c 	if (vb->map)
vb                348 drivers/media/v4l2-core/videobuf-core.c 	switch (vb->state) {
vb                366 drivers/media/v4l2-core/videobuf-core.c 	b->field     = vb->field;
vb                367 drivers/media/v4l2-core/videobuf-core.c 	b->timestamp = ns_to_timeval(vb->ts);
vb                368 drivers/media/v4l2-core/videobuf-core.c 	b->bytesused = vb->size;
vb                369 drivers/media/v4l2-core/videobuf-core.c 	b->sequence  = vb->field_count >> 1;
vb                675 drivers/media/v4l2-core/videobuf-core.c 			struct videobuf_buffer **vb, int nonblocking)
vb                689 drivers/media/v4l2-core/videobuf-core.c 	*vb = buf;
vb                158 drivers/media/v4l2-core/videobuf-dma-contig.c 					struct videobuf_buffer *vb)
vb                160 drivers/media/v4l2-core/videobuf-dma-contig.c 	unsigned long untagged_baddr = untagged_addr(vb->baddr);
vb                169 drivers/media/v4l2-core/videobuf-dma-contig.c 	mem->size = PAGE_ALIGN(vb->size + offset);
vb                212 drivers/media/v4l2-core/videobuf-dma-contig.c 	struct videobuf_buffer *vb;
vb                214 drivers/media/v4l2-core/videobuf-dma-contig.c 	vb = kzalloc(size + sizeof(*mem), GFP_KERNEL);
vb                215 drivers/media/v4l2-core/videobuf-dma-contig.c 	if (vb) {
vb                216 drivers/media/v4l2-core/videobuf-dma-contig.c 		vb->priv = ((char *)vb) + size;
vb                217 drivers/media/v4l2-core/videobuf-dma-contig.c 		mem = vb->priv;
vb                221 drivers/media/v4l2-core/videobuf-dma-contig.c 	return vb;
vb                235 drivers/media/v4l2-core/videobuf-dma-contig.c 			     struct videobuf_buffer *vb,
vb                238 drivers/media/v4l2-core/videobuf-dma-contig.c 	struct videobuf_dma_contig_memory *mem = vb->priv;
vb                243 drivers/media/v4l2-core/videobuf-dma-contig.c 	switch (vb->memory) {
vb                257 drivers/media/v4l2-core/videobuf-dma-contig.c 		if (vb->baddr)
vb                258 drivers/media/v4l2-core/videobuf-dma-contig.c 			return videobuf_dma_contig_user_get(mem, vb);
vb                261 drivers/media/v4l2-core/videobuf-dma-contig.c 		if (__videobuf_dc_alloc(q->dev, mem, PAGE_ALIGN(vb->size),
vb                474 drivers/media/v4l2-core/videobuf-dma-sg.c 	struct videobuf_buffer *vb;
vb                476 drivers/media/v4l2-core/videobuf-dma-sg.c 	vb = kzalloc(size + sizeof(*mem), GFP_KERNEL);
vb                477 drivers/media/v4l2-core/videobuf-dma-sg.c 	if (!vb)
vb                478 drivers/media/v4l2-core/videobuf-dma-sg.c 		return vb;
vb                480 drivers/media/v4l2-core/videobuf-dma-sg.c 	mem = vb->priv = ((char *)vb) + size;
vb                486 drivers/media/v4l2-core/videobuf-dma-sg.c 		__func__, vb, (long)sizeof(*vb), (long)size - sizeof(*vb),
vb                489 drivers/media/v4l2-core/videobuf-dma-sg.c 	return vb;
vb                503 drivers/media/v4l2-core/videobuf-dma-sg.c 			     struct videobuf_buffer *vb,
vb                508 drivers/media/v4l2-core/videobuf-dma-sg.c 	struct videobuf_dma_sg_memory *mem = vb->priv;
vb                518 drivers/media/v4l2-core/videobuf-dma-sg.c 	switch (vb->memory) {
vb                521 drivers/media/v4l2-core/videobuf-dma-sg.c 		if (0 == vb->baddr) {
vb                523 drivers/media/v4l2-core/videobuf-dma-sg.c 			pages = PAGE_ALIGN(vb->size) >> PAGE_SHIFT;
vb                529 drivers/media/v4l2-core/videobuf-dma-sg.c 		} else if (vb->memory == V4L2_MEMORY_USERPTR) {
vb                533 drivers/media/v4l2-core/videobuf-dma-sg.c 						     vb->baddr, vb->bsize);
vb                544 drivers/media/v4l2-core/videobuf-dma-sg.c 						      vb->baddr, vb->bsize);
vb                558 drivers/media/v4l2-core/videobuf-dma-sg.c 		bus   = (dma_addr_t)(unsigned long)fbuf->base + vb->boff;
vb                559 drivers/media/v4l2-core/videobuf-dma-sg.c 		pages = PAGE_ALIGN(vb->size) >> PAGE_SHIFT;
vb                138 drivers/media/v4l2-core/videobuf-vmalloc.c 	struct videobuf_buffer *vb;
vb                140 drivers/media/v4l2-core/videobuf-vmalloc.c 	vb = kzalloc(size + sizeof(*mem), GFP_KERNEL);
vb                141 drivers/media/v4l2-core/videobuf-vmalloc.c 	if (!vb)
vb                142 drivers/media/v4l2-core/videobuf-vmalloc.c 		return vb;
vb                144 drivers/media/v4l2-core/videobuf-vmalloc.c 	mem = vb->priv = ((char *)vb) + size;
vb                148 drivers/media/v4l2-core/videobuf-vmalloc.c 		__func__, vb, (long)sizeof(*vb), (long)size - sizeof(*vb),
vb                151 drivers/media/v4l2-core/videobuf-vmalloc.c 	return vb;
vb                155 drivers/media/v4l2-core/videobuf-vmalloc.c 			     struct videobuf_buffer *vb,
vb                158 drivers/media/v4l2-core/videobuf-vmalloc.c 	struct videobuf_vmalloc_memory *mem = vb->priv;
vb                165 drivers/media/v4l2-core/videobuf-vmalloc.c 	switch (vb->memory) {
vb                176 drivers/media/v4l2-core/videobuf-vmalloc.c 		pages = PAGE_ALIGN(vb->size);
vb                180 drivers/media/v4l2-core/videobuf-vmalloc.c 		if (vb->baddr) {
vb                 50 drivers/mfd/viperboard.c 	struct vprbrd *vb;
vb                 56 drivers/mfd/viperboard.c 	vb = kzalloc(sizeof(*vb), GFP_KERNEL);
vb                 57 drivers/mfd/viperboard.c 	if (!vb)
vb                 60 drivers/mfd/viperboard.c 	mutex_init(&vb->lock);
vb                 62 drivers/mfd/viperboard.c 	vb->usb_dev = usb_get_dev(interface_to_usbdev(interface));
vb                 65 drivers/mfd/viperboard.c 	usb_set_intfdata(interface, vb);
vb                 66 drivers/mfd/viperboard.c 	dev_set_drvdata(&vb->pdev.dev, vb);
vb                 69 drivers/mfd/viperboard.c 	pipe = usb_rcvctrlpipe(vb->usb_dev, 0);
vb                 70 drivers/mfd/viperboard.c 	ret = usb_control_msg(vb->usb_dev, pipe, VPRBRD_USB_REQUEST_MAJOR,
vb                 71 drivers/mfd/viperboard.c 		VPRBRD_USB_TYPE_IN, 0x0000, 0x0000, vb->buf, 1,
vb                 74 drivers/mfd/viperboard.c 		version = vb->buf[0];
vb                 76 drivers/mfd/viperboard.c 	ret = usb_control_msg(vb->usb_dev, pipe, VPRBRD_USB_REQUEST_MINOR,
vb                 77 drivers/mfd/viperboard.c 		VPRBRD_USB_TYPE_IN, 0x0000, 0x0000, vb->buf, 1,
vb                 81 drivers/mfd/viperboard.c 		version = version | vb->buf[0];
vb                 87 drivers/mfd/viperboard.c 		 vb->usb_dev->bus->busnum, vb->usb_dev->devnum);
vb                 99 drivers/mfd/viperboard.c 	if (vb) {
vb                100 drivers/mfd/viperboard.c 		usb_put_dev(vb->usb_dev);
vb                101 drivers/mfd/viperboard.c 		kfree(vb);
vb                109 drivers/mfd/viperboard.c 	struct vprbrd *vb = usb_get_intfdata(interface);
vb                113 drivers/mfd/viperboard.c 	usb_put_dev(vb->usb_dev);
vb                114 drivers/mfd/viperboard.c 	kfree(vb);
vb                404 drivers/mtd/ubi/fastmap.c 	struct ubi_vid_io_buf *vb;
vb                414 drivers/mtd/ubi/fastmap.c 	vb = ubi_alloc_vid_buf(ubi, GFP_KERNEL);
vb                415 drivers/mtd/ubi/fastmap.c 	if (!vb) {
vb                420 drivers/mtd/ubi/fastmap.c 	vh = ubi_get_vid_hdr(vb);
vb                462 drivers/mtd/ubi/fastmap.c 		err = ubi_io_read_vid_hdr(ubi, pnum, vb, 0);
vb                508 drivers/mtd/ubi/fastmap.c 	ubi_free_vid_buf(vb);
vb                854 drivers/mtd/ubi/fastmap.c 	struct ubi_vid_io_buf *vb;
vb                937 drivers/mtd/ubi/fastmap.c 	vb = ubi_alloc_vid_buf(ubi, GFP_KERNEL);
vb                938 drivers/mtd/ubi/fastmap.c 	if (!vb) {
vb                943 drivers/mtd/ubi/fastmap.c 	vh = ubi_get_vid_hdr(vb);
vb                987 drivers/mtd/ubi/fastmap.c 		ret = ubi_io_read_vid_hdr(ubi, pnum, vb, 0);
vb               1077 drivers/mtd/ubi/fastmap.c 	ubi_free_vid_buf(vb);
vb               1086 drivers/mtd/ubi/fastmap.c 	ubi_free_vid_buf(vb);
vb               1448 drivers/mtd/ubi/fastmap.c 	struct ubi_vid_io_buf *vb = NULL;
vb               1461 drivers/mtd/ubi/fastmap.c 	vb = new_fm_vbuf(ubi, UBI_FM_SB_VOLUME_ID);
vb               1462 drivers/mtd/ubi/fastmap.c 	if (!vb)
vb               1465 drivers/mtd/ubi/fastmap.c 	vh = ubi_get_vid_hdr(vb);
vb               1477 drivers/mtd/ubi/fastmap.c 	ret = ubi_io_write_vid_hdr(ubi, e->pnum, vb);
vb               1489 drivers/mtd/ubi/fastmap.c 	ubi_free_vid_buf(vb);
vb                 52 drivers/soc/fsl/dpio/qbman-portal.c #define QBMAN_CENA_SWP_RR(vb)  (0x700 + ((u32)(vb) >> 1))
vb                241 drivers/staging/comedi/drivers/ni_routes.c static int _ni_sort_destcmp(const void *va, const void *vb)
vb                244 drivers/staging/comedi/drivers/ni_routes.c 	const struct ni_route_set *b = vb;
vb               2107 drivers/staging/media/allegro-dvt/allegro-core.c static int allegro_buf_prepare(struct vb2_buffer *vb)
vb               2109 drivers/staging/media/allegro-dvt/allegro-core.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               2110 drivers/staging/media/allegro-dvt/allegro-core.c 	struct allegro_channel *channel = vb2_get_drv_priv(vb->vb2_queue);
vb               2114 drivers/staging/media/allegro-dvt/allegro-core.c 	    V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type))
vb               2117 drivers/staging/media/allegro-dvt/allegro-core.c 	if (V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) {
vb               2131 drivers/staging/media/allegro-dvt/allegro-core.c static void allegro_buf_queue(struct vb2_buffer *vb)
vb               2133 drivers/staging/media/allegro-dvt/allegro-core.c 	struct allegro_channel *channel = vb2_get_drv_priv(vb->vb2_queue);
vb               2134 drivers/staging/media/allegro-dvt/allegro-core.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb               2137 drivers/staging/media/allegro-dvt/allegro-core.c 	    vb->vb2_queue->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) {
vb                572 drivers/staging/media/hantro/hantro_v4l2.c hantro_buf_plane_check(struct vb2_buffer *vb, const struct hantro_fmt *vpu_fmt,
vb                581 drivers/staging/media/hantro/hantro_v4l2.c 			  i, vb2_plane_size(vb, i), sz);
vb                582 drivers/staging/media/hantro/hantro_v4l2.c 		if (vb2_plane_size(vb, i) < sz) {
vb                590 drivers/staging/media/hantro/hantro_v4l2.c static int hantro_buf_prepare(struct vb2_buffer *vb)
vb                592 drivers/staging/media/hantro/hantro_v4l2.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                596 drivers/staging/media/hantro/hantro_v4l2.c 		return hantro_buf_plane_check(vb, ctx->vpu_src_fmt,
vb                599 drivers/staging/media/hantro/hantro_v4l2.c 	return hantro_buf_plane_check(vb, ctx->vpu_dst_fmt, &ctx->dst_fmt);
vb                602 drivers/staging/media/hantro/hantro_v4l2.c static void hantro_buf_queue(struct vb2_buffer *vb)
vb                604 drivers/staging/media/hantro/hantro_v4l2.c 	struct hantro_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                605 drivers/staging/media/hantro/hantro_v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                682 drivers/staging/media/hantro/hantro_v4l2.c static void hantro_buf_request_complete(struct vb2_buffer *vb)
vb                684 drivers/staging/media/hantro/hantro_v4l2.c 	struct hantro_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                686 drivers/staging/media/hantro/hantro_v4l2.c 	v4l2_ctrl_request_complete(vb->req_obj.req, &ctx->ctrl_handler);
vb                689 drivers/staging/media/hantro/hantro_v4l2.c static int hantro_buf_out_validate(struct vb2_buffer *vb)
vb                691 drivers/staging/media/hantro/hantro_v4l2.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                202 drivers/staging/media/imx/imx-ic-prpencvf.c 	struct vb2_buffer *vb;
vb                209 drivers/staging/media/imx/imx-ic-prpencvf.c 		vb = &done->vbuf.vb2_buf;
vb                210 drivers/staging/media/imx/imx-ic-prpencvf.c 		vb->timestamp = ktime_get_ns();
vb                211 drivers/staging/media/imx/imx-ic-prpencvf.c 		vb2_buffer_done(vb, priv->nfb4eof ?
vb                337 drivers/staging/media/imx/imx-ic-prpencvf.c 			struct vb2_buffer *vb = &buf->vbuf.vb2_buf;
vb                339 drivers/staging/media/imx/imx-ic-prpencvf.c 			vb->timestamp = ktime_get_ns();
vb                340 drivers/staging/media/imx/imx-ic-prpencvf.c 			vb2_buffer_done(vb, return_status);
vb                492 drivers/staging/media/imx/imx-media-capture.c static int capture_buf_init(struct vb2_buffer *vb)
vb                494 drivers/staging/media/imx/imx-media-capture.c 	struct imx_media_buffer *buf = to_imx_media_vb(vb);
vb                501 drivers/staging/media/imx/imx-media-capture.c static int capture_buf_prepare(struct vb2_buffer *vb)
vb                503 drivers/staging/media/imx/imx-media-capture.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                507 drivers/staging/media/imx/imx-media-capture.c 	if (vb2_plane_size(vb, 0) < pix->sizeimage) {
vb                510 drivers/staging/media/imx/imx-media-capture.c 			 vb2_plane_size(vb, 0), (long)pix->sizeimage);
vb                514 drivers/staging/media/imx/imx-media-capture.c 	vb2_set_plane_payload(vb, 0, pix->sizeimage);
vb                519 drivers/staging/media/imx/imx-media-capture.c static void capture_buf_queue(struct vb2_buffer *vb)
vb                521 drivers/staging/media/imx/imx-media-capture.c 	struct capture_priv *priv = vb2_get_drv_priv(vb->vb2_queue);
vb                522 drivers/staging/media/imx/imx-media-capture.c 	struct imx_media_buffer *buf = to_imx_media_vb(vb);
vb                443 drivers/staging/media/imx/imx-media-csc-scaler.c static int ipu_csc_scaler_buf_prepare(struct vb2_buffer *vb)
vb                445 drivers/staging/media/imx/imx-media-csc-scaler.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                446 drivers/staging/media/imx/imx-media-csc-scaler.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                466 drivers/staging/media/imx/imx-media-csc-scaler.c 	if (vb2_plane_size(vb, 0) < size) {
vb                469 drivers/staging/media/imx/imx-media-csc-scaler.c 			__func__, vb2_plane_size(vb, 0), size);
vb                473 drivers/staging/media/imx/imx-media-csc-scaler.c 	vb2_set_plane_payload(vb, 0, size);
vb                478 drivers/staging/media/imx/imx-media-csc-scaler.c static void ipu_csc_scaler_buf_queue(struct vb2_buffer *vb)
vb                480 drivers/staging/media/imx/imx-media-csc-scaler.c 	struct ipu_csc_scaler_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                482 drivers/staging/media/imx/imx-media-csc-scaler.c 	v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, to_vb2_v4l2_buffer(vb));
vb                266 drivers/staging/media/imx/imx-media-csi.c 	struct vb2_buffer *vb;
vb                273 drivers/staging/media/imx/imx-media-csi.c 		vb = &done->vbuf.vb2_buf;
vb                274 drivers/staging/media/imx/imx-media-csi.c 		vb->timestamp = ktime_get_ns();
vb                275 drivers/staging/media/imx/imx-media-csi.c 		vb2_buffer_done(vb, priv->nfb4eof ?
vb                396 drivers/staging/media/imx/imx-media-csi.c 			struct vb2_buffer *vb = &buf->vbuf.vb2_buf;
vb                398 drivers/staging/media/imx/imx-media-csi.c 			vb->timestamp = ktime_get_ns();
vb                399 drivers/staging/media/imx/imx-media-csi.c 			vb2_buffer_done(vb, return_status);
vb                100 drivers/staging/media/imx/imx-media.h static inline struct imx_media_buffer *to_imx_media_vb(struct vb2_buffer *vb)
vb                102 drivers/staging/media/imx/imx-media.h 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                617 drivers/staging/media/imx/imx7-media-csi.c 			struct vb2_buffer *vb = &buf->vbuf.vb2_buf;
vb                619 drivers/staging/media/imx/imx7-media-csi.c 			vb->timestamp = ktime_get_ns();
vb                620 drivers/staging/media/imx/imx7-media-csi.c 			vb2_buffer_done(vb, return_status);
vb                629 drivers/staging/media/imx/imx7-media-csi.c 	struct vb2_buffer *vb;
vb                636 drivers/staging/media/imx/imx7-media-csi.c 		vb = &done->vbuf.vb2_buf;
vb                637 drivers/staging/media/imx/imx7-media-csi.c 		vb->timestamp = ktime_get_ns();
vb                638 drivers/staging/media/imx/imx7-media-csi.c 		vb2_buffer_done(vb, VB2_BUF_STATE_DONE);
vb                305 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_vb2_buf_init(struct vb2_buffer *vb)
vb                307 drivers/staging/media/ipu3/ipu3-v4l2.c 	struct sg_table *sg = vb2_dma_sg_plane_desc(vb, 0);
vb                308 drivers/staging/media/ipu3/ipu3-v4l2.c 	struct imgu_device *imgu = vb2_get_drv_priv(vb->vb2_queue);
vb                309 drivers/staging/media/ipu3/ipu3-v4l2.c 	struct imgu_buffer *buf = container_of(vb,
vb                312 drivers/staging/media/ipu3/ipu3-v4l2.c 		container_of(vb->vb2_queue, struct imgu_video_device, vbq);
vb                322 drivers/staging/media/ipu3/ipu3-v4l2.c static void imgu_vb2_buf_cleanup(struct vb2_buffer *vb)
vb                324 drivers/staging/media/ipu3/ipu3-v4l2.c 	struct imgu_device *imgu = vb2_get_drv_priv(vb->vb2_queue);
vb                325 drivers/staging/media/ipu3/ipu3-v4l2.c 	struct imgu_buffer *buf = container_of(vb,
vb                328 drivers/staging/media/ipu3/ipu3-v4l2.c 		container_of(vb->vb2_queue, struct imgu_video_device, vbq);
vb                338 drivers/staging/media/ipu3/ipu3-v4l2.c static void imgu_vb2_buf_queue(struct vb2_buffer *vb)
vb                340 drivers/staging/media/ipu3/ipu3-v4l2.c 	struct imgu_device *imgu = vb2_get_drv_priv(vb->vb2_queue);
vb                342 drivers/staging/media/ipu3/ipu3-v4l2.c 		container_of(vb->vb2_queue, struct imgu_video_device, vbq);
vb                344 drivers/staging/media/ipu3/ipu3-v4l2.c 	struct imgu_buffer *buf = container_of(vb, struct imgu_buffer,
vb                347 drivers/staging/media/ipu3/ipu3-v4l2.c 	unsigned long payload = vb2_get_plane_payload(vb, 0);
vb                349 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (vb->vb2_queue->type == V4L2_BUF_TYPE_META_CAPTURE ||
vb                350 drivers/staging/media/ipu3/ipu3-v4l2.c 	    vb->vb2_queue->type == V4L2_BUF_TYPE_META_OUTPUT)
vb                357 drivers/staging/media/ipu3/ipu3-v4l2.c 		vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
vb                368 drivers/staging/media/ipu3/ipu3-v4l2.c 	vb2_set_plane_payload(vb, 0, need_bytes);
vb               1414 drivers/staging/media/ipu3/ipu3-v4l2.c void imgu_v4l2_buffer_done(struct vb2_buffer *vb,
vb               1418 drivers/staging/media/ipu3/ipu3-v4l2.c 		container_of(vb, struct imgu_vb2_buffer, vbb.vb2_buf);
vb                195 drivers/staging/media/ipu3/ipu3.c static void imgu_buffer_done(struct imgu_device *imgu, struct vb2_buffer *vb,
vb                199 drivers/staging/media/ipu3/ipu3.c 	imgu_v4l2_buffer_done(vb, state);
vb                255 drivers/staging/media/ipu3/ipu3.c 			struct vb2_buffer *vb;
vb                264 drivers/staging/media/ipu3/ipu3.c 			vb = &ivb->vbb.vb2_buf;
vb                266 drivers/staging/media/ipu3/ipu3.c 						    vb2_plane_vaddr(vb, 0));
vb                268 drivers/staging/media/ipu3/ipu3.c 				vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
vb                274 drivers/staging/media/ipu3/ipu3.c 			vb2_buffer_done(vb, VB2_BUF_STATE_DONE);
vb                276 drivers/staging/media/ipu3/ipu3.c 				"queue user parameters %d to css.", vb->index);
vb                164 drivers/staging/media/ipu3/ipu3.h void imgu_v4l2_buffer_done(struct vb2_buffer *vb, enum vb2_buffer_state state);
vb                 82 drivers/staging/media/meson/vdec/esparser.c static u32 esparser_pad_start_code(struct vb2_buffer *vb)
vb                 84 drivers/staging/media/meson/vdec/esparser.c 	u32 payload_size = vb2_get_plane_payload(vb, 0);
vb                 86 drivers/staging/media/meson/vdec/esparser.c 	u8 *vaddr = vb2_plane_vaddr(vb, 0) + payload_size;
vb                181 drivers/staging/media/meson/vdec/esparser.c 	struct vb2_buffer *vb = &vbuf->vb2_buf;
vb                185 drivers/staging/media/meson/vdec/esparser.c 	u32 payload_size = vb2_get_plane_payload(vb, 0);
vb                186 drivers/staging/media/meson/vdec/esparser.c 	dma_addr_t phy = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                203 drivers/staging/media/meson/vdec/esparser.c 	amvdec_add_ts_reorder(sess, vb->timestamp, offset);
vb                205 drivers/staging/media/meson/vdec/esparser.c 		vb->timestamp, payload_size, offset);
vb                207 drivers/staging/media/meson/vdec/esparser.c 	pad_size = esparser_pad_start_code(vb);
vb                212 drivers/staging/media/meson/vdec/esparser.c 		amvdec_remove_ts(sess, vb->timestamp);
vb                228 drivers/staging/media/meson/vdec/esparser.c 		amvdec_remove_ts(sess, vb->timestamp);
vb                248 drivers/staging/media/meson/vdec/esparser.c 		if (esparser_queue(sess, &buf->vb) < 0)
vb                 28 drivers/staging/media/meson/vdec/vdec.c 	struct vb2_v4l2_buffer vb;
vb                 66 drivers/staging/media/meson/vdec/vdec.c 			codec_ops->recycle(core, tmp->vb->index);
vb                131 drivers/staging/media/meson/vdec/vdec.c vdec_queue_recycle(struct amvdec_session *sess, struct vb2_buffer *vb)
vb                138 drivers/staging/media/meson/vdec/vdec.c 	new_buf->vb = vb;
vb                256 drivers/staging/media/meson/vdec/vdec.c static void vdec_vb2_buf_queue(struct vb2_buffer *vb)
vb                258 drivers/staging/media/meson/vdec/vdec.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                259 drivers/staging/media/meson/vdec/vdec.c 	struct amvdec_session *sess = vb2_get_drv_priv(vb->vb2_queue);
vb                267 drivers/staging/media/meson/vdec/vdec.c 	if (vb->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE &&
vb                269 drivers/staging/media/meson/vdec/vdec.c 		vdec_queue_recycle(sess, vb);
vb                419 drivers/staging/media/meson/vdec/vdec.c static int vdec_vb2_buf_prepare(struct vb2_buffer *vb)
vb                421 drivers/staging/media/meson/vdec/vdec.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                 25 drivers/staging/media/meson/vdec/vdec.h 	struct vb2_buffer *vb;
vb                 71 drivers/staging/media/meson/vdec/vdec_helpers.c 			      struct vb2_buffer *vb, u32 width,
vb                 85 drivers/staging/media/meson/vdec/vdec_helpers.c 		    vb2_dma_contig_plane_dma_addr(vb, i);
vb                115 drivers/staging/media/meson/vdec/vdec_helpers.c 			    struct vb2_buffer *vb, u32 width,
vb                129 drivers/staging/media/meson/vdec/vdec_helpers.c 		    vb2_dma_contig_plane_dma_addr(vb, i);
vb                173 drivers/staging/media/meson/vdec/vdec_helpers.c 			ret = set_canvas_nv12m(sess, &buf->vb.vb2_buf, width,
vb                179 drivers/staging/media/meson/vdec/vdec_helpers.c 			ret = set_canvas_yuv420m(sess, &buf->vb.vb2_buf, width,
vb                196 drivers/staging/media/meson/vdec/vdec_helpers.c 		sess->fw_idx_to_vb2_idx[i++] = buf->vb.vb2_buf.index;
vb                319 drivers/staging/media/omap4iss/iss_video.c static void iss_video_buf_cleanup(struct vb2_buffer *vb)
vb                321 drivers/staging/media/omap4iss/iss_video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                322 drivers/staging/media/omap4iss/iss_video.c 	struct iss_buffer *buffer = container_of(vbuf, struct iss_buffer, vb);
vb                328 drivers/staging/media/omap4iss/iss_video.c static int iss_video_buf_prepare(struct vb2_buffer *vb)
vb                330 drivers/staging/media/omap4iss/iss_video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                331 drivers/staging/media/omap4iss/iss_video.c 	struct iss_video_fh *vfh = vb2_get_drv_priv(vb->vb2_queue);
vb                332 drivers/staging/media/omap4iss/iss_video.c 	struct iss_buffer *buffer = container_of(vbuf, struct iss_buffer, vb);
vb                337 drivers/staging/media/omap4iss/iss_video.c 	if (vb2_plane_size(vb, 0) < size)
vb                340 drivers/staging/media/omap4iss/iss_video.c 	addr = vb2_dma_contig_plane_dma_addr(vb, 0);
vb                347 drivers/staging/media/omap4iss/iss_video.c 	vb2_set_plane_payload(vb, 0, size);
vb                352 drivers/staging/media/omap4iss/iss_video.c static void iss_video_buf_queue(struct vb2_buffer *vb)
vb                354 drivers/staging/media/omap4iss/iss_video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                355 drivers/staging/media/omap4iss/iss_video.c 	struct iss_video_fh *vfh = vb2_get_drv_priv(vb->vb2_queue);
vb                357 drivers/staging/media/omap4iss/iss_video.c 	struct iss_buffer *buffer = container_of(vbuf, struct iss_buffer, vb);
vb                371 drivers/staging/media/omap4iss/iss_video.c 		vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
vb                446 drivers/staging/media/omap4iss/iss_video.c 	buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                456 drivers/staging/media/omap4iss/iss_video.c 		buf->vb.sequence =
vb                459 drivers/staging/media/omap4iss/iss_video.c 		buf->vb.sequence = atomic_read(&pipe->frame_number);
vb                461 drivers/staging/media/omap4iss/iss_video.c 	vb2_buffer_done(&buf->vb.vb2_buf, pipe->error ?
vb                492 drivers/staging/media/omap4iss/iss_video.c 	buf->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE;
vb                515 drivers/staging/media/omap4iss/iss_video.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                114 drivers/staging/media/omap4iss/iss_video.h 	struct vb2_v4l2_buffer	vb;
vb                119 drivers/staging/media/omap4iss/iss_video.h #define to_iss_buffer(buf)	container_of(buf, struct iss_buffer, vb)
vb                164 drivers/staging/media/sunxi/cedrus/cedrus.c 		struct vb2_buffer *vb;
vb                167 drivers/staging/media/sunxi/cedrus/cedrus.c 			vb = container_of(obj, struct vb2_buffer, req_obj);
vb                168 drivers/staging/media/sunxi/cedrus/cedrus.c 			ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                198 drivers/staging/media/sunxi/cedrus/cedrus.h 	return container_of(p, struct cedrus_buffer, m2m_buf.vb);
vb                 77 drivers/staging/media/sunxi/cedrus/cedrus_h264.c 	struct vb2_buffer *vbuf = &buf->m2m_buf.vb.vb2_buf;
vb                414 drivers/staging/media/sunxi/cedrus/cedrus_video.c static int cedrus_buf_out_validate(struct vb2_buffer *vb)
vb                416 drivers/staging/media/sunxi/cedrus/cedrus_video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                422 drivers/staging/media/sunxi/cedrus/cedrus_video.c static int cedrus_buf_prepare(struct vb2_buffer *vb)
vb                424 drivers/staging/media/sunxi/cedrus/cedrus_video.c 	struct vb2_queue *vq = vb->vb2_queue;
vb                433 drivers/staging/media/sunxi/cedrus/cedrus_video.c 	if (vb2_plane_size(vb, 0) < pix_fmt->sizeimage)
vb                436 drivers/staging/media/sunxi/cedrus/cedrus_video.c 	vb2_set_plane_payload(vb, 0, pix_fmt->sizeimage);
vb                482 drivers/staging/media/sunxi/cedrus/cedrus_video.c static void cedrus_buf_queue(struct vb2_buffer *vb)
vb                484 drivers/staging/media/sunxi/cedrus/cedrus_video.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                485 drivers/staging/media/sunxi/cedrus/cedrus_video.c 	struct cedrus_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                490 drivers/staging/media/sunxi/cedrus/cedrus_video.c static void cedrus_buf_request_complete(struct vb2_buffer *vb)
vb                492 drivers/staging/media/sunxi/cedrus/cedrus_video.c 	struct cedrus_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
vb                494 drivers/staging/media/sunxi/cedrus/cedrus_video.c 	v4l2_ctrl_request_complete(vb->req_obj.req, &ctx->hdl);
vb                257 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c static int buffer_init(struct vb2_buffer *vb)
vb                259 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	struct bm2835_mmal_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                260 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	struct vb2_v4l2_buffer *vb2 = to_vb2_v4l2_buffer(vb);
vb                261 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	struct mmal_buffer *buf = container_of(vb2, struct mmal_buffer, vb);
vb                264 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		 __func__, dev, vb);
vb                265 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	buf->buffer = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
vb                266 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	buf->buffer_size = vb2_plane_size(&buf->vb.vb2_buf, 0);
vb                271 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c static int buffer_prepare(struct vb2_buffer *vb)
vb                273 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	struct bm2835_mmal_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                277 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		 __func__, dev, vb);
vb                283 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	if (vb2_plane_size(vb, 0) < size) {
vb                286 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 			 __func__, vb2_plane_size(vb, 0), size);
vb                293 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c static void buffer_cleanup(struct vb2_buffer *vb)
vb                295 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	struct bm2835_mmal_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                296 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	struct vb2_v4l2_buffer *vb2 = to_vb2_v4l2_buffer(vb);
vb                297 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	struct mmal_buffer *buf = container_of(vb2, struct mmal_buffer, vb);
vb                300 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		 __func__, dev, vb);
vb                326 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 			vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                354 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 			vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                362 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
vb                378 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		buf->vb.vb2_buf.timestamp = ktime_to_ns(timestamp);
vb                380 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                382 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	buf->vb.sequence = dev->capture.sequence++;
vb                383 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	buf->vb.field = V4L2_FIELD_NONE;
vb                385 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vb2_set_plane_payload(&buf->vb.vb2_buf, 0, length);
vb                387 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		buf->vb.flags |= V4L2_BUF_FLAG_KEYFRAME;
vb                389 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                471 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c static void buffer_queue(struct vb2_buffer *vb)
vb                473 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	struct bm2835_mmal_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
vb                474 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	struct vb2_v4l2_buffer *vb2 = to_vb2_v4l2_buffer(vb);
vb                475 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	struct mmal_buffer *buf = container_of(vb2, struct mmal_buffer, vb);
vb                 43 drivers/staging/vc04_services/bcm2835-camera/mmal-common.h 	struct vb2_v4l2_buffer	vb;
vb                 57 drivers/usb/gadget/function/uvc_queue.c static int uvc_buffer_prepare(struct vb2_buffer *vb)
vb                 59 drivers/usb/gadget/function/uvc_queue.c 	struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue);
vb                 60 drivers/usb/gadget/function/uvc_queue.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                 63 drivers/usb/gadget/function/uvc_queue.c 	if (vb->type == V4L2_BUF_TYPE_VIDEO_OUTPUT &&
vb                 64 drivers/usb/gadget/function/uvc_queue.c 	    vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) {
vb                 73 drivers/usb/gadget/function/uvc_queue.c 	buf->mem = vb2_plane_vaddr(vb, 0);
vb                 74 drivers/usb/gadget/function/uvc_queue.c 	buf->length = vb2_plane_size(vb, 0);
vb                 75 drivers/usb/gadget/function/uvc_queue.c 	if (vb->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)
vb                 78 drivers/usb/gadget/function/uvc_queue.c 		buf->bytesused = vb2_get_plane_payload(vb, 0);
vb                 83 drivers/usb/gadget/function/uvc_queue.c static void uvc_buffer_queue(struct vb2_buffer *vb)
vb                 85 drivers/usb/gadget/function/uvc_queue.c 	struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue);
vb                 86 drivers/usb/gadget/function/uvc_queue.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                 99 drivers/usb/gadget/function/uvc_queue.c 		vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
vb               1050 drivers/video/fbdev/intelfb/intelfbhw.c 	u32 *vs, *vb, *vt, *hs, *hb, *ht, *ss, *pipe_conf;
vb               1067 drivers/video/fbdev/intelfb/intelfbhw.c 		vb = &hw->vblank_b;
vb               1079 drivers/video/fbdev/intelfb/intelfbhw.c 		vb = &hw->vblank_a;
vb               1242 drivers/video/fbdev/intelfb/intelfbhw.c 	*vb = (vblank_start << VBLANKSTART_SHIFT) |
vb               1282 drivers/video/fbdev/intelfb/intelfbhw.c 	const u32 *hs, *ht, *hb, *vs, *vt, *vb, *ss;
vb               1311 drivers/video/fbdev/intelfb/intelfbhw.c 		vb = &hw->vblank_b;
vb               1335 drivers/video/fbdev/intelfb/intelfbhw.c 		vb = &hw->vblank_a;
vb               1425 drivers/video/fbdev/intelfb/intelfbhw.c 	OUTREG(vblank_reg, *vb);
vb                134 drivers/virtio/virtio_balloon.c 	struct virtio_balloon *vb = vq->vdev->priv;
vb                136 drivers/virtio/virtio_balloon.c 	wake_up(&vb->acked);
vb                139 drivers/virtio/virtio_balloon.c static void tell_host(struct virtio_balloon *vb, struct virtqueue *vq)
vb                144 drivers/virtio/virtio_balloon.c 	sg_init_one(&sg, vb->pfns, sizeof(vb->pfns[0]) * vb->num_pfns);
vb                147 drivers/virtio/virtio_balloon.c 	virtqueue_add_outbuf(vq, &sg, 1, vb, GFP_KERNEL);
vb                151 drivers/virtio/virtio_balloon.c 	wait_event(vb->acked, virtqueue_get_buf(vq, &len));
vb                155 drivers/virtio/virtio_balloon.c static void set_page_pfns(struct virtio_balloon *vb,
vb                167 drivers/virtio/virtio_balloon.c 		pfns[i] = cpu_to_virtio32(vb->vdev,
vb                171 drivers/virtio/virtio_balloon.c static unsigned fill_balloon(struct virtio_balloon *vb, size_t num)
vb                179 drivers/virtio/virtio_balloon.c 	num = min(num, ARRAY_SIZE(vb->pfns));
vb                186 drivers/virtio/virtio_balloon.c 			dev_info_ratelimited(&vb->vdev->dev,
vb                197 drivers/virtio/virtio_balloon.c 	mutex_lock(&vb->balloon_lock);
vb                199 drivers/virtio/virtio_balloon.c 	vb->num_pfns = 0;
vb                202 drivers/virtio/virtio_balloon.c 		balloon_page_enqueue(&vb->vb_dev_info, page);
vb                204 drivers/virtio/virtio_balloon.c 		set_page_pfns(vb, vb->pfns + vb->num_pfns, page);
vb                205 drivers/virtio/virtio_balloon.c 		vb->num_pages += VIRTIO_BALLOON_PAGES_PER_PAGE;
vb                206 drivers/virtio/virtio_balloon.c 		if (!virtio_has_feature(vb->vdev,
vb                209 drivers/virtio/virtio_balloon.c 		vb->num_pfns += VIRTIO_BALLOON_PAGES_PER_PAGE;
vb                212 drivers/virtio/virtio_balloon.c 	num_allocated_pages = vb->num_pfns;
vb                214 drivers/virtio/virtio_balloon.c 	if (vb->num_pfns != 0)
vb                215 drivers/virtio/virtio_balloon.c 		tell_host(vb, vb->inflate_vq);
vb                216 drivers/virtio/virtio_balloon.c 	mutex_unlock(&vb->balloon_lock);
vb                221 drivers/virtio/virtio_balloon.c static void release_pages_balloon(struct virtio_balloon *vb,
vb                227 drivers/virtio/virtio_balloon.c 		if (!virtio_has_feature(vb->vdev,
vb                235 drivers/virtio/virtio_balloon.c static unsigned leak_balloon(struct virtio_balloon *vb, size_t num)
vb                239 drivers/virtio/virtio_balloon.c 	struct balloon_dev_info *vb_dev_info = &vb->vb_dev_info;
vb                243 drivers/virtio/virtio_balloon.c 	num = min(num, ARRAY_SIZE(vb->pfns));
vb                245 drivers/virtio/virtio_balloon.c 	mutex_lock(&vb->balloon_lock);
vb                247 drivers/virtio/virtio_balloon.c 	num = min(num, (size_t)vb->num_pages);
vb                248 drivers/virtio/virtio_balloon.c 	for (vb->num_pfns = 0; vb->num_pfns < num;
vb                249 drivers/virtio/virtio_balloon.c 	     vb->num_pfns += VIRTIO_BALLOON_PAGES_PER_PAGE) {
vb                253 drivers/virtio/virtio_balloon.c 		set_page_pfns(vb, vb->pfns + vb->num_pfns, page);
vb                255 drivers/virtio/virtio_balloon.c 		vb->num_pages -= VIRTIO_BALLOON_PAGES_PER_PAGE;
vb                258 drivers/virtio/virtio_balloon.c 	num_freed_pages = vb->num_pfns;
vb                264 drivers/virtio/virtio_balloon.c 	if (vb->num_pfns != 0)
vb                265 drivers/virtio/virtio_balloon.c 		tell_host(vb, vb->deflate_vq);
vb                266 drivers/virtio/virtio_balloon.c 	release_pages_balloon(vb, &pages);
vb                267 drivers/virtio/virtio_balloon.c 	mutex_unlock(&vb->balloon_lock);
vb                271 drivers/virtio/virtio_balloon.c static inline void update_stat(struct virtio_balloon *vb, int idx,
vb                275 drivers/virtio/virtio_balloon.c 	vb->stats[idx].tag = cpu_to_virtio16(vb->vdev, tag);
vb                276 drivers/virtio/virtio_balloon.c 	vb->stats[idx].val = cpu_to_virtio64(vb->vdev, val);
vb                281 drivers/virtio/virtio_balloon.c static unsigned int update_balloon_stats(struct virtio_balloon *vb)
vb                296 drivers/virtio/virtio_balloon.c 	update_stat(vb, idx++, VIRTIO_BALLOON_S_SWAP_IN,
vb                298 drivers/virtio/virtio_balloon.c 	update_stat(vb, idx++, VIRTIO_BALLOON_S_SWAP_OUT,
vb                300 drivers/virtio/virtio_balloon.c 	update_stat(vb, idx++, VIRTIO_BALLOON_S_MAJFLT, events[PGMAJFAULT]);
vb                301 drivers/virtio/virtio_balloon.c 	update_stat(vb, idx++, VIRTIO_BALLOON_S_MINFLT, events[PGFAULT]);
vb                303 drivers/virtio/virtio_balloon.c 	update_stat(vb, idx++, VIRTIO_BALLOON_S_HTLB_PGALLOC,
vb                305 drivers/virtio/virtio_balloon.c 	update_stat(vb, idx++, VIRTIO_BALLOON_S_HTLB_PGFAIL,
vb                309 drivers/virtio/virtio_balloon.c 	update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE,
vb                311 drivers/virtio/virtio_balloon.c 	update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMTOT,
vb                313 drivers/virtio/virtio_balloon.c 	update_stat(vb, idx++, VIRTIO_BALLOON_S_AVAIL,
vb                315 drivers/virtio/virtio_balloon.c 	update_stat(vb, idx++, VIRTIO_BALLOON_S_CACHES,
vb                332 drivers/virtio/virtio_balloon.c 	struct virtio_balloon *vb = vq->vdev->priv;
vb                334 drivers/virtio/virtio_balloon.c 	spin_lock(&vb->stop_update_lock);
vb                335 drivers/virtio/virtio_balloon.c 	if (!vb->stop_update)
vb                336 drivers/virtio/virtio_balloon.c 		queue_work(system_freezable_wq, &vb->update_balloon_stats_work);
vb                337 drivers/virtio/virtio_balloon.c 	spin_unlock(&vb->stop_update_lock);
vb                340 drivers/virtio/virtio_balloon.c static void stats_handle_request(struct virtio_balloon *vb)
vb                346 drivers/virtio/virtio_balloon.c 	num_stats = update_balloon_stats(vb);
vb                348 drivers/virtio/virtio_balloon.c 	vq = vb->stats_vq;
vb                351 drivers/virtio/virtio_balloon.c 	sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats);
vb                352 drivers/virtio/virtio_balloon.c 	virtqueue_add_outbuf(vq, &sg, 1, vb, GFP_KERNEL);
vb                356 drivers/virtio/virtio_balloon.c static inline s64 towards_target(struct virtio_balloon *vb)
vb                361 drivers/virtio/virtio_balloon.c 	virtio_cread(vb->vdev, struct virtio_balloon_config, num_pages,
vb                365 drivers/virtio/virtio_balloon.c 	if (!virtio_has_feature(vb->vdev, VIRTIO_F_VERSION_1))
vb                369 drivers/virtio/virtio_balloon.c 	return target - vb->num_pages;
vb                373 drivers/virtio/virtio_balloon.c static unsigned long return_free_pages_to_mm(struct virtio_balloon *vb,
vb                379 drivers/virtio/virtio_balloon.c 	spin_lock_irq(&vb->free_page_list_lock);
vb                381 drivers/virtio/virtio_balloon.c 		page = balloon_page_pop(&vb->free_page_list);
vb                387 drivers/virtio/virtio_balloon.c 	vb->num_free_page_blocks -= num_returned;
vb                388 drivers/virtio/virtio_balloon.c 	spin_unlock_irq(&vb->free_page_list_lock);
vb                393 drivers/virtio/virtio_balloon.c static void virtio_balloon_queue_free_page_work(struct virtio_balloon *vb)
vb                395 drivers/virtio/virtio_balloon.c 	if (!virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT))
vb                400 drivers/virtio/virtio_balloon.c 			     &vb->config_read_bitmap))
vb                403 drivers/virtio/virtio_balloon.c 	queue_work(vb->balloon_wq, &vb->report_free_page_work);
vb                408 drivers/virtio/virtio_balloon.c 	struct virtio_balloon *vb = vdev->priv;
vb                411 drivers/virtio/virtio_balloon.c 	spin_lock_irqsave(&vb->stop_update_lock, flags);
vb                412 drivers/virtio/virtio_balloon.c 	if (!vb->stop_update) {
vb                414 drivers/virtio/virtio_balloon.c 			   &vb->update_balloon_size_work);
vb                415 drivers/virtio/virtio_balloon.c 		virtio_balloon_queue_free_page_work(vb);
vb                417 drivers/virtio/virtio_balloon.c 	spin_unlock_irqrestore(&vb->stop_update_lock, flags);
vb                420 drivers/virtio/virtio_balloon.c static void update_balloon_size(struct virtio_balloon *vb)
vb                422 drivers/virtio/virtio_balloon.c 	u32 actual = vb->num_pages;
vb                425 drivers/virtio/virtio_balloon.c 	if (!virtio_has_feature(vb->vdev, VIRTIO_F_VERSION_1))
vb                428 drivers/virtio/virtio_balloon.c 	virtio_cwrite(vb->vdev, struct virtio_balloon_config, actual,
vb                434 drivers/virtio/virtio_balloon.c 	struct virtio_balloon *vb;
vb                436 drivers/virtio/virtio_balloon.c 	vb = container_of(work, struct virtio_balloon,
vb                438 drivers/virtio/virtio_balloon.c 	stats_handle_request(vb);
vb                443 drivers/virtio/virtio_balloon.c 	struct virtio_balloon *vb;
vb                446 drivers/virtio/virtio_balloon.c 	vb = container_of(work, struct virtio_balloon,
vb                448 drivers/virtio/virtio_balloon.c 	diff = towards_target(vb);
vb                454 drivers/virtio/virtio_balloon.c 		diff -= fill_balloon(vb, diff);
vb                456 drivers/virtio/virtio_balloon.c 		diff += leak_balloon(vb, -diff);
vb                457 drivers/virtio/virtio_balloon.c 	update_balloon_size(vb);
vb                463 drivers/virtio/virtio_balloon.c static int init_vqs(struct virtio_balloon *vb)
vb                484 drivers/virtio/virtio_balloon.c 	if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_STATS_VQ)) {
vb                489 drivers/virtio/virtio_balloon.c 	if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) {
vb                494 drivers/virtio/virtio_balloon.c 	err = vb->vdev->config->find_vqs(vb->vdev, VIRTIO_BALLOON_VQ_MAX,
vb                499 drivers/virtio/virtio_balloon.c 	vb->inflate_vq = vqs[VIRTIO_BALLOON_VQ_INFLATE];
vb                500 drivers/virtio/virtio_balloon.c 	vb->deflate_vq = vqs[VIRTIO_BALLOON_VQ_DEFLATE];
vb                501 drivers/virtio/virtio_balloon.c 	if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_STATS_VQ)) {
vb                504 drivers/virtio/virtio_balloon.c 		vb->stats_vq = vqs[VIRTIO_BALLOON_VQ_STATS];
vb                510 drivers/virtio/virtio_balloon.c 		num_stats = update_balloon_stats(vb);
vb                512 drivers/virtio/virtio_balloon.c 		sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats);
vb                513 drivers/virtio/virtio_balloon.c 		err = virtqueue_add_outbuf(vb->stats_vq, &sg, 1, vb,
vb                516 drivers/virtio/virtio_balloon.c 			dev_warn(&vb->vdev->dev, "%s: add stat_vq failed\n",
vb                520 drivers/virtio/virtio_balloon.c 		virtqueue_kick(vb->stats_vq);
vb                523 drivers/virtio/virtio_balloon.c 	if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT))
vb                524 drivers/virtio/virtio_balloon.c 		vb->free_page_vq = vqs[VIRTIO_BALLOON_VQ_FREE_PAGE];
vb                529 drivers/virtio/virtio_balloon.c static u32 virtio_balloon_cmd_id_received(struct virtio_balloon *vb)
vb                532 drivers/virtio/virtio_balloon.c 			       &vb->config_read_bitmap))
vb                533 drivers/virtio/virtio_balloon.c 		virtio_cread(vb->vdev, struct virtio_balloon_config,
vb                535 drivers/virtio/virtio_balloon.c 			     &vb->cmd_id_received_cache);
vb                537 drivers/virtio/virtio_balloon.c 	return vb->cmd_id_received_cache;
vb                540 drivers/virtio/virtio_balloon.c static int send_cmd_id_start(struct virtio_balloon *vb)
vb                543 drivers/virtio/virtio_balloon.c 	struct virtqueue *vq = vb->free_page_vq;
vb                550 drivers/virtio/virtio_balloon.c 	vb->cmd_id_active = virtio32_to_cpu(vb->vdev,
vb                551 drivers/virtio/virtio_balloon.c 					virtio_balloon_cmd_id_received(vb));
vb                552 drivers/virtio/virtio_balloon.c 	sg_init_one(&sg, &vb->cmd_id_active, sizeof(vb->cmd_id_active));
vb                553 drivers/virtio/virtio_balloon.c 	err = virtqueue_add_outbuf(vq, &sg, 1, &vb->cmd_id_active, GFP_KERNEL);
vb                559 drivers/virtio/virtio_balloon.c static int send_cmd_id_stop(struct virtio_balloon *vb)
vb                562 drivers/virtio/virtio_balloon.c 	struct virtqueue *vq = vb->free_page_vq;
vb                569 drivers/virtio/virtio_balloon.c 	sg_init_one(&sg, &vb->cmd_id_stop, sizeof(vb->cmd_id_stop));
vb                570 drivers/virtio/virtio_balloon.c 	err = virtqueue_add_outbuf(vq, &sg, 1, &vb->cmd_id_stop, GFP_KERNEL);
vb                576 drivers/virtio/virtio_balloon.c static int get_free_page_and_send(struct virtio_balloon *vb)
vb                578 drivers/virtio/virtio_balloon.c 	struct virtqueue *vq = vb->free_page_vq;
vb                608 drivers/virtio/virtio_balloon.c 		spin_lock_irq(&vb->free_page_list_lock);
vb                609 drivers/virtio/virtio_balloon.c 		balloon_page_push(&vb->free_page_list, page);
vb                610 drivers/virtio/virtio_balloon.c 		vb->num_free_page_blocks++;
vb                611 drivers/virtio/virtio_balloon.c 		spin_unlock_irq(&vb->free_page_list_lock);
vb                623 drivers/virtio/virtio_balloon.c static int send_free_pages(struct virtio_balloon *vb)
vb                633 drivers/virtio/virtio_balloon.c 		cmd_id_active = virtio32_to_cpu(vb->vdev, vb->cmd_id_active);
vb                635 drivers/virtio/virtio_balloon.c 			     virtio_balloon_cmd_id_received(vb)))
vb                642 drivers/virtio/virtio_balloon.c 		err = get_free_page_and_send(vb);
vb                652 drivers/virtio/virtio_balloon.c static void virtio_balloon_report_free_page(struct virtio_balloon *vb)
vb                655 drivers/virtio/virtio_balloon.c 	struct device *dev = &vb->vdev->dev;
vb                658 drivers/virtio/virtio_balloon.c 	err = send_cmd_id_start(vb);
vb                662 drivers/virtio/virtio_balloon.c 	err = send_free_pages(vb);
vb                667 drivers/virtio/virtio_balloon.c 	err = send_cmd_id_stop(vb);
vb                674 drivers/virtio/virtio_balloon.c 	struct virtio_balloon *vb = container_of(work, struct virtio_balloon,
vb                678 drivers/virtio/virtio_balloon.c 	cmd_id_received = virtio_balloon_cmd_id_received(vb);
vb                681 drivers/virtio/virtio_balloon.c 		return_free_pages_to_mm(vb, ULONG_MAX);
vb                684 drivers/virtio/virtio_balloon.c 		   virtio32_to_cpu(vb->vdev, vb->cmd_id_active)) {
vb                685 drivers/virtio/virtio_balloon.c 		virtio_balloon_report_free_page(vb);
vb                711 drivers/virtio/virtio_balloon.c 	struct virtio_balloon *vb = container_of(vb_dev_info,
vb                723 drivers/virtio/virtio_balloon.c 	if (!mutex_trylock(&vb->balloon_lock))
vb                733 drivers/virtio/virtio_balloon.c 	if (!virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_DEFLATE_ON_OOM) &&
vb                745 drivers/virtio/virtio_balloon.c 	vb->num_pfns = VIRTIO_BALLOON_PAGES_PER_PAGE;
vb                746 drivers/virtio/virtio_balloon.c 	set_page_pfns(vb, vb->pfns, newpage);
vb                747 drivers/virtio/virtio_balloon.c 	tell_host(vb, vb->inflate_vq);
vb                753 drivers/virtio/virtio_balloon.c 	vb->num_pfns = VIRTIO_BALLOON_PAGES_PER_PAGE;
vb                754 drivers/virtio/virtio_balloon.c 	set_page_pfns(vb, vb->pfns, page);
vb                755 drivers/virtio/virtio_balloon.c 	tell_host(vb, vb->deflate_vq);
vb                757 drivers/virtio/virtio_balloon.c 	mutex_unlock(&vb->balloon_lock);
vb                777 drivers/virtio/virtio_balloon.c static unsigned long shrink_free_pages(struct virtio_balloon *vb,
vb                785 drivers/virtio/virtio_balloon.c 	blocks_freed = return_free_pages_to_mm(vb, blocks_to_free);
vb                790 drivers/virtio/virtio_balloon.c static unsigned long leak_balloon_pages(struct virtio_balloon *vb,
vb                793 drivers/virtio/virtio_balloon.c 	return leak_balloon(vb, pages_to_free * VIRTIO_BALLOON_PAGES_PER_PAGE) /
vb                797 drivers/virtio/virtio_balloon.c static unsigned long shrink_balloon_pages(struct virtio_balloon *vb,
vb                807 drivers/virtio/virtio_balloon.c 	while (vb->num_pages && pages_freed < pages_to_free)
vb                808 drivers/virtio/virtio_balloon.c 		pages_freed += leak_balloon_pages(vb,
vb                811 drivers/virtio/virtio_balloon.c 	update_balloon_size(vb);
vb                820 drivers/virtio/virtio_balloon.c 	struct virtio_balloon *vb = container_of(shrinker,
vb                825 drivers/virtio/virtio_balloon.c 	if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT))
vb                826 drivers/virtio/virtio_balloon.c 		pages_freed = shrink_free_pages(vb, pages_to_free);
vb                831 drivers/virtio/virtio_balloon.c 	pages_freed += shrink_balloon_pages(vb, pages_to_free - pages_freed);
vb                839 drivers/virtio/virtio_balloon.c 	struct virtio_balloon *vb = container_of(shrinker,
vb                843 drivers/virtio/virtio_balloon.c 	count = vb->num_pages / VIRTIO_BALLOON_PAGES_PER_PAGE;
vb                844 drivers/virtio/virtio_balloon.c 	count += vb->num_free_page_blocks << VIRTIO_BALLOON_FREE_PAGE_ORDER;
vb                849 drivers/virtio/virtio_balloon.c static void virtio_balloon_unregister_shrinker(struct virtio_balloon *vb)
vb                851 drivers/virtio/virtio_balloon.c 	unregister_shrinker(&vb->shrinker);
vb                854 drivers/virtio/virtio_balloon.c static int virtio_balloon_register_shrinker(struct virtio_balloon *vb)
vb                856 drivers/virtio/virtio_balloon.c 	vb->shrinker.scan_objects = virtio_balloon_shrinker_scan;
vb                857 drivers/virtio/virtio_balloon.c 	vb->shrinker.count_objects = virtio_balloon_shrinker_count;
vb                858 drivers/virtio/virtio_balloon.c 	vb->shrinker.seeks = DEFAULT_SEEKS;
vb                860 drivers/virtio/virtio_balloon.c 	return register_shrinker(&vb->shrinker);
vb                865 drivers/virtio/virtio_balloon.c 	struct virtio_balloon *vb;
vb                875 drivers/virtio/virtio_balloon.c 	vdev->priv = vb = kzalloc(sizeof(*vb), GFP_KERNEL);
vb                876 drivers/virtio/virtio_balloon.c 	if (!vb) {
vb                881 drivers/virtio/virtio_balloon.c 	INIT_WORK(&vb->update_balloon_stats_work, update_balloon_stats_func);
vb                882 drivers/virtio/virtio_balloon.c 	INIT_WORK(&vb->update_balloon_size_work, update_balloon_size_func);
vb                883 drivers/virtio/virtio_balloon.c 	spin_lock_init(&vb->stop_update_lock);
vb                884 drivers/virtio/virtio_balloon.c 	mutex_init(&vb->balloon_lock);
vb                885 drivers/virtio/virtio_balloon.c 	init_waitqueue_head(&vb->acked);
vb                886 drivers/virtio/virtio_balloon.c 	vb->vdev = vdev;
vb                888 drivers/virtio/virtio_balloon.c 	balloon_devinfo_init(&vb->vb_dev_info);
vb                890 drivers/virtio/virtio_balloon.c 	err = init_vqs(vb);
vb                901 drivers/virtio/virtio_balloon.c 	vb->vb_dev_info.migratepage = virtballoon_migratepage;
vb                902 drivers/virtio/virtio_balloon.c 	vb->vb_dev_info.inode = alloc_anon_inode(balloon_mnt->mnt_sb);
vb                903 drivers/virtio/virtio_balloon.c 	if (IS_ERR(vb->vb_dev_info.inode)) {
vb                904 drivers/virtio/virtio_balloon.c 		err = PTR_ERR(vb->vb_dev_info.inode);
vb                907 drivers/virtio/virtio_balloon.c 	vb->vb_dev_info.inode->i_mapping->a_ops = &balloon_aops;
vb                914 drivers/virtio/virtio_balloon.c 		if (virtqueue_get_vring_size(vb->free_page_vq) < 2) {
vb                918 drivers/virtio/virtio_balloon.c 		vb->balloon_wq = alloc_workqueue("balloon-wq",
vb                920 drivers/virtio/virtio_balloon.c 		if (!vb->balloon_wq) {
vb                924 drivers/virtio/virtio_balloon.c 		INIT_WORK(&vb->report_free_page_work, report_free_page_func);
vb                925 drivers/virtio/virtio_balloon.c 		vb->cmd_id_received_cache = VIRTIO_BALLOON_CMD_ID_STOP;
vb                926 drivers/virtio/virtio_balloon.c 		vb->cmd_id_active = cpu_to_virtio32(vb->vdev,
vb                928 drivers/virtio/virtio_balloon.c 		vb->cmd_id_stop = cpu_to_virtio32(vb->vdev,
vb                930 drivers/virtio/virtio_balloon.c 		spin_lock_init(&vb->free_page_list_lock);
vb                931 drivers/virtio/virtio_balloon.c 		INIT_LIST_HEAD(&vb->free_page_list);
vb                934 drivers/virtio/virtio_balloon.c 			virtio_cwrite(vb->vdev, struct virtio_balloon_config,
vb                942 drivers/virtio/virtio_balloon.c 	if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_DEFLATE_ON_OOM)) {
vb                943 drivers/virtio/virtio_balloon.c 		err = virtio_balloon_register_shrinker(vb);
vb                949 drivers/virtio/virtio_balloon.c 	if (towards_target(vb))
vb                955 drivers/virtio/virtio_balloon.c 		destroy_workqueue(vb->balloon_wq);
vb                958 drivers/virtio/virtio_balloon.c 	iput(vb->vb_dev_info.inode);
vb                965 drivers/virtio/virtio_balloon.c 	kfree(vb);
vb                970 drivers/virtio/virtio_balloon.c static void remove_common(struct virtio_balloon *vb)
vb                973 drivers/virtio/virtio_balloon.c 	while (vb->num_pages)
vb                974 drivers/virtio/virtio_balloon.c 		leak_balloon(vb, vb->num_pages);
vb                975 drivers/virtio/virtio_balloon.c 	update_balloon_size(vb);
vb                978 drivers/virtio/virtio_balloon.c 	if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT))
vb                979 drivers/virtio/virtio_balloon.c 		return_free_pages_to_mm(vb, ULONG_MAX);
vb                982 drivers/virtio/virtio_balloon.c 	vb->vdev->config->reset(vb->vdev);
vb                984 drivers/virtio/virtio_balloon.c 	vb->vdev->config->del_vqs(vb->vdev);
vb                989 drivers/virtio/virtio_balloon.c 	struct virtio_balloon *vb = vdev->priv;
vb                991 drivers/virtio/virtio_balloon.c 	if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_DEFLATE_ON_OOM))
vb                992 drivers/virtio/virtio_balloon.c 		virtio_balloon_unregister_shrinker(vb);
vb                993 drivers/virtio/virtio_balloon.c 	spin_lock_irq(&vb->stop_update_lock);
vb                994 drivers/virtio/virtio_balloon.c 	vb->stop_update = true;
vb                995 drivers/virtio/virtio_balloon.c 	spin_unlock_irq(&vb->stop_update_lock);
vb                996 drivers/virtio/virtio_balloon.c 	cancel_work_sync(&vb->update_balloon_size_work);
vb                997 drivers/virtio/virtio_balloon.c 	cancel_work_sync(&vb->update_balloon_stats_work);
vb               1000 drivers/virtio/virtio_balloon.c 		cancel_work_sync(&vb->report_free_page_work);
vb               1001 drivers/virtio/virtio_balloon.c 		destroy_workqueue(vb->balloon_wq);
vb               1004 drivers/virtio/virtio_balloon.c 	remove_common(vb);
vb               1006 drivers/virtio/virtio_balloon.c 	if (vb->vb_dev_info.inode)
vb               1007 drivers/virtio/virtio_balloon.c 		iput(vb->vb_dev_info.inode);
vb               1011 drivers/virtio/virtio_balloon.c 	kfree(vb);
vb               1017 drivers/virtio/virtio_balloon.c 	struct virtio_balloon *vb = vdev->priv;
vb               1023 drivers/virtio/virtio_balloon.c 	remove_common(vb);
vb               1029 drivers/virtio/virtio_balloon.c 	struct virtio_balloon *vb = vdev->priv;
vb               1038 drivers/virtio/virtio_balloon.c 	if (towards_target(vb))
vb               1040 drivers/virtio/virtio_balloon.c 	update_balloon_size(vb);
vb                 11 fs/ceph/ceph_frag.c 	unsigned vb = ceph_frag_value(b);
vb                 12 fs/ceph/ceph_frag.c 	if (va < vb)
vb                 14 fs/ceph/ceph_frag.c 	if (va > vb)
vb                 17 fs/ceph/ceph_frag.c 	vb = ceph_frag_bits(b);
vb                 18 fs/ceph/ceph_frag.c 	if (va < vb)
vb                 20 fs/ceph/ceph_frag.c 	if (va > vb)
vb                255 fs/ocfs2/alloc.c 	struct ocfs2_xattr_value_buf *vb = et->et_object;
vb                257 fs/ocfs2/alloc.c 	et->et_root_el = &vb->vb_xv->xr_list;
vb                263 fs/ocfs2/alloc.c 	struct ocfs2_xattr_value_buf *vb = et->et_object;
vb                265 fs/ocfs2/alloc.c 	vb->vb_xv->xr_last_eb_blk = cpu_to_le64(blkno);
vb                270 fs/ocfs2/alloc.c 	struct ocfs2_xattr_value_buf *vb = et->et_object;
vb                272 fs/ocfs2/alloc.c 	return le64_to_cpu(vb->vb_xv->xr_last_eb_blk);
vb                278 fs/ocfs2/alloc.c 	struct ocfs2_xattr_value_buf *vb = et->et_object;
vb                280 fs/ocfs2/alloc.c 	le32_add_cpu(&vb->vb_xv->xr_clusters, clusters);
vb                471 fs/ocfs2/alloc.c 					struct ocfs2_xattr_value_buf *vb)
vb                473 fs/ocfs2/alloc.c 	__ocfs2_init_extent_tree(et, ci, vb->vb_bh, vb->vb_access, vb,
vb                 66 fs/ocfs2/alloc.h 					struct ocfs2_xattr_value_buf *vb);
vb               3621 fs/ocfs2/refcounttree.c 			     struct ocfs2_xattr_value_buf *vb,
vb               3628 fs/ocfs2/refcounttree.c 	struct ocfs2_xattr_value_root *xv = vb->vb_xv;
vb               3666 fs/ocfs2/refcounttree.c 					   INODE_CACHE(inode), vb);
vb                 74 fs/ocfs2/refcounttree.h 			     struct ocfs2_xattr_value_buf *vb,
vb                181 fs/ocfs2/xattr.c 				   struct ocfs2_xattr_value_buf *vb);
vb                703 fs/ocfs2/xattr.c 					 struct ocfs2_xattr_value_buf *vb,
vb                709 fs/ocfs2/xattr.c 	u32 prev_clusters, logical_start = le32_to_cpu(vb->vb_xv->xr_clusters);
vb                712 fs/ocfs2/xattr.c 	ocfs2_init_xattr_value_extent_tree(&et, INODE_CACHE(inode), vb);
vb                717 fs/ocfs2/xattr.c 		status = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh,
vb                724 fs/ocfs2/xattr.c 		prev_clusters = le32_to_cpu(vb->vb_xv->xr_clusters);
vb                739 fs/ocfs2/xattr.c 		ocfs2_journal_dirty(handle, vb->vb_bh);
vb                741 fs/ocfs2/xattr.c 		clusters_to_add -= le32_to_cpu(vb->vb_xv->xr_clusters) -
vb                752 fs/ocfs2/xattr.c 							    &vb->vb_xv->xr_list);
vb                766 fs/ocfs2/xattr.c 				      struct ocfs2_xattr_value_buf *vb,
vb                776 fs/ocfs2/xattr.c 	ocfs2_init_xattr_value_extent_tree(&et, INODE_CACHE(inode), vb);
vb                778 fs/ocfs2/xattr.c 	ret = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh,
vb                792 fs/ocfs2/xattr.c 	le32_add_cpu(&vb->vb_xv->xr_clusters, -len);
vb                793 fs/ocfs2/xattr.c 	ocfs2_journal_dirty(handle, vb->vb_bh);
vb                813 fs/ocfs2/xattr.c 				   struct ocfs2_xattr_value_buf *vb,
vb                829 fs/ocfs2/xattr.c 					       &vb->vb_xv->xr_list, &ext_flags);
vb                838 fs/ocfs2/xattr.c 		ret = __ocfs2_remove_xattr_range(inode, vb, cpos,
vb                858 fs/ocfs2/xattr.c 				      struct ocfs2_xattr_value_buf *vb,
vb                864 fs/ocfs2/xattr.c 	u32 old_clusters = le32_to_cpu(vb->vb_xv->xr_clusters);
vb                872 fs/ocfs2/xattr.c 						    vb, ctxt);
vb                876 fs/ocfs2/xattr.c 					      vb, ctxt);
vb               1349 fs/ocfs2/xattr.c 					   struct ocfs2_xattr_value_buf *vb,
vb               1361 fs/ocfs2/xattr.c 	struct ocfs2_xattr_value_root *xv = vb->vb_xv;
vb               1526 fs/ocfs2/xattr.c 				    struct ocfs2_xattr_value_buf *vb)
vb               1536 fs/ocfs2/xattr.c 	loc->xl_ops->xlo_fill_value_buf(loc, vb);
vb               1537 fs/ocfs2/xattr.c 	vb->vb_xv =
vb               1674 fs/ocfs2/xattr.c 					  struct ocfs2_xattr_value_buf *vb)
vb               1681 fs/ocfs2/xattr.c 		vb->vb_access = ocfs2_journal_access_xb;
vb               1683 fs/ocfs2/xattr.c 		vb->vb_access = ocfs2_journal_access_di;
vb               1684 fs/ocfs2/xattr.c 	vb->vb_bh = bh;
vb               1862 fs/ocfs2/xattr.c 					   struct ocfs2_xattr_value_buf *vb)
vb               1876 fs/ocfs2/xattr.c 	vb->vb_access = ocfs2_journal_access;
vb               1877 fs/ocfs2/xattr.c 	vb->vb_bh = bucket->bu_bhs[block_offset];
vb               1896 fs/ocfs2/xattr.c 	struct ocfs2_xattr_value_buf vb;
vb               1901 fs/ocfs2/xattr.c 	ocfs2_xa_fill_value_buf(loc, &vb);
vb               1902 fs/ocfs2/xattr.c 	return le32_to_cpu(vb.vb_xv->xr_clusters);
vb               1909 fs/ocfs2/xattr.c 	struct ocfs2_xattr_value_buf vb;
vb               1911 fs/ocfs2/xattr.c 	ocfs2_xa_fill_value_buf(loc, &vb);
vb               1912 fs/ocfs2/xattr.c 	trunc_rc = ocfs2_xattr_value_truncate(loc->xl_inode, &vb, bytes,
vb               2207 fs/ocfs2/xattr.c 	struct ocfs2_xattr_value_buf vb;
vb               2211 fs/ocfs2/xattr.c 		ocfs2_xa_fill_value_buf(loc, &vb);
vb               2213 fs/ocfs2/xattr.c 						     ctxt->handle, &vb,
vb               2363 fs/ocfs2/xattr.c 				      struct ocfs2_xattr_value_buf *vb,
vb               2383 fs/ocfs2/xattr.c 		vb->vb_xv = (struct ocfs2_xattr_value_root *)
vb               2386 fs/ocfs2/xattr.c 		ret = ocfs2_lock_xattr_remove_allocators(inode, vb->vb_xv,
vb               2399 fs/ocfs2/xattr.c 		ret = ocfs2_xattr_value_truncate(inode, vb, 0, &ctxt);
vb               2430 fs/ocfs2/xattr.c 	struct ocfs2_xattr_value_buf vb = {
vb               2439 fs/ocfs2/xattr.c 	ret = ocfs2_remove_value_outside(inode, &vb, header,
vb               2457 fs/ocfs2/xattr.c 	struct ocfs2_xattr_value_buf vb = {
vb               2469 fs/ocfs2/xattr.c 		ret = ocfs2_remove_value_outside(inode, &vb, header,
vb               5365 fs/ocfs2/xattr.c 	struct ocfs2_xattr_value_buf vb = {
vb               5381 fs/ocfs2/xattr.c 	vb.vb_bh = bucket->bu_bhs[value_blk];
vb               5382 fs/ocfs2/xattr.c 	BUG_ON(!vb.vb_bh);
vb               5384 fs/ocfs2/xattr.c 	vb.vb_xv = (struct ocfs2_xattr_value_root *)
vb               5385 fs/ocfs2/xattr.c 		(vb.vb_bh->b_data + offset % blocksize);
vb               5396 fs/ocfs2/xattr.c 	ret = ocfs2_xattr_value_truncate(inode, &vb, len, ctxt);
vb               5775 fs/ocfs2/xattr.c 	struct ocfs2_xattr_value_buf vb;
vb               5787 fs/ocfs2/xattr.c 		vb.vb_bh = xis->inode_bh;
vb               5788 fs/ocfs2/xattr.c 		vb.vb_access = ocfs2_journal_access_di;
vb               5807 fs/ocfs2/xattr.c 			vb.vb_bh = xbs->bucket->bu_bhs[block_off];
vb               5808 fs/ocfs2/xattr.c 			vb.vb_access = ocfs2_journal_access;
vb               5821 fs/ocfs2/xattr.c 			vb.vb_bh = xbs->xattr_bh;
vb               5822 fs/ocfs2/xattr.c 			vb.vb_access = ocfs2_journal_access_xb;
vb               5829 fs/ocfs2/xattr.c 	vb.vb_xv = (struct ocfs2_xattr_value_root *)
vb               5833 fs/ocfs2/xattr.c 				       &num_clusters, &vb.vb_xv->xr_list,
vb               5867 fs/ocfs2/xattr.c 							 ref_root_bh, vb.vb_xv,
vb               5874 fs/ocfs2/xattr.c 	ret = ocfs2_refcount_cow_xattr(inode, di, &vb,
vb               5876 fs/ocfs2/xattr.c 				       le32_to_cpu(vb.vb_xv->xr_clusters), p);
vb               5938 fs/ocfs2/xattr.c 				struct ocfs2_xattr_value_buf *vb,
vb               5960 fs/ocfs2/xattr.c 		vb->vb_xv = xv;
vb               5961 fs/ocfs2/xattr.c 		ocfs2_init_xattr_value_extent_tree(&et, INODE_CACHE(inode), vb);
vb               5985 fs/ocfs2/xattr.c 	struct ocfs2_xattr_value_buf vb = {
vb               5990 fs/ocfs2/xattr.c 	return ocfs2_xattr_attach_refcount_normal(inode, &vb, header,
vb               6047 fs/ocfs2/xattr.c 	struct ocfs2_xattr_value_buf vb = {
vb               6071 fs/ocfs2/xattr.c 						      &vb.vb_xv, &vb.vb_bh);
vb               6078 fs/ocfs2/xattr.c 						   INODE_CACHE(inode), &vb);
vb               6080 fs/ocfs2/xattr.c 		ret = ocfs2_xattr_value_attach_refcount(inode, vb.vb_xv,
vb               6115 fs/ocfs2/xattr.c 		struct ocfs2_xattr_value_buf vb = {
vb               6120 fs/ocfs2/xattr.c 		ret = ocfs2_xattr_attach_refcount_normal(inode, &vb, header,
vb               6344 fs/ocfs2/xattr.c 				      struct ocfs2_xattr_value_buf *vb,
vb               6411 fs/ocfs2/xattr.c 			vb->vb_xv = new_xv;
vb               6412 fs/ocfs2/xattr.c 			vb->vb_bh = value_bh;
vb               6414 fs/ocfs2/xattr.c 					INODE_CACHE(args->new_inode), vb);
vb               6479 fs/ocfs2/xattr.c 	struct ocfs2_xattr_value_buf vb = {
vb               6512 fs/ocfs2/xattr.c 					 args->new_bh, new_xh, &vb, meta_ac,
vb               6599 fs/ocfs2/xattr.c 	struct ocfs2_xattr_value_buf vb = {
vb               6641 fs/ocfs2/xattr.c 					 new_blk_bh, new_xh, &vb, meta_ac,
vb               6843 fs/ocfs2/xattr.c 	struct ocfs2_xattr_value_buf vb = {
vb               6892 fs/ocfs2/xattr.c 					&vb, meta_ac,
vb               2431 fs/unicode/mkutf8data.c 	unsigned int vb = 0x1161;
vb               2456 fs/unicode/mkutf8data.c 		mapping[i++] = vb + vi;
vb                 60 include/media/davinci/vpbe_display.h 	struct vb2_v4l2_buffer vb;
vb                 60 include/media/drv-intf/saa7146_vv.h 	struct videobuf_buffer vb;
vb                 68 include/media/dvb_vb2.h 	struct vb2_buffer	vb;
vb                114 include/media/v4l2-mem2mem.h 	struct vb2_v4l2_buffer	vb;
vb                106 include/media/videobuf-core.h 			   struct videobuf_buffer *vb,
vb                109 include/media/videobuf-core.h 			  struct videobuf_buffer *vb);
vb                111 include/media/videobuf-core.h 			    struct videobuf_buffer *vb);
vb                123 include/media/videobuf-core.h 				 struct videobuf_buffer *vb,
vb                174 include/media/videobuf-core.h int videobuf_waiton(struct videobuf_queue *q, struct videobuf_buffer *vb,
vb                176 include/media/videobuf-core.h int videobuf_iolock(struct videobuf_queue *q, struct videobuf_buffer *vb,
vb                419 include/media/videobuf2-core.h 	int (*buf_out_validate)(struct vb2_buffer *vb);
vb                420 include/media/videobuf2-core.h 	int (*buf_init)(struct vb2_buffer *vb);
vb                421 include/media/videobuf2-core.h 	int (*buf_prepare)(struct vb2_buffer *vb);
vb                422 include/media/videobuf2-core.h 	void (*buf_finish)(struct vb2_buffer *vb);
vb                423 include/media/videobuf2-core.h 	void (*buf_cleanup)(struct vb2_buffer *vb);
vb                428 include/media/videobuf2-core.h 	void (*buf_queue)(struct vb2_buffer *vb);
vb                430 include/media/videobuf2-core.h 	void (*buf_request_complete)(struct vb2_buffer *vb);
vb                451 include/media/videobuf2-core.h 	int (*verify_planes_array)(struct vb2_buffer *vb, const void *pb);
vb                452 include/media/videobuf2-core.h 	void (*init_buffer)(struct vb2_buffer *vb);
vb                453 include/media/videobuf2-core.h 	void (*fill_user_buffer)(struct vb2_buffer *vb, void *pb);
vb                454 include/media/videobuf2-core.h 	int (*fill_vb2_buffer)(struct vb2_buffer *vb, struct vb2_plane *planes);
vb                455 include/media/videobuf2-core.h 	void (*copy_timestamp)(struct vb2_buffer *vb, const void *pb);
vb                631 include/media/videobuf2-core.h void *vb2_plane_vaddr(struct vb2_buffer *vb, unsigned int plane_no);
vb                645 include/media/videobuf2-core.h void *vb2_plane_cookie(struct vb2_buffer *vb, unsigned int plane_no);
vb                667 include/media/videobuf2-core.h void vb2_buffer_done(struct vb2_buffer *vb, enum vb2_buffer_state state);
vb               1032 include/media/videobuf2-core.h typedef int (*vb2_thread_fnc)(struct vb2_buffer *vb, void *priv);
vb               1113 include/media/videobuf2-core.h static inline void vb2_set_plane_payload(struct vb2_buffer *vb,
vb               1116 include/media/videobuf2-core.h 	if (plane_no < vb->num_planes)
vb               1117 include/media/videobuf2-core.h 		vb->planes[plane_no].bytesused = size;
vb               1126 include/media/videobuf2-core.h static inline unsigned long vb2_get_plane_payload(struct vb2_buffer *vb,
vb               1129 include/media/videobuf2-core.h 	if (plane_no < vb->num_planes)
vb               1130 include/media/videobuf2-core.h 		return vb->planes[plane_no].bytesused;
vb               1141 include/media/videobuf2-core.h vb2_plane_size(struct vb2_buffer *vb, unsigned int plane_no)
vb               1143 include/media/videobuf2-core.h 	if (plane_no < vb->num_planes)
vb               1144 include/media/videobuf2-core.h 		return vb->planes[plane_no].length;
vb               1196 include/media/videobuf2-core.h bool vb2_buffer_in_use(struct vb2_queue *q, struct vb2_buffer *vb);
vb                 20 include/media/videobuf2-dma-contig.h vb2_dma_contig_plane_dma_addr(struct vb2_buffer *vb, unsigned int plane_no)
vb                 22 include/media/videobuf2-dma-contig.h 	dma_addr_t *addr = vb2_plane_cookie(vb, plane_no);
vb                 19 include/media/videobuf2-dma-sg.h 		struct vb2_buffer *vb, unsigned int plane_no)
vb                 21 include/media/videobuf2-dma-sg.h 	return (struct sg_table *)vb2_plane_cookie(vb, plane_no);
vb                 55 include/media/videobuf2-v4l2.h #define to_vb2_v4l2_buffer(vb) \
vb                 56 include/media/videobuf2-v4l2.h 	container_of(vb, struct vb2_v4l2_buffer, vb2_buf)
vb                182 include/trace/events/v4l2.h 	TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
vb                183 include/trace/events/v4l2.h 	TP_ARGS(q, vb),
vb                204 include/trace/events/v4l2.h 		struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                210 include/trace/events/v4l2.h 		__entry->timestamp = vb->timestamp;
vb                246 include/trace/events/v4l2.h 	TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
vb                247 include/trace/events/v4l2.h 	TP_ARGS(q, vb)
vb                251 include/trace/events/v4l2.h 	TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
vb                252 include/trace/events/v4l2.h 	TP_ARGS(q, vb)
vb                256 include/trace/events/v4l2.h 	TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
vb                257 include/trace/events/v4l2.h 	TP_ARGS(q, vb)
vb                261 include/trace/events/v4l2.h 	TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
vb                262 include/trace/events/v4l2.h 	TP_ARGS(q, vb)
vb                 12 include/trace/events/vb2.h 	TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
vb                 13 include/trace/events/vb2.h 	TP_ARGS(q, vb),
vb                 30 include/trace/events/vb2.h 		__entry->index = vb->index;
vb                 31 include/trace/events/vb2.h 		__entry->type = vb->type;
vb                 32 include/trace/events/vb2.h 		__entry->bytesused = vb->planes[0].bytesused;
vb                 33 include/trace/events/vb2.h 		__entry->timestamp = vb->timestamp;
vb                 47 include/trace/events/vb2.h 	TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
vb                 48 include/trace/events/vb2.h 	TP_ARGS(q, vb)
vb                 52 include/trace/events/vb2.h 	TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
vb                 53 include/trace/events/vb2.h 	TP_ARGS(q, vb)
vb                 57 include/trace/events/vb2.h 	TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
vb                 58 include/trace/events/vb2.h 	TP_ARGS(q, vb)
vb                 62 include/trace/events/vb2.h 	TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
vb                 63 include/trace/events/vb2.h 	TP_ARGS(q, vb)
vb               2104 kernel/trace/trace_events_filter.c #define DATA_REC(m, va, vb, vc, vd, ve, vf, vg, vh, nvisit) \
vb               2107 kernel/trace/trace_events_filter.c 	.rec    = { .a = va, .b = vb, .c = vc, .d = vd, \
vb               1460 mm/vmalloc.c   	struct vmap_block *vb;
vb               1468 mm/vmalloc.c   	vb = kmalloc_node(sizeof(struct vmap_block),
vb               1470 mm/vmalloc.c   	if (unlikely(!vb))
vb               1477 mm/vmalloc.c   		kfree(vb);
vb               1483 mm/vmalloc.c   		kfree(vb);
vb               1489 mm/vmalloc.c   	spin_lock_init(&vb->lock);
vb               1490 mm/vmalloc.c   	vb->va = va;
vb               1493 mm/vmalloc.c   	vb->free = VMAP_BBMAP_BITS - (1UL << order);
vb               1494 mm/vmalloc.c   	vb->dirty = 0;
vb               1495 mm/vmalloc.c   	vb->dirty_min = VMAP_BBMAP_BITS;
vb               1496 mm/vmalloc.c   	vb->dirty_max = 0;
vb               1497 mm/vmalloc.c   	INIT_LIST_HEAD(&vb->free_list);
vb               1501 mm/vmalloc.c   	err = radix_tree_insert(&vmap_block_tree, vb_idx, vb);
vb               1508 mm/vmalloc.c   	list_add_tail_rcu(&vb->free_list, &vbq->free);
vb               1515 mm/vmalloc.c   static void free_vmap_block(struct vmap_block *vb)
vb               1520 mm/vmalloc.c   	vb_idx = addr_to_vb_idx(vb->va->va_start);
vb               1524 mm/vmalloc.c   	BUG_ON(tmp != vb);
vb               1526 mm/vmalloc.c   	free_vmap_area_noflush(vb->va);
vb               1527 mm/vmalloc.c   	kfree_rcu(vb, rcu_head);
vb               1533 mm/vmalloc.c   	struct vmap_block *vb;
vb               1538 mm/vmalloc.c   	list_for_each_entry_rcu(vb, &vbq->free, free_list) {
vb               1540 mm/vmalloc.c   		if (!(vb->free + vb->dirty == VMAP_BBMAP_BITS && vb->dirty != VMAP_BBMAP_BITS))
vb               1543 mm/vmalloc.c   		spin_lock(&vb->lock);
vb               1544 mm/vmalloc.c   		if (vb->free + vb->dirty == VMAP_BBMAP_BITS && vb->dirty != VMAP_BBMAP_BITS) {
vb               1545 mm/vmalloc.c   			vb->free = 0; /* prevent further allocs after releasing lock */
vb               1546 mm/vmalloc.c   			vb->dirty = VMAP_BBMAP_BITS; /* prevent purging it again */
vb               1547 mm/vmalloc.c   			vb->dirty_min = 0;
vb               1548 mm/vmalloc.c   			vb->dirty_max = VMAP_BBMAP_BITS;
vb               1550 mm/vmalloc.c   			list_del_rcu(&vb->free_list);
vb               1552 mm/vmalloc.c   			spin_unlock(&vb->lock);
vb               1553 mm/vmalloc.c   			list_add_tail(&vb->purge, &purge);
vb               1555 mm/vmalloc.c   			spin_unlock(&vb->lock);
vb               1559 mm/vmalloc.c   	list_for_each_entry_safe(vb, n_vb, &purge, purge) {
vb               1560 mm/vmalloc.c   		list_del(&vb->purge);
vb               1561 mm/vmalloc.c   		free_vmap_block(vb);
vb               1576 mm/vmalloc.c   	struct vmap_block *vb;
vb               1594 mm/vmalloc.c   	list_for_each_entry_rcu(vb, &vbq->free, free_list) {
vb               1597 mm/vmalloc.c   		spin_lock(&vb->lock);
vb               1598 mm/vmalloc.c   		if (vb->free < (1UL << order)) {
vb               1599 mm/vmalloc.c   			spin_unlock(&vb->lock);
vb               1603 mm/vmalloc.c   		pages_off = VMAP_BBMAP_BITS - vb->free;
vb               1604 mm/vmalloc.c   		vaddr = vmap_block_vaddr(vb->va->va_start, pages_off);
vb               1605 mm/vmalloc.c   		vb->free -= 1UL << order;
vb               1606 mm/vmalloc.c   		if (vb->free == 0) {
vb               1608 mm/vmalloc.c   			list_del_rcu(&vb->free_list);
vb               1612 mm/vmalloc.c   		spin_unlock(&vb->lock);
vb               1631 mm/vmalloc.c   	struct vmap_block *vb;
vb               1645 mm/vmalloc.c   	vb = radix_tree_lookup(&vmap_block_tree, vb_idx);
vb               1647 mm/vmalloc.c   	BUG_ON(!vb);
vb               1655 mm/vmalloc.c   	spin_lock(&vb->lock);
vb               1658 mm/vmalloc.c   	vb->dirty_min = min(vb->dirty_min, offset);
vb               1659 mm/vmalloc.c   	vb->dirty_max = max(vb->dirty_max, offset + (1UL << order));
vb               1661 mm/vmalloc.c   	vb->dirty += 1UL << order;
vb               1662 mm/vmalloc.c   	if (vb->dirty == VMAP_BBMAP_BITS) {
vb               1663 mm/vmalloc.c   		BUG_ON(vb->free);
vb               1664 mm/vmalloc.c   		spin_unlock(&vb->lock);
vb               1665 mm/vmalloc.c   		free_vmap_block(vb);
vb               1667 mm/vmalloc.c   		spin_unlock(&vb->lock);
vb               1681 mm/vmalloc.c   		struct vmap_block *vb;
vb               1684 mm/vmalloc.c   		list_for_each_entry_rcu(vb, &vbq->free, free_list) {
vb               1685 mm/vmalloc.c   			spin_lock(&vb->lock);
vb               1686 mm/vmalloc.c   			if (vb->dirty) {
vb               1687 mm/vmalloc.c   				unsigned long va_start = vb->va->va_start;
vb               1690 mm/vmalloc.c   				s = va_start + (vb->dirty_min << PAGE_SHIFT);
vb               1691 mm/vmalloc.c   				e = va_start + (vb->dirty_max << PAGE_SHIFT);
vb               1698 mm/vmalloc.c   			spin_unlock(&vb->lock);
vb                 84 samples/v4l/v4l2-pci-skeleton.c 	struct vb2_v4l2_buffer vb;
vb                 90 samples/v4l/v4l2-pci-skeleton.c 	return container_of(vbuf, struct skel_buffer, vb);
vb                143 samples/v4l/v4l2-pci-skeleton.c 		new_buf->vb.vb2_buf.timestamp = ktime_get_ns();
vb                144 samples/v4l/v4l2-pci-skeleton.c 		new_buf->vb.sequence = skel->sequence++;
vb                145 samples/v4l/v4l2-pci-skeleton.c 		new_buf->vb.field = skel->field;
vb                152 samples/v4l/v4l2-pci-skeleton.c 		vb2_buffer_done(&new_buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
vb                196 samples/v4l/v4l2-pci-skeleton.c static int buffer_prepare(struct vb2_buffer *vb)
vb                198 samples/v4l/v4l2-pci-skeleton.c 	struct skeleton *skel = vb2_get_drv_priv(vb->vb2_queue);
vb                201 samples/v4l/v4l2-pci-skeleton.c 	if (vb2_plane_size(vb, 0) < size) {
vb                203 samples/v4l/v4l2-pci-skeleton.c 			 vb2_plane_size(vb, 0), size);
vb                207 samples/v4l/v4l2-pci-skeleton.c 	vb2_set_plane_payload(vb, 0, size);
vb                214 samples/v4l/v4l2-pci-skeleton.c static void buffer_queue(struct vb2_buffer *vb)
vb                216 samples/v4l/v4l2-pci-skeleton.c 	struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
vb                217 samples/v4l/v4l2-pci-skeleton.c 	struct skeleton *skel = vb2_get_drv_priv(vb->vb2_queue);
vb                237 samples/v4l/v4l2-pci-skeleton.c 		vb2_buffer_done(&buf->vb.vb2_buf, state);
vb                783 tools/lib/subcmd/parse-options.c static int option__cmp(const void *va, const void *vb)
vb                785 tools/lib/subcmd/parse-options.c 	const struct option *a = va, *b = vb;
vb                 52 tools/perf/util/syscalltbl.c static int syscallcmp(const void *va, const void *vb)
vb                 54 tools/perf/util/syscalltbl.c 	const struct syscall *a = va, *b = vb;