Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/staging/uwb/
Ddriver.c64 struct class_attribute *attr, in beacon_timeout_ms_show()
72 struct class_attribute *attr, in beacon_timeout_ms_store()
/Linux-v5.4/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()
475 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-v5.4/include/linux/
Ddevice.h710 struct class_attribute { struct
712 ssize_t (*show)(struct class *class, struct class_attribute *attr, argument
714 ssize_t (*store)(struct class *class, struct class_attribute *attr, argument
719 struct class_attribute class_attr_##_name = __ATTR_RW(_name)
721 struct class_attribute class_attr_##_name = __ATTR_RO(_name)
723 struct class_attribute class_attr_##_name = __ATTR_WO(_name)
726 const struct class_attribute *attr,
729 const struct class_attribute *attr,
733 const struct class_attribute *attr) in class_create_file()
739 const struct class_attribute *attr) in class_remove_file()
[all …]
Dnetdevice.h4434 int netdev_class_create_file_ns(const struct class_attribute *class_attr,
4436 void netdev_class_remove_file_ns(const struct class_attribute *class_attr,
4439 static inline int netdev_class_create_file(const struct class_attribute *class_attr) in netdev_class_create_file()
4444 static inline void netdev_class_remove_file(const struct class_attribute *class_attr) in netdev_class_remove_file()
/Linux-v5.4/drivers/net/bonding/
Dbond_sysfs.c35 struct class_attribute *attr, in bonding_show_bonds()
79 struct class_attribute *attr, in bonding_store_bonds()
131 static const struct class_attribute class_attr_bonding_masters = {
/Linux-v5.4/arch/powerpc/platforms/pseries/
Ddlpar.c515 static ssize_t dlpar_store(struct class *class, struct class_attribute *attr, in dlpar_store()
557 static ssize_t dlpar_show(struct class *class, struct class_attribute *attr, in dlpar_show()
Dmobility.c378 struct class_attribute *attr, const char *buf, in migration_store()
/Linux-v5.4/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-v5.4/drivers/gpio/
Dgpiolib-sysfs.c454 struct class_attribute *attr, in export_store()
501 struct class_attribute *attr, in unexport_store()
/Linux-v5.4/drivers/misc/cxl/
Dsysfs.c564 static struct kobj_attribute class_attribute = variable
570 &class_attribute.attr,
/Linux-v5.4/drivers/s390/crypto/
Dzcrypt_api.c304 struct class_attribute *attr, in zcdn_create_store()
318 static const struct class_attribute class_attr_zcdn_create =
322 struct class_attribute *attr, in zcdn_destroy_store()
336 static const struct class_attribute class_attr_zcdn_destroy =
/Linux-v5.4/include/net/
Dbonding.h609 struct class_attribute class_attr_bonding_masters;
/Linux-v5.4/net/core/
Dnet-sysfs.c1764 int netdev_class_create_file_ns(const struct class_attribute *class_attr, in netdev_class_create_file_ns()
1771 void netdev_class_remove_file_ns(const struct class_attribute *class_attr, in netdev_class_remove_file_ns()
/Linux-v5.4/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-v5.4/drivers/block/zram/
Dzram_drv.c2014 struct class_attribute *attr, in hot_add_show()
2030 struct class_attribute *attr, in hot_remove_store()
/Linux-v5.4/drivers/mtd/ubi/
Dbuild.c95 static ssize_t version_show(struct class *class, struct class_attribute *attr, in version_show()
/Linux-v5.4/drivers/infiniband/core/
Duser_mad.c1212 struct class_attribute *attr, char *buf) in abi_version_show()