Lines Matching refs:attr

166 	struct attribute attr;  member
168 struct orangefs_attribute *attr,
171 struct orangefs_attribute *attr,
177 struct attribute *attr, in orangefs_attr_show() argument
182 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_show()
189 struct attribute *attr, in orangefs_attr_store() argument
199 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_store()
211 struct orangefs_attribute *attr, char *buf) in sysfs_int_show() argument
219 if (!strcmp(attr->attr.name, "op_timeout_secs")) { in sysfs_int_show()
225 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
232 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
239 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
246 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
258 if (!strcmp(attr->attr.name, "reads")) { in sysfs_int_show()
264 } else if (!strcmp(attr->attr.name, "writes")) { in sysfs_int_show()
281 struct orangefs_attribute *attr, const char *buf, size_t count) in sysfs_int_store() argument
287 attr->attr.name, buf); in sysfs_int_store()
289 if (!strcmp(attr->attr.name, "op_timeout_secs")) { in sysfs_int_store()
292 } else if (!strcmp(attr->attr.name, "slot_timeout_secs")) { in sysfs_int_store()
295 } else if (!strcmp(attr->attr.name, "cache_timeout_msecs")) { in sysfs_int_store()
298 } else if (!strcmp(attr->attr.name, "dcache_timeout_msecs")) { in sysfs_int_store()
301 } else if (!strcmp(attr->attr.name, "getattr_timeout_msecs")) { in sysfs_int_store()
321 struct orangefs_attribute *attr, char *buf) in sysfs_service_op_show() argument
356 (!strcmp(attr->attr.name, "readahead_count") || in sysfs_service_op_show()
357 !strcmp(attr->attr.name, "readahead_size") || in sysfs_service_op_show()
358 !strcmp(attr->attr.name, "readahead_count_size") || in sysfs_service_op_show()
359 !strcmp(attr->attr.name, "readahead_readcnt"))) { in sysfs_service_op_show()
364 if (!strcmp(attr->attr.name, "perf_history_size")) in sysfs_service_op_show()
367 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
371 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
376 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
381 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
386 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
391 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
396 if (!strcmp(attr->attr.name, "timeout_msecs")) in sysfs_service_op_show()
400 if (!strcmp(attr->attr.name, "hard_limit")) in sysfs_service_op_show()
404 if (!strcmp(attr->attr.name, "soft_limit")) in sysfs_service_op_show()
408 if (!strcmp(attr->attr.name, "reclaim_percentage")) in sysfs_service_op_show()
413 if (!strcmp(attr->attr.name, "timeout_secs")) in sysfs_service_op_show()
417 if (!strcmp(attr->attr.name, "hard_limit")) in sysfs_service_op_show()
421 if (!strcmp(attr->attr.name, "soft_limit")) in sysfs_service_op_show()
425 if (!strcmp(attr->attr.name, "reclaim_percentage")) in sysfs_service_op_show()
430 if (!strcmp(attr->attr.name, "timeout_secs")) in sysfs_service_op_show()
434 if (!strcmp(attr->attr.name, "hard_limit")) in sysfs_service_op_show()
438 if (!strcmp(attr->attr.name, "soft_limit")) in sysfs_service_op_show()
442 if (!strcmp(attr->attr.name, "reclaim_percentage")) in sysfs_service_op_show()
447 if (!strcmp(attr->attr.name, "timeout_msecs")) in sysfs_service_op_show()
451 if (!strcmp(attr->attr.name, "hard_limit")) in sysfs_service_op_show()
455 if (!strcmp(attr->attr.name, "soft_limit")) in sysfs_service_op_show()
459 if (!strcmp(attr->attr.name, "reclaim_percentage")) in sysfs_service_op_show()
464 if (!strcmp(attr->attr.name, ACACHE_KOBJ_ID)) in sysfs_service_op_show()
468 if (!strcmp(attr->attr.name, CAPCACHE_KOBJ_ID)) in sysfs_service_op_show()
472 if (!strcmp(attr->attr.name, NCACHE_KOBJ_ID)) in sysfs_service_op_show()
536 struct orangefs_attribute *attr, const char *buf, size_t count) in sysfs_service_op_store() argument
564 strcmp(attr->attr.name, "readahead_count_size")) { in sysfs_service_op_store()
575 (!strcmp(attr->attr.name, "readahead_count") || in sysfs_service_op_store()
576 !strcmp(attr->attr.name, "readahead_size") || in sysfs_service_op_store()
577 !strcmp(attr->attr.name, "readahead_count_size") || in sysfs_service_op_store()
578 !strcmp(attr->attr.name, "readahead_readcnt"))) { in sysfs_service_op_store()
583 if (!strcmp(attr->attr.name, "perf_history_size")) { in sysfs_service_op_store()
591 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
600 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
609 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
618 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
627 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
645 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
657 if (!strcmp(attr->attr.name, "hard_limit")) { in sysfs_service_op_store()
665 } else if (!strcmp(attr->attr.name, "soft_limit")) { in sysfs_service_op_store()
673 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
682 } else if (!strcmp(attr->attr.name, "timeout_msecs")) { in sysfs_service_op_store()
693 if (!strcmp(attr->attr.name, "hard_limit")) { in sysfs_service_op_store()
701 } else if (!strcmp(attr->attr.name, "soft_limit")) { in sysfs_service_op_store()
709 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
718 } else if (!strcmp(attr->attr.name, "timeout_secs")) { in sysfs_service_op_store()
729 if (!strcmp(attr->attr.name, "hard_limit")) { in sysfs_service_op_store()
737 } else if (!strcmp(attr->attr.name, "soft_limit")) { in sysfs_service_op_store()
745 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
754 } else if (!strcmp(attr->attr.name, "timeout_secs")) { in sysfs_service_op_store()
765 if (!strcmp(attr->attr.name, "hard_limit")) { in sysfs_service_op_store()
773 } else if (!strcmp(attr->attr.name, "soft_limit")) { in sysfs_service_op_store()
781 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
790 } else if (!strcmp(attr->attr.name, "timeout_msecs")) { in sysfs_service_op_store()
883 &op_timeout_secs_attribute.attr,
884 &slot_timeout_secs_attribute.attr,
885 &cache_timeout_msecs_attribute.attr,
886 &dcache_timeout_msecs_attribute.attr,
887 &getattr_timeout_msecs_attribute.attr,
888 &readahead_count_attribute.attr,
889 &readahead_size_attribute.attr,
890 &readahead_count_size_attribute.attr,
891 &readahead_readcnt_attribute.attr,
892 &perf_counter_reset_attribute.attr,
893 &perf_history_size_attribute.attr,
894 &perf_time_interval_secs_attribute.attr,
938 &acache_hard_limit_attribute.attr,
939 &acache_reclaim_percent_attribute.attr,
940 &acache_soft_limit_attribute.attr,
941 &acache_timeout_msecs_attribute.attr,
985 &capcache_hard_limit_attribute.attr,
986 &capcache_reclaim_percent_attribute.attr,
987 &capcache_soft_limit_attribute.attr,
988 &capcache_timeout_secs_attribute.attr,
1032 &ccache_hard_limit_attribute.attr,
1033 &ccache_reclaim_percent_attribute.attr,
1034 &ccache_soft_limit_attribute.attr,
1035 &ccache_timeout_secs_attribute.attr,
1079 &ncache_hard_limit_attribute.attr,
1080 &ncache_reclaim_percent_attribute.attr,
1081 &ncache_soft_limit_attribute.attr,
1082 &ncache_timeout_msecs_attribute.attr,
1120 &pc_acache_attribute.attr,
1121 &pc_capcache_attribute.attr,
1122 &pc_ncache_attribute.attr,
1154 &stats_reads_attribute.attr,
1155 &stats_writes_attribute.attr,