Home
last modified time | relevance | path

Searched refs:kobj_attribute (Results 1 – 64 of 64) sorted by relevance

/linux-4.1.27/kernel/
Dksysfs.c26 static struct kobj_attribute _name##_attr = __ATTR_RO(_name)
29 static struct kobj_attribute _name##_attr = \
34 struct kobj_attribute *attr, char *buf) in uevent_seqnum_show()
43 struct kobj_attribute *attr, char *buf) in uevent_helper_show()
48 struct kobj_attribute *attr, in uevent_helper_store()
64 struct kobj_attribute *attr, char *buf) in profiling_show()
69 struct kobj_attribute *attr, in profiling_store()
95 struct kobj_attribute *attr, char *buf) in kexec_loaded_show()
102 struct kobj_attribute *attr, char *buf) in kexec_crash_loaded_show()
109 struct kobj_attribute *attr, char *buf) in kexec_crash_size_show()
[all …]
/linux-4.1.27/drivers/staging/speakup/
Dspeakup_ltlk.c52 static struct kobj_attribute caps_start_attribute =
54 static struct kobj_attribute caps_stop_attribute =
56 static struct kobj_attribute freq_attribute =
58 static struct kobj_attribute pitch_attribute =
60 static struct kobj_attribute punct_attribute =
62 static struct kobj_attribute rate_attribute =
64 static struct kobj_attribute tone_attribute =
66 static struct kobj_attribute voice_attribute =
68 static struct kobj_attribute vol_attribute =
71 static struct kobj_attribute delay_time_attribute =
[all …]
Dspeakup_spkout.c50 static struct kobj_attribute caps_start_attribute =
52 static struct kobj_attribute caps_stop_attribute =
54 static struct kobj_attribute pitch_attribute =
56 static struct kobj_attribute punct_attribute =
58 static struct kobj_attribute rate_attribute =
60 static struct kobj_attribute tone_attribute =
62 static struct kobj_attribute vol_attribute =
65 static struct kobj_attribute delay_time_attribute =
67 static struct kobj_attribute direct_attribute =
69 static struct kobj_attribute full_time_attribute =
[all …]
Dkobjects.c29 struct kobj_attribute *attr, char *buf) in chars_chartab_show()
109 struct kobj_attribute *attr, const char *buf, size_t count) in chars_chartab_store()
224 static ssize_t keymap_show(struct kobject *kobj, struct kobj_attribute *attr, in keymap_show()
259 static ssize_t keymap_store(struct kobject *kobj, struct kobj_attribute *attr, in keymap_store()
326 static ssize_t silent_store(struct kobject *kobj, struct kobj_attribute *attr, in silent_store()
365 static ssize_t synth_show(struct kobject *kobj, struct kobj_attribute *attr, in synth_show()
380 static ssize_t synth_store(struct kobject *kobj, struct kobj_attribute *attr, in synth_store()
407 struct kobj_attribute *attr, const char *buf, size_t count) in synth_direct_store()
433 static ssize_t version_show(struct kobject *kobj, struct kobj_attribute *attr, in version_show()
449 static ssize_t punc_show(struct kobject *kobj, struct kobj_attribute *attr, in punc_show()
[all …]
Dspeakup_txprt.c46 static struct kobj_attribute caps_start_attribute =
48 static struct kobj_attribute caps_stop_attribute =
50 static struct kobj_attribute pitch_attribute =
52 static struct kobj_attribute rate_attribute =
54 static struct kobj_attribute tone_attribute =
56 static struct kobj_attribute vol_attribute =
59 static struct kobj_attribute delay_time_attribute =
61 static struct kobj_attribute direct_attribute =
63 static struct kobj_attribute full_time_attribute =
65 static struct kobj_attribute jiffy_delta_attribute =
[all …]
Dspeakup_bns.c46 static struct kobj_attribute caps_start_attribute =
48 static struct kobj_attribute caps_stop_attribute =
50 static struct kobj_attribute pitch_attribute =
52 static struct kobj_attribute rate_attribute =
54 static struct kobj_attribute tone_attribute =
56 static struct kobj_attribute vol_attribute =
59 static struct kobj_attribute delay_time_attribute =
61 static struct kobj_attribute direct_attribute =
63 static struct kobj_attribute full_time_attribute =
65 static struct kobj_attribute jiffy_delta_attribute =
[all …]
Dspeakup_dummy.c48 static struct kobj_attribute caps_start_attribute =
50 static struct kobj_attribute caps_stop_attribute =
52 static struct kobj_attribute pitch_attribute =
54 static struct kobj_attribute rate_attribute =
56 static struct kobj_attribute tone_attribute =
58 static struct kobj_attribute vol_attribute =
61 static struct kobj_attribute delay_time_attribute =
63 static struct kobj_attribute direct_attribute =
65 static struct kobj_attribute full_time_attribute =
67 static struct kobj_attribute jiffy_delta_attribute =
[all …]
Dspeakup_acntsa.c49 static struct kobj_attribute caps_start_attribute =
51 static struct kobj_attribute caps_stop_attribute =
53 static struct kobj_attribute pitch_attribute =
55 static struct kobj_attribute rate_attribute =
57 static struct kobj_attribute tone_attribute =
59 static struct kobj_attribute vol_attribute =
62 static struct kobj_attribute delay_time_attribute =
64 static struct kobj_attribute direct_attribute =
66 static struct kobj_attribute full_time_attribute =
68 static struct kobj_attribute jiffy_delta_attribute =
[all …]
Dspeakup_audptr.c51 static struct kobj_attribute caps_start_attribute =
53 static struct kobj_attribute caps_stop_attribute =
55 static struct kobj_attribute pitch_attribute =
57 static struct kobj_attribute punct_attribute =
59 static struct kobj_attribute rate_attribute =
61 static struct kobj_attribute tone_attribute =
63 static struct kobj_attribute vol_attribute =
66 static struct kobj_attribute delay_time_attribute =
68 static struct kobj_attribute direct_attribute =
70 static struct kobj_attribute full_time_attribute =
[all …]
Dspeakup_apollo.c55 static struct kobj_attribute caps_start_attribute =
57 static struct kobj_attribute caps_stop_attribute =
59 static struct kobj_attribute lang_attribute =
61 static struct kobj_attribute pitch_attribute =
63 static struct kobj_attribute rate_attribute =
65 static struct kobj_attribute voice_attribute =
67 static struct kobj_attribute vol_attribute =
70 static struct kobj_attribute delay_time_attribute =
72 static struct kobj_attribute direct_attribute =
74 static struct kobj_attribute full_time_attribute =
[all …]
Dspeakup_decext.c73 static struct kobj_attribute caps_start_attribute =
75 static struct kobj_attribute caps_stop_attribute =
77 static struct kobj_attribute pitch_attribute =
79 static struct kobj_attribute punct_attribute =
81 static struct kobj_attribute rate_attribute =
83 static struct kobj_attribute voice_attribute =
85 static struct kobj_attribute vol_attribute =
88 static struct kobj_attribute delay_time_attribute =
90 static struct kobj_attribute direct_attribute =
92 static struct kobj_attribute full_time_attribute =
[all …]
Dspeakup_soft.c63 static struct kobj_attribute caps_start_attribute =
65 static struct kobj_attribute caps_stop_attribute =
67 static struct kobj_attribute freq_attribute =
69 static struct kobj_attribute pitch_attribute =
71 static struct kobj_attribute punct_attribute =
73 static struct kobj_attribute rate_attribute =
75 static struct kobj_attribute tone_attribute =
77 static struct kobj_attribute voice_attribute =
79 static struct kobj_attribute vol_attribute =
89 static struct kobj_attribute delay_time_attribute =
[all …]
Dspeakup_dectlk.c72 static struct kobj_attribute caps_start_attribute =
74 static struct kobj_attribute caps_stop_attribute =
76 static struct kobj_attribute pitch_attribute =
78 static struct kobj_attribute punct_attribute =
80 static struct kobj_attribute rate_attribute =
82 static struct kobj_attribute voice_attribute =
84 static struct kobj_attribute vol_attribute =
87 static struct kobj_attribute delay_time_attribute =
89 static struct kobj_attribute direct_attribute =
91 static struct kobj_attribute full_time_attribute =
[all …]
Dspeakup_dtlk.c69 static struct kobj_attribute caps_start_attribute =
71 static struct kobj_attribute caps_stop_attribute =
73 static struct kobj_attribute freq_attribute =
75 static struct kobj_attribute pitch_attribute =
77 static struct kobj_attribute punct_attribute =
79 static struct kobj_attribute rate_attribute =
81 static struct kobj_attribute tone_attribute =
83 static struct kobj_attribute voice_attribute =
85 static struct kobj_attribute vol_attribute =
88 static struct kobj_attribute delay_time_attribute =
[all …]
Dspeakup_acntpc.c64 static struct kobj_attribute caps_start_attribute =
66 static struct kobj_attribute caps_stop_attribute =
68 static struct kobj_attribute pitch_attribute =
70 static struct kobj_attribute rate_attribute =
72 static struct kobj_attribute tone_attribute =
74 static struct kobj_attribute vol_attribute =
77 static struct kobj_attribute delay_time_attribute =
79 static struct kobj_attribute direct_attribute =
81 static struct kobj_attribute full_time_attribute =
83 static struct kobj_attribute jiffy_delta_attribute =
[all …]
Dspeakup_decpc.c166 static struct kobj_attribute caps_start_attribute =
168 static struct kobj_attribute caps_stop_attribute =
170 static struct kobj_attribute pitch_attribute =
172 static struct kobj_attribute punct_attribute =
174 static struct kobj_attribute rate_attribute =
176 static struct kobj_attribute voice_attribute =
178 static struct kobj_attribute vol_attribute =
181 static struct kobj_attribute delay_time_attribute =
183 static struct kobj_attribute direct_attribute =
185 static struct kobj_attribute full_time_attribute =
[all …]
Dspeakup_keypc.c61 static struct kobj_attribute caps_start_attribute =
63 static struct kobj_attribute caps_stop_attribute =
65 static struct kobj_attribute pitch_attribute =
67 static struct kobj_attribute rate_attribute =
70 static struct kobj_attribute delay_time_attribute =
72 static struct kobj_attribute direct_attribute =
74 static struct kobj_attribute full_time_attribute =
76 static struct kobj_attribute jiffy_delta_attribute =
78 static struct kobj_attribute trigger_time_attribute =
Dspk_priv.h59 ssize_t spk_var_show(struct kobject *kobj, struct kobj_attribute *attr,
61 ssize_t spk_var_store(struct kobject *kobj, struct kobj_attribute *attr,
/linux-4.1.27/kernel/power/
Dmain.c51 static ssize_t pm_async_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_show()
57 static ssize_t pm_async_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_async_store()
86 static ssize_t pm_test_show(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_show()
107 static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr, in pm_test_store()
248 struct kobj_attribute *attr, char *buf) in pm_print_times_show()
254 struct kobj_attribute *attr, in pm_print_times_store()
291 static ssize_t state_show(struct kobject *kobj, struct kobj_attribute *attr, in state_show()
338 static ssize_t state_store(struct kobject *kobj, struct kobj_attribute *attr, in state_store()
398 struct kobj_attribute *attr, in wakeup_count_show()
408 struct kobj_attribute *attr, in wakeup_count_store()
[all …]
Dhibernate.c906 static ssize_t disk_show(struct kobject *kobj, struct kobj_attribute *attr, in disk_show()
940 static ssize_t disk_store(struct kobject *kobj, struct kobj_attribute *attr, in disk_store()
990 static ssize_t resume_show(struct kobject *kobj, struct kobj_attribute *attr, in resume_show()
997 static ssize_t resume_store(struct kobject *kobj, struct kobj_attribute *attr, in resume_store()
1026 static ssize_t image_size_show(struct kobject *kobj, struct kobj_attribute *attr, in image_size_show()
1032 static ssize_t image_size_store(struct kobject *kobj, struct kobj_attribute *attr, in image_size_store()
1048 struct kobj_attribute *attr, char *buf) in reserved_size_show()
1054 struct kobj_attribute *attr, in reserved_size_store()
Dpower.h71 static struct kobj_attribute _name##_attr = { \
/linux-4.1.27/samples/kobject/
Dkobject-example.c30 static ssize_t foo_show(struct kobject *kobj, struct kobj_attribute *attr, in foo_show()
36 static ssize_t foo_store(struct kobject *kobj, struct kobj_attribute *attr, in foo_store()
49 static struct kobj_attribute foo_attribute =
56 static ssize_t b_show(struct kobject *kobj, struct kobj_attribute *attr, in b_show()
68 static ssize_t b_store(struct kobject *kobj, struct kobj_attribute *attr, in b_store()
84 static struct kobj_attribute baz_attribute =
86 static struct kobj_attribute bar_attribute =
/linux-4.1.27/fs/btrfs/
Dsysfs.h24 static struct kobj_attribute btrfs_attr_##_name = \
28 static struct kobj_attribute btrfs_attr_##_name = \
34 static struct kobj_attribute btrfs_raid_attr_##_name = \
41 struct kobj_attribute kobj_attr;
65 to_btrfs_feature_attr(struct kobj_attribute *a) in to_btrfs_feature_attr()
70 static inline struct kobj_attribute *attr_to_btrfs_attr(struct attribute *attr) in attr_to_btrfs_attr()
72 return container_of(attr, struct kobj_attribute, attr); in attr_to_btrfs_attr()
Dsysfs.c93 struct kobj_attribute *a, char *buf) in btrfs_feature_attr_show()
109 struct kobj_attribute *a, in btrfs_feature_attr_store()
236 struct kobj_attribute *ka, char *buf) in global_rsv_size_show()
245 struct kobj_attribute *a, char *buf) in global_rsv_reserved_show()
257 struct kobj_attribute *attr, char *buf);
262 struct kobj_attribute *attr, char *buf) in raid_bytes_show()
300 struct kobj_attribute *a, \
309 struct kobj_attribute *a, in btrfs_space_info_show_total_bytes_pinned()
360 struct kobj_attribute *a, char *buf) in btrfs_label_show()
368 struct kobj_attribute *a, in btrfs_label_store()
[all …]
/linux-4.1.27/drivers/s390/char/
Dsclp_cpi_sys.c222 struct kobj_attribute *attr, char *page) in system_name_show()
233 struct kobj_attribute *attr, in system_name_store()
250 static struct kobj_attribute system_name_attr =
254 struct kobj_attribute *attr, char *page) in sysplex_name_show()
265 struct kobj_attribute *attr, in sysplex_name_store()
282 static struct kobj_attribute sysplex_name_attr =
286 struct kobj_attribute *attr, char *page) in system_type_show()
297 struct kobj_attribute *attr, in system_type_store()
314 static struct kobj_attribute system_type_attr =
318 struct kobj_attribute *attr, char *page) in system_level_show()
[all …]
Dsclp_ocf.c89 struct kobj_attribute *attr, char *page) in cpc_name_show()
99 static struct kobj_attribute cpc_name_attr =
103 struct kobj_attribute *attr, char *page) in hmc_network_show()
113 static struct kobj_attribute hmc_network_attr =
/linux-4.1.27/drivers/pci/hotplug/
Drpadlpar_sysfs.c32 static ssize_t add_slot_store(struct kobject *kobj, struct kobj_attribute *attr, in add_slot_store()
57 struct kobj_attribute *attr, char *buf) in add_slot_show()
63 struct kobj_attribute *attr, in remove_slot_store()
88 struct kobj_attribute *attr, char *buf) in remove_slot_show()
93 static struct kobj_attribute add_slot_attr =
96 static struct kobj_attribute remove_slot_attr =
/linux-4.1.27/arch/s390/kernel/
Dipl.c187 struct kobj_attribute *attr, \
195 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
201 struct kobj_attribute *attr, \
210 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
218 struct kobj_attribute *attr, \
225 static struct kobj_attribute sys_##_prefix##_##_name##_attr = \
264 static ssize_t ipl_type_show(struct kobject *kobj, struct kobj_attribute *attr, in ipl_type_show()
270 static struct kobj_attribute sys_ipl_type_attr = __ATTR_RO(ipl_type);
318 struct kobj_attribute *attr, char *page) in ipl_vm_parm_show()
381 static struct kobj_attribute sys_ipl_vm_parm_attr =
[all …]
/linux-4.1.27/arch/x86/platform/uv/
Duv_sysfs.c29 struct kobj_attribute *attr, char *buf) in partition_id_show()
35 struct kobj_attribute *attr, char *buf) in coherence_id_show()
40 static struct kobj_attribute partition_id_attr =
43 static struct kobj_attribute coherence_id_attr =
/linux-4.1.27/arch/powerpc/kernel/
Dcacheinfo.c523 struct kobj_attribute *kobj_attr; in cache_index_show()
525 kobj_attr = container_of(attr, struct kobj_attribute, attr); in cache_index_show()
539 static ssize_t size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in size_show()
552 static struct kobj_attribute cache_size_attr =
556 static ssize_t line_size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in line_size_show()
569 static struct kobj_attribute cache_line_size_attr =
572 static ssize_t nr_sets_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in nr_sets_show()
585 static struct kobj_attribute cache_nr_sets_attr =
588 static ssize_t associativity_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in associativity_show()
601 static struct kobj_attribute cache_assoc_attr =
[all …]
Dfadump.c1097 struct kobj_attribute *attr, in fadump_release_memory_store()
1117 struct kobj_attribute *attr, in fadump_enabled_show()
1124 struct kobj_attribute *attr, in fadump_register_show()
1131 struct kobj_attribute *attr, in fadump_register_store()
1229 static struct kobj_attribute fadump_release_attr = __ATTR(fadump_release_mem,
1232 static struct kobj_attribute fadump_attr = __ATTR(fadump_enabled,
1235 static struct kobj_attribute fadump_register_attr = __ATTR(fadump_registered,
/linux-4.1.27/drivers/parisc/
Dpdc_stable.c123 struct kobj_attribute pdcs_attr_##_name = { \
529 struct kobj_attribute *attr, in pdcs_size_read()
549 struct kobj_attribute *attr, in pdcs_auto_read()
574 struct kobj_attribute *attr, char *buf) in pdcs_autoboot_read()
584 struct kobj_attribute *attr, char *buf) in pdcs_autosearch_read()
596 struct kobj_attribute *attr, char *buf) in pdcs_timer_read()
621 struct kobj_attribute *attr, char *buf) in pdcs_osid_read()
641 struct kobj_attribute *attr, char *buf) in pdcs_osdep1_read()
667 struct kobj_attribute *attr, char *buf) in pdcs_diagnostic_read()
691 struct kobj_attribute *attr, char *buf) in pdcs_fastsize_read()
[all …]
/linux-4.1.27/arch/powerpc/platforms/powernv/
Dopal-flash.c155 struct kobj_attribute *attr, char *buf) in validate_show()
195 struct kobj_attribute *attr, in validate_store()
240 struct kobj_attribute *attr, char *buf) in manage_show()
257 struct kobj_attribute *attr, in manage_store()
351 struct kobj_attribute *attr, char *buf) in update_show()
363 struct kobj_attribute *attr, in update_store()
529 static struct kobj_attribute validate_attribute =
532 static struct kobj_attribute manage_attribute =
535 static struct kobj_attribute update_attribute =
Dopal-sysparam.c39 struct kobj_attribute kobj_attr;
111 struct kobj_attribute *kobj_attr, char *buf) in sys_param_show()
132 struct kobj_attribute *kobj_attr, const char *buf, size_t count) in sys_param_store()
/linux-4.1.27/arch/powerpc/platforms/pseries/
Dpower.c33 struct kobj_attribute *attr, char *buf) in auto_poweron_show()
39 struct kobj_attribute *attr, in auto_poweron_store()
53 static struct kobj_attribute auto_poweron_attr =
/linux-4.1.27/fs/ocfs2/
Dstackglue.c483 struct kobj_attribute *attr, in ocfs2_max_locking_protocol_show()
498 static struct kobj_attribute ocfs2_attr_max_locking_protocol =
503 struct kobj_attribute *attr, in ocfs2_loaded_cluster_plugins_show()
530 static struct kobj_attribute ocfs2_attr_loaded_cluster_plugins =
535 struct kobj_attribute *attr, in ocfs2_active_cluster_plugin_show()
552 static struct kobj_attribute ocfs2_attr_active_cluster_plugin =
557 struct kobj_attribute *attr, in ocfs2_cluster_stack_show()
569 struct kobj_attribute *attr, in ocfs2_cluster_stack_store()
601 static struct kobj_attribute ocfs2_attr_cluster_stack =
609 struct kobj_attribute *attr, in ocfs2_dlm_recover_show()
[all …]
/linux-4.1.27/drivers/firmware/efi/
Defi.c79 struct kobj_attribute *attr, char *buf) in systab_show()
106 static struct kobj_attribute efi_attr_systab =
113 struct kobj_attribute *attr, char *buf) \
123 struct kobj_attribute *attr, char *buf) in fw_platform_size_show()
128 static struct kobj_attribute efi_attr_fw_vendor = __ATTR_RO(fw_vendor);
129 static struct kobj_attribute efi_attr_runtime = __ATTR_RO(runtime);
130 static struct kobj_attribute efi_attr_config_table = __ATTR_RO(config_table);
131 static struct kobj_attribute efi_attr_fw_platform_size =
/linux-4.1.27/mm/
Dhuge_memory.c244 struct kobj_attribute *attr, char *buf, in double_flag_show()
257 struct kobj_attribute *attr, in double_flag_store()
281 struct kobj_attribute *attr, char *buf) in enabled_show()
288 struct kobj_attribute *attr, in enabled_store()
310 static struct kobj_attribute enabled_attr =
314 struct kobj_attribute *attr, char *buf, in single_flag_show()
322 struct kobj_attribute *attr, in single_flag_store()
349 struct kobj_attribute *attr, char *buf) in defrag_show()
356 struct kobj_attribute *attr, in defrag_store()
363 static struct kobj_attribute defrag_attr =
[all …]
Dksm.c2079 static struct kobj_attribute _name##_attr = __ATTR_RO(_name)
2081 static struct kobj_attribute _name##_attr = \
2085 struct kobj_attribute *attr, char *buf) in sleep_millisecs_show()
2091 struct kobj_attribute *attr, in sleep_millisecs_store()
2108 struct kobj_attribute *attr, char *buf) in pages_to_scan_show()
2114 struct kobj_attribute *attr, in pages_to_scan_store()
2130 static ssize_t run_show(struct kobject *kobj, struct kobj_attribute *attr, in run_show()
2136 static ssize_t run_store(struct kobject *kobj, struct kobj_attribute *attr, in run_store()
2180 struct kobj_attribute *attr, char *buf) in merge_across_nodes_show()
2186 struct kobj_attribute *attr, in merge_across_nodes_store()
[all …]
Dhugetlb.c1806 static struct kobj_attribute _name##_attr = __ATTR_RO(_name)
1809 static struct kobj_attribute _name##_attr = \
1832 struct kobj_attribute *attr, char *buf) in nr_hugepages_show_common()
1907 struct kobj_attribute *attr, char *buf) in nr_hugepages_show()
1913 struct kobj_attribute *attr, const char *buf, size_t len) in nr_hugepages_store()
1926 struct kobj_attribute *attr, char *buf) in nr_hugepages_mempolicy_show()
1932 struct kobj_attribute *attr, const char *buf, size_t len) in nr_hugepages_mempolicy_store()
1941 struct kobj_attribute *attr, char *buf) in nr_overcommit_hugepages_show()
1948 struct kobj_attribute *attr, const char *buf, size_t count) in nr_overcommit_hugepages_store()
1970 struct kobj_attribute *attr, char *buf) in free_hugepages_show()
[all …]
/linux-4.1.27/fs/ocfs2/cluster/
Dsys.c38 static ssize_t version_show(struct kobject *kobj, struct kobj_attribute *attr, in version_show()
43 static struct kobj_attribute attr_version =
/linux-4.1.27/drivers/acpi/
Dsysfs.c430 static struct kobj_attribute *counter_attrs;
516 struct kobj_attribute *attr, char *buf) in counter_show()
560 struct kobj_attribute *attr, const char *buf, in counter_set()
653 counter_attrs = kzalloc(sizeof(struct kobj_attribute) * (num_counters), in acpi_irq_stats_init()
727 struct kobj_attribute *attr, char *buf) in hotplug_enabled_show()
735 struct kobj_attribute *attr, in hotplug_enabled_store()
748 static struct kobj_attribute hotplug_enabled_attr =
783 struct kobj_attribute *attr, char *buf) in force_remove_show()
789 struct kobj_attribute *attr, in force_remove_store()
805 static const struct kobj_attribute force_remove_attr =
/linux-4.1.27/arch/x86/platform/olpc/
Dolpc-xo15-sci.c56 lid_wake_on_close_show(struct kobject *s, struct kobj_attribute *attr, char *buf) in lid_wake_on_close_show()
62 struct kobj_attribute *attr, in lid_wake_on_close_store()
75 static struct kobj_attribute lid_wake_on_close_attr =
/linux-4.1.27/include/linux/
Dkobject.h138 struct kobj_attribute { struct
140 ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr, argument
142 ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr, argument
/linux-4.1.27/arch/x86/kernel/
Dksysfs.c24 struct kobj_attribute *attr, char *buf) in version_show()
29 static struct kobj_attribute boot_params_version_attr = __ATTR_RO(version);
117 struct kobj_attribute *attr, char *buf) in type_show()
185 static struct kobj_attribute type_attr = __ATTR_RO(type);
/linux-4.1.27/arch/mips/alchemy/devboards/
Dpm.c118 struct kobj_attribute *attr, in db1x_pmattr_show()
148 struct kobj_attribute *attr, in db1x_pmattr_store()
192 static struct kobj_attribute x##_attribute = \
/linux-4.1.27/arch/powerpc/sysdev/
Dppc4xx_cpm.c139 struct kobj_attribute *attr, char *buf) in cpm_idle_show()
157 struct kobj_attribute *attr, in cpm_idle_store()
177 static struct kobj_attribute cpm_idle_attr =
/linux-4.1.27/arch/x86/kernel/cpu/
Dperf_event_intel_uncore.h116 struct kobj_attribute attr;
121 struct kobj_attribute *attr, char *buf);
131 struct kobj_attribute *attr, \
137 static struct kobj_attribute format_attr_##_var = \
Dperf_event_amd_iommu.c83 struct kobj_attribute attr;
88 struct kobj_attribute *attr, char *buf) in _iommu_event_show()
Dperf_event_intel_rapl.c97 struct kobj_attribute *attr, \
103 static struct kobj_attribute format_attr_##_var = \
Dperf_event_intel_uncore.c24 struct kobj_attribute *attr, char *buf) in uncore_event_show()
/linux-4.1.27/drivers/misc/cxl/
Dsysfs.c406 struct kobj_attribute *attr, char *buf) in vendor_show()
414 struct kobj_attribute *attr, char *buf) in device_show()
422 struct kobj_attribute *attr, char *buf) in class_show()
452 static struct kobj_attribute vendor_attribute =
454 static struct kobj_attribute device_attribute =
456 static struct kobj_attribute class_attribute =
/linux-4.1.27/arch/arm/common/
DbL_switcher.c675 struct kobj_attribute *attr, char *buf) in bL_switcher_active_show()
681 struct kobj_attribute *attr, const char *buf, size_t count) in bL_switcher_active_store()
701 struct kobj_attribute *attr, const char *buf, size_t count) in bL_switcher_trace_trigger_store()
708 static struct kobj_attribute bL_switcher_active_attr =
711 static struct kobj_attribute bL_switcher_trace_trigger_attr =
/linux-4.1.27/arch/arm/mach-omap1/
Dpm.c76 static ssize_t idle_show(struct kobject *kobj, struct kobj_attribute *attr, in idle_show()
82 static ssize_t idle_store(struct kobject *kobj, struct kobj_attribute *attr, in idle_store()
96 static struct kobj_attribute sleep_while_idle_attr =
/linux-4.1.27/arch/arm/mach-orion5x/
Dts78xx-setup.c509 struct kobj_attribute *attr, char *buf) in ts78xx_fpga_show()
518 struct kobj_attribute *attr, const char *buf, size_t n) in ts78xx_fpga_store()
547 static struct kobj_attribute ts78xx_fpga_attr =
/linux-4.1.27/drivers/firmware/google/
Dgsmi.c517 struct kobj_attribute *attr, in gsmi_clear_eventlog_store()
558 static struct kobj_attribute gsmi_clear_eventlog_attr = {
564 struct kobj_attribute *attr, in gsmi_clear_config_store()
584 static struct kobj_attribute gsmi_clear_config_attr = {
/linux-4.1.27/lib/
Dkobject.c762 struct kobj_attribute *kattr; in kobj_attr_show()
765 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_show()
774 struct kobj_attribute *kattr; in kobj_attr_store()
777 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_store()
/linux-4.1.27/drivers/misc/ti-st/
Dst_kim.c652 static struct kobj_attribute ldisc_install =
655 static struct kobj_attribute uart_dev_name =
662 static struct kobj_attribute uart_baud_rate =
669 static struct kobj_attribute uart_flow_cntrl =
/linux-4.1.27/kernel/livepatch/
Dcore.c590 static ssize_t enabled_store(struct kobject *kobj, struct kobj_attribute *attr, in enabled_store()
634 struct kobj_attribute *attr, char *buf) in enabled_show()
642 static struct kobj_attribute enabled_kobj_attr = __ATTR_RW(enabled);
/linux-4.1.27/fs/9p/
Dv9fs.c497 struct kobj_attribute *attr, in caches_show()
521 static struct kobj_attribute v9fs_attr_cache = __ATTR_RO(caches);
/linux-4.1.27/drivers/md/bcache/
Dbcache.h852 static struct kobj_attribute ksysfs_##n = __ATTR(n, S_IWUSR, NULL, fn)
855 static struct kobj_attribute ksysfs_##n = \
Dsuper.c1928 static ssize_t register_bcache(struct kobject *, struct kobj_attribute *,
1964 static ssize_t register_bcache(struct kobject *k, struct kobj_attribute *attr, in register_bcache()
/linux-4.1.27/fs/ecryptfs/
Dmain.c774 struct kobj_attribute *attr, char *buff) in version_show()
779 static struct kobj_attribute version_attr = __ATTR_RO(version);
/linux-4.1.27/Documentation/
Dkobject.txt230 with the kobject_create_and_add(), can be of type kobj_attribute, so no