Lines Matching refs:attribute
562 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_show() local
564 if (!attribute->param->ops->get) in param_attr_show()
568 count = attribute->param->ops->get(buf, attribute->param); in param_attr_show()
579 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_store() local
581 if (!attribute->param->ops->set) in param_attr_store()
585 if (param_check_unsafe(attribute->param)) in param_attr_store()
586 err = attribute->param->ops->set(buf, attribute->param); in param_attr_store()
631 struct attribute **new_attrs; in add_sysfs_param()
888 struct attribute *attr, in module_attr_show()
891 struct module_attribute *attribute; in module_attr_show() local
895 attribute = to_module_attr(attr); in module_attr_show()
898 if (!attribute->show) in module_attr_show()
901 ret = attribute->show(attribute, mk, buf); in module_attr_show()
907 struct attribute *attr, in module_attr_store()
910 struct module_attribute *attribute; in module_attr_store() local
914 attribute = to_module_attr(attr); in module_attr_store()
917 if (!attribute->store) in module_attr_store()
920 ret = attribute->store(attribute, mk, buf, len); in module_attr_store()