/Linux-v5.10/drivers/net/ethernet/cisco/enic/ |
D | enic_res.h | 44 void *os_buf, dma_addr_t dma_addr, unsigned int len, in enic_queue_wq_desc_ex() argument 55 (u64)dma_addr | VNIC_PADDR_TARGET, in enic_queue_wq_desc_ex() 65 vnic_wq_post(wq, os_buf, dma_addr, len, sop, eop, desc_skip_cnt, in enic_queue_wq_desc_ex() 70 void *os_buf, dma_addr_t dma_addr, unsigned int len, in enic_queue_wq_desc_cont() argument 73 enic_queue_wq_desc_ex(wq, os_buf, dma_addr, len, in enic_queue_wq_desc_cont() 79 dma_addr_t dma_addr, unsigned int len, int vlan_tag_insert, in enic_queue_wq_desc() argument 82 enic_queue_wq_desc_ex(wq, os_buf, dma_addr, len, in enic_queue_wq_desc() 89 void *os_buf, dma_addr_t dma_addr, unsigned int len, in enic_queue_wq_desc_csum() argument 93 enic_queue_wq_desc_ex(wq, os_buf, dma_addr, len, in enic_queue_wq_desc_csum() 101 void *os_buf, dma_addr_t dma_addr, unsigned int len, in enic_queue_wq_desc_csum_l4() argument [all …]
|
/Linux-v5.10/arch/s390/pci/ |
D | pci_dma.c | 99 unsigned long *dma_walk_cpu_trans(unsigned long *rto, dma_addr_t dma_addr) in dma_walk_cpu_trans() argument 104 rtx = calc_rtx(dma_addr); in dma_walk_cpu_trans() 109 sx = calc_sx(dma_addr); in dma_walk_cpu_trans() 114 px = calc_px(dma_addr); in dma_walk_cpu_trans() 134 dma_addr_t dma_addr, size_t size, int flags) in __dma_update_trans() argument 152 entry = dma_walk_cpu_trans(zdev->dma_table, dma_addr); in __dma_update_trans() 159 dma_addr += PAGE_SIZE; in __dma_update_trans() 167 dma_addr -= PAGE_SIZE; in __dma_update_trans() 168 entry = dma_walk_cpu_trans(zdev->dma_table, dma_addr); in __dma_update_trans() 179 static int __dma_purge_tlb(struct zpci_dev *zdev, dma_addr_t dma_addr, in __dma_purge_tlb() argument [all …]
|
/Linux-v5.10/drivers/net/ethernet/apm/xgene-v2/ |
D | ring.c | 24 next_dma = ring->dma_addr + (offset * XGENE_ENET_DESC_SIZE); in xge_setup_desc() 37 dma_addr_t dma_addr = ring->dma_addr; in xge_update_tx_desc_addr() local 39 xge_wr_csr(pdata, DMATXDESCL, dma_addr); in xge_update_tx_desc_addr() 40 xge_wr_csr(pdata, DMATXDESCH, upper_32_bits(dma_addr)); in xge_update_tx_desc_addr() 49 dma_addr_t dma_addr = ring->dma_addr; in xge_update_rx_desc_addr() local 51 xge_wr_csr(pdata, DMARXDESCL, dma_addr); in xge_update_rx_desc_addr() 52 xge_wr_csr(pdata, DMARXDESCH, upper_32_bits(dma_addr)); in xge_update_rx_desc_addr()
|
D | main.c | 74 dma_addr_t dma_addr; in xge_refill_buffers() local 86 dma_addr = dma_map_single(dev, skb->data, len, DMA_FROM_DEVICE); in xge_refill_buffers() 87 if (dma_mapping_error(dev, dma_addr)) { in xge_refill_buffers() 94 ring->pkt_info[tail].dma_addr = dma_addr; in xge_refill_buffers() 101 upper_32_bits(dma_addr))); in xge_refill_buffers() 104 raw_desc->m0 = cpu_to_le64(SET_BITS(PKT_ADDRL, dma_addr) | in xge_refill_buffers() 178 static dma_addr_t dma_addr; in xge_start_xmit() local 195 pkt_buf = dma_alloc_coherent(dev, XGENE_ENET_STD_MTU, &dma_addr, in xge_start_xmit() 208 upper_32_bits(dma_addr))); in xge_start_xmit() 211 tx_ring->pkt_info[tail].dma_addr = dma_addr; in xge_start_xmit() [all …]
|
/Linux-v5.10/sound/soc/bcm/ |
D | bcm63xx-pcm-whistler.c | 19 dma_addr_t dma_addr; member 25 dma_addr_t dma_addr; member 157 dma_desc->dma_addr = runtime->dma_addr; in bcm63xx_pcm_prepare() 172 regmap_write(regmap_i2s, regaddr_descaddr, dma_desc->dma_addr); in bcm63xx_pcm_prepare() 185 prtd->dma_addr_next = substream->runtime->dma_addr; in bcm63xx_pcm_pointer() 188 prtd->dma_addr_next - substream->runtime->dma_addr); in bcm63xx_pcm_pointer() 201 runtime->dma_addr, in bcm63xx_pcm_mmap() 287 dma_desc->dma_addr += in i2s_dma_isr() 291 if (dma_desc->dma_addr - runtime->dma_addr >= in i2s_dma_isr() 293 dma_desc->dma_addr = runtime->dma_addr; in i2s_dma_isr() [all …]
|
/Linux-v5.10/arch/mips/sgi-ip32/ |
D | ip32-dma.c | 23 dma_addr_t dma_addr = paddr & RAM_OFFSET_MASK; in phys_to_dma() local 26 dma_addr += CRIME_HI_MEM_BASE; in phys_to_dma() 27 return dma_addr; in phys_to_dma() 30 phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dma_addr) in dma_to_phys() argument 32 phys_addr_t paddr = dma_addr & RAM_OFFSET_MASK; in dma_to_phys() 34 if (dma_addr >= 256*1024*1024) in dma_to_phys()
|
/Linux-v5.10/include/linux/ |
D | dma-direct.h | 41 dma_addr_t dma_addr) in translate_dma_to_phys() argument 46 if (dma_addr >= m->dma_start && dma_addr - m->dma_start < m->size) in translate_dma_to_phys() 47 return (phys_addr_t)dma_addr + m->offset; in translate_dma_to_phys() 77 static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dma_addr) in dma_to_phys() argument 82 paddr = translate_dma_to_phys(dev, dma_addr); in dma_to_phys() 84 paddr = dma_addr; in dma_to_phys() 117 dma_addr_t dma_addr, unsigned long attrs); 121 struct page *page, dma_addr_t dma_addr,
|
D | dma-mapping.h | 79 void debug_dma_mapping_error(struct device *dev, dma_addr_t dma_addr); 84 dma_addr_t dma_addr) in debug_dma_mapping_error() argument 94 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error() argument 96 debug_dma_mapping_error(dev, dma_addr); in dma_mapping_error() 98 if (dma_addr == DMA_MAPPING_ERROR) in dma_mapping_error() 134 void *cpu_addr, dma_addr_t dma_addr, size_t size, 137 void *cpu_addr, dma_addr_t dma_addr, size_t size, 145 bool dma_need_sync(struct device *dev, dma_addr_t dma_addr); 194 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error() argument 217 struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, in dma_get_sgtable_attrs() argument [all …]
|
/Linux-v5.10/drivers/net/ethernet/sfc/ |
D | tx_tso.c | 65 dma_addr_t dma_addr; member 103 dma_addr_t dma_addr, unsigned int len, in efx_tx_queue_insert() argument 119 buffer->dma_addr = dma_addr; in efx_tx_queue_insert() 122 dma_addr, len); in efx_tx_queue_insert() 130 dma_addr += dma_len; in efx_tx_queue_insert() 175 dma_addr_t dma_addr; in tso_start() local 198 dma_addr = dma_map_single(dma_dev, skb->data, in tso_start() 200 st->header_dma_addr = dma_addr; in tso_start() 202 st->dma_addr = dma_addr + header_len; in tso_start() 205 return unlikely(dma_mapping_error(dma_dev, dma_addr)) ? -ENOMEM : 0; in tso_start() [all …]
|
D | tx_common.c | 151 dma_addr_t unmap_addr = buffer->dma_addr - buffer->dma_offset; in efx_dequeue_buffer() 288 dma_addr_t dma_addr, size_t len) in efx_tx_map_chunk() argument 299 dma_len = nic_type->tx_limit_len(tx_queue, dma_addr, len); in efx_tx_map_chunk() 304 buffer->dma_addr = dma_addr; in efx_tx_map_chunk() 307 dma_addr += dma_len; in efx_tx_map_chunk() 335 dma_addr_t dma_addr, unmap_addr; in efx_tx_map_data() local 344 dma_addr = dma_map_single(dma_dev, skb->data, len, DMA_TO_DEVICE); in efx_tx_map_data() 347 unmap_addr = dma_addr; in efx_tx_map_data() 349 if (unlikely(dma_mapping_error(dma_dev, dma_addr))) in efx_tx_map_data() 360 efx_tx_map_chunk(tx_queue, dma_addr, header_len); in efx_tx_map_data() [all …]
|
D | mcdi_functions.c | 80 dma_addr_t dma_addr; in efx_mcdi_ev_init() local 115 dma_addr = channel->eventq.buf.dma_addr; in efx_mcdi_ev_init() 117 MCDI_SET_ARRAY_QWORD(inbuf, INIT_EVQ_IN_DMA_ADDR, i, dma_addr); in efx_mcdi_ev_init() 118 dma_addr += EFX_BUF_SIZE; in efx_mcdi_ev_init() 172 dma_addr_t dma_addr; in efx_mcdi_tx_init() local 185 dma_addr = tx_queue->txd.buf.dma_addr; in efx_mcdi_tx_init() 188 tx_queue->queue, entries, (u64)dma_addr); in efx_mcdi_tx_init() 191 MCDI_SET_ARRAY_QWORD(inbuf, INIT_TXQ_IN_DMA_ADDR, i, dma_addr); in efx_mcdi_tx_init() 192 dma_addr += EFX_BUF_SIZE; in efx_mcdi_tx_init() 285 dma_addr_t dma_addr; in efx_mcdi_rx_init() local [all …]
|
/Linux-v5.10/kernel/dma/ |
D | debug.h | 14 int direction, dma_addr_t dma_addr); 26 dma_addr_t dma_addr, void *virt); 33 dma_addr_t dma_addr); 35 extern void debug_dma_unmap_resource(struct device *dev, dma_addr_t dma_addr, 56 int direction, dma_addr_t dma_addr) in debug_dma_map_page() argument 77 dma_addr_t dma_addr, void *virt) in debug_dma_alloc_coherent() argument 88 dma_addr_t dma_addr) in debug_dma_map_resource() argument 93 dma_addr_t dma_addr, size_t size, in debug_dma_unmap_resource() argument
|
D | direct.c | 34 dma_addr_t dma_addr) in dma_direct_to_page() argument 36 return pfn_to_page(PHYS_PFN(dma_to_phys(dev, dma_addr))); in dma_direct_to_page() 70 dma_addr_t dma_addr = phys_to_dma_direct(dev, phys); in dma_coherent_ok() local 72 if (dma_addr == DMA_MAPPING_ERROR) in dma_coherent_ok() 74 return dma_addr + size - 1 <= in dma_coherent_ok() 245 void *cpu_addr, dma_addr_t dma_addr, unsigned long attrs) in dma_direct_free() argument 259 arch_dma_free(dev, size, cpu_addr, dma_addr, attrs); in dma_direct_free() 276 dma_free_contiguous(dev, dma_direct_to_page(dev, dma_addr), size); in dma_direct_free() 318 struct page *page, dma_addr_t dma_addr, in dma_direct_free_pages() argument 420 dma_addr_t dma_addr = paddr; in dma_direct_map_resource() local [all …]
|
D | direct.h | 13 void *cpu_addr, dma_addr_t dma_addr, size_t size, 17 void *cpu_addr, dma_addr_t dma_addr, size_t size, 19 bool dma_direct_need_sync(struct device *dev, dma_addr_t dma_addr); 88 dma_addr_t dma_addr = phys_to_dma(dev, phys); in dma_direct_map_page() local 93 if (unlikely(!dma_capable(dev, dma_addr, size, true))) { in dma_direct_map_page() 99 &dma_addr, size, *dev->dma_mask, dev->bus_dma_limit); in dma_direct_map_page() 105 return dma_addr; in dma_direct_map_page()
|
/Linux-v5.10/drivers/bus/mhi/core/ |
D | boot.c | 33 bhi_vec->dma_addr = mhi_buf->dma_addr; in mhi_rddm_prepare() 40 upper_32_bits(mhi_buf->dma_addr)); in mhi_rddm_prepare() 43 lower_32_bits(mhi_buf->dma_addr)); in mhi_rddm_prepare() 53 &mhi_buf->dma_addr, mhi_buf->len, sequence_id); in mhi_rddm_prepare() 193 upper_32_bits(mhi_buf->dma_addr)); in mhi_fw_load_amss() 196 lower_32_bits(mhi_buf->dma_addr)); in mhi_fw_load_amss() 222 dma_addr_t dma_addr, in mhi_fw_load_sbl() argument 252 upper_32_bits(dma_addr)); in mhi_fw_load_sbl() 254 lower_32_bits(dma_addr)); in mhi_fw_load_sbl() 301 mhi_buf->dma_addr); in mhi_free_bhie_table() [all …]
|
/Linux-v5.10/drivers/net/ethernet/qualcomm/emac/ |
D | emac-mac.c | 305 writel(upper_32_bits(adpt->tx_q.tpd.dma_addr), in emac_mac_dma_rings_config() 308 writel(lower_32_bits(adpt->tx_q.tpd.dma_addr), in emac_mac_dma_rings_config() 315 writel(upper_32_bits(adpt->rx_q.rfd.dma_addr), in emac_mac_dma_rings_config() 318 writel(lower_32_bits(adpt->rx_q.rfd.dma_addr), in emac_mac_dma_rings_config() 320 writel(lower_32_bits(adpt->rx_q.rrd.dma_addr), in emac_mac_dma_rings_config() 598 if (tpbuf->dma_addr) { in emac_tx_q_descs_free() 600 tpbuf->dma_addr, tpbuf->length, in emac_tx_q_descs_free() 602 tpbuf->dma_addr = 0; in emac_tx_q_descs_free() 635 if (rfbuf->dma_addr) { in emac_rx_q_free_descs() 636 dma_unmap_single(dev, rfbuf->dma_addr, rfbuf->length, in emac_rx_q_free_descs() [all …]
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | xdp.c | 65 dma_addr_t dma_addr; in mlx5e_xmit_xdp_buff() local 89 dma_addr = dma_map_single(sq->pdev, xdptxd.data, xdptxd.len, in mlx5e_xmit_xdp_buff() 91 if (dma_mapping_error(sq->pdev, dma_addr)) { in mlx5e_xmit_xdp_buff() 96 xdptxd.dma_addr = dma_addr; in mlx5e_xmit_xdp_buff() 98 xdpi.frame.dma_addr = dma_addr; in mlx5e_xmit_xdp_buff() 108 dma_addr = di->addr + (xdpf->data - (void *)xdpf); in mlx5e_xmit_xdp_buff() 109 dma_sync_single_for_device(sq->pdev, dma_addr, xdptxd.len, in mlx5e_xmit_xdp_buff() 112 xdptxd.dma_addr = dma_addr; in mlx5e_xmit_xdp_buff() 323 dma_addr_t dma_addr = xdptxd->dma_addr; in mlx5e_xmit_xdp_frame() local 347 dma_addr += MLX5E_XDP_MIN_INLINE; in mlx5e_xmit_xdp_frame() [all …]
|
/Linux-v5.10/drivers/media/platform/mtk-jpeg/ |
D | mtk_jpeg_enc_hw.c | 59 dma_addr_t dma_addr; in mtk_jpeg_set_enc_src() local 62 dma_addr = vb2_dma_contig_plane_dma_addr(src_buf, i) + in mtk_jpeg_set_enc_src() 65 writel(dma_addr, base + JPEG_ENC_SRC_LUMA_ADDR); in mtk_jpeg_set_enc_src() 67 writel(dma_addr, base + JPEG_ENC_SRC_CHROMA_ADDR); in mtk_jpeg_set_enc_src() 74 dma_addr_t dma_addr; in mtk_jpeg_set_enc_dst() local 79 dma_addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in mtk_jpeg_set_enc_dst() 81 dma_addr_offsetmask = dma_addr & JPEG_ENC_DST_ADDR_OFFSET_MASK; in mtk_jpeg_set_enc_dst() 86 writel(dma_addr & ~0xf, base + JPEG_ENC_DST_ADDR0); in mtk_jpeg_set_enc_dst() 87 writel((dma_addr + size) & ~0xf, base + JPEG_ENC_STALL_ADDR0); in mtk_jpeg_set_enc_dst()
|
/Linux-v5.10/drivers/media/pci/solo6x10/ |
D | solo6x10-p2m.c | 32 dma_addr_t dma_addr; in solo_p2m_dma() local 40 dma_addr = pci_map_single(solo_dev->pdev, sys_addr, size, in solo_p2m_dma() 42 if (pci_dma_mapping_error(solo_dev->pdev, dma_addr)) in solo_p2m_dma() 45 ret = solo_p2m_dma_t(solo_dev, wr, dma_addr, ext_addr, size, in solo_p2m_dma() 48 pci_unmap_single(solo_dev->pdev, dma_addr, size, in solo_p2m_dma() 93 desc[1].dma_addr); in solo_p2m_dma_desc() 125 dma_addr_t dma_addr, u32 ext_addr, u32 size, in solo_p2m_fill_desc() argument 128 WARN_ON_ONCE(dma_addr & 0x03); in solo_p2m_fill_desc() 141 desc->dma_addr = dma_addr; in solo_p2m_fill_desc() 146 dma_addr_t dma_addr, u32 ext_addr, u32 size, in solo_p2m_dma_t() argument [all …]
|
/Linux-v5.10/arch/mips/loongson2ef/lemote-2f/ |
D | dma.c | 9 phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dma_addr) in dma_to_phys() argument 11 if (dma_addr > 0x8fffffff) in dma_to_phys() 12 return dma_addr; in dma_to_phys() 13 return dma_addr & 0x0fffffff; in dma_to_phys()
|
/Linux-v5.10/drivers/tty/serial/cpm_uart/ |
D | cpm_uart_cpm1.c | 67 dma_addr_t dma_addr = 0; in cpm_uart_allocbuf() local 86 dma_addr = (u32)cpm_dpram_phys(mem_addr); in cpm_uart_allocbuf() 88 mem_addr = dma_alloc_coherent(pinfo->port.dev, memsz, &dma_addr, in cpm_uart_allocbuf() 100 pinfo->dma_addr = dma_addr; /* physical address*/ in cpm_uart_allocbuf() 119 pinfo->dma_addr); in cpm_uart_freebuf()
|
/Linux-v5.10/drivers/net/ethernet/ti/ |
D | k3-cppi-desc-pool.c | 19 dma_addr_t dma_addr; member 38 pool->dma_addr); in k3_cppi_desc_pool_destroy() 77 &pool->dma_addr, GFP_KERNEL); in k3_cppi_desc_pool_create_name() 83 (phys_addr_t)pool->dma_addr, pool->mem_size, in k3_cppi_desc_pool_create_name() 94 pool->dma_addr); in k3_cppi_desc_pool_create_name() 105 return addr ? pool->dma_addr + (addr - pool->cpumem) : 0; in k3_cppi_desc_pool_virt2dma() 110 return dma ? pool->cpumem + (dma - pool->dma_addr) : NULL; in k3_cppi_desc_pool_dma2virt()
|
/Linux-v5.10/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth-trace.h | 100 dma_addr_t dma_addr, 106 TP_ARGS(netdev, vaddr, size, dma_addr, map_size, bpid), 116 __field(dma_addr_t, dma_addr) 128 __entry->dma_addr = dma_addr; 141 &__entry->dma_addr,
|
/Linux-v5.10/drivers/crypto/caam/ |
D | key_gen.c | 50 dma_addr_t dma_addr; in gen_split_key() local 75 dma_addr = dma_map_single(jrdev, key_out, local_max, DMA_BIDIRECTIONAL); in gen_split_key() 76 if (dma_mapping_error(jrdev, dma_addr)) { in gen_split_key() 82 append_key(desc, dma_addr, keylen, CLASS_2 | KEY_DEST_CLASS_REG); in gen_split_key() 100 append_fifo_store(desc, dma_addr, adata->keylen, in gen_split_key() 121 dma_unmap_single(jrdev, dma_addr, local_max, DMA_BIDIRECTIONAL); in gen_split_key()
|
/Linux-v5.10/arch/mips/include/asm/mach-rc32434/ |
D | dma_v.h | 42 static inline void rc32434_start_dma(struct dma_reg *ch, u32 dma_addr) in rc32434_start_dma() argument 45 __raw_writel(dma_addr, &ch->dmadptr); in rc32434_start_dma() 48 static inline void rc32434_chain_dma(struct dma_reg *ch, u32 dma_addr) in rc32434_chain_dma() argument 50 __raw_writel(dma_addr, &ch->dmandptr); in rc32434_chain_dma()
|