Lines Matching refs:ops
85 kfree(hotplug_slot->ops); in release_slot()
95 struct hotplug_slot_ops *ops = NULL; in init_slot() local
108 ops = kzalloc(sizeof(*ops), GFP_KERNEL); in init_slot()
109 if (!ops) in init_slot()
112 ops->enable_slot = enable_slot; in init_slot()
113 ops->disable_slot = disable_slot; in init_slot()
114 ops->get_power_status = get_power_status; in init_slot()
115 ops->get_adapter_status = get_adapter_status; in init_slot()
116 ops->reset_slot = reset_slot; in init_slot()
118 ops->get_latch_status = get_latch_status; in init_slot()
120 ops->get_attention_status = get_attention_status; in init_slot()
121 ops->set_attention_status = set_attention_status; in init_slot()
128 hotplug->ops = ops; in init_slot()
142 kfree(ops); in init_slot()