Lines Matching refs:attr
32 struct attribute attr; member
38 static ssize_t type_show(struct hyp_sysfs_attr *attr, char *buffer) in type_show() argument
47 return sysfs_create_file(hypervisor_kobj, &type_attr.attr); in xen_sysfs_type_init()
52 sysfs_remove_file(hypervisor_kobj, &type_attr.attr); in xen_sysfs_type_destroy()
56 static ssize_t major_show(struct hyp_sysfs_attr *attr, char *buffer) in major_show() argument
66 static ssize_t minor_show(struct hyp_sysfs_attr *attr, char *buffer) in minor_show() argument
76 static ssize_t extra_show(struct hyp_sysfs_attr *attr, char *buffer) in extra_show() argument
95 &major_attr.attr,
96 &minor_attr.attr,
97 &extra_attr.attr,
118 static ssize_t uuid_show_fallback(struct hyp_sysfs_attr *attr, char *buffer) in uuid_show_fallback() argument
139 static ssize_t uuid_show(struct hyp_sysfs_attr *attr, char *buffer) in uuid_show() argument
145 return uuid_show_fallback(attr, buffer); in uuid_show()
154 return sysfs_create_file(hypervisor_kobj, &uuid_attr.attr); in xen_sysfs_uuid_init()
159 sysfs_remove_file(hypervisor_kobj, &uuid_attr.attr); in xen_sysfs_uuid_destroy()
164 static ssize_t compiler_show(struct hyp_sysfs_attr *attr, char *buffer) in compiler_show() argument
182 static ssize_t compiled_by_show(struct hyp_sysfs_attr *attr, char *buffer) in compiled_by_show() argument
200 static ssize_t compile_date_show(struct hyp_sysfs_attr *attr, char *buffer) in compile_date_show() argument
219 &compiler_attr.attr,
220 &compiled_by_attr.attr,
221 &compile_date_attr.attr,
242 static ssize_t capabilities_show(struct hyp_sysfs_attr *attr, char *buffer) in capabilities_show() argument
260 static ssize_t changeset_show(struct hyp_sysfs_attr *attr, char *buffer) in changeset_show() argument
278 static ssize_t virtual_start_show(struct hyp_sysfs_attr *attr, char *buffer) in virtual_start_show() argument
298 static ssize_t pagesize_show(struct hyp_sysfs_attr *attr, char *buffer) in pagesize_show() argument
324 static ssize_t features_show(struct hyp_sysfs_attr *attr, char *buffer) in features_show() argument
348 &capabilities_attr.attr,
349 &changeset_attr.attr,
350 &virtual_start_attr.attr,
351 &pagesize_attr.attr,
352 &features_attr.attr,
421 struct attribute *attr, in hyp_sysfs_show() argument
425 hyp_attr = container_of(attr, struct hyp_sysfs_attr, attr); in hyp_sysfs_show()
432 struct attribute *attr, in hyp_sysfs_store() argument
437 hyp_attr = container_of(attr, struct hyp_sysfs_attr, attr); in hyp_sysfs_store()