Searched refs:sys_pfx (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/staging/greybus/tools/ |
A D | lbtest | 81 def log_csv(test_name, size, iteration_max, sys_pfx): argument 90 error = read_sysfs_int(sys_pfx + 'error') 94 latency_min = read_sysfs_int(sys_pfx + 'latency_min') 95 latency_max = read_sysfs_int(sys_pfx + 'latency_max') 96 latency_avg = read_sysfs_int(sys_pfx + 'latency_avg') 117 def loopback_run(test_name, size, iteration_max, sys_pfx): argument 121 write_sysfs_val(sys_pfx + 'type', '0') 123 write_sysfs_val(sys_pfx + 'ms_wait', '0') 125 write_sysfs_val(sys_pfx + 'size', size) 129 write_sysfs_val(sys_pfx + 'type', test_id) [all …]
|
A D | loopback_test.c | 245 int open_sysfs(const char *sys_pfx, const char *node, int flags) in open_sysfs() argument 250 snprintf(path, sizeof(path), "%s%s", sys_pfx, node); in open_sysfs() 264 fprintf(stderr, "unable to read from %s%s %s\n", sys_pfx, node, in read_sysfs_int_fd() 286 int read_sysfs_int(const char *sys_pfx, const char *node) in read_sysfs_int() argument 290 fd = open_sysfs(sys_pfx, node, O_RDONLY); in read_sysfs_int() 291 val = read_sysfs_int_fd(fd, sys_pfx, node); in read_sysfs_int() 296 float read_sysfs_float(const char *sys_pfx, const char *node) in read_sysfs_float() argument 301 fd = open_sysfs(sys_pfx, node, O_RDONLY); in read_sysfs_float() 302 val = read_sysfs_float_fd(fd, sys_pfx, node); in read_sysfs_float() 312 fd = open_sysfs(sys_pfx, node, O_RDWR); in write_sysfs_val() [all …]
|
Completed in 8 milliseconds