Home
last modified time | relevance | path

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

1234

/linux/drivers/firmware/google/
A Dvpd.c51 struct bin_attribute bin_attr; member
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()
125 info->bin_attr.private = info; in vpd_section_attrib_add()
165 sec->bin_attr.size); in vpd_section_read()
202 sec->bin_attr.attr.mode = 0444; in vpd_section_init()
203 sec->bin_attr.size = size; in vpd_section_init()
[all …]
A Dmemconsole.c17 struct bin_attribute *bin_attr, char *buf, in memconsole_read() argument
22 memconsole_read_func = bin_attr->private; in memconsole_read()
/linux/fs/sysfs/
A Dgroup.c24 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()
490 struct bin_attribute *const *bin_attr; in sysfs_group_attrs_change_owner() local
[all …]
/linux/drivers/firmware/efi/
A Dmokvar-table.c73 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()
/linux/drivers/w1/slaves/
A 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
106 struct bin_attribute *bin_attr, char *buf, in cond_search_mask_read() argument
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
163 struct bin_attribute *bin_attr, char *buf, in output_write() argument
213 struct bin_attribute *bin_attr, char *buf, in activity_write() argument
[all …]
A Dw1_ds2438.c293 struct bin_attribute *bin_attr, char *buf, in iad_write() argument
315 struct bin_attribute *bin_attr, char *buf, in iad_read() argument
336 struct bin_attribute *bin_attr, char *buf, in page0_read() argument
366 struct bin_attribute *bin_attr, char *buf, in page1_read() argument
396 struct bin_attribute *bin_attr, char *buf, in offset_write() argument
415 struct bin_attribute *bin_attr, char *buf, in temperature_read() argument
436 struct bin_attribute *bin_attr, char *buf, in vad_read() argument
457 struct bin_attribute *bin_attr, char *buf, in vdd_read() argument
A 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
A 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
A 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
A Dw1_ds2430.c98 struct bin_attribute *bin_attr, char *buf, in eeprom_read() argument
205 struct bin_attribute *bin_attr, char *buf, in eeprom_write() argument
A 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
A 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
A 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
/linux/fs/configfs/
A Dfile.c45 struct configfs_bin_attribute *bin_attr; member
127 len = buffer->bin_attr->read(buffer->item, NULL, 0); in configfs_bin_read_iter()
152 len = buffer->bin_attr->read(buffer->item, in configfs_bin_read_iter()
318 buffer->bin_attr = to_bin_attr(dentry); in __configfs_open_file()
319 buffer->cb_max_size = buffer->bin_attr->cb_max_size; in __configfs_open_file()
345 if ((type & CONFIGFS_ITEM_BIN_ATTR) && !buffer->bin_attr->write) in __configfs_open_file()
358 if ((type & CONFIGFS_ITEM_BIN_ATTR) && !buffer->bin_attr->read) in __configfs_open_file()
411 buffer->bin_attr->write(buffer->item, in configfs_release_bin_file()
469 const struct configfs_bin_attribute *bin_attr) in configfs_create_bin_file() argument
473 umode_t mode = (bin_attr->cb_attr.ca_mode & S_IALLUGO) | S_IFREG; in configfs_create_bin_file()
[all …]
/linux/tools/testing/selftests/bpf/progs/
A Dtest_module_attach.c59 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) in BPF_PROG() argument
70 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) in BPF_PROG() argument
82 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len, in BPF_PROG() argument
107 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) in BPF_PROG() argument
/linux/drivers/platform/x86/dell/
A Ddell_rbu.c478 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
/linux/tools/testing/selftests/bpf/bpf_testmod/
A Dbpf_testmod.c54 struct bin_attribute *bin_attr, in bpf_testmod_test_read() argument
90 struct bin_attribute *bin_attr, in bpf_testmod_test_write() argument
/linux/arch/mips/txx9/generic/
A Dsetup.c885 struct bin_attribute *bin_attr, in txx9_sram_read() argument
888 struct txx9_sramc_dev *dev = bin_attr->private; in txx9_sram_read()
889 size_t ramsize = bin_attr->size; in txx9_sram_read()
900 struct bin_attribute *bin_attr, in txx9_sram_write() argument
903 struct txx9_sramc_dev *dev = bin_attr->private; in txx9_sram_write()
904 size_t ramsize = bin_attr->size; in txx9_sram_write()
/linux/drivers/of/
A 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()
/linux/drivers/misc/ocxl/
A Dsysfs.c97 struct bin_attribute *bin_attr, char *buf, in global_mmio_read() argument
128 struct bin_attribute *bin_attr, in global_mmio_mmap() argument
/linux/drivers/power/supply/
A 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
A 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
/linux/kernel/
A Dkheaders.c34 struct bin_attribute *bin_attr, in ikheaders_read() argument
/linux/kernel/bpf/
A Dsysfs_btf.c17 struct bin_attribute *bin_attr, in btf_vmlinux_read() argument
/linux/drivers/leds/
A Dleds.h28 struct bin_attribute *bin_attr, char *buf,

Completed in 43 milliseconds

1234