Lines Matching refs:s_fdDev
25 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()
179 if (s_fdDev < 0) { in AKD_GetMagneticData()
184 if (ioctl(s_fdDev, ECS_IOCTL_GETDATA, data) < 0) { in AKD_GetMagneticData()
202 if (s_fdDev < 0) { in AKD_SetYPR()
205 if (ioctl(s_fdDev, ECS_IOCTL_SET_YPR, buf) < 0) { in AKD_SetYPR()
215 if (s_fdDev < 0) { in AKD_GetOpenStatus()
219 if (ioctl(s_fdDev, ECS_IOCTL_GET_OPEN_STATUS, status) < 0) { in AKD_GetOpenStatus()
230 if (s_fdDev < 0) { in AKD_GetCloseStatus()
234 if (ioctl(s_fdDev, ECS_IOCTL_GET_CLOSE_STATUS, status) < 0) { in AKD_GetCloseStatus()
250 if (s_fdDev < 0) { in AKD_SetMode()
255 if (ioctl(s_fdDev, ECS_IOCTL_SET_MODE, &mode) < 0) { in AKD_SetMode()
271 if (s_fdDev < 0) { in AKD_GetDelay()
275 if (ioctl(s_fdDev, ECS_IOCTL_GET_DELAY, delay) < 0) { in AKD_GetDelay()
289 if (s_fdDev < 0) { in AKD_GetLayout()
294 if (ioctl(s_fdDev, ECS_IOCTL_GET_LAYOUT, &tmp) < 0) { in AKD_GetLayout()
306 if (s_fdDev < 0) { in AKD_GetAccelerationData()
310 if (ioctl(s_fdDev, ECS_IOCTL_GET_ACCEL, data) < 0) { in AKD_GetAccelerationData()