of_dma_simple_xlate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this is the Kernel API Manual page for of_dma_simple_xlate β€” literally the Simple DMA engine translation function. bestie, that's the whole name vibe: of_dma_simple_xlate + β€œSimple DMA engine translation function.” periodt. πŸ’…

✨ SYNOPSIS ✨

struct dma_chan * of_dma_simple_xlate (struct of_phandle_args *dma_spec
, struct of_dma *ofdma );

πŸŽ€ ARGUMENTS πŸŽ€

  • dma_spec β€” pointer to the DMA specifier as found in the device tree. yes, that exact one πŸ¦‹
  • ofdma β€” pointer to DMA controller data. the controller info goes here πŸ’œ

🌸 DESCRIPTION 🌸

okay so here’s the tea β˜•: this is the simple translation function for devices that use a 32-bit value for the filter_param when calling the DMA engine dma_request_channel function. it’s giving β€œsmall but iconic.” ✨

heads up bestie, this translation function requires that #dma-cells is equal to 1 and the argument of the dma specifier is the 32-bit filter_param. no cap, that’s a hard requirement πŸ™ˆ

on success it returns a pointer to the appropriate dma channel; on error it returns NULL. on error, the return is NULL 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/dma/of-dma.c β€” and the whole squad is:


mwah πŸ’‹ this page came from ./drivers/dma, dated October 2026 β€” it’s of_dma_simple_xlate(9) from the Kernel API Manual, and that’s the vibe. bye bestie 🫢🌈

πŸ“¦ where this page comes from