Lines Matching refs:transfer
196 MTS_DEBUG("transfer = 0x%x context = 0x%x\n",(int)transfer,(int)context ); \
197 …s = 0x%x data-length = 0x%x sent = 0x%x\n",(int)transfer->status,(int)context->data_length, (int)t…
213 struct mts_transfer_context* context = (struct mts_transfer_context*)transfer->context; \
486 static void mts_transfer_cleanup( struct urb *transfer );
487 static void mts_do_sg(struct urb * transfer);
491 void mts_int_submit_urb (struct urb* transfer, in mts_int_submit_urb() argument
504 FILL_BULK_URB(transfer, in mts_int_submit_urb()
513 transfer->status = 0; in mts_int_submit_urb()
515 res = usb_submit_urb( transfer ); in mts_int_submit_urb()
519 mts_transfer_cleanup(transfer); in mts_int_submit_urb()
525 static void mts_transfer_cleanup( struct urb *transfer ) in mts_transfer_cleanup() argument
535 static void mts_transfer_done( struct urb *transfer ) in mts_transfer_done() argument
542 mts_transfer_cleanup(transfer); in mts_transfer_done()
548 static void mts_get_status( struct urb *transfer ) in mts_get_status() argument
553 mts_int_submit_urb(transfer, in mts_get_status()
561 static void mts_data_done( struct urb* transfer ) in mts_data_done() argument
566 if ( context->data_length != transfer->actual_length ) { in mts_data_done()
567 context->srb->resid = context->data_length - transfer->actual_length; in mts_data_done()
568 } else if ( transfer->status ) { in mts_data_done()
569 context->srb->result = (transfer->status == -ENOENT ? DID_ABORT : DID_ERROR)<<16; in mts_data_done()
572 mts_get_status(transfer); in mts_data_done()
578 static void mts_command_done( struct urb *transfer ) in mts_command_done() argument
583 if ( transfer->status ) { in mts_command_done()
584 if (transfer->status == -ENOENT) { in mts_command_done()
594 mts_transfer_cleanup(transfer); in mts_command_done()
600 mts_int_submit_urb(transfer, in mts_command_done()
605 } else mts_get_status(transfer); in mts_command_done()
610 static void mts_do_sg (struct urb* transfer) in mts_do_sg() argument
617 if (transfer->status) { in mts_do_sg()
618 context->srb->result = (transfer->status == -ENOENT ? DID_ABORT : DID_ERROR)<<16; in mts_do_sg()
619 mts_transfer_cleanup(transfer); in mts_do_sg()
624 mts_int_submit_urb(transfer, in mts_do_sg()