Lines Matching full:vb
40 struct vprbrd *vb = (struct vprbrd *)i2c->algo_data; in vprbrd_i2c_status() local
45 ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0), in vprbrd_i2c_status()
113 static int vprbrd_i2c_read(struct vprbrd *vb, struct i2c_msg *msg) in vprbrd_i2c_read() argument
118 (struct vprbrd_i2c_read_msg *)vb->buf; in vprbrd_i2c_read()
200 ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len1); in vprbrd_i2c_read()
208 ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len2); in vprbrd_i2c_read()
218 static int vprbrd_i2c_write(struct vprbrd *vb, struct i2c_msg *msg) in vprbrd_i2c_write() argument
224 (struct vprbrd_i2c_write_msg *)vb->buf; in vprbrd_i2c_write()
255 ret = usb_bulk_msg(vb->usb_dev, in vprbrd_i2c_write()
256 usb_sndbulkpipe(vb->usb_dev, in vprbrd_i2c_write()
271 struct vprbrd *vb = (struct vprbrd *)i2c->algo_data; in vprbrd_i2c_xfer() local
273 (struct vprbrd_i2c_addr_msg *)vb->buf; in vprbrd_i2c_xfer()
274 struct vprbrd_i2c_status *smsg = (struct vprbrd_i2c_status *)vb->buf; in vprbrd_i2c_xfer()
286 mutex_lock(&vb->lock); in vprbrd_i2c_xfer()
297 ret = vprbrd_i2c_addr(vb->usb_dev, amsg); in vprbrd_i2c_xfer()
301 ret = vprbrd_i2c_read(vb, pmsg); in vprbrd_i2c_xfer()
313 ret = vprbrd_i2c_write(vb, pmsg); in vprbrd_i2c_xfer()
322 ret = vprbrd_i2c_addr(vb->usb_dev, amsg); in vprbrd_i2c_xfer()
333 mutex_unlock(&vb->lock); in vprbrd_i2c_xfer()
337 mutex_unlock(&vb->lock); in vprbrd_i2c_xfer()
359 struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent); in vprbrd_i2c_probe() local
373 vb_i2c->i2c.algo_data = vb; in vprbrd_i2c_probe()
379 vb->usb_dev->bus->busnum, vb->usb_dev->devnum); in vprbrd_i2c_probe()
384 pipe = usb_sndctrlpipe(vb->usb_dev, 0); in vprbrd_i2c_probe()
385 ret = usb_control_msg(vb->usb_dev, pipe, in vprbrd_i2c_probe()