Lines Matching refs:attr
22 struct device_attribute *attr, char *buf) \
46 struct device_attribute *attr, char *buf) in bMaxPower_show() argument
63 struct device_attribute *attr, char *buf) in configuration_show() argument
83 struct device_attribute *attr, in bConfigurationValue_store() argument
102 struct device_attribute *attr, char *buf) \
119 static ssize_t speed_show(struct device *dev, struct device_attribute *attr, in speed_show() argument
151 static ssize_t busnum_show(struct device *dev, struct device_attribute *attr, in busnum_show() argument
161 static ssize_t devnum_show(struct device *dev, struct device_attribute *attr, in devnum_show() argument
171 static ssize_t devpath_show(struct device *dev, struct device_attribute *attr, in devpath_show() argument
181 static ssize_t version_show(struct device *dev, struct device_attribute *attr, in version_show() argument
193 static ssize_t maxchild_show(struct device *dev, struct device_attribute *attr, in maxchild_show() argument
203 static ssize_t quirks_show(struct device *dev, struct device_attribute *attr, in quirks_show() argument
214 struct device_attribute *attr, char *buf) in avoid_reset_quirk_show() argument
223 struct device_attribute *attr, in avoid_reset_quirk_store() argument
241 static ssize_t urbnum_show(struct device *dev, struct device_attribute *attr, in urbnum_show() argument
251 static ssize_t removable_show(struct device *dev, struct device_attribute *attr, in removable_show() argument
275 struct device_attribute *attr, char *buf) in ltm_capable_show() argument
285 static ssize_t persist_show(struct device *dev, struct device_attribute *attr, in persist_show() argument
293 static ssize_t persist_store(struct device *dev, struct device_attribute *attr, in persist_store() argument
325 &dev_attr_persist.attr, in add_persist_attributes()
334 &dev_attr_persist.attr, in remove_persist_attributes()
339 struct device_attribute *attr, char *buf) in connected_duration_show() argument
356 struct device_attribute *attr, char *buf) in active_duration_show() argument
370 struct device_attribute *attr, char *buf) in autosuspend_show() argument
376 struct device_attribute *attr, const char *buf, in autosuspend_store() argument
404 static ssize_t level_show(struct device *dev, struct device_attribute *attr, in level_show() argument
416 static ssize_t level_store(struct device *dev, struct device_attribute *attr, in level_store() argument
448 struct device_attribute *attr, char *buf) in usb2_hardware_lpm_show() argument
462 struct device_attribute *attr, in usb2_hardware_lpm_store() argument
488 struct device_attribute *attr, in usb2_lpm_l1_timeout_show() argument
496 struct device_attribute *attr, in usb2_lpm_l1_timeout_store() argument
512 struct device_attribute *attr, char *buf) in usb2_lpm_besl_show() argument
519 struct device_attribute *attr, in usb2_lpm_besl_store() argument
535 struct device_attribute *attr, char *buf) in usb3_hardware_lpm_u1_show() argument
554 struct device_attribute *attr, char *buf) in usb3_hardware_lpm_u2_show() argument
573 &dev_attr_usb2_hardware_lpm.attr,
574 &dev_attr_usb2_lpm_l1_timeout.attr,
575 &dev_attr_usb2_lpm_besl.attr,
584 &dev_attr_usb3_hardware_lpm_u1.attr,
585 &dev_attr_usb3_hardware_lpm_u2.attr,
594 &dev_attr_autosuspend.attr,
595 &dev_attr_level.attr,
596 &dev_attr_connected_duration.attr,
597 &dev_attr_active_duration.attr,
644 field##_show(struct device *dev, struct device_attribute *attr, \
661 field##_show(struct device *dev, struct device_attribute *attr, \
680 struct device_attribute *attr, char *buf) in authorized_show() argument
692 struct device_attribute *attr, const char *buf, in authorized_store() argument
711 static ssize_t remove_store(struct device *dev, struct device_attribute *attr, in remove_store() argument
734 &dev_attr_configuration.attr,
735 &dev_attr_bNumInterfaces.attr,
736 &dev_attr_bConfigurationValue.attr,
737 &dev_attr_bmAttributes.attr,
738 &dev_attr_bMaxPower.attr,
740 &dev_attr_urbnum.attr,
741 &dev_attr_idVendor.attr,
742 &dev_attr_idProduct.attr,
743 &dev_attr_bcdDevice.attr,
744 &dev_attr_bDeviceClass.attr,
745 &dev_attr_bDeviceSubClass.attr,
746 &dev_attr_bDeviceProtocol.attr,
747 &dev_attr_bNumConfigurations.attr,
748 &dev_attr_bMaxPacketSize0.attr,
749 &dev_attr_speed.attr,
750 &dev_attr_busnum.attr,
751 &dev_attr_devnum.attr,
752 &dev_attr_devpath.attr,
753 &dev_attr_version.attr,
754 &dev_attr_maxchild.attr,
755 &dev_attr_quirks.attr,
756 &dev_attr_avoid_reset_quirk.attr,
757 &dev_attr_authorized.attr,
758 &dev_attr_remove.attr,
759 &dev_attr_removable.attr,
760 &dev_attr_ltm_capable.attr,
771 &dev_attr_manufacturer.attr,
772 &dev_attr_product.attr,
773 &dev_attr_serial.attr,
783 if (a == &dev_attr_manufacturer.attr) { in dev_string_attrs_are_visible()
786 } else if (a == &dev_attr_product.attr) { in dev_string_attrs_are_visible()
789 } else if (a == &dev_attr_serial.attr) { in dev_string_attrs_are_visible()
811 struct bin_attribute *attr, in read_descriptors() argument
851 .attr = {.name = "descriptors", .mode = 0444},
890 iad_##field##_show(struct device *dev, struct device_attribute *attr, \
909 field##_show(struct device *dev, struct device_attribute *attr, \
926 static ssize_t interface_show(struct device *dev, struct device_attribute *attr, in interface_show() argument
940 static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, in modalias_show() argument
967 struct device_attribute *attr, in supports_autosuspend_show() argument
986 struct device_attribute *attr, char *buf) in interface_authorized_show() argument
997 struct device_attribute *attr, const char *buf, size_t count) in interface_authorized_store() argument
1017 &dev_attr_bInterfaceNumber.attr,
1018 &dev_attr_bAlternateSetting.attr,
1019 &dev_attr_bNumEndpoints.attr,
1020 &dev_attr_bInterfaceClass.attr,
1021 &dev_attr_bInterfaceSubClass.attr,
1022 &dev_attr_bInterfaceProtocol.attr,
1023 &dev_attr_modalias.attr,
1024 &dev_attr_supports_autosuspend.attr,
1025 &dev_attr_interface_authorized.attr,
1033 &dev_attr_iad_bFirstInterface.attr,
1034 &dev_attr_iad_bInterfaceCount.attr,
1035 &dev_attr_iad_bFunctionClass.attr,
1036 &dev_attr_iad_bFunctionSubClass.attr,
1037 &dev_attr_iad_bFunctionProtocol.attr,