Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 5 of 5) 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 …]
Dfault-inject-usercopy.c6 struct fault_attr attr; member
8 .attr = FAULT_ATTR_INITIALIZER,
13 return setup_fault_attr(&fail_usercopy.attr, str); in setup_fail_usercopy()
24 &fail_usercopy.attr); in fail_usercopy_debugfs()
37 return should_fail(&fail_usercopy.attr, 1); in should_fail_usercopy()
Dtest_firmware.c218 struct device_attribute *attr, in reset_store() argument
246 struct device_attribute *attr, in config_show() argument
296 struct device_attribute *attr, in config_name_store() argument
414 struct device_attribute *attr, in config_name_show() argument
422 struct device_attribute *attr, in config_num_requests_store() argument
444 struct device_attribute *attr, in config_num_requests_show() argument
452 struct device_attribute *attr, in config_into_buf_store() argument
461 struct device_attribute *attr, in config_into_buf_show() argument
469 struct device_attribute *attr, in config_buf_size_store() argument
491 struct device_attribute *attr, in config_buf_size_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
977 struct device_attribute *attr, in test_result_store() argument
988 struct device_attribute *attr, in config_num_threads_store() argument
1000 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()
844 static ssize_t kobj_attr_show(struct kobject *kobj, struct attribute *attr, in kobj_attr_show() argument
850 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_show()
856 static ssize_t kobj_attr_store(struct kobject *kobj, struct attribute *attr, in kobj_attr_store() argument
862 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_store()