__dwc3_stop_active_transfer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __dwc3_stop_active_transfer(9) πŸ’…

okay bestie, welcome to the Kernel API Manual page for __dwc3_stop_active_transfer(9) β€” the function that stops the current active transfer. no cap, we're getting into it πŸ’–

🌸 NAME 🌸

__dwc3_stop_active_transfer β€” stop the current active transfer ✨

πŸŽ€ SYNOPSIS πŸŽ€

int __dwc3_stop_active_transfer (struct dwc3_ep *dep , bool force , bool
interrupt );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dep β€” isoc endpoint 🫢
  • force β€” set forcerm bit in the command
  • interrupt β€” command complete interrupt after End Transfer command

πŸ”₯ DESCRIPTION πŸ”₯

okay so when setting force, the ForceRM bit will be set. In that case the controller won't update the TRB progress on command completion. It also won't clear the HWO bit in the TRB. The command will also not complete immediately in that case. like, that is the whole ForceRM situation, and it is lowkey important πŸ’€

Older programming guide revisions recommended setting ForceRM to 1 when ending a transfer. Newer programming guide revisions now recommend keeping ForceRM cleared, and TRBs are properly updated on command completion. periodt β€” newer guide said keep it cleared, and the TRBs get updated properly when the command completes ✨

🌈 SEE ALSO 🌈

Kernel file ./drivers/usb/dwc3/gadget.c β€” and the whole bestie lineup is: dwc3_gadget_set_test_mode(9), dwc3_gadget_get_link_state(9), dwc3_gadget_set_link_state(9), dwc3_ep_inc_trb(9), dwc3_ep_inc_enq(9), dwc3_ep_inc_deq(9), dwc3_gadget_giveback(9), dwc3_send_gadget_generic_command(9), dwc3_send_gadget_ep_cmd(9), dwc3_gadget_start_config(9), dwc3_gadget_calc_tx_fifo_size(9), dwc3_gadget_calc_ram_depth(9), dwc3_gadget_clear_tx_fifos(9), __dwc3_gadget_ep_enable(9), __dwc3_gadget_ep_disable(9), dwc3_ep_prev_trb(9), dwc3_prepare_one_trb(9), dwc3_prepare_last_sg(9), dwc3_gadget_start_isoc_quirk(9), dwc3_gadget_setup_nump(9), dwc3_gadget_check_config(9), dwc3_gadget_init(9).

xoxo πŸ’– source/version: ./drivers/usb/dwc3 Β· date: October 2026 Β· page: __dwc3_stop_active_transfer(9) β€” bye bestie, you ate this one πŸ«ΆπŸ‘‘

πŸ“¦ where this page comes from