Searched defs:size (Results 76 - 100 of 269) sorted by path

1234567891011

/hardware/qcom/display/msm8960/libqservice/
H A DIQService.cpp80 static void getProcName(int pid, char *buf, int size);
150 static void getProcName(int pid, char *buf, int size) { argument
152 snprintf(buf, size, "/proc/%d/cmdline", pid);
157 int len = read(fd, buf, size - 1);
/hardware/qcom/display/msm8974/libcopybit/
H A Dcopybit_c2d.cpp371 rc = LINK_c2dMapAddr(handle->fd, (void*)handle->base, handle->size,
457 int aligned_width = 0, size = 0; local
466 size = aligned_width * aligned_height;
467 yuvInfo.plane1_offset = ALIGN(size,8192);
955 /* Function to get the required size for a particular format, inorder for C2D to perform
960 size_t size = 0; local
968 size = ALIGN((aligned_w*h), 2048) +
970 size = ALIGN(size, 4096);
975 size
[all...]
/hardware/qcom/display/msm8974/libgralloc/
H A Dalloc_controller.cpp275 size_t size; local
285 size = alignedw * alignedh * 4;
288 size = alignedw * alignedh * 3;
292 size = alignedw * alignedh * 2;
297 size = ALIGN(alignedw*alignedh, 4096);
298 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096);
304 size = ALIGN( alignedw * alignedh, 8192);
305 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192);
313 size = alignedw*alignedh +
315 size
[all...]
H A Dframebuffer.cpp200 //adreno needs 4k aligned offsets. Max hole size is 4096-1
201 int size = roundUpToPageSize(info.yres * info.xres * local
207 int numberOfBuffers = (int)(finfo.smem_len/size);
223 info.yres_virtual = (size * numberOfBuffers) / line_length;
227 if (info.yres_virtual < ((size * 2) / line_length) ) {
229 info.yres_virtual = size / line_length;
H A Dgpu.cpp54 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, argument
60 size = roundUpToPageSize(size);
74 size = ALIGN(size, data.align);
78 data.size = size;
88 eData.size = ROUND_UP_PAGESIZE(sizeof(MetaData_t));
151 private_handle_t *hnd = new private_handle_t(data.fd, size, flags,
181 int gpu_context_t::gralloc_alloc_framebuffer_locked(size_t size, in argument
241 gralloc_alloc_framebuffer(size_t size, int usage, buffer_handle_t* pHandle) argument
337 unsigned long size = ROUND_UP_PAGESIZE(sizeof(MetaData_t)); local
[all...]
H A Dgralloc_priv.h172 int size; member in struct:private_handle_t
189 private_handle_t(int fd, int size, int flags, int bufferType, argument
193 flags(flags), size(size), offset(0), bufferType(bufferType),
H A Dionalloc.cpp74 ionAllocData.len = data.size;
122 ALOGD_IF(DEBUG, "ion: Allocated buffer base:%p size:%d fd:%d",
128 int IonAlloc::free_buffer(void* base, size_t size, int offset, int fd) argument
131 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%d fd:%d",
132 base, size, fd);
139 err = unmap_buffer(base, size, offset);
144 int IonAlloc::map_buffer(void **pBase, size_t size, int offset, int fd) argument
154 base = mmap(0, size, PROT_READ| PROT_WRITE,
162 ALOGD_IF(DEBUG, "ion: Mapped buffer base:%p size:%d offset:%d fd:%d",
163 base, size, offse
168 unmap_buffer(void *base, size_t size, int offset) argument
180 clean_buffer(void *base, size_t size, int offset, int fd, int op) argument
[all...]
H A Dmapper.cpp65 size_t size = hnd->size; local
67 int err = memalloc->map_buffer(&mappedAddress, size,
78 size = ROUND_UP_PAGESIZE(sizeof(MetaData_t));
79 err = memalloc->map_buffer(&mappedAddress, size,
99 size_t size = hnd->size; local
102 err = memalloc->unmap_buffer(base, size, hnd->offset);
107 size = ROUND_UP_PAGESIZE(sizeof(MetaData_t));
108 err = memalloc->unmap_buffer(base, size, hn
320 size_t size = va_arg(args, size_t); local
[all...]
H A Dmemalloc.h47 size_t size; member in struct:gralloc::alloc_data
64 virtual int free_buffer(void *base, size_t size,
68 virtual int map_buffer(void **pBase, size_t size,
72 virtual int unmap_buffer(void *base, size_t size,
76 virtual int clean_buffer(void *base, size_t size,
/hardware/qcom/display/msm8974/libhwcomposer/
H A Dhwc_ad.cpp186 int tmpW, tmpH, size; local
194 size = getBufferSizeAndDimensions(hnd->width, hnd->height,
197 if(!wb->configureMemory(size, isSecureBuffer(hnd))) {
/hardware/qcom/display/msm8974/libmemtrack/
H A Dkgsl.c84 unsigned long size; local
93 * gpuaddr useraddr size id flags type usage sglen
97 &uaddr, &size, line_type);
129 accounted_size += size;
135 unaccounted_size += size;
138 unaccounted_size += size;
/hardware/qcom/display/msm8974/liboverlay/
H A DoverlayRotator.h44 rotator memory to be always max size, irrespctive of source resolution then
57 uint32_t size() const { return m.bufSz(); } function in struct:overlay::RotMem::Mem
152 /* Calculates the rotator's o/p buffer size post the transform calcs and
204 /* Calculates the rotator's o/p buffer size post the transform calcs and
207 // Calculate the compressed o/p buffer size for BWC
237 * Expects a NULL terminated buffer of big enough size.
H A DoverlayUtils.h193 Whf() : w(0), h(0), format(0), size(0) {}
195 w(wi), h(he), format(f), size(0) {}
197 w(wi), h(he), format(f), size(s) {}
198 // FIXME not comparing size at the moment
210 uint32_t size; member in struct:overlay::utils::Whf
553 w, h, format, size);
H A DoverlayWriteback.cpp37 bool WritebackMem::manageMem(uint32_t size, bool isSecure) { argument
38 if(mBuf.bufSz() == size) {
47 return alloc(size, isSecure);
50 bool WritebackMem::alloc(uint32_t size, bool isSecure) { argument
51 if(!mBuf.open(NUM_BUFS, size, isSecure)){
62 mOffsets[i] = i * size;
137 bool Writeback::configureMemory(uint32_t size, bool isSecure) { argument
138 if(!mWbMem.manageMem(size, isSecure)) {
/hardware/qcom/display/msm8974/libqdutils/
H A DqdMetaData.cpp50 unsigned long size = ROUND_UP_PAGESIZE(sizeof(MetaData_t)); local
51 void *base = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED,
88 if(munmap(base, size))
/hardware/qcom/display/msm8974/libqservice/
H A DIQService.cpp80 static void getProcName(int pid, char *buf, int size);
150 static void getProcName(int pid, char *buf, int size) { argument
152 snprintf(buf, size, "/proc/%d/cmdline", pid);
157 int len = read(fd, buf, size - 1);
/hardware/qcom/display/msm8x26/libcopybit/
H A Dcopybit_c2d.cpp354 rc = LINK_c2dMapAddr(handle->fd, (void*)handle->base, handle->size,
446 int aligned_width = 0, size = 0; local
455 size = aligned_width * aligned_height;
456 yuvInfo.plane1_offset = ALIGN(size,8192);
936 /* Function to get the required size for a particular format, inorder for C2D to perform
941 size_t size = 0; local
949 size = ALIGN((aligned_w*h), 2048) +
951 size = ALIGN(size, 4096);
956 size
[all...]
/hardware/qcom/display/msm8x26/libgralloc/
H A Dalloc_controller.cpp256 size_t size; local
264 size = alignedw * alignedh * 4;
267 size = alignedw * alignedh * 3;
271 size = alignedw * alignedh * 2;
276 size = ALIGN(alignedw*alignedh, 4096);
277 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096);
283 size = ALIGN( alignedw * alignedh, 8192);
284 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192);
295 size = ALIGN(alignedw*alignedh, 2048) +
298 size
[all...]
H A Dframebuffer.cpp200 //adreno needs 4k aligned offsets. Max hole size is 4096-1
201 int size = roundUpToPageSize(info.yres * info.xres * local
207 int numberOfBuffers = (int)(finfo.smem_len/size);
223 info.yres_virtual = (size * numberOfBuffers) / line_length;
227 if (info.yres_virtual < ((size * 2) / line_length) ) {
229 info.yres_virtual = size / line_length;
H A Dgpu.cpp55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, argument
61 size = roundUpToPageSize(size);
75 size = ALIGN(size, data.align);
77 data.size = size;
87 eData.size = ROUND_UP_PAGESIZE(sizeof(MetaData_t));
145 private_handle_t *hnd = new private_handle_t(data.fd, size, flags,
175 int gpu_context_t::gralloc_alloc_framebuffer_locked(size_t size, in argument
235 gralloc_alloc_framebuffer(size_t size, int usage, buffer_handle_t* pHandle) argument
322 unsigned long size = ROUND_UP_PAGESIZE(sizeof(MetaData_t)); local
[all...]
H A Dgralloc_priv.h173 int size; member in struct:private_handle_t
190 private_handle_t(int fd, int size, int flags, int bufferType, argument
194 flags(flags), size(size), offset(0), bufferType(bufferType),
H A Dionalloc.cpp74 ionAllocData.len = data.size;
114 clean_buffer(base, data.size, data.offset, fd_data.fd,
121 ALOGD_IF(DEBUG, "ion: Allocated buffer base:%p size:%d fd:%d",
127 int IonAlloc::free_buffer(void* base, size_t size, int offset, int fd) argument
130 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%d fd:%d",
131 base, size, fd);
138 err = unmap_buffer(base, size, offset);
143 int IonAlloc::map_buffer(void **pBase, size_t size, int offset, int fd) argument
153 base = mmap(0, size, PROT_READ| PROT_WRITE,
161 ALOGD_IF(DEBUG, "ion: Mapped buffer base:%p size
167 unmap_buffer(void *base, size_t size, int offset) argument
179 clean_buffer(void *base, size_t size, int offset, int fd, int op) argument
[all...]
H A Dmapper.cpp65 size_t size = hnd->size; local
67 int err = memalloc->map_buffer(&mappedAddress, size,
78 size = ROUND_UP_PAGESIZE(sizeof(MetaData_t));
79 err = memalloc->map_buffer(&mappedAddress, size,
99 size_t size = hnd->size; local
102 err = memalloc->unmap_buffer(base, size, hnd->offset);
107 size = ROUND_UP_PAGESIZE(sizeof(MetaData_t));
108 err = memalloc->unmap_buffer(base, size, hn
317 size_t size = va_arg(args, size_t); local
[all...]
H A Dmemalloc.h47 size_t size; member in struct:gralloc::alloc_data
64 virtual int free_buffer(void *base, size_t size,
68 virtual int map_buffer(void **pBase, size_t size,
72 virtual int unmap_buffer(void *base, size_t size,
76 virtual int clean_buffer(void *base, size_t size,
/hardware/qcom/display/msm8x26/liboverlay/
H A DoverlayRotator.h44 rotator memory to be always max size, irrespctive of source resolution then
57 uint32_t size() const { return m.bufSz(); } function in struct:overlay::RotMem::Mem
150 /* Calculates the rotator's o/p buffer size post the transform calcs and
201 /* Calculates the rotator's o/p buffer size post the transform calcs and
232 * Expects a NULL terminated buffer of big enough size.

Completed in 185 milliseconds

1234567891011