Home
last modified time | relevance | path

Searched refs:shared_fd (Results 1 – 8 of 8) sorted by relevance

/device/amlogic/yukawa/hal/gralloc/
Dmali_gralloc_ion.cpp157 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
454shared_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/
Dmali_gralloc_ion.cpp199 …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
529shared_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/
Dsubprocess.cpp184 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()
Dsubprocess.h124 bool BuildParameter(std::stringstream* stream, SharedFD shared_fd);
190 bool RedirectStdIO(Subprocess::StdIOChannel channel, SharedFD shared_fd);
/device/linaro/hikey/gralloc/
Dalloc_device.cpp175 …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/
DAndroid.bp20 "shared_fd.cpp",
48 "shared_fd.cpp",
/device/google/cuttlefish/host/commands/kernel_log_monitor/
Dmain.cc55 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/
Dmain.cpp49 auto shared_fd = cuttlefish::SharedFD::Dup(fd); in ServerFdsFromCmdline() local
51 shared_fds.push_back(shared_fd); in ServerFdsFromCmdline()