Home
last modified time | relevance | path

Searched refs:bin_attr (Results 1 – 25 of 58) sorted by relevance

123

/drivers/firmware/google/
Dvpd.c52 struct bin_attribute bin_attr; /* vpd/name_raw bin_attribute */ member
59 struct bin_attribute bin_attr; member
67 struct bin_attribute *bin_attr, char *buf, in vpd_attrib_read() argument
70 struct vpd_attrib_info *info = bin_attr->private; in vpd_attrib_read()
73 info->bin_attr.size); in vpd_attrib_read()
128 sysfs_bin_attr_init(&info->bin_attr); in vpd_section_attrib_add()
129 info->bin_attr.attr.name = info->key; in vpd_section_attrib_add()
130 info->bin_attr.attr.mode = 0444; in vpd_section_attrib_add()
131 info->bin_attr.size = value_len; in vpd_section_attrib_add()
132 info->bin_attr.read = vpd_attrib_read; in vpd_section_attrib_add()
[all …]
Dmemconsole.c28 struct bin_attribute *bin_attr, char *buf, in memconsole_read() argument
/drivers/w1/slaves/
Dw1_ds2408.c70 struct bin_attribute *bin_attr, char *buf, loff_t off, in state_read() argument
75 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in state_read()
82 struct bin_attribute *bin_attr, char *buf, in output_read() argument
87 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in output_read()
95 struct bin_attribute *bin_attr, char *buf, in activity_read() argument
100 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in activity_read()
108 struct bin_attribute *bin_attr, char *buf, in cond_search_mask_read() argument
113 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in cond_search_mask_read()
122 struct bin_attribute *bin_attr, in cond_search_polarity_read() argument
132 struct bin_attribute *bin_attr, char *buf, in status_control_read() argument
[all …]
Dw1_ds2438.c258 struct bin_attribute *bin_attr, char *buf, in iad_write() argument
280 struct bin_attribute *bin_attr, char *buf, in iad_read() argument
301 struct bin_attribute *bin_attr, char *buf, in page0_read() argument
331 struct bin_attribute *bin_attr, char *buf, in temperature_read() argument
352 struct bin_attribute *bin_attr, char *buf, in vad_read() argument
373 struct bin_attribute *bin_attr, char *buf, in vdd_read() argument
Dw1_ds2413.c29 struct bin_attribute *bin_attr, char *buf, loff_t off, in state_read() argument
35 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in state_read()
66 struct bin_attribute *bin_attr, char *buf, in output_write() argument
Dw1_ds28e04.c117 struct bin_attribute *bin_attr, char *buf, in eeprom_read() argument
225 struct bin_attribute *bin_attr, char *buf, in eeprom_write() argument
281 struct bin_attribute *bin_attr, char *buf, loff_t off, in pio_read() argument
300 struct bin_attribute *bin_attr, char *buf, loff_t off, in pio_write() argument
Dw1_ds2406.c29 struct bin_attribute *bin_attr, in w1_f12_read_state() argument
66 struct bin_attribute *bin_attr, in w1_f12_write_output() argument
Dw1_ds2805.c97 struct bin_attribute *bin_attr, in w1_f0d_read_bin() argument
205 struct bin_attribute *bin_attr, in w1_f0d_write_bin() argument
Dw1_ds2431.c100 struct bin_attribute *bin_attr, char *buf, in eeprom_read() argument
206 struct bin_attribute *bin_attr, char *buf, in eeprom_write() argument
Dw1_ds2433.c92 struct bin_attribute *bin_attr, char *buf, in eeprom_read() argument
206 struct bin_attribute *bin_attr, char *buf, in eeprom_write() argument
/drivers/pci/
Dpci-sysfs.c811 struct bin_attribute *bin_attr, char *buf, in pci_read_config() argument
887 struct bin_attribute *bin_attr, char *buf, in pci_write_config() argument
948 struct bin_attribute *bin_attr, char *buf, in read_vpd_attr() argument
953 if (bin_attr->size > 0) { in read_vpd_attr()
954 if (off > bin_attr->size) in read_vpd_attr()
956 else if (count > bin_attr->size - off) in read_vpd_attr()
957 count = bin_attr->size - off; in read_vpd_attr()
964 struct bin_attribute *bin_attr, char *buf, in write_vpd_attr() argument
969 if (bin_attr->size > 0) { in write_vpd_attr()
970 if (off > bin_attr->size) in write_vpd_attr()
[all …]
/drivers/firmware/
Ddell_rbu.c534 struct bin_attribute *bin_attr, in read_rbu_data() argument
588 struct bin_attribute *bin_attr, in read_rbu_image_type() argument
598 struct bin_attribute *bin_attr, in write_rbu_image_type() argument
659 struct bin_attribute *bin_attr, in read_rbu_packet_size() argument
672 struct bin_attribute *bin_attr, in write_rbu_packet_size() argument
/drivers/sfi/
Dsfi_acpi.c176 struct bin_attribute *bin_attr, char *buf, in sfi_acpi_table_show() argument
180 container_of(bin_attr, struct sfi_table_attr, attr); in sfi_acpi_table_show()
Dsfi_core.c391 struct bin_attribute *bin_attr, char *buf, in sfi_table_show() argument
395 container_of(bin_attr, struct sfi_table_attr, attr); in sfi_table_show()
/drivers/scsi/qla2xxx/
Dqla_attr.c21 struct bin_attribute *bin_attr, in qla2x00_sysfs_read_fw_dump() argument
54 struct bin_attribute *bin_attr, in qla2x00_sysfs_write_fw_dump() argument
151 struct bin_attribute *bin_attr, in qla2x00_sysfs_read_nvram() argument
170 struct bin_attribute *bin_attr, in qla2x00_sysfs_write_nvram() argument
238 struct bin_attribute *bin_attr, in qla2x00_sysfs_read_optrom() argument
262 struct bin_attribute *bin_attr, in qla2x00_sysfs_write_optrom() argument
300 struct bin_attribute *bin_attr, in qla2x00_sysfs_write_optrom_ctl() argument
481 struct bin_attribute *bin_attr, in qla2x00_sysfs_read_vpd() argument
510 struct bin_attribute *bin_attr, in qla2x00_sysfs_write_vpd() argument
563 struct bin_attribute *bin_attr, in qla2x00_sysfs_read_sfp() argument
[all …]
/drivers/power/supply/
Dds2780_battery.c633 struct bin_attribute *bin_attr, in ds2780_read_param_eeprom_bin() argument
646 struct bin_attribute *bin_attr, in ds2780_write_param_eeprom_bin() argument
678 struct bin_attribute *bin_attr, in ds2780_read_user_eeprom_bin() argument
691 struct bin_attribute *bin_attr, in ds2780_write_user_eeprom_bin() argument
Dds2781_battery.c635 struct bin_attribute *bin_attr, in ds2781_read_param_eeprom_bin() argument
648 struct bin_attribute *bin_attr, in ds2781_write_param_eeprom_bin() argument
680 struct bin_attribute *bin_attr, in ds2781_read_user_eeprom_bin() argument
694 struct bin_attribute *bin_attr, in ds2781_write_user_eeprom_bin() argument
/drivers/base/
Ddevcoredump.c90 struct bin_attribute *bin_attr, in devcd_data_read() argument
100 struct bin_attribute *bin_attr, in devcd_data_write() argument
/drivers/rtc/
Drtc-ds1742.c126 struct bin_attribute *bin_attr, in ds1742_nvram_read() argument
141 struct bin_attribute *bin_attr, in ds1742_nvram_write() argument
Drtc-rp5c01.c164 struct bin_attribute *bin_attr, in rp5c01_nvram_read() argument
194 struct bin_attribute *bin_attr, in rp5c01_nvram_write() argument
Drtc-tx4939.c195 struct bin_attribute *bin_attr, in tx4939_rtc_nvram_read() argument
213 struct bin_attribute *bin_attr, in tx4939_rtc_nvram_write() argument
/drivers/rapidio/
Drio-sysfs.c121 struct bin_attribute *bin_attr, in rio_read_config() argument
192 struct bin_attribute *bin_attr, in rio_write_config() argument
/drivers/pci/hotplug/
Dacpiphp_ibm.c101 struct bin_attribute *bin_attr,
370 struct bin_attribute *bin_attr, in ibm_read_apci_table() argument
/drivers/fmc/
Dfmc-core.c85 struct bin_attribute *bin_attr, in fmc_read_eeprom() argument
106 struct bin_attribute *bin_attr, in fmc_write_eeprom() argument
/drivers/acpi/
Dsysfs.c341 struct bin_attribute *bin_attr, char *buf, in acpi_table_show() argument
345 container_of(bin_attr, struct acpi_table_attr, attr); in acpi_table_show()
436 struct bin_attribute *bin_attr, char *buf, in acpi_data_show() argument
443 data_attr = container_of(bin_attr, struct acpi_data_attr, attr); in acpi_data_show()

123