Lines Matching refs:lfd
46 static int get_value_v2(int lfd)
53 ret = ioctl(lfd, GPIO_V2_LINE_GET_VALUES_IOCTL, &vals);
79 static int get_value_v1(int lfd)
85 ret = ioctl(lfd, GPIOHANDLE_GET_LINE_VALUES_IOCTL, &vals);
119 int opt, ret, cfd, lfd;
175 lfd = request_line_v1(cfd, offset, flags_v1, val);
177 lfd = request_line_v2(cfd, offset, flags_v2, val);
181 if (lfd < 0) {
182 fprintf(stderr, "Failed to request %s:%d: %s\n", chip, offset, strerror(-lfd));
183 return lfd;
190 ret = get_value_v1(lfd);
192 ret = get_value_v2(lfd);
195 close(lfd);