Home
last modified time | relevance | path

Searched refs:PAGE_SIZE (Results 1 – 25 of 25) sorted by relevance

/device/amlogic/yukawa/hal/gralloc/
Dgralloc_buffer_priv.cpp55 hnd->share_attr_fd = ashmem_create_region("gralloc_shared_attr", PAGE_SIZE); in gralloc_buffer_attr_allocate()
76 hnd->attr_base = mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, hnd->share_attr_fd, 0); in gralloc_buffer_attr_allocate()
86 memset(hnd->attr_base, 0xff, PAGE_SIZE); in gralloc_buffer_attr_allocate()
87 munmap(hnd->attr_base, PAGE_SIZE); in gralloc_buffer_attr_allocate()
135 munmap(hnd->attr_base, PAGE_SIZE); in gralloc_buffer_attr_free()
Dgralloc_helper.h48 return (x + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1); in round_up_to_page_size()
Dgralloc_buffer_priv.h85 hnd->attr_base = mmap(NULL, PAGE_SIZE, prot_flags, MAP_SHARED, hnd->share_attr_fd, 0); in gralloc_buffer_attr_map()
115 if (munmap(hnd->attr_base, PAGE_SIZE) == 0) in gralloc_buffer_attr_unmap()
/device/linaro/hikey/gralloc960/
Dgralloc_buffer_priv.cpp55 hnd->share_attr_fd = ashmem_create_region("gralloc_shared_attr", PAGE_SIZE); in gralloc_buffer_attr_allocate()
76 hnd->attr_base = mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, hnd->share_attr_fd, 0); in gralloc_buffer_attr_allocate()
86 memset(hnd->attr_base, 0xff, PAGE_SIZE); in gralloc_buffer_attr_allocate()
87 munmap(hnd->attr_base, PAGE_SIZE); in gralloc_buffer_attr_allocate()
135 munmap(hnd->attr_base, PAGE_SIZE); in gralloc_buffer_attr_free()
Dgralloc_helper.h48 return (x + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1); in round_up_to_page_size()
Dgralloc_buffer_priv.h86 hnd->attr_base = mmap(NULL, PAGE_SIZE, prot_flags, MAP_SHARED, hnd->share_attr_fd, 0); in gralloc_buffer_attr_map()
116 if (munmap(hnd->attr_base, PAGE_SIZE) == 0) in gralloc_buffer_attr_unmap()
/device/google/bonito/sdm710/kernel-headers/linux/
Dspcom.h25 #ifndef PAGE_SIZE
26 #define PAGE_SIZE 4096 macro
30 #define SPCOM_GET_NEXT_REQUEST_SIZE (PAGE_SIZE - 1)
/device/google/crosshatch/sdm845/original-kernel-headers/linux/
Dspcom.h20 #ifndef PAGE_SIZE
21 #define PAGE_SIZE 4096 macro
48 #define SPCOM_GET_NEXT_REQUEST_SIZE (PAGE_SIZE-1)
/device/google/crosshatch/sdm845/kernel-headers/linux/
Dspcom.h25 #ifndef PAGE_SIZE
26 #define PAGE_SIZE 4096 macro
30 #define SPCOM_GET_NEXT_REQUEST_SIZE (PAGE_SIZE - 1)
/device/google/bonito/sdm710/original-kernel-headers/linux/
Dspcom.h20 #ifndef PAGE_SIZE
21 #define PAGE_SIZE 4096 macro
48 #define SPCOM_GET_NEXT_REQUEST_SIZE (PAGE_SIZE-1)
/device/google/coral-kernel/sm8150/kernel-headers/linux/
Dspcom.h25 #ifndef PAGE_SIZE
26 #define PAGE_SIZE 4096 macro
30 #define SPCOM_GET_NEXT_REQUEST_SIZE (PAGE_SIZE - 1)
/device/google/coral-kernel/sm8150/original-kernel-headers/linux/
Dspcom.h21 #ifndef PAGE_SIZE
22 #define PAGE_SIZE 4096 macro
48 #define SPCOM_GET_NEXT_REQUEST_SIZE (PAGE_SIZE-1)
/device/linaro/hikey/gralloc/
Dgralloc_helper.h26 return (x + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1); in round_up_to_page_size()
/device/google/cuttlefish/guest/hals/gralloc/legacy/
Dgralloc.cpp46 return (x + (PAGE_SIZE-1)) & ~(PAGE_SIZE-1); in roundUpToPageSize()
69 size += PAGE_SIZE; in gralloc_alloc_buffer()
Dregion_registry.cpp199 uintptr_t addr = base + hnd->total_size - PAGE_SIZE; in reference_region()
200 if (mprotect((void*)addr, PAGE_SIZE, PROT_NONE) == -1) { in reference_region()
/device/generic/goldfish-opengl/system/OpenglSystemCommon/
DVirtioGpuStream.cpp29 #ifndef PAGE_SIZE
30 #define PAGE_SIZE 0x1000 macro
37 #define MAX_CMDRESPBUF_SIZE (10*PAGE_SIZE)
DHostConnection.cpp227 res_create.size = align_up(bpp * width * height, PAGE_SIZE); in createColorBuffer()
/device/generic/goldfish-opengl/shared/GoldfishAddressSpace/include/
Dgoldfish_address_space_host.impl183 m_mmaped_ptr = (void*)(uintptr_t)(host_addr & (~(PAGE_SIZE - 1)));
191 return reinterpret_cast<char *>(m_mmaped_ptr) + (m_host_addr & (PAGE_SIZE - 1));
371 return (void*)(((char*)res) + (uintptr_t)(pgoff & (PAGE_SIZE - 1)));
Dgoldfish_address_space_fuchsia.impl201 return reinterpret_cast<char *>(m_mmaped_ptr) + (m_host_addr & (PAGE_SIZE - 1));
449 return (void*)(((char*)ptr) + (uintptr_t)(pgoff & (PAGE_SIZE - 1)));
454 (zx_vaddr_t)(((uintptr_t)ptr) & (uintptr_t)(~(PAGE_SIZE - 1))),
Dgoldfish_address_space_android.impl282 return reinterpret_cast<char *>(m_mmaped_ptr) + (m_host_addr & (PAGE_SIZE - 1));
515 return (void*)(((char*)res) + (uintptr_t)(pgoff & (PAGE_SIZE - 1)));
519 void* pagePtr = (void*)(((uintptr_t)ptr) & ~(PAGE_SIZE - 1));
/device/linaro/dragonboard/qcom/rmtfs/
Dsharedmem.c202 #define PAGE_SIZE 4096 macro
209 char val[PAGE_SIZE]; in rmtfs_mem_open_rfsa()
/device/generic/goldfish-opengl/
DBUILD.gn102 "PAGE_SIZE=4096",
/device/generic/opengl-transport/host/libs/virglrenderer/
DAVDVirglRenderer.cpp68 #ifndef PAGE_SIZE
69 #define PAGE_SIZE 0x1000 macro
72 #define MAX_CMDRESPBUF_SIZE (10 * PAGE_SIZE)
/device/generic/goldfish-opengl/system/gralloc/
Dgralloc_old.cpp831 ashmem_size = (ashmem_size + (PAGE_SIZE-1)) & ~(PAGE_SIZE-1); in gralloc_alloc()
/device/generic/goldfish-opengl/system/vulkan_enc/
DResourceTracker.cpp2125 directMappedAddr += (uint64_t)(uintptr_t)(hvaSizeId[0]) & (PAGE_SIZE - 1); in getOrAllocateHostMemBlockLocked()