Home | History | Annotate | Download | only in stress_iio

Lines Matching refs:sysfs_path

221 	char sysfs_path[200];
224 sprintf(sysfs_path, "%s", dev_path);
225 printf("sysfs: %s\n", sysfs_path);
226 ret = write_sysfs_int_and_verify("power_state", sysfs_path, 1);
236 ret = write_sysfs_int("sampling_frequency", sysfs_path, 200);
239 ret = write_sysfs_int_and_verify("firmware_loaded", sysfs_path, 0);
248 printf("firmware_loaded=%d\n", read_sysfs_posint("firmware_loaded", sysfs_path));
249 ret = write_sysfs_int_and_verify("dmp_on", sysfs_path, 1);
252 ret = write_sysfs_int_and_verify("dmp_int_on", sysfs_path, 1);
256 //enable_glu(sysfs_path, 0);
257 // ret = write_sysfs_int_and_verify("tap_on", sysfs_path, 0);
260 ret = write_sysfs_int_and_verify("pedometer_int_on", sysfs_path, 1);
261 ret = write_sysfs_int_and_verify("pedometer_on", sysfs_path, 1);
263 ret = write_sysfs_int_and_verify("dmp_event_int_on", sysfs_path, 1);
264 write_sysfs_int64("pedometer_steps", sysfs_path, 0);
265 write_sysfs_int64("pedometer_time", sysfs_path, 0);