Lines Matching refs:pipe

239 	int			pipe,  in usbtest_alloc_urb()  argument
253 usb_fill_int_urb(urb, udev, pipe, NULL, bytes, complete_fn, in usbtest_alloc_urb()
256 usb_fill_bulk_urb(urb, udev, pipe, NULL, bytes, complete_fn, in usbtest_alloc_urb()
263 if (usb_pipein(pipe)) in usbtest_alloc_urb()
289 usb_pipein(urb->pipe) ? GUARD_BYTE : 0, in usbtest_alloc_urb()
296 int pipe, in simple_alloc_urb() argument
300 return usbtest_alloc_urb(udev, pipe, bytes, URB_NO_TRANSFER_DMA_MAP, 0, in simple_alloc_urb()
306 int pipe, in complicated_alloc_urb() argument
310 return usbtest_alloc_urb(udev, pipe, bytes, URB_NO_TRANSFER_DMA_MAP, 0, in complicated_alloc_urb()
319 static unsigned get_maxpacket(struct usb_device *udev, int pipe) in get_maxpacket() argument
323 ep = usb_pipe_endpoint(udev, pipe); in get_maxpacket()
341 maxpacket = get_maxpacket(urb->dev, urb->pipe); in simple_fill_buf()
375 unsigned maxpacket = get_maxpacket(urb->dev, urb->pipe); in simple_check_buf()
441 if (usb_pipeout(urb->pipe)) { in simple_io()
459 if (retval == 0 && usb_pipein(urb->pipe)) in simple_io()
505 alloc_sglist(int nents, int max, int vary, struct usbtest_dev *dev, int pipe) in alloc_sglist() argument
512 get_maxpacket(interface_to_usbdev(dev->intf), pipe); in alloc_sglist()
568 int pipe, in perform_sglist() argument
581 retval = usb_sg_init(req, udev, pipe, in perform_sglist()
1187 int pipe = usb_rcvctrlpipe(udev, 0); in test_ctrl_queue() local
1259 pipe = usb_sndctrlpipe(udev, 0); in test_ctrl_queue()
1328 urb[i] = u = simple_alloc_urb(udev, pipe, len, 0); in test_ctrl_queue()
1394 static int unlink1(struct usbtest_dev *dev, int pipe, int size, int async) in unlink1() argument
1401 urb = simple_alloc_urb(testdev_to_usbdev(dev), pipe, size, 0); in unlink1()
1407 if (usb_pipeout(urb->pipe)) { in unlink1()
1432 if (retval == 0 && usb_pipein(urb->pipe)) in unlink1()
1472 static int unlink_simple(struct usbtest_dev *dev, int pipe, int len) in unlink_simple() argument
1477 retval = unlink1(dev, pipe, len, 1); in unlink_simple()
1479 retval = unlink1(dev, pipe, len, 0); in unlink_simple()
1513 static int unlink_queued(struct usbtest_dev *dev, int pipe, unsigned num, in unlink_queued() argument
1541 usb_fill_bulk_urb(ctx.urbs[i], udev, pipe, buf, size, in unlink_queued()
1546 if (usb_pipeout(ctx.urbs[i]->pipe)) { in unlink_queued()
1658 ret = usb_clear_halt(urb->dev, urb->pipe); in test_halt()
1667 retval = usb_clear_halt(urb->dev, urb->pipe); in test_halt()
1697 urb->pipe = dev->in_pipe; in halt_simple()
1705 urb->pipe = dev->out_pipe; in halt_simple()
1878 int pipe, in iso_alloc_urb() argument
1897 urb->pipe = pipe; in iso_alloc_urb()
1916 usb_pipein(urb->pipe) ? GUARD_BYTE : 0, in iso_alloc_urb()
1936 int pipe, struct usb_endpoint_descriptor *desc, unsigned offset) in test_queue() argument
1956 urbs[i] = iso_alloc_urb(udev, pipe, desc, in test_queue()
1959 urbs[i] = complicated_alloc_urb(udev, pipe, in test_queue()
2036 int pipe, in test_unaligned_bulk() argument
2044 pipe, length, transfer_flags, 1, 0, simple_callback); in test_unaligned_bulk()