Lines Matching full:size
137 size_t size = bpr * h;
139 size = (size + (PAGE_SIZE-1)) & ~(PAGE_SIZE-1);
141 int fd = ashmem_create_region("sw-gralloc-buffer", size);
143 LOGE("ashmem_create_region(size=%d) failed (%s)",
144 size, strerror(-errno));
159 void* base = mmap(0, size, prot, MAP_SHARED, fd, 0);
161 LOGE("alloc mmap(fd=%d, size=%d, prot=%x) failed (%s)",
162 fd, size, prot, strerror(-errno));
169 hnd->size = size;
181 munmap((void*)hnd->base, hnd->size);
193 void* base = mmap(0, hnd->size, hnd->prot, MAP_SHARED, hnd->fd, 0);
195 LOGE("registerBuffer mmap(fd=%d, size=%d, prot=%x) failed (%s)",
196 hnd->fd, hnd->size, hnd->prot, strerror(-errno));
208 munmap((void*)hnd->base, hnd->size);