id
stringlengths
4
63
text
stringlengths
153
8.81M
usb_ifnum_to_if(9)
NAME usb_ifnum_to_if - get the interface object with a given interface number SYNOPSIS struct usb_interface * usb_ifnum_to_if (const struct usb_device *dev , unsigned ifnum ); ARGUMENTS dev the device whose current configuration is considered ifnum the desired interface DESCRIPTION This walks ...
usb_init_urb(9)
NAME usb_init_urb - initializes a urb so that it can be used by a USB driver SYNOPSIS void usb_init_urb (struct urb *urb ); ARGUMENTS urb pointer to the urb to initialize DESCRIPTION Initializes a urb so that the USB subsystem can use it properly. If a urb is created with a call to usb_alloc_urb it is not n...
usb_initialize_gadget(9)
NAME usb_initialize_gadget - initialize a gadget and its embedded struct device SYNOPSIS void usb_initialize_gadget (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. gadget ...
usb_interface_claimed(9)
NAME usb_interface_claimed - returns true iff an interface is claimed SYNOPSIS int usb_interface_claimed (struct usb_interface *iface ); ARGUMENTS iface the interface being checked RETURN true (nonzero) iff the interface is claimed, else false (zero). NOTE Callers must own the driver model's usb bus readlock....
usb_interface_id(9)
NAME usb_interface_id - allocate an unused interface ID SYNOPSIS int usb_interface_id (struct usb_configuration *config , struct usb_function *function ); ARGUMENTS config configuration associated with the interface function function handling the interface CONTEXT single threaded during gadget setup ...
usb_interrupt_msg(9)
NAME usb_interrupt_msg - Builds an interrupt urb, sends it off and waits for completion SYNOPSIS int usb_interrupt_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 ...
usb_intf_get_dma_device(9)
NAME usb_intf_get_dma_device - acquire a reference on the usb interface's DMA endpoint SYNOPSIS struct device * usb_intf_get_dma_device (struct usb_interface *intf ); ARGUMENTS intf the usb interface DESCRIPTION While a USB device cannot perform DMA operations by itself, many USB controllers can. A call to ...
usb_kill_anchored_urbs(9)
NAME usb_kill_anchored_urbs - kill all URBs associated with an anchor SYNOPSIS void usb_kill_anchored_urbs (struct usb_anchor *anchor ); ARGUMENTS anchor anchor the requests are bound to DESCRIPTION This kills all outstanding URBs starting from the back of the queue, with guarantee that no completer callbacks...
usb_kill_urb(9)
NAME usb_kill_urb - cancel a transfer request and wait for it to finish SYNOPSIS void usb_kill_urb (struct urb *urb ); ARGUMENTS urb pointer to URB describing a previously submitted request, may be NULL DESCRIPTION This routine cancels an in-progress request. It is guaranteed that upon return all completi...
usb_lock_device_for_reset(9)
NAME usb_lock_device_for_reset - cautiously acquire the lock for a usb device structure SYNOPSIS int usb_lock_device_for_reset (struct usb_device *udev , const struct usb_interface *iface ); ARGUMENTS udev device that's being locked iface interface bound to the driver making the request (optional...
usb_make_path(9)
NAME usb_make_path - returns stable device path in the usb tree SYNOPSIS int usb_make_path (struct usb_device *dev , char *buf , size_t size ); ARGUMENTS dev the device whose path is being constructed buf where to put the string size how big is "buf"? RETURN Length of the strin...
usb_match_id(9)
NAME usb_match_id - find first usb_device_id matching device or interface SYNOPSIS const struct usb_device_id * usb_match_id (struct usb_interface *interface , const struct usb_device_id *id ); ARGUMENTS interface the interface of interest id array of usb_device_id structures, terminated by zero en...
usb_new_device(9)
NAME usb_new_device - perform initial device setup (usbcore-internal) SYNOPSIS int usb_new_device (struct usb_device *udev ); ARGUMENTS udev newly addressed device (in ADDRESS state) DESCRIPTION This is called with devices which have been detected but not fully enumerated. The device descriptor is available...
usb_of_get_companion_dev(9)
NAME usb_of_get_companion_dev - Find the companion device SYNOPSIS struct device * usb_of_get_companion_dev (struct device *dev ); ARGUMENTS dev the device pointer to find a companion DESCRIPTION Find the companion device from platform bus. Takes a reference to the returned struct device which needs to be d...
usb_of_get_connect_type(9)
NAME usb_of_get_connect_type - get a USB hub's port connect_type SYNOPSIS enum usb_port_connect_type usb_of_get_connect_type (struct usb_device *hub , int port1 ); ARGUMENTS hub hub to which port is for port1 port1 one-based index of port DESCRIPTION Get the connect_type of port1 based on ...
usb_of_get_device_node(9)
NAME usb_of_get_device_node - get a USB device node SYNOPSIS struct device_node * usb_of_get_device_node (struct usb_device *hub , int port1 ); ARGUMENTS hub hub to which device is connected port1 one-based index of port DESCRIPTION Look up the node of a USB device given its parent hub device a...
usb_of_get_interface_node(9)
NAME usb_of_get_interface_node - get a USB interface node SYNOPSIS struct device_node * usb_of_get_interface_node (struct usb_device *udev , u8 config , u8 ifnum ); ARGUMENTS udev USB device of interface config configuration value ifnum interface number DESCRIPTION Look up the node ...
usb_of_has_combined_node(9)
NAME usb_of_has_combined_node - determine whether a device has a combined node SYNOPSIS bool usb_of_has_combined_node (struct usb_device *udev ); ARGUMENTS udev USB device DESCRIPTION Determine whether a USB device has a so called combined node which is shared with its sole interface. This is the case if and ...
usb_offload_check(9)
NAME usb_offload_check - check offload activities on a USB device SYNOPSIS bool usb_offload_check (struct usb_device *udev ); ARGUMENTS udev the USB device to check its offload activity. DESCRIPTION Check if there are any offload activity on the USB device right now. This information could be used for powe...
usb_offload_get(9)
NAME usb_offload_get - increment the offload_usage of a USB device SYNOPSIS int usb_offload_get (struct usb_device *udev ); ARGUMENTS udev the USB device to increment its offload_usage DESCRIPTION Incrementing the offload_usage of a usb_device indicates that offload is enabled on this usb_device; that is, a...
usb_offload_put(9)
NAME usb_offload_put - drop the offload_usage of a USB device SYNOPSIS int usb_offload_put (struct usb_device *udev ); ARGUMENTS udev the USB device to drop its offload_usage DESCRIPTION The inverse operation of usb_offload_get, which drops the offload_usage of a USB device. This information allows the USB dr...
usb_offload_set_pm_locked(9)
NAME usb_offload_set_pm_locked - set the PM lock state of a USB device SYNOPSIS void usb_offload_set_pm_locked (struct usb_device *udev , bool locked ); ARGUMENTS udev the USB device to modify locked the new lock state DESCRIPTION Setting locked to true prevents offload_usage from being modifie...
usb_otg_state_string(9)
NAME usb_otg_state_string - returns human readable name of OTG state. SYNOPSIS const char * usb_otg_state_string (enum usb_otg_state state ); ARGUMENTS state the OTG state to return the human readable name of. If it's not any of the states defined in usb_otg_state enum, 'UNDEFINED' will be returned. SEE ALSO K...
usb_phy_get_charger_current(9)
NAME usb_phy_get_charger_current - get the USB charger current SYNOPSIS void usb_phy_get_charger_current (struct usb_phy *usb_phy , unsigned int *min , unsigned int *max ); ARGUMENTS usb_phy the USB phy to be used min the minimum current max the maximum current DESCRIPTION Usually...
usb_phy_get_charger_type(9)
NAME usb_phy_get_charger_type - get charger type from extcon subsystem SYNOPSIS int usb_phy_get_charger_type (struct notifier_block *nb , unsigned long state , void *data ); ARGUMENTS nb the notifier block to determine charger type state the cable state data private data DESCRIP...
usb_phy_notify_charger_work(9)
NAME usb_phy_notify_charger_work - notify the USB charger state SYNOPSIS void usb_phy_notify_charger_work (struct work_struct *work ); ARGUMENTS work the charger work to notify the USB charger state DESCRIPTION This work can be issued when USB charger state has been changed or USB charger current has been ...
usb_phy_roothub_alloc_usb3_phy(9)
NAME usb_phy_roothub_alloc_usb3_phy - alloc the roothub SYNOPSIS struct usb_phy_roothub * usb_phy_roothub_alloc_usb3_phy (struct device *dev ); ARGUMENTS dev the device of the host controller DESCRIPTION Allocate the usb phy roothub if the host use a generic usb3-phy. RETURN On success, a pointer to the usb...
usb_phy_roothub_notify_connect(9)
NAME usb_phy_roothub_notify_connect - connect notification SYNOPSIS int usb_phy_roothub_notify_connect (struct usb_phy_roothub *phy_roothub , int port ); ARGUMENTS phy_roothub the phy of roothub, if the host use a generic phy. port the port index for connect DESCRIPTION If the phy needs to get connect...
usb_phy_roothub_notify_disconnect(9)
NAME usb_phy_roothub_notify_disconnect - disconnect notification SYNOPSIS int usb_phy_roothub_notify_disconnect (struct usb_phy_roothub *phy_roothub , int port ); ARGUMENTS phy_roothub the phy of roothub, if the host use a generic phy. port the port index for disconnect DESCRIPTION If the phy needs to...
usb_phy_set_charger_current(9)
NAME usb_phy_set_charger_current - set the USB charger current SYNOPSIS void usb_phy_set_charger_current (struct usb_phy *usb_phy , unsigned int mA ); ARGUMENTS usb_phy the USB phy to be used mA the current need to be set DESCRIPTION Usually we only change the charger default current when USB fi...
usb_phy_set_charger_state(9)
NAME usb_phy_set_charger_state - set the USB charger state SYNOPSIS void usb_phy_set_charger_state (struct usb_phy *usb_phy , enum usb_charger_state state ); ARGUMENTS usb_phy the USB phy to be used state the new state need to be set for charger DESCRIPTION The usb phy driver can issue this functio...
usb_phy_set_event(9)
NAME usb_phy_set_event - set event to phy event SYNOPSIS void usb_phy_set_event (struct usb_phy *x , unsigned long event ); ARGUMENTS x the phy returned by usb_get_phy; event event to set DESCRIPTION This sets event to phy event SEE ALSO Kernel file ./drivers/usb/phy/phy.c usb_phy_notif...
usb_phy_write_readback(9)
NAME usb_phy_write_readback - Write register and read back masked value to confirm it is written SYNOPSIS void usb_phy_write_readback (struct usb_phy *phy_dwc3 , u32 offset , const u32 mask , u32 val ); ARGUMENTS phy_dwc3 QCOM DWC3 phy context offset register offset. mask register bitma...
usb_pipe_type_check(9)
NAME usb_pipe_type_check - sanity check of a specific pipe for a usb device SYNOPSIS int usb_pipe_type_check (struct usb_device *dev , unsigned int pipe ); ARGUMENTS dev struct usb_device to be checked pipe pipe to check DESCRIPTION This performs a light-weight sanity check for the endpoint in...
usb_poison_anchored_urbs(9)
NAME usb_poison_anchored_urbs - cease all traffic from an anchor SYNOPSIS void usb_poison_anchored_urbs (struct usb_anchor *anchor ); ARGUMENTS anchor anchor the requests are bound to DESCRIPTION this allows all outstanding URBs to be poisoned starting from the back of the queue. Newly added URBs will also be p...
usb_poison_urb(9)
NAME usb_poison_urb - reliably kill a transfer and prevent further use of an URB SYNOPSIS void usb_poison_urb (struct urb *urb ); ARGUMENTS urb pointer to URB describing a previously submitted request, may be NULL DESCRIPTION This routine cancels an in-progress request. It is guaranteed that upon return a...
usb_power_delivery_link_device(9)
NAME usb_power_delivery_link_device - Link device to its USB PD object. SYNOPSIS int usb_power_delivery_link_device (struct usb_power_delivery *pd , struct device *dev ); ARGUMENTS pd The USB PD instance. dev The device. DESCRIPTION This function can be used to create a symlink named "usb_po...
usb_power_delivery_register(9)
NAME usb_power_delivery_register - Register USB Power Delivery Support. SYNOPSIS struct usb_power_delivery * usb_power_delivery_register (struct device *parent , struct usb_power_delivery_desc *desc ); ARGUMENTS parent Parent device. desc Description of the USB PD contract. DESCRIPTION This routi...
usb_power_delivery_register_capabilities(9)
NAME usb_power_delivery_register_capabilities - Register a set of capabilities. SYNOPSIS struct usb_power_delivery_capabilities * usb_power_delivery_register_capabilities (struct usb_power_delivery *pd , struct usb_power_delivery_capabilities_desc *desc ); ARGUMENTS pd The USB PD instance that the capabiliti...
usb_power_delivery_unlink_device(9)
NAME usb_power_delivery_unlink_device - Unlink device from its USB PD object. SYNOPSIS void usb_power_delivery_unlink_device (struct usb_power_delivery *pd , struct device *dev ); ARGUMENTS pd The USB PD instance. dev The device. DESCRIPTION Remove the symlink that was previously created wit...
usb_power_delivery_unregister(9)
NAME usb_power_delivery_unregister - Unregister USB Power Delivery Support. SYNOPSIS void usb_power_delivery_unregister (struct usb_power_delivery *pd ); ARGUMENTS pd The USB PD contract. SEE ALSO Kernel file ./drivers/usb/typec/pd.c usb_power_delivery_register_capabilities(9), usb_power_delivery_unregis...
usb_power_delivery_unregister_capabilities(9)
NAME usb_power_delivery_unregister_capabilities - Unregister a set of capabilities SYNOPSIS void usb_power_delivery_unregister_capabilities (struct usb_power_delivery_capabilities *cap ); ARGUMENTS cap The capabilities SEE ALSO Kernel file ./drivers/usb/typec/pd.c usb_power_delivery_register_capabilities(9),...
usb_put_dev(9)
NAME usb_put_dev - release a use of the usb device structure SYNOPSIS void usb_put_dev (struct usb_device *dev ); ARGUMENTS dev device that's been disconnected DESCRIPTION Must be called when a user of a device is finished with it. When the last user of the device calls this function, the memory of the devi...
usb_put_intf(9)
NAME usb_put_intf - release a use of the usb interface structure SYNOPSIS void usb_put_intf (struct usb_interface *intf ); ARGUMENTS intf interface that's been decremented DESCRIPTION Must be called when a user of an interface is finished with it. When the last user of the interface calls this function, the ...
usb_put_phy(9)
NAME usb_put_phy - release the USB PHY SYNOPSIS void usb_put_phy (struct usb_phy *x ); ARGUMENTS x the phy returned by usb_get_phy DESCRIPTION Releases a refcount the caller received from usb_get_phy. For use by USB host and peripheral drivers. SEE ALSO Kernel file ./drivers/usb/phy/phy.c usb_phy_no...
usb_queue_reset_device(9)
NAME usb_queue_reset_device - Reset a USB device from an atomic context SYNOPSIS void usb_queue_reset_device (struct usb_interface *iface ); ARGUMENTS iface USB interface belonging to the device to reset DESCRIPTION This function can be used to reset a USB device from an atomic context, where usb_reset_devic...
usb_register_bus(9)
NAME usb_register_bus - registers the USB host controller with the usb core SYNOPSIS int usb_register_bus (struct usb_bus *bus ); ARGUMENTS bus pointer to the bus to register CONTEXT task context, might sleep. DESCRIPTION Assigns a bus number, and links the controller into usbcore data structures so that it...
usb_register_dev(9)
NAME usb_register_dev - register a USB device, and ask for a minor number SYNOPSIS int usb_register_dev (struct usb_interface *intf , struct usb_class_driver *class_driver ); ARGUMENTS intf pointer to the usb_interface that is being registered class_driver pointer to the usb_class_dr...
usb_register_device_driver(9)
NAME usb_register_device_driver - register a USB device (not interface) driver SYNOPSIS int usb_register_device_driver (struct usb_device_driver *new_udriver , struct module *owner ); ARGUMENTS new_udriver USB operations for the device driver owner module owner of this driver. DESCRIPTION Registers a U...
usb_register_driver(9)
NAME usb_register_driver - register a USB interface driver SYNOPSIS int usb_register_driver (struct usb_driver *new_driver , struct module *owner , const char *mod_name ); ARGUMENTS new_driver USB operations for the interface driver owner module owner of this driver. mod_name module name str...
usb_register_notify(9)
NAME usb_register_notify - register a notifier callback whenever a usb change happens SYNOPSIS void usb_register_notify (struct notifier_block *nb ); ARGUMENTS nb pointer to the notifier block for the callback events. DESCRIPTION These changes are either USB devices or busses being added or removed. SEE AL...
usb_release_dev(9)
NAME usb_release_dev - free a usb device structure when all users of it are finished. SYNOPSIS void usb_release_dev (struct device *dev ); ARGUMENTS dev device that's been disconnected DESCRIPTION Will be called only by the device core when all users of this usb device are done. SEE ALSO Kernel file ./d...
usb_remove_device(9)
NAME usb_remove_device - disable a device's port on its parent hub SYNOPSIS int usb_remove_device (struct usb_device *udev ); ARGUMENTS udev device to be disabled and removed CONTEXT udev locked, must be able to sleep. DESCRIPTION After udev's port has been disabled, hub_wq is notified and it will s...
usb_remove_hcd(9)
NAME usb_remove_hcd - shutdown processing for generic HCDs SYNOPSIS void usb_remove_hcd (struct usb_hcd *hcd ); ARGUMENTS hcd the usb_hcd structure to remove CONTEXT task context, might sleep. DESCRIPTION Disconnects the root hub, then reverses the effects of usb_add_hcd, invoking the HCD's stop method. SE...
usb_remove_phy(9)
NAME usb_remove_phy - remove the OTG PHY SYNOPSIS void usb_remove_phy (struct usb_phy *x ); ARGUMENTS x the USB OTG PHY to be removed; DESCRIPTION This reverts the effects of usb_add_phy SEE ALSO Kernel file ./drivers/usb/phy/phy.c usb_phy_notify_charger_work(9), usb_phy_get_charger_type(9), usb_ph...
usb_reset_and_verify_device(9)
NAME usb_reset_and_verify_device - perform a USB port reset to reinitialize a device SYNOPSIS int usb_reset_and_verify_device (struct usb_device *udev ); ARGUMENTS udev device to reset (not in SUSPENDED or NOTATTACHED state) DESCRIPTION WARNING - don't use this routine to reset a composite device (one with mu...
usb_reset_configuration(9)
NAME usb_reset_configuration - lightweight device reset SYNOPSIS int usb_reset_configuration (struct usb_device *dev ); ARGUMENTS dev the device whose configuration is being reset DESCRIPTION This issues a standard SET_CONFIGURATION request to the device using the current configuration. The effect is to res...
usb_reset_device(9)
NAME usb_reset_device - warn interface drivers and perform a USB port reset SYNOPSIS int usb_reset_device (struct usb_device *udev ); ARGUMENTS udev device to reset (not in NOTATTACHED state) DESCRIPTION Warns all drivers bound to registered interfaces (using their pre_reset method), performs the port reset, ...
usb_reset_endpoint(9)
NAME usb_reset_endpoint - Reset an endpoint's state. SYNOPSIS void usb_reset_endpoint (struct usb_device *dev , unsigned int epaddr ); ARGUMENTS dev the device whose endpoint is to be reset epaddr the endpoint's address. Endpoint number for output, endpoint number + USB_DIR_IN for input DESCRIP...
usb_resume_both(9)
NAME usb_resume_both - resume a USB device and its interfaces SYNOPSIS int usb_resume_both (struct usb_device *udev , pm_message_t msg ); ARGUMENTS udev the usb_device to resume msg Power Management message describing this state transition DESCRIPTION This is the central routine for resuming...
usb_role_switch_find_by_fwnode(9)
NAME usb_role_switch_find_by_fwnode - Find USB role switch with its fwnode SYNOPSIS struct usb_role_switch * usb_role_switch_find_by_fwnode (const struct fwnode_handle *fwnode ); ARGUMENTS fwnode fwnode of the USB Role Switch DESCRIPTION Finds and returns role switch with fwnode. The reference count for the fou...
usb_role_switch_get(9)
NAME usb_role_switch_get - Find USB role switch linked with the caller SYNOPSIS struct usb_role_switch * usb_role_switch_get (struct device *dev ); ARGUMENTS dev The caller device DESCRIPTION Finds and returns role switch linked with dev. The reference count for the found switch is incremented. SEE ALSO Ker...
usb_role_switch_get_drvdata(9)
NAME usb_role_switch_get_drvdata - Get the private data pointer of a switch SYNOPSIS void * usb_role_switch_get_drvdata (struct usb_role_switch *sw ); ARGUMENTS sw USB Role Switch SEE ALSO Kernel file ./drivers/usb/roles/class.c usb_role_switch_set_role(9), usb_role_switch_get_role(9), usb_role_switc...
usb_role_switch_get_role(9)
NAME usb_role_switch_get_role - Get the USB role for a switch SYNOPSIS enum usb_role usb_role_switch_get_role (struct usb_role_switch *sw ); ARGUMENTS sw USB role switch DESCRIPTION Depending on the role-switch-driver this function returns either a cached value of the last set role, or reads back the actual...
usb_role_switch_put(9)
NAME usb_role_switch_put - Release handle to a switch SYNOPSIS void usb_role_switch_put (struct usb_role_switch *sw ); ARGUMENTS sw USB Role Switch DESCRIPTION Decrement reference count for sw. SEE ALSO Kernel file ./drivers/usb/roles/class.c usb_role_switch_set_role(9), usb_role_switch_get_role(9), u...
usb_role_switch_register(9)
NAME usb_role_switch_register - Register USB Role Switch SYNOPSIS struct usb_role_switch * usb_role_switch_register (struct device *parent , const struct usb_role_switch_desc *desc ); ARGUMENTS parent Parent device for the switch desc Description of the switch DESCRIPTION USB Role Switch is a d...
usb_role_switch_set_drvdata(9)
NAME usb_role_switch_set_drvdata - Assign private data pointer to a switch SYNOPSIS void usb_role_switch_set_drvdata (struct usb_role_switch *sw , void *data ); ARGUMENTS sw USB Role Switch data Private data pointer SEE ALSO Kernel file ./drivers/usb/roles/class.c usb_role_switch_set_rol...
usb_role_switch_set_role(9)
NAME usb_role_switch_set_role - Set USB role for a switch SYNOPSIS int usb_role_switch_set_role (struct usb_role_switch *sw , enum usb_role role ); ARGUMENTS sw USB role switch role USB role to be switched to DESCRIPTION Set USB role role for sw. SEE ALSO Kernel file ./drivers/usb/roles/clas...
usb_role_switch_unregister(9)
NAME usb_role_switch_unregister - Unregsiter USB Role Switch SYNOPSIS void usb_role_switch_unregister (struct usb_role_switch *sw ); ARGUMENTS sw USB Role Switch DESCRIPTION Unregister switch that was registered with usb_role_switch_register. SEE ALSO Kernel file ./drivers/usb/roles/class.c usb_role_s...
usb_root_hub_lost_power(9)
NAME usb_root_hub_lost_power - called by HCD if the root hub lost Vbus power SYNOPSIS void usb_root_hub_lost_power (struct usb_device *rhdev ); ARGUMENTS rhdev struct usb_device for the root hub DESCRIPTION The USB host controller driver calls this function when its root hub is resumed and Vbus power has been...
usb_scuttle_anchored_urbs(9)
NAME usb_scuttle_anchored_urbs - unanchor all an anchor's urbs SYNOPSIS void usb_scuttle_anchored_urbs (struct usb_anchor *anchor ); ARGUMENTS anchor the anchor whose urbs you want to unanchor DESCRIPTION use this to get rid of all an anchor's urbs SEE ALSO Kernel file ./drivers/usb/core/urb.c usb_init_urb(9),...
usb_serial_deregister_drivers(9)
NAME usb_serial_deregister_drivers - deregister drivers for a usb-serial module SYNOPSIS void usb_serial_deregister_drivers (struct usb_serial_driver *const serial_drivers[] ); ARGUMENTS serial_drivers NULL-terminated array of pointers to drivers to be deregistered DESCRIPTION Deregisters all the drivers in the seri...
usb_serial_generic_write(9)
NAME usb_serial_generic_write - generic write function SYNOPSIS int usb_serial_generic_write (struct tty_struct *tty , struct usb_serial_port *port , const unsigned char *buf , int count ); ARGUMENTS tty tty for the port port usb-serial port buf data to write count ...
usb_serial_generic_write_start(9)
NAME usb_serial_generic_write_start - start writing buffered data SYNOPSIS int usb_serial_generic_write_start (struct usb_serial_port *port , gfp_t mem_flags ); ARGUMENTS port usb-serial port mem_flags flags to use for memory allocations DESCRIPTION Serialised using USB_SERIAL_WRITE_BUSY flag. RETU...
usb_serial_handle_dcd_change(9)
NAME usb_serial_handle_dcd_change - handle a change of carrier detect state SYNOPSIS void usb_serial_handle_dcd_change (struct usb_serial_port *port , struct tty_struct *tty , unsigned int status ); ARGUMENTS port usb-serial port tty tty for the port status new carrier detect statu...
usb_set_device_state(9)
NAME usb_set_device_state - change a device's current state (usbcore, hcds) SYNOPSIS void usb_set_device_state (struct usb_device *udev , enum usb_device_state new_state ); ARGUMENTS udev pointer to device whose state should be changed new_state new state value to be stored DESCRIPTION udev->state ...
usb_set_interface(9)
NAME usb_set_interface - Makes a particular alternate setting be current SYNOPSIS int usb_set_interface (struct usb_device *dev , int interface , int alternate ); ARGUMENTS dev the device whose interface is being updated interface the interface being updated alternate the setting being cho...
usb_set_intfdata(9)
NAME usb_set_intfdata - associate driver-specific data with an interface SYNOPSIS void usb_set_intfdata (struct usb_interface *intf , void *data ); ARGUMENTS intf USB interface data driver data DESCRIPTION Drivers can use this function in their probe callbacks to associate driver-specific data...
usb_set_wireless_status(9)
NAME usb_set_wireless_status - sets the wireless_status struct member SYNOPSIS int usb_set_wireless_status (struct usb_interface *iface , enum usb_wireless_status status ); ARGUMENTS iface the interface to modify status the new wireless status DESCRIPTION Set the wireless_status struct member to t...
usb_sg_cancel(9)
NAME usb_sg_cancel - stop scatter/gather i/o issued by usb_sg_wait() SYNOPSIS void usb_sg_cancel (struct usb_sg_request *io ); ARGUMENTS io request block, initialized with usb_sg_init DESCRIPTION This stops a request after it has been started by usb_sg_wait. It can also prevents one initialized by usb_sg_i...
usb_sg_init(9)
NAME usb_sg_init - initializes scatterlist-based bulk/interrupt I/O request SYNOPSIS int usb_sg_init (struct usb_sg_request *io , struct usb_device *dev , unsigned pipe , unsigned period , struct scatterlist *sg , int nents , size_t length , gfp_t mem_flags ); ARGUMENTS io request block being initialized. u...
usb_sg_wait(9)
NAME usb_sg_wait - synchronously execute scatter/gather request SYNOPSIS void usb_sg_wait (struct usb_sg_request *io ); ARGUMENTS io request block handle, as initialized with usb_sg_init. some fields become accessible when this call returns. CONTEXT task context, might sleep. DESCRIPTION This function b...
usb_speed_string(9)
NAME usb_speed_string - Returns human readable-name of the speed. SYNOPSIS const char * usb_speed_string (enum usb_device_speed speed ); ARGUMENTS speed The speed to return human-readable name for. If it's not any of the speeds defined in usb_device_speed enum, string for USB_SPEED_UNKNOWN will be returned. S...
usb_ss_read_phycreg(9)
NAME usb_ss_read_phycreg - Read SSPHY register. SYNOPSIS int usb_ss_read_phycreg (struct usb_phy *phy_dwc3 , u32 addr , u32 *val ); ARGUMENTS phy_dwc3 QCOM DWC3 phy context addr SSPHY address to read. val pointer in which read is store. SEE ALSO Kernel file ./drivers/phy/qualcomm/ph...
usb_ss_write_phycreg(9)
NAME usb_ss_write_phycreg - Write SSPHY register SYNOPSIS int usb_ss_write_phycreg (struct usb_phy *phy_dwc3 , u32 addr , u32 val ); ARGUMENTS phy_dwc3 QCOM DWC3 phy context addr SSPHY address to write. val value to write. SEE ALSO Kernel file ./drivers/phy/qualcomm/phy-qcom-ipq806x...
usb_state_string(9)
NAME usb_state_string - Returns human readable name for the state. SYNOPSIS const char * usb_state_string (enum usb_device_state state ); ARGUMENTS state The state to return a human-readable name for. If it's not any of the states devices in usb_device_state_string enum, the string UNKNOWN will be returned. SE...
usb_stop_hcd(9)
NAME usb_stop_hcd - Halt the HCD SYNOPSIS void usb_stop_hcd (struct usb_hcd *hcd ); ARGUMENTS hcd the usb_hcd that has to be halted DESCRIPTION Stop the root-hub polling timer and invoke the HCD's ->stop callback. SEE ALSO Kernel file ./drivers/usb/core/hcd.c ascii2desc(9), rh_string(9), usb_bus_init(9...
usb_string(9)
NAME usb_string - returns UTF-8 version of a string descriptor SYNOPSIS int usb_string (struct usb_device *dev , int index , char *buf , size_t size ); ARGUMENTS dev the device whose string descriptor is being retrieved index the number of the descriptor buf where to put the stri...
usb_string_id(9)
NAME usb_string_id - allocate an unused string ID SYNOPSIS int usb_string_id (struct usb_composite_dev *cdev ); ARGUMENTS cdev the device whose string descriptor IDs are being allocated CONTEXT single threaded during gadget setup DESCRIPTION usb_string_id is called from bind callbacks to allocate string IDs....
usb_string_ids_n(9)
NAME usb_string_ids_n - allocate unused string IDs in batch SYNOPSIS int usb_string_ids_n (struct usb_composite_dev *c , unsigned n ); ARGUMENTS c the device whose string descriptor IDs are being allocated n number of string IDs to allocate CONTEXT single threaded during gadget setup DES...
usb_string_ids_tab(9)
NAME usb_string_ids_tab - allocate unused string IDs in batch SYNOPSIS int usb_string_ids_tab (struct usb_composite_dev *cdev , struct usb_string *str ); ARGUMENTS cdev the device whose string descriptor IDs are being allocated str an array of usb_string objects to assign numbers to CONTEXT si...
usb_submit_urb(9)
NAME usb_submit_urb - issue an asynchronous transfer request for an endpoint SYNOPSIS int usb_submit_urb (struct urb *urb , gfp_t mem_flags ); ARGUMENTS urb pointer to the urb describing the request mem_flags the type of memory to allocate, see kmalloc for a list of valid options for this. DESCRIPT...
usb_suspend_both(9)
NAME usb_suspend_both - suspend a USB device and its interfaces SYNOPSIS int usb_suspend_both (struct usb_device *udev , pm_message_t msg ); ARGUMENTS udev the usb_device to suspend msg Power Management message describing this state transition DESCRIPTION This is the central routine for suspen...
usb_tx_block(9)
NAME usb_tx_block - transfer data to the device SYNOPSIS int usb_tx_block (struct if_usb_card *cardp , uint8_t *payload , uint16_t nb , u8 data ); ARGUMENTS cardp pointer if_usb_card payload pointer to payload data nb data length data non-zero for data, zero for comma...
usb_udc_release(9)
NAME usb_udc_release - release the usb_udc struct SYNOPSIS void usb_udc_release (struct device *dev ); ARGUMENTS dev the dev member within usb_udc DESCRIPTION This is called by driver's core in order to free memory once the last reference is released. SEE ALSO Kernel file ./drivers/usb/gadget/udc/core.c ...
usb_udc_vbus_handler(9)
NAME usb_udc_vbus_handler - updates the udc core vbus status, and try to connect or disconnect gadget SYNOPSIS void usb_udc_vbus_handler (struct usb_gadget *gadget , bool status ); ARGUMENTS gadget The gadget which vbus change occurs status The vbus status DESCRIPTION The udc driver calls it when ...
usb_unanchor_urb(9)
NAME usb_unanchor_urb - unanchors an URB SYNOPSIS void usb_unanchor_urb (struct urb *urb ); ARGUMENTS urb pointer to the urb to anchor DESCRIPTION Call this to stop the system keeping track of this URB SEE ALSO Kernel file ./drivers/usb/core/urb.c usb_init_urb(9), usb_alloc_urb(9), usb_free_urb(9), us...
usb_unlink_urb(9)
NAME usb_unlink_urb - abort/cancel a transfer request for an endpoint SYNOPSIS int usb_unlink_urb (struct urb *urb ); ARGUMENTS urb pointer to urb describing a previously submitted request, may be NULL DESCRIPTION This routine cancels an in-progress request. URBs complete only once per submission, and ma...
usb_unpoison_anchored_urbs(9)
NAME usb_unpoison_anchored_urbs - let an anchor be used successfully again SYNOPSIS void usb_unpoison_anchored_urbs (struct usb_anchor *anchor ); ARGUMENTS anchor anchor the requests are bound to DESCRIPTION Reverses the effect of usb_poison_anchored_urbs the anchor can be used normally after it returns SEE AL...
usb_unregister_notify(9)
NAME usb_unregister_notify - unregister a notifier callback SYNOPSIS void usb_unregister_notify (struct notifier_block *nb ); ARGUMENTS nb pointer to the notifier block for the callback events. DESCRIPTION usb_register_notify must have been previously called for this function to work properly. SEE ALSO Ker...