/kernel/linux/linux-5.10/drivers/firmware/google/ |
D | vpd.c | 44 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 …]
|
D | memconsole.c | 17 struct bin_attribute *bin_attr, char *buf, in memconsole_read() argument 22 memconsole_read_func = bin_attr->private; in memconsole_read()
|
/kernel/linux/linux-5.10/fs/sysfs/ |
D | group.c | 24 struct bin_attribute *const *bin_attr; in remove_files() local 30 for (bin_attr = grp->bin_attrs; *bin_attr; bin_attr++) in remove_files() 31 kernfs_remove_by_name(parent, (*bin_attr)->attr.name); in remove_files() 39 struct bin_attribute *const *bin_attr; in create_files() local 76 for (i = 0, bin_attr = grp->bin_attrs; *bin_attr; i++, bin_attr++) { in create_files() 77 umode_t mode = (*bin_attr)->attr.mode; in create_files() 81 (*bin_attr)->attr.name); in create_files() 83 mode = grp->is_bin_visible(kobj, *bin_attr, i); in create_files() 90 (*bin_attr)->attr.name, mode); in create_files() 94 &(*bin_attr)->attr, true, in create_files() [all …]
|
/kernel/linux/linux-5.10/drivers/firmware/efi/ |
D | mokvar-table.c | 73 struct bin_attribute bin_attr; member 269 struct bin_attribute *bin_attr, char *buf, in efi_mokvar_sysfs_read() argument 272 struct efi_mokvar_table_entry *mokvar_entry = bin_attr->private; in efi_mokvar_sysfs_read() 341 sysfs_bin_attr_init(&mokvar_sysfs->bin_attr); in efi_mokvar_sysfs_init() 342 mokvar_sysfs->bin_attr.private = mokvar_entry; in efi_mokvar_sysfs_init() 343 mokvar_sysfs->bin_attr.attr.name = mokvar_entry->name; in efi_mokvar_sysfs_init() 344 mokvar_sysfs->bin_attr.attr.mode = 0400; in efi_mokvar_sysfs_init() 345 mokvar_sysfs->bin_attr.size = mokvar_entry->data_size; in efi_mokvar_sysfs_init() 346 mokvar_sysfs->bin_attr.read = efi_mokvar_sysfs_read; in efi_mokvar_sysfs_init() 349 &mokvar_sysfs->bin_attr); in efi_mokvar_sysfs_init()
|
/kernel/linux/linux-5.10/drivers/w1/slaves/ |
D | w1_ds2408.c | 68 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 …]
|
D | w1_ds2438.c | 256 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
|
D | w1_ds2413.c | 28 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
|
D | w1_ds28e04.c | 115 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
|
D | w1_ds2406.c | 27 struct bin_attribute *bin_attr, in w1_f12_read_state() argument 64 struct bin_attribute *bin_attr, in w1_f12_write_output() argument
|
D | w1_ds2430.c | 98 struct bin_attribute *bin_attr, char *buf, in eeprom_read() argument 205 struct bin_attribute *bin_attr, char *buf, in eeprom_write() argument
|
D | w1_ds2431.c | 98 struct bin_attribute *bin_attr, char *buf, in eeprom_read() argument 204 struct bin_attribute *bin_attr, char *buf, in eeprom_write() argument
|
D | w1_ds2805.c | 95 struct bin_attribute *bin_attr, in w1_f0d_read_bin() argument 203 struct bin_attribute *bin_attr, in w1_f0d_write_bin() argument
|
D | w1_ds2433.c | 90 struct bin_attribute *bin_attr, char *buf, in eeprom_read() argument 204 struct bin_attribute *bin_attr, char *buf, in eeprom_write() argument
|
/kernel/linux/linux-5.10/fs/configfs/ |
D | file.c | 47 struct configfs_bin_attribute *bin_attr; member 164 len = buffer->bin_attr->read(buffer->item, NULL, 0); in configfs_read_bin_file() 189 len = buffer->bin_attr->read(buffer->item, in configfs_read_bin_file() 384 buffer->bin_attr = to_bin_attr(dentry); in __configfs_open_file() 385 buffer->cb_max_size = buffer->bin_attr->cb_max_size; in __configfs_open_file() 411 if ((type & CONFIGFS_ITEM_BIN_ATTR) && !buffer->bin_attr->write) in __configfs_open_file() 424 if ((type & CONFIGFS_ITEM_BIN_ATTR) && !buffer->bin_attr->read) in __configfs_open_file() 480 buffer->bin_attr->write(buffer->item, in configfs_release_bin_file() 541 const struct configfs_bin_attribute *bin_attr) in configfs_create_bin_file() argument 545 umode_t mode = (bin_attr->cb_attr.ca_mode & S_IALLUGO) | S_IFREG; in configfs_create_bin_file() [all …]
|
/kernel/linux/linux-5.10/drivers/pci/ |
D | vpd.c | 401 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()
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
D | dell_rbu.c | 478 struct bin_attribute *bin_attr, in data_read() argument 533 struct bin_attribute *bin_attr, in image_type_read() argument 543 struct bin_attribute *bin_attr, in image_type_write() argument 603 struct bin_attribute *bin_attr, in packet_size_read() argument 616 struct bin_attribute *bin_attr, in packet_size_write() argument
|
/kernel/linux/linux-5.10/drivers/sfi/ |
D | sfi_acpi.c | 176 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()
|
/kernel/linux/linux-5.10/drivers/of/ |
D | kobj.c | 32 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()
|
/kernel/linux/linux-5.10/arch/mips/txx9/generic/ |
D | setup.c | 889 struct bin_attribute *bin_attr, in txx9_sram_read() argument 892 struct txx9_sramc_dev *dev = bin_attr->private; in txx9_sram_read() 893 size_t ramsize = bin_attr->size; in txx9_sram_read() 904 struct bin_attribute *bin_attr, in txx9_sram_write() argument 907 struct txx9_sramc_dev *dev = bin_attr->private; in txx9_sram_write() 908 size_t ramsize = bin_attr->size; in txx9_sram_write()
|
/kernel/linux/linux-5.10/kernel/ |
D | kheaders.c | 34 struct bin_attribute *bin_attr, in ikheaders_read() argument
|
/kernel/linux/linux-5.10/kernel/bpf/ |
D | sysfs_btf.c | 17 struct bin_attribute *bin_attr, in btf_vmlinux_read() argument
|
/kernel/linux/linux-5.10/drivers/leds/ |
D | leds.h | 30 struct bin_attribute *bin_attr, char *buf,
|
/kernel/linux/linux-5.10/drivers/misc/ocxl/ |
D | sysfs.c | 97 struct bin_attribute *bin_attr, char *buf, in global_mmio_read() argument 128 struct bin_attribute *bin_attr, in global_mmio_mmap() argument
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
D | ultravisor.c | 35 struct bin_attribute *bin_attr, char *to, in uv_msglog_read() argument
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
D | ds2780_battery.c | 624 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
|