Lines Matching refs:ion_alloc_data
199 struct ion_allocation_data ion_alloc_data; in qcom_km_ION_memalloc() local
221 ion_alloc_data.len = (size + 4095) & (~4095); in qcom_km_ION_memalloc()
224 ion_alloc_data.align = 4096; in qcom_km_ION_memalloc()
227 ion_alloc_data.ION_HEAP_MASK = ION_HEAP(ION_QSECOM_HEAP_ID); in qcom_km_ION_memalloc()
230 ion_alloc_data.flags = 0; in qcom_km_ION_memalloc()
233 rc = ioctl(ion_fd, ION_IOC_ALLOC, &ion_alloc_data); in qcom_km_ION_memalloc()
239 if (ion_alloc_data.handle != NULL) { in qcom_km_ION_memalloc()
240 ifd_data.handle = ion_alloc_data.handle; in qcom_km_ION_memalloc()
253 v_addr = (unsigned char *)mmap(NULL, ion_alloc_data.len, in qcom_km_ION_memalloc()
264 handle->ion_alloc_handle.handle = ion_alloc_data.handle; in qcom_km_ION_memalloc()
270 iret = munmap(handle->ion_sbuffer, ion_alloc_data.len); in qcom_km_ION_memalloc()
276 handle_data.handle = ion_alloc_data.handle; in qcom_km_ION_memalloc()