STRUCT AT91_ADC_DMA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct at91_adc_dma(9) πŸ’– Kernel API Manual πŸ’–

🌸 NAME 🌸

struct at91_adc_dma - at91-sama5d2 dma information struct

okay bestie, this is the struct that carries the at91-sama5d2 DMA information, and every single field is required reading. no skips, no cap. πŸ¦‹

✨ SYNOPSIS ✨

struct at91_adc_dma {
    struct dma_chan                 *dma_chan;
    u8 *rx_buf;
    dma_addr_t rx_dma_buf;
    phys_addr_t phys_addr;
    int buf_idx;
    int rx_buf_sz;
    int watermark;
    s64 dma_ts;
};

πŸ’… Members πŸ’…

member-by-member vibe check, and every one is iconic:

  • dma_chan β€” the dma channel acquired. acquired, not borrowed, iykyk. πŸ’…
  • rx_buf β€” dma coherent allocated area. that's the buffer's allocated area, periodt. ✨
  • rx_dma_buf β€” dma handler for the buffer. handler duties, slay. πŸŽ€
  • phys_addr β€” physical address of the ADC base register. physical is literally in the name. πŸ¦‹
  • buf_idx β€” index inside the dma buffer where reading was last done. last-done index lore. πŸ“
  • rx_buf_sz β€” size of buffer used by DMA operation. the size, the whole size, nothing but the size. πŸ’–
  • watermark β€” number of conversions to copy before DMA triggers irq. that's the exact trigger threshold, no guessing. πŸ”₯
  • dma_ts β€” hold the start timestamp of dma operation. timestamp bestie has entered the chat. ⏰

πŸ”₯ SEE ALSO πŸ”₯

go peek at these, bestie β€” all the related struct and enum lore is right here:

  • Kernel file ./drivers/iio/adc/at91-sama5d2_adc.c
  • struct at91_adc_platform(9)
  • struct at91_adc_temp_sensor_clb(9)
  • enum at91_adc_ts_clb_idx(9)
  • struct at91_adc_soc_info(9)
  • struct at91_adc_touch(9)
  • struct at91_adc_temp(9)

xoxo, your source/version bestie is ./drivers/iio/adc, and the date stamp is October 2026 β€” mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from