Home
last modified time | relevance | path

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

/device/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_ionbuf.c54 void *buffer_allocate(buffer_t *p_buffer, int cached) in buffer_allocate() argument
61 p_buffer->alloc.len = p_buffer->size; in buffer_allocate()
62 p_buffer->alloc.align = 4096; in buffer_allocate()
63 p_buffer->alloc.flags = (cached) ? ION_FLAG_CACHED : 0; in buffer_allocate()
64 p_buffer->alloc.heap_id_mask = 0x1 << ION_IOMMU_HEAP_ID; in buffer_allocate()
66 p_buffer->ion_fd = open("/dev/ion", O_RDONLY); in buffer_allocate()
67 if(p_buffer->ion_fd < 0) { in buffer_allocate()
73 p_buffer->alloc.len = (p_buffer->alloc.len + 4095U) & (~4095U); in buffer_allocate()
74 lrc = ioctl(p_buffer->ion_fd, ION_IOC_ALLOC, &p_buffer->alloc); in buffer_allocate()
77 p_buffer->alloc.len); in buffer_allocate()
[all …]
/device/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg_ionbuf.h60 void* buffer_allocate(buffer_t *p_buffer, int cached);
74 int buffer_deallocate(buffer_t *p_buffer);
88 int buffer_invalidate(buffer_t *p_buffer);
/device/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpegdec_test.c143 int mm_jpegdec_test_alloc(buffer_t *p_buffer, int use_pmem) in mm_jpegdec_test_alloc() argument
148 p_buffer->addr = (uint8_t *)buffer_allocate(p_buffer, 0); in mm_jpegdec_test_alloc()
149 if (NULL == p_buffer->addr) { in mm_jpegdec_test_alloc()
155 p_buffer->addr = (uint8_t *)malloc(p_buffer->size); in mm_jpegdec_test_alloc()
156 if (NULL == p_buffer->addr) { in mm_jpegdec_test_alloc()
164 void mm_jpegdec_test_free(buffer_t *p_buffer) in mm_jpegdec_test_free() argument
166 if (p_buffer->addr == NULL) in mm_jpegdec_test_free()
169 if (p_buffer->p_pmem_fd >= 0) in mm_jpegdec_test_free()
170 buffer_deallocate(p_buffer); in mm_jpegdec_test_free()
172 free(p_buffer->addr); in mm_jpegdec_test_free()
[all …]
Dmm_jpeg_test.c202 int mm_jpeg_test_alloc(buffer_t *p_buffer, int use_pmem) in mm_jpeg_test_alloc() argument
207 p_buffer->addr = (uint8_t *)buffer_allocate(p_buffer, 0); in mm_jpeg_test_alloc()
208 if (NULL == p_buffer->addr) { in mm_jpeg_test_alloc()
214 p_buffer->addr = (uint8_t *)malloc(p_buffer->size); in mm_jpeg_test_alloc()
215 if (NULL == p_buffer->addr) { in mm_jpeg_test_alloc()
223 void mm_jpeg_test_free(buffer_t *p_buffer) in mm_jpeg_test_free() argument
225 if (p_buffer->addr == NULL) in mm_jpeg_test_free()
228 if (p_buffer->p_pmem_fd >= 0) in mm_jpeg_test_free()
229 buffer_deallocate(p_buffer); in mm_jpeg_test_free()
231 free(p_buffer->addr); in mm_jpeg_test_free()
[all …]
/device/generic/goldfish/ril/
Dreference-ril.c2613 char *p_buffer; local
2618 p_buffer = (char *)p_card_status;
2621 p_buffer = NULL;
2624 RIL_onRequestComplete(t, result, p_buffer, buffer_size);