Lines Matching refs:ops

251 	struct sa_plugin_ops *ops = NULL;  in find_protocol()  local
258 ops = sa_proto_handle.sa_ops[i]; in find_protocol()
264 return (ops); in find_protocol()
276 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_share() local
279 if (ops != NULL && ops->sa_share != NULL) in sa_proto_share()
280 ret = ops->sa_share(share); in sa_proto_share()
293 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_unshare() local
296 if (ops != NULL && ops->sa_unshare != NULL) in sa_proto_unshare()
297 ret = ops->sa_unshare(share, path); in sa_proto_unshare()
313 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_share_resource() local
316 if (ops != NULL) { in sa_proto_share_resource()
317 if (ops->sa_enable_resource != NULL) in sa_proto_share_resource()
318 ret = ops->sa_enable_resource(resource); in sa_proto_share_resource()
335 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_unshare_resource() local
338 if (ops != NULL) { in sa_proto_unshare_resource()
339 if (ops->sa_disable_resource != NULL) in sa_proto_unshare_resource()
340 ret = ops->sa_disable_resource(resource); in sa_proto_unshare_resource()
357 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_valid_prop() local
360 if (ops != NULL && ops->sa_valid_prop != NULL) in sa_proto_valid_prop()
361 ret = ops->sa_valid_prop(handle, prop, opt); in sa_proto_valid_prop()
374 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_valid_space() local
377 if (ops != NULL && ops->sa_valid_space != NULL) in sa_proto_valid_space()
378 ret = ops->sa_valid_space(token); in sa_proto_valid_space()
391 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_space_alias() local
394 if (ops != NULL && ops->sa_space_alias != NULL) in sa_proto_space_alias()
395 ret = ops->sa_space_alias(space); in sa_proto_space_alias()
409 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_security_prop() local
412 if (ops != NULL && ops->sa_security_prop != NULL) in sa_proto_security_prop()
413 ret = ops->sa_security_prop(token); in sa_proto_security_prop()
427 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_legacy_opts() local
430 if (ops != NULL && ops->sa_legacy_opts != NULL) in sa_proto_legacy_opts()
431 ret = ops->sa_legacy_opts(group, options); in sa_proto_legacy_opts()
445 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_legacy_format() local
448 if (ops != NULL && ops->sa_legacy_format != NULL) in sa_proto_legacy_format()
449 ret = ops->sa_legacy_format(group, hier); in sa_proto_legacy_format()
474 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_get_properties() local
477 if (ops != NULL && ops->sa_get_proto_set != NULL) in sa_proto_get_properties()
478 props = ops->sa_get_proto_set(); in sa_proto_get_properties()
491 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_set_property() local
494 if (ops != NULL && ops->sa_set_proto_prop != NULL) in sa_proto_set_property()
495 ret = ops->sa_set_proto_prop(prop); in sa_proto_set_property()
509 struct sa_plugin_ops *ops = find_protocol(proto); in sa_valid_protocol() local
510 return (ops != NULL); in sa_valid_protocol()
520 struct sa_plugin_ops *ops = find_protocol(proto); in sa_get_protocol_status() local
522 if (ops != NULL && ops->sa_get_proto_status != NULL) in sa_get_protocol_status()
523 ret = ops->sa_get_proto_status(proto); in sa_get_protocol_status()
537 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_update_legacy() local
540 if (ops != NULL) { in sa_proto_update_legacy()
541 if (ops->sa_update_legacy != NULL) in sa_proto_update_legacy()
542 ret = ops->sa_update_legacy(share); in sa_proto_update_legacy()
556 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_delete_legacy() local
559 if (ops != NULL) { in sa_proto_delete_legacy()
560 if (ops->sa_delete_legacy != NULL) in sa_proto_delete_legacy()
561 ret = ops->sa_delete_legacy(share); in sa_proto_delete_legacy()
581 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_delete_section() local
584 if (ops != NULL) { in sa_proto_delete_section()
585 if (ops->sa_delete_proto_section != NULL) in sa_proto_delete_section()
586 ret = ops->sa_delete_proto_section(section); in sa_proto_delete_section()
605 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_change_notify() local
608 if (ops != NULL) { in sa_proto_change_notify()
609 if (ops->sa_change_notify != NULL) in sa_proto_change_notify()
610 ret = ops->sa_change_notify(share); in sa_proto_change_notify()
627 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_notify_resource() local
630 if (ops != NULL) { in sa_proto_notify_resource()
631 if (ops->sa_notify_resource != NULL) in sa_proto_notify_resource()
632 ret = ops->sa_notify_resource(resource); in sa_proto_notify_resource()
651 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_get_featureset() local
654 if (ops != NULL) { in sa_proto_get_featureset()
655 if (ops->sa_features != NULL) in sa_proto_get_featureset()
656 ret = ops->sa_features(); in sa_proto_get_featureset()
678 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_get_transients() local
681 if (ops != NULL) { in sa_proto_get_transients()
682 if (ops->sa_get_transient_shares != NULL) in sa_proto_get_transients()
683 ret = ops->sa_get_transient_shares(handle); in sa_proto_get_transients()
700 struct sa_plugin_ops *ops = find_protocol(proto); in sa_proto_rename_resource() local
703 if (ops != NULL) { in sa_proto_rename_resource()
704 if (ops->sa_rename_resource != NULL) in sa_proto_rename_resource()
705 ret = ops->sa_rename_resource(handle, resource, in sa_proto_rename_resource()