Home
last modified time | relevance | path

Searched refs:class_attribute (Results 1 – 16 of 16) sorted by relevance

/Linux-v4.19/drivers/uwb/
Ddriver.c78 struct class_attribute *attr, in beacon_timeout_ms_show()
86 struct class_attribute *attr, in beacon_timeout_ms_store()
/Linux-v4.19/drivers/base/
Dclass.c22 #define to_class_attr(_attr) container_of(_attr, struct class_attribute, attr)
27 struct class_attribute *class_attr = to_class_attr(attr); in class_attr_show()
39 struct class_attribute *class_attr = to_class_attr(attr); in class_attr_store()
87 int class_create_file_ns(struct class *cls, const struct class_attribute *attr, in class_create_file_ns()
100 void class_remove_file_ns(struct class *cls, const struct class_attribute *attr, in class_remove_file_ns()
469 struct class_attribute *attr, char *buf) in show_class_attr_string()
Ddevcoredump.c123 static ssize_t disabled_show(struct class *class, struct class_attribute *attr, in disabled_show()
129 static ssize_t disabled_store(struct class *class, struct class_attribute *attr, in disabled_store()
/Linux-v4.19/include/linux/
Ddevice.h469 struct class_attribute { struct
471 ssize_t (*show)(struct class *class, struct class_attribute *attr, argument
473 ssize_t (*store)(struct class *class, struct class_attribute *attr, argument
478 struct class_attribute class_attr_##_name = __ATTR_RW(_name)
480 struct class_attribute class_attr_##_name = __ATTR_RO(_name)
482 struct class_attribute class_attr_##_name = __ATTR_WO(_name)
485 const struct class_attribute *attr,
488 const struct class_attribute *attr,
492 const struct class_attribute *attr) in class_create_file()
498 const struct class_attribute *attr) in class_remove_file()
[all …]
Dnetdevice.h4313 int netdev_class_create_file_ns(const struct class_attribute *class_attr,
4315 void netdev_class_remove_file_ns(const struct class_attribute *class_attr,
4318 static inline int netdev_class_create_file(const struct class_attribute *class_attr) in netdev_class_create_file()
4323 static inline void netdev_class_remove_file(const struct class_attribute *class_attr) in netdev_class_remove_file()
/Linux-v4.19/drivers/net/bonding/
Dbond_sysfs.c51 struct class_attribute *attr, in bonding_show_bonds()
95 struct class_attribute *attr, in bonding_store_bonds()
147 static const struct class_attribute class_attr_bonding_masters = {
/Linux-v4.19/arch/powerpc/platforms/pseries/
Ddlpar.c521 static ssize_t dlpar_store(struct class *class, struct class_attribute *attr, in dlpar_store()
569 static ssize_t dlpar_show(struct class *class, struct class_attribute *attr, in dlpar_show()
Dmobility.c359 struct class_attribute *attr, const char *buf, in migration_store()
/Linux-v4.19/drivers/base/firmware_loader/
Dfallback.c121 static ssize_t timeout_show(struct class *class, struct class_attribute *attr, in timeout_show()
140 static ssize_t timeout_store(struct class *class, struct class_attribute *attr, in timeout_store()
/Linux-v4.19/drivers/gpio/
Dgpiolib-sysfs.c459 struct class_attribute *attr, in export_store()
506 struct class_attribute *attr, in unexport_store()
/Linux-v4.19/drivers/misc/cxl/
Dsysfs.c568 static struct kobj_attribute class_attribute = variable
574 &class_attribute.attr,
/Linux-v4.19/include/net/
Dbonding.h600 struct class_attribute class_attr_bonding_masters;
/Linux-v4.19/net/core/
Dnet-sysfs.c1766 int netdev_class_create_file_ns(const struct class_attribute *class_attr, in netdev_class_create_file_ns()
1773 void netdev_class_remove_file_ns(const struct class_attribute *class_attr, in netdev_class_remove_file_ns()
/Linux-v4.19/drivers/block/
Dpktcdvd.c353 static ssize_t device_map_show(struct class *c, struct class_attribute *attr, in device_map_show()
374 static ssize_t add_store(struct class *c, struct class_attribute *attr, in add_store()
395 static ssize_t remove_store(struct class *c, struct class_attribute *attr, in remove_store()
/Linux-v4.19/drivers/block/zram/
Dzram_drv.c1798 struct class_attribute *attr, in hot_add_show()
1814 struct class_attribute *attr, in hot_remove_store()
/Linux-v4.19/drivers/mtd/ubi/
Dbuild.c108 static ssize_t version_show(struct class *class, struct class_attribute *attr, in version_show()