Lines Matching refs:attribute
537 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_show() local
539 if (!attribute->param->ops->get) in param_attr_show()
543 count = attribute->param->ops->get(buf, attribute->param); in param_attr_show()
558 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_store() local
560 if (!attribute->param->ops->set) in param_attr_store()
564 param_check_unsafe(attribute->param); in param_attr_store()
565 err = attribute->param->ops->set(buf, attribute->param); in param_attr_store()
607 struct attribute **new_attrs; in add_sysfs_param()
865 struct attribute *attr, in module_attr_show()
868 struct module_attribute *attribute; in module_attr_show() local
872 attribute = to_module_attr(attr); in module_attr_show()
875 if (!attribute->show) in module_attr_show()
878 ret = attribute->show(attribute, mk, buf); in module_attr_show()
884 struct attribute *attr, in module_attr_store()
887 struct module_attribute *attribute; in module_attr_store() local
891 attribute = to_module_attr(attr); in module_attr_store()
894 if (!attribute->store) in module_attr_store()
897 ret = attribute->store(attribute, mk, buf, len); in module_attr_store()