Home
last modified time | relevance | path

Searched refs:mfs (Results 1 – 4 of 4) sorted by relevance

/drivers/peripheral/usb/test/unittest/hal/src/
Dusbfn_mtp_test.cpp565 struct UsbFnMtpFileSlice mfs = g_mfs; variable
566 mfs.length = BULK_OUT_LESS_THEN_ONCE;
567 …cout << "UsbfnMtpFileReceive001===>use libusb in PC launch bulk-out transfer(size = " << mfs.length
573 mfs.fd = open(filePathName.c_str(), O_CREAT | O_RDWR | O_TRUNC, 0777);
574 ASSERT_GT(mfs.fd, 0);
575 auto ret = g_usbfnMtpInterface->ReceiveFile(mfs);
576 close(mfs.fd);
578 ASSERT_EQ(GetFileSize(filePathName), static_cast<uint64_t>(mfs.length));
594 struct UsbFnMtpFileSlice mfs = g_mfs; variable
595 mfs.length = 0;
[all …]
/drivers/peripheral/usb/gadget/function/mtp/src/
Dusbfn_mtp_impl.cpp1335 int32_t UsbfnMtpImpl::ReceiveFile(const UsbFnMtpFileSlice &mfs) in ReceiveFile() argument
1343 …", state=%{public}hhu", __func__, mfs.command, mfs.transactionId, mfs.length, mfs.offset, mtpDev_-… in ReceiveFile()
1349 if (mfs.length <= 0) { in ReceiveFile()
1353 mtpDev_->xferFd = mfs.fd; in ReceiveFile()
1354 mtpDev_->xferFileOffset = mfs.offset; in ReceiveFile()
1355 mtpDev_->xferFileLength = static_cast<uint64_t>(mfs.length); in ReceiveFile()
1356 lseek(mfs.fd, mfs.offset, SEEK_SET); in ReceiveFile()
1453 int32_t UsbfnMtpImpl::SendFile(const UsbFnMtpFileSlice &mfs) in SendFile() argument
1461 mtpDev_->xferFd = mfs.fd; in SendFile()
1462 mtpDev_->xferFileOffset = static_cast<uint64_t>(mfs.offset); in SendFile()
[all …]
/drivers/interface/usb/gadget/mtp/v1_0/
DIUsbfnMtpInterface.idl101 * @param mfs Indicates the mtp file slice info.
107 ReceiveFile([in] struct UsbFnMtpFileSlice mfs);
114 * @param mfs Indicates the mtp file range info, used is packet header.
120 SendFile([in] struct UsbFnMtpFileSlice mfs);
/drivers/peripheral/usb/gadget/function/mtp/include/
Dusbfn_mtp_impl.h176 int32_t ReceiveFile(const UsbFnMtpFileSlice &mfs) override;
178 int32_t SendFile(const UsbFnMtpFileSlice &mfs) override;