Home
last modified time | relevance | path

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

/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Dmpu_iio.c238 int setup_dmp(char *dev_path, int p_event) in setup_dmp() argument
244 printf("INFO: sysfs path=%s\n", dev_path); in setup_dmp()
246 ret = write_sysfs_int_and_verify("power_state", dev_path, 1); in setup_dmp()
250 ret = write_sysfs_int("in_accel_scale", dev_path, 0); in setup_dmp()
253 ret = write_sysfs_int("in_anglvel_scale", dev_path, 3); in setup_dmp()
256 ret = write_sysfs_int("sampling_frequency", dev_path, 200); in setup_dmp()
259 ret = write_sysfs_int_and_verify("firmware_loaded", dev_path, 0); in setup_dmp()
263 sprintf(dmp_path, "%s/dmp_firmware", dev_path); in setup_dmp()
271 read_sysfs_posint("firmware_loaded", dev_path)); in setup_dmp()
287 ret = write_sysfs_int_and_verify("dmp_on", dev_path, 1); in setup_dmp()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
Dstress_iio.c220 static void setup_dmp(char *dev_path){ in setup_dmp() argument
224 sprintf(sysfs_path, "%s", dev_path); in setup_dmp()
230 ret = write_sysfs_int("in_accel_scale", dev_path, 0); in setup_dmp()
233 ret = write_sysfs_int("in_anglvel_scale", dev_path, 3); in setup_dmp()
242 sprintf(dmp_path, "%s/dmp_firmware", dev_path); in setup_dmp()
/hardware/qcom/msm8998/gpt-utils/
Dgpt-utils.cpp742 int prepare_partitions(enum boot_update_stage stage, const char *dev_path) in prepare_partitions() argument
751 if (!dev_path) { in prepare_partitions()
757 fd = open(dev_path, O_RDWR); in prepare_partitions()