int cx8802_buf_prepare(struct cx8802_dev *dev, struct cx88_buffer *buf) 
int cx8802_buf_prepare(struct cx8802_dev *dev, struct cx88_buffer *buf, enum v4l2_field field) 
int cx8802_buf_prepare(struct cx8802_dev *dev, struct cx88_buffer *buf){	int size = dev->ts_packet_size * dev->ts_packet_count;	int rc;	dprintk(1, "%s: %p\n", __FUNCTION__, buf);	if (0 != buf->vb.baddr  &&  buf->vb.bsize < size)		return -EINVAL;	if (STATE_NEEDS_INIT == buf->vb.state) {		buf->vb.width  = dev->ts_packet_size;		buf->vb.height = dev->ts_packet_count;		buf->vb.size   = size;		buf->vb.field  = V4L2_FIELD_TOP;		if (0 != (rc = videobuf_iolock(dev->pci,&buf->vb,NULL)))			goto fail;		cx88_risc_databuffer(dev->pci, &buf->risc,				     buf->vb.dma.sglist,				     buf->vb.width, buf->vb.height);	}	buf->vb.state = STATE_PREPARED;	return 0; fail:	cx88_free_buffer(dev->pci,buf);	return rc;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/31629424132c87f7c8bd79d7ed4d014354a06427/cx88-mpeg.c/buggy/drivers/media/video/cx88/cx88-mpeg.c