• Home
  • Raw
  • Download

Lines Matching refs:ops

69 	struct hotplug_slot_ops *ops = slot->ops;			\
71 if (!try_module_get(ops->owner)) \
73 if (ops->get_##name) \
74 retval = ops->get_##name(slot, value); \
77 module_put(ops->owner); \
110 if (!try_module_get(slot->ops->owner)) { in power_write_file()
116 if (slot->ops->disable_slot) in power_write_file()
117 retval = slot->ops->disable_slot(slot); in power_write_file()
121 if (slot->ops->enable_slot) in power_write_file()
122 retval = slot->ops->enable_slot(slot); in power_write_file()
129 module_put(slot->ops->owner); in power_write_file()
158 struct hotplug_slot_ops *ops = pci_slot->hotplug->ops; in attention_write_file() local
167 if (!try_module_get(ops->owner)) { in attention_write_file()
171 if (ops->set_attention_status) in attention_write_file()
172 retval = ops->set_attention_status(pci_slot->hotplug, attention); in attention_write_file()
173 module_put(ops->owner); in attention_write_file()
233 if (!try_module_get(slot->ops->owner)) { in test_write_file()
237 if (slot->ops->hardware_test) in test_write_file()
238 retval = slot->ops->hardware_test(slot, test); in test_write_file()
239 module_put(slot->ops->owner); in test_write_file()
256 if ((!slot) || (!slot->ops)) in has_power_file()
258 if ((slot->ops->enable_slot) || in has_power_file()
259 (slot->ops->disable_slot) || in has_power_file()
260 (slot->ops->get_power_status)) in has_power_file()
269 if ((!slot) || (!slot->ops)) in has_attention_file()
271 if ((slot->ops->set_attention_status) || in has_attention_file()
272 (slot->ops->get_attention_status)) in has_attention_file()
281 if ((!slot) || (!slot->ops)) in has_latch_file()
283 if (slot->ops->get_latch_status) in has_latch_file()
292 if ((!slot) || (!slot->ops)) in has_adapter_file()
294 if (slot->ops->get_adapter_status) in has_adapter_file()
303 if ((!slot) || (!slot->ops)) in has_test_file()
305 if (slot->ops->hardware_test) in has_test_file()
432 if ((slot->info == NULL) || (slot->ops == NULL)) in __pci_hp_register()
439 slot->ops->owner = owner; in __pci_hp_register()
440 slot->ops->mod_name = mod_name; in __pci_hp_register()