Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/include/linux/device/
H A Dclass.h197 struct class_attribute { struct
199 ssize_t (*show)(struct class *class, struct class_attribute *attr, argument
201 ssize_t (*store)(struct class *class, struct class_attribute *attr, argument
206 struct class_attribute class_attr_##_name = __ATTR_RW(_name)
208 struct class_attribute class_attr_##_name = __ATTR_RO(_name)
210 struct class_attribute class_attr_##_name = __ATTR_WO(_name)
213 const struct class_attribute *attr,
216 const struct class_attribute *attr,
220 const struct class_attribute *attr) in class_create_file()
226 const struct class_attribute *attr) in class_remove_file()
[all …]
/OK3568_Linux_fs/kernel/drivers/base/
H A Dclass.c23 #define to_class_attr(_attr) container_of(_attr, struct class_attribute, attr)
28 struct class_attribute *class_attr = to_class_attr(attr); in class_attr_show()
40 struct class_attribute *class_attr = to_class_attr(attr); in class_attr_store()
88 int class_create_file_ns(struct class *cls, const struct class_attribute *attr, in class_create_file_ns()
101 void class_remove_file_ns(struct class *cls, const struct class_attribute *attr, in class_remove_file_ns()
476 struct class_attribute *attr, char *buf) in show_class_attr_string()
H A Ddevcoredump.c174 static ssize_t disabled_show(struct class *class, struct class_attribute *attr, in disabled_show()
204 static ssize_t disabled_store(struct class *class, struct class_attribute *attr, in disabled_store()
/OK3568_Linux_fs/kernel/net/rfkill/
H A Drfkill-wlan.c739 static ssize_t wifi_power_show(struct class *cls, struct class_attribute *attr, char *_buf) in wifi_power_show()
744 static ssize_t wifi_power_store(struct class *cls, struct class_attribute *attr, const char *_buf, … in wifi_power_store()
763 static ssize_t wifi_bt_vbat_show(struct class *cls, struct class_attribute *attr, char *_buf) in wifi_bt_vbat_show()
768 static ssize_t wifi_bt_vbat_store(struct class *cls, struct class_attribute *attr, const char *_buf… in wifi_bt_vbat_store()
787 static ssize_t wifi_set_carddetect_store(struct class *cls, struct class_attribute *attr, const cha… in wifi_set_carddetect_store()
/OK3568_Linux_fs/kernel/drivers/net/lte/
H A Dlte_rm310.c76 struct class_attribute *attr, in modem_status_store()
102 struct class_attribute *attr, in modem_status_show()
/OK3568_Linux_fs/kernel/sound/soc/codecs/aw883xx/
H A Daw_calib.c1673 static ssize_t aw_cali_class_time_show(struct class *class, struct class_attribute *attr, char *buf) in aw_cali_class_time_show()
1684 struct class_attribute *attr, const char *buf, size_t len) in aw_cali_class_time_store()
1706 static ssize_t aw_cali_class_cali_re_show(struct class *class, struct class_attribute *attr, char … in aw_cali_class_cali_re_show()
1742 struct class_attribute *attr, const char *buf, size_t len) in aw_cali_class_cali_re_store()
1766 struct class_attribute *attr, char *buf) in aw_cali_class_cali_f0_show()
1805 static ssize_t aw_cali_class_cali_f0_q_show(struct class *class, struct class_attribute *attr, cha… in aw_cali_class_cali_f0_q_show()
1851 static ssize_t aw_class_re_range_show(struct class *class, struct class_attribute *attr, char *buf) in aw_class_re_range_show()
1884 static struct class_attribute class_attr_cali_time = \
1888 static struct class_attribute class_attr_re25_calib = \
1892 static struct class_attribute class_attr_f0_calib = \
[all …]
/OK3568_Linux_fs/kernel/drivers/misc/
H A Dgpio-detection.c46 struct class_attribute cls_attr;
198 struct class_attribute *attr, in gpio_detection_info_show()
/OK3568_Linux_fs/kernel/drivers/net/bonding/
H A 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 = {
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/pseries/
H A Ddlpar.c514 static ssize_t dlpar_store(struct class *class, struct class_attribute *attr, in dlpar_store()
556 static ssize_t dlpar_show(struct class *class, struct class_attribute *attr, in dlpar_show()
H A Dmobility.c381 struct class_attribute *attr, const char *buf, in migration_store()
/OK3568_Linux_fs/kernel/drivers/base/firmware_loader/
H A Dfallback.c123 static ssize_t timeout_show(struct class *class, struct class_attribute *attr, in timeout_show()
142 static ssize_t timeout_store(struct class *class, struct class_attribute *attr, in timeout_store()
/OK3568_Linux_fs/kernel/drivers/gpio/
H A Dgpiolib-sysfs.c455 struct class_attribute *attr, in export_store()
510 struct class_attribute *attr, in unexport_store()
/OK3568_Linux_fs/kernel/drivers/misc/cxl/
H A Dsysfs.c564 static struct kobj_attribute class_attribute = variable
570 &class_attribute.attr,
/OK3568_Linux_fs/kernel/drivers/s390/crypto/
H A Dzcrypt_api.c306 struct class_attribute *attr, in zcdn_create_store()
320 static const struct class_attribute class_attr_zcdn_create =
324 struct class_attribute *attr, in zcdn_destroy_store()
338 static const struct class_attribute class_attr_zcdn_destroy =
/OK3568_Linux_fs/kernel/drivers/input/sensors/
H A Dsensor-dev.c102 struct class_attribute *attr, char *buf) in accel_calibration_show()
183 struct class_attribute *attr, const char *buf, size_t count) in accel_calibration_store()
247 struct class_attribute *attr, char *buf) in gyro_calibration_show()
308 struct class_attribute *attr, const char *buf, size_t count) in gyro_calibration_store()
/OK3568_Linux_fs/u-boot/drivers/mtd/ubi/
H A Dbuild.c127 struct class_attribute *attr, char *buf) in ubi_version_show()
133 static struct class_attribute ubi_class_attrs[] = {
/OK3568_Linux_fs/kernel/drivers/block/zram/
H A Dzram_drv.c2040 struct class_attribute *attr, in hot_add_show()
2053 static struct class_attribute class_attr_hot_add =
2057 struct class_attribute *attr, in hot_remove_store()
/OK3568_Linux_fs/kernel/include/net/
H A Dbonding.h626 struct class_attribute class_attr_bonding_masters;
/OK3568_Linux_fs/kernel/drivers/block/
H A 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()
/OK3568_Linux_fs/kernel/net/core/
H A Dnet-sysfs.c2043 int netdev_class_create_file_ns(const struct class_attribute *class_attr, in netdev_class_create_file_ns()
2050 void netdev_class_remove_file_ns(const struct class_attribute *class_attr, in netdev_class_remove_file_ns()
/OK3568_Linux_fs/kernel/drivers/mtd/ubi/
H A Dbuild.c95 static ssize_t version_show(struct class *class, struct class_attribute *attr, in version_show()
/OK3568_Linux_fs/kernel/drivers/infiniband/core/
H A Duser_mad.c1237 struct class_attribute *attr, char *buf) in abi_version_show()
/OK3568_Linux_fs/kernel/include/linux/
H A Dnetdevice.h4860 int netdev_class_create_file_ns(const struct class_attribute *class_attr,
4862 void netdev_class_remove_file_ns(const struct class_attribute *class_attr,