id
stringlengths
4
63
text
stringlengths
153
8.81M
dwc2_calc_frame_interval(9)
NAME dwc2_calc_frame_interval - Calculates the correct frame Interval value for the HFIR register according to PHY type and speed SYNOPSIS u32 dwc2_calc_frame_interval (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller NOTE The caller can modify the value of the HFIR register o...
dwc2_check_core_endianness(9)
NAME dwc2_check_core_endianness - Returns true if core and AHB have opposite endianness. SYNOPSIS bool dwc2_check_core_endianness (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of the DWC_otg controller. SEE ALSO Kernel file ./drivers/usb/dwc2/platform.c dwc2_lowlevel_hw_enable(9), dwc2_lowlevel...
dwc2_check_core_version(9)
NAME dwc2_check_core_version - Check core version SYNOPSIS int dwc2_check_core_version (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of the DWC_otg controller SEE ALSO Kernel file ./drivers/usb/dwc2/platform.c dwc2_lowlevel_hw_enable(9), dwc2_lowlevel_hw_disable(9), dwc2_driver_remove(9), dwc2_...
dwc2_check_max_xfer_size(9)
NAME dwc2_check_max_xfer_size - Checks that the max transfer size allowed in a host channel is large enough to handle the maximum data transfer in a single (micro)frame for a periodic transfer SYNOPSIS int dwc2_check_max_xfer_size (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh ); ARGUMENTS hsotg The HCD state s...
dwc2_check_periodic_bandwidth(9)
NAME dwc2_check_periodic_bandwidth - Checks that there is sufficient bandwidth for the specified QH in the periodic schedule SYNOPSIS int dwc2_check_periodic_bandwidth (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh ); ARGUMENTS hsotg The HCD state structure for the DWC OTG controller qh QH cont...
dwc2_clear_force_mode(9)
NAME dwc2_clear_force_mode - Clears the force mode bits. SYNOPSIS void dwc2_clear_force_mode (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller DESCRIPTION After clearing the bits, wait up to 100 ms to account for any potential IDDIG filter delay. We can't know if we expect ...
dwc2_core_host_init(9)
NAME dwc2_core_host_init - Initializes the DWC_otg controller registers for Host mode SYNOPSIS void dwc2_core_host_init (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller DESCRIPTION This function flushes the Tx and Rx FIFOs and flushes any entries in the request queues. Host c...
dwc2_core_init(9)
NAME dwc2_core_init - Initializes the DWC_otg controller registers and prepares the core for device mode or host mode operation SYNOPSIS int dwc2_core_init (struct dwc2_hsotg *hsotg , bool initial_setup ); ARGUMENTS hsotg Programming view of the DWC_otg controller initial_setup If tru...
dwc2_deschedule_periodic(9)
NAME dwc2_deschedule_periodic - Removes an interrupt or isochronous transfer from the periodic schedule SYNOPSIS void dwc2_deschedule_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 SE...
dwc2_disable_global_interrupts(9)
NAME dwc2_disable_global_interrupts - Disables the controller's Global Interrupt in the AHB Config register SYNOPSIS void dwc2_disable_global_interrupts (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller SEE ALSO Kernel file ./drivers/usb/dwc2/core.c dwc2_backup_global_regis...
dwc2_disable_host_interrupts(9)
NAME dwc2_disable_host_interrupts - Disables the Host Mode interrupts SYNOPSIS void dwc2_disable_host_interrupts (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller SEE ALSO Kernel file ./drivers/usb/dwc2/hcd.c dwc2_enable_common_interrupts(9), dwc2_enable_host_interrupts(9)...
dwc2_do_reserve(9)
NAME dwc2_do_reserve - Make a periodic reservation SYNOPSIS int dwc2_do_reserve (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 Try to allocate space in the periodic schedule. Dep...
dwc2_do_unreserve(9)
NAME dwc2_do_unreserve - Actually release the periodic reservation SYNOPSIS void dwc2_do_unreserve (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 function actually releases t...
dwc2_driver_probe(9)
NAME dwc2_driver_probe - Called when the DWC_otg core is bound to the DWC_otg driver SYNOPSIS int dwc2_driver_probe (struct platform_device *dev ); ARGUMENTS dev Platform device DESCRIPTION This routine creates the driver components required to control the device (core, HCD, and PCD) and initializes the devi...
dwc2_driver_remove(9)
NAME dwc2_driver_remove - Called when the DWC_otg core is unregistered with the DWC_otg driver SYNOPSIS void dwc2_driver_remove (struct platform_device *dev ); ARGUMENTS dev Platform device DESCRIPTION This routine is called, for example, when the rmmod command is executed. The device may or may not be elect...
dwc2_driver_shutdown(9)
NAME dwc2_driver_shutdown - Called on device shutdown SYNOPSIS void dwc2_driver_shutdown (struct platform_device *dev ); ARGUMENTS dev Platform device DESCRIPTION In specific conditions (involving usb hubs) dwc2 devices can create a lot of interrupts, even to the point of overwhelming devices running at l...
dwc2_dump_channel_info(9)
NAME dwc2_dump_channel_info - Prints the state of a host channel SYNOPSIS void dwc2_dump_channel_info (struct dwc2_hsotg *hsotg , struct dwc2_host_chan *chan ); ARGUMENTS hsotg Programming view of DWC_otg controller chan Pointer to the channel to dump DESCRIPTION Must be called with interrupt di...
dwc2_dump_global_registers(9)
NAME dwc2_dump_global_registers - Prints the core global registers SYNOPSIS void dwc2_dump_global_registers (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller NOTE This function will be removed once the peripheral controller code is integrated and the driver is stable SEE ALSO...
dwc2_dump_host_registers(9)
NAME dwc2_dump_host_registers - Prints the host registers SYNOPSIS void dwc2_dump_host_registers (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller NOTE This function will be removed once the peripheral controller code is integrated and the driver is stable SEE ALSO Kernel fi...
dwc2_enable_common_interrupts(9)
NAME dwc2_enable_common_interrupts - Initializes the commmon interrupts, used in both device and host modes SYNOPSIS void dwc2_enable_common_interrupts (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of the DWC_otg controller SEE ALSO Kernel file ./drivers/usb/dwc2/hcd.c dwc2_enable_host_inter...
dwc2_enable_global_interrupts(9)
NAME dwc2_enable_global_interrupts - Enables the controller's Global Interrupt in the AHB Config register SYNOPSIS void dwc2_enable_global_interrupts (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller SEE ALSO Kernel file ./drivers/usb/dwc2/core.c dwc2_backup_global_register...
dwc2_enable_host_interrupts(9)
NAME dwc2_enable_host_interrupts - Enables the Host mode interrupts SYNOPSIS void dwc2_enable_host_interrupts (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller SEE ALSO Kernel file ./drivers/usb/dwc2/hcd.c dwc2_enable_common_interrupts(9), dwc2_disable_host_interrupts(9), ...
dwc2_enter_partial_power_down(9)
NAME dwc2_enter_partial_power_down - Put controller in Partial Power Down. SYNOPSIS int dwc2_enter_partial_power_down (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of the DWC_otg controller SEE ALSO Kernel file ./drivers/usb/dwc2/core.c dwc2_backup_global_registers(9), dwc2_restore_global_regi...
dwc2_exit_partial_power_down(9)
NAME dwc2_exit_partial_power_down - Exit controller from Partial Power Down. SYNOPSIS int dwc2_exit_partial_power_down (struct dwc2_hsotg *hsotg , int rem_wakeup , bool restore ); ARGUMENTS hsotg Programming view of the DWC_otg controller rem_wakeup indicates whether resume is initiated by Reset. ...
dwc2_flush_rx_fifo(9)
NAME dwc2_flush_rx_fifo - Flushes the Rx FIFO SYNOPSIS void dwc2_flush_rx_fifo (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_global_registers(9), dwc2_exit_partial_power_down(...
dwc2_flush_tx_fifo(9)
NAME dwc2_flush_tx_fifo - Flushes a Tx FIFO SYNOPSIS void dwc2_flush_tx_fifo (struct dwc2_hsotg *hsotg , const int num ); ARGUMENTS hsotg Programming view of DWC_otg controller num Tx FIFO to flush SEE ALSO Kernel file ./drivers/usb/dwc2/core.c dwc2_backup_global_registers(9), dwc2_restore_...
dwc2_force_mode(9)
NAME dwc2_force_mode - Force the mode of the controller. SYNOPSIS void dwc2_force_mode (struct dwc2_hsotg *hsotg , bool host ); ARGUMENTS hsotg Programming view of DWC_otg controller host Host mode flag DESCRIPTION Forcing the mode is needed for two cases: 1) If the dr_mode is set to either HOST...
dwc2_gadget_dec_frame_num_by_one(9)
NAME dwc2_gadget_dec_frame_num_by_one - Decrements the targeted frame number by one. SYNOPSIS void dwc2_gadget_dec_frame_num_by_one (struct dwc2_hsotg_ep *hs_ep ); ARGUMENTS hs_ep The endpoint. DESCRIPTION This function used in service interval based scheduling flow to calculate descriptor frame number filed v...
dwc2_gadget_enter_clock_gating(9)
NAME dwc2_gadget_enter_clock_gating - Put controller in clock gating. SYNOPSIS void dwc2_gadget_enter_clock_gating (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of the DWC_otg controller RETURN non-zero if failed to enter device partial power down. DESCRIPTION This function is for entering dev...
dwc2_gadget_enter_hibernation(9)
NAME dwc2_gadget_enter_hibernation - Put controller in Hibernation. SYNOPSIS int dwc2_gadget_enter_hibernation (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of the DWC_otg controller DESCRIPTION Return non-zero if failed to enter to hibernation. SEE ALSO Kernel file ./drivers/usb/dwc2/gadget...
dwc2_gadget_enter_partial_power_down(9)
NAME dwc2_gadget_enter_partial_power_down - Put controller in partial power down. SYNOPSIS int dwc2_gadget_enter_partial_power_down (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of the DWC_otg controller RETURN non-zero if failed to enter device partial power down. DESCRIPTION This function is...
dwc2_gadget_ep_set_wedge(9)
NAME dwc2_gadget_ep_set_wedge - set wedge on a given endpoint SYNOPSIS int dwc2_gadget_ep_set_wedge (struct usb_ep *ep ); ARGUMENTS ep The endpoint to be wedged. 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_gadget_exit_hibernation(9)
NAME dwc2_gadget_exit_hibernation - SYNOPSIS int dwc2_gadget_exit_hibernation (struct dwc2_hsotg *hsotg , int rem_wakeup , int reset ); ARGUMENTS hsotg Programming view of the DWC_otg controller rem_wakeup indicates whether resume is initiated by Device or Host. reset indicates whether re...
dwc2_gadget_get_chain_limit(9)
NAME dwc2_gadget_get_chain_limit - get the maximum data payload value of the DMA descriptor chain prepared for specific endpoint SYNOPSIS unsigned int dwc2_gadget_get_chain_limit (struct dwc2_hsotg_ep *hs_ep ); ARGUMENTS hs_ep The endpoint DESCRIPTION Return the maximum data that can be queued in one go on a g...
dwc2_gadget_handle_ep_disabled(9)
NAME dwc2_gadget_handle_ep_disabled - handle DXEPINT_EPDISBLD SYNOPSIS void dwc2_gadget_handle_ep_disabled (struct dwc2_hsotg_ep *hs_ep ); ARGUMENTS hs_ep The endpoint on which interrupt is asserted. DESCRIPTION This interrupt indicates that the endpoint has been disabled per the application's request. For IN...
dwc2_gadget_handle_incomplete_isoc_in(9)
NAME dwc2_gadget_handle_incomplete_isoc_in - handle incomplete ISO IN Interrupt. SYNOPSIS void dwc2_gadget_handle_incomplete_isoc_in (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg The device state: DESCRIPTION This interrupt indicates one of the following conditions occurred while transmitting an ISOC transact...
dwc2_gadget_handle_incomplete_isoc_out(9)
NAME dwc2_gadget_handle_incomplete_isoc_out - handle incomplete ISO OUT Interrupt SYNOPSIS void dwc2_gadget_handle_incomplete_isoc_out (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg The device state: DESCRIPTION This interrupt indicates one of the following conditions occurred while transmitting an ISOC transac...
dwc2_gadget_handle_nak(9)
NAME dwc2_gadget_handle_nak - handle NAK interrupt SYNOPSIS void dwc2_gadget_handle_nak (struct dwc2_hsotg_ep *hs_ep ); ARGUMENTS hs_ep The endpoint on which interrupt is asserted. DESCRIPTION This is starting point for ISOC-IN transfer, synchronization done with first IN token received from host while corresp...
dwc2_gadget_handle_out_token_ep_disabled(9)
NAME dwc2_gadget_handle_out_token_ep_disabled - handle DXEPINT_OUTTKNEPDIS SYNOPSIS void dwc2_gadget_handle_out_token_ep_disabled (struct dwc2_hsotg_ep *ep ); ARGUMENTS ep The endpoint on which interrupt is asserted. DESCRIPTION This is starting point for ISOC-OUT transfer, synchronization done with first ...
dwc2_gadget_incr_frame_num(9)
NAME dwc2_gadget_incr_frame_num - Increments the targeted frame number. SYNOPSIS void dwc2_gadget_incr_frame_num (struct dwc2_hsotg_ep *hs_ep ); ARGUMENTS hs_ep The endpoint DESCRIPTION This function will also check if the frame number overruns DSTS_SOFFN_LIMIT. If an overrun occurs it will wrap the value and...
dwc2_gadget_init(9)
NAME dwc2_gadget_init - init function for gadget SYNOPSIS int dwc2_gadget_init (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_gadget_init_lpm(9)
NAME dwc2_gadget_init_lpm - Configure the core to support LPM in device mode SYNOPSIS void dwc2_gadget_init_lpm (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr_frame_num(9), dwc2_g...
dwc2_gadget_program_ref_clk(9)
NAME dwc2_gadget_program_ref_clk - Program GREFCLK register in device mode SYNOPSIS void dwc2_gadget_program_ref_clk (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller SEE ALSO Kernel file ./drivers/usb/dwc2/gadget.c using_dma(9), dwc2_gadget_incr_frame_num(9), d...
dwc2_gadget_read_ep_interrupts(9)
NAME dwc2_gadget_read_ep_interrupts - reads interrupts for given ep SYNOPSIS u32 dwc2_gadget_read_ep_interrupts (struct dwc2_hsotg *hsotg , unsigned int idx , int dir_in ); ARGUMENTS hsotg The device state. idx Index of ep. dir_in Endpoint direction 1-in 0-out. DESCRIPTION Reads fo...
dwc2_gadget_start_next_request(9)
NAME dwc2_gadget_start_next_request - Starts next request from ep queue SYNOPSIS void dwc2_gadget_start_next_request (struct dwc2_hsotg_ep *hs_ep ); ARGUMENTS hs_ep Endpoint structure DESCRIPTION If queue is empty and EP is ISOC-OUT - unmasks OUTTKNEPDIS which is masked in its handler. Hence we need to unmask ...
dwc2_gadget_target_frame_elapsed(9)
NAME dwc2_gadget_target_frame_elapsed - Checks target frame SYNOPSIS bool dwc2_gadget_target_frame_elapsed (struct dwc2_hsotg_ep *hs_ep ); ARGUMENTS hs_ep The driver endpoint to check DESCRIPTION Returns 1 if targeted frame elapsed. If returned 1 then we need to drop corresponding transfer. SEE ALSO Kernel ...
dwc2_gadget_wkup_alert_handler(9)
NAME dwc2_gadget_wkup_alert_handler - Handler for WKUP_ALERT interrupt SYNOPSIS void dwc2_gadget_wkup_alert_handler (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_get_device_properties(9)
NAME dwc2_get_device_properties - Read in device properties. SYNOPSIS void dwc2_get_device_properties (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of the DWC_otg controller DESCRIPTION Read in the device properties and adjust core parameters if needed. SEE ALSO Kernel file ./drivers/usb/dwc2/...
dwc2_get_hwparams(9)
NAME dwc2_get_hwparams - During device initialization, read various hardware configuration registers and interpret the contents. SYNOPSIS int dwc2_get_hwparams (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of the DWC_otg controller SEE ALSO Kernel file ./drivers/usb/dwc2/params.c dwc2_set_defau...
dwc2_get_ls_map(9)
NAME dwc2_get_ls_map - Get the map used for the given qh SYNOPSIS unsigned long * dwc2_get_ls_map (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 We'll always get the periodic m...
dwc2_handle_conn_id_status_change_intr(9)
NAME dwc2_handle_conn_id_status_change_intr - Handles the Connector ID Status Change Interrupt SYNOPSIS void dwc2_handle_conn_id_status_change_intr (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller DESCRIPTION Reads the OTG Interrupt Register (GOTCTL) to determine whether this...
dwc2_handle_hcd_intr(9)
NAME dwc2_handle_hcd_intr - Called on every hardware interrupt SYNOPSIS irqreturn_t dwc2_handle_hcd_intr (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg The DWC2 HCD DESCRIPTION Returns IRQ_HANDLED if interrupt is handled Return IRQ_NONE if interrupt is not handled SEE ALSO Kernel file ./drivers/usb/dwc2/hcd.h s...
dwc2_handle_lpm_intr(9)
NAME dwc2_handle_lpm_intr - GINTSTS_LPMTRANRCVD Interrupt handler SYNOPSIS void dwc2_handle_lpm_intr (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller SEE ALSO Kernel file ./drivers/usb/dwc2/core_intr.c dwc2_handle_usb_port_intr(9), dwc2_handle_mode_mismatch_intr(9), ...
dwc2_handle_mode_mismatch_intr(9)
NAME dwc2_handle_mode_mismatch_intr - Logs a mode mismatch warning message SYNOPSIS void dwc2_handle_mode_mismatch_intr (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller SEE ALSO Kernel file ./drivers/usb/dwc2/core_intr.c dwc2_handle_usb_port_intr(9), dwc2_handle_otg_int...
dwc2_handle_otg_intr(9)
NAME dwc2_handle_otg_intr - Handles the OTG Interrupts. It reads the OTG Interrupt Register (GOTGINT) to determine what interrupt has occurred. SYNOPSIS void dwc2_handle_otg_intr (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller SEE ALSO Kernel file ./drivers/usb/dwc2/core_int...
dwc2_handle_session_req_intr(9)
NAME dwc2_handle_session_req_intr - This interrupt indicates that a device is initiating the Session Request Protocol to request the host to turn on bus power so a new session can begin SYNOPSIS void dwc2_handle_session_req_intr (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller...
dwc2_handle_usb_port_intr(9)
NAME dwc2_handle_usb_port_intr - handles OTG PRTINT interrupts. When the PRTINT interrupt fires, there are certain status bits in the Host Port that needs to get cleared. SYNOPSIS void dwc2_handle_usb_port_intr (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of DWC_otg controller SEE ALSO Kernel ...
dwc2_hc_cleanup(9)
NAME dwc2_hc_cleanup - Clears the transfer state for a host channel SYNOPSIS void dwc2_hc_cleanup (struct dwc2_hsotg *hsotg , struct dwc2_host_chan *chan ); ARGUMENTS hsotg Programming view of DWC_otg controller chan Identifies the host channel to clean up DESCRIPTION This function is normally c...
dwc2_hc_continue_transfer(9)
NAME dwc2_hc_continue_transfer - Continues a data transfer that was started by a previous call to dwc2_hc_start_transfer() SYNOPSIS int dwc2_hc_continue_transfer (struct dwc2_hsotg *hsotg , struct dwc2_host_chan *chan ); ARGUMENTS hsotg Programming view of DWC_otg controller chan Information need...
dwc2_hc_do_ping(9)
NAME dwc2_hc_do_ping - Starts a PING transfer SYNOPSIS void dwc2_hc_do_ping (struct dwc2_hsotg *hsotg , struct dwc2_host_chan *chan ); ARGUMENTS hsotg Programming view of DWC_otg controller chan Information needed to initialize the host channel DESCRIPTION This function should only be called in ...
dwc2_hc_halt(9)
NAME dwc2_hc_halt - Attempts to halt a host channel SYNOPSIS void dwc2_hc_halt (struct dwc2_hsotg *hsotg , struct dwc2_host_chan *chan , enum dwc2_halt_status halt_status ); ARGUMENTS hsotg Controller register interface chan Host channel to halt halt_status Reason for halting the channel ...
dwc2_hc_init(9)
NAME dwc2_hc_init - Prepares a host channel for transferring packets to/from a specific endpoint SYNOPSIS void dwc2_hc_init (struct dwc2_hsotg *hsotg , struct dwc2_host_chan *chan ); ARGUMENTS hsotg Programming view of DWC_otg controller chan Information needed to initialize the host channel DES...
dwc2_hc_set_even_odd_frame(9)
NAME dwc2_hc_set_even_odd_frame - Sets the channel property that indicates in which frame a periodic transfer should occur SYNOPSIS void dwc2_hc_set_even_odd_frame (struct dwc2_hsotg *hsotg , struct dwc2_host_chan *chan , u32 *hcchar ); ARGUMENTS hsotg Programming view of DWC_otg controller chan ...
dwc2_hc_start_transfer(9)
NAME dwc2_hc_start_transfer - Does the setup for a data transfer for a host channel and starts the transfer SYNOPSIS void dwc2_hc_start_transfer (struct dwc2_hsotg *hsotg , struct dwc2_host_chan *chan ); ARGUMENTS hsotg Programming view of DWC_otg controller chan Information needed to initiali...
dwc2_hc_start_transfer_ddma(9)
NAME dwc2_hc_start_transfer_ddma - Does the setup for a data transfer for a host channel and starts the transfer in Descriptor DMA mode SYNOPSIS void dwc2_hc_start_transfer_ddma (struct dwc2_hsotg *hsotg , struct dwc2_host_chan *chan ); ARGUMENTS hsotg Programming view of DWC_otg controller chan ...
dwc2_hc_write_packet(9)
NAME dwc2_hc_write_packet - Writes a packet into the Tx FIFO associated with the Host Channel SYNOPSIS void dwc2_hc_write_packet (struct dwc2_hsotg *hsotg , struct dwc2_host_chan *chan ); ARGUMENTS hsotg Programming view of DWC_otg controller chan Information needed to initialize the host channel...
dwc2_hcd_complete_xfer_ddma(9)
NAME dwc2_hcd_complete_xfer_ddma - Scans the descriptor list, updates URB's status and calls completion routine for the URB if it's done. Called from interrupt handlers. SYNOPSIS void dwc2_hcd_complete_xfer_ddma (struct dwc2_hsotg *hsotg , struct dwc2_host_chan *chan , int chnum , enum dwc2_halt_status halt_status ); ...
dwc2_hcd_connect(9)
NAME dwc2_hcd_connect - Handles connect of the HCD SYNOPSIS void dwc2_hcd_connect (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Pointer to struct dwc2_hsotg DESCRIPTION Must be called with interrupt disabled and spinlock held SEE ALSO Kernel file ./drivers/usb/dwc2/hcd.c dwc2_enable_common_interrupts(9), ...
dwc2_hcd_disconnect(9)
NAME dwc2_hcd_disconnect - Handles disconnect of the HCD SYNOPSIS void dwc2_hcd_disconnect (struct dwc2_hsotg *hsotg , bool force ); ARGUMENTS hsotg Pointer to struct dwc2_hsotg force If true, we won't try to reconnect even if we see device connected. DESCRIPTION Must be called with interrupt dis...
dwc2_hcd_dump_state(9)
NAME dwc2_hcd_dump_state - Dumps hsotg state SYNOPSIS void dwc2_hcd_dump_state (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg The DWC2 HCD NOTE This function will be removed once the peripheral controller code is integrated and the driver is stable SEE ALSO Kernel file ./drivers/usb/dwc2/hcd.h struct dwc2_host_...
dwc2_hcd_is_b_host(9)
NAME dwc2_hcd_is_b_host - Returns 1 if core currently is acting as B host, and 0 otherwise SYNOPSIS int dwc2_hcd_is_b_host (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg The DWC2 HCD SEE ALSO Kernel file ./drivers/usb/dwc2/hcd.h struct dwc2_host_chan(9), struct dwc2_tt(9), struct dwc2_hs_transfer_time(9), struct...
dwc2_hcd_qh_add(9)
NAME dwc2_hcd_qh_add - Adds a QH to either the non periodic or periodic schedule if it is not already in the schedule. If the QH is already in the schedule, no action is taken. SYNOPSIS int dwc2_hcd_qh_add (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh ); ARGUMENTS hsotg The HCD state structure for the DWC OTG ...
dwc2_hcd_qh_create(9)
NAME dwc2_hcd_qh_create - Allocates and initializes a QH SYNOPSIS struct dwc2_qh * dwc2_hcd_qh_create (struct dwc2_hsotg *hsotg , struct dwc2_hcd_urb *urb , gfp_t mem_flags ); ARGUMENTS hsotg The HCD state structure for the DWC OTG controller urb Holds the information about the device/endpoint n...
dwc2_hcd_qh_free(9)
NAME dwc2_hcd_qh_free - Frees the QH SYNOPSIS void dwc2_hcd_qh_free (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh ); ARGUMENTS hsotg HCD instance qh The QH to free DESCRIPTION QH should already be removed from the list. QTD list should already be empty if called from URB Dequeue. Must NOT be...
dwc2_hcd_qh_free_ddma(9)
NAME dwc2_hcd_qh_free_ddma - Frees a QH structure's Descriptor DMA related members SYNOPSIS void dwc2_hcd_qh_free_ddma (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh ); ARGUMENTS hsotg The HCD state structure for the DWC OTG controller qh The QH to free DESCRIPTION Frees descriptor list memory...
dwc2_hcd_qh_init_ddma(9)
NAME dwc2_hcd_qh_init_ddma - Initializes a QH structure's Descriptor DMA related members SYNOPSIS int dwc2_hcd_qh_init_ddma (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh , gfp_t mem_flags ); ARGUMENTS hsotg The HCD state structure for the DWC OTG controller qh The QH to init mem_flags ...
dwc2_hcd_qh_unlink(9)
NAME dwc2_hcd_qh_unlink - Removes a QH from either the non-periodic or periodic schedule. Memory is not freed. SYNOPSIS void dwc2_hcd_qh_unlink (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh ); ARGUMENTS hsotg The HCD state structure qh QH to remove from schedule SEE ALSO Kernel file ./drive...
dwc2_hcd_qtd_add(9)
NAME dwc2_hcd_qtd_add - Adds a QTD to the QTD-list of a QH Caller must hold driver lock. SYNOPSIS int dwc2_hcd_qtd_add (struct dwc2_hsotg *hsotg , struct dwc2_qtd *qtd , struct dwc2_qh *qh ); ARGUMENTS hsotg The DWC HCD structure qtd The QTD to add qh Queue head to add qtd to R...
dwc2_hcd_qtd_init(9)
NAME dwc2_hcd_qtd_init - Initializes a QTD structure SYNOPSIS void dwc2_hcd_qtd_init (struct dwc2_qtd *qtd , struct dwc2_hcd_urb *urb ); ARGUMENTS qtd The QTD to initialize urb The associated URB SEE ALSO Kernel file ./drivers/usb/dwc2/hcd_queue.c dwc2_periodic_channel_available(9), dwc2_...
dwc2_hcd_queue_transactions(9)
NAME dwc2_hcd_queue_transactions - Processes the currently active host channels and queues transactions for these channels to the DWC_otg controller. Called from the HCD interrupt handler functions. SYNOPSIS void dwc2_hcd_queue_transactions (struct dwc2_hsotg *hsotg , enum dwc2_transaction_type tr_type ); ARGUMENTS h...
dwc2_hcd_rem_wakeup(9)
NAME dwc2_hcd_rem_wakeup - Handles Remote Wakeup SYNOPSIS void dwc2_hcd_rem_wakeup (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Pointer to struct dwc2_hsotg SEE ALSO Kernel file ./drivers/usb/dwc2/hcd.c dwc2_enable_common_interrupts(9), dwc2_enable_host_interrupts(9), dwc2_disable_host_interrupts(9), dw...
dwc2_hcd_select_transactions(9)
NAME dwc2_hcd_select_transactions - Selects transactions from the HCD transfer schedule and assigns them to available host channels. Called from the HCD interrupt handler functions. SYNOPSIS enum dwc2_transaction_type dwc2_hcd_select_transactions (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg The HCD state struct...
dwc2_hcd_start(9)
NAME dwc2_hcd_start - Starts the HCD when switching to Host mode SYNOPSIS void dwc2_hcd_start (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Pointer to struct dwc2_hsotg SEE ALSO Kernel file ./drivers/usb/dwc2/hcd.c dwc2_enable_common_interrupts(9), dwc2_enable_host_interrupts(9), dwc2_disable_host_interru...
dwc2_hcd_start_xfer_ddma(9)
NAME dwc2_hcd_start_xfer_ddma - Starts a transfer in Descriptor DMA mode SYNOPSIS void dwc2_hcd_start_xfer_ddma (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh ); ARGUMENTS hsotg The HCD state structure for the DWC OTG controller qh The QH to init RETURN 0 if successful, negative error code oth...
dwc2_hcd_stop(9)
NAME dwc2_hcd_stop - Halts the DWC_otg host mode operation SYNOPSIS void dwc2_hcd_stop (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg The DWC2 HCD SEE ALSO Kernel file ./drivers/usb/dwc2/hcd.h struct dwc2_host_chan(9), struct dwc2_tt(9), struct dwc2_hs_transfer_time(9), struct dwc2_qh(9), struct...
dwc2_hib_restore_common(9)
NAME dwc2_hib_restore_common - Common part of restore routine. SYNOPSIS void dwc2_hib_restore_common (struct dwc2_hsotg *hsotg , int rem_wakeup , int is_host ); ARGUMENTS hsotg Programming view of the DWC_otg controller rem_wakeup Remote-wakeup, enabled in case of remote-wakeup. is_host Hos...
dwc2_host_enter_clock_gating(9)
NAME dwc2_host_enter_clock_gating - Put controller in clock gating. SYNOPSIS void dwc2_host_enter_clock_gating (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of the DWC_otg controller DESCRIPTION This function is for entering Host mode clock gating. SEE ALSO Kernel file ./drivers/usb/dwc2/hc...
dwc2_host_enter_hibernation(9)
NAME dwc2_host_enter_hibernation - Put controller in Hibernation. SYNOPSIS int dwc2_host_enter_hibernation (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of the DWC_otg controller SEE ALSO Kernel file ./drivers/usb/dwc2/hcd.c dwc2_enable_common_interrupts(9), dwc2_enable_host_interrupts(9),...
dwc2_host_enter_partial_power_down(9)
NAME dwc2_host_enter_partial_power_down - Put controller in partial power down. SYNOPSIS int dwc2_host_enter_partial_power_down (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg Programming view of the DWC_otg controller RETURN non-zero if failed to enter host partial power down. DESCRIPTION This function is for e...
dwc2_host_exit_clock_gating(9)
NAME dwc2_host_exit_clock_gating - Exit controller from clock gating. SYNOPSIS void dwc2_host_exit_clock_gating (struct dwc2_hsotg *hsotg , int rem_wakeup ); ARGUMENTS hsotg Programming view of the DWC_otg controller rem_wakeup indicates whether resume is initiated by remote wakeup DESCRIPTION This fu...
dwc2_host_get_tt_info(9)
NAME dwc2_host_get_tt_info - Get the dwc2_tt associated with context SYNOPSIS struct dwc2_tt * dwc2_host_get_tt_info (struct dwc2_hsotg *hsotg , void *context , gfp_t mem_flags , int *ttport ); ARGUMENTS hsotg The HCD state structure for the DWC OTG controller. context The priv pointer from a struct...
dwc2_host_put_tt_info(9)
NAME dwc2_host_put_tt_info - Put the dwc2_tt from dwc2_host_get_tt_info() SYNOPSIS void dwc2_host_put_tt_info (struct dwc2_hsotg *hsotg , struct dwc2_tt *dwc_tt ); ARGUMENTS hsotg The HCD state structure for the DWC OTG controller. dwc_tt The pointer returned by dwc2_host_get_tt_info. DESCRIPTION ...
dwc2_hs_pmap_schedule(9)
NAME dwc2_hs_pmap_schedule - Schedule in the main high speed schedule SYNOPSIS int dwc2_hs_pmap_schedule (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh , bool only_one_period , int index ); ARGUMENTS hsotg The HCD state structure for the DWC OTG controller. qh QH for the periodic transfer. ...
dwc2_hs_pmap_unschedule(9)
NAME dwc2_hs_pmap_unschedule - Undo work done by dwc2_hs_pmap_schedule() SYNOPSIS void dwc2_hs_pmap_unschedule (struct dwc2_hsotg *hsotg , struct dwc2_qh *qh , int index ); ARGUMENTS hsotg The HCD state structure for the DWC OTG controller. qh QH for the periodic transfer. index T...
dwc2_hsotg_complete_in(9)
NAME dwc2_hsotg_complete_in - complete IN transfer SYNOPSIS void dwc2_hsotg_complete_in (struct dwc2_hsotg *hsotg , struct dwc2_hsotg_ep *hs_ep ); ARGUMENTS hsotg The device state. hs_ep The endpoint that has just completed. DESCRIPTION An IN transfer has been completed, update the transfer's sta...
dwc2_hsotg_complete_oursetup(9)
NAME dwc2_hsotg_complete_oursetup - setup completion callback SYNOPSIS void dwc2_hsotg_complete_oursetup (struct usb_ep *ep , struct usb_request *req ); ARGUMENTS ep The endpoint the request was on. req The request completed. DESCRIPTION Called on completion of any requests the driver itself...
dwc2_hsotg_complete_request(9)
NAME dwc2_hsotg_complete_request - complete a request given to us SYNOPSIS void dwc2_hsotg_complete_request (struct dwc2_hsotg *hsotg , struct dwc2_hsotg_ep *hs_ep , struct dwc2_hsotg_req *hs_req , int result ); ARGUMENTS hsotg The device state. hs_ep The endpoint the request was on. hs_re...
dwc2_hsotg_complete_setup(9)
NAME dwc2_hsotg_complete_setup - completion of a setup transfer SYNOPSIS void dwc2_hsotg_complete_setup (struct usb_ep *ep , struct usb_request *req ); ARGUMENTS ep The endpoint the request was on. req The request completed. DESCRIPTION Called on completion of any requests the driver itself ...
dwc2_hsotg_core_init_disconnected(9)
NAME dwc2_hsotg_core_init_disconnected - issue softreset to the core SYNOPSIS void dwc2_hsotg_core_init_disconnected (struct dwc2_hsotg *hsotg , bool is_usb_reset ); ARGUMENTS hsotg The device state is_usb_reset Usb resetting flag DESCRIPTION Issue a soft reset to the core, and await...
dwc2_hsotg_create_debug(9)
NAME dwc2_hsotg_create_debug - create debugfs directory and files SYNOPSIS void dwc2_hsotg_create_debug (struct dwc2_hsotg *hsotg ); ARGUMENTS hsotg The driver state DESCRIPTION Create the debugfs files to allow the user to get information about the state of the system. The directory name is created with the s...