Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/uwb/
Ddriver.c78 struct class_attribute *attr, in beacon_timeout_ms_show()
86 struct class_attribute *attr, in beacon_timeout_ms_store()
98 static struct class_attribute uwb_class_attrs[] = {
/linux-4.4.14/drivers/base/
Dclass.c24 #define to_class_attr(_attr) container_of(_attr, struct class_attribute, attr)
29 struct class_attribute *class_attr = to_class_attr(attr); in class_attr_show()
41 struct class_attribute *class_attr = to_class_attr(attr); in class_attr_store()
89 int class_create_file_ns(struct class *cls, const struct class_attribute *attr, in class_create_file_ns()
102 void class_remove_file_ns(struct class *cls, const struct class_attribute *attr, in class_remove_file_ns()
489 struct class_attribute *attr, char *buf) in show_class_attr_string()
Ddevcoredump.c137 static ssize_t disabled_show(struct class *class, struct class_attribute *attr, in disabled_show()
143 static ssize_t disabled_store(struct class *class, struct class_attribute *attr, in disabled_store()
163 static struct class_attribute devcd_class_attrs[] = {
Dfirmware_class.c525 static ssize_t timeout_show(struct class *class, struct class_attribute *attr, in timeout_show()
544 static ssize_t timeout_store(struct class *class, struct class_attribute *attr, in timeout_store()
554 static struct class_attribute firmware_class_attrs[] = {
/linux-4.4.14/include/linux/
Ddevice.h387 struct class_attribute *class_attrs;
449 struct class_attribute { struct
451 ssize_t (*show)(struct class *class, struct class_attribute *attr, argument
453 ssize_t (*store)(struct class *class, struct class_attribute *attr, argument
458 struct class_attribute class_attr_##_name = __ATTR(_name, _mode, _show, _store)
460 struct class_attribute class_attr_##_name = __ATTR_RW(_name)
462 struct class_attribute class_attr_##_name = __ATTR_RO(_name)
465 const struct class_attribute *attr,
468 const struct class_attribute *attr,
472 const struct class_attribute *attr) in class_create_file()
[all …]
Dnetdevice.h3709 int netdev_class_create_file_ns(struct class_attribute *class_attr,
3711 void netdev_class_remove_file_ns(struct class_attribute *class_attr,
3714 static inline int netdev_class_create_file(struct class_attribute *class_attr) in netdev_class_create_file()
3719 static inline void netdev_class_remove_file(struct class_attribute *class_attr) in netdev_class_remove_file()
/linux-4.4.14/drivers/block/
Dosdblk.c472 struct class_attribute *attr, in class_osdblk_list()
498 struct class_attribute *attr, in class_osdblk_add()
592 struct class_attribute *attr, in class_osdblk_remove()
639 static struct class_attribute class_osdblk_attrs[] = {
Dpktcdvd.c352 struct class_attribute *attr, in class_pktcdvd_show_map()
373 struct class_attribute *attr, in class_pktcdvd_store_add()
395 struct class_attribute *attr, in class_pktcdvd_store_remove()
407 static struct class_attribute class_pktcdvd_attrs[] = {
/linux-4.4.14/arch/avr32/boards/merisc/
Dmerisc_sysfs.c41 static struct class_attribute merisc_class_attrs[] = {
/linux-4.4.14/drivers/gpio/
Dgpiolib-sysfs.c442 struct class_attribute *attr, in export_store()
484 struct class_attribute *attr, in unexport_store()
518 static struct class_attribute gpio_class_attrs[] = {
/linux-4.4.14/drivers/net/bonding/
Dbond_sysfs.c52 struct class_attribute *attr, in bonding_show_bonds()
96 struct class_attribute *attr, in bonding_store_bonds()
148 static const struct class_attribute class_attr_bonding_masters = {
/linux-4.4.14/drivers/misc/cxl/
Dsysfs.c487 static struct kobj_attribute class_attribute = variable
493 &class_attribute.attr,
/linux-4.4.14/arch/powerpc/platforms/pseries/
Dmobility.c318 static ssize_t migrate_store(struct class *class, struct class_attribute *attr, in migrate_store()
Ddlpar.c548 static ssize_t dlpar_store(struct class *class, struct class_attribute *attr, in dlpar_store()
/linux-4.4.14/drivers/block/zram/
Dzram_drv.c1337 struct class_attribute *attr, in hot_add_show()
1352 struct class_attribute *attr, in hot_remove_store()
1380 static struct class_attribute zram_control_class_attrs[] = {
/linux-4.4.14/drivers/mtd/ubi/
Dbuild.c108 struct class_attribute *attr, char *buf) in ubi_version_show()
114 static struct class_attribute ubi_class_attrs[] = {
/linux-4.4.14/include/net/
Dbonding.h535 struct class_attribute class_attr_bonding_masters;
/linux-4.4.14/net/core/
Dnet-sysfs.c1564 int netdev_class_create_file_ns(struct class_attribute *class_attr, in netdev_class_create_file_ns()
1571 void netdev_class_remove_file_ns(struct class_attribute *class_attr, in netdev_class_remove_file_ns()