thc_dma_set_...packet_sizes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

thc_dma_set_max_packet_sizes β€” Set max packet sizes for all DMA engines πŸ’…

okay bestie, you're looking at the Kernel API Manual page for thc_dma_set_...packet_sizes(9), and it's literally giving β€œone function, all the DMA packet sizes.” No cap. 🫢

πŸŽ€ SYNOPSIS πŸŽ€

int thc_dma_set_max_packet_sizes (struct thc_device *dev , size_t
       mps_read1 , size_t mps_read2 , size_t mps_write , size_t mps_swdma );

πŸ’– ARGUMENTS πŸ’–

  • dev β€” the pointer to the THC private device context. literally what it sounds like, bestie.
  • mps_read1 β€” RxDMA1 max packet size.
  • mps_read2 β€” RxDMA2 max packet size.
  • mps_write β€” TxDMA max packet size.
  • mps_swdma β€” Software DMA max packet size.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the whole vibe: if mps is not 0, that means the corresponding DMA channel is used. then it sets the flag to turn on this channel. slay. ✨

🌸 RETURN 🌸

0 on success, other error codes on failed. yes bestie, β€œon failed” is the wording β€” we keep the facts exactly, always. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/hid/intel-thc-hid/intel-thc/intel-thc-dma.c

k bye bestie πŸ’– this page's source/version is ./drivers/hid/intel-thc-hid/in... and it's dated October 2026, for thc_dma_set_...packet_sizes(9). periodt ✨

πŸ“¦ where this page comes from