Lines Matching refs:retval

53 	int retval = 0;							\
57 retval = ops->get_##name(slot, value); \
61 return retval; \
71 int retval; in GET_STATUS() local
74 retval = get_power_status(pci_slot->hotplug, &value); in GET_STATUS()
75 if (retval) in GET_STATUS()
76 return retval; in GET_STATUS()
87 int retval = 0; in power_write_file() local
94 retval = -ENODEV; in power_write_file()
100 retval = slot->ops->disable_slot(slot); in power_write_file()
105 retval = slot->ops->enable_slot(slot); in power_write_file()
110 retval = -EINVAL; in power_write_file()
115 if (retval) in power_write_file()
116 return retval; in power_write_file()
128 int retval; in attention_read_file() local
131 retval = get_attention_status(pci_slot->hotplug, &value); in attention_read_file()
132 if (retval) in attention_read_file()
133 return retval; in attention_read_file()
144 int retval = 0; in attention_write_file() local
151 retval = -ENODEV; in attention_write_file()
155 retval = ops->set_attention_status(pci_slot->hotplug, attention); in attention_write_file()
159 if (retval) in attention_write_file()
160 return retval; in attention_write_file()
172 int retval; in latch_read_file() local
175 retval = get_latch_status(pci_slot->hotplug, &value); in latch_read_file()
176 if (retval) in latch_read_file()
177 return retval; in latch_read_file()
189 int retval; in presence_read_file() local
192 retval = get_adapter_status(pci_slot->hotplug, &value); in presence_read_file()
193 if (retval) in presence_read_file()
194 return retval; in presence_read_file()
210 int retval = 0; in test_write_file() local
217 retval = -ENODEV; in test_write_file()
221 retval = slot->ops->hardware_test(slot, test); in test_write_file()
225 if (retval) in test_write_file()
226 return retval; in test_write_file()
295 int retval = 0; in fs_add_slot() local
301 retval = sysfs_create_file(&pci_slot->kobj, in fs_add_slot()
303 if (retval) in fs_add_slot()
308 retval = sysfs_create_file(&pci_slot->kobj, in fs_add_slot()
310 if (retval) in fs_add_slot()
315 retval = sysfs_create_file(&pci_slot->kobj, in fs_add_slot()
317 if (retval) in fs_add_slot()
322 retval = sysfs_create_file(&pci_slot->kobj, in fs_add_slot()
324 if (retval) in fs_add_slot()
329 retval = sysfs_create_file(&pci_slot->kobj, in fs_add_slot()
331 if (retval) in fs_add_slot()
354 return retval; in fs_add_slot()