/openbmc/linux/include/linux/ |
H A D | sysfs.h | 27 struct bin_attribute; 89 struct bin_attribute *, int); 91 struct bin_attribute **bin_attrs; 175 struct bin_attribute { struct 180 ssize_t (*read)(struct file *, struct kobject *, struct bin_attribute *, argument 182 ssize_t (*write)(struct file *, struct kobject *, struct bin_attribute *, argument 184 int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr, argument 226 struct bin_attribute bin_attr_##_name = __BIN_ATTR(_name, _mode, _read, \ 230 struct bin_attribute bin_attr_##_name = __BIN_ATTR_RO(_name, _size) 233 struct bin_attribute bin_attr_##_name = __BIN_ATTR_WO(_name, _size) [all …]
|
/openbmc/linux/drivers/w1/slaves/ |
H A D | w1_ds2408.c | 68 struct bin_attribute *bin_attr, char *buf, loff_t off, in state_read() 80 struct bin_attribute *bin_attr, char *buf, in output_read() 93 struct bin_attribute *bin_attr, char *buf, in activity_read() 106 struct bin_attribute *bin_attr, char *buf, in cond_search_mask_read() 120 struct bin_attribute *bin_attr, in cond_search_polarity_read() 130 struct bin_attribute *bin_attr, char *buf, in status_control_read() 163 struct bin_attribute *bin_attr, char *buf, in output_write() 213 struct bin_attribute *bin_attr, char *buf, in activity_write() 243 struct bin_attribute *bin_attr, char *buf, in status_control_write() 320 static struct bin_attribute *w1_f29_bin_attrs[] = {
|
H A D | w1_ds2438.c | 291 struct bin_attribute *bin_attr, char *buf, in iad_write() 313 struct bin_attribute *bin_attr, char *buf, in iad_read() 334 struct bin_attribute *bin_attr, char *buf, in page0_read() 364 struct bin_attribute *bin_attr, char *buf, in page1_read() 394 struct bin_attribute *bin_attr, char *buf, in offset_write() 413 struct bin_attribute *bin_attr, char *buf, in temperature_read() 434 struct bin_attribute *bin_attr, char *buf, in vad_read() 455 struct bin_attribute *bin_attr, char *buf, in vdd_read() 483 static struct bin_attribute *w1_ds2438_bin_attrs[] = {
|
H A D | w1_ds2413.c | 28 struct bin_attribute *bin_attr, char *buf, loff_t off, in state_read() 84 struct bin_attribute *bin_attr, char *buf, in output_write() 133 static struct bin_attribute *w1_f3a_bin_attrs[] = {
|
H A D | w1_ds2406.c | 27 struct bin_attribute *bin_attr, in w1_f12_read_state() 64 struct bin_attribute *bin_attr, in w1_f12_write_output() 98 static struct bin_attribute w1_f12_sysfs_bin_files[NB_SYSFS_BIN_FILES] = {
|
/openbmc/linux/drivers/hid/ |
H A D | hid-roccat-common.h | 49 struct kobject *kobj, struct bin_attribute *attr, char *buf, \ 58 struct kobject *kobj, struct bin_attribute *attr, char *buf, \ 71 static struct bin_attribute bin_attr_ ## thingy = { \ 80 static struct bin_attribute bin_attr_ ## thingy = { \ 88 static struct bin_attribute bin_attr_ ## thingy = { \
|
H A D | hid-roccat-pyra.c | 132 struct kobject *kobj, struct bin_attribute *attr, char *buf, \ 141 struct kobject *kobj, struct bin_attribute *attr, char *buf, \ 154 static struct bin_attribute bin_attr_##thingy = { \ 163 static struct bin_attribute bin_attr_##thingy = { \ 171 static struct bin_attribute bin_attr_##thingy = { \ 183 struct kobject *kobj, struct bin_attribute *attr, char *buf, in pyra_sysfs_read_profilex_settings() 201 struct kobject *kobj, struct bin_attribute *attr, char *buf, in pyra_sysfs_read_profilex_buttons() 219 static struct bin_attribute bin_attr_profile##number##_settings = { \ 225 static struct bin_attribute bin_attr_profile##number##_buttons = { \ 238 struct kobject *kobj, struct bin_attribute *attr, char *buf, in pyra_sysfs_write_settings() [all …]
|
H A D | hid-roccat-koneplus.c | 131 struct kobject *kobj, struct bin_attribute *attr, char *buf, \ 140 struct kobject *kobj, struct bin_attribute *attr, char *buf, \ 153 static struct bin_attribute bin_attr_##thingy = { \ 162 static struct bin_attribute bin_attr_##thingy = { \ 170 static struct bin_attribute bin_attr_##thingy = { \ 186 struct kobject *kobj, struct bin_attribute *attr, char *buf, in koneplus_sysfs_read_profilex_settings() 204 struct kobject *kobj, struct bin_attribute *attr, char *buf, in koneplus_sysfs_read_profilex_buttons() 222 static struct bin_attribute bin_attr_profile##number##_settings = { \ 228 static struct bin_attribute bin_attr_profile##number##_buttons = { \ 324 static struct bin_attribute *koneplus_bin_attributes[] = {
|
H A D | hid-roccat-kovaplus.c | 174 struct kobject *kobj, struct bin_attribute *attr, char *buf, \ 183 struct kobject *kobj, struct bin_attribute *attr, char *buf, \ 196 static struct bin_attribute bin_attr_##thingy = { \ 205 static struct bin_attribute bin_attr_##thingy = { \ 216 struct kobject *kobj, struct bin_attribute *attr, char *buf, in kovaplus_sysfs_read_profilex_settings() 234 struct kobject *kobj, struct bin_attribute *attr, char *buf, in kovaplus_sysfs_read_profilex_buttons() 252 static struct bin_attribute bin_attr_profile##number##_settings = { \ 258 static struct bin_attribute bin_attr_profile##number##_buttons = { \ 382 static struct bin_attribute *kovaplus_bin_attributes[] = {
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_sysfs.c | 63 struct bin_attribute *attr, char *buf, in i915_l3_read() 91 struct bin_attribute *attr, char *buf, in i915_l3_write() 140 static const struct bin_attribute dpf_attrs = { 149 static const struct bin_attribute dpf_attrs_1 = { 161 struct bin_attribute *attr, char *buf, in error_state_read() 197 struct bin_attribute *attr, char *buf, in error_state_write() 209 static const struct bin_attribute error_state_attr = {
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_module_attach.c | 59 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) in BPF_PROG() 70 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) in BPF_PROG() 82 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len, in BPF_PROG() 107 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) in BPF_PROG()
|
/openbmc/linux/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sysfs.c | 267 struct bin_attribute *attr, char *buf, in qlcnic_sysfs_read_crb() 284 struct bin_attribute *attr, char *buf, in qlcnic_sysfs_write_crb() 313 struct bin_attribute *attr, char *buf, in qlcnic_sysfs_read_mem() 335 struct bin_attribute *attr, char *buf, in qlcnic_sysfs_write_mem() 399 struct bin_attribute *attr, in qlcnic_sysfs_write_pm_config() 449 struct bin_attribute *attr, in qlcnic_sysfs_read_pm_config() 542 struct bin_attribute *attr, in qlcnic_sysfs_write_esw_config() 626 struct bin_attribute *attr, in qlcnic_sysfs_read_esw_config() 678 struct bin_attribute *attr, in qlcnic_sysfs_write_npar_config() 725 struct bin_attribute *attr, in qlcnic_sysfs_read_npar_config() [all …]
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | secvar-sysfs.c | 55 struct bin_attribute *attr, char *buf, loff_t off, in data_read() 88 struct bin_attribute *attr, char *buf, loff_t off, in update_write() 107 static struct bin_attribute data_attr = __BIN_ATTR_RO(data, 0); 109 static struct bin_attribute update_attr = __BIN_ATTR_WO(update, 0); 111 static struct bin_attribute *secvar_bin_attrs[] = {
|
/openbmc/linux/drivers/pci/ |
H A D | pci-sysfs.c | 693 struct bin_attribute *bin_attr, char *buf, in pci_read_config() 768 struct bin_attribute *bin_attr, char *buf, in pci_write_config() 838 static struct bin_attribute *pci_dev_config_attrs[] = { 844 struct bin_attribute *a, int n) in pci_dev_config_attr_is_visible() 874 struct bin_attribute *bin_attr, char *buf, in pci_read_legacy_io() 899 struct bin_attribute *bin_attr, char *buf, in pci_write_legacy_io() 923 struct bin_attribute *attr, in pci_mmap_legacy_mem() 943 struct bin_attribute *attr, in pci_mmap_legacy_io() 981 b->legacy_io = kcalloc(2, sizeof(struct bin_attribute), in pci_create_legacy_files() 1066 static int pci_mmap_resource(struct kobject *kobj, struct bin_attribute *attr, in pci_mmap_resource() [all …]
|
/openbmc/linux/mm/ |
H A D | page_idle.c | 115 struct bin_attribute *attr, char *buf, in page_idle_bitmap_read() 160 struct bin_attribute *attr, char *buf, in page_idle_bitmap_write() 196 static struct bin_attribute page_idle_bitmap_attr = 200 static struct bin_attribute *page_idle_bin_attrs[] = {
|
/openbmc/linux/arch/x86/kernel/ |
H A D | ksysfs.c | 31 struct bin_attribute *bin_attr, in boot_params_data_read() 38 static struct bin_attribute boot_params_data_attr = { 52 static struct bin_attribute *boot_params_data_attrs[] = { 175 struct bin_attribute *bin_attr, in setup_data_data_read() 248 static struct bin_attribute data_attr __ro_after_init = { 261 static struct bin_attribute *setup_data_data_attrs[] = {
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | pci-sysfs.c | 67 struct bin_attribute *attr, in pci_mmap_resource() 96 struct bin_attribute *attr, in pci_mmap_resource_sparse() 103 struct bin_attribute *attr, in pci_mmap_resource_dense() 121 struct bin_attribute *res_attr; in pci_remove_resource_files() 157 char *suffix, struct bin_attribute *res_attr, in pci_create_one_attr() 177 struct bin_attribute *attr; in pci_create_attr()
|
/openbmc/linux/drivers/firmware/google/ |
H A D | cbmem.c | 33 struct bin_attribute *bin_attr, char *buf, loff_t pos, in mem_read() 43 struct bin_attribute *bin_attr, char *buf, loff_t pos, in mem_write() 82 static struct bin_attribute *bin_attrs[] = {
|
H A D | memconsole.c | 17 struct bin_attribute *bin_attr, char *buf, in memconsole_read() 29 static struct bin_attribute memconsole_bin_attr = {
|
/openbmc/linux/drivers/zorro/ |
H A D | zorro-sysfs.c | 84 struct bin_attribute *bin_attr, in zorro_read_config() 101 static struct bin_attribute zorro_config_attr = { 110 static struct bin_attribute *zorro_device_bin_attrs[] = {
|
/openbmc/linux/kernel/ |
H A D | kheaders.c | 34 struct bin_attribute *bin_attr, in ikheaders_read() 41 static struct bin_attribute kheaders_attr __ro_after_init = {
|
/openbmc/linux/kernel/bpf/ |
H A D | sysfs_btf.c | 17 struct bin_attribute *bin_attr, in btf_vmlinux_read() 24 static struct bin_attribute bin_attr_btf_vmlinux __ro_after_init = {
|
/openbmc/linux/drivers/leds/ |
H A D | leds.h | 25 struct bin_attribute *attr, char *buf, 28 struct bin_attribute *bin_attr, char *buf,
|
/openbmc/linux/kernel/module/ |
H A D | sysfs.c | 23 struct bin_attribute battr; 35 struct bin_attribute *battr, in module_sect_read() 77 struct bin_attribute **gattr; in add_sect_attrs() 146 struct bin_attribute attrs[]; 150 struct bin_attribute *bin_attr, in module_notes_read() 176 struct bin_attribute *nattr; in add_notes_attrs()
|
/openbmc/linux/drivers/scsi/arcmsr/ |
H A D | arcmsr_attr.c | 63 struct bin_attribute *bin, in arcmsr_sysfs_iop_message_read() 110 struct bin_attribute *bin, in arcmsr_sysfs_iop_message_write() 158 struct bin_attribute *bin, in arcmsr_sysfs_iop_message_clear() 191 static const struct bin_attribute arcmsr_sysfs_message_read_attr = { 200 static const struct bin_attribute arcmsr_sysfs_message_write_attr = { 209 static const struct bin_attribute arcmsr_sysfs_message_clear_attr = {
|