Home
last modified time | relevance | path

Searched refs:bin_attribute (Results 1 – 25 of 155) sorted by relevance

1234567

/linux-6.1.9/include/linux/
Dsysfs.h27 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 …]
/linux-6.1.9/drivers/w1/slaves/
Dw1_ds2408.c68 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[] = {
Dw1_ds2438.c293 struct bin_attribute *bin_attr, char *buf, in iad_write()
315 struct bin_attribute *bin_attr, char *buf, in iad_read()
336 struct bin_attribute *bin_attr, char *buf, in page0_read()
366 struct bin_attribute *bin_attr, char *buf, in page1_read()
396 struct bin_attribute *bin_attr, char *buf, in offset_write()
415 struct bin_attribute *bin_attr, char *buf, in temperature_read()
436 struct bin_attribute *bin_attr, char *buf, in vad_read()
457 struct bin_attribute *bin_attr, char *buf, in vdd_read()
485 static struct bin_attribute *w1_ds2438_bin_attrs[] = {
Dw1_ds2406.c27 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] = {
Dw1_ds2413.c28 struct bin_attribute *bin_attr, char *buf, loff_t off, in state_read()
84 struct bin_attribute *bin_attr, char *buf, in output_write()
131 static struct bin_attribute *w1_f3a_bin_attrs[] = {
/linux-6.1.9/drivers/hid/
Dhid-roccat-common.h49 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 = { \
Dhid-roccat-pyra.c135 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
144 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
157 static struct bin_attribute bin_attr_##thingy = { \
166 static struct bin_attribute bin_attr_##thingy = { \
174 static struct bin_attribute bin_attr_##thingy = { \
186 struct kobject *kobj, struct bin_attribute *attr, char *buf, in pyra_sysfs_read_profilex_settings()
204 struct kobject *kobj, struct bin_attribute *attr, char *buf, in pyra_sysfs_read_profilex_buttons()
222 static struct bin_attribute bin_attr_profile##number##_settings = { \
228 static struct bin_attribute bin_attr_profile##number##_buttons = { \
241 struct kobject *kobj, struct bin_attribute *attr, char *buf, in pyra_sysfs_write_settings()
[all …]
Dhid-roccat-koneplus.c133 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
142 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
155 static struct bin_attribute bin_attr_##thingy = { \
164 static struct bin_attribute bin_attr_##thingy = { \
172 static struct bin_attribute bin_attr_##thingy = { \
188 struct kobject *kobj, struct bin_attribute *attr, char *buf, in koneplus_sysfs_read_profilex_settings()
206 struct kobject *kobj, struct bin_attribute *attr, char *buf, in koneplus_sysfs_read_profilex_buttons()
224 static struct bin_attribute bin_attr_profile##number##_settings = { \
230 static struct bin_attribute bin_attr_profile##number##_buttons = { \
326 static struct bin_attribute *koneplus_bin_attributes[] = {
Dhid-roccat-kovaplus.c176 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
185 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
198 static struct bin_attribute bin_attr_##thingy = { \
207 static struct bin_attribute bin_attr_##thingy = { \
218 struct kobject *kobj, struct bin_attribute *attr, char *buf, in kovaplus_sysfs_read_profilex_settings()
236 struct kobject *kobj, struct bin_attribute *attr, char *buf, in kovaplus_sysfs_read_profilex_buttons()
254 static struct bin_attribute bin_attr_profile##number##_settings = { \
260 static struct bin_attribute bin_attr_profile##number##_buttons = { \
384 static struct bin_attribute *kovaplus_bin_attributes[] = {
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_sysfs.c64 struct bin_attribute *attr, char *buf, in i915_l3_read()
92 struct bin_attribute *attr, char *buf, in i915_l3_write()
141 static const struct bin_attribute dpf_attrs = {
150 static const struct bin_attribute dpf_attrs_1 = {
162 struct bin_attribute *attr, char *buf, in error_state_read()
198 struct bin_attribute *attr, char *buf, in error_state_write()
210 static const struct bin_attribute error_state_attr = {
/linux-6.1.9/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()
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()
/linux-6.1.9/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sysfs.c268 struct bin_attribute *attr, char *buf, in qlcnic_sysfs_read_crb()
285 struct bin_attribute *attr, char *buf, in qlcnic_sysfs_write_crb()
314 struct bin_attribute *attr, char *buf, in qlcnic_sysfs_read_mem()
336 struct bin_attribute *attr, char *buf, in qlcnic_sysfs_write_mem()
400 struct bin_attribute *attr, in qlcnic_sysfs_write_pm_config()
450 struct bin_attribute *attr, in qlcnic_sysfs_read_pm_config()
543 struct bin_attribute *attr, in qlcnic_sysfs_write_esw_config()
627 struct bin_attribute *attr, in qlcnic_sysfs_read_esw_config()
679 struct bin_attribute *attr, in qlcnic_sysfs_write_npar_config()
726 struct bin_attribute *attr, in qlcnic_sysfs_read_npar_config()
[all …]
/linux-6.1.9/arch/powerpc/kernel/
Dsecvar-sysfs.c64 struct bin_attribute *attr, char *buf, loff_t off, in data_read()
96 struct bin_attribute *attr, char *buf, loff_t off, in update_write()
115 static struct bin_attribute data_attr = __BIN_ATTR_RO(data, 0);
117 static struct bin_attribute update_attr = __BIN_ATTR_WO(update, 0);
119 static struct bin_attribute *secvar_bin_attrs[] = {
/linux-6.1.9/mm/
Dpage_idle.c114 struct bin_attribute *attr, char *buf, in page_idle_bitmap_read()
159 struct bin_attribute *attr, char *buf, in page_idle_bitmap_write()
195 static struct bin_attribute page_idle_bitmap_attr =
199 static struct bin_attribute *page_idle_bin_attrs[] = {
/linux-6.1.9/drivers/pci/
Dpci-sysfs.c671 struct bin_attribute *bin_attr, char *buf, in pci_read_config()
746 struct bin_attribute *bin_attr, char *buf, in pci_write_config()
809 static struct bin_attribute *pci_dev_config_attrs[] = {
815 struct bin_attribute *a, int n) in pci_dev_config_attr_is_visible()
845 struct bin_attribute *bin_attr, char *buf, in pci_read_legacy_io()
870 struct bin_attribute *bin_attr, char *buf, in pci_write_legacy_io()
894 struct bin_attribute *attr, in pci_mmap_legacy_mem()
914 struct bin_attribute *attr, in pci_mmap_legacy_io()
952 b->legacy_io = kcalloc(2, sizeof(struct bin_attribute), in pci_create_legacy_files()
1037 static int pci_mmap_resource(struct kobject *kobj, struct bin_attribute *attr, in pci_mmap_resource()
[all …]
/linux-6.1.9/arch/x86/kernel/
Dksysfs.c31 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[] = {
/linux-6.1.9/arch/alpha/kernel/
Dpci-sysfs.c67 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()
/linux-6.1.9/drivers/cxl/
Dport.c85 struct bin_attribute *bin_attr, char *buf, in CDAT_read()
105 struct bin_attribute *attr, int i) in cxl_port_bin_attr_is_visible()
116 static struct bin_attribute *cxl_cdat_bin_attributes[] = {
/linux-6.1.9/drivers/zorro/
Dzorro-sysfs.c84 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[] = {
/linux-6.1.9/kernel/
Dkheaders.c34 struct bin_attribute *bin_attr, in ikheaders_read()
41 static struct bin_attribute kheaders_attr __ro_after_init = {
/linux-6.1.9/kernel/bpf/
Dsysfs_btf.c17 struct bin_attribute *bin_attr, in btf_vmlinux_read()
24 static struct bin_attribute bin_attr_btf_vmlinux __ro_after_init = {
/linux-6.1.9/drivers/leds/
Dleds.h25 struct bin_attribute *attr, char *buf,
28 struct bin_attribute *bin_attr, char *buf,
/linux-6.1.9/drivers/firmware/google/
Dmemconsole.c17 struct bin_attribute *bin_attr, char *buf, in memconsole_read()
29 static struct bin_attribute memconsole_bin_attr = {
/linux-6.1.9/drivers/mtd/spi-nor/
Dsysfs.c51 struct bin_attribute *bin_attr, char *buf, in sfdp_read()
65 static struct bin_attribute *spi_nor_sysfs_bin_entries[] = {
84 struct bin_attribute *attr, int n) in spi_nor_sysfs_is_bin_visible()
/linux-6.1.9/arch/powerpc/platforms/powernv/
Dultravisor.c35 struct bin_attribute *bin_attr, char *to, in uv_msglog_read()
41 static struct bin_attribute uv_msglog_attr = {

1234567