/tools/gpio/ |
D | gpio-utils.c | 57 int gpiotools_request_line(const char *device_name, unsigned int *lines, in gpiotools_request_line() argument 68 ret = asprintf(&chrdev_name, "/dev/%s", device_name); in gpiotools_request_line() 180 int gpiotools_get(const char *device_name, unsigned int line) in gpiotools_get() argument 186 ret = gpiotools_gets(device_name, lines, 1, &value); in gpiotools_get() 205 int gpiotools_gets(const char *device_name, unsigned int *lines, in gpiotools_gets() argument 216 ret = gpiotools_request_line(device_name, lines, num_lines, in gpiotools_gets() 242 int gpiotools_set(const char *device_name, unsigned int line, in gpiotools_set() argument 247 return gpiotools_sets(device_name, lines, 1, &value); in gpiotools_set() 263 int gpiotools_sets(const char *device_name, unsigned int *lines, in gpiotools_sets() argument 278 ret = gpiotools_request_line(device_name, lines, num_lines, in gpiotools_sets()
|
D | gpio-utils.h | 27 int gpiotools_request_line(const char *device_name, 36 int gpiotools_get(const char *device_name, unsigned int line); 37 int gpiotools_gets(const char *device_name, unsigned int *lines, 39 int gpiotools_set(const char *device_name, unsigned int line, 41 int gpiotools_sets(const char *device_name, unsigned int *lines,
|
D | gpio-hammer.c | 25 int hammer_device(const char *device_name, unsigned int *lines, int num_lines, in hammer_device() argument 39 ret = gpiotools_request_line(device_name, lines, num_lines, in hammer_device() 61 fprintf(stdout, "] on %s, initial states: [", device_name); in hammer_device() 129 const char *device_name = NULL; in main() local 143 device_name = optarg; in main() 171 if (!device_name || !num_lines) { in main() 175 return hammer_device(device_name, lines, num_lines, loops); in main()
|
D | gpio-event-mon.c | 28 int monitor_device(const char *device_name, in monitor_device() argument 40 ret = asprintf(&chrdev_name, "/dev/%s", device_name); in monitor_device() 51 ret = gpiotools_request_line(device_name, lines, num_lines, config, in monitor_device() 72 fprintf(stdout, "Monitoring line %d on %s\n", lines[0], device_name); in monitor_device() 79 fprintf(stdout, " and %d on %s\n", lines[i], device_name); in monitor_device() 168 const char *device_name = NULL; in main() local 184 device_name = optarg; in main() 227 if (!device_name || num_lines == 0) { in main() 236 return monitor_device(device_name, lines, num_lines, &config, loops); in main()
|
D | lsgpio.c | 101 int list_device(const char *device_name) in list_device() argument 109 ret = asprintf(&chrdev_name, "/dev/%s", device_name); in list_device() 180 const char *device_name = NULL; in main() local 187 device_name = optarg; in main() 195 if (device_name) in main() 196 ret = list_device(device_name); in main()
|
/tools/perf/tests/shell/ |
D | test_arm_coresight.sh | 116 device_name=$(basename $path) 118 if is_device_sink $path $device_name; then 120 record_touch_file $device_name $2 && 126 arm_cs_report "CoreSight path testing (CPU$2 -> $device_name)" $err
|
/tools/iio/ |
D | iio_generic_buffer.c | 356 char *trigger_name = NULL, *device_name = NULL; in main() local 420 device_name = strdup(optarg); in main() 455 if (dev_num < 0 && !device_name) { in main() 460 } else if (dev_num >= 0 && device_name) { in main() 466 dev_num = find_type_by_name(device_name, "iio:device"); in main() 468 fprintf(stderr, "Failed to find the %s\n", device_name); in main() 479 if (!device_name) { in main() 480 device_name = malloc(IIO_MAX_NAME_LENGTH); in main() 481 if (!device_name) { in main() 485 ret = read_sysfs_string("name", dev_dir_name, device_name); in main() [all …]
|
D | iio_event_monitor.c | 325 const char *device_name; in main() local 334 device_name = argv[1]; in main() 336 device_name = argv[2]; in main() 347 dev_num = find_type_by_name(device_name, "iio:device"); in main() 350 device_name, dev_num); in main() 363 chrdev_name = strdup(device_name); in main()
|