Home
last modified time | relevance | path

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

/hardware/invensense/65xx/libsensors_iio/
DCompassSensor.IIO.primary.cpp166 compass_fd = open(iio_device_node, O_RDONLY); in enable_iio_sysfs()
168 if (compass_fd < 0) { in enable_iio_sysfs()
174 "HAL:iio %s, compass_fd opened : %d", compass, compass_fd); in enable_iio_sysfs()
218 if( compass_fd > 0) in ~CompassSensor()
219 close(compass_fd); in ~CompassSensor()
229 LOGI_IF(0, "HAL:compass_fd=%d", compass_fd); in getFd()
230 return compass_fd; in getFd()
369 size_t rsize = read(compass_fd, rdata, (8 * mEnable + 8) * 1); in readSample()
372 rsize = read(compass_fd, rdata, (8 + 8) * IIO_BUFFER_LENGTH); in readSample()
DCompassSensor.IIO.9150.cpp64 compass_fd(-1), in CompassSensor()
122 if( compass_fd > 0) in ~CompassSensor()
123 close(compass_fd); in ~CompassSensor()
129 return compass_fd; in getFd()
252 ssize_t n = mCompassInputReader.fill(compass_fd); in readSample()
DCompassSensor.IIO.9150.h87 int compass_fd; variable
DCompassSensor.IIO.primary.h96 int compass_fd; variable
/hardware/invensense/6515/libsensors_iio/
DCompassSensor.IIO.primary.cpp166 compass_fd = open(iio_device_node, O_RDONLY); in enable_iio_sysfs()
168 if (compass_fd < 0) { in enable_iio_sysfs()
174 "HAL:iio %s, compass_fd opened : %d", compass, compass_fd); in enable_iio_sysfs()
218 if( compass_fd > 0) in ~CompassSensor()
219 close(compass_fd); in ~CompassSensor()
229 LOGI_IF(0, "HAL:compass_fd=%d", compass_fd); in getFd()
230 return compass_fd; in getFd()
369 size_t rsize = read(compass_fd, rdata, (8 * mEnable + 8) * 1); in readSample()
372 rsize = read(compass_fd, rdata, (8 + 8) * IIO_BUFFER_LENGTH); in readSample()
DCompassSensor.IIO.9150.cpp64 compass_fd(-1), in CompassSensor()
122 if( compass_fd > 0) in ~CompassSensor()
123 close(compass_fd); in ~CompassSensor()
129 return compass_fd; in getFd()
254 ssize_t n = mCompassInputReader.fill(compass_fd); in readSample()
DCompassSensor.IIO.9150.h87 int compass_fd; variable
DCompassSensor.IIO.primary.h96 int compass_fd; variable