Home
last modified time | relevance | path

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

123

/drivers/firmware/google/
Dvpd.c44 struct bin_attribute bin_attr; /* vpd/name_raw bin_attribute */ member
51 struct bin_attribute bin_attr; member
59 struct bin_attribute *bin_attr, char *buf, in vpd_attrib_read() argument
62 struct vpd_attrib_info *info = bin_attr->private; in vpd_attrib_read()
65 info->bin_attr.size); in vpd_attrib_read()
120 sysfs_bin_attr_init(&info->bin_attr); in vpd_section_attrib_add()
121 info->bin_attr.attr.name = info->key; in vpd_section_attrib_add()
122 info->bin_attr.attr.mode = 0444; in vpd_section_attrib_add()
123 info->bin_attr.size = value_len; in vpd_section_attrib_add()
124 info->bin_attr.read = vpd_attrib_read; in vpd_section_attrib_add()
[all …]
Dmemconsole.c17 struct bin_attribute *bin_attr, char *buf, in memconsole_read() argument
22 memconsole_read_func = bin_attr->private; in memconsole_read()
/drivers/w1/slaves/
Dw1_ds2408.c68 struct bin_attribute *bin_attr, char *buf, loff_t off, in state_read() argument
73 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in state_read()
80 struct bin_attribute *bin_attr, char *buf, in output_read() argument
85 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in output_read()
93 struct bin_attribute *bin_attr, char *buf, in activity_read() argument
98 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in activity_read()
106 struct bin_attribute *bin_attr, char *buf, in cond_search_mask_read() argument
111 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in cond_search_mask_read()
120 struct bin_attribute *bin_attr, in cond_search_polarity_read() argument
130 struct bin_attribute *bin_attr, char *buf, in status_control_read() argument
[all …]
Dw1_ds2438.c256 struct bin_attribute *bin_attr, char *buf, in iad_write() argument
278 struct bin_attribute *bin_attr, char *buf, in iad_read() argument
299 struct bin_attribute *bin_attr, char *buf, in page0_read() argument
329 struct bin_attribute *bin_attr, char *buf, in temperature_read() argument
350 struct bin_attribute *bin_attr, char *buf, in vad_read() argument
371 struct bin_attribute *bin_attr, char *buf, in vdd_read() argument
Dw1_ds2413.c28 struct bin_attribute *bin_attr, char *buf, loff_t off, in state_read() argument
38 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in state_read()
84 struct bin_attribute *bin_attr, char *buf, in output_write() argument
Dw1_ds28e04.c115 struct bin_attribute *bin_attr, char *buf, in eeprom_read() argument
223 struct bin_attribute *bin_attr, char *buf, in eeprom_write() argument
279 struct bin_attribute *bin_attr, char *buf, loff_t off, in pio_read() argument
298 struct bin_attribute *bin_attr, char *buf, loff_t off, in pio_write() argument
Dw1_ds2406.c27 struct bin_attribute *bin_attr, in w1_f12_read_state() argument
64 struct bin_attribute *bin_attr, in w1_f12_write_output() argument
Dw1_ds2805.c95 struct bin_attribute *bin_attr, in w1_f0d_read_bin() argument
203 struct bin_attribute *bin_attr, in w1_f0d_write_bin() argument
Dw1_ds2431.c98 struct bin_attribute *bin_attr, char *buf, in eeprom_read() argument
204 struct bin_attribute *bin_attr, char *buf, in eeprom_write() argument
Dw1_ds2433.c90 struct bin_attribute *bin_attr, char *buf, in eeprom_read() argument
204 struct bin_attribute *bin_attr, char *buf, in eeprom_write() argument
/drivers/pci/
Dvpd.c401 struct bin_attribute *bin_attr, char *buf, in read_vpd_attr() argument
406 if (bin_attr->size > 0) { in read_vpd_attr()
407 if (off > bin_attr->size) in read_vpd_attr()
409 else if (count > bin_attr->size - off) in read_vpd_attr()
410 count = bin_attr->size - off; in read_vpd_attr()
417 struct bin_attribute *bin_attr, char *buf, in write_vpd_attr() argument
422 if (bin_attr->size > 0) { in write_vpd_attr()
423 if (off > bin_attr->size) in write_vpd_attr()
425 else if (count > bin_attr->size - off) in write_vpd_attr()
426 count = bin_attr->size - off; in write_vpd_attr()
Dpci-sysfs.c675 struct bin_attribute *bin_attr, char *buf, in pci_read_config() argument
751 struct bin_attribute *bin_attr, char *buf, in pci_write_config() argument
830 struct bin_attribute *bin_attr, char *buf, in pci_read_legacy_io() argument
855 struct bin_attribute *bin_attr, char *buf, in pci_write_legacy_io() argument
1231 struct bin_attribute *bin_attr, char *buf, in pci_write_rom() argument
1257 struct bin_attribute *bin_attr, char *buf, in pci_read_rom() argument
/drivers/platform/x86/
Ddell_rbu.c504 struct bin_attribute *bin_attr, in read_rbu_data() argument
558 struct bin_attribute *bin_attr, in read_rbu_image_type() argument
568 struct bin_attribute *bin_attr, in write_rbu_image_type() argument
629 struct bin_attribute *bin_attr, in read_rbu_packet_size() argument
642 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/of/
Dkobj.c32 struct bin_attribute *bin_attr, char *buf, in of_node_property_read() argument
35 struct property *pp = container_of(bin_attr, struct property, attr); in of_node_property_read()
/drivers/misc/ocxl/
Dsysfs.c62 struct bin_attribute *bin_attr, char *buf, in global_mmio_read() argument
93 struct bin_attribute *bin_attr, in global_mmio_mmap() argument
/drivers/power/supply/
Dds2780_battery.c624 struct bin_attribute *bin_attr, in ds2780_read_param_eeprom_bin() argument
637 struct bin_attribute *bin_attr, in ds2780_write_param_eeprom_bin() argument
669 struct bin_attribute *bin_attr, in ds2780_read_user_eeprom_bin() argument
682 struct bin_attribute *bin_attr, in ds2780_write_user_eeprom_bin() argument
Dds2781_battery.c626 struct bin_attribute *bin_attr, in ds2781_read_param_eeprom_bin() argument
639 struct bin_attribute *bin_attr, in ds2781_write_param_eeprom_bin() argument
671 struct bin_attribute *bin_attr, in ds2781_read_user_eeprom_bin() argument
685 struct bin_attribute *bin_attr, in ds2781_write_user_eeprom_bin() argument
/drivers/base/
Ddevcoredump.c75 struct bin_attribute *bin_attr, in devcd_data_read() argument
85 struct bin_attribute *bin_attr, in devcd_data_write() argument
/drivers/scsi/qla2xxx/
Dqla_attr.c21 struct bin_attribute *bin_attr, in qla2x00_sysfs_read_fw_dump() argument
57 struct bin_attribute *bin_attr, in qla2x00_sysfs_write_fw_dump() argument
154 struct bin_attribute *bin_attr, in qla2x00_sysfs_read_nvram() argument
194 struct bin_attribute *bin_attr, in qla2x00_sysfs_write_nvram() argument
269 struct bin_attribute *bin_attr, in qla2x00_sysfs_read_optrom() argument
293 struct bin_attribute *bin_attr, in qla2x00_sysfs_write_optrom() argument
331 struct bin_attribute *bin_attr, in qla2x00_sysfs_write_optrom_ctl() argument
515 struct bin_attribute *bin_attr, in qla2x00_sysfs_read_vpd() argument
562 struct bin_attribute *bin_attr, in qla2x00_sysfs_write_vpd() argument
629 struct bin_attribute *bin_attr, in qla2x00_sysfs_read_sfp() argument
[all …]
/drivers/rapidio/
Drio-sysfs.c117 struct bin_attribute *bin_attr, in rio_read_config() argument
188 struct bin_attribute *bin_attr, in rio_write_config() argument
/drivers/pci/hotplug/
Dacpiphp_ibm.c87 struct bin_attribute *bin_attr,
356 struct bin_attribute *bin_attr, in ibm_read_apci_table() argument
/drivers/acpi/
Dsysfs.c342 struct bin_attribute *bin_attr, char *buf, in acpi_table_show() argument
346 container_of(bin_attr, struct acpi_table_attr, attr); in acpi_table_show()
437 struct bin_attribute *bin_attr, char *buf, in acpi_data_show() argument
444 data_attr = container_of(bin_attr, struct acpi_data_attr, attr); in acpi_data_show()
/drivers/zorro/
Dzorro-sysfs.c84 struct bin_attribute *bin_attr, in zorro_read_config() argument

123