Home
last modified time | relevance | path

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

/hardware/akm/AK8975_FS/akmdfs/
DAK8975Driver.c25 static int s_fdDev = -1; variable
37 if (s_fdDev < 0) { in AKD_InitDevice()
39 if ((s_fdDev = open(MSENSOR_NAME, O_RDWR)) < 0) { in AKD_InitDevice()
55 if (s_fdDev >= 0) { in AKD_DeinitDevice()
56 close(s_fdDev); in AKD_DeinitDevice()
57 s_fdDev = -1; in AKD_DeinitDevice()
84 if (s_fdDev < 0) { in AKD_TxData()
99 if (ioctl(s_fdDev, ECS_IOCTL_WRITE, buf) < 0) { in AKD_TxData()
137 if (s_fdDev < 0) { in AKD_RxData()
149 if (ioctl(s_fdDev, ECS_IOCTL_READ, buf) < 0) { in AKD_RxData()
[all …]