/device/amlogic/yukawa/hal/gralloc/ |
D | mali_gralloc_ion.cpp | 157 int shared_fd, ret; in alloc_from_ion_heap() local 192 ret = ion_share(ion_fd, ion_hnd, &shared_fd); in alloc_from_ion_heap() 197 shared_fd = -1; in alloc_from_ion_heap() 205 close(shared_fd); in alloc_from_ion_heap() 206 shared_fd = -1; in alloc_from_ion_heap() 253 return shared_fd; in alloc_from_ion_heap() 401 int shared_fd, ret, ion_flags = 0; in mali_gralloc_ion_allocate() local 454 …shared_fd = alloc_from_ion_heap(m->ion_client, max_bufDescriptor->size, heap_mask, ion_flags, &min… in mali_gralloc_ion_allocate() 462 ret = ion_alloc_fd(m->ion_client, max_bufDescriptor->size, 0, heap, 0, &(shared_fd)); in mali_gralloc_ion_allocate() 471 if (shared_fd < 0) in mali_gralloc_ion_allocate() [all …]
|
/device/linaro/hikey/gralloc960/ |
D | mali_gralloc_ion.cpp | 199 …t alloc_ion_fd(int ion_fd, size_t size, unsigned int heap_mask, unsigned int flags, int *shared_fd) in alloc_ion_fd() argument 209 return dma_heap_alloc(fd, size, flg, shared_fd); in alloc_ion_fd() 219 return ion_alloc_fd(ion_fd, size, 0, heap, flags, shared_fd); in alloc_ion_fd() 225 int shared_fd, ret; in alloc_from_ion_heap() local 233 ret = alloc_ion_fd(ion_fd, size, heap_mask, flags, &(shared_fd)); in alloc_from_ion_heap() 248 ret = alloc_ion_fd(ion_fd, size, heap_mask, flags, &(shared_fd)); in alloc_from_ion_heap() 296 return shared_fd; in alloc_from_ion_heap() 493 int shared_fd, ret, ion_flags = 0; in mali_gralloc_ion_allocate() local 529 …shared_fd = alloc_from_ion_heap(m->ion_client, max_bufDescriptor->size, heap_mask, ion_flags, &min… in mali_gralloc_ion_allocate() 531 if (shared_fd < 0) in mali_gralloc_ion_allocate() [all …]
|
/device/google/cuttlefish/common/libs/utils/ |
D | subprocess.cpp | 184 bool Command::BuildParameter(std::stringstream* stream, SharedFD shared_fd) { in BuildParameter() argument 186 if (inherited_fds_.count(shared_fd)) { in BuildParameter() 187 fd = inherited_fds_[shared_fd]; in BuildParameter() 189 fd = shared_fd->Fcntl(F_DUPFD_CLOEXEC, 3); in BuildParameter() 191 LOG(ERROR) << "Could not acquire a new file descriptor: " << shared_fd->StrError(); in BuildParameter() 194 inherited_fds_[shared_fd] = fd; in BuildParameter() 201 SharedFD shared_fd) { in RedirectStdIO() argument 202 if (!shared_fd->IsOpen()) { in RedirectStdIO() 210 auto dup_fd = shared_fd->Fcntl(F_DUPFD_CLOEXEC, 3); in RedirectStdIO() 212 LOG(ERROR) << "Could not acquire a new file descriptor: " << shared_fd->StrError(); in RedirectStdIO()
|
D | subprocess.h | 124 bool BuildParameter(std::stringstream* stream, SharedFD shared_fd); 190 bool RedirectStdIO(Subprocess::StdIOChannel channel, SharedFD shared_fd);
|
/device/linaro/hikey/gralloc/ |
D | alloc_device.cpp | 175 …t alloc_ion_fd(int ion_fd, size_t size, unsigned int heap_mask, unsigned int flags, int *shared_fd) in alloc_ion_fd() argument 185 return dma_heap_alloc(fd, size, flg, shared_fd); in alloc_ion_fd() 195 return ion_alloc_fd(ion_fd, size, 0, heap, flags, shared_fd); in alloc_ion_fd() 205 int shared_fd; in gralloc_alloc_buffer() local 226 ret = alloc_ion_fd(m->ion_client, size, heap_mask, 0, &shared_fd); in gralloc_alloc_buffer() 241 cpu_ptr = mmap(NULL, size, map_mask, MAP_SHARED, shared_fd, 0); in gralloc_alloc_buffer() 247 close(shared_fd); in gralloc_alloc_buffer() 257 hnd->share_fd = shared_fd; in gralloc_alloc_buffer() 266 close(shared_fd); in gralloc_alloc_buffer()
|
/device/google/cuttlefish/common/libs/fs/ |
D | Android.bp | 20 "shared_fd.cpp", 48 "shared_fd.cpp",
|
/device/google/cuttlefish/host/commands/kernel_log_monitor/ |
D | main.cc | 55 auto shared_fd = cuttlefish::SharedFD::Dup(fd); in SubscribersFromCmdline() local 57 shared_fds.push_back(shared_fd); in SubscribersFromCmdline()
|
/device/google/cuttlefish/host/commands/modem_simulator/ |
D | main.cpp | 49 auto shared_fd = cuttlefish::SharedFD::Dup(fd); in ServerFdsFromCmdline() local 51 shared_fds.push_back(shared_fd); in ServerFdsFromCmdline()
|