Lines Matching refs:ptp
87 bool MtpFfsHandle::openEndpoints(bool ptp) { in openEndpoints() argument
89 mBulkIn.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_IN : FFS_MTP_EP_IN, O_RDWR))); in openEndpoints()
91 PLOG(ERROR) << (ptp ? FFS_PTP_EP_IN : FFS_MTP_EP_IN) << ": cannot open bulk in ep"; in openEndpoints()
97 mBulkOut.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_OUT : FFS_MTP_EP_OUT, O_RDWR))); in openEndpoints()
99 PLOG(ERROR) << (ptp ? FFS_PTP_EP_OUT : FFS_MTP_EP_OUT) << ": cannot open bulk out ep"; in openEndpoints()
105 mIntr.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_INTR : FFS_MTP_EP_INTR, O_RDWR))); in openEndpoints()
107 PLOG(ERROR) << (ptp ? FFS_PTP_EP_INTR : FFS_MTP_EP_INTR) << ": cannot open intr ep"; in openEndpoints()
125 bool MtpFfsHandle::writeDescriptors(bool ptp) { in writeDescriptors() argument
126 return ::android::writeDescriptors(mControl, ptp); in writeDescriptors()
268 int MtpFfsHandle::start(bool ptp) { in start() argument
269 if (!openEndpoints(ptp)) in start()