Lines Matching refs:ops
38 int transport_backend_register(const struct target_backend_ops *ops)
45 tb->ops = ops;
49 if (!strcmp(old->ops->name, ops->name)) {
50 pr_err("backend %s already registered.\n", ops->name);
61 ops->name, ops->owner);
66 void target_backend_unregister(const struct target_backend_ops *ops)
72 if (tb->ops == ops) {
96 if (!strcmp(tb->ops->name, name))
102 if (tb->ops->owner && !try_module_get(tb->ops->owner))
132 ret = hba->backend->ops->attach_hba(hba, plugin_dep_id);
147 module_put(hba->backend->ops->owner);
159 hba->backend->ops->detach_hba(hba);
168 module_put(hba->backend->ops->owner);