Lines Matching defs:rc
243 int rc = OK;
260 rc = allocOneBuffer(mMemInfo[i], heap_id, size, m_bCached,
262 if (rc < 0) {
269 rc = mMemoryPool->allocateBuffer(mMemInfo[i],
275 if (rc < 0) {
285 return rc;
329 int rc = OK;
358 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc);
359 if (rc < 0) {
366 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd);
367 if (rc < 0) {
524 int rc = NAME_NOT_FOUND;
538 rc = NO_ERROR;
543 return rc;
571 int rc = NO_ERROR;
575 rc = findBufferLocked(memInfo, heap_id, size, cached, streamType);
576 if (NAME_NOT_FOUND == rc ) {
578 rc = QCameraMemory::allocOneBuffer(memInfo, heap_id, size, cached,
584 return rc;
651 int rc = -1;
655 rc = alloc(count, size, heap_mask, SECURE);
656 if (rc < 0)
657 return rc;
660 rc = alloc(count, size, heap_mask, NON_SECURE);
661 if (rc < 0)
662 return rc;
681 if (rc == 0) {
703 int rc = alloc(count, size, heap_mask, NON_SECURE);
704 if (rc < 0)
705 return rc;
882 int rc = alloc(count, size, heap_mask, isSecure);
883 if (rc < 0)
884 return rc;
913 int rc = alloc(count, size, heap_mask, NON_SECURE);
914 if (rc < 0)
915 return rc;
1099 int rc = QCameraStreamMemory::allocate(count, size, isSecure);
1100 if (rc < 0)
1101 return rc;
1142 int rc = QCameraStreamMemory::allocateMore(count, size);
1143 if (rc < 0)
1144 return rc;
1441 ALOGE("%s: set_usage rc = %d", __func__, err);