|
int | usb_create_sysfs_dev_files (struct usb_device *dev) |
|
void | usb_remove_sysfs_dev_files (struct usb_device *dev) |
|
void | usb_create_sysfs_intf_files (struct usb_interface *intf) |
|
void | usb_remove_sysfs_intf_files (struct usb_interface *intf) |
|
int | usb_create_ep_devs (struct device *parent, struct usb_host_endpoint *endpoint, struct usb_device *udev) |
|
void | usb_remove_ep_devs (struct usb_host_endpoint *endpoint) |
|
void | usb_enable_endpoint (struct usb_device *dev, struct usb_host_endpoint *ep, bool reset_toggle) |
|
void | usb_enable_interface (struct usb_device *dev, struct usb_interface *intf, bool reset_toggles) |
|
void | usb_disable_endpoint (struct usb_device *dev, unsigned int epaddr, bool reset_hardware) |
|
void | usb_disable_interface (struct usb_device *dev, struct usb_interface *intf, bool reset_hardware) |
|
void | usb_release_interface_cache (struct kref *ref) |
|
void | usb_disable_device (struct usb_device *dev, int skip_ep0) |
|
int | usb_deauthorize_device (struct usb_device *) |
|
int | usb_authorize_device (struct usb_device *) |
|
void | usb_detect_quirks (struct usb_device *udev) |
|
void | usb_detect_interface_quirks (struct usb_device *udev) |
|
int | usb_remove_device (struct usb_device *udev) |
|
int | usb_get_device_descriptor (struct usb_device *dev, unsigned int size) |
|
int | usb_get_bos_descriptor (struct usb_device *dev) |
|
void | usb_release_bos_descriptor (struct usb_device *dev) |
|
char * | usb_cache_string (struct usb_device *udev, int index) |
|
int | usb_set_configuration (struct usb_device *dev, int configuration) |
|
int | usb_choose_configuration (struct usb_device *udev) |
|
void | usb_kick_khubd (struct usb_device *dev) |
|
int | usb_match_one_id_intf (struct usb_device *dev, struct usb_host_interface *intf, const struct usb_device_id *id) |
|
int | usb_match_device (struct usb_device *dev, const struct usb_device_id *id) |
|
void | usb_forced_unbind_intf (struct usb_interface *intf) |
|
void | usb_rebind_intf (struct usb_interface *intf) |
|
int | usb_hub_claim_port (struct usb_device *hdev, unsigned port, struct dev_state *owner) |
|
int | usb_hub_release_port (struct usb_device *hdev, unsigned port, struct dev_state *owner) |
|
void | usb_hub_release_all_ports (struct usb_device *hdev, struct dev_state *owner) |
|
bool | usb_device_is_owned (struct usb_device *udev) |
|
int | usb_hub_init (void) |
|
void | usb_hub_cleanup (void) |
|
int | usb_major_init (void) |
|
void | usb_major_cleanup (void) |
|
void | usbfs_conn_disc_event (void) |
|
int | usb_devio_init (void) |
|
void | usb_devio_cleanup (void) |
|
void | usb_notify_add_device (struct usb_device *udev) |
|
void | usb_notify_remove_device (struct usb_device *udev) |
|
void | usb_notify_add_bus (struct usb_bus *ubus) |
|
void | usb_notify_remove_bus (struct usb_bus *ubus) |
|
enum usb_port_connect_type | usb_get_hub_port_connect_type (struct usb_device *hdev, int port1) |
|
void | usb_set_hub_port_connect_type (struct usb_device *hdev, int port1, enum usb_port_connect_type type) |
|
int usb_deauthorize_device |
( |
struct usb_device * |
usb_dev | ) |
|
usb_deauthorize_device - deauthorize a device (usbcore-internal) : USB device
Move the USB device to a very basic state where interfaces are disabled and the device is in fact unconfigured and unusable.
We share a lock (that we have) with device_del(), so we need to defer its call.
Definition at line 2301 of file hub.c.
void usb_disable_device |
( |
struct usb_device * |
dev, |
|
|
int |
skip_ep0 |
|
) |
| |
usb_disable_device - Disable all the endpoints for a USB device : the device whose endpoints are being disabled : 0 to disable endpoint 0, 1 to skip it.
Disables all the device's endpoints, potentially including endpoint 0. Deallocates hcd/hardware state for the endpoints (nuking all or most pending urbs) and usbcore state for the interfaces, so that usbcore must usb_set_configuration() before any interfaces could be used.
Definition at line 1138 of file message.c.
int usb_remove_device |
( |
struct usb_device * |
udev | ) |
|
usb_remove_device - disable a device's port on its parent hub : device to be disabled and removed Context: locked, must be able to sleep.
After 's port has been disabled, khubd is notified and it will see that the device has been disconnected. When the device is physically unplugged and something is plugged in, the events will be received and processed normally.
Definition at line 928 of file hub.c.