• Home
  • Raw
  • Download

Lines Matching refs:ret

45 	int ret;  in run_wmi_smbios_cmd()  local
48 ret = ioctl(fd, DELL_WMI_SMBIOS_CMD, buffer); in run_wmi_smbios_cmd()
50 return ret; in run_wmi_smbios_cmd()
59 int ret; in find_token() local
61 ret = sprintf(value_sysfs, "%s/%04x_value", token_sysfs, token); in find_token()
62 if (ret < 0) { in find_token()
75 ret = sprintf(location_sysfs, "%s/%04x_location", token_sysfs, token); in find_token()
76 if (ret < 0) { in find_token()
97 int ret; in token_is_active() local
102 ret = run_wmi_smbios_cmd(buffer); in token_is_active()
103 if (ret != 0 || buffer->std.output[0] != 0) in token_is_active()
104 return ret; in token_is_active()
105 ret = (buffer->std.output[1] == *cmpvalue); in token_is_active()
106 return ret; in token_is_active()
113 int ret; in query_token() local
115 ret = find_token(token, &location, &value); in query_token()
116 if (ret != 0) { in query_token()
128 int ret; in activate_token() local
130 ret = find_token(token, &location, &value); in activate_token()
131 if (ret != 0) { in activate_token()
139 ret = run_wmi_smbios_cmd(buffer); in activate_token()
140 return ret; in activate_token()
158 int ret; in main() local
161 ret = query_buffer_size(&value); in main()
162 if (ret == EXIT_FAILURE || !value) { in main()
171 ret = -ENOMEM; in main()
180 ret = run_wmi_smbios_cmd(buffer); in main()
181 if (ret) { in main()
182 printf("smbios ioctl failed: %d\n", ret); in main()
183 ret = EXIT_FAILURE; in main()
189 ret = query_token(CAPSULE_EN_TOKEN, buffer); in main()
190 printf("UEFI Capsule enabled token is: %d\n", ret); in main()
191 ret = query_token(CAPSULE_DIS_TOKEN, buffer); in main()
192 printf("UEFI Capsule disabled token is: %d\n", ret); in main()
195 if (ret) { in main()
199 ret = -1; in main()
203 ret = EXIT_SUCCESS; in main()
206 return ret; in main()