Home | History | Annotate | Download | only in gralloc

Lines Matching refs:hnd

42     private_handle_t* hnd = (private_handle_t*)handle;
44 void* mappedAddress = mmap(0, hnd->size, PROT_READ|PROT_WRITE, MAP_SHARED,
45 hnd->fd, 0);
50 ALOGV("%s: base %p %d %d %d %d\n", __func__, mappedAddress, hnd->size,
51 hnd->width, hnd->height, hnd->stride);
52 hnd->base = mappedAddress;
58 private_handle_t* hnd = (private_handle_t*)handle;
60 if (!hnd->base)
63 if (munmap(hnd->base, hnd->size) < 0) {
65 hnd->base, hnd->size);
67 ALOGV("%s: base %p %d %d %d %d\n", __func__, hnd->base, hnd->size,
68 hnd->width, hnd->height, hnd->stride);
69 hnd->base = 0;
75 int grallocMap(gralloc_module_t const* module, private_handle_t *hnd)
77 return gralloc_map(module, hnd);
80 int grallocUnmap(gralloc_module_t const* module, private_handle_t *hnd)
82 return gralloc_unmap(module, hnd);
106 private_handle_t* hnd = (private_handle_t*)handle;
107 ALOGV("%s: base %p %d %d %d %d\n", __func__, hnd->base, hnd->size,
108 hnd->width, hnd->height, hnd->stride);
111 ret = ion_import(getIonFd(module), hnd->fd, &hnd->handle);
113 ALOGE("error importing handle %d %x\n", hnd->fd, hnd->format);
114 if (hnd->fd1 >= 0) {
115 ret = ion_import(getIonFd(module), hnd->fd1, &hnd->handle1);
117 ALOGE("error importing handle1 %d %x\n", hnd->fd1, hnd->format);
119 if (hnd->fd2 >= 0) {
120 ret = ion_import(getIonFd(module), hnd->fd2, &hnd->handle2);
122 ALOGE("error importing handle2 %d %x\n", hnd->fd2, hnd->format);
134 private_handle_t* hnd = (private_handle_t*)handle;
135 ALOGV("%s: base %p %d %d %d %d\n", __func__, hnd->base, hnd->size,
136 hnd->width, hnd->height, hnd->stride);
140 if (hnd->handle)
141 ion_free(getIonFd(module), hnd->handle);
142 if (hnd->handle1)
143 ion_free(getIonFd(module), hnd->handle1);
144 if (hnd->handle2)
145 ion_free(getIonFd(module), hnd->handle2);
166 private_handle_t* hnd = (private_handle_t*)handle;
167 if (!hnd->base)
168 gralloc_map(module, hnd);
169 *vaddr = (void*)hnd->base;
178 private_handle_t* hnd = (private_handle_t*)handle;
179 ion_sync_fd(getIonFd(module), hnd->fd);
180 if (hnd->fd1 >= 0)
181 ion_sync_fd(getIonFd(module), hnd->fd1);
182 if (hnd->fd2 >= 0)
183 ion_sync_fd(getIonFd(module), hnd->fd2);