Lines Matching refs:attribute
528 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_show() local
530 if (!attribute->param->ops->get) in param_attr_show()
534 count = attribute->param->ops->get(buf, attribute->param); in param_attr_show()
549 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_store() local
551 if (!attribute->param->ops->set) in param_attr_store()
555 err = attribute->param->ops->set(buf, attribute->param); in param_attr_store()
597 struct attribute **attrs; in add_sysfs_param()
857 struct attribute *attr, in module_attr_show()
860 struct module_attribute *attribute; in module_attr_show() local
864 attribute = to_module_attr(attr); in module_attr_show()
867 if (!attribute->show) in module_attr_show()
870 ret = attribute->show(attribute, mk, buf); in module_attr_show()
876 struct attribute *attr, in module_attr_store()
879 struct module_attribute *attribute; in module_attr_store() local
883 attribute = to_module_attr(attr); in module_attr_store()
886 if (!attribute->store) in module_attr_store()
889 ret = attribute->store(attribute, mk, buf, len); in module_attr_store()