Lines Matching refs:attribute
565 const struct param_attribute *attribute = to_param_attr(mattr); in param_attr_show() local
567 if (!attribute->param->ops->get) in param_attr_show()
571 count = attribute->param->ops->get(buf, attribute->param); in param_attr_show()
582 const struct param_attribute *attribute = to_param_attr(mattr); in param_attr_store() local
584 if (!attribute->param->ops->set) in param_attr_store()
588 if (param_check_unsafe(attribute->param)) in param_attr_store()
589 err = attribute->param->ops->set(buf, attribute->param); in param_attr_store()
628 struct attribute **new_attrs; in add_sysfs_param()
881 struct attribute *attr, in module_attr_show()
884 const struct module_attribute *attribute; in module_attr_show() local
888 attribute = to_module_attr(attr); in module_attr_show()
891 if (!attribute->show) in module_attr_show()
894 ret = attribute->show(attribute, mk, buf); in module_attr_show()
900 struct attribute *attr, in module_attr_store()
903 const struct module_attribute *attribute; in module_attr_store() local
907 attribute = to_module_attr(attr); in module_attr_store()
910 if (!attribute->store) in module_attr_store()
913 ret = attribute->store(attribute, mk, buf, len); in module_attr_store()