Lines Matching refs:ionBuffer
1003 int ExynosJpegEncoderForCamera::allocJpegIonMemory(ion_client ionClient, ion_buffer *ionBuffer, char **buffer, int size)
1012 *ionBuffer = ion_alloc(ionClient, size, 0, ION_HEAP_SYSTEM_MASK, 0);
1013 if (*ionBuffer == -1) {
1015 *ionBuffer = 0;
1019 *buffer = (char *)ion_map(*ionBuffer, size, 0);
1022 ion_free(*ionBuffer);
1023 *ionBuffer = 0;
1031 void ExynosJpegEncoderForCamera::freeJpegIonMemory(ion_client ionClient, ion_buffer *ionBuffer, char **buffer, int size)
1042 if (*ionBuffer != 0) {
1043 ion_free(*ionBuffer);
1044 *ionBuffer = 0;