scatterlist.c 602 B

1234567891011121314151617181920212223242526
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <linux/dma-direction.h>
  3. __rust_helper dma_addr_t rust_helper_sg_dma_address(struct scatterlist *sg)
  4. {
  5. return sg_dma_address(sg);
  6. }
  7. __rust_helper unsigned int rust_helper_sg_dma_len(struct scatterlist *sg)
  8. {
  9. return sg_dma_len(sg);
  10. }
  11. __rust_helper struct scatterlist *rust_helper_sg_next(struct scatterlist *sg)
  12. {
  13. return sg_next(sg);
  14. }
  15. __rust_helper void rust_helper_dma_unmap_sgtable(struct device *dev,
  16. struct sg_table *sgt,
  17. enum dma_data_direction dir,
  18. unsigned long attrs)
  19. {
  20. return dma_unmap_sgtable(dev, sgt, dir, attrs);
  21. }