Lines Matching refs:attribute
596 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_show() local
598 if (!attribute->param->ops->get) in param_attr_show()
602 count = attribute->param->ops->get(buf, attribute->param); in param_attr_show()
617 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_store() local
619 if (!attribute->param->ops->set) in param_attr_store()
623 param_check_unsafe(attribute->param); in param_attr_store()
624 err = attribute->param->ops->set(buf, attribute->param); in param_attr_store()
667 struct attribute **new_attrs; in add_sysfs_param()
926 struct attribute *attr, in module_attr_show()
929 struct module_attribute *attribute; in module_attr_show() local
933 attribute = to_module_attr(attr); in module_attr_show()
936 if (!attribute->show) in module_attr_show()
939 ret = attribute->show(attribute, mk, buf); in module_attr_show()
945 struct attribute *attr, in module_attr_store()
948 struct module_attribute *attribute; in module_attr_store() local
952 attribute = to_module_attr(attr); in module_attr_store()
955 if (!attribute->store) in module_attr_store()
958 ret = attribute->store(attribute, mk, buf, len); in module_attr_store()