Lines Matching refs:bus_adap

77 static int as102_usb_xfer_cmd(struct as10x_bus_adapter_t *bus_adap,  in as102_usb_xfer_cmd()  argument
84 ret = usb_control_msg(bus_adap->usb_dev, in as102_usb_xfer_cmd()
85 usb_sndctrlpipe(bus_adap->usb_dev, 0), in as102_usb_xfer_cmd()
89 bus_adap->cmd_xid, /* value */ in as102_usb_xfer_cmd()
94 dev_dbg(&bus_adap->usb_dev->dev, in as102_usb_xfer_cmd()
100 dev_dbg(&bus_adap->usb_dev->dev, in as102_usb_xfer_cmd()
108 dev_dbg(bus_adap->usb_dev->dev, in as102_usb_xfer_cmd()
111 ret = usb_control_msg(bus_adap->usb_dev, in as102_usb_xfer_cmd()
112 usb_rcvctrlpipe(bus_adap->usb_dev, 0), in as102_usb_xfer_cmd()
116 bus_adap->cmd_xid, /* value */ in as102_usb_xfer_cmd()
121 dev_dbg(&bus_adap->usb_dev->dev, in as102_usb_xfer_cmd()
126 dev_dbg(bus_adap->usb_dev->dev, in as102_usb_xfer_cmd()
134 static int as102_send_ep1(struct as10x_bus_adapter_t *bus_adap, in as102_send_ep1() argument
141 ret = usb_bulk_msg(bus_adap->usb_dev, in as102_send_ep1()
142 usb_sndbulkpipe(bus_adap->usb_dev, 1), in as102_send_ep1()
145 dev_dbg(&bus_adap->usb_dev->dev, in as102_send_ep1()
151 dev_dbg(&bus_adap->usb_dev->dev, "only wrote %d of %d bytes\n", in as102_send_ep1()
158 static int as102_read_ep2(struct as10x_bus_adapter_t *bus_adap, in as102_read_ep2() argument
166 ret = usb_bulk_msg(bus_adap->usb_dev, in as102_read_ep2()
167 usb_rcvbulkpipe(bus_adap->usb_dev, 2), in as102_read_ep2()
170 dev_dbg(&bus_adap->usb_dev->dev, in as102_read_ep2()
176 dev_dbg(&bus_adap->usb_dev->dev, "only read %d of %d bytes\n", in as102_read_ep2()
196 dev->bus_adap.usb_dev, in as102_submit_urb_stream()
197 usb_rcvbulkpipe(dev->bus_adap.usb_dev, 0x2), in as102_submit_urb_stream()
236 usb_free_coherent(dev->bus_adap.usb_dev, in as102_free_usb_stream_buffer()
246 dev->stream = usb_alloc_coherent(dev->bus_adap.usb_dev, in as102_alloc_usb_stream_buffer()
251 dev_dbg(&dev->bus_adap.usb_dev->dev, in as102_alloc_usb_stream_buffer()
307 usb_put_dev(as102_dev->bus_adap.usb_dev); in as102_usb_release()
366 as102_dev->bus_adap.ops = &as102_priv_ops; in as102_usb_probe()
369 as102_dev->bus_adap.cmd = &as102_dev->bus_adap.token.usb.c; in as102_usb_probe()
370 as102_dev->bus_adap.rsp = &as102_dev->bus_adap.token.usb.r; in as102_usb_probe()
379 as102_dev->bus_adap.usb_dev = usb_get_dev(interface_to_usbdev(intf)); in as102_usb_probe()
410 usb_put_dev(as102_dev->bus_adap.usb_dev); in as102_usb_probe()