4 #include <linux/unaligned.h>
6 /* 32-bit data segment descriptor (8 bytes) */
12 static inline void append_dsd32(struct dsd32
**dsd
, struct scatterlist
*sg
)
14 put_unaligned_le32(sg_dma_address(sg
), &(*dsd
)->address
);
15 put_unaligned_le32(sg_dma_len(sg
), &(*dsd
)->length
);
19 /* 64-bit data segment descriptor (12 bytes) */
25 static inline void append_dsd64(struct dsd64
**dsd
, struct scatterlist
*sg
)
27 put_unaligned_le64(sg_dma_address(sg
), &(*dsd
)->address
);
28 put_unaligned_le32(sg_dma_len(sg
), &(*dsd
)->length
);