Lines Matching refs:ptp
88 bool MtpFfsHandle::openEndpoints(bool ptp) { in openEndpoints() argument
90 mBulkIn.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_IN : FFS_MTP_EP_IN, O_RDWR))); in openEndpoints()
92 PLOG(ERROR) << (ptp ? FFS_PTP_EP_IN : FFS_MTP_EP_IN) << ": cannot open bulk in ep"; in openEndpoints()
98 mBulkOut.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_OUT : FFS_MTP_EP_OUT, O_RDWR))); in openEndpoints()
100 PLOG(ERROR) << (ptp ? FFS_PTP_EP_OUT : FFS_MTP_EP_OUT) << ": cannot open bulk out ep"; in openEndpoints()
106 mIntr.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_INTR : FFS_MTP_EP_INTR, O_RDWR))); in openEndpoints()
108 PLOG(ERROR) << (ptp ? FFS_PTP_EP_INTR : FFS_MTP_EP_INTR) << ": cannot open intr ep"; in openEndpoints()
126 bool MtpFfsHandle::writeDescriptors(bool ptp) { in writeDescriptors() argument
127 return ::android::writeDescriptors(mControl, ptp); in writeDescriptors()
269 int MtpFfsHandle::start(bool ptp) { in start() argument
270 if (!openEndpoints(ptp)) in start()