Home
last modified time | relevance | path

Searched refs:bin_attribute (Results 1 – 25 of 129) sorted by relevance

123456

/Linux-v4.19/include/linux/
Dsysfs.h27 struct bin_attribute;
89 struct bin_attribute *, int);
91 struct bin_attribute **bin_attrs;
161 struct bin_attribute { struct
165 ssize_t (*read)(struct file *, struct kobject *, struct bin_attribute *, argument
167 ssize_t (*write)(struct file *, struct kobject *, struct bin_attribute *, argument
169 int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr, argument
205 struct bin_attribute bin_attr_##_name = __BIN_ATTR(_name, _mode, _read, \
209 struct bin_attribute bin_attr_##_name = __BIN_ATTR_RO(_name, _size)
212 struct bin_attribute bin_attr_##_name = __BIN_ATTR_RW(_name, _size)
[all …]
/Linux-v4.19/drivers/w1/slaves/
Dw1_ds2408.c70 struct bin_attribute *bin_attr, char *buf, loff_t off, in state_read()
82 struct bin_attribute *bin_attr, char *buf, in output_read()
95 struct bin_attribute *bin_attr, char *buf, in activity_read()
108 struct bin_attribute *bin_attr, char *buf, in cond_search_mask_read()
122 struct bin_attribute *bin_attr, in cond_search_polarity_read()
132 struct bin_attribute *bin_attr, char *buf, in status_control_read()
142 struct bin_attribute *bin_attr, char *buf, in output_write()
213 struct bin_attribute *bin_attr, char *buf, in activity_write()
243 struct bin_attribute *bin_attr, char *buf, in status_control_write()
320 static struct bin_attribute *w1_f29_bin_attrs[] = {
Dw1_ds2438.c239 struct bin_attribute *bin_attr, char *buf, in iad_write()
261 struct bin_attribute *bin_attr, char *buf, in page0_read()
287 struct bin_attribute *bin_attr, char *buf, in temperature_read()
310 struct bin_attribute *bin_attr, char *buf, in vad_read()
333 struct bin_attribute *bin_attr, char *buf, in vdd_read()
361 static struct bin_attribute *w1_ds2438_bin_attrs[] = {
Dw1_ds2413.c29 struct bin_attribute *bin_attr, char *buf, loff_t off, in state_read()
66 struct bin_attribute *bin_attr, char *buf, in output_write()
110 static struct bin_attribute *w1_f3a_bin_attrs[] = {
Dw1_ds2406.c29 struct bin_attribute *bin_attr, in w1_f12_read_state()
66 struct bin_attribute *bin_attr, in w1_f12_write_output()
100 static struct bin_attribute w1_f12_sysfs_bin_files[NB_SYSFS_BIN_FILES] = {
Dw1_ds28e04.c117 struct bin_attribute *bin_attr, char *buf, in eeprom_read()
225 struct bin_attribute *bin_attr, char *buf, in eeprom_write()
281 struct bin_attribute *bin_attr, char *buf, loff_t off, in pio_read()
300 struct bin_attribute *bin_attr, char *buf, loff_t off, in pio_write()
379 static struct bin_attribute *w1_f1C_bin_attrs[] = {
/Linux-v4.19/drivers/hid/
Dhid-roccat-common.h52 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
61 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
74 static struct bin_attribute bin_attr_ ## thingy = { \
83 static struct bin_attribute bin_attr_ ## thingy = { \
91 static struct bin_attribute bin_attr_ ## thingy = { \
Dhid-roccat-pyra.c138 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
147 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
160 static struct bin_attribute bin_attr_##thingy = { \
169 static struct bin_attribute bin_attr_##thingy = { \
177 static struct bin_attribute bin_attr_##thingy = { \
189 struct kobject *kobj, struct bin_attribute *attr, char *buf, in pyra_sysfs_read_profilex_settings()
207 struct kobject *kobj, struct bin_attribute *attr, char *buf, in pyra_sysfs_read_profilex_buttons()
225 static struct bin_attribute bin_attr_profile##number##_settings = { \
231 static struct bin_attribute bin_attr_profile##number##_buttons = { \
244 struct kobject *kobj, struct bin_attribute *attr, char *buf, in pyra_sysfs_write_settings()
[all …]
Dhid-roccat-koneplus.c136 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
145 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
158 static struct bin_attribute bin_attr_##thingy = { \
167 static struct bin_attribute bin_attr_##thingy = { \
175 static struct bin_attribute bin_attr_##thingy = { \
191 struct kobject *kobj, struct bin_attribute *attr, char *buf, in koneplus_sysfs_read_profilex_settings()
209 struct kobject *kobj, struct bin_attribute *attr, char *buf, in koneplus_sysfs_read_profilex_buttons()
227 static struct bin_attribute bin_attr_profile##number##_settings = { \
233 static struct bin_attribute bin_attr_profile##number##_buttons = { \
329 static struct bin_attribute *koneplus_bin_attributes[] = {
Dhid-roccat-kovaplus.c179 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
188 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
201 static struct bin_attribute bin_attr_##thingy = { \
210 static struct bin_attribute bin_attr_##thingy = { \
221 struct kobject *kobj, struct bin_attribute *attr, char *buf, in kovaplus_sysfs_read_profilex_settings()
239 struct kobject *kobj, struct bin_attribute *attr, char *buf, in kovaplus_sysfs_read_profilex_buttons()
257 static struct bin_attribute bin_attr_profile##number##_settings = { \
263 static struct bin_attribute bin_attr_profile##number##_buttons = { \
387 static struct bin_attribute *kovaplus_bin_attributes[] = {
Dhid-roccat-isku.c164 struct bin_attribute *attr, char *buf, \
173 struct bin_attribute *attr, char *buf, \
186 static struct bin_attribute bin_attr_##thingy = { \
195 static struct bin_attribute bin_attr_##thingy = { \
203 static struct bin_attribute bin_attr_##thingy = { \
225 static struct bin_attribute *isku_bin_attributes[] = {
/Linux-v4.19/drivers/platform/chrome/
Dcros_ec_vbc.c28 struct bin_attribute *att, char *buf, in vboot_context_read()
68 struct bin_attribute *attr, char *buf, in vboot_context_write()
109 struct bin_attribute *a, int n) in cros_ec_vbc_is_visible()
125 static struct bin_attribute *cros_ec_vbc_bin_attrs[] = {
/Linux-v4.19/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sysfs.c269 struct bin_attribute *attr, char *buf, in qlcnic_sysfs_read_crb()
286 struct bin_attribute *attr, char *buf, in qlcnic_sysfs_write_crb()
315 struct bin_attribute *attr, char *buf, in qlcnic_sysfs_read_mem()
337 struct bin_attribute *attr, char *buf, in qlcnic_sysfs_write_mem()
401 struct bin_attribute *attr, in qlcnic_sysfs_write_pm_config()
451 struct bin_attribute *attr, in qlcnic_sysfs_read_pm_config()
544 struct bin_attribute *attr, in qlcnic_sysfs_write_esw_config()
628 struct bin_attribute *attr, in qlcnic_sysfs_read_esw_config()
680 struct bin_attribute *attr, in qlcnic_sysfs_write_npar_config()
727 struct bin_attribute *attr, in qlcnic_sysfs_read_npar_config()
[all …]
/Linux-v4.19/arch/x86/kernel/
Dksysfs.c32 struct bin_attribute *bin_attr, in boot_params_data_read()
39 static struct bin_attribute boot_params_data_attr = {
53 static struct bin_attribute *boot_params_data_attrs[] = {
141 struct bin_attribute *bin_attr, in setup_data_data_read()
187 static struct bin_attribute data_attr __ro_after_init = {
200 static struct bin_attribute *setup_data_data_attrs[] = {
/Linux-v4.19/mm/
Dpage_idle.c122 struct bin_attribute *attr, char *buf, in page_idle_bitmap_read()
167 struct bin_attribute *attr, char *buf, in page_idle_bitmap_write()
203 static struct bin_attribute page_idle_bitmap_attr =
207 static struct bin_attribute *page_idle_bin_attrs[] = {
/Linux-v4.19/arch/alpha/kernel/
Dpci-sysfs.c65 struct bin_attribute *attr, in pci_mmap_resource()
94 struct bin_attribute *attr, in pci_mmap_resource_sparse()
101 struct bin_attribute *attr, in pci_mmap_resource_dense()
119 struct bin_attribute *res_attr; in pci_remove_resource_files()
155 char *suffix, struct bin_attribute *res_attr, in pci_create_one_attr()
175 struct bin_attribute *attr; in pci_create_attr()
/Linux-v4.19/drivers/rtc/
Dnvmem.c25 struct bin_attribute *attr, in rtc_nvram_read()
37 struct bin_attribute *attr, in rtc_nvram_write()
52 sizeof(struct bin_attribute), in rtc_nvram_register()
/Linux-v4.19/drivers/zorro/
Dzorro-sysfs.c84 struct bin_attribute *bin_attr, in zorro_read_config()
101 static struct bin_attribute zorro_config_attr = {
110 static struct bin_attribute *zorro_device_bin_attrs[] = {
/Linux-v4.19/drivers/firmware/google/
Dmemconsole.c28 struct bin_attribute *bin_attr, char *buf, in memconsole_read()
36 static struct bin_attribute memconsole_bin_attr = {
Dvpd.c52 struct bin_attribute bin_attr; /* vpd/name_raw bin_attribute */
59 struct bin_attribute bin_attr;
67 struct bin_attribute *bin_attr, char *buf, in vpd_attrib_read()
167 struct bin_attribute *bin_attr, char *buf, in vpd_section_read()
/Linux-v4.19/drivers/firmware/
Ddell_rbu.c526 struct bin_attribute *bin_attr, in read_rbu_data()
580 struct bin_attribute *bin_attr, in read_rbu_image_type()
590 struct bin_attribute *bin_attr, in write_rbu_image_type()
651 struct bin_attribute *bin_attr, in read_rbu_packet_size()
664 struct bin_attribute *bin_attr, in write_rbu_packet_size()
678 static struct bin_attribute rbu_data_attr = {
683 static struct bin_attribute rbu_image_type_attr = {
689 static struct bin_attribute rbu_packet_size_attr = {
/Linux-v4.19/drivers/pci/
Dpci-sysfs.c824 struct bin_attribute *bin_attr, char *buf, in pci_read_config()
900 struct bin_attribute *bin_attr, char *buf, in pci_write_config()
974 struct bin_attribute *bin_attr, char *buf, in pci_read_legacy_io()
999 struct bin_attribute *bin_attr, char *buf, in pci_write_legacy_io()
1023 struct bin_attribute *attr, in pci_mmap_legacy_mem()
1043 struct bin_attribute *attr, in pci_mmap_legacy_io()
1078 b->legacy_io = kcalloc(2, sizeof(struct bin_attribute), in pci_create_legacy_files()
1162 static int pci_mmap_resource(struct kobject *kobj, struct bin_attribute *attr, in pci_mmap_resource()
1182 struct bin_attribute *attr, in pci_mmap_resource_uc()
1189 struct bin_attribute *attr, in pci_mmap_resource_wc()
[all …]
/Linux-v4.19/drivers/scsi/arcmsr/
Darcmsr_attr.c65 struct bin_attribute *bin, in arcmsr_sysfs_iop_message_read()
112 struct bin_attribute *bin, in arcmsr_sysfs_iop_message_write()
160 struct bin_attribute *bin, in arcmsr_sysfs_iop_message_clear()
193 static const struct bin_attribute arcmsr_sysfs_message_read_attr = {
202 static const struct bin_attribute arcmsr_sysfs_message_write_attr = {
211 static const struct bin_attribute arcmsr_sysfs_message_clear_attr = {
/Linux-v4.19/arch/s390/pci/
Dpci_sysfs.c72 struct bin_attribute *attr, char *buf, in util_string_read()
85 struct bin_attribute *attr, char *buf, in report_error_write()
103 static struct bin_attribute *zpci_bin_attrs[] = {
/Linux-v4.19/drivers/i2c/
Di2c-slave-eeprom.c26 struct bin_attribute bin;
78 struct bin_attribute *attr, char *buf, loff_t off, size_t count) in i2c_slave_eeprom_bin_read()
93 struct bin_attribute *attr, char *buf, loff_t off, size_t count) in i2c_slave_eeprom_bin_write()

123456