Home
last modified time | relevance | path

Searched refs:ion_dev_fd_ (Results 1 – 4 of 4) sorted by relevance

/hardware/qcom/display/msm8998/libgralloc1/
Dgr_ion_alloc.cpp47 if (ion_dev_fd_ == FD_INIT) { in Init()
48 ion_dev_fd_ = open(kIonDevice, O_RDONLY); in Init()
51 if (ion_dev_fd_ < 0) { in Init()
53 ion_dev_fd_ = FD_INIT; in Init()
61 if (ion_dev_fd_ > FD_INIT) { in CloseIonDevice()
62 close(ion_dev_fd_); in CloseIonDevice()
65 ion_dev_fd_ = FD_INIT; in CloseIonDevice()
82 if (ioctl(ion_dev_fd_, INT(ION_IOC_ALLOC), &ion_alloc_data)) { in AllocBuffer()
90 if (ioctl(ion_dev_fd_, INT(ION_IOC_MAP), &fd_data)) { in AllocBuffer()
93 ioctl(ion_dev_fd_, INT(ION_IOC_FREE), &handle_data); in AllocBuffer()
[all …]
Dgr_ion_alloc.h61 IonAlloc() { ion_dev_fd_ = FD_INIT; } in IonAlloc()
78 int ion_dev_fd_; variable
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_ion_alloc.cpp47 if (ion_dev_fd_ == FD_INIT) { in Init()
48 ion_dev_fd_ = open(kIonDevice, O_RDONLY); in Init()
51 if (ion_dev_fd_ < 0) { in Init()
53 ion_dev_fd_ = FD_INIT; in Init()
61 if (ion_dev_fd_ > FD_INIT) { in CloseIonDevice()
62 close(ion_dev_fd_); in CloseIonDevice()
65 ion_dev_fd_ = FD_INIT; in CloseIonDevice()
81 if (ioctl(ion_dev_fd_, INT(ION_IOC_ALLOC), &ion_alloc_data)) { in AllocBuffer()
89 if (ioctl(ion_dev_fd_, INT(ION_IOC_MAP), &fd_data)) { in AllocBuffer()
92 ioctl(ion_dev_fd_, INT(ION_IOC_FREE), &handle_data); in AllocBuffer()
[all …]
Dgr_ion_alloc.h61 IonAlloc() { ion_dev_fd_ = FD_INIT; } in IonAlloc()
79 int ion_dev_fd_; variable