Home
last modified time | relevance | path

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

1234

/linux-6.6.21/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()
Dcbmem.c33 struct bin_attribute *bin_attr, char *buf, loff_t pos, in mem_read() argument
43 struct bin_attribute *bin_attr, char *buf, loff_t pos, in mem_write() argument
/linux-6.6.21/fs/sysfs/
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()
93 error = sysfs_add_bin_file_mode_ns(parent, *bin_attr, in create_files()
[all …]
/linux-6.6.21/drivers/firmware/efi/
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-6.6.21/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.c291 struct bin_attribute *bin_attr, char *buf, in iad_write() argument
313 struct bin_attribute *bin_attr, char *buf, in iad_read() argument
334 struct bin_attribute *bin_attr, char *buf, in page0_read() argument
364 struct bin_attribute *bin_attr, char *buf, in page1_read() argument
394 struct bin_attribute *bin_attr, char *buf, in offset_write() argument
413 struct bin_attribute *bin_attr, char *buf, in temperature_read() argument
434 struct bin_attribute *bin_attr, char *buf, in vad_read() argument
455 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
226 struct bin_attribute *bin_attr, char *buf, in eeprom_write() argument
282 struct bin_attribute *bin_attr, char *buf, loff_t off, in pio_read() argument
301 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_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
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
206 struct bin_attribute *bin_attr, char *buf, in eeprom_write() argument
/linux-6.6.21/fs/configfs/
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-6.6.21/tools/testing/selftests/bpf/progs/
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-6.6.21/drivers/platform/x86/dell/
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-6.6.21/arch/mips/txx9/generic/
Dsetup.c777 struct bin_attribute *bin_attr, in txx9_sram_read() argument
780 struct txx9_sramc_dev *dev = bin_attr->private; in txx9_sram_read()
781 size_t ramsize = bin_attr->size; in txx9_sram_read()
792 struct bin_attribute *bin_attr, in txx9_sram_write() argument
795 struct txx9_sramc_dev *dev = bin_attr->private; in txx9_sram_write()
796 size_t ramsize = bin_attr->size; in txx9_sram_write()
/linux-6.6.21/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()
/linux-6.6.21/kernel/
Dkheaders.c34 struct bin_attribute *bin_attr, in ikheaders_read() argument
/linux-6.6.21/kernel/bpf/
Dsysfs_btf.c17 struct bin_attribute *bin_attr, in btf_vmlinux_read() argument
/linux-6.6.21/drivers/leds/
Dleds.h28 struct bin_attribute *bin_attr, char *buf,
/linux-6.6.21/drivers/misc/ocxl/
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-6.6.21/arch/powerpc/platforms/powernv/
Dultravisor.c35 struct bin_attribute *bin_attr, char *to, in uv_msglog_read() argument
/linux-6.6.21/drivers/power/supply/
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

1234