Lines Matching +full:dma +full:- +full:mem
1 // SPDX-License-Identifier: GPL-2.0-only
14 * hinic_cpu_to_be32 - convert data to big endian 32 bit format
20 u32 *mem = data; in hinic_cpu_to_be32() local
26 *mem = cpu_to_be32(*mem); in hinic_cpu_to_be32()
27 mem++; in hinic_cpu_to_be32()
32 * hinic_be32_to_cpu - convert data from big endian 32 bit format
38 u32 *mem = data; in hinic_be32_to_cpu() local
44 *mem = be32_to_cpu(*mem); in hinic_be32_to_cpu()
45 mem++; in hinic_be32_to_cpu()
50 * hinic_set_sge - set dma area in scatter gather entry
52 * @addr: dma address
53 * @len: length of relevant data in the dma address
57 sge->hi_addr = upper_32_bits(addr); in hinic_set_sge()
58 sge->lo_addr = lower_32_bits(addr); in hinic_set_sge()
59 sge->len = len; in hinic_set_sge()
63 * hinic_sge_to_dma - get dma address from scatter gather entry
66 * Return dma address of sg entry
70 return (dma_addr_t)((((u64)sge->hi_addr) << 32) | sge->lo_addr); in hinic_sge_to_dma()