Home
last modified time | relevance | path

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

/hardware/invensense/6515/libsensors_iio/software/simple_apps/gesture_test/
Dinv_gesture_test.c176 char sysfs_path[MAX_SYSFS_NAME_LEN]; in inv_init_sysfs_attributes() local
195 inv_get_sysfs_path(sysfs_path); in inv_init_sysfs_attributes()
197 sprintf(mpu.name, "%s%s", sysfs_path, "/name"); in inv_init_sysfs_attributes()
198 sprintf(mpu.enable, "%s%s", sysfs_path, "/buffer/enable"); in inv_init_sysfs_attributes()
199 sprintf(mpu.power_state, "%s%s", sysfs_path, "/power_state"); in inv_init_sysfs_attributes()
200 sprintf(mpu.dmp_on,"%s%s", sysfs_path, "/dmp_on"); in inv_init_sysfs_attributes()
201 sprintf(mpu.dmp_int_on, "%s%s", sysfs_path, "/dmp_int_on"); in inv_init_sysfs_attributes()
202 sprintf(mpu.dmp_firmware, "%s%s", sysfs_path, "/dmp_firmware"); in inv_init_sysfs_attributes()
203 sprintf(mpu.firmware_loaded, "%s%s", sysfs_path, "/firmware_loaded"); in inv_init_sysfs_attributes()
207 sysfs_path, "/event_display_orientation"); in inv_init_sysfs_attributes()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/self_test/
Dinv_self_test.c167 char sysfs_path[MAX_SYSFS_NAME_LEN]; in inv_init_sysfs_attributes() local
186 sprintf(sysfs_path, "%s", IIO_SYSFS_PATH); in inv_init_sysfs_attributes()
188 sprintf(mpu.name, "%s%s", sysfs_path, "/name"); in inv_init_sysfs_attributes()
189 sprintf(mpu.enable, "%s%s", sysfs_path, "/buffer/enable"); in inv_init_sysfs_attributes()
190 sprintf(mpu.power_state, "%s%s", sysfs_path, "/power_state"); in inv_init_sysfs_attributes()
191 sprintf(mpu.dmp_on,"%s%s", sysfs_path, "/dmp_on"); in inv_init_sysfs_attributes()
192 sprintf(mpu.self_test, "%s%s", sysfs_path, "/self_test"); in inv_init_sysfs_attributes()
193 sprintf(mpu.temperature, "%s%s", sysfs_path, "/temperature"); in inv_init_sysfs_attributes()
195 sprintf(mpu.gyro_enable, "%s%s", sysfs_path, "/gyro_enable"); in inv_init_sysfs_attributes()
197 sysfs_path, "/in_anglvel_x_calibbias"); in inv_init_sysfs_attributes()
[all …]
/hardware/invensense/65xx/libsensors_iio/
DCompassSensor.IIO.9150.cpp349 char sysfs_path[MAX_SYSFS_NAME_LEN]; in inv_init_sysfs_attributes() local
357 memset(sysfs_path, 0, sizeof(sysfs_path)); in inv_init_sysfs_attributes()
369 inv_get_sysfs_path(sysfs_path); in inv_init_sysfs_attributes()
372 if (strcmp(sysfs_path, "") == 0 || strcmp(iio_trigger_path, "") == 0) in inv_init_sysfs_attributes()
382 sprintf(sysfs_path, "%s%s", "sys/class/input/input", tbuf); in inv_init_sysfs_attributes()
383 strcat(sysfs_path, "/ak8975"); in inv_init_sysfs_attributes()
385 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/enable"); in inv_init_sysfs_attributes()
386 sprintf(compassSysFs.compass_rate, "%s%s", sysfs_path, "/rate"); in inv_init_sysfs_attributes()
387 sprintf(compassSysFs.compass_scale, "%s%s", sysfs_path, "/scale"); in inv_init_sysfs_attributes()
388 sprintf(compassSysFs.compass_orient, "%s%s", sysfs_path, "/compass_matrix"); in inv_init_sysfs_attributes()
[all …]
DCompassSensor.IIO.primary.cpp487 char sysfs_path[MAX_SYSFS_NAME_LEN], tbuf[2]; in inv_init_sysfs_attributes() local
506 sprintf(sysfs_path, "%s%d", "/sys/bus/iio/devices/iio:device", in inv_init_sysfs_attributes()
513 sprintf(sysfs_path, "%s%s", "sys/class/input/input", tbuf); in inv_init_sysfs_attributes()
514 strcat(sysfs_path, "/ak8975"); in inv_init_sysfs_attributes()
516 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/enable"); in inv_init_sysfs_attributes()
517 sprintf(compassSysFs.compass_rate, "%s%s", sysfs_path, "/rate"); in inv_init_sysfs_attributes()
518 sprintf(compassSysFs.compass_scale, "%s%s", sysfs_path, "/scale"); in inv_init_sysfs_attributes()
519 sprintf(compassSysFs.compass_orient, "%s%s", sysfs_path, "/compass_matrix"); in inv_init_sysfs_attributes()
521 sprintf(compassSysFs.chip_enable, "%s%s", sysfs_path, "/buffer/enable"); in inv_init_sysfs_attributes()
522 sprintf(compassSysFs.in_timestamp_en, "%s%s", sysfs_path, "/scan_elements/in_timestamp_en"); in inv_init_sysfs_attributes()
[all …]
DMPLSupport.cpp264 char sysfs_path[MAX_SYSFS_NAME_LEN]; in dump_dmp_img() local
267 inv_get_sysfs_path(sysfs_path); in dump_dmp_img()
268 sprintf(dmp_path, "%s%s", sysfs_path, "/dmp_firmware"); in dump_dmp_img()
277 int read_sysfs_dir(bool fileMode, char *sysfs_path) in read_sysfs_dir() argument
290 dp = opendir (sysfs_path); in read_sysfs_dir()
295 LOGV_IF(0,"HAL DEBUG: opened directory %s", sysfs_path); in read_sysfs_dir()
303 sprintf(full_path, "%s%s%s", sysfs_path, "/", ep->d_name); in read_sysfs_dir()
325 LOGI("HAL DEBUG: could not open directory %s", sysfs_path); in read_sysfs_dir()
DMPLSensor.cpp5003 char sysfs_path[MAX_SYSFS_NAME_LEN]; in inv_init_sysfs_attributes() local
5005 memset(sysfs_path, 0, sizeof(sysfs_path)); in inv_init_sysfs_attributes()
5022 inv_get_sysfs_path(sysfs_path); in inv_init_sysfs_attributes()
5024 if (strcmp(sysfs_path, "") == 0) in inv_init_sysfs_attributes()
5027 memcpy(mSysfsPath, sysfs_path, sizeof(sysfs_path)); in inv_init_sysfs_attributes()
5028 sprintf(mpu.key, "%s%s", sysfs_path, "/key"); in inv_init_sysfs_attributes()
5029 sprintf(mpu.chip_enable, "%s%s", sysfs_path, "/buffer/enable"); in inv_init_sysfs_attributes()
5030 sprintf(mpu.buffer_length, "%s%s", sysfs_path, "/buffer/length"); in inv_init_sysfs_attributes()
5031 sprintf(mpu.master_enable, "%s%s", sysfs_path, "/master_enable"); in inv_init_sysfs_attributes()
5032 sprintf(mpu.power_state, "%s%s", sysfs_path, "/power_state"); in inv_init_sysfs_attributes()
[all …]
DPressureSensor.IIO.secondary.cpp50 PressureSensor::PressureSensor(const char *sysfs_path) in PressureSensor() argument
56 mSysfsPath = sysfs_path; in PressureSensor()
DMPLSupport.h35 int read_sysfs_dir(bool fileMode, char *sysfs_path);
DPressureSensor.IIO.secondary.h40 PressureSensor(const char *sysfs_path);
/hardware/invensense/6515/libsensors_iio/
DCompassSensor.IIO.primary.cpp521 char sysfs_path[MAX_SYSFS_NAME_LEN], tbuf[2]; in inv_init_sysfs_attributes() local
540 sprintf(sysfs_path, "%s%d", "/sys/bus/iio/devices/iio:device", in inv_init_sysfs_attributes()
547 sprintf(sysfs_path, "%s%s", "sys/class/input/input", tbuf); in inv_init_sysfs_attributes()
548 strcat(sysfs_path, "/ak8975"); in inv_init_sysfs_attributes()
550 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/enable"); in inv_init_sysfs_attributes()
551 sprintf(compassSysFs.compass_rate, "%s%s", sysfs_path, "/rate"); in inv_init_sysfs_attributes()
552 sprintf(compassSysFs.compass_scale, "%s%s", sysfs_path, "/scale"); in inv_init_sysfs_attributes()
553 sprintf(compassSysFs.compass_orient, "%s%s", sysfs_path, "/compass_matrix"); in inv_init_sysfs_attributes()
555 sprintf(compassSysFs.chip_enable, "%s%s", sysfs_path, "/buffer/enable"); in inv_init_sysfs_attributes()
556 sprintf(compassSysFs.in_timestamp_en, "%s%s", sysfs_path, "/scan_elements/in_timestamp_en"); in inv_init_sysfs_attributes()
[all …]
DCompassSensor.IIO.9150.cpp381 char sysfs_path[MAX_SYSFS_NAME_LEN]; in inv_init_sysfs_attributes() local
389 memset(sysfs_path, 0, sizeof(sysfs_path)); in inv_init_sysfs_attributes()
401 inv_get_sysfs_path(sysfs_path); in inv_init_sysfs_attributes()
411 sprintf(sysfs_path, "%s%s", "sys/class/input/input", tbuf); in inv_init_sysfs_attributes()
412 strcat(sysfs_path, "/ak8975"); in inv_init_sysfs_attributes()
414 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/enable"); in inv_init_sysfs_attributes()
415 sprintf(compassSysFs.compass_rate, "%s%s", sysfs_path, "/rate"); in inv_init_sysfs_attributes()
416 sprintf(compassSysFs.compass_scale, "%s%s", sysfs_path, "/scale"); in inv_init_sysfs_attributes()
417 sprintf(compassSysFs.compass_orient, "%s%s", sysfs_path, "/compass_matrix"); in inv_init_sysfs_attributes()
419 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/compass_enable"); in inv_init_sysfs_attributes()
[all …]
DMPLSupport.cpp267 char sysfs_path[MAX_SYSFS_NAME_LEN]; in dump_dmp_img() local
270 inv_get_sysfs_path(sysfs_path); in dump_dmp_img()
271 sprintf(dmp_path, "%s%s", sysfs_path, "/dmp_firmware"); in dump_dmp_img()
280 int read_sysfs_dir(bool fileMode, char *sysfs_path) in read_sysfs_dir() argument
293 dp = opendir (sysfs_path); in read_sysfs_dir()
298 LOGV_IF(0,"HAL DEBUG: opened directory %s", sysfs_path); in read_sysfs_dir()
306 sprintf(full_path, "%s%s%s", sysfs_path, "/", ep->d_name); in read_sysfs_dir()
328 LOGI("HAL DEBUG: could not open directory %s", sysfs_path); in read_sysfs_dir()
DMPLSensor.cpp5367 char sysfs_path[MAX_SYSFS_NAME_LEN]; local
5369 memset(sysfs_path, 0, sizeof(sysfs_path));
5386 inv_get_sysfs_path(sysfs_path);
5388 memcpy(mSysfsPath, sysfs_path, sizeof(sysfs_path));
5389 sprintf(mpu.key, "%s%s", sysfs_path, "/key");
5390 sprintf(mpu.chip_enable, "%s%s", sysfs_path, "/buffer/enable");
5391 sprintf(mpu.buffer_length, "%s%s", sysfs_path, "/buffer/length");
5392 sprintf(mpu.master_enable, "%s%s", sysfs_path, "/master_enable");
5393 sprintf(mpu.power_state, "%s%s", sysfs_path, "/power_state");
5395 sprintf(mpu.in_timestamp_en, "%s%s", sysfs_path,
[all …]
DPressureSensor.IIO.secondary.cpp49 PressureSensor::PressureSensor(const char *sysfs_path) in PressureSensor() argument
55 mSysfsPath = sysfs_path; in PressureSensor()
DMPLSupport.h34 int read_sysfs_dir(bool fileMode, char *sysfs_path);
DPressureSensor.IIO.secondary.h40 PressureSensor(const char *sysfs_path);
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
Dstress_iio.c221 char sysfs_path[200]; in setup_dmp() local
224 sprintf(sysfs_path, "%s", dev_path); in setup_dmp()
225 printf("sysfs: %s\n", sysfs_path); in setup_dmp()
226 ret = write_sysfs_int_and_verify("power_state", sysfs_path, 1); in setup_dmp()
236 ret = write_sysfs_int("sampling_frequency", sysfs_path, 200); in setup_dmp()
239 ret = write_sysfs_int_and_verify("firmware_loaded", sysfs_path, 0); in setup_dmp()
248 printf("firmware_loaded=%d\n", read_sysfs_posint("firmware_loaded", sysfs_path)); in setup_dmp()
249 ret = write_sysfs_int_and_verify("dmp_on", sysfs_path, 1); in setup_dmp()
252 ret = write_sysfs_int_and_verify("dmp_int_on", sysfs_path, 1); in setup_dmp()
260 ret = write_sysfs_int_and_verify("pedometer_int_on", sysfs_path, 1); in setup_dmp()
[all …]
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.c23 static char sysfs_path[100]; variable
173 sprintf(sysfs_path, "%s%s", "/sys", tmp); in parsing_proc_input()
263 sprintf(data, "%s%s", sysfs_path, "/device/invensense/mpu"); in process_sysfs_request()
269 sprintf(data, "%s%s", sysfs_path, "/device/invensense/mpu/dmp_firmware"); in process_sysfs_request()
285 sprintf(key_path, "%s%s", sysfs_path, "/device/invensense/mpu/key"); in process_sysfs_request()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.c29 static char sysfs_path[100]; variable
181 sprintf(sysfs_path, "%s%s", "/sys", tmp); in parsing_proc_input()
271 sprintf(data, "%s%s", sysfs_path, "/device/invensense/mpu"); in process_sysfs_request()
277 sprintf(data, "%s%s", sysfs_path, "/device/invensense/mpu/dmp_firmware"); in process_sysfs_request()
293 sprintf(key_path, "%s%s", sysfs_path, "/device/invensense/mpu/key"); in process_sysfs_request()
/hardware/interfaces/health/storage/1.0/default/
DStorage.cpp47 if (!entry.sysfs_path.empty()) { in getGarbageCollectPath()
48 return entry.sysfs_path + "/manual_gc"; in getGarbageCollectPath()
/hardware/google/pixel/health/
DCycleCountBackupRestore.cpp26 CycleCountBackupRestore::CycleCountBackupRestore(int nb_buckets, const char *sysfs_path, in CycleCountBackupRestore() argument
31 sysfs_path_(sysfs_path), in CycleCountBackupRestore()
/hardware/google/pixel/health/include/pixelhealth/
DCycleCountBackupRestore.h32 CycleCountBackupRestore(int nb_buckets, const char *sysfs_path, const char *persist_path,