Home | History | Annotate | Download | only in gralloc960

Lines Matching defs:shared_fd

157 	int shared_fd, ret;
166 * step 2: ion_share from ion_hnd and get shared_fd
168 * step 4: when we need to free this ion buffer, just close the shared_fd,
192 ret = ion_share(ion_fd, ion_hnd, &shared_fd);
197 shared_fd = -1;
205 close(shared_fd);
206 shared_fd = -1;
253 return shared_fd;
401 int shared_fd, ret, ion_flags = 0;
454 shared_fd = alloc_from_ion_heap(m->ion_client, max_bufDescriptor->size, heap_mask, ion_flags, &min_pgsz);
462 ret = ion_alloc_fd(m->ion_client, max_bufDescriptor->size, 0, heap, 0, &(shared_fd));
471 if (shared_fd < 0)
484 tmp_fd = dup(shared_fd);
495 tmp_fd = shared_fd;
533 shared_fd = alloc_from_ion_heap(m->ion_client, bufDescriptor->size, heap_mask, ion_flags, &min_pgsz);
541 ret = ion_alloc_fd(m->ion_client, bufDescriptor->size, 0, heap, 0, &(shared_fd));
551 if (shared_fd < 0)
563 bufDescriptor->consumer_usage, bufDescriptor->producer_usage, shared_fd, bufDescriptor->hal_format,