id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
usb_enumerate_device_otg(9) | NAME usb_enumerate_device_otg - FIXME (usbcore-internal)
SYNOPSIS int usb_enumerate_device_otg (struct usb_device *udev );
ARGUMENTS udev newly addressed device (in ADDRESS state)
DESCRIPTION Finish enumeration for On-The-Go devices
RETURN 0 if successful. A negative error code otherwise.
SEE ALSO Kernel fi... |
usb_ep_align(9) | NAME usb_ep_align - returns @len aligned to ep's maxpacketsize.
SYNOPSIS size_t usb_ep_align (struct usb_ep *ep , size_t len );
ARGUMENTS ep the endpoint whose maxpacketsize is used to align len
len buffer size's length to align to ep's maxpacketsize
DESCRIPTION This helper is used to align ... |
usb_ep_align_maybe(9) | NAME usb_ep_align_maybe - returns @len aligned to ep's maxpacketsize if gadget requires quirk_ep_out_aligned_size, otherwise returns len.
SYNOPSIS size_t usb_ep_align_maybe (struct usb_gadget *g , struct usb_ep *ep , size_t len );
ARGUMENTS g controller to check for quirk
ep the endpoint wh... |
usb_ep_alloc_request(9) | NAME usb_ep_alloc_request - allocate a request object to use with this endpoint
SYNOPSIS struct usb_request * usb_ep_alloc_request (struct usb_ep *ep , gfp_t gfp_flags );
ARGUMENTS ep the endpoint to be used with with the request
gfp_flags GFP_* flags to use
DESCRIPTION Request objects must be ... |
usb_ep_autoconfig(9) | NAME usb_ep_autoconfig - choose an endpoint matching the descriptor
SYNOPSIS struct usb_ep * usb_ep_autoconfig (struct usb_gadget *gadget , struct usb_endpoint_descriptor *desc );
ARGUMENTS gadget The device to which the endpoint must belong.
desc Endpoint descriptor, with endpoint direction and t... |
usb_ep_autoconfig_release(9) | NAME usb_ep_autoconfig_release - releases endpoint and set it to initial state
SYNOPSIS void usb_ep_autoconfig_release (struct usb_ep *ep );
ARGUMENTS ep endpoint which should be released
DESCRIPTION This function can be used during function bind for endpoints obtained from usb_ep_autoconfig. It unclaims ... |
usb_ep_autoconfig_reset(9) | NAME usb_ep_autoconfig_reset - reset endpoint autoconfig state
SYNOPSIS void usb_ep_autoconfig_reset (struct usb_gadget *gadget );
ARGUMENTS gadget device for which autoconfig state will be reset
DESCRIPTION Use this for devices where one configuration may need to assign endpoint resources very differently from... |
usb_ep_autoconfig_ss(9) | NAME usb_ep_autoconfig_ss - choose an endpoint matching the ep descriptor and ep companion descriptor
SYNOPSIS struct usb_ep * usb_ep_autoconfig_ss (struct usb_gadget *gadget , struct usb_endpoint_descriptor *desc , struct usb_ss_ep_comp_descriptor *ep_comp );
ARGUMENTS gadget The device to which the endpoint mu... |
usb_ep_clear_halt(9) | NAME usb_ep_clear_halt - clears endpoint halt, and resets toggle
SYNOPSIS int usb_ep_clear_halt (struct usb_ep *ep );
ARGUMENTS ep the bulk or interrupt endpoint being reset
DESCRIPTION Use this when responding to the standard usb "set interface" request, for endpoints that aren't reconfigured, after clea... |
usb_ep_dequeue(9) | NAME usb_ep_dequeue - dequeues (cancels, unlinks) an I/O request from an endpoint
SYNOPSIS int usb_ep_dequeue (struct usb_ep *ep , struct usb_request *req );
ARGUMENTS ep the endpoint associated with the request
req the request being canceled
DESCRIPTION If the request is still active on th... |
usb_ep_disable(9) | NAME usb_ep_disable - endpoint is no longer usable
SYNOPSIS int usb_ep_disable (struct usb_ep *ep );
ARGUMENTS ep the endpoint being unconfigured. may not be the endpoint named "ep0".
DESCRIPTION no other task may be using this endpoint when this is called. any pending and uncompleted requests wi... |
usb_ep_enable(9) | NAME usb_ep_enable - configure endpoint, making it usable
SYNOPSIS int usb_ep_enable (struct usb_ep *ep );
ARGUMENTS ep the endpoint being configured. may not be the endpoint named "ep0". drivers discover endpoints through the ep_list of a usb_gadget.
DESCRIPTION When configurations are set, or when int... |
usb_ep_fifo_flush(9) | NAME usb_ep_fifo_flush - flushes contents of a fifo
SYNOPSIS void usb_ep_fifo_flush (struct usb_ep *ep );
ARGUMENTS ep the endpoint whose fifo is being flushed.
DESCRIPTION This call may be used to flush the "unclaimed data" that may exist in an endpoint fifo after abnormal transaction terminations. The ca... |
usb_ep_fifo_status(9) | NAME usb_ep_fifo_status - returns number of bytes in fifo, or error
SYNOPSIS int usb_ep_fifo_status (struct usb_ep *ep );
ARGUMENTS ep the endpoint whose fifo status is being checked.
DESCRIPTION FIFO endpoints may have "unclaimed data" in them in certain cases, such as after aborted transfers. Hosts may... |
usb_ep_free_request(9) | NAME usb_ep_free_request - frees a request object
SYNOPSIS void usb_ep_free_request (struct usb_ep *ep , struct usb_request *req );
ARGUMENTS ep the endpoint associated with the request
req the request being freed
DESCRIPTION Reverses the effect of usb_ep_alloc_request. Caller guarantees th... |
usb_ep_queue(9) | NAME usb_ep_queue - queues (submits) an I/O request to an endpoint.
SYNOPSIS int usb_ep_queue (struct usb_ep *ep , struct usb_request *req , gfp_t gfp_flags );
ARGUMENTS ep the endpoint associated with the request
req the request being submitted
gfp_flags GFP_* flags to use in case ... |
usb_ep_set_halt(9) | NAME usb_ep_set_halt - sets the endpoint halt feature.
SYNOPSIS int usb_ep_set_halt (struct usb_ep *ep );
ARGUMENTS ep the non-isochronous endpoint being stalled
DESCRIPTION Use this to stall an endpoint, perhaps as an error report. Except for control endpoints, the endpoint stays halted (will not stream... |
usb_ep_set_maxpacket_limit(9) | NAME usb_ep_set_maxpacket_limit - set maximum packet size limit for endpoint
SYNOPSIS void usb_ep_set_maxpacket_limit (struct usb_ep *ep , unsigned maxpacket_limit );
ARGUMENTS ep the endpoint being configured
maxpacket_limit
value of maximum packet size limit
DESCRIPTION This fun... |
usb_ep_set_wedge(9) | NAME usb_ep_set_wedge - sets the halt feature and ignores clear requests
SYNOPSIS int usb_ep_set_wedge (struct usb_ep *ep );
ARGUMENTS ep the endpoint being wedged
DESCRIPTION Use this to stall an endpoint and ignore CLEAR_FEATURE(HALT_ENDPOINT) requests. If the gadget driver clears the halt status, it w... |
usb_ep_type_string(9) | NAME usb_ep_type_string - Returns human readable-name of the endpoint type.
SYNOPSIS const char * usb_ep_type_string (int ep_type );
ARGUMENTS ep_type The endpoint type to return human-readable name for. If it's not any of the types: USB_ENDPOINT_XFER_{CONTROL, ISOC, BULK, INT}, usually got by usb_endpoint_type,... |
usb_fill_bulk_urb(9) | NAME usb_fill_bulk_urb - macro to help initialize a bulk urb
SYNOPSIS void usb_fill_bulk_urb (struct urb *urb , struct usb_device *dev , unsigned int pipe , void *transfer_buffer , int buffer_length , usb_complete_t complete_fn , void *context );
ARGUMENTS urb pointer to the urb to initialize.
dev ... |
usb_fill_control_urb(9) | NAME usb_fill_control_urb - initializes a control urb
SYNOPSIS void usb_fill_control_urb (struct urb *urb , struct usb_device *dev , unsigned int pipe , unsigned char *setup_packet , void *transfer_buffer , int buffer_length , usb_complete_t complete_fn , void *context );
ARGUMENTS urb pointer to the urb to i... |
usb_fill_int_urb(9) | NAME usb_fill_int_urb - macro to help initialize a interrupt urb
SYNOPSIS void usb_fill_int_urb (struct urb *urb , struct usb_device *dev , unsigned int pipe , void *transfer_buffer , int buffer_length , usb_complete_t complete_fn , void *context , int interval );
ARGUMENTS urb pointer to the urb to initializ... |
usb_find_alt_setting(9) | NAME usb_find_alt_setting - Given a configuration, find the alternate setting for the given interface.
SYNOPSIS struct usb_host_interface * usb_find_alt_setting (struct usb_host_config *config , unsigned int iface_num , unsigned int alt_num );
ARGUMENTS config the configuration to search (not necessarily the cur... |
usb_find_common_endpoints(9) | NAME usb_find_common_endpoints - - look up common endpoint descriptors
SYNOPSIS int usb_find_common_endpoints (struct usb_host_interface *alt , struct usb_endpoint_descriptor **bulk_in , struct usb_endpoint_descriptor **bulk_out , struct usb_endpoint_descriptor **int_in , struct usb_endpoint_descrip‐ tor **int_out );
... |
usb_find_common_endpoints_reverse(9) | NAME usb_find_common_endpoints_reverse - - look up common endpoint descriptors
SYNOPSIS int usb_find_common_endpoints_reverse (struct usb_host_interface *alt , struct usb_endpoint_descriptor **bulk_in , struct usb_endpoint_descriptor **bulk_out , struct usb_endpoint_descriptor **int_in , struct usb_end‐ point_des... |
usb_find_endpoint(9) | NAME usb_find_endpoint - Given an endpoint address, search for the endpoint's usb_host_endpoint structure in an interface's current altsetting.
SYNOPSIS const struct usb_host_endpoint * usb_find_endpoint (const struct usb_interface *intf , unsigned int ep_addr );
ARGUMENTS intf the interface whose current alts... |
usb_find_interface(9) | NAME usb_find_interface - find usb_interface pointer for driver and device
SYNOPSIS struct usb_interface * usb_find_interface (struct usb_driver *drv , int minor );
ARGUMENTS drv the driver whose current configuration is considered
minor the minor number of the desired device
DESCRIPTION This w... |
usb_for_each_dev(9) | NAME usb_for_each_dev - iterate over all USB devices in the system
SYNOPSIS int usb_for_each_dev (void *data , int (*fn)(struct usb_device *, void *) );
ARGUMENTS data data pointer that will be handed to the callback function
fn callback function to be called for each USB device
DESCRIPTION I... |
usb_free_coherent(9) | NAME usb_free_coherent - free memory allocated with usb_alloc_coherent()
SYNOPSIS void usb_free_coherent (struct usb_device *dev , size_t size , void *addr , dma_addr_t dma );
ARGUMENTS dev device the buffer was used with
size requested buffer size
addr CPU address of buffer
... |
usb_free_descriptors(9) | NAME usb_free_descriptors - free descriptors returned by usb_copy_descriptors()
SYNOPSIS void usb_free_descriptors (struct usb_descriptor_header **v );
ARGUMENTS v vector of descriptors
SEE ALSO Kernel file ./include/linux/usb/gadget.h struct usb_request(9), struct usb_ep_caps(9), struct usb_ep(9),... |
usb_free_noncoherent(9) | NAME usb_free_noncoherent - free memory allocated with usb_alloc_noncoherent()
SYNOPSIS void usb_free_noncoherent (struct usb_device *dev , size_t size , void *addr , enum dma_data_direction dir , struct sg_table *table );
ARGUMENTS dev device the buffer was used with
size requested buffer size... |
usb_free_streams(9) | NAME usb_free_streams - free bulk endpoint stream IDs.
SYNOPSIS int usb_free_streams (struct usb_interface *interface , struct usb_host_endpoint **eps , unsigned int num_eps , gfp_t mem_flags );
ARGUMENTS interface alternate setting that includes all endpoints.
eps array of endpoints to remove strea... |
usb_free_urb(9) | NAME usb_free_urb - frees the memory used by a urb when all users of it are finished
SYNOPSIS void usb_free_urb (struct urb *urb );
ARGUMENTS urb pointer to the urb to free, may be NULL
DESCRIPTION Must be called when a user of a urb is finished with it. When the last user of the urb calls this function, th... |
usb_func_wakeup(9) | NAME usb_func_wakeup - sends function wake notification to the host.
SYNOPSIS int usb_func_wakeup (struct usb_function *func );
ARGUMENTS func function that sends the remote wakeup notification.
DESCRIPTION Applicable to devices operating at enhanced superspeed when usb functions are put in function suspend ... |
usb_function_activate(9) | NAME usb_function_activate - allow function and gadget enumeration
SYNOPSIS int usb_function_activate (struct usb_function *function );
ARGUMENTS function function on which usb_function_activate was called
DESCRIPTION Reverses effect of usb_function_deactivate. If no more functions are delaying their activation,... |
usb_function_deactivate(9) | NAME usb_function_deactivate - prevent function and gadget enumeration
SYNOPSIS int usb_function_deactivate (struct usb_function *function );
ARGUMENTS function the function that isn't yet ready to respond
DESCRIPTION Blocks response of the gadget driver to host enumeration by preventing the data line pullup ... |
usb_gadget_activate(9) | NAME usb_gadget_activate - activate function which is not ready to work
SYNOPSIS int usb_gadget_activate (struct usb_gadget *gadget );
ARGUMENTS gadget the peripheral being activated
DESCRIPTION This routine activates gadget which was previously deactivated with usb_gadget_deactivate call. It calls usb_gadget_... |
usb_gadget_check_config(9) | NAME usb_gadget_check_config - checks if the UDC can support the binded configuration
SYNOPSIS int usb_gadget_check_config (struct usb_gadget *gadget );
ARGUMENTS gadget controller to check the USB configuration
DESCRIPTION Ensure that a UDC is able to support the requested resources by a configuration, and t... |
usb_gadget_clear_selfpowered(9) | NAME usb_gadget_clear_selfpowered - clear the device selfpowered feature.
SYNOPSIS int usb_gadget_clear_selfpowered (struct usb_gadget *gadget );
ARGUMENTS gadget the device being declared as bus-powered
DESCRIPTION this affects the device status reported by the hardware driver. some hardware may not support b... |
usb_gadget_connect(9) | NAME usb_gadget_connect - software-controlled connect to USB host
SYNOPSIS int usb_gadget_connect (struct usb_gadget *gadget );
ARGUMENTS gadget the peripheral being connected
DESCRIPTION Enables the D+ (or potentially D-) pullup. The host will start enumerating this gadget when the pullup is active and a VBUS... |
usb_gadget_deactivate(9) | NAME usb_gadget_deactivate - deactivate function which is not ready to work
SYNOPSIS int usb_gadget_deactivate (struct usb_gadget *gadget );
ARGUMENTS gadget the peripheral being deactivated
DESCRIPTION This routine may be used during the gadget driver bind call to prevent the peripheral from ever being visibl... |
usb_gadget_disable_async_callbacks(9) | NAME usb_gadget_disable_async_callbacks - tell usb device controller to disable asynchronous callbacks
SYNOPSIS void usb_gadget_disable_async_callbacks (struct usb_udc *udc );
ARGUMENTS udc The UDC which should disable async callbacks
DESCRIPTION This routine is used when unbinding gadget drivers. It preve... |
usb_gadget_disconnect(9) | NAME usb_gadget_disconnect - software-controlled disconnect from USB host
SYNOPSIS int usb_gadget_disconnect (struct usb_gadget *gadget );
ARGUMENTS gadget the peripheral being disconnected
DESCRIPTION Disables the D+ (or potentially D-) pullup, which the host may see as a disconnect (when a VBUS session is ac... |
usb_gadget_enable_async_callbacks(9) | NAME usb_gadget_enable_async_callbacks - tell usb device controller to enable asynchronous callbacks
SYNOPSIS void usb_gadget_enable_async_callbacks (struct usb_udc *udc );
ARGUMENTS udc The UDC which should enable async callbacks
DESCRIPTION This routine is used when binding gadget drivers. It undoes th... |
usb_gadget_frame_number(9) | NAME usb_gadget_frame_number - returns the current frame number
SYNOPSIS int usb_gadget_frame_number (struct usb_gadget *gadget );
ARGUMENTS gadget controller that reports the frame number
DESCRIPTION Returns the usb frame number, normally eleven bits from a SOF packet, or negative errno if this device doesn't ... |
usb_gadget_get_string(9) | NAME usb_gadget_get_string - fill out a string descriptor
SYNOPSIS int usb_gadget_get_string (const struct usb_gadget_strings *table , int id , u8 *buf );
ARGUMENTS table of c strings encoded using UTF-8
id string id, from low byte of wValue in get string descriptor
buf at least... |
usb_gadget_giveback_request(9) | NAME usb_gadget_giveback_request - give the request back to the gadget layer
SYNOPSIS void usb_gadget_giveback_request (struct usb_ep *ep , struct usb_request *req );
ARGUMENTS ep the endpoint to be used with with the request
req the request being given back
DESCRIPTION This is called by dev... |
usb_gadget_register_driver_owner(9) | NAME usb_gadget_register_driver_owner - register a gadget driver
SYNOPSIS int usb_gadget_register_driver_owner (struct usb_gadget_driver *driver , struct module *owner , const char *mod_name );
ARGUMENTS driver the driver being registered
owner the driver module
mod_name the driver modul... |
usb_gadget_set_remote_wakeup(9) | NAME usb_gadget_set_remote_wakeup - configures the device remote wakeup feature.
SYNOPSIS int usb_gadget_set_remote_wakeup (struct usb_gadget *gadget , int set );
ARGUMENTS gadget the device being configured for remote wakeup
set value to be configured.
DESCRIPTION set to one to enable remote wa... |
usb_gadget_set_selfpowered(9) | NAME usb_gadget_set_selfpowered - sets the device selfpowered feature.
SYNOPSIS int usb_gadget_set_selfpowered (struct usb_gadget *gadget );
ARGUMENTS gadget the device being declared as self-powered
DESCRIPTION this affects the device status reported by the hardware driver to reflect that it now has a local po... |
usb_gadget_udc_reset(9) | NAME usb_gadget_udc_reset - notifies the udc core that bus reset occurs
SYNOPSIS void usb_gadget_udc_reset (struct usb_gadget *gadget , struct usb_gadget_driver *driver );
ARGUMENTS gadget The gadget which bus reset occurs
driver The gadget driver we want to notify
DESCRIPTION If the udc driver has... |
usb_gadget_udc_set_speed(9) | NAME usb_gadget_udc_set_speed - tells usb device controller speed supported by current driver
SYNOPSIS void usb_gadget_udc_set_speed (struct usb_udc *udc , enum usb_device_speed speed );
ARGUMENTS udc The device we want to set maximum speed
speed The maximum speed to allowed to run
DESCRIPTION ... |
usb_gadget_udc_start_locked(9) | NAME usb_gadget_udc_start_locked - tells usb device controller to start up
SYNOPSIS int usb_gadget_udc_start_locked (struct usb_udc *udc );
ARGUMENTS udc The UDC to be started
DESCRIPTION This call is issued by the UDC Class driver when it's about to register a gadget driver to the device controller, before ... |
usb_gadget_udc_stop_locked(9) | NAME usb_gadget_udc_stop_locked - tells usb device controller we don't need it anymore
SYNOPSIS void usb_gadget_udc_stop_locked (struct usb_udc *udc );
ARGUMENTS udc The UDC to be stopped
DESCRIPTION This call is issued by the UDC Class driver after calling gadget driver's unbind method. The details are... |
usb_gadget_unregister_driver(9) | NAME usb_gadget_unregister_driver - unregister a gadget driver
SYNOPSIS int usb_gadget_unregister_driver (struct usb_gadget_driver *driver );
ARGUMENTS driver the driver being unregistered
CONTEXT can sleep
DESCRIPTION Call this in your gadget driver's module cleanup function, to tell the underlying usb cont... |
usb_gadget_vbus_connect(9) | NAME usb_gadget_vbus_connect - Notify controller that VBUS is powered
SYNOPSIS int usb_gadget_vbus_connect (struct usb_gadget *gadget );
ARGUMENTS gadget The device which now has VBUS power.
CONTEXT can sleep
DESCRIPTION This call is used by a driver for an external transceiver (or GPIO) that detects a VBUS... |
usb_gadget_vbus_disconnect(9) | NAME usb_gadget_vbus_disconnect - notify controller about VBUS session end
SYNOPSIS int usb_gadget_vbus_disconnect (struct usb_gadget *gadget );
ARGUMENTS gadget the device whose VBUS supply is being described
CONTEXT can sleep
DESCRIPTION This call is used by a driver for an external transceiver (or GPIO) th... |
usb_gadget_vbus_draw(9) | NAME usb_gadget_vbus_draw - constrain controller's VBUS power usage
SYNOPSIS int usb_gadget_vbus_draw (struct usb_gadget *gadget , unsigned mA );
ARGUMENTS gadget The device whose VBUS usage is being described
mA How much current to draw, in milliAmperes. This should be twice the value listed i... |
usb_gadget_wakeup(9) | NAME usb_gadget_wakeup - tries to wake up the host connected to this gadget
SYNOPSIS int usb_gadget_wakeup (struct usb_gadget *gadget );
ARGUMENTS gadget controller used to wake up the host
DESCRIPTION Returns zero on success, else negative error code if the hardware doesn't support such attempts, or its sup... |
usb_get_current_frame_number(9) | NAME usb_get_current_frame_number - return current bus frame number
SYNOPSIS int usb_get_current_frame_number (struct usb_device *dev );
ARGUMENTS dev the device whose bus is being queried
RETURN The current frame number for the USB host controller used with the given USB device. This can be used when schedu... |
usb_get_descriptor(9) | NAME usb_get_descriptor - issues a generic GET_DESCRIPTOR request
SYNOPSIS int usb_get_descriptor (struct usb_device *dev , unsigned char type , unsigned char index , void *buf , int size );
ARGUMENTS dev the device whose descriptor is being retrieved
type the descriptor type (USB_DT_*)
... |
usb_get_dev(9) | NAME usb_get_dev - increments the reference count of the usb device structure
SYNOPSIS struct usb_device * usb_get_dev (struct usb_device *dev );
ARGUMENTS dev the device being referenced
DESCRIPTION Each live reference to a device should be refcounted. Drivers for USB interfaces should normally record suc... |
usb_get_dr_mode(9) | NAME usb_get_dr_mode - Get dual role mode for given device
SYNOPSIS enum usb_dr_mode usb_get_dr_mode (struct device *dev );
ARGUMENTS dev Pointer to the given device
DESCRIPTION The function gets phy interface string from property 'dr_mode', and returns the corresponding enum usb_dr_mode
SEE ALSO Kernel fil... |
usb_get_dr_mode_from_string(9) | NAME usb_get_dr_mode_from_string - Get dual role mode for given string
SYNOPSIS enum usb_dr_mode usb_get_dr_mode_from_string (const char *str );
ARGUMENTS str String to find the corresponding dual role mode for
DESCRIPTION This function performs a lookup for the given string and returns the corresponding enu... |
usb_get_from_anchor(9) | NAME usb_get_from_anchor - get an anchor's oldest urb
SYNOPSIS struct urb * usb_get_from_anchor (struct usb_anchor *anchor );
ARGUMENTS anchor the anchor whose urb you want
DESCRIPTION This will take the oldest urb from an anchor, unanchor and return it
RETURN The oldest urb from anchor, or NULL if anchor has ... |
usb_get_gadget_udc_name(9) | NAME usb_get_gadget_udc_name - get the name of the first UDC controller This functions returns the name of the first UDC controller in the system. Please note that this interface is usefull only for legacy drivers which assume that there is only one UDC controller in the system and they need to get its name before i... |
usb_get_hub_port_acpi_handle(9) | NAME usb_get_hub_port_acpi_handle - Get the usb port's acpi handle
SYNOPSIS acpi_handle usb_get_hub_port_acpi_handle (struct usb_device *hdev , int port1 );
ARGUMENTS hdev USB device belonging to the usb hub
port1 port num of the port
RETURN Port's acpi handle if successful, NULL if params are i... |
usb_get_intf(9) | NAME usb_get_intf - increments the reference count of the usb interface structure
SYNOPSIS struct usb_interface * usb_get_intf (struct usb_interface *intf );
ARGUMENTS intf the interface being referenced
DESCRIPTION Each live reference to a interface must be refcounted. Drivers for USB interfaces should no... |
usb_get_maximum_speed(9) | NAME usb_get_maximum_speed - Get maximum requested speed for a given USB controller.
SYNOPSIS enum usb_device_speed usb_get_maximum_speed (struct device *dev );
ARGUMENTS dev Pointer to the given USB controller device
DESCRIPTION The function gets the maximum speed string from property "maximum-speed", and r... |
usb_get_maximum_ssp_rate(9) | NAME usb_get_maximum_ssp_rate - Get the signaling rate generation and lane count of a SuperSpeed Plus capable device.
SYNOPSIS enum usb_ssp_rate usb_get_maximum_ssp_rate (struct device *dev );
ARGUMENTS dev Pointer to the given USB controller device
DESCRIPTION If the string from "maximum-speed" property is ... |
usb_get_phy(9) | NAME usb_get_phy - find the USB PHY
SYNOPSIS struct usb_phy * usb_get_phy (enum usb_phy_type type );
ARGUMENTS type the type of the phy the controller requires
DESCRIPTION Returns the phy driver, after getting a refcount to it; or -ENODEV if there is no such phy. The caller is responsible for calling usb_put... |
usb_get_role_switch_default_mode(9) | NAME usb_get_role_switch_default_mode - Get default mode for given device
SYNOPSIS enum usb_dr_mode usb_get_role_switch_default_mode (struct device *dev );
ARGUMENTS dev Pointer to the given device
DESCRIPTION The function gets string from property 'role-switch-default-mode', and returns the corresponding en... |
usb_get_status(9) | NAME usb_get_status - issues a GET_STATUS call
SYNOPSIS int usb_get_status (struct usb_device *dev , int recip , int type , int target , void *data );
ARGUMENTS dev the device whose status is being checked
recip USB_RECIP_*; for device, interface, or endpoint
type USB_STATUS_TYPE_... |
usb_get_string(9) | NAME usb_get_string - gets a string descriptor
SYNOPSIS int usb_get_string (struct usb_device *dev , unsigned short langid , unsigned char index , void *buf , int size );
ARGUMENTS dev the device whose string descriptor is being retrieved
langid code for language chosen (from string descriptor ze... |
usb_get_urb(9) | NAME usb_get_urb - increments the reference count of the urb
SYNOPSIS struct urb * usb_get_urb (struct urb *urb );
ARGUMENTS urb pointer to the urb to modify, may be NULL
DESCRIPTION This must be called whenever a urb is transferred from a device driver to a host controller driver. This allows proper refer... |
usb_gpib_attach(9) | NAME usb_gpib_attach - activate the usb-gpib converter board
SYNOPSIS int usb_gpib_attach (struct gpib_board *board , const struct gpib_board_config *config );
ARGUMENTS board the gpib_board_struct data area for this gpib interface
config firmware data, if any (from gpib_config -I <file>)
DESCRIPT... |
usb_gpib_detach(9) | NAME usb_gpib_detach - deactivate the usb-gpib converter board
SYNOPSIS void usb_gpib_detach (struct gpib_board *board );
ARGUMENTS board the gpib_board data area for this gpib interface
SEE ALSO Kernel file ./drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c write_loop(9), send_command(9), set_timeout(9), usb_g... |
usb_gpib_disable_eos(9) | NAME usb_gpib_disable_eos - Disable END on eos byte (END on EOI only)
SYNOPSIS void usb_gpib_disable_eos (struct gpib_board *board );
ARGUMENTS board the gpib_board data area for this gpib interface
DESCRIPTION With the lpvo adapter eos can only be handled via software. Cannot do nothing here, but remember fo... |
usb_gpib_enable_eos(9) | NAME usb_gpib_enable_eos - Enable END for reads when eos byte is received.
SYNOPSIS int usb_gpib_enable_eos (struct gpib_board *board , u8 eos_byte , int compare_8_bits );
ARGUMENTS board the gpib_board data area for this gpib interface
eos_byte the 'eos' byte
compare_8_bits
... |
usb_gpib_go_to_standby(9) | NAME usb_gpib_go_to_standby - De-assert ATN
SYNOPSIS int usb_gpib_go_to_standby (struct gpib_board *board );
ARGUMENTS board the gpib_board data area for this gpib interface
SEE ALSO Kernel file ./drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c write_loop(9), send_command(9), set_timeout(9), usb_gpib_attach... |
usb_gpib_interface_clear(9) | NAME usb_gpib_interface_clear - Assert or de-assert IFC
SYNOPSIS void usb_gpib_interface_clear (struct gpib_board *board , int assert );
ARGUMENTS board the gpib_board data area for this gpib interface
assert 1: assert IFC; 0: de-assert IFC
DESCRIPTION Currently on the assert request we issue the... |
usb_gpib_line_status(9) | NAME usb_gpib_line_status - Read the status of the bus lines.
SYNOPSIS int usb_gpib_line_status (const struct gpib_board *board );
ARGUMENTS board the gpib_board data area for this gpib interface
DESCRIPTION We can read all lines.
SEE ALSO Kernel file ./drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c write_loop(9... |
usb_gstrings_attach(9) | NAME usb_gstrings_attach - attach gadget strings to a cdev and assign ids
SYNOPSIS struct usb_string * usb_gstrings_attach (struct usb_composite_dev *cdev , struct usb_gadget_strings **sp , unsigned n_strings );
ARGUMENTS cdev the device whose string descriptor IDs are being allocated and attached.
sp ... |
usb_hc_died(9) | NAME usb_hc_died - report abnormal shutdown of a host controller (bus glue)
SYNOPSIS void usb_hc_died (struct usb_hcd *hcd );
ARGUMENTS hcd pointer to the HCD representing the controller
DESCRIPTION This is called by bus glue to report a USB host controller that died while operations may still have been pen... |
usb_hcd_alloc_bandwidth(9) | NAME usb_hcd_alloc_bandwidth - check whether a new bandwidth setting exceeds the bus bandwidth
SYNOPSIS int usb_hcd_alloc_bandwidth (struct usb_device *udev , struct usb_host_config *new_config , struct usb_host_interface *cur_alt , struct usb_host_interface *new_alt );
ARGUMENTS udev target usb_device
... |
usb_hcd_check_unlink_urb(9) | NAME usb_hcd_check_unlink_urb - check whether an URB may be unlinked
SYNOPSIS int usb_hcd_check_unlink_urb (struct usb_hcd *hcd , struct urb *urb , int status );
ARGUMENTS hcd host controller to which urb was submitted
urb URB being checked for unlinkability
status error code to s... |
usb_hcd_giveback_urb(9) | NAME usb_hcd_giveback_urb - return URB from HCD to device driver
SYNOPSIS void usb_hcd_giveback_urb (struct usb_hcd *hcd , struct urb *urb , int status );
ARGUMENTS hcd host controller returning the URB
urb urb being returned to the USB device driver.
status completion status code... |
usb_hcd_irq(9) | NAME usb_hcd_irq - hook IRQs to HCD framework (bus glue)
SYNOPSIS irqreturn_t usb_hcd_irq (int irq , void *__hcd );
ARGUMENTS irq the IRQ being raised
__hcd pointer to the HCD whose IRQ is being signaled
DESCRIPTION If the controller isn't HALTed, calls the driver's irq handler. Checks whether... |
usb_hcd_link_urb_to_ep(9) | NAME usb_hcd_link_urb_to_ep - add an URB to its endpoint queue
SYNOPSIS int usb_hcd_link_urb_to_ep (struct usb_hcd *hcd , struct urb *urb );
ARGUMENTS hcd host controller to which urb was submitted
urb URB being submitted
DESCRIPTION Host controller drivers should call this routine in their e... |
usb_hcd_pci_probe(9) | NAME usb_hcd_pci_probe - initialize PCI-based HCDs
SYNOPSIS int usb_hcd_pci_probe (struct pci_dev *dev , const struct hc_driver *driver );
ARGUMENTS dev USB Host Controller being probed
driver USB HC driver handle
CONTEXT task context, might sleep
DESCRIPTION Allocates basic PCI resources for ... |
usb_hcd_pci_remove(9) | NAME usb_hcd_pci_remove - shutdown processing for PCI-based HCDs
SYNOPSIS void usb_hcd_pci_remove (struct pci_dev *dev );
ARGUMENTS dev USB Host Controller being removed
CONTEXT task context, might sleep
DESCRIPTION Reverses the effect of usb_hcd_pci_probe, first invoking the HCD's stop method. It is alway... |
usb_hcd_pci_shutdown(9) | NAME usb_hcd_pci_shutdown - shutdown host controller
SYNOPSIS void usb_hcd_pci_shutdown (struct pci_dev *dev );
ARGUMENTS dev USB Host Controller being shutdown
SEE ALSO Kernel file ./drivers/usb/core/hcd-pci.c usb_hcd_pci_probe(9), usb_hcd_pci_remove(9)
April 2026 ... |
usb_hcd_reset_endpoint(9) | NAME usb_hcd_reset_endpoint - reset host endpoint state
SYNOPSIS void usb_hcd_reset_endpoint (struct usb_device *udev , struct usb_host_endpoint *ep );
ARGUMENTS udev USB device.
ep the endpoint to reset.
DESCRIPTION Resets any host endpoint state such as the toggle bit, sequence number and c... |
usb_hcd_resume_root_hub(9) | NAME usb_hcd_resume_root_hub - called by HCD to resume its root hub
SYNOPSIS void usb_hcd_resume_root_hub (struct usb_hcd *hcd );
ARGUMENTS hcd host controller for this root hub
DESCRIPTION The USB host controller calls this function when its root hub is suspended (with the remote wakeup feature enabled) an... |
usb_hcd_unlink_urb_from_ep(9) | NAME usb_hcd_unlink_urb_from_ep - remove an URB from its endpoint queue
SYNOPSIS void usb_hcd_unlink_urb_from_ep (struct usb_hcd *hcd , struct urb *urb );
ARGUMENTS hcd host controller to which urb was submitted
urb URB being unlinked
DESCRIPTION Host controller drivers should call this ro... |
usb_hub_clear_tt_buffer(9) | NAME usb_hub_clear_tt_buffer - clear control/bulk TT state in high speed hub
SYNOPSIS int usb_hub_clear_tt_buffer (struct urb *urb );
ARGUMENTS urb an URB associated with the failed or incomplete split transaction
DESCRIPTION High speed HCDs use this to tell the hub driver that some split control or bulk tra... |
usb_hub_find_child(9) | NAME usb_hub_find_child - Get the pointer of child device attached to the port which is specified by @port1.
SYNOPSIS struct usb_device * usb_hub_find_child (struct usb_device *hdev , int port1 );
ARGUMENTS hdev USB device belonging to the usb hub
port1 port num to indicate which port the child d... |
usb_hub_for_each_child(9) | NAME usb_hub_for_each_child - iterate over all child devices on the hub
SYNOPSIS usb_hub_for_each_child (hdev , port1 , child );
ARGUMENTS hdev USB device belonging to the usb hub
port1 portnum associated with child device
child child device pointer
SEE ALSO Kernel file ./include... |
usb_hub_set_port_power(9) | NAME usb_hub_set_port_power - control hub port's power state
SYNOPSIS int usb_hub_set_port_power (struct usb_device *hdev , struct usb_hub *hub , int port1 , bool set );
ARGUMENTS hdev USB device belonging to the usb hub
hub target hub
port1 port index
set expected... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.