/linux/drivers/net/ethernet/cisco/enic/ |
A 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() 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() 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() 105 enic_queue_wq_desc_ex(wq, os_buf, dma_addr, len, in enic_queue_wq_desc_csum_l4() 116 enic_queue_wq_desc_ex(wq, os_buf, dma_addr, len, in enic_queue_wq_desc_tso() 124 dma_addr_t dma_addr, unsigned int len) in enic_queue_rq_desc() argument [all …]
|
/linux/arch/s390/pci/ |
A D | pci_dma.c | 106 rtx = calc_rtx(dma_addr); in dma_walk_cpu_trans() 111 sx = calc_sx(dma_addr); in dma_walk_cpu_trans() 116 px = calc_px(dma_addr); in dma_walk_cpu_trans() 161 dma_addr += PAGE_SIZE; in __dma_update_trans() 169 dma_addr -= PAGE_SIZE; in __dma_update_trans() 344 dma_addr_t dma_addr; in s390_dma_map_pages() local 384 dma_addr = dma_addr & PAGE_MASK; in s390_dma_unmap_pages() 389 zpci_err_dma(ret, dma_addr); in s390_dma_unmap_pages() 443 dma_addr_t dma_addr_base, dma_addr; in __s390_dma_map_sg() local 453 dma_addr = dma_addr_base; in __s390_dma_map_sg() [all …]
|
/linux/sound/soc/bcm/ |
A D | bcm63xx-pcm-whistler.c | 19 dma_addr_t dma_addr; member 25 dma_addr_t dma_addr; member 152 dma_desc->dma_addr = runtime->dma_addr; in bcm63xx_pcm_prepare() 269 dma_desc->dma_addr += in i2s_dma_isr() 273 if (dma_desc->dma_addr - runtime->dma_addr >= in i2s_dma_isr() 275 dma_desc->dma_addr = runtime->dma_addr; in i2s_dma_isr() 279 prtd->dma_addr = dma_desc->dma_addr; in i2s_dma_isr() 318 dma_desc->dma_addr += in i2s_dma_isr() 323 if (dma_desc->dma_addr - runtime->dma_addr >= in i2s_dma_isr() 325 dma_desc->dma_addr = runtime->dma_addr; in i2s_dma_isr() [all …]
|
/linux/drivers/net/ethernet/apm/xgene-v2/ |
A 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()
|
A D | main.c | 74 dma_addr_t dma_addr; in xge_refill_buffers() local 94 ring->pkt_info[tail].dma_addr = dma_addr; in xge_refill_buffers() 211 tx_ring->pkt_info[tail].dma_addr = dma_addr; in xge_start_xmit() 242 dma_addr_t dma_addr; in xge_txc_poll() local 264 dma_addr = tx_ring->pkt_info[head].dma_addr; in xge_txc_poll() 292 dma_addr_t dma_addr; in xge_rx_poll() local 316 dma_addr = rx_ring->pkt_info[head].dma_addr; in xge_rx_poll() 375 dma_addr_t dma_addr; in xge_free_buffers() local 380 dma_addr = ring->pkt_info[i].dma_addr; in xge_free_buffers() 557 dma_addr_t dma_addr; in xge_free_pending_skb() local [all …]
|
/linux/arch/mips/sgi-ip32/ |
A 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/include/linux/ |
A 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,
|
A D | dma-mapping.h | 84 dma_addr_t dma_addr) in debug_dma_mapping_error() argument 96 debug_dma_mapping_error(dev, dma_addr); in dma_mapping_error() 98 if (unlikely(dma_addr == DMA_MAPPING_ERROR)) in dma_mapping_error() 136 void *cpu_addr, dma_addr_t dma_addr, size_t size, 139 void *cpu_addr, dma_addr_t dma_addr, size_t size, 240 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_mmap_attrs() argument 557 dma_addr_t *dma_addr, gfp_t gfp) in dma_alloc_wc() argument 564 return dma_alloc_attrs(dev, size, dma_addr, gfp, attrs); in dma_alloc_wc() 568 void *cpu_addr, dma_addr_t dma_addr) in dma_free_wc() argument 570 return dma_free_attrs(dev, size, cpu_addr, dma_addr, in dma_free_wc() [all …]
|
/linux/drivers/net/ethernet/qualcomm/emac/ |
A D | emac-mac.c | 602 tpbuf->dma_addr = 0; in emac_tx_q_descs_free() 638 rfbuf->dma_addr = 0; in emac_rx_q_free_descs() 687 tx_q->tpd.dma_addr = ring_header->dma_addr + ring_header->used; in emac_tx_q_desc_alloc() 731 rx_q->rrd.dma_addr = ring_header->dma_addr + ring_header->used; in emac_rx_descs_alloc() 735 rx_q->rfd.dma_addr = ring_header->dma_addr + ring_header->used; in emac_rx_descs_alloc() 1118 rfbuf->dma_addr = 0; in emac_mac_rx_process() 1193 tpbuf->dma_addr = 0; in emac_mac_tx_process() 1352 tpbuf->dma_addr); in emac_tx_fill_tpd() 1373 tpbuf->dma_addr); in emac_tx_fill_tpd() 1393 tpbuf->dma_addr); in emac_tx_fill_tpd() [all …]
|
/linux/drivers/net/ethernet/sfc/ |
A 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 200 st->header_dma_addr = dma_addr; in tso_start() 202 st->dma_addr = dma_addr + header_len; in tso_start() 216 st->dma_addr = st->unmap_addr; in tso_get_fragment() 270 st->dma_addr += n; in tso_fill_packet_with_fragment() [all …]
|
A D | tx_common.c | 288 dma_addr_t dma_addr, size_t len) in efx_tx_map_chunk() argument 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 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() 362 dma_addr += header_len; in efx_tx_map_data() 371 buffer = efx_tx_map_chunk(tx_queue, dma_addr, len); in efx_tx_map_data() 378 buffer->dma_offset = buffer->dma_addr - unmap_addr; in efx_tx_map_data() [all …]
|
A 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() 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() 192 dma_addr += EFX_BUF_SIZE; in efx_mcdi_tx_init() 285 dma_addr_t dma_addr; in efx_mcdi_rx_init() local 309 dma_addr = rx_queue->rxd.buf.dma_addr; in efx_mcdi_rx_init() 312 efx_rx_queue_index(rx_queue), entries, (u64)dma_addr); in efx_mcdi_rx_init() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
A D | xdp.c | 65 dma_addr_t dma_addr; in mlx5e_xmit_xdp_buff() local 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() 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() 352 dseg->addr = cpu_to_be64(dma_addr); in mlx5e_xmit_xdp_frame() 537 xdpi.frame.dma_addr = xdptxd.dma_addr; in mlx5e_xdp_xmit() [all …]
|
/linux/drivers/bus/mhi/core/ |
A 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() 227 dma_addr_t dma_addr, in mhi_fw_load_bhi() argument 257 upper_32_bits(dma_addr)); in mhi_fw_load_bhi() 259 lower_32_bits(dma_addr)); in mhi_fw_load_bhi() 306 mhi_buf->buf, mhi_buf->dma_addr); in mhi_free_bhie_table() 343 vec_size, &mhi_buf->dma_addr, in mhi_alloc_bhie_table() 358 mhi_buf->buf, mhi_buf->dma_addr); in mhi_alloc_bhie_table() 379 bhi_vec->dma_addr = mhi_buf->dma_addr; in mhi_firmware_copy() [all …]
|
/linux/kernel/dma/ |
A D | debug.h | 14 int direction, dma_addr_t dma_addr, 28 dma_addr_t dma_addr, void *virt, 36 dma_addr_t dma_addr, 39 extern void debug_dma_unmap_resource(struct device *dev, dma_addr_t dma_addr, 60 int direction, dma_addr_t dma_addr, in debug_dma_map_page() argument 83 dma_addr_t dma_addr, void *virt, in debug_dma_alloc_coherent() argument 95 dma_addr_t dma_addr, in debug_dma_map_resource() argument 101 dma_addr_t dma_addr, size_t size, in debug_dma_unmap_resource() argument
|
A 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() 291 arch_dma_free(dev, size, cpu_addr, dma_addr, attrs); in dma_direct_free() 358 struct page *page, dma_addr_t dma_addr, in dma_direct_free_pages() argument 460 dma_addr_t dma_addr = paddr; in dma_direct_map_resource() local 470 return dma_addr; in dma_direct_map_resource() 474 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_direct_get_sgtable() argument [all …]
|
/linux/drivers/media/platform/mtk-jpeg/ |
A 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/drivers/media/pci/solo6x10/ |
A D | solo6x10-p2m.c | 32 dma_addr_t dma_addr; in solo_p2m_dma() local 40 dma_addr = dma_map_single(&solo_dev->pdev->dev, sys_addr, size, in solo_p2m_dma() 42 if (dma_mapping_error(&solo_dev->pdev->dev, 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 dma_unmap_single(&solo_dev->pdev->dev, 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/drivers/net/ethernet/ti/ |
A 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/drivers/tty/serial/cpm_uart/ |
A 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/drivers/net/ethernet/sfc/falcon/ |
A D | tx.c | 38 buffer->dma_addr = page_buf->dma_addr + offset; in ef4_tx_get_copy_buffer() 181 dma_addr_t dma_addr, in ef4_tx_map_chunk() argument 194 buffer->dma_addr = dma_addr; in ef4_tx_map_chunk() 197 dma_addr += dma_len; in ef4_tx_map_chunk() 211 dma_addr_t dma_addr, unmap_addr; in ef4_tx_map_data() local 223 unmap_addr = dma_addr; in ef4_tx_map_data() 225 if (unlikely(dma_mapping_error(dma_dev, dma_addr))) in ef4_tx_map_data() 233 buffer = ef4_tx_map_chunk(tx_queue, dma_addr, len); in ef4_tx_map_data() 240 buffer->dma_offset = buffer->dma_addr - unmap_addr; in ef4_tx_map_data() 254 dma_addr = skb_frag_dma_map(dma_dev, fragment, in ef4_tx_map_data() [all …]
|
/linux/arch/arm/common/ |
A D | dmabounce.c | 210 dma_addr_t dma_addr, const char *where) in find_safe_buffer_dev() argument 214 if (dma_mapping_error(dev, dma_addr)) { in find_safe_buffer_dev() 218 return find_safe_buffer(dev->archdata.dmabounce, dma_addr); in find_safe_buffer_dev() 237 if ((dma_addr | (dma_addr + size - 1)) & ~mask) in needs_bounce() 318 dma_addr_t dma_addr; in dmabounce_map_page() local 324 dma_addr = pfn_to_dma(dev, page_to_pfn(page)) + offset; in dmabounce_map_page() 326 ret = needs_bounce(dev, dma_addr, size); in dmabounce_map_page() 332 return dma_addr; in dmabounce_map_page() 355 __func__, dma_addr, size, dir); in dmabounce_unmap_page() 357 buf = find_safe_buffer_dev(dev, dma_addr, __func__); in dmabounce_unmap_page() [all …]
|
/linux/drivers/crypto/caam/ |
A 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/drivers/net/ethernet/freescale/dpaa2/ |
A 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/arch/mips/loongson2ef/lemote-2f/ |
A 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()
|