Lines Matching refs:ret
77 int ret; in list_device() local
80 ret = asprintf(&chrdev_name, "/dev/%s", device_name); in list_device()
81 if (ret < 0) in list_device()
86 ret = -errno; in list_device()
92 ret = ioctl(fd, GPIO_GET_CHIPINFO_IOCTL, &cinfo); in list_device()
93 if (ret == -1) { in list_device()
94 ret = -errno; in list_device()
108 ret = ioctl(fd, GPIO_GET_LINEINFO_IOCTL, &linfo); in list_device()
109 if (ret == -1) { in list_device()
110 ret = -errno; in list_device()
136 return ret; in list_device()
151 int ret; in main() local
166 ret = list_device(device_name); in main()
174 ret = -errno; in main()
178 ret = -ENOENT; in main()
181 ret = list_device(ent->d_name); in main()
182 if (ret) in main()
187 ret = 0; in main()
190 ret = -errno; in main()
194 return ret; in main()