Lines Matching refs:pipe
185 int usb_stor_control_msg(struct us_data *us, unsigned int pipe,
202 usb_fill_control_urb(us->current_urb, us->pusb_dev, pipe,
227 int usb_stor_clear_halt(struct us_data *us, unsigned int pipe)
230 int endp = usb_pipeendpoint(pipe);
232 if (usb_pipein (pipe))
256 static int interpret_urb_result(struct us_data *us, unsigned int pipe,
279 if (usb_pipecontrol(pipe)) {
280 usb_stor_dbg(us, "-- stall on control pipe\n");
285 usb_stor_dbg(us, "clearing endpoint halt for pipe 0x%x\n",
286 pipe);
287 if (usb_stor_clear_halt(us, pipe) < 0)
322 int usb_stor_ctrl_transfer(struct us_data *us, unsigned int pipe,
339 usb_fill_control_urb(us->current_urb, us->pusb_dev, pipe,
344 return interpret_urb_result(us, pipe, size, result,
353 * This routine always uses us->recv_intr_pipe as the pipe and
360 unsigned int pipe = us->recv_intr_pipe;
366 maxp = usb_maxpacket(us->pusb_dev, pipe);
371 usb_fill_int_urb(us->current_urb, us->pusb_dev, pipe, buf,
376 return interpret_urb_result(us, pipe, length, result,
381 * Transfer one buffer via bulk pipe, without timeouts, but allowing early
382 * termination. Return codes are USB_STOR_XFER_xxx. If the bulk pipe
385 int usb_stor_bulk_transfer_buf(struct us_data *us, unsigned int pipe,
393 usb_fill_bulk_urb(us->current_urb, us->pusb_dev, pipe, buf, length,
400 return interpret_urb_result(us, pipe, length, result,
411 static int usb_stor_bulk_transfer_sglist(struct us_data *us, unsigned int pipe,
423 result = usb_sg_init(&us->current_sg, us->pusb_dev, pipe, 0,
453 return interpret_urb_result(us, pipe, length, result,
466 int usb_stor_bulk_srb(struct us_data* us, unsigned int pipe,
470 int result = usb_stor_bulk_transfer_sglist(us, pipe, scsi_sglist(srb),
481 * pipe.
488 int usb_stor_bulk_transfer_sg(struct us_data* us, unsigned int pipe,
497 result = usb_stor_bulk_transfer_sglist(us, pipe,
503 result = usb_stor_bulk_transfer_buf(us, pipe, buf,
651 * can signal most data-in errors by stalling the bulk-in pipe.
960 unsigned int pipe = 0;
964 /* let's send the command via the control pipe */
992 pipe = srb->sc_data_direction == DMA_FROM_DEVICE ?
994 result = usb_stor_bulk_srb(us, pipe, srb);
1060 * the CBI spec requires that the bulk pipe must be cleared
1064 if (pipe)
1065 usb_stor_clear_halt(us, pipe);
1107 * pipe, they may return a zero-length result, they may do nothing at
1171 unsigned int pipe = srb->sc_data_direction == DMA_FROM_DEVICE ?
1173 result = usb_stor_bulk_srb(us, pipe, srb);