#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/usb.h>
#include <linux/usb/quirks.h>
#include "usb.h"
Go to the source code of this file.
#define add_persist_attributes |
( |
|
dev | ) |
0 |
#define add_power_attributes |
( |
|
dev | ) |
0 |
#define remove_persist_attributes |
( |
|
dev | ) |
do {} while (0) |
#define remove_power_attributes |
( |
|
dev | ) |
do {} while (0) |
#define usb_actconfig_attr |
( |
|
field, |
|
|
|
multiplier, |
|
|
|
format_string |
|
) |
| |
Value:
Definition at line 36 of file sysfs.c.
#define usb_actconfig_show |
( |
|
field, |
|
|
|
multiplier, |
|
|
|
format_string |
|
) |
| |
Value:
struct usb_host_config *actconfig; \
\
udev = to_usb_device(
dev); \
actconfig = udev->actconfig; \
if (actconfig) \
actconfig->desc.field * multiplier); \
else \
return 0; \
} \
Definition at line 20 of file sysfs.c.
#define usb_descriptor_attr |
( |
|
field, |
|
|
|
format_string |
|
) |
| |
Value:static ssize_t \
\
udev = to_usb_device(
dev); \
return
sprintf(
buf, format_string, udev->descriptor.field); \
} \
#define usb_descriptor_attr_le16 |
( |
|
field, |
|
|
|
format_string |
|
) |
| |
Value:static ssize_t \
\
udev = to_usb_device(
dev); \
} \
Definition at line 538 of file sysfs.c.
#define usb_intf_assoc_attr |
( |
|
field, |
|
|
|
format_string |
|
) |
| |
Value:static ssize_t \
\
intf->intf_assoc->field); \
} \
Definition at line 787 of file sysfs.c.
#define usb_intf_attr |
( |
|
field, |
|
|
|
format_string |
|
) |
| |
Value:static ssize_t \
\
intf->cur_altsetting->desc.field); \
} \
#define usb_string_attr |
( |
|
name | ) |
|
Value:
\
udev = to_usb_device(
dev); \
usb_lock_device(udev); \
usb_unlock_device(udev); \
} \
Definition at line 80 of file sysfs.c.
usb_actconfig_attr |
( |
bNumInterfaces |
, |
|
|
usb_actconfig_attr( |
1, |
|
|
"%2d\n" |
|
|
) |
| |
int usb_create_sysfs_dev_files |
( |
struct usb_device * |
udev | ) |
|
usb_descriptor_attr_le16 |
( |
idVendor |
, |
|
|
"%04x\n" |
|
|
) |
| |
void usb_remove_sysfs_dev_files |
( |
struct usb_device * |
udev | ) |
|
Initial value:= {
&dev_attr_grp,
&dev_string_attr_grp,
}
Definition at line 702 of file sysfs.c.
Initial value:= {
&intf_attr_grp,
&intf_assoc_attr_grp,
}
Definition at line 930 of file sysfs.c.