id
stringlengths
4
63
text
stringlengths
153
8.81M
usb4_switch_remove_ports(9)
NAME usb4_switch_remove_ports - Removes USB4 ports from this router SYNOPSIS void usb4_switch_remove_ports (struct tb_switch *sw ); ARGUMENTS sw USB4 router DESCRIPTION Unregisters previously registered USB4 ports. SEE ALSO Kernel file ./drivers/thunderbolt/usb4.c usb4_switch_check_wakes(9), us...
usb4_switch_set_sleep(9)
NAME usb4_switch_set_sleep - Prepare the router to enter sleep SYNOPSIS int usb4_switch_set_sleep (struct tb_switch *sw ); ARGUMENTS sw USB4 router DESCRIPTION Sets sleep bit for the router and waits until router sleep ready bit has been asserted. RETURN 0 on success, negative errno otherwise. SEE ALSO Ke...
usb4_switch_set_wake(9)
NAME usb4_switch_set_wake - Enabled/disable wake SYNOPSIS int usb4_switch_set_wake (struct tb_switch *sw , unsigned int flags , bool runtime ); ARGUMENTS sw USB4 router flags Wakeup flags (0 to disable) runtime Wake is being programmed during system runtime DESCRIPTION Enables/disa...
usb4_switch_setup(9)
NAME usb4_switch_setup - Additional setup for USB4 device SYNOPSIS int usb4_switch_setup (struct tb_switch *sw ); ARGUMENTS sw USB4 router to setup DESCRIPTION USB4 routers need additional settings in order to enable all the tunneling. This function enables USB and PCIe tunneling if it can be enabled (e.g...
usb4_switch_version(9)
NAME usb4_switch_version - Returns USB4 version of the router SYNOPSIS unsigned int usb4_switch_version (const struct tb_switch *sw ); ARGUMENTS sw Router to check RETURN Major version of USB4 router (1 for v1, 2 for v2 and so on). Can be called to pre-USB4 router too and in that case returns 0. SEE ALSO K...
usb4_usb3_port_allocate_bandwidth(9)
NAME usb4_usb3_port_allocate_bandwidth - Allocate bandwidth for USB3 SYNOPSIS int usb4_usb3_port_allocate_bandwidth (struct tb_port *port , int *upstream_bw , int *downstream_bw ); ARGUMENTS port USB3 adapter port upstream_bw New upstream bandwidth downstream_bw New downstrea...
usb4_usb3_port_allocated_bandwidth(9)
NAME usb4_usb3_port_allocated_bandwidth - Bandwidth allocated for USB3 SYNOPSIS int usb4_usb3_port_allocated_bandwidth (struct tb_port *port , int *upstream_bw , int *downstream_bw ); ARGUMENTS port USB3 adapter port upstream_bw Allocated upstream bandwidth is stored here downstream_bw ...
usb4_usb3_port_match(9)
NAME usb4_usb3_port_match - Matches USB4 port device with USB 3.x port device SYNOPSIS bool usb4_usb3_port_match (struct device *usb4_port_dev , const struct fwnode_handle *usb3_port_fwnode ); ARGUMENTS usb4_port_dev USB4 port device usb3_port_fwnode USB 3.x port firmware node DESCRIPTION ...
usb4_usb3_port_max_link_rate(9)
NAME usb4_usb3_port_max_link_rate - Maximum supported USB3 link rate SYNOPSIS int usb4_usb3_port_max_link_rate (struct tb_port *port ); ARGUMENTS port USB3 adapter port RETURN Maximum supported link rate of a USB3 adapter in Mb/s. Negative errno in case of an error. SEE ALSO Kernel file ./drivers/thunderb...
usb4_usb3_port_release_bandwidth(9)
NAME usb4_usb3_port_release_bandwidth - Release allocated USB3 bandwidth SYNOPSIS int usb4_usb3_port_release_bandwidth (struct tb_port *port , int *upstream_bw , int *downstream_bw ); ARGUMENTS port USB3 adapter port upstream_bw New allocated upstream bandwidth downstream_bw ...
usb_acpi_add_usb4_devlink(9)
NAME usb_acpi_add_usb4_devlink - add device link to USB4 Host Interface for tunneled USB3 devices SYNOPSIS int usb_acpi_add_usb4_devlink (struct usb_device *udev ); ARGUMENTS udev Tunneled USB3 device connected to a roothub. DESCRIPTION Adds a device link between a tunneled USB3 device and the USB4 Host I...
usb_acpi_port_lpm_incapable(9)
NAME usb_acpi_port_lpm_incapable - check if lpm should be disabled for a port. SYNOPSIS int usb_acpi_port_lpm_incapable (struct usb_device *hdev , int index ); ARGUMENTS hdev USB device belonging to the usb hub index zero based port index DESCRIPTION Some USB3 ports may not support USB3 link pow...
usb_acpi_power_manageable(9)
NAME usb_acpi_power_manageable - check whether usb port has acpi power resource. SYNOPSIS bool usb_acpi_power_manageable (struct usb_device *hdev , int index ); ARGUMENTS hdev USB device belonging to the usb hub index port index based zero DESCRIPTION Return true if the port has acpi power resou...
usb_acpi_set_power_state(9)
NAME usb_acpi_set_power_state - control usb port's power via acpi power resource SYNOPSIS int usb_acpi_set_power_state (struct usb_device *hdev , int index , bool enable ); ARGUMENTS hdev USB device belonging to the usb hub index port index based zero enable power state expected to b...
usb_add_config(9)
NAME usb_add_config - add a configuration to a device. SYNOPSIS int usb_add_config (struct usb_composite_dev *cdev , struct usb_configuration *config , int (*bind)(struct usb_configuration *) ); ARGUMENTS cdev wraps the USB gadget config the configuration, with bConfigurationValue assigned ...
usb_add_function(9)
NAME usb_add_function - add a function to a configuration SYNOPSIS int usb_add_function (struct usb_configuration *config , struct usb_function *function ); ARGUMENTS config the configuration function the function being added CONTEXT single threaded during gadget setup DESCRIPTION After initializati...
usb_add_gadget(9)
NAME usb_add_gadget - adds a new gadget to the udc class driver list SYNOPSIS int usb_add_gadget (struct usb_gadget *gadget ); ARGUMENTS gadget the gadget to be added to the list. DESCRIPTION Returns zero on success, negative errno otherwise. Does not do a final usb_put_gadget if an error occurs. SEE ALSO Ker...
usb_add_gadget_udc(9)
NAME usb_add_gadget_udc - adds a new gadget to the udc class driver list SYNOPSIS int usb_add_gadget_udc (struct device *parent , struct usb_gadget *gadget ); ARGUMENTS parent the parent device to this udc. Usually the controller driver's device. gadget the gadget to be added to the list DESCRIPTIO...
usb_add_gadget_udc_release(9)
NAME usb_add_gadget_udc_release - adds a new gadget to the udc class driver list SYNOPSIS int usb_add_gadget_udc_release (struct device *parent , struct usb_gadget *gadget , void (*release)(struct device *dev) ); ARGUMENTS parent the parent device to this udc. Usually the controller driver's device. gadg...
usb_add_hcd(9)
NAME usb_add_hcd - finish generic HCD structure initialization and register SYNOPSIS int usb_add_hcd (struct usb_hcd *hcd , unsigned int irqnum , unsigned long irqflags ); ARGUMENTS hcd the usb_hcd structure to initialize irqnum Interrupt line to allocate irqflags Interrupt type flags ...
usb_add_phy(9)
NAME usb_add_phy - declare the USB PHY SYNOPSIS int usb_add_phy (struct usb_phy *x , enum usb_phy_type type ); ARGUMENTS x the USB phy to be used; or NULL type the type of this PHY DESCRIPTION This call is exclusively for use by phy drivers, which coordinate the activities of drivers for hos...
usb_add_phy_dev(9)
NAME usb_add_phy_dev - declare the USB PHY SYNOPSIS int usb_add_phy_dev (struct usb_phy *x ); ARGUMENTS x the USB phy to be used; or NULL DESCRIPTION This call is exclusively for use by phy drivers, which coordinate the activities of drivers for host and peripheral controllers, and in some cases for VBUS c...
usb_alloc_coherent(9)
NAME usb_alloc_coherent - allocate dma-consistent buffer for URB_NO_xxx_DMA_MAP SYNOPSIS void * usb_alloc_coherent (struct usb_device *dev , size_t size , gfp_t mem_flags , dma_addr_t *dma ); ARGUMENTS dev device the buffer will be used with size requested buffer size mem_flags affect...
usb_alloc_dev(9)
NAME usb_alloc_dev - usb device constructor (usbcore-internal) SYNOPSIS struct usb_device * usb_alloc_dev (struct usb_device *parent , struct usb_bus *bus , unsigned port1 ); ARGUMENTS parent hub to which device is connected; null to allocate a root hub bus bus used to access the device p...
usb_alloc_noncoherent(9)
NAME usb_alloc_noncoherent - allocate dma-noncoherent buffer for URB_NO_xxx_DMA_MAP SYNOPSIS void * usb_alloc_noncoherent (struct usb_device *dev , size_t size , gfp_t mem_flags , dma_addr_t *dma , enum dma_data_direction dir , struct sg_table **table ); ARGUMENTS dev device the buffer will be used with ...
usb_alloc_streams(9)
NAME usb_alloc_streams - allocate bulk endpoint stream IDs. SYNOPSIS int usb_alloc_streams (struct usb_interface *interface , struct usb_host_endpoint **eps , unsigned int num_eps , unsigned int num_streams , gfp_t mem_flags ); ARGUMENTS interface alternate setting that includes all endpoints. eps a...
usb_alloc_urb(9)
NAME usb_alloc_urb - creates a new urb for a USB driver to use SYNOPSIS struct urb * usb_alloc_urb (int iso_packets , gfp_t mem_flags ); ARGUMENTS iso_packets number of iso packets for this urb mem_flags the type of memory to allocate, see kmalloc for a list of valid options for this. DESCRIPTION Creates ...
usb_altnum_to_altsetting(9)
NAME usb_altnum_to_altsetting - get the altsetting structure with a given alternate setting number. SYNOPSIS struct usb_host_interface * usb_altnum_to_altsetting (const struct usb_interface *intf , unsigned int altnum ); ARGUMENTS intf the interface containing the altsetting in question altnum the...
usb_anchor_empty(9)
NAME usb_anchor_empty - is an anchor empty SYNOPSIS int usb_anchor_empty (struct usb_anchor *anchor ); ARGUMENTS anchor the anchor you want to query RETURN 1 if the anchor has no urbs associated with it. SEE ALSO Kernel file ./drivers/usb/core/urb.c usb_init_urb(9), usb_alloc_urb(9), usb_free_urb(9), usb_g...
usb_anchor_resume_wakeups(9)
NAME usb_anchor_resume_wakeups - SYNOPSIS void usb_anchor_resume_wakeups (struct usb_anchor *anchor ); ARGUMENTS anchor the anchor you want to resume wakeups on DESCRIPTION Allow usb_wait_anchor_empty_timeout waiters to be woken up again, and wake up any current waiters if the anchor is empty. SEE ALSO Kernel ...
usb_anchor_suspend_wakeups(9)
NAME usb_anchor_suspend_wakeups - SYNOPSIS void usb_anchor_suspend_wakeups (struct usb_anchor *anchor ); ARGUMENTS anchor the anchor you want to suspend wakeups on DESCRIPTION Call this to stop the last urb being unanchored from waking up any usb_wait_anchor_empty_timeout waiters. This is used in the hcd urb gi...
usb_anchor_urb(9)
NAME usb_anchor_urb - anchors an URB while it is processed SYNOPSIS void usb_anchor_urb (struct urb *urb , struct usb_anchor *anchor ); ARGUMENTS urb pointer to the urb to anchor anchor pointer to the anchor DESCRIPTION This can be called to have access to URBs which are to be executed without b...
usb_autopm_get_interface(9)
NAME usb_autopm_get_interface - increment a USB interface's PM-usage counter SYNOPSIS int usb_autopm_get_interface (struct usb_interface *intf ); ARGUMENTS intf the usb_interface whose counter should be incremented DESCRIPTION This routine should be called by an interface driver when it wants to use intf a...
usb_autopm_get_interface_async(9)
NAME usb_autopm_get_interface_async - increment a USB interface's PM-usage counter SYNOPSIS int usb_autopm_get_interface_async (struct usb_interface *intf ); ARGUMENTS intf the usb_interface whose counter should be incremented DESCRIPTION This routine does much the same thing as usb_autopm_get_interface: It i...
usb_autopm_get_interface_no_resume(9)
NAME usb_autopm_get_interface_no_resume - increment a USB interface's PM-usage counter SYNOPSIS void usb_autopm_get_interface_no_resume (struct usb_interface *intf ); ARGUMENTS intf the usb_interface whose counter should be incremented DESCRIPTION This routine increments intf's usage counter but does not carr...
usb_autopm_put_interface(9)
NAME usb_autopm_put_interface - decrement a USB interface's PM-usage counter SYNOPSIS void usb_autopm_put_interface (struct usb_interface *intf ); ARGUMENTS intf the usb_interface whose counter should be decremented DESCRIPTION This routine should be called by an interface driver when it is finished using in...
usb_autopm_put_interface_async(9)
NAME usb_autopm_put_interface_async - decrement a USB interface's PM-usage counter SYNOPSIS void usb_autopm_put_interface_async (struct usb_interface *intf ); ARGUMENTS intf the usb_interface whose counter should be decremented DESCRIPTION This routine does much the same thing as usb_autopm_put_interface:...
usb_autopm_put_interface_no_suspend(9)
NAME usb_autopm_put_interface_no_suspend - decrement a USB interface's PM-usage counter SYNOPSIS void usb_autopm_put_interface_no_suspend (struct usb_interface *intf ); ARGUMENTS intf the usb_interface whose counter should be decremented DESCRIPTION This routine decrements intf's usage counter but does not ca...
usb_autoresume_device(9)
NAME usb_autoresume_device - immediately autoresume a USB device and its interfaces SYNOPSIS int usb_autoresume_device (struct usb_device *udev ); ARGUMENTS udev the usb_device to autoresume DESCRIPTION This routine should be called when a core subsystem wants to use udev and needs to guarantee that it is n...
usb_autosuspend_device(9)
NAME usb_autosuspend_device - delayed autosuspend of a USB device and its interfaces SYNOPSIS void usb_autosuspend_device (struct usb_device *udev ); ARGUMENTS udev the usb_device to autosuspend DESCRIPTION This routine should be called when a core subsystem is finished using udev and wants to allow it to aut...
usb_block_urb(9)
NAME usb_block_urb - reliably prevent further use of an URB SYNOPSIS void usb_block_urb (struct urb *urb ); ARGUMENTS urb pointer to URB to be blocked, may be NULL DESCRIPTION After the routine has run, attempts to resubmit the URB will fail with error -EPERM. Thus even if the URB's completion handler alway...
usb_bulk_msg(9)
NAME usb_bulk_msg - Builds a bulk urb, sends it off and waits for completion SYNOPSIS int usb_bulk_msg (struct usb_device *usb_dev , unsigned int pipe , void *data , int len , int *actual_length , int timeout ); ARGUMENTS usb_dev pointer to the usb device to send the message to pipe endpoint "pipe"...
usb_bulk_msg_killable(9)
NAME usb_bulk_msg_killable - Builds a bulk urb, sends it off and waits for completion in a killable state SYNOPSIS int usb_bulk_msg_killable (struct usb_device *usb_dev , unsigned int pipe , void *data , int len , int *actual_length , int timeout ); ARGUMENTS usb_dev pointer to the usb device to send the message ...
usb_bus_init(9)
NAME usb_bus_init - shared initialization code SYNOPSIS void usb_bus_init (struct usb_bus *bus ); ARGUMENTS bus the bus structure being initialized DESCRIPTION This code is used to initialize a usb_bus structure, memory for which is separately managed. SEE ALSO Kernel file ./drivers/usb/core/hcd.c ascii2des...
usb_bus_start_enum(9)
NAME usb_bus_start_enum - start immediate enumeration (for OTG) SYNOPSIS int usb_bus_start_enum (struct usb_bus *bus , unsigned port_num ); ARGUMENTS bus the bus (must use hcd framework) port_num 1-based number of port; usually bus->otg_port CONTEXT atomic DESCRIPTION Starts enumeration, with ...
usb_cache_string(9)
NAME usb_cache_string - read a string descriptor and cache it for later use SYNOPSIS char * usb_cache_string (struct usb_device *udev , int index ); ARGUMENTS udev the device whose string descriptor is being read index the descriptor index RETURN A pointer to a kmalloc'ed buffer containing the d...
usb_calc_bus_time(9)
NAME usb_calc_bus_time - approximate periodic transaction time in nanoseconds SYNOPSIS long usb_calc_bus_time (int speed , int is_input , int isoc , int bytecount ); ARGUMENTS speed from dev->speed; USB_SPEED_{LOW,FULL,HIGH} is_input true iff the transaction sends data to the host isoc ...
usb_cdc_wdm_register(9)
NAME usb_cdc_wdm_register - register a WDM subdriver SYNOPSIS struct usb_driver * usb_cdc_wdm_register (struct usb_interface *intf , struct usb_endpoint_descriptor *ep , int bufsize , enum wwan_port_type type , int (*manage_power)(struct usb_interface *, int) ); ARGUMENTS intf usb interface the subdriver will ...
usb_check_bulk_endpoints(9)
NAME usb_check_bulk_endpoints - Check whether an interface's current altsetting contains a set of bulk endpoints with the given addresses. SYNOPSIS bool usb_check_bulk_endpoints (const struct usb_interface *intf , const u8 *ep_addrs ); ARGUMENTS intf the interface whose current altsetting should be searched ...
usb_check_int_endpoints(9)
NAME usb_check_int_endpoints - Check whether an interface's current altsetting contains a set of interrupt endpoints with the given addresses. SYNOPSIS bool usb_check_int_endpoints (const struct usb_interface *intf , const u8 *ep_addrs ); ARGUMENTS intf the interface whose current altsetting should be searched...
usb_clear_halt(9)
NAME usb_clear_halt - tells device to clear endpoint halt/stall condition SYNOPSIS int usb_clear_halt (struct usb_device *dev , int pipe ); ARGUMENTS dev device whose endpoint is halted pipe endpoint "pipe" being cleared CONTEXT task context, might sleep. DESCRIPTION This is used to clear hal...
usb_composite_probe(9)
NAME usb_composite_probe - register a composite driver SYNOPSIS int usb_composite_probe (struct usb_composite_driver *driver ); ARGUMENTS driver the driver to register CONTEXT single threaded during gadget setup DESCRIPTION This function is used to register drivers using the composite driver framework. The ...
usb_composite_setup_continue(9)
NAME usb_composite_setup_continue - Continue with the control transfer SYNOPSIS void usb_composite_setup_continue (struct usb_composite_dev *cdev ); ARGUMENTS cdev the composite device who's control transfer was kept waiting DESCRIPTION This function must be called by the USB function driver to continue with ...
usb_composite_unregister(9)
NAME usb_composite_unregister - unregister a composite driver SYNOPSIS void usb_composite_unregister (struct usb_composite_driver *driver ); ARGUMENTS driver the driver to unregister DESCRIPTION This function is used to unregister drivers using the composite driver framework. SEE ALSO Kernel file ./drivers/usb...
usb_control_msg(9)
NAME usb_control_msg - Builds a control urb, sends it off and waits for completion SYNOPSIS int usb_control_msg (struct usb_device *dev , unsigned int pipe , __u8 request , __u8 requesttype , __u16 value , __u16 index , void *data , __u16 size , int timeout ); ARGUMENTS dev pointer to the usb device to send t...
usb_control_msg_recv(9)
NAME usb_control_msg_recv - Builds a control "receive" message, sends it off and waits for completion SYNOPSIS int usb_control_msg_recv (struct usb_device *dev , __u8 endpoint , __u8 request , __u8 requesttype , __u16 value , __u16 index , void *driver_data , __u16 size , int timeout , gfp_t memflags ); ARGUMENTS dev...
usb_control_msg_send(9)
NAME usb_control_msg_send - Builds a control "send" message, sends it off and waits for completion SYNOPSIS int usb_control_msg_send (struct usb_device *dev , __u8 endpoint , __u8 request , __u8 requesttype , __u16 value , __u16 index , const void *driver_data , __u16 size , int timeout , gfp_t memflags ); ARGUMENTS ...
usb_copy_descriptors(9)
NAME usb_copy_descriptors - copy a vector of USB descriptors SYNOPSIS struct usb_descriptor_header ** usb_copy_descriptors (struct usb_descriptor_header **src ); ARGUMENTS src null-terminated vector to copy CONTEXT initialization code, which may sleep DESCRIPTION This makes a copy of a vector of USB descr...
usb_create_hcd(9)
NAME usb_create_hcd - create and initialize an HCD structure SYNOPSIS struct usb_hcd * usb_create_hcd (const struct hc_driver *driver , struct device *dev , const char *bus_name ); ARGUMENTS driver HC driver that will use this hcd dev device for this HC, stored in hcd->self.controller bus...
usb_create_shared_hcd(9)
NAME usb_create_shared_hcd - create and initialize an HCD structure SYNOPSIS struct usb_hcd * usb_create_shared_hcd (const struct hc_driver *driver , struct device *dev , const char *bus_name , struct usb_hcd *primary_hcd ); ARGUMENTS driver HC driver that will use this hcd dev device for this HC...
usb_deauthorize_device(9)
NAME usb_deauthorize_device - deauthorize a device (usbcore-internal) SYNOPSIS int usb_deauthorize_device (struct usb_device *usb_dev ); ARGUMENTS usb_dev USB device DESCRIPTION Move the USB device to a very basic state where interfaces are disabled and the device is in fact unconfigured and unusable. We share ...
usb_decode_ctrl(9)
NAME usb_decode_ctrl - Returns human readable representation of control request. SYNOPSIS const char * usb_decode_ctrl (char *str , size_t size , __u8 bRequestType , __u8 bRequest , __u16 wValue , __u16 wIndex , __u16 wLength ); ARGUMENTS str buffer to return a human-readable representation of control request...
usb_decode_interval(9)
NAME usb_decode_interval - Decode bInterval into the time expressed in 1us unit SYNOPSIS unsigned int usb_decode_interval (const struct usb_endpoint_descriptor *epd , enum usb_device_speed speed ); ARGUMENTS epd The descriptor of the endpoint speed The speed that the endpoint works as DESCRIPTI...
usb_del_gadget(9)
NAME usb_del_gadget - deletes a gadget and unregisters its udc SYNOPSIS void usb_del_gadget (struct usb_gadget *gadget ); ARGUMENTS gadget the gadget to be deleted. DESCRIPTION This will unbind gadget, if it is bound. It will not do a final usb_put_gadget. SEE ALSO Kernel file ./drivers/usb/gadget/udc/core....
usb_del_gadget_udc(9)
NAME usb_del_gadget_udc - unregisters a gadget SYNOPSIS void usb_del_gadget_udc (struct usb_gadget *gadget ); ARGUMENTS gadget the gadget to be unregistered. DESCRIPTION Calls usb_del_gadget and does a final usb_put_gadget. SEE ALSO Kernel file ./drivers/usb/gadget/udc/core.c struct usb_udc(9), usb_ep_set...
usb_deregister(9)
NAME usb_deregister - unregister a USB interface driver SYNOPSIS void usb_deregister (struct usb_driver *driver ); ARGUMENTS driver USB operations of the interface driver to unregister CONTEXT must be able to sleep DESCRIPTION Unlinks the specified driver from the internal USB driver list. NOTE If you called ...
usb_deregister_bus(9)
NAME usb_deregister_bus - deregisters the USB host controller SYNOPSIS void usb_deregister_bus (struct usb_bus *bus ); ARGUMENTS bus pointer to the bus to deregister CONTEXT task context, might sleep. DESCRIPTION Recycles the bus number, and unlinks the controller from usbcore data structures so that it won...
usb_deregister_dev(9)
NAME usb_deregister_dev - deregister a USB device's dynamic minor. SYNOPSIS void usb_deregister_dev (struct usb_interface *intf , struct usb_class_driver *class_driver ); ARGUMENTS intf pointer to the usb_interface that is being deregistered class_driver pointer to the usb_class_driv...
usb_deregister_device_driver(9)
NAME usb_deregister_device_driver - unregister a USB device (not interface) driver SYNOPSIS void usb_deregister_device_driver (struct usb_device_driver *udriver ); ARGUMENTS udriver USB operations of the device driver to unregister CONTEXT must be able to sleep DESCRIPTION Unlinks the specified driver from the ...
usb_descriptor_fillbuf(9)
NAME usb_descriptor_fillbuf - fill buffer with descriptors SYNOPSIS int usb_descriptor_fillbuf (void *buf , unsigned buflen , const struct usb_descriptor_header **src ); ARGUMENTS buf Buffer to be filled buflen Size of buf src Array of descriptor pointers, terminated by null point...
usb_disable_autosuspend(9)
NAME usb_disable_autosuspend - prevent a USB device from being autosuspended SYNOPSIS void usb_disable_autosuspend (struct usb_device *udev ); ARGUMENTS udev the USB device which may not be autosuspended DESCRIPTION This routine prevents udev from being autosuspended and wakes it up if it is already autosuspe...
usb_disable_device(9)
NAME usb_disable_device - Disable all the endpoints for a USB device SYNOPSIS void usb_disable_device (struct usb_device *dev , int skip_ep0 ); ARGUMENTS dev the device whose endpoints are being disabled skip_ep0 0 to disable endpoint 0, 1 to skip it. DESCRIPTION Disables all the device's endp...
usb_disable_endpoint(9)
NAME usb_disable_endpoint - - Disable an endpoint by address SYNOPSIS void usb_disable_endpoint (struct usb_device *dev , unsigned int epaddr , bool reset_hardware ); ARGUMENTS dev the device whose endpoint is being disabled epaddr the endpoint's address. Endpoint number for output, endpoint num...
usb_disable_interface(9)
NAME usb_disable_interface - - Disable all endpoints for an interface SYNOPSIS void usb_disable_interface (struct usb_device *dev , struct usb_interface *intf , bool reset_hardware ); ARGUMENTS dev the device whose interface is being disabled intf pointer to the interface descriptor res...
usb_disconnect(9)
NAME usb_disconnect - disconnect a device (usbcore-internal) SYNOPSIS void usb_disconnect (struct usb_device **pdev ); ARGUMENTS pdev pointer to device being disconnected CONTEXT task context, might sleep DESCRIPTION Something got disconnected. Get rid of it and all of its children. If *pdev is a normal...
usb_driver_claim_interface(9)
NAME usb_driver_claim_interface - bind a driver to an interface SYNOPSIS int usb_driver_claim_interface (struct usb_driver *driver , struct usb_interface *iface , void *data ); ARGUMENTS driver the driver to be bound iface the interface to which it will be bound; must be in the usb device's active ...
usb_driver_release_interface(9)
NAME usb_driver_release_interface - unbind a driver from an interface SYNOPSIS void usb_driver_release_interface (struct usb_driver *driver , struct usb_interface *iface ); ARGUMENTS driver the driver to be unbound iface the interface from which it will be unbound DESCRIPTION This can be used by...
usb_driver_set_configuration(9)
NAME usb_driver_set_configuration - Provide a way for drivers to change device configurations SYNOPSIS int usb_driver_set_configuration (struct usb_device *udev , int config ); ARGUMENTS udev the device whose configuration is being updated config the configuration being chosen. CONTEXT In process...
usb_enable_autosuspend(9)
NAME usb_enable_autosuspend - allow a USB device to be autosuspended SYNOPSIS void usb_enable_autosuspend (struct usb_device *udev ); ARGUMENTS udev the USB device which may be autosuspended DESCRIPTION This routine allows udev to be autosuspended. An autosuspend won't take place until the autosuspend_delay ...
usb_enable_endpoint(9)
NAME usb_enable_endpoint - Enable an endpoint for USB communications SYNOPSIS void usb_enable_endpoint (struct usb_device *dev , struct usb_host_endpoint *ep , bool reset_ep ); ARGUMENTS dev the device whose interface is being enabled ep the endpoint reset_ep flag to reset the endp...
usb_enable_interface(9)
NAME usb_enable_interface - Enable all the endpoints for an interface SYNOPSIS void usb_enable_interface (struct usb_device *dev , struct usb_interface *intf , bool reset_eps ); ARGUMENTS dev the device whose interface is being enabled intf pointer to the interface descriptor reset_eps ...
usb_endpoint_dir_in(9)
NAME usb_endpoint_dir_in - check if the endpoint has IN direction SYNOPSIS int usb_endpoint_dir_in (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Returns true if the endpoint is of type IN, otherwise it returns false. SEE ALSO Kernel file ./include/uapi/linux...
usb_endpoint_dir_out(9)
NAME usb_endpoint_dir_out - check if the endpoint has OUT direction SYNOPSIS int usb_endpoint_dir_out (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Returns true if the endpoint is of type OUT, otherwise it returns false. SEE ALSO Kernel file ./include/uapi/...
usb_endpoint_is_bulk_in(9)
NAME usb_endpoint_is_bulk_in - check if the endpoint is bulk IN SYNOPSIS int usb_endpoint_is_bulk_in (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Returns true if the endpoint has bulk transfer type and IN direction, otherwise it returns false. SEE ALSO Kerne...
usb_endpoint_is_bulk_out(9)
NAME usb_endpoint_is_bulk_out - check if the endpoint is bulk OUT SYNOPSIS int usb_endpoint_is_bulk_out (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Returns true if the endpoint has bulk transfer type and OUT direction, otherwise it returns false. SEE ALSO K...
usb_endpoint_is_hs_isoc_double(9)
NAME usb_endpoint_is_hs_isoc_double - Tell whether an endpoint uses USB 2 Isochronous Double IN Bandwidth SYNOPSIS bool usb_endpoint_is_hs_isoc_double (struct usb_device *udev , const struct usb_host_endpoint *ep ); ARGUMENTS udev The USB device ep The endpoint RETURN true if an endpoint ep c...
usb_endpoint_is_int_in(9)
NAME usb_endpoint_is_int_in - check if the endpoint is interrupt IN SYNOPSIS int usb_endpoint_is_int_in (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Returns true if the endpoint has interrupt transfer type and IN direction, otherwise it returns false. SEE AL...
usb_endpoint_is_int_out(9)
NAME usb_endpoint_is_int_out - check if the endpoint is interrupt OUT SYNOPSIS int usb_endpoint_is_int_out (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Returns true if the endpoint has interrupt transfer type and OUT direction, otherwise it returns false. SE...
usb_endpoint_is_isoc_in(9)
NAME usb_endpoint_is_isoc_in - check if the endpoint is isochronous IN SYNOPSIS int usb_endpoint_is_isoc_in (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Returns true if the endpoint has isochronous transfer type and IN direction, otherwise it returns false. ...
usb_endpoint_is_isoc_out(9)
NAME usb_endpoint_is_isoc_out - check if the endpoint is isochronous OUT SYNOPSIS int usb_endpoint_is_isoc_out (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Returns true if the endpoint has isochronous transfer type and OUT direction, otherwise it returns fals...
usb_endpoint_max_periodic_payload(9)
NAME usb_endpoint_max_periodic_payload - Get maximum payload bytes per service interval SYNOPSIS u32 usb_endpoint_max_periodic_payload (struct usb_device *udev , const struct usb_host_endpoint *ep ); ARGUMENTS udev The USB device ep The endpoint RETURN the maximum number of bytes isochronous ...
usb_endpoint_maxp(9)
NAME usb_endpoint_maxp - get endpoint's max packet size SYNOPSIS int usb_endpoint_maxp (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Returns epd's max packet bits [10:0] SEE ALSO Kernel file ./include/uapi/linux/usb/ch9.h struct usb_ctrlrequest(9), usb_end...
usb_endpoint_maxp_mult(9)
NAME usb_endpoint_maxp_mult - get endpoint's transactional opportunities SYNOPSIS int usb_endpoint_maxp_mult (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Return epd's wMaxPacketSize[12:11] + 1 SEE ALSO Kernel file ./include/uapi/linux/usb/ch9.h struct usb...
usb_endpoint_num(9)
NAME usb_endpoint_num - get the endpoint's number SYNOPSIS int usb_endpoint_num (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Returns epd's number: 0 to 15. SEE ALSO Kernel file ./include/uapi/linux/usb/ch9.h struct usb_ctrlrequest(9), usb_endpoint_...
usb_endpoint_type(9)
NAME usb_endpoint_type - get the endpoint's transfer type SYNOPSIS int usb_endpoint_type (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Returns one of USB_ENDPOINT_XFER_{CONTROL, ISOC, BULK, INT} according to epd's transfer type. SEE ALSO Kernel file ./inc...
usb_endpoint_xfer_bulk(9)
NAME usb_endpoint_xfer_bulk - check if the endpoint has bulk transfer type SYNOPSIS int usb_endpoint_xfer_bulk (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Returns true if the endpoint is of type bulk, otherwise it returns false. SEE ALSO Kernel file ./inc...
usb_endpoint_xfer_control(9)
NAME usb_endpoint_xfer_control - check if the endpoint has control transfer type SYNOPSIS int usb_endpoint_xfer_control (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Returns true if the endpoint is of type control, otherwise it returns false. SEE ALSO Kernel ...
usb_endpoint_xfer_int(9)
NAME usb_endpoint_xfer_int - check if the endpoint has interrupt transfer type SYNOPSIS int usb_endpoint_xfer_int (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Returns true if the endpoint is of type interrupt, otherwise it returns false. SEE ALSO Kernel fil...
usb_endpoint_xfer_isoc(9)
NAME usb_endpoint_xfer_isoc - check if the endpoint has isochronous transfer type SYNOPSIS int usb_endpoint_xfer_isoc (const struct usb_endpoint_descriptor *epd ); ARGUMENTS epd endpoint to be checked DESCRIPTION Returns true if the endpoint is of type isochronous, otherwise it returns false. SEE ALSO Kerne...
usb_enumerate_device(9)
NAME usb_enumerate_device - Read device configs/intfs/otg (usbcore-internal) SYNOPSIS int usb_enumerate_device (struct usb_device *udev ); ARGUMENTS udev newly addressed device (in ADDRESS state) DESCRIPTION This is only called by usb_new_device -- all comments that apply there apply here wrt to environment. ...