Lines Matching refs:ret
72 int ret;
74 ret = kstrtoint(buf, 0, &level);
75 if (ret)
76 return ret;
85 ret = toshiba_haps_protection_level(haps->acpi_dev->handle, level);
86 if (ret != 0)
87 return ret;
101 int ret;
103 ret = kstrtoint(buf, 0, &reset);
104 if (ret)
105 return ret;
111 ret = toshiba_haps_reset_protection(haps->acpi_dev->handle);
112 if (ret != 0)
113 return ret;
176 int ret;
196 ret = toshiba_haps_protection_level(acpi_dev->handle, 2);
197 if (ret != 0)
198 return ret;
200 ret = sysfs_create_group(&acpi_dev->dev.kobj, &haps_attr_group);
201 if (ret)
202 return ret;
213 int ret;
218 ret = toshiba_haps_protection_level(haps->acpi_dev->handle, 0);
220 return ret;
226 int ret;
231 ret = toshiba_haps_protection_level(haps->acpi_dev->handle,
235 ret = toshiba_haps_reset_protection(haps->acpi_dev->handle);
236 if (ret != 0)
237 return ret;
239 return ret;