Lines Matching refs:mattr
543 struct module_attribute mattr; member
555 #define to_param_attr(n) container_of(n, struct param_attribute, mattr)
557 static ssize_t param_attr_show(struct module_attribute *mattr, in param_attr_show() argument
561 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_show()
573 static ssize_t param_attr_store(struct module_attribute *mattr, in param_attr_store() argument
578 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_store()
669 sysfs_attr_init(&mk->mp->attrs[mk->mp->num].mattr.attr); in add_sysfs_param()
671 mk->mp->attrs[mk->mp->num].mattr.show = param_attr_show; in add_sysfs_param()
674 mk->mp->attrs[mk->mp->num].mattr.store = param_attr_store; in add_sysfs_param()
676 mk->mp->attrs[mk->mp->num].mattr.store = NULL; in add_sysfs_param()
677 mk->mp->attrs[mk->mp->num].mattr.attr.name = (char *)name; in add_sysfs_param()
678 mk->mp->attrs[mk->mp->num].mattr.attr.mode = kp->perm; in add_sysfs_param()
683 mk->mp->grp.attrs[i] = &mk->mp->attrs[i].mattr.attr; in add_sysfs_param()
855 ssize_t __modver_version_show(struct module_attribute *mattr, in __modver_version_show() argument
859 container_of(mattr, struct module_version_attribute, mattr); in __modver_version_show()
876 err = sysfs_create_file(&mk->kobj, &vattr->mattr.attr); in version_sysfs_builtin()