Lines Matching refs:attribute
542 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_show() local
544 if (!attribute->param->ops->get) in param_attr_show()
548 count = attribute->param->ops->get(buf, attribute->param); in param_attr_show()
559 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_store() local
561 if (!attribute->param->ops->set) in param_attr_store()
565 if (param_check_unsafe(attribute->param)) in param_attr_store()
566 err = attribute->param->ops->set(buf, attribute->param); in param_attr_store()
611 struct attribute **new_attrs; in add_sysfs_param()
870 struct attribute *attr, in module_attr_show()
873 struct module_attribute *attribute; in module_attr_show() local
877 attribute = to_module_attr(attr); in module_attr_show()
880 if (!attribute->show) in module_attr_show()
883 ret = attribute->show(attribute, mk, buf); in module_attr_show()
889 struct attribute *attr, in module_attr_store()
892 struct module_attribute *attribute; in module_attr_store() local
896 attribute = to_module_attr(attr); in module_attr_store()
899 if (!attribute->store) in module_attr_store()
902 ret = attribute->store(attribute, mk, buf, len); in module_attr_store()