Lines Matching refs:ptp
84 bool MtpFfsHandle::openEndpoints(bool ptp) { in openEndpoints() argument
86 mBulkIn.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_IN : FFS_MTP_EP_IN, O_RDWR))); in openEndpoints()
88 PLOG(ERROR) << (ptp ? FFS_PTP_EP_IN : FFS_MTP_EP_IN) << ": cannot open bulk in ep"; in openEndpoints()
94 mBulkOut.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_OUT : FFS_MTP_EP_OUT, O_RDWR))); in openEndpoints()
96 PLOG(ERROR) << (ptp ? FFS_PTP_EP_OUT : FFS_MTP_EP_OUT) << ": cannot open bulk out ep"; in openEndpoints()
102 mIntr.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_INTR : FFS_MTP_EP_INTR, O_RDWR))); in openEndpoints()
104 PLOG(ERROR) << (ptp ? FFS_PTP_EP_INTR : FFS_MTP_EP_INTR) << ": cannot open intr ep"; in openEndpoints()
122 bool MtpFfsHandle::writeDescriptors(bool ptp) { in writeDescriptors() argument
123 return ::android::writeDescriptors(mControl, ptp); in writeDescriptors()
266 int MtpFfsHandle::start(bool ptp) { in start() argument
267 if (!openEndpoints(ptp)) in start()