Lines Matching refs:attribute
561 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_show() local
563 if (!attribute->param->ops->get) in param_attr_show()
567 count = attribute->param->ops->get(buf, attribute->param); in param_attr_show()
578 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_store() local
580 if (!attribute->param->ops->set) in param_attr_store()
584 if (param_check_unsafe(attribute->param)) in param_attr_store()
585 err = attribute->param->ops->set(buf, attribute->param); in param_attr_store()
630 struct attribute **new_attrs; in add_sysfs_param()
887 struct attribute *attr, in module_attr_show()
890 struct module_attribute *attribute; in module_attr_show() local
894 attribute = to_module_attr(attr); in module_attr_show()
897 if (!attribute->show) in module_attr_show()
900 ret = attribute->show(attribute, mk, buf); in module_attr_show()
906 struct attribute *attr, in module_attr_store()
909 struct module_attribute *attribute; in module_attr_store() local
913 attribute = to_module_attr(attr); in module_attr_store()
916 if (!attribute->store) in module_attr_store()
919 ret = attribute->store(attribute, mk, buf, len); in module_attr_store()