Lines Matching refs:usb_dev
45 ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0), in vprbrd_i2c_status()
65 static int vprbrd_i2c_receive(struct usb_device *usb_dev, in vprbrd_i2c_receive() argument
72 ret = usb_bulk_msg(usb_dev, in vprbrd_i2c_receive()
73 usb_sndbulkpipe(usb_dev, VPRBRD_EP_OUT), rmsg, in vprbrd_i2c_receive()
79 dev_err(&usb_dev->dev, "failure transmitting usb\n"); in vprbrd_i2c_receive()
84 ret = usb_bulk_msg(usb_dev, in vprbrd_i2c_receive()
85 usb_rcvbulkpipe(usb_dev, VPRBRD_EP_IN), rmsg, in vprbrd_i2c_receive()
89 dev_err(&usb_dev->dev, "failure receiving usb\n"); in vprbrd_i2c_receive()
95 static int vprbrd_i2c_addr(struct usb_device *usb_dev, in vprbrd_i2c_addr() argument
100 ret = usb_bulk_msg(usb_dev, in vprbrd_i2c_addr()
101 usb_sndbulkpipe(usb_dev, VPRBRD_EP_OUT), amsg, in vprbrd_i2c_addr()
107 dev_err(&usb_dev->dev, "failure transmitting usb\n"); in vprbrd_i2c_addr()
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()
255 ret = usb_bulk_msg(vb->usb_dev, in vprbrd_i2c_write()
256 usb_sndbulkpipe(vb->usb_dev, in vprbrd_i2c_write()
297 ret = vprbrd_i2c_addr(vb->usb_dev, amsg); in vprbrd_i2c_xfer()
322 ret = vprbrd_i2c_addr(vb->usb_dev, amsg); in vprbrd_i2c_xfer()
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()