[PATCH 6.18 222/430] rust: dma: add helpers for architectures without CONFIG_HAS_DMA