Lines Matching refs:transfer
445 libusb_cancel_transfer(hUSB->hostBulkIn.transfer);
453 libusb_cancel_transfer(hUSB->hostBulkOut.transfer);
508 void LIBUSB_CALL HdcHostUSB::USBBulkCallback(struct libusb_transfer *transfer)
510 auto *ep = reinterpret_cast<HostUSBEndpoint *>(transfer->user_data);
515 if (transfer->status != LIBUSB_TRANSFER_COMPLETED) {
516 WRITE_LOG(LOG_FATAL, "USBBulkCallback1 failed, ret:%d", transfer->status);
519 if (!ep->bulkInOut && transfer->actual_length != transfer->length) {
520 transfer->length -= transfer->actual_length;
521 transfer->buffer += transfer->actual_length;
527 childRet = libusb_submit_transfer(transfer);
530 transfer->status = LIBUSB_TRANSFER_ERROR;
558 libusb_fill_bulk_transfer(ep->transfer, hUSB->devHandle, ep->endpoint, buf, bufSize, USBBulkCallback, ep,
560 childRet = libusb_submit_transfer(ep->transfer);
568 if (ep->transfer->status != 0) {
569 WRITE_LOG(LOG_FATAL, "SubmitUsbBio transfer failed, sid:%u status:%d",
570 hSession->sessionId, ep->transfer->status);
573 ret = ep->transfer->actual_length;