Home
last modified time | relevance | path

Searched refs:p_buffer (Results 1 – 11 of 11) sorted by relevance

/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_ionbuf.c45 void *buffer_allocate(buffer_t *p_buffer, int cached) in buffer_allocate() argument
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()
57 p_buffer->ion_fd = open("/dev/ion", O_RDONLY); in buffer_allocate()
58 if(p_buffer->ion_fd < 0) { 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()
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_ionbuf.c46 void *buffer_allocate(buffer_test_t *p_buffer) in buffer_allocate() argument
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()
58 p_buffer->ion_fd = open("/dev/ion", O_RDONLY); in buffer_allocate()
59 if(p_buffer->ion_fd < 0) { 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()
[all …]
Dmm_jpeg_test.c106 int mm_jpeg_test_alloc(buffer_test_t *p_buffer, int use_pmem) in mm_jpeg_test_alloc() argument
111 p_buffer->addr = (uint8_t *)buffer_allocate(p_buffer); in mm_jpeg_test_alloc()
112 if (NULL == p_buffer->addr) { in mm_jpeg_test_alloc()
118 p_buffer->addr = (uint8_t *)malloc(p_buffer->size); in mm_jpeg_test_alloc()
119 if (NULL == p_buffer->addr) { in mm_jpeg_test_alloc()
127 void mm_jpeg_test_free(buffer_test_t *p_buffer) in mm_jpeg_test_free() argument
129 if (p_buffer->addr == NULL) in mm_jpeg_test_free()
132 if (p_buffer->p_pmem_fd > 0) in mm_jpeg_test_free()
133 buffer_deallocate(p_buffer); in mm_jpeg_test_free()
135 free(p_buffer->addr); in mm_jpeg_test_free()
[all …]
Dmm_jpeg_ionbuf.h63 void* buffer_allocate(buffer_test_t *p_buffer);
77 int buffer_deallocate(buffer_test_t *p_buffer);
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_ionbuf.c46 void *buffer_allocate(buffer_test_t *p_buffer) in buffer_allocate() argument
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()
58 p_buffer->ion_fd = open("/dev/ion", O_RDONLY); in buffer_allocate()
59 if(p_buffer->ion_fd < 0) { 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()
[all …]
Dmm_jpeg_test.c106 int mm_jpeg_test_alloc(buffer_test_t *p_buffer, int use_pmem) in mm_jpeg_test_alloc() argument
111 p_buffer->addr = (uint8_t *)buffer_allocate(p_buffer); in mm_jpeg_test_alloc()
112 if (NULL == p_buffer->addr) { in mm_jpeg_test_alloc()
118 p_buffer->addr = (uint8_t *)malloc(p_buffer->size); in mm_jpeg_test_alloc()
119 if (NULL == p_buffer->addr) { in mm_jpeg_test_alloc()
127 void mm_jpeg_test_free(buffer_test_t *p_buffer) in mm_jpeg_test_free() argument
129 if (p_buffer->addr == NULL) in mm_jpeg_test_free()
132 if (p_buffer->p_pmem_fd > 0) in mm_jpeg_test_free()
133 buffer_deallocate(p_buffer); in mm_jpeg_test_free()
135 free(p_buffer->addr); in mm_jpeg_test_free()
[all …]
Dmm_jpeg_ionbuf.h63 void* buffer_allocate(buffer_test_t *p_buffer);
77 int buffer_deallocate(buffer_test_t *p_buffer);
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg_ionbuf.h63 void* buffer_allocate(buffer_t *p_buffer, int cached);
77 int buffer_deallocate(buffer_t *p_buffer);
91 int buffer_invalidate(buffer_t *p_buffer);
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpegdec_test.c140 int mm_jpegdec_test_alloc(buffer_t *p_buffer, int use_pmem) in mm_jpegdec_test_alloc() argument
145 p_buffer->addr = (uint8_t *)buffer_allocate(p_buffer, 0); in mm_jpegdec_test_alloc()
146 if (NULL == p_buffer->addr) { in mm_jpegdec_test_alloc()
152 p_buffer->addr = (uint8_t *)malloc(p_buffer->size); in mm_jpegdec_test_alloc()
153 if (NULL == p_buffer->addr) { in mm_jpegdec_test_alloc()
161 void mm_jpegdec_test_free(buffer_t *p_buffer) in mm_jpegdec_test_free() argument
163 if (p_buffer->addr == NULL) in mm_jpegdec_test_free()
166 if (p_buffer->p_pmem_fd > 0) in mm_jpegdec_test_free()
167 buffer_deallocate(p_buffer); in mm_jpegdec_test_free()
169 free(p_buffer->addr); in mm_jpegdec_test_free()
[all …]
Dmm_jpeg_test.c187 int mm_jpeg_test_alloc(buffer_t *p_buffer, int use_pmem) in mm_jpeg_test_alloc() argument
192 p_buffer->addr = (uint8_t *)buffer_allocate(p_buffer, 0); in mm_jpeg_test_alloc()
193 if (NULL == p_buffer->addr) { in mm_jpeg_test_alloc()
199 p_buffer->addr = (uint8_t *)malloc(p_buffer->size); in mm_jpeg_test_alloc()
200 if (NULL == p_buffer->addr) { in mm_jpeg_test_alloc()
208 void mm_jpeg_test_free(buffer_t *p_buffer) in mm_jpeg_test_free() argument
210 if (p_buffer->addr == NULL) in mm_jpeg_test_free()
213 if (p_buffer->p_pmem_fd > 0) in mm_jpeg_test_free()
214 buffer_deallocate(p_buffer); in mm_jpeg_test_free()
216 free(p_buffer->addr); in mm_jpeg_test_free()
[all …]
/device/lge/mako/camera/mm-camera-interface/
Dmm_jpeg_encoder.c363 jpege_dest.p_buffer = &jpege_dest.buffers[0]; in mm_jpeg_encoder_encode()