Lines Matching refs:attr

158 	struct attribute attr;  member
160 struct orangefs_attribute *attr,
163 struct orangefs_attribute *attr,
169 struct attribute *attr, in orangefs_attr_show() argument
174 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_show()
181 struct attribute *attr, in orangefs_attr_store() argument
191 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_store()
203 struct orangefs_attribute *attr, char *buf) in sysfs_int_show() argument
211 if (!strcmp(attr->attr.name, "op_timeout_secs")) { in sysfs_int_show()
217 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
224 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
231 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
243 if (!strcmp(attr->attr.name, "reads")) { in sysfs_int_show()
249 } else if (!strcmp(attr->attr.name, "writes")) { in sysfs_int_show()
266 struct orangefs_attribute *attr, const char *buf, size_t count) in sysfs_int_store() argument
272 attr->attr.name, buf); in sysfs_int_store()
274 if (!strcmp(attr->attr.name, "op_timeout_secs")) { in sysfs_int_store()
277 } else if (!strcmp(attr->attr.name, "slot_timeout_secs")) { in sysfs_int_store()
280 } else if (!strcmp(attr->attr.name, "dcache_timeout_msecs")) { in sysfs_int_store()
283 } else if (!strcmp(attr->attr.name, "getattr_timeout_msecs")) { in sysfs_int_store()
303 struct orangefs_attribute *attr, char *buf) in sysfs_service_op_show() argument
338 (!strcmp(attr->attr.name, "readahead_count") || in sysfs_service_op_show()
339 !strcmp(attr->attr.name, "readahead_size") || in sysfs_service_op_show()
340 !strcmp(attr->attr.name, "readahead_count_size") || in sysfs_service_op_show()
341 !strcmp(attr->attr.name, "readahead_readcnt"))) { in sysfs_service_op_show()
346 if (!strcmp(attr->attr.name, "perf_history_size")) in sysfs_service_op_show()
349 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
353 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
358 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
363 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
368 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
373 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
378 if (!strcmp(attr->attr.name, "timeout_msecs")) in sysfs_service_op_show()
382 if (!strcmp(attr->attr.name, "hard_limit")) in sysfs_service_op_show()
386 if (!strcmp(attr->attr.name, "soft_limit")) in sysfs_service_op_show()
390 if (!strcmp(attr->attr.name, "reclaim_percentage")) in sysfs_service_op_show()
395 if (!strcmp(attr->attr.name, "timeout_secs")) in sysfs_service_op_show()
399 if (!strcmp(attr->attr.name, "hard_limit")) in sysfs_service_op_show()
403 if (!strcmp(attr->attr.name, "soft_limit")) in sysfs_service_op_show()
407 if (!strcmp(attr->attr.name, "reclaim_percentage")) in sysfs_service_op_show()
412 if (!strcmp(attr->attr.name, "timeout_secs")) in sysfs_service_op_show()
416 if (!strcmp(attr->attr.name, "hard_limit")) in sysfs_service_op_show()
420 if (!strcmp(attr->attr.name, "soft_limit")) in sysfs_service_op_show()
424 if (!strcmp(attr->attr.name, "reclaim_percentage")) in sysfs_service_op_show()
429 if (!strcmp(attr->attr.name, "timeout_msecs")) in sysfs_service_op_show()
433 if (!strcmp(attr->attr.name, "hard_limit")) in sysfs_service_op_show()
437 if (!strcmp(attr->attr.name, "soft_limit")) in sysfs_service_op_show()
441 if (!strcmp(attr->attr.name, "reclaim_percentage")) in sysfs_service_op_show()
446 if (!strcmp(attr->attr.name, ACACHE_KOBJ_ID)) in sysfs_service_op_show()
450 if (!strcmp(attr->attr.name, CAPCACHE_KOBJ_ID)) in sysfs_service_op_show()
454 if (!strcmp(attr->attr.name, NCACHE_KOBJ_ID)) in sysfs_service_op_show()
518 struct orangefs_attribute *attr, const char *buf, size_t count) in sysfs_service_op_store() argument
546 strcmp(attr->attr.name, "readahead_count_size")) { in sysfs_service_op_store()
557 (!strcmp(attr->attr.name, "readahead_count") || in sysfs_service_op_store()
558 !strcmp(attr->attr.name, "readahead_size") || in sysfs_service_op_store()
559 !strcmp(attr->attr.name, "readahead_count_size") || in sysfs_service_op_store()
560 !strcmp(attr->attr.name, "readahead_readcnt"))) { in sysfs_service_op_store()
565 if (!strcmp(attr->attr.name, "perf_history_size")) { in sysfs_service_op_store()
573 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
582 } else if (!strcmp(attr->attr.name, 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()
627 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
639 if (!strcmp(attr->attr.name, "hard_limit")) { in sysfs_service_op_store()
647 } else if (!strcmp(attr->attr.name, "soft_limit")) { in sysfs_service_op_store()
655 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
664 } else if (!strcmp(attr->attr.name, "timeout_msecs")) { in sysfs_service_op_store()
675 if (!strcmp(attr->attr.name, "hard_limit")) { in sysfs_service_op_store()
683 } else if (!strcmp(attr->attr.name, "soft_limit")) { in sysfs_service_op_store()
691 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
700 } else if (!strcmp(attr->attr.name, "timeout_secs")) { in sysfs_service_op_store()
711 if (!strcmp(attr->attr.name, "hard_limit")) { in sysfs_service_op_store()
719 } else if (!strcmp(attr->attr.name, "soft_limit")) { in sysfs_service_op_store()
727 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
736 } else if (!strcmp(attr->attr.name, "timeout_secs")) { in sysfs_service_op_store()
747 if (!strcmp(attr->attr.name, "hard_limit")) { in sysfs_service_op_store()
755 } else if (!strcmp(attr->attr.name, "soft_limit")) { in sysfs_service_op_store()
763 } else if (!strcmp(attr->attr.name, in sysfs_service_op_store()
772 } else if (!strcmp(attr->attr.name, "timeout_msecs")) { in sysfs_service_op_store()
862 &op_timeout_secs_attribute.attr,
863 &slot_timeout_secs_attribute.attr,
864 &dcache_timeout_msecs_attribute.attr,
865 &getattr_timeout_msecs_attribute.attr,
866 &readahead_count_attribute.attr,
867 &readahead_size_attribute.attr,
868 &readahead_count_size_attribute.attr,
869 &readahead_readcnt_attribute.attr,
870 &perf_counter_reset_attribute.attr,
871 &perf_history_size_attribute.attr,
872 &perf_time_interval_secs_attribute.attr,
906 &acache_hard_limit_attribute.attr,
907 &acache_reclaim_percent_attribute.attr,
908 &acache_soft_limit_attribute.attr,
909 &acache_timeout_msecs_attribute.attr,
943 &capcache_hard_limit_attribute.attr,
944 &capcache_reclaim_percent_attribute.attr,
945 &capcache_soft_limit_attribute.attr,
946 &capcache_timeout_secs_attribute.attr,
980 &ccache_hard_limit_attribute.attr,
981 &ccache_reclaim_percent_attribute.attr,
982 &ccache_soft_limit_attribute.attr,
983 &ccache_timeout_secs_attribute.attr,
1017 &ncache_hard_limit_attribute.attr,
1018 &ncache_reclaim_percent_attribute.attr,
1019 &ncache_soft_limit_attribute.attr,
1020 &ncache_timeout_msecs_attribute.attr,
1048 &pc_acache_attribute.attr,
1049 &pc_capcache_attribute.attr,
1050 &pc_ncache_attribute.attr,
1072 &stats_reads_attribute.attr,
1073 &stats_writes_attribute.attr,