/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpeg_ionbuf.c | 53 p_buffer->alloc.len = p_buffer->size; in buffer_allocate() 54 p_buffer->alloc.align = 4096; in buffer_allocate() 55 p_buffer->alloc.flags = ION_FLAG_CACHED; in buffer_allocate() 56 p_buffer->alloc.heap_id_mask = 0x1 << ION_IOMMU_HEAP_ID; in buffer_allocate() 65 p_buffer->alloc.len = (p_buffer->alloc.len + 4095) & (~4095); in buffer_allocate() 66 lrc = ioctl(p_buffer->ion_fd, ION_IOC_ALLOC, &p_buffer->alloc); in buffer_allocate() 69 p_buffer->alloc.len); in buffer_allocate() 73 p_buffer->ion_info_fd.handle = p_buffer->alloc.handle; in buffer_allocate() 83 l_buffer = mmap(NULL, p_buffer->alloc.len, PROT_READ | PROT_WRITE, in buffer_allocate()
|
D | mm_jpeg_ionbuf.h | 45 struct ion_allocation_data alloc; member
|
/device/lge/hammerhead/camera/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpeg_ionbuf.c | 53 p_buffer->alloc.len = p_buffer->size; in buffer_allocate() 54 p_buffer->alloc.align = 4096; in buffer_allocate() 55 p_buffer->alloc.flags = ION_FLAG_CACHED; in buffer_allocate() 56 p_buffer->alloc.heap_id_mask = 0x1 << ION_IOMMU_HEAP_ID; in buffer_allocate() 65 p_buffer->alloc.len = (p_buffer->alloc.len + 4095) & (~4095); in buffer_allocate() 66 lrc = ioctl(p_buffer->ion_fd, ION_IOC_ALLOC, &p_buffer->alloc); in buffer_allocate() 69 p_buffer->alloc.len); in buffer_allocate() 73 p_buffer->ion_info_fd.handle = p_buffer->alloc.handle; in buffer_allocate() 83 l_buffer = mmap(NULL, p_buffer->alloc.len, PROT_READ | PROT_WRITE, in buffer_allocate()
|
D | mm_jpeg_ionbuf.h | 45 struct ion_allocation_data alloc; member
|
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_ionbuf.c | 52 p_buffer->alloc.len = p_buffer->size; in buffer_allocate() 53 p_buffer->alloc.align = 4096; in buffer_allocate() 54 p_buffer->alloc.flags = (cached) ? ION_FLAG_CACHED : 0; in buffer_allocate() 55 p_buffer->alloc.heap_mask = 0x1 << ION_IOMMU_HEAP_ID; in buffer_allocate() 64 p_buffer->alloc.len = (p_buffer->alloc.len + 4095) & (~4095); in buffer_allocate() 65 lrc = ioctl(p_buffer->ion_fd, ION_IOC_ALLOC, &p_buffer->alloc); in buffer_allocate() 68 p_buffer->alloc.len); in buffer_allocate() 72 p_buffer->ion_info_fd.handle = p_buffer->alloc.handle; in buffer_allocate() 82 l_buffer = mmap(NULL, p_buffer->alloc.len, PROT_READ | PROT_WRITE, in buffer_allocate()
|
/device/generic/goldfish/opengl/system/GLESv1_enc/ |
D | gl_enc.cpp | 28 ptr = stream->alloc(packetSize); in glAlphaFunc_enc() 44 ptr = stream->alloc(packetSize); in glClearColor_enc() 62 ptr = stream->alloc(packetSize); in glClearDepthf_enc() 78 ptr = stream->alloc(packetSize); in glClipPlanef_enc() 95 ptr = stream->alloc(packetSize); in glColor4f_enc() 113 ptr = stream->alloc(packetSize); in glDepthRangef_enc() 129 ptr = stream->alloc(packetSize); in glFogf_enc() 146 ptr = stream->alloc(packetSize); in glFogfv_enc() 163 ptr = stream->alloc(packetSize); in glFrustumf_enc() 184 ptr = stream->alloc(packetSize); in glGetClipPlanef_enc() [all …]
|
/device/generic/goldfish/opengl/system/renderControl_enc/ |
D | renderControl_enc.cpp | 28 ptr = stream->alloc(packetSize); in rcGetRendererVersion_enc() 48 ptr = stream->alloc(packetSize); in rcGetEGLVersion_enc() 71 ptr = stream->alloc(packetSize); in rcQueryEGLString_enc() 94 ptr = stream->alloc(packetSize); in rcGetGLString_enc() 117 ptr = stream->alloc(packetSize); in rcGetNumConfigs_enc() 138 ptr = stream->alloc(packetSize); in rcGetConfigs_enc() 161 ptr = stream->alloc(packetSize); in rcChooseConfig_enc() 185 ptr = stream->alloc(packetSize); in rcGetFBParam_enc() 204 ptr = stream->alloc(packetSize); in rcCreateContext_enc() 225 ptr = stream->alloc(packetSize); in rcDestroyContext_enc() [all …]
|
/device/generic/goldfish/opengl/system/GLESv2_enc/ |
D | gl2_enc.cpp | 28 ptr = stream->alloc(packetSize); in glActiveTexture_enc() 43 ptr = stream->alloc(packetSize); in glAttachShader_enc() 60 ptr = stream->alloc(packetSize); in glBindAttribLocation_enc() 78 ptr = stream->alloc(packetSize); in glBindBuffer_enc() 94 ptr = stream->alloc(packetSize); in glBindFramebuffer_enc() 110 ptr = stream->alloc(packetSize); in glBindRenderbuffer_enc() 126 ptr = stream->alloc(packetSize); in glBindTexture_enc() 142 ptr = stream->alloc(packetSize); in glBlendColor_enc() 160 ptr = stream->alloc(packetSize); in glBlendEquation_enc() 175 ptr = stream->alloc(packetSize); in glBlendEquationSeparate_enc() [all …]
|
/device/lge/hammerhead/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 267 int QCamera3HeapMemory::alloc(int count, int size, int heap_id) in alloc() function in qcamera::QCamera3HeapMemory 324 struct ion_allocation_data alloc; in allocOneBuffer() local 334 memset(&alloc, 0, sizeof(alloc)); in allocOneBuffer() 335 alloc.len = size; in allocOneBuffer() 337 alloc.len = (alloc.len + 4095) & (~4095); in allocOneBuffer() 338 alloc.align = 4096; in allocOneBuffer() 339 alloc.flags = ION_FLAG_CACHED; in allocOneBuffer() 340 alloc.heap_id_mask = heap_id; in allocOneBuffer() 341 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocOneBuffer() 343 ALOGE("ION allocation for len %d failed: %s\n", alloc.len, in allocOneBuffer() [all …]
|
D | QCamera3Mem.h | 96 int alloc(int count, int size, int heap_id);
|
/device/asus/flo/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 262 int QCamera3HeapMemory::alloc(int count, int size, int heap_id) in alloc() function in qcamera::QCamera3HeapMemory 319 struct ion_allocation_data alloc; in allocOneBuffer() local 329 memset(&alloc, 0, sizeof(alloc)); in allocOneBuffer() 330 alloc.len = size; in allocOneBuffer() 332 alloc.len = (alloc.len + 4095) & (~4095); in allocOneBuffer() 333 alloc.align = 4096; in allocOneBuffer() 334 alloc.flags = ION_FLAG_CACHED; in allocOneBuffer() 335 alloc.heap_id_mask = heap_id; in allocOneBuffer() 336 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocOneBuffer() 338 ALOGE("ION allocation for len %d failed: %s\n", alloc.len, in allocOneBuffer() [all …]
|
D | QCamera3Mem.h | 96 int alloc(int count, int size, int heap_id);
|
/device/moto/shamu/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 295 int QCamera3HeapMemory::alloc(int count, int size, int heap_id) in alloc() function in qcamera::QCamera3HeapMemory 352 struct ion_allocation_data alloc; in allocOneBuffer() local 362 memset(&alloc, 0, sizeof(alloc)); in allocOneBuffer() 363 alloc.len = size; in allocOneBuffer() 365 alloc.len = (alloc.len + 4095) & (~4095); in allocOneBuffer() 366 alloc.align = 4096; in allocOneBuffer() 367 alloc.flags = ION_FLAG_CACHED; in allocOneBuffer() 368 alloc.heap_mask = heap_id; in allocOneBuffer() 369 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocOneBuffer() 371 ALOGE("ION allocation for len %d failed: %s\n", alloc.len, in allocOneBuffer() [all …]
|
/device/moto/shamu/camera/QCamera2/HAL/ |
D | QCameraMem.cpp | 241 int QCameraMemory::alloc(int count, int size, int heap_id, uint32_t secure_mode) in alloc() function in qcamera::QCameraMemory 331 struct ion_allocation_data alloc; in allocOneBuffer() local 341 memset(&alloc, 0, sizeof(alloc)); in allocOneBuffer() 342 alloc.len = size; in allocOneBuffer() 344 alloc.len = (alloc.len + 4095) & (~4095); in allocOneBuffer() 345 alloc.align = 4096; in allocOneBuffer() 347 alloc.flags = ION_FLAG_CACHED; in allocOneBuffer() 349 alloc.heap_mask = heap_id; in allocOneBuffer() 352 alloc.flags = ION_SECURE; in allocOneBuffer() 353 alloc.heap_mask = ION_HEAP(ION_CP_MM_HEAP_ID); in allocOneBuffer() [all …]
|
/device/asus/flo/camera/QCamera2/HAL/ |
D | QCameraMem.cpp | 242 int QCameraMemory::alloc(int count, int size, int heap_id) in alloc() function in qcamera::QCameraMemory 299 struct ion_allocation_data alloc; in allocOneBuffer() local 309 memset(&alloc, 0, sizeof(alloc)); in allocOneBuffer() 310 alloc.len = size; in allocOneBuffer() 312 alloc.len = (alloc.len + 4095) & (~4095); in allocOneBuffer() 313 alloc.align = 4096; in allocOneBuffer() 315 alloc.flags = ION_FLAG_CACHED; in allocOneBuffer() 317 alloc.heap_id_mask = heap_id; in allocOneBuffer() 318 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocOneBuffer() 325 ion_info_fd.handle = alloc.handle; in allocOneBuffer() [all …]
|
/device/lge/hammerhead/camera/QCamera2/HAL/ |
D | QCameraMem.cpp | 242 int QCameraMemory::alloc(int count, int size, int heap_id) in alloc() function in qcamera::QCameraMemory 299 struct ion_allocation_data alloc; in allocOneBuffer() local 309 memset(&alloc, 0, sizeof(alloc)); in allocOneBuffer() 310 alloc.len = size; in allocOneBuffer() 312 alloc.len = (alloc.len + 4095) & (~4095); in allocOneBuffer() 313 alloc.align = 4096; in allocOneBuffer() 315 alloc.flags = ION_FLAG_CACHED; in allocOneBuffer() 317 alloc.heap_id_mask = heap_id; in allocOneBuffer() 318 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocOneBuffer() 325 ion_info_fd.handle = alloc.handle; in allocOneBuffer() [all …]
|
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/ |
D | FixedBuffer.h | 24 alloc(m_bufferLen); 32 void * alloc(size_t size) { in alloc() function
|
D | GLDecoderContextData.h | 57 m_pointerData[loc].alloc(len); in storePointerData()
|
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_app.c | 115 struct ion_allocation_data alloc; in mm_app_allocate_ion_memory() local 126 memset(&alloc, 0, sizeof(alloc)); in mm_app_allocate_ion_memory() 127 alloc.len = buf->mem_info.size; in mm_app_allocate_ion_memory() 129 alloc.len = (alloc.len + 4095) & (~4095); in mm_app_allocate_ion_memory() 130 alloc.align = 4096; in mm_app_allocate_ion_memory() 131 alloc.flags = ION_FLAG_CACHED; in mm_app_allocate_ion_memory() 132 alloc.heap_id_mask = ion_type; in mm_app_allocate_ion_memory() 133 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in mm_app_allocate_ion_memory() 140 ion_info_fd.handle = alloc.handle; in mm_app_allocate_ion_memory() 148 alloc.len, in mm_app_allocate_ion_memory() [all …]
|
/device/asus/flo/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_app.c | 115 struct ion_allocation_data alloc; in mm_app_allocate_ion_memory() local 126 memset(&alloc, 0, sizeof(alloc)); in mm_app_allocate_ion_memory() 127 alloc.len = buf->mem_info.size; in mm_app_allocate_ion_memory() 129 alloc.len = (alloc.len + 4095) & (~4095); in mm_app_allocate_ion_memory() 130 alloc.align = 4096; in mm_app_allocate_ion_memory() 131 alloc.flags = ION_FLAG_CACHED; in mm_app_allocate_ion_memory() 132 alloc.heap_id_mask = ion_type; in mm_app_allocate_ion_memory() 133 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in mm_app_allocate_ion_memory() 140 ion_info_fd.handle = alloc.handle; in mm_app_allocate_ion_memory() 148 alloc.len, in mm_app_allocate_ion_memory() [all …]
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-test/src/ |
D | mm_qcamera_app.c | 44 extern uint8_t *mm_camera_do_mmap_ion(int ion_fd, struct ion_allocation_data *alloc, 482 cache_inv_data.length = app_bufs->alloc[index].len; in mm_stream_invalid_cache() 538 cache_inv_data.length = app_bufs->alloc[index].len; in mm_stream_clear_invalid_cache() 569 app_bufs->alloc[i].len = frame_offset_info->frame_len; in mm_stream_alloc_bufs() 570 app_bufs->alloc[i].flags = ION_FLAG_CACHED; in mm_stream_alloc_bufs() 571 app_bufs->alloc[i].heap_mask = in mm_stream_alloc_bufs() 573 app_bufs->alloc[i].align = 4096; in mm_stream_alloc_bufs() 576 &app_bufs->alloc[i], in mm_stream_alloc_bufs() 580 __func__,app_bufs->bufs[i].fd,app_bufs->alloc[i].len); in mm_stream_alloc_bufs() 582 app_bufs->bufs[i].frame_len = app_bufs->alloc[i].len; in mm_stream_alloc_bufs()
|
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg_ionbuf.h | 45 struct ion_allocation_data alloc; member
|
/device/generic/goldfish/opengl/host/include/libOpenglRender/ |
D | IOStream.h | 44 unsigned char *alloc(size_t len) { in alloc() function
|
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/ |
D | QualcommUsbCamera.cpp | 2672 struct ion_allocation_data alloc; in allocate_ion_memory() local 2682 memset(&alloc, 0, sizeof(alloc)); in allocate_ion_memory() 2683 alloc.len = mem_info->size; in allocate_ion_memory() 2685 alloc.len = (alloc.len + 4095) & (~4095); in allocate_ion_memory() 2686 alloc.align = 4096; in allocate_ion_memory() 2687 alloc.flags = ION_FLAG_CACHED; in allocate_ion_memory() 2688 alloc.heap_mask = ion_type; in allocate_ion_memory() 2689 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocate_ion_memory() 2696 ion_info_fd.handle = alloc.handle; in allocate_ion_memory() 2706 mem_info->size = alloc.len; in allocate_ion_memory()
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_app.c | 116 struct ion_allocation_data alloc; in mm_app_allocate_ion_memory() local 127 memset(&alloc, 0, sizeof(alloc)); in mm_app_allocate_ion_memory() 128 alloc.len = buf->mem_info.size; in mm_app_allocate_ion_memory() 130 alloc.len = (alloc.len + 4095) & (~4095); in mm_app_allocate_ion_memory() 131 alloc.align = 4096; in mm_app_allocate_ion_memory() 132 alloc.flags = ION_FLAG_CACHED; in mm_app_allocate_ion_memory() 133 alloc.heap_mask = ion_type; in mm_app_allocate_ion_memory() 134 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in mm_app_allocate_ion_memory() 141 ion_info_fd.handle = alloc.handle; in mm_app_allocate_ion_memory() 149 alloc.len, in mm_app_allocate_ion_memory() [all …]
|