Home
last modified time | relevance | path

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

12

/device/lge/hammerhead/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_ionbuf.c53 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()
Dmm_jpeg_ionbuf.h44 struct ion_allocation_data alloc; member
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_ionbuf.c53 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()
Dmm_jpeg_ionbuf.h44 struct ion_allocation_data alloc; member
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_ionbuf.c52 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/lge/mako/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera_helper.c105 uint8_t *mm_camera_do_mmap_ion(int ion_fd, struct ion_allocation_data *alloc, in mm_camera_do_mmap_ion() argument
113 alloc->len = (alloc->len + 4095) & (~4095); in mm_camera_do_mmap_ion()
115 rc = ioctl(ion_fd, ION_IOC_ALLOC, alloc); in mm_camera_do_mmap_ion()
121 ion_info_fd->handle = alloc->handle; in mm_camera_do_mmap_ion()
257 uint8_t *mm_camera_do_mmap_ion(int ion_fd, struct ion_allocation_data *alloc, in mm_camera_do_mmap_ion() argument
265 alloc->len = (alloc->len + 4095) & (~4095); in mm_camera_do_mmap_ion()
266 alloc->align = 4096; in mm_camera_do_mmap_ion()
268 rc = ioctl(ion_fd, ION_IOC_ALLOC, alloc); in mm_camera_do_mmap_ion()
274 ion_info_fd->handle = alloc->handle; in mm_camera_do_mmap_ion()
282 alloc->len, in mm_camera_do_mmap_ion()
/device/generic/goldfish/opengl/system/GLESv1_enc/
Dgl_enc.cpp28 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/lge/mako/camera/mm-camera-interface/
Dmm_camera_helper.c105 uint8_t *mm_camera_do_mmap_ion(int ion_fd, struct ion_allocation_data *alloc, in mm_camera_do_mmap_ion() argument
113 alloc->len = (alloc->len + 4095) & (~4095); in mm_camera_do_mmap_ion()
115 rc = ioctl(ion_fd, ION_IOC_ALLOC, alloc); in mm_camera_do_mmap_ion()
121 ion_info_fd->handle = alloc->handle; in mm_camera_do_mmap_ion()
129 alloc->len, in mm_camera_do_mmap_ion()
275 uint8_t *mm_camera_do_mmap_ion(int ion_fd, struct ion_allocation_data *alloc, in mm_camera_do_mmap_ion() argument
283 alloc->len = (alloc->len + 4095) & (~4095); in mm_camera_do_mmap_ion()
285 rc = ioctl(ion_fd, ION_IOC_ALLOC, alloc); in mm_camera_do_mmap_ion()
291 ion_info_fd->handle = alloc->handle; in mm_camera_do_mmap_ion()
299 alloc->len, in mm_camera_do_mmap_ion()
/device/generic/goldfish/opengl/system/renderControl_enc/
DrenderControl_enc.cpp28 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/
Dgl2_enc.cpp28 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/moto/shamu/camera/QCamera2/HAL3/
DQCamera3Mem.cpp268 int QCamera3HeapMemory::alloc(int count, int size, int heap_id) in alloc() function in qcamera::QCamera3HeapMemory
325 struct ion_allocation_data alloc; in allocOneBuffer() local
335 memset(&alloc, 0, sizeof(alloc)); in allocOneBuffer()
336 alloc.len = size; in allocOneBuffer()
338 alloc.len = (alloc.len + 4095) & (~4095); in allocOneBuffer()
339 alloc.align = 4096; in allocOneBuffer()
340 alloc.flags = ION_FLAG_CACHED; in allocOneBuffer()
341 alloc.heap_mask = heap_id; in allocOneBuffer()
342 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocOneBuffer()
344 ALOGE("ION allocation for len %d failed: %s\n", alloc.len, in allocOneBuffer()
[all …]
/device/lge/hammerhead/camera/QCamera2/HAL3/
DQCamera3Mem.cpp267 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 …]
/device/asus/flo/camera/QCamera2/HAL3/
DQCamera3Mem.cpp262 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 …]
/device/moto/shamu/camera/QCamera2/HAL/
DQCameraMem.cpp241 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/
DQCameraMem.cpp242 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/
DQCameraMem.cpp242 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/
DFixedBuffer.h24 alloc(m_bufferLen);
32 void * alloc(size_t size) { in alloc() function
DGLDecoderContextData.h57 m_pointerData[loc].alloc(len); in storePointerData()
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_app.c115 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/
Dmm_qcamera_app.c115 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/
Dmm_qcamera_app.c44 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/
Dmm_jpeg_ionbuf.h44 struct ion_allocation_data alloc; member
/device/lge/mako/camera/QCamera/HAL/core/src/
DQCameraHWI.cpp2170 p_camera_memory->alloc[cnt].len = p_camera_memory->size; in allocate_ion_memory()
2172 p_camera_memory->alloc[cnt].len = (p_camera_memory->alloc[cnt].len + 4095) & (~4095); in allocate_ion_memory()
2173 p_camera_memory->alloc[cnt].align = 4096; in allocate_ion_memory()
2174 p_camera_memory->alloc[cnt].flags = ION_FLAG_CACHED; in allocate_ion_memory()
2175 p_camera_memory->alloc[cnt].heap_id_mask = ion_type; in allocate_ion_memory()
2178 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_ALLOC, &p_camera_memory->alloc[cnt]); in allocate_ion_memory()
2184 p_camera_memory->ion_info_fd[cnt].handle = p_camera_memory->alloc[cnt].handle; in allocate_ion_memory()
2228 p_camera_memory->alloc[cnt].len = p_camera_memory->size; in allocate_ion_memory()
2230 p_camera_memory->alloc[cnt].len = (p_camera_memory->alloc[cnt].len + 4095) & (~4095); in allocate_ion_memory()
2231 p_camera_memory->alloc[cnt].align = 4096; in allocate_ion_memory()
[all …]
/device/lge/mako/camera/
DQCameraHWI.cpp2347 p_camera_memory->alloc[cnt].len = p_camera_memory->size; in allocate_ion_memory()
2349 p_camera_memory->alloc[cnt].len = (p_camera_memory->alloc[cnt].len + 4095) & (~4095); in allocate_ion_memory()
2350 p_camera_memory->alloc[cnt].align = 4096; in allocate_ion_memory()
2351 p_camera_memory->alloc[cnt].flags = ION_FLAG_CACHED; in allocate_ion_memory()
2352 p_camera_memory->alloc[cnt].heap_id_mask = ion_type; in allocate_ion_memory()
2354 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_ALLOC, &p_camera_memory->alloc[cnt]); in allocate_ion_memory()
2360 p_camera_memory->ion_info_fd[cnt].handle = p_camera_memory->alloc[cnt].handle; in allocate_ion_memory()
2404 p_camera_memory->alloc[cnt].len = p_camera_memory->size; in allocate_ion_memory()
2406 p_camera_memory->alloc[cnt].len = (p_camera_memory->alloc[cnt].len + 4095) & (~4095); in allocate_ion_memory()
2407 p_camera_memory->alloc[cnt].align = 4096; in allocate_ion_memory()
[all …]
/device/generic/goldfish/opengl/host/include/libOpenglRender/
DIOStream.h44 unsigned char *alloc(size_t len) { in alloc() function

12