id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
dwc2_hsotg_ctrl_epint(9) | NAME dwc2_hsotg_ctrl_epint - enable/disable an endpoint irq
SYNOPSIS void dwc2_hsotg_ctrl_epint (struct dwc2_hsotg *hsotg , unsigned int ep , unsigned int dir_in , unsigned int en );
ARGUMENTS hsotg The device state
ep The endpoint index
dir_in True if direction is in.
en ... |
dwc2_hsotg_disable_gsint(9) | NAME dwc2_hsotg_disable_gsint - disable one or more of the general interrupt
SYNOPSIS void dwc2_hsotg_disable_gsint (struct dwc2_hsotg *hsotg , u32 ints );
ARGUMENTS hsotg The device state
ints A bitmask of the interrupts to enable
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_... |
dwc2_hsotg_disconnect(9) | NAME dwc2_hsotg_disconnect - disconnect service
SYNOPSIS void dwc2_hsotg_disconnect (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg The device state.
DESCRIPTION The device has been disconnected. Remove all current transactions and signal the gadget driver that this has happened.
SEE ALSO Kernel file ./dri... |
dwc2_hsotg_dump(9) | NAME dwc2_hsotg_dump - dump state of the udc
SYNOPSIS void dwc2_hsotg_dump (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg Programming view of the DWC_otg controller
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr_frame_num(9), dwc2_gadget_dec_frame_num_by_one(9), ... |
dwc2_hsotg_en_gsint(9) | NAME dwc2_hsotg_en_gsint - enable one or more of the general interrupt
SYNOPSIS void dwc2_hsotg_en_gsint (struct dwc2_hsotg *hsotg , u32 ints );
ARGUMENTS hsotg The device state
ints A bitmask of the interrupts to enable
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2... |
dwc2_hsotg_enqueue_setup(9) | NAME dwc2_hsotg_enqueue_setup - start a request for EP0 packets
SYNOPSIS void dwc2_hsotg_enqueue_setup (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg The device state.
DESCRIPTION Enqueue a request on EP0 if necessary to received any SETUP packets received from the host.
SEE ALSO Kernel file ./drivers/usb... |
dwc2_hsotg_ep0_mps(9) | NAME dwc2_hsotg_ep0_mps - turn max packet size into register setting
SYNOPSIS u32 dwc2_hsotg_ep0_mps (unsigned int mps );
ARGUMENTS mps The maximum packet size in bytes.
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr_frame_num(9), dwc2_gadget_dec_frame_num_by_o... |
dwc2_hsotg_ep0_zlp(9) | NAME dwc2_hsotg_ep0_zlp - send/receive zero-length packet on control endpoint
SYNOPSIS void dwc2_hsotg_ep0_zlp (struct dwc2_hsotg *hsotg , bool dir_in );
ARGUMENTS hsotg The device instance
dir_in If IN zlp
DESCRIPTION Generate a zero-length IN packet request for terminating a SETUP transaction. ... |
dwc2_hsotg_ep_alloc_request(9) | NAME dwc2_hsotg_ep_alloc_request - allocate USB rerequest structure
SYNOPSIS struct usb_request * dwc2_hsotg_ep_alloc_request (struct usb_ep *ep , gfp_t flags );
ARGUMENTS ep USB endpoint to allocate request for.
flags Allocation flags
DESCRIPTION Allocate a new USB request structure appropria... |
dwc2_hsotg_ep_dequeue(9) | NAME dwc2_hsotg_ep_dequeue - dequeue given endpoint
SYNOPSIS int dwc2_hsotg_ep_dequeue (struct usb_ep *ep , struct usb_request *req );
ARGUMENTS ep The endpoint to dequeue.
req The request to be removed from a queue.
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), ... |
dwc2_hsotg_ep_disable(9) | NAME dwc2_hsotg_ep_disable - disable given endpoint
SYNOPSIS int dwc2_hsotg_ep_disable (struct usb_ep *ep );
ARGUMENTS ep The endpoint to disable.
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr_frame_num(9), dwc2_gadget_dec_frame_num_by_one(9), dwc2_hsotg_en... |
dwc2_hsotg_ep_enable(9) | NAME dwc2_hsotg_ep_enable - enable the given endpoint
SYNOPSIS int dwc2_hsotg_ep_enable (struct usb_ep *ep , const struct usb_endpoint_descriptor *desc );
ARGUMENTS ep The USB endpint to configure
desc The USB endpoint descriptor to configure with.
DESCRIPTION This is called from the USB gadg... |
dwc2_hsotg_ep_sethalt(9) | NAME dwc2_hsotg_ep_sethalt - set halt on a given endpoint
SYNOPSIS int dwc2_hsotg_ep_sethalt (struct usb_ep *ep , int value , bool now );
ARGUMENTS ep The endpoint to set halt.
value Set or unset the halt.
now If true, stall the endpoint now. Otherwise return -EAGAIN if the endp... |
dwc2_hsotg_ep_sethalt_lock(9) | NAME dwc2_hsotg_ep_sethalt_lock - set halt on a given endpoint with lock held
SYNOPSIS int dwc2_hsotg_ep_sethalt_lock (struct usb_ep *ep , int value );
ARGUMENTS ep The endpoint to set halt.
value Set or unset the halt.
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), ... |
dwc2_hsotg_epint(9) | NAME dwc2_hsotg_epint - handle an in/out endpoint interrupt
SYNOPSIS void dwc2_hsotg_epint (struct dwc2_hsotg *hsotg , unsigned int idx , int dir_in );
ARGUMENTS hsotg The driver state
idx The index for the endpoint (0..15)
dir_in Set if this is an IN endpoint
DESCRIPTION Process a... |
dwc2_hsotg_gadget_getframe(9) | NAME dwc2_hsotg_gadget_getframe - read the frame number
SYNOPSIS int dwc2_hsotg_gadget_getframe (struct usb_gadget *gadget );
ARGUMENTS gadget The usb gadget state
DESCRIPTION Read the {micro} frame number
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr_frame_num(9),... |
dwc2_hsotg_handle_outdone(9) | NAME dwc2_hsotg_handle_outdone - handle receiving OutDone/SetupDone from RXFIFO
SYNOPSIS void dwc2_hsotg_handle_outdone (struct dwc2_hsotg *hsotg , int epnum );
ARGUMENTS hsotg The device instance
epnum The endpoint received from
DESCRIPTION The RXFIFO has delivered an OutDone event, which means ... |
dwc2_hsotg_handle_rx(9) | NAME dwc2_hsotg_handle_rx - RX FIFO has data
SYNOPSIS void dwc2_hsotg_handle_rx (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg The device instance
DESCRIPTION The IRQ handler has detected that the RX FIFO has some data in it that requires processing, so find out what is in there and do the appropriate read. Th... |
dwc2_hsotg_hw_cfg(9) | NAME dwc2_hsotg_hw_cfg - read HW configuration registers
SYNOPSIS int dwc2_hsotg_hw_cfg (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg Programming view of the DWC_otg controller
DESCRIPTION Read the USB core HW configuration registers
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dw... |
dwc2_hsotg_init(9) | NAME dwc2_hsotg_init - initialize the usb core
SYNOPSIS void dwc2_hsotg_init (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg The driver state
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr_frame_num(9), dwc2_gadget_dec_frame_num_by_one(9), dwc2_hsotg_en_gsint(9), ... |
dwc2_hsotg_init_fifo(9) | NAME dwc2_hsotg_init_fifo - initialise non-periodic FIFOs
SYNOPSIS void dwc2_hsotg_init_fifo (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg The device instance.
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr_frame_num(9), dwc2_gadget_dec_frame_num_by_one(9), dwc2... |
dwc2_hsotg_initep(9) | NAME dwc2_hsotg_initep - initialise a single endpoint
SYNOPSIS void dwc2_hsotg_initep (struct dwc2_hsotg *hsotg , struct dwc2_hsotg_ep *hs_ep , int epnum , bool dir_in );
ARGUMENTS hsotg The device state.
hs_ep The endpoint to be initialised.
epnum The endpoint number
dir_in ... |
dwc2_hsotg_irq(9) | NAME dwc2_hsotg_irq - handle device interrupt
SYNOPSIS irqreturn_t dwc2_hsotg_irq (int irq , void *pw );
ARGUMENTS irq The IRQ number triggered
pw The pw value when registered the handler.
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr_frame_num(9... |
dwc2_hsotg_irq_enumdone(9) | NAME dwc2_hsotg_irq_enumdone - Handle EnumDone interrupt (enumeration done)
SYNOPSIS void dwc2_hsotg_irq_enumdone (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg The device state.
DESCRIPTION Handle updating the device settings after the enumeration phase has been completed.
SEE ALSO Kernel file ./drivers/... |
dwc2_hsotg_irq_fifoempty(9) | NAME dwc2_hsotg_irq_fifoempty - TX FIFO empty interrupt handler
SYNOPSIS void dwc2_hsotg_irq_fifoempty (struct dwc2_hsotg *hsotg , bool periodic );
ARGUMENTS hsotg The device state:
periodic True if this is a periodic FIFO interrupt
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma... |
dwc2_hsotg_map_dma(9) | NAME dwc2_hsotg_map_dma - map the DMA memory being used for the request
SYNOPSIS int dwc2_hsotg_map_dma (struct dwc2_hsotg *hsotg , struct dwc2_hsotg_ep *hs_ep , struct usb_request *req );
ARGUMENTS hsotg The device state.
hs_ep The endpoint the request is on.
req The request being... |
dwc2_hsotg_process_control(9) | NAME dwc2_hsotg_process_control - process a control request
SYNOPSIS void dwc2_hsotg_process_control (struct dwc2_hsotg *hsotg , struct usb_ctrlrequest *ctrl );
ARGUMENTS hsotg The device state
ctrl The control request received
DESCRIPTION The controller has received the SETUP phase of a control... |
dwc2_hsotg_process_req_feature(9) | NAME dwc2_hsotg_process_req_feature - process request {SET,CLEAR}_FEATURE
SYNOPSIS int dwc2_hsotg_process_req_feature (struct dwc2_hsotg *hsotg , struct usb_ctrlrequest *ctrl );
ARGUMENTS hsotg The device state
ctrl USB control request
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c us... |
dwc2_hsotg_process_req_status(9) | NAME dwc2_hsotg_process_req_status - process request GET_STATUS
SYNOPSIS int dwc2_hsotg_process_req_status (struct dwc2_hsotg *hsotg , struct usb_ctrlrequest *ctrl );
ARGUMENTS hsotg The device state
ctrl USB control request
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9),... |
dwc2_hsotg_pullup(9) | NAME dwc2_hsotg_pullup - connect/disconnect the USB PHY
SYNOPSIS int dwc2_hsotg_pullup (struct usb_gadget *gadget , int is_on );
ARGUMENTS gadget The usb gadget state
is_on Current state of the USB PHY
DESCRIPTION Connect/Disconnect the USB PHY pullup
SEE ALSO Kernel file ./drivers/usb/dwc2... |
dwc2_hsotg_read_frameno(9) | NAME dwc2_hsotg_read_frameno - read current frame number
SYNOPSIS u32 dwc2_hsotg_read_frameno (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg The device instance
DESCRIPTION Return the current frame number
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr_frame_num(9), ... |
dwc2_hsotg_remove(9) | NAME dwc2_hsotg_remove - remove function for hsotg driver
SYNOPSIS int dwc2_hsotg_remove (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg Programming view of the DWC_otg controller
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr_frame_num(9), dwc2_gadget_dec_frame_num... |
dwc2_hsotg_rx_data(9) | NAME dwc2_hsotg_rx_data - receive data from the FIFO for an endpoint
SYNOPSIS void dwc2_hsotg_rx_data (struct dwc2_hsotg *hsotg , int ep_idx , int size );
ARGUMENTS hsotg The device state.
ep_idx The endpoint index for the data
size The size of data in the fifo, in bytes
DESCRIPTION... |
dwc2_hsotg_send_reply(9) | NAME dwc2_hsotg_send_reply - send reply to control request
SYNOPSIS int dwc2_hsotg_send_reply (struct dwc2_hsotg *hsotg , struct dwc2_hsotg_ep *ep , void *buff , int length );
ARGUMENTS hsotg The device state
ep Endpoint 0
buff Buffer for request
length Length of rep... |
dwc2_hsotg_set_ep_maxpacket(9) | NAME dwc2_hsotg_set_ep_maxpacket - set endpoint's max-packet field
SYNOPSIS void dwc2_hsotg_set_ep_maxpacket (struct dwc2_hsotg *hsotg , unsigned int ep , unsigned int mps , unsigned int mc , unsigned int dir_in );
ARGUMENTS hsotg The driver state.
ep The index number of the endpoint
mp... |
dwc2_hsotg_set_selfpowered(9) | NAME dwc2_hsotg_set_selfpowered - set if device is self/bus powered
SYNOPSIS int dwc2_hsotg_set_selfpowered (struct usb_gadget *gadget , int is_selfpowered );
ARGUMENTS gadget The usb gadget state
is_selfpowered
Whether the device is self-powered
DESCRIPTION Set if the device is self ... |
dwc2_hsotg_set_test_mode(9) | NAME dwc2_hsotg_set_test_mode - Enable usb Test Modes
SYNOPSIS int dwc2_hsotg_set_test_mode (struct dwc2_hsotg *hsotg , int testmode );
ARGUMENTS hsotg The driver state.
testmode requested usb test mode Enable usb Test Mode requested by the Host.
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.... |
dwc2_hsotg_stall_ep0(9) | NAME dwc2_hsotg_stall_ep0 - stall ep0
SYNOPSIS void dwc2_hsotg_stall_ep0 (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg The device state
DESCRIPTION Set stall for ep0 as response for setup request.
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr_frame_num(9), dwc2_... |
dwc2_hsotg_start_req(9) | NAME dwc2_hsotg_start_req - start a USB request from an endpoint's queue
SYNOPSIS void dwc2_hsotg_start_req (struct dwc2_hsotg *hsotg , struct dwc2_hsotg_ep *hs_ep , struct dwc2_hsotg_req *hs_req , bool continuing );
ARGUMENTS hsotg The controller state.
hs_ep The endpoint to process a request for... |
dwc2_hsotg_trytx(9) | NAME dwc2_hsotg_trytx - check to see if anything needs transmitting
SYNOPSIS int dwc2_hsotg_trytx (struct dwc2_hsotg *hsotg , struct dwc2_hsotg_ep *hs_ep );
ARGUMENTS hsotg The driver state
hs_ep The driver endpoint to check.
DESCRIPTION Check to see if there is a request that has data to send, a... |
dwc2_hsotg_tx_fifo_average_depth(9) | NAME dwc2_hsotg_tx_fifo_average_depth - returns average depth of device mode TX FIFOs
SYNOPSIS int dwc2_hsotg_tx_fifo_average_depth (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg Programming view of the DWC_otg controller
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr... |
dwc2_hsotg_tx_fifo_count(9) | NAME dwc2_hsotg_tx_fifo_count - return count of TX FIFOs in device mode
SYNOPSIS int dwc2_hsotg_tx_fifo_count (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg Programming view of the DWC_otg controller
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr_frame_num(9), dwc2_gadget_dec_fr... |
dwc2_hsotg_tx_fifo_total_depth(9) | NAME dwc2_hsotg_tx_fifo_total_depth - return total FIFO depth available for device mode TX FIFOs
SYNOPSIS int dwc2_hsotg_tx_fifo_total_depth (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg Programming view of the DWC_otg controller
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_ga... |
dwc2_hsotg_txfifo_flush(9) | NAME dwc2_hsotg_txfifo_flush - flush Tx FIFO
SYNOPSIS void dwc2_hsotg_txfifo_flush (struct dwc2_hsotg *hsotg , unsigned int idx );
ARGUMENTS hsotg The driver state
idx The index for the endpoint (0..15)
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr_... |
dwc2_hsotg_udc_start(9) | NAME dwc2_hsotg_udc_start - prepare the udc for work
SYNOPSIS int dwc2_hsotg_udc_start (struct usb_gadget *gadget , struct usb_gadget_driver *driver );
ARGUMENTS gadget The usb gadget state
driver The usb gadget driver
DESCRIPTION Perform initialization to prepare udc device and driver to work.
SE... |
dwc2_hsotg_udc_stop(9) | NAME dwc2_hsotg_udc_stop - stop the udc
SYNOPSIS int dwc2_hsotg_udc_stop (struct usb_gadget *gadget );
ARGUMENTS gadget The usb gadget state
DESCRIPTION Stop udc hw block and stay tunned for future transmissions
SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr_frame_num(9), ... |
dwc2_hsotg_unmap_dma(9) | NAME dwc2_hsotg_unmap_dma - unmap the DMA memory being used for the request
SYNOPSIS void dwc2_hsotg_unmap_dma (struct dwc2_hsotg *hsotg , struct dwc2_hsotg_ep *hs_ep , struct dwc2_hsotg_req *hs_req );
ARGUMENTS hsotg The device state.
hs_ep The endpoint for the request
hs_req The req... |
dwc2_hsotg_vbus_draw(9) | NAME dwc2_hsotg_vbus_draw - report bMaxPower field
SYNOPSIS int dwc2_hsotg_vbus_draw (struct usb_gadget *gadget , unsigned int mA );
ARGUMENTS gadget The usb gadget state
mA Amount of current
DESCRIPTION Report how much power the device may consume to the phy.
SEE ALSO Kernel file ./driv... |
dwc2_hsotg_wait_bit_clear(9) | NAME dwc2_hsotg_wait_bit_clear - Waits for bit to be clear.
SYNOPSIS int dwc2_hsotg_wait_bit_clear (struct dwc2_hsotg *hsotg , u32 offset , u32 mask , u32 timeout );
ARGUMENTS hsotg Programming view of DWC_otg controller.
offset Register's offset where bit/bits must be set.
mask Mask... |
dwc2_hsotg_wait_bit_set(9) | NAME dwc2_hsotg_wait_bit_set - Waits for bit to be set.
SYNOPSIS int dwc2_hsotg_wait_bit_set (struct dwc2_hsotg *hsotg , u32 offset , u32 mask , u32 timeout );
ARGUMENTS hsotg Programming view of DWC_otg controller.
offset Register's offset where bit/bits must be set.
mask Mask of th... |
dwc2_hsotg_write_fifo(9) | NAME dwc2_hsotg_write_fifo - write packet Data to the TxFIFO
SYNOPSIS int dwc2_hsotg_write_fifo (struct dwc2_hsotg *hsotg , struct dwc2_hsotg_ep *hs_ep , struct dwc2_hsotg_req *hs_req );
ARGUMENTS hsotg The controller state.
hs_ep The endpoint we're going to write for.
hs_req The requ... |
dwc2_iddig_filter_enabled(9) | NAME dwc2_iddig_filter_enabled - Returns true if the IDDIG debounce filter is enabled.
SYNOPSIS bool dwc2_iddig_filter_enabled (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg Programming view of DWC_otg controller
SEE ALSO Kernel file ./drivers/usb/dwc2/core.c dwc2_backup_global_registers(9), dwc2_restore_glo... |
dwc2_lowlevel_hw_disable(9) | NAME dwc2_lowlevel_hw_disable - disable platform lowlevel hw resources
SYNOPSIS int dwc2_lowlevel_hw_disable (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg The driver state
DESCRIPTION A wrapper for platform code responsible for controlling low-level USB platform resources (phy, clock, regulators)
SEE ALSO Kern... |
dwc2_lowlevel_hw_enable(9) | NAME dwc2_lowlevel_hw_enable - enable platform lowlevel hw resources
SYNOPSIS int dwc2_lowlevel_hw_enable (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg The driver state
DESCRIPTION A wrapper for platform code responsible for controlling low-level USB platform resources (phy, clock, regulators)
SEE ALSO Kernel ... |
dwc2_ls_pmap_schedule(9) | NAME dwc2_ls_pmap_schedule - Schedule a low speed QH
SYNOPSIS int dwc2_ls_pmap_schedule (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh , int search_slice );
ARGUMENTS hsotg The HCD state structure for the DWC OTG controller.
qh QH for the periodic transfer.
search_slice
... |
dwc2_ls_pmap_unschedule(9) | NAME dwc2_ls_pmap_unschedule - Undo work done by dwc2_ls_pmap_schedule()
SYNOPSIS void dwc2_ls_pmap_unschedule (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh );
ARGUMENTS hsotg The HCD state structure for the DWC OTG controller.
qh QH for the periodic transfer.
SEE ALSO Kernel file ./drivers/... |
dwc2_next_for_periodic_split(9) | NAME dwc2_next_for_periodic_split - Set next_active_frame midway thru a split.
SYNOPSIS int dwc2_next_for_periodic_split (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh , u16 frame_number );
ARGUMENTS hsotg The HCD state structure
qh QH for the periodic transfer.
frame_number
... |
dwc2_next_periodic_start(9) | NAME dwc2_next_periodic_start - Set next_active_frame for next transfer start
SYNOPSIS int dwc2_next_periodic_start (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh , u16 frame_number );
ARGUMENTS hsotg The HCD state structure
qh QH for the periodic transfer.
frame_number
... |
dwc2_pci_remove(9) | NAME dwc2_pci_remove - Provides the cleanup entry points for the DWC_otg PCI driver
SYNOPSIS void dwc2_pci_remove (struct pci_dev *pci );
ARGUMENTS pci The programming view of DWC_otg PCI
SEE ALSO Kernel file ./drivers/usb/dwc2/pci.c
April 2026 ... |
dwc2_periodic_channel_available(9) | NAME dwc2_periodic_channel_available - Checks that a channel is available for a periodic transfer
SYNOPSIS int dwc2_periodic_channel_available (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg The HCD state structure for the DWC OTG controller
RETURN 0 if successful, negative error code otherwise
SEE ALSO Kernel ... |
dwc2_pick_first_frame(9) | NAME dwc2_pick_first_frame - Choose 1st frame for qh that's already scheduled
SYNOPSIS void dwc2_pick_first_frame (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh );
ARGUMENTS hsotg The HCD state structure for the DWC OTG controller
qh QH for a periodic endpoint
DESCRIPTION Takes a qh that h... |
dwc2_port_resume(9) | NAME dwc2_port_resume - Exit controller from suspend mode for host.
SYNOPSIS int dwc2_port_resume (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg Programming view of the DWC_otg controller
RETURN non-zero if failed to exit suspend mode for host.
DESCRIPTION This function is for exiting Host mode suspend. Must N... |
dwc2_port_suspend(9) | NAME dwc2_port_suspend - Put controller in suspend mode for host.
SYNOPSIS int dwc2_port_suspend (struct dwc2_hsotg *hsotg , u16 windex );
ARGUMENTS hsotg Programming view of the DWC_otg controller
windex The control request wIndex field
RETURN non-zero if failed to enter suspend mode for host.
D... |
dwc2_qh_init(9) | NAME dwc2_qh_init - Initializes a QH structure
SYNOPSIS void dwc2_qh_init (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh , struct dwc2_hcd_urb *urb , gfp_t mem_flags );
ARGUMENTS hsotg The HCD state structure for the DWC OTG controller
qh The QH to init
urb Holds the information... |
dwc2_qh_print(9) | NAME dwc2_qh_print - Helper function for dwc2_qh_schedule_print()
SYNOPSIS void dwc2_qh_print (const char *str , void *data );
ARGUMENTS str The string to print
data A pointer to a struct dwc2_qh_print_data
SEE ALSO Kernel file ./drivers/usb/dwc2/hcd_queue.c dwc2_periodic_channel_available(... |
dwc2_qh_schedule_print(9) | NAME dwc2_qh_schedule_print - Print the periodic schedule
SYNOPSIS void dwc2_qh_schedule_print (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh );
ARGUMENTS hsotg The HCD state structure for the DWC OTG controller.
qh QH to print.
SEE ALSO Kernel file ./drivers/usb/dwc2/hcd_queue.c dwc2_perio... |
dwc2_queue_transaction(9) | NAME dwc2_queue_transaction - Attempts to queue a single transaction request for a host channel associated with either a periodic or non-periodic transfer
SYNOPSIS int dwc2_queue_transaction (struct dwc2_hsotg *hsotg , struct dwc2_host_chan *chan , u16 fifo_dwords_avail );
ARGUMENTS hsotg The HCD state structur... |
dwc2_read_packet(9) | NAME dwc2_read_packet - Reads a packet from the Rx FIFO into the destination buffer
SYNOPSIS void dwc2_read_packet (struct dwc2_hsotg *hsotg , u8 *dest , u16 bytes );
ARGUMENTS hsotg Programming view of DWC_otg controller
dest Destination buffer for the packet
bytes Number of bytes ... |
dwc2_release_channel(9) | NAME dwc2_release_channel - Releases a host channel for use by other transfers
SYNOPSIS void dwc2_release_channel (struct dwc2_hsotg *hsotg , struct dwc2_host_chan *chan , struct dwc2_qtd *qtd , enum dwc2_halt_status halt_status );
ARGUMENTS hsotg The HCD state structure
chan The host channel to ... |
dwc2_restore_device_registers(9) | NAME dwc2_restore_device_registers - Restore controller device registers. When resuming usb bus, device registers needs to be restored if controller power were disabled.
SYNOPSIS int dwc2_restore_device_registers (struct dwc2_hsotg *hsotg , unsigned int flags );
ARGUMENTS hsotg Programming view of the DWC_otg c... |
dwc2_restore_essential_regs(9) | NAME dwc2_restore_essential_regs - Restore essiential regs of core.
SYNOPSIS void dwc2_restore_essential_regs (struct dwc2_hsotg *hsotg , int rmode , int is_host );
ARGUMENTS hsotg Programming view of the DWC_otg controller
rmode Restore mode, enabled in case of remote-wakeup.
is_host ... |
dwc2_restore_global_registers(9) | NAME dwc2_restore_global_registers - Restore controller global registers. When resuming usb bus, device registers needs to be restored if controller power were disabled.
SYNOPSIS int dwc2_restore_global_registers (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg Programming view of the DWC_otg controller
SEE ALSO K... |
dwc2_restore_host_registers(9) | NAME dwc2_restore_host_registers - Restore controller host registers. When resuming usb bus, device registers needs to be restored if controller power were disabled.
SYNOPSIS int dwc2_restore_host_registers (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg Programming view of the DWC_otg controller
SEE ALSO Kernel ... |
dwc2_schedule_periodic(9) | NAME dwc2_schedule_periodic - Schedules an interrupt or isochronous transfer in the periodic schedule
SYNOPSIS int dwc2_schedule_periodic (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh );
ARGUMENTS hsotg The HCD state structure for the DWC OTG controller
qh QH for the periodic transfer. The QH ... |
dwc2_set_default_params(9) | NAME dwc2_set_default_params - Set all core parameters to their auto-detected default values.
SYNOPSIS void dwc2_set_default_params (struct dwc2_hsotg *hsotg );
ARGUMENTS hsotg Programming view of the DWC_otg controller
SEE ALSO Kernel file ./drivers/usb/dwc2/params.c dwc2_get_device_properties(9), dwc2_get_hw... |
dwc2_uframe_schedule(9) | NAME dwc2_uframe_schedule - Schedule a QH for a periodic xfer.
SYNOPSIS int dwc2_uframe_schedule (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh );
ARGUMENTS hsotg The HCD state structure for the DWC OTG controller.
qh QH for the periodic transfer.
DESCRIPTION Calls one of the 3 sub-function de... |
dwc2_uframe_schedule_hs(9) | NAME dwc2_uframe_schedule_hs - Schedule a QH for a periodic high speed xfer.
SYNOPSIS int dwc2_uframe_schedule_hs (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh );
ARGUMENTS hsotg The HCD state structure for the DWC OTG controller.
qh QH for the periodic transfer.
DESCRIPTION Basically this ju... |
dwc2_uframe_schedule_ls(9) | NAME dwc2_uframe_schedule_ls - Schedule a QH for a periodic low/full speed xfer.
SYNOPSIS int dwc2_uframe_schedule_ls (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh );
ARGUMENTS hsotg The HCD state structure for the DWC OTG controller.
qh QH for the periodic transfer.
DESCRIPTION Basically thi... |
dwc2_uframe_schedule_split(9) | NAME dwc2_uframe_schedule_split - Schedule a QH for a periodic split xfer.
SYNOPSIS int dwc2_uframe_schedule_split (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh );
ARGUMENTS hsotg The HCD state structure for the DWC OTG controller.
qh QH for the periodic transfer.
DESCRIPTION This is the mos... |
dwc2_uframe_unschedule(9) | NAME dwc2_uframe_unschedule - Undoes dwc2_uframe_schedule().
SYNOPSIS void dwc2_uframe_unschedule (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh );
ARGUMENTS hsotg The HCD state structure for the DWC OTG controller.
qh QH for the periodic transfer.
SEE ALSO Kernel file ./drivers/usb/dwc2/hcd_... |
dwc2_unreserve_timer_fn(9) | NAME dwc2_unreserve_timer_fn - Timer function to release periodic reservation
SYNOPSIS void dwc2_unreserve_timer_fn (struct timer_list *t );
ARGUMENTS t Address to a qh unreserve_work.
DESCRIPTION According to the kernel doc for usb_submit_urb (specifically the part about "Reserved Bandwidth Transfers"),... |
dwc2_update_isoc_urb_state(9) | NAME dwc2_update_isoc_urb_state - Updates the state of an Isochronous URB when the transfer is stopped for any reason. The fields of the current entry in the frame descriptor array are set based on the transfer state and the input halt_status. Completes the Isochronous URB if all the URB frames have been completed.
... |
dwc2_update_urb_state(9) | NAME dwc2_update_urb_state - Updates the state of the URB after a Transfer Complete interrupt on the host channel. Updates the actual_length field of the URB based on the number of bytes transferred via the host channel. Sets the URB status if the data transfer is finished.
SYNOPSIS int dwc2_update_urb_state (struct ... |
dwc2_wait_for_mode(9) | NAME dwc2_wait_for_mode - Waits for the controller mode.
SYNOPSIS void dwc2_wait_for_mode (struct dwc2_hsotg *hsotg , bool host_mode );
ARGUMENTS hsotg Programming view of the DWC_otg controller.
host_mode If true, waits for host mode, otherwise device mode.
SEE ALSO Kernel file ./drivers/usb/dwc2/... |
dwc2_wait_timer_fn(9) | NAME dwc2_wait_timer_fn - Timer function to re-queue after waiting
SYNOPSIS enum hrtimer_restart dwc2_wait_timer_fn (struct hrtimer *t );
ARGUMENTS t Pointer to wait_timer in a qh.
DESCRIPTION As per the spec, a NAK indicates that "a function is temporarily unable to transmit or receive data, but will eve... |
dwc2_wakeup_from_lpm_l1(9) | NAME dwc2_wakeup_from_lpm_l1 - Exit the device from LPM L1 state
SYNOPSIS void dwc2_wakeup_from_lpm_l1 (struct dwc2_hsotg *hsotg , bool remotewakeup );
ARGUMENTS hsotg Programming view of DWC_otg controller
remotewakeup
-- undescribed --
SEE ALSO Kernel file ./drivers/usb/dwc2/core... |
dwc3_alloc_event_buffers(9) | NAME dwc3_alloc_event_buffers - Allocates @num event buffers of size @length
SYNOPSIS int dwc3_alloc_event_buffers (struct dwc3 *dwc , unsigned int length );
ARGUMENTS dwc pointer to our controller context structure
length size of event buffer
DESCRIPTION Returns 0 on success otherwise negative ... |
dwc3_alloc_one_event_buffer(9) | NAME dwc3_alloc_one_event_buffer - Allocates one event buffer structure
SYNOPSIS struct dwc3_event_buffer * dwc3_alloc_one_event_buffer (struct dwc3 *dwc , unsigned int length );
ARGUMENTS dwc Pointer to our controller context structure
length size of the event buffer
DESCRIPTION Returns a point... |
dwc3_core_exit(9) | NAME dwc3_core_exit - Shut down DWC3 core hardware
SYNOPSIS void dwc3_core_exit (struct dwc3 *dwc );
ARGUMENTS dwc Pointer to DWC3 controller context
DESCRIPTION Disables and cleans up the core hardware state. This is usually handled internally by dwc3 and must only be called when using skip_core_init_mo... |
dwc3_core_init(9) | NAME dwc3_core_init - Initialize DWC3 core hardware
SYNOPSIS int dwc3_core_init (struct dwc3 *dwc );
ARGUMENTS dwc Pointer to DWC3 controller context
DESCRIPTION Configures and initializes the core hardware, usually done by dwc3_core_probe. This function is provided for platforms that use skip_core_init_... |
dwc3_core_probe(9) | NAME dwc3_core_probe - Initialize the core dwc3 driver
SYNOPSIS int dwc3_core_probe (const struct dwc3_probe_data *data );
ARGUMENTS data Initialization and configuration parameters for the controller
DESCRIPTION Initializes the DesignWare USB3 core driver by setting up resources, registering interrupts, perf... |
dwc3_core_remove(9) | NAME dwc3_core_remove - Deinitialize and remove the core dwc3 driver
SYNOPSIS void dwc3_core_remove (struct dwc3 *dwc );
ARGUMENTS dwc Pointer to DWC3 controller context
DESCRIPTION Cleans up resources and disables the dwc3 core driver. This should be called during driver removal or when the glue layer needs... |
dwc3_core_soft_reset(9) | NAME dwc3_core_soft_reset - Issues core soft reset and PHY reset
SYNOPSIS int dwc3_core_soft_reset (struct dwc3 *dwc );
ARGUMENTS dwc pointer to our context structure
SEE ALSO Kernel file ./drivers/usb/dwc3/core.c dwc3_get_dr_mode(9), dwc3_ref_clk_period(9), dwc3_free_one_event_buffer(9), dwc3... |
dwc3_enable_susphy(9) | NAME dwc3_enable_susphy - Control SUSPHY status for all USB ports
SYNOPSIS void dwc3_enable_susphy (struct dwc3 *dwc , bool enable );
ARGUMENTS dwc Pointer to DWC3 controller context
enable True to enable SUSPHY, false to disable
DESCRIPTION Enables or disables the USB3 PHY SUSPEND and USB2... |
dwc3_ep_event_string(9) | NAME dwc3_ep_event_string - returns event name
SYNOPSIS const char * dwc3_ep_event_string (char *str , size_t size , const struct dwc3_event_depevt *event , u32 ep0state );
ARGUMENTS str -- undescribed --
size -- undescribed --
event then event code
ep0state -- undescri... |
dwc3_ep_inc_deq(9) | NAME dwc3_ep_inc_deq - increment endpoint's dequeue pointer
SYNOPSIS void dwc3_ep_inc_deq (struct dwc3_ep *dep );
ARGUMENTS dep The endpoint whose enqueue pointer we're incrementing
SEE ALSO Kernel file ./drivers/usb/dwc3/gadget.c dwc3_gadget_set_test_mode(9), dwc3_gadget_get_link_state(9), dwc3_gadget... |
dwc3_ep_inc_enq(9) | NAME dwc3_ep_inc_enq - increment endpoint's enqueue pointer
SYNOPSIS void dwc3_ep_inc_enq (struct dwc3_ep *dep );
ARGUMENTS dep The endpoint whose enqueue pointer we're incrementing
SEE ALSO Kernel file ./drivers/usb/dwc3/gadget.c dwc3_gadget_set_test_mode(9), dwc3_gadget_get_link_state(9), dwc3_gadget... |
dwc3_ep_inc_trb(9) | NAME dwc3_ep_inc_trb - increment a trb index.
SYNOPSIS void dwc3_ep_inc_trb (u8 *index );
ARGUMENTS index Pointer to the TRB index to increment.
DESCRIPTION The index should never point to the link TRB. After incrementing, if it is point to the link TRB, wrap around to the beginning. The link TRB is always at ... |
dwc3_ep_prev_trb(9) | NAME dwc3_ep_prev_trb - returns the previous TRB in the ring
SYNOPSIS struct dwc3_trb * dwc3_ep_prev_trb (struct dwc3_ep *dep , u8 index );
ARGUMENTS dep The endpoint with the TRB ring
index The index of the current TRB in the ring
DESCRIPTION Returns the TRB prior to the one pointed to by the ... |
dwc3_event_buffers_setup(9) | NAME dwc3_event_buffers_setup - setup our allocated event buffers
SYNOPSIS int dwc3_event_buffers_setup (struct dwc3 *dwc );
ARGUMENTS dwc pointer to our controller context structure
DESCRIPTION Returns 0 on success otherwise negative errno.
SEE ALSO Kernel file ./drivers/usb/dwc3/core.c dwc3_get_dr_mode... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.