Lines Matching refs:pipe
194 int usb_stor_control_msg(struct us_data *us, unsigned int pipe, in usb_stor_control_msg() argument
211 usb_fill_control_urb(us->current_urb, us->pusb_dev, pipe, in usb_stor_control_msg()
235 int usb_stor_clear_halt(struct us_data *us, unsigned int pipe) in usb_stor_clear_halt() argument
238 int endp = usb_pipeendpoint(pipe); in usb_stor_clear_halt()
240 if (usb_pipein (pipe)) in usb_stor_clear_halt()
264 static int interpret_urb_result(struct us_data *us, unsigned int pipe, in interpret_urb_result() argument
285 if (usb_pipecontrol(pipe)) { in interpret_urb_result()
292 pipe); in interpret_urb_result()
293 if (usb_stor_clear_halt(us, pipe) < 0) in interpret_urb_result()
328 int usb_stor_ctrl_transfer(struct us_data *us, unsigned int pipe, in usb_stor_ctrl_transfer() argument
345 usb_fill_control_urb(us->current_urb, us->pusb_dev, pipe, in usb_stor_ctrl_transfer()
350 return interpret_urb_result(us, pipe, size, result, in usb_stor_ctrl_transfer()
366 unsigned int pipe = us->recv_intr_pipe; in usb_stor_intr_transfer() local
372 maxp = usb_maxpacket(us->pusb_dev, pipe, usb_pipeout(pipe)); in usb_stor_intr_transfer()
377 usb_fill_int_urb(us->current_urb, us->pusb_dev, pipe, buf, in usb_stor_intr_transfer()
382 return interpret_urb_result(us, pipe, length, result, in usb_stor_intr_transfer()
391 int usb_stor_bulk_transfer_buf(struct us_data *us, unsigned int pipe, in usb_stor_bulk_transfer_buf() argument
399 usb_fill_bulk_urb(us->current_urb, us->pusb_dev, pipe, buf, length, in usb_stor_bulk_transfer_buf()
406 return interpret_urb_result(us, pipe, length, result, in usb_stor_bulk_transfer_buf()
417 static int usb_stor_bulk_transfer_sglist(struct us_data *us, unsigned int pipe, in usb_stor_bulk_transfer_sglist() argument
429 result = usb_sg_init(&us->current_sg, us->pusb_dev, pipe, 0, in usb_stor_bulk_transfer_sglist()
457 return interpret_urb_result(us, pipe, length, result, in usb_stor_bulk_transfer_sglist()
465 int usb_stor_bulk_srb(struct us_data* us, unsigned int pipe, in usb_stor_bulk_srb() argument
469 int result = usb_stor_bulk_transfer_sglist(us, pipe, scsi_sglist(srb), in usb_stor_bulk_srb()
487 int usb_stor_bulk_transfer_sg(struct us_data* us, unsigned int pipe, in usb_stor_bulk_transfer_sg() argument
496 result = usb_stor_bulk_transfer_sglist(us, pipe, in usb_stor_bulk_transfer_sg()
502 result = usb_stor_bulk_transfer_buf(us, pipe, buf, in usb_stor_bulk_transfer_sg()
917 unsigned int pipe = 0; in usb_stor_CB_transport() local
944 pipe = srb->sc_data_direction == DMA_FROM_DEVICE ? in usb_stor_CB_transport()
946 result = usb_stor_bulk_srb(us, pipe, srb); in usb_stor_CB_transport()
1012 if (pipe) in usb_stor_CB_transport()
1013 usb_stor_clear_halt(us, pipe); in usb_stor_CB_transport()
1117 unsigned int pipe = srb->sc_data_direction == DMA_FROM_DEVICE ? in usb_stor_Bulk_transport() local
1119 result = usb_stor_bulk_srb(us, pipe, srb); in usb_stor_Bulk_transport()