Lines Matching refs:attribute
543 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_show() local
545 if (!attribute->param->ops->get) in param_attr_show()
549 count = attribute->param->ops->get(buf, attribute->param); in param_attr_show()
560 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_store() local
562 if (!attribute->param->ops->set) in param_attr_store()
566 if (param_check_unsafe(attribute->param)) in param_attr_store()
567 err = attribute->param->ops->set(buf, attribute->param); in param_attr_store()
612 struct attribute **new_attrs; in add_sysfs_param()
871 struct attribute *attr, in module_attr_show()
874 struct module_attribute *attribute; in module_attr_show() local
878 attribute = to_module_attr(attr); in module_attr_show()
881 if (!attribute->show) in module_attr_show()
884 ret = attribute->show(attribute, mk, buf); in module_attr_show()
890 struct attribute *attr, in module_attr_store()
893 struct module_attribute *attribute; in module_attr_store() local
897 attribute = to_module_attr(attr); in module_attr_store()
900 if (!attribute->store) in module_attr_store()
903 ret = attribute->store(attribute, mk, buf, len); in module_attr_store()