• Home
  • Raw
  • Download

Lines Matching refs:retval

105 	int retval = 0;							\
109 retval = ops->get_##name(slot, value); \
113 return retval; \
125 int retval; in GET_STATUS() local
128 retval = get_power_status(slot->hotplug, &value); in GET_STATUS()
129 if (retval) in GET_STATUS()
131 retval = sprintf (buf, "%d\n", value); in GET_STATUS()
133 return retval; in GET_STATUS()
142 int retval = 0; in power_write_file() local
149 retval = -ENODEV; in power_write_file()
155 retval = slot->ops->disable_slot(slot); in power_write_file()
160 retval = slot->ops->enable_slot(slot); in power_write_file()
165 retval = -EINVAL; in power_write_file()
170 if (retval) in power_write_file()
171 return retval; in power_write_file()
183 int retval; in attention_read_file() local
186 retval = get_attention_status(slot->hotplug, &value); in attention_read_file()
187 if (retval) in attention_read_file()
189 retval = sprintf(buf, "%d\n", value); in attention_read_file()
192 return retval; in attention_read_file()
201 int retval = 0; in attention_write_file() local
208 retval = -ENODEV; in attention_write_file()
212 retval = ops->set_attention_status(slot->hotplug, attention); in attention_write_file()
216 if (retval) in attention_write_file()
217 return retval; in attention_write_file()
229 int retval; in latch_read_file() local
232 retval = get_latch_status(slot->hotplug, &value); in latch_read_file()
233 if (retval) in latch_read_file()
235 retval = sprintf (buf, "%d\n", value); in latch_read_file()
238 return retval; in latch_read_file()
248 int retval; in presence_read_file() local
251 retval = get_adapter_status(slot->hotplug, &value); in presence_read_file()
252 if (retval) in presence_read_file()
254 retval = sprintf (buf, "%d\n", value); in presence_read_file()
257 return retval; in presence_read_file()
270 int retval; in max_bus_speed_read_file() local
273 retval = get_max_bus_speed(slot->hotplug, &value); in max_bus_speed_read_file()
274 if (retval) in max_bus_speed_read_file()
282 retval = sprintf (buf, "%s\n", speed_string); in max_bus_speed_read_file()
285 return retval; in max_bus_speed_read_file()
296 int retval; in cur_bus_speed_read_file() local
299 retval = get_cur_bus_speed(slot->hotplug, &value); in cur_bus_speed_read_file()
300 if (retval) in cur_bus_speed_read_file()
308 retval = sprintf (buf, "%s\n", speed_string); in cur_bus_speed_read_file()
311 return retval; in cur_bus_speed_read_file()
325 int retval = 0; in test_write_file() local
332 retval = -ENODEV; in test_write_file()
336 retval = slot->ops->hardware_test(slot, test); in test_write_file()
340 if (retval) in test_write_file()
341 return retval; in test_write_file()
425 int retval = 0; in fs_add_slot() local
428 retval = sysfs_create_file(&slot->kobj, &hotplug_slot_attr_power.attr); in fs_add_slot()
429 if (retval) in fs_add_slot()
434 retval = sysfs_create_file(&slot->kobj, in fs_add_slot()
436 if (retval) in fs_add_slot()
441 retval = sysfs_create_file(&slot->kobj, in fs_add_slot()
443 if (retval) in fs_add_slot()
448 retval = sysfs_create_file(&slot->kobj, in fs_add_slot()
450 if (retval) in fs_add_slot()
455 retval = sysfs_create_file(&slot->kobj, in fs_add_slot()
457 if (retval) in fs_add_slot()
462 retval = sysfs_create_file(&slot->kobj, in fs_add_slot()
464 if (retval) in fs_add_slot()
469 retval = sysfs_create_file(&slot->kobj, in fs_add_slot()
471 if (retval) in fs_add_slot()
502 return retval; in fs_add_slot()