Home
last modified time | relevance | path

Searched refs:oneReqLeft (Results 1 - 2 of 2) sorted by relevance

/drivers/peripheral/usb/gadget/function/mtp/include/
H A Dusbfn_mtp_impl.h236 int32_t UsbMtpPortSendFileFillFirstReq(struct UsbFnRequest *req, uint64_t &oneReqLeft);
238 int32_t UsbMtpPortSendFileLeftAsync(uint64_t oneReqLeft);
/drivers/peripheral/usb/gadget/function/mtp/src/
H A Dusbfn_mtp_impl.cpp1391 int32_t UsbfnMtpImpl::UsbMtpPortSendFileFillFirstReq(struct UsbFnRequest *req, uint64_t &oneReqLeft) in UsbMtpPortSendFileFillFirstReq() argument
1409 oneReqLeft = (hdrSize + mtpDev_->xferFileLength < reqMax) ? mtpDev_->xferFileLength : reqMax - hdrSize; in UsbMtpPortSendFileFillFirstReq()
1410 ssize_t readRet = read(mtpDev_->xferFd, static_cast<void *>(bufOffset), static_cast<size_t>(oneReqLeft)); in UsbMtpPortSendFileFillFirstReq()
1411 if (readRet != static_cast<ssize_t>(oneReqLeft)) { in UsbMtpPortSendFileFillFirstReq()
1412 HDF_LOGE("%{public}s: read failed: %{public}zd vs %{public}" PRId64 "", __func__, readRet, oneReqLeft); in UsbMtpPortSendFileFillFirstReq()
1427 uint64_t oneReqLeft = 0; in UsbMtpPortSendFileEx() local
1428 int32_t ret = UsbMtpPortSendFileFillFirstReq(req, oneReqLeft); in UsbMtpPortSendFileEx()
1452 if (oneReqLeft != mtpDev_->xferFileLength) { in UsbMtpPortSendFileEx()
1453 ret = UsbMtpPortSendFileLeftAsync(oneReqLeft); in UsbMtpPortSendFileEx()
1458 int32_t UsbfnMtpImpl::UsbMtpPortSendFileLeftAsync(uint64_t oneReqLeft) in UsbMtpPortSendFileLeftAsync() argument
[all...]

Completed in 4 milliseconds