Lines Matching refs:ion_fd
56 int32_t ion_fd; member
200 int32_t ion_fd; in qcom_km_ION_memalloc() local
212 ion_fd = open("/dev/ion", O_RDONLY | O_DSYNC); in qcom_km_ION_memalloc()
213 if (ion_fd < 0) { in qcom_km_ION_memalloc()
233 rc = ioctl(ion_fd, ION_IOC_ALLOC, &ion_alloc_data); in qcom_km_ION_memalloc()
246 rc = ioctl(ion_fd, ION_IOC_MAP, &ifd_data); in qcom_km_ION_memalloc()
261 handle->ion_fd = ion_fd; in qcom_km_ION_memalloc()
279 iret = ioctl(ion_fd, ION_IOC_FREE, &handle_data); in qcom_km_ION_memalloc()
285 if (ion_fd > 0) in qcom_km_ION_memalloc()
286 close(ion_fd); in qcom_km_ION_memalloc()
307 ret = ioctl(handle->ion_fd, ION_IOC_FREE, &handle_data); in qcom_km_ion_dealloc()
311 close(handle->ion_fd); in qcom_km_ion_dealloc()
405 ihandle.ion_fd = 0; in qcom_km_import_keypair()
508 ihandle.ion_fd = 0; in qcom_km_sign_data()
608 ihandle.ion_fd = 0; in qcom_km_verify_data()