Lines Matching +refs:current +refs:line

77 	char *line = NULL;  in gpio_debugfs_get()  local
92 while (getline(&line, &len, f) != -1) { in gpio_debugfs_get()
93 cur = strstr(line, consumer); in gpio_debugfs_get()
97 cur = strchr(line, ')'); in gpio_debugfs_get()
120 free(line); in gpio_debugfs_get()
131 struct gpiochip_info *current; in list_gpiochip() local
142 current = cinfo; in list_gpiochip()
164 *ret = ioctl(fd, GPIO_GET_CHIPINFO_IOCTL, current); in list_gpiochip()
170 if (strcmp(current->label, gpiochip_name) == 0 in list_gpiochip()
171 || check_prefix(current->label, gpiochip_name)) { in list_gpiochip()
173 current++; in list_gpiochip()
197 int gpio_pin_test(struct gpiochip_info *cinfo, int line, int flag, int value) in gpio_pin_test() argument
200 unsigned int lines[] = {line}; in gpio_pin_test()
238 cinfo->name, line, flag, value); in gpio_pin_test()
243 void gpio_pin_tests(struct gpiochip_info *cinfo, unsigned int line) in gpio_pin_tests() argument
245 printf("line<%d>", line); in gpio_pin_tests()
246 gpio_pin_test(cinfo, line, GPIOHANDLE_REQUEST_OUTPUT, 0); in gpio_pin_tests()
248 gpio_pin_test(cinfo, line, GPIOHANDLE_REQUEST_OUTPUT, 1); in gpio_pin_tests()
250 gpio_pin_test(cinfo, line, in gpio_pin_tests()
254 gpio_pin_test(cinfo, line, in gpio_pin_tests()
258 gpio_pin_test(cinfo, line, GPIOHANDLE_REQUEST_INPUT, 0); in gpio_pin_tests()
276 struct gpiochip_info *current; in main() local
303 current = cinfo; in main()
305 gpio_pin_tests(current, 0); in main()
306 gpio_pin_tests(current, current->lines - 1); in main()
307 gpio_pin_tests(current, random() % current->lines); in main()
308 current++; in main()