Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 4 of 4) sorted by relevance

/lib/
Dfault-inject.c18 int setup_fault_attr(struct fault_attr *attr, char *str) in setup_fault_attr() argument
33 attr->probability = probability; in setup_fault_attr()
34 attr->interval = interval; in setup_fault_attr()
35 atomic_set(&attr->times, times); in setup_fault_attr()
36 atomic_set(&attr->space, space); in setup_fault_attr()
42 static void fail_dump(struct fault_attr *attr) in fail_dump() argument
44 if (attr->verbose > 0 && __ratelimit(&attr->ratelimit_state)) { in fail_dump()
47 "space %d, times %d\n", attr->dname, in fail_dump()
48 attr->interval, attr->probability, in fail_dump()
49 atomic_read(&attr->space), in fail_dump()
[all …]
Dtest_firmware.c198 struct device_attribute *attr, in reset_store() argument
226 struct device_attribute *attr, in config_show() argument
269 struct device_attribute *attr, in config_name_store() argument
368 struct device_attribute *attr, in config_name_show() argument
376 struct device_attribute *attr, in config_num_requests_store() argument
398 struct device_attribute *attr, in config_num_requests_show() argument
406 struct device_attribute *attr, in config_into_buf_store() argument
415 struct device_attribute *attr, in config_into_buf_show() argument
423 struct device_attribute *attr, in config_sync_direct_store() argument
437 struct device_attribute *attr, in config_sync_direct_show() argument
[all …]
Dtest_kmod.c460 struct device_attribute *attr, in config_show() argument
565 struct device_attribute *attr, in trigger_config_store() argument
653 struct device_attribute *attr, in config_test_driver_store() argument
688 struct device_attribute *attr, in config_test_driver_show() argument
700 struct device_attribute *attr, in config_test_fs_store() argument
719 struct device_attribute *attr, in config_test_fs_show() argument
846 struct device_attribute *attr, in reset_store() argument
983 struct device_attribute *attr, in test_result_store() argument
994 struct device_attribute *attr, in config_num_threads_store() argument
1006 struct device_attribute *attr, in config_num_threads_show() argument
[all …]
Dkobject.c69 struct attribute *attr; in populate_dir() local
74 for (i = 0; (attr = t->default_attrs[i]) != NULL; i++) { in populate_dir()
75 error = sysfs_create_file(kobj, attr); in populate_dir()
822 static ssize_t kobj_attr_show(struct kobject *kobj, struct attribute *attr, in kobj_attr_show() argument
828 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_show()
834 static ssize_t kobj_attr_store(struct kobject *kobj, struct attribute *attr, in kobj_attr_store() argument
840 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_store()