dwc2_hcd_complete_xfer_ddma(9)
π dwc2_hcd_complete_xfer_ddma(9) π
okay so bestie, welcome to the Kernel API Manual β todayβs main character is dwc2_hcd_complete_xfer_ddma(9), and she is lowkey doing important work. π«Ά
πΈ NAME πΈ
okay so dwc2_hcd_complete_xfer_ddma scans the descriptor list, updates URB's status, and calls the completion routine for the URB if it's done. Sheβs called from interrupt handlers, bestie β interrupt-handler energy fr fr. ππ
β¨ SYNOPSIS β¨
void dwc2_hcd_complete_xfer_ddma (struct dwc2_hsotg *hsotg , struct dwc2_host_chan *chan , int chnum , enum dwc2_halt_status halt_status );
π ARGUMENTS π
hsotgβ the HCD state structure for the DWC OTG controller. thatβs the whole state-structure vibe πchanβ the Host channel the transfer is completed on. yep, that channel πchnumβ index of Host channel registers. literally the register index, no cap β¨halt_statusβ reason the channel is being halted, or justXferCompletefor isochronous transfers. keeping it real π¦
π¦ DESCRIPTION π¦
Bestie, she releases the channel to be used by other transfers β sharing is caring, periodt. π
In case of Isochronous endpoint, the channel is not halted until the end of the session, i.e. until the QTD list is empty. π
If a periodic channel is released, the FrameList is updated accordingly. πβ¨
She also calls transaction selection routines to activate pending transfers β activating pending transfers is her little side quest, and she ate. π₯π
π SEE ALSO π
Kernel file ./drivers/usb/dwc2/hcd_ddma.c β yes bestie, thatβs the spot π§
Signing off from source/version ./drivers/usb/dwc2, dated October 2026 β mwah π, and yes, this page is still dwc2_hcd_complete_xfer_ddma(9) ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms