/linux/include/trace/events/ |
H A D | dma.h | 37 TP_PROTO(struct device *dev, phys_addr_t phys_addr, dma_addr_t dma_addr, 39 TP_ARGS(dev, phys_addr, dma_addr, size, dir, attrs), 44 __field(u64, dma_addr) 53 __entry->dma_addr = dma_addr; 62 __entry->dma_addr, 70 TP_PROTO(struct device *dev, phys_addr_t phys_addr, dma_addr_t dma_addr, \ 72 TP_ARGS(dev, phys_addr, dma_addr, size, dir, attrs)) 116 TP_PROTO(struct device *dev, void *virt_addr, dma_addr_t dma_addr, 119 TP_ARGS(dev, virt_addr, dma_addr, size, dir, flags, attrs), 124 __field(u64, dma_addr) [all …]
|
H A D | habanalabs.h | 54 TP_PROTO(struct device *dev, u64 cpu_addr, u64 dma_addr, size_t size, const char *caller), 56 TP_ARGS(dev, cpu_addr, dma_addr, size, caller), 61 __field(u64, dma_addr) 69 __entry->dma_addr = dma_addr; 74 TP_printk("%s: cpu_addr: %#llx, dma_addr: %#llx, size: %#x, caller: %s", 77 __entry->dma_addr, 83 TP_PROTO(struct device *dev, u64 cpu_addr, u64 dma_addr, size_t size, const char *caller), 84 TP_ARGS(dev, cpu_addr, dma_addr, size, caller)); 87 TP_PROTO(struct device *dev, u64 cpu_addr, u64 dma_addr, size_ [all...] |
/linux/drivers/net/ethernet/cisco/enic/ |
H A D | enic_res.h | 31 void *os_buf, dma_addr_t dma_addr, unsigned int len, in enic_queue_wq_desc_ex() argument 42 (u64)dma_addr | VNIC_PADDR_TARGET, in enic_queue_wq_desc_ex() 52 vnic_wq_post(wq, os_buf, dma_addr, len, sop, eop, desc_skip_cnt, in enic_queue_wq_desc_ex() 57 void *os_buf, dma_addr_t dma_addr, unsigned int len, in enic_queue_wq_desc_cont() argument 60 enic_queue_wq_desc_ex(wq, os_buf, dma_addr, len, in enic_queue_wq_desc_cont() 66 dma_addr_t dma_addr, unsigned int len, int vlan_tag_insert, in enic_queue_wq_desc() argument 69 enic_queue_wq_desc_ex(wq, os_buf, dma_addr, len, in enic_queue_wq_desc() 76 void *os_buf, dma_addr_t dma_addr, unsigned int len, in enic_queue_wq_desc_csum() argument 80 enic_queue_wq_desc_ex(wq, os_buf, dma_addr, len, in enic_queue_wq_desc_csum() 88 void *os_buf, dma_addr_t dma_addr, unsigned int len, in enic_queue_wq_desc_csum_l4() argument [all …]
|
/linux/drivers/net/ethernet/apm/xgene-v2/ |
H 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()
|
/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cpt_reqmgr.h | 104 dma_addr_t dma_addr; member 194 if (req->out[i].dma_addr) in otx2_cpt_info_destroy() 196 req->out[i].dma_addr, in otx2_cpt_info_destroy() 202 if (req->in[i].dma_addr) in otx2_cpt_info_destroy() 204 req->in[i].dma_addr, in otx2_cpt_info_destroy() 228 list[i].dma_addr = dma_map_single(&pdev->dev, list[i].vptr, in setup_sgio_components() 231 if (unlikely(dma_mapping_error(&pdev->dev, list[i].dma_addr))) { in setup_sgio_components() 243 sg_ptr->ptr0 = cpu_to_be64(list[i * SG_COMPS_MAX + 0].dma_addr); in setup_sgio_components() 244 sg_ptr->ptr1 = cpu_to_be64(list[i * SG_COMPS_MAX + 1].dma_addr); in setup_sgio_components() 245 sg_ptr->ptr2 = cpu_to_be64(list[i * SG_COMPS_MAX + 2].dma_addr); in setup_sgio_components() [all …]
|
/linux/arch/mips/sgi-ip32/ |
H 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/drivers/net/ethernet/sfc/ |
H 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 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 …]
|
H A D | mcdi_functions.c | 80 dma_addr_t dma_addr; in efx_mcdi_ev_init() local 115 dma_addr = channel->eventq.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.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/drivers/net/ethernet/sfc/siena/ |
H A D | tx_common.c | 129 dma_addr_t unmap_addr = buffer->dma_addr - buffer->dma_offset; in efx_dequeue_buffer() 289 dma_addr_t dma_addr, size_t len) in efx_siena_tx_map_chunk() argument 300 dma_len = nic_type->tx_limit_len(tx_queue, dma_addr, len); in efx_siena_tx_map_chunk() 305 buffer->dma_addr = dma_addr; in efx_siena_tx_map_chunk() 308 dma_addr += dma_len; in efx_siena_tx_map_chunk() 335 dma_addr_t dma_addr, unmap_addr; in efx_siena_tx_map_data() local 344 dma_addr = dma_map_single(dma_dev, skb->data, len, DMA_TO_DEVICE); in efx_siena_tx_map_data() 347 unmap_addr = dma_addr; in efx_siena_tx_map_data() 349 if (unlikely(dma_mapping_error(dma_dev, dma_addr))) in efx_siena_tx_map_data() 360 efx_siena_tx_map_chunk(tx_queue, dma_addr, header_len); in efx_siena_tx_map_data() [all …]
|
/linux/drivers/net/ethernet/qualcomm/emac/ |
H A 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/kernel/dma/ |
H 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
|
H 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() 71 dma_addr_t dma_addr = phys_to_dma_direct(dev, phys); in dma_coherent_ok() local 73 if (dma_addr == DMA_MAPPING_ERROR) in dma_coherent_ok() 75 return dma_addr + size - 1 <= in dma_coherent_ok() 315 void *cpu_addr, dma_addr_t dma_addr, unsigned long attrs) in dma_direct_free() argument 329 arch_dma_free(dev, size, cpu_addr, dma_addr, attrs); in dma_direct_free() 354 __dma_direct_free_pages(dev, dma_direct_to_page(dev, dma_addr), size); in dma_direct_free() 381 struct page *page, dma_addr_t dma_addr, in dma_direct_free_pages() argument 508 dma_addr_t dma_addr = paddr; in dma_direct_map_resource() local [all …]
|
H A D | direct.h | 14 void *cpu_addr, dma_addr_t dma_addr, size_t size, 18 void *cpu_addr, dma_addr_t dma_addr, size_t size, 20 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 96 if (unlikely(!dma_capable(dev, dma_addr, size, true)) || in dma_direct_map_page() 105 &dma_addr, size, *dev->dma_mask, dev->bus_dma_limit); in dma_direct_map_page() 111 return dma_addr; in dma_direct_map_page()
|
/linux/drivers/media/pci/solo6x10/ |
H 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/include/linux/ |
H A D | dma-direct.h | 43 dma_addr_t dma_addr) in translate_dma_to_phys() argument 48 u64 offset = dma_addr - m->dma_start; in translate_dma_to_phys() 50 if (dma_addr >= m->dma_start && offset < m->size) in translate_dma_to_phys() 100 static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dma_addr) in dma_to_phys() argument 105 paddr = translate_dma_to_phys(dev, dma_addr); in dma_to_phys() 107 paddr = dma_addr; in dma_to_phys() 140 dma_addr_t dma_addr, unsigned long attrs); 144 struct page *page, dma_addr_t dma_addr,
|
H A D | dma-mapping.h | 76 void debug_dma_mapping_error(struct device *dev, dma_addr_t dma_addr); 81 dma_addr_t dma_addr) in debug_dma_mapping_error() argument 91 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error() argument 93 debug_dma_mapping_error(dev, dma_addr); in dma_mapping_error() 95 if (unlikely(dma_addr == DMA_MAPPING_ERROR)) in dma_mapping_error() 125 void *cpu_addr, dma_addr_t dma_addr, size_t size, 128 void *cpu_addr, dma_addr_t dma_addr, size_t size, 185 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error() argument 208 struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, in dma_get_sgtable_attrs() argument 214 void *cpu_addr, dma_addr_t dma_addr, size_t size, in dma_mmap_attrs() argument [all …]
|
/linux/drivers/accel/ivpu/ |
H A D | ivpu_mmu_context.c | 49 dma_addr_t dma_addr; in ivpu_pgtable_alloc_page() local 59 dma_addr = dma_map_page(vdev->drm.dev, page, 0, PAGE_SIZE, DMA_BIDIRECTIONAL); in ivpu_pgtable_alloc_page() 60 if (dma_mapping_error(vdev->drm.dev, dma_addr)) in ivpu_pgtable_alloc_page() 68 *dma = dma_addr; in ivpu_pgtable_alloc_page() 72 dma_unmap_page(vdev->drm.dev, dma_addr, PAGE_SIZE, DMA_BIDIRECTIONAL); in ivpu_pgtable_alloc_page() 79 static void ivpu_pgtable_free_page(struct ivpu_device *vdev, u64 *cpu_addr, dma_addr_t dma_addr) in ivpu_pgtable_free_page() argument 86 dma_unmap_page(vdev->drm.dev, dma_addr & ~IVPU_MMU_ENTRY_FLAGS_MASK, PAGE_SIZE, in ivpu_pgtable_free_page() 240 u64 vpu_addr, dma_addr_t dma_addr, u64 prot) in ivpu_mmu_context_map_page() argument 268 pte[pte_idx] = dma_addr | prot; in ivpu_mmu_context_map_page() 275 dma_addr_t dma_addr, u64 prot) in ivpu_mmu_context_map_cont_64k() argument [all …]
|
/linux/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | venc_vpu_if.c | 270 if ((frm_buf->fb_addr[0].dma_addr % 16 == 0) && in vpu_enc_encode_32bits() 271 (frm_buf->fb_addr[1].dma_addr % 16 == 0) && in vpu_enc_encode_32bits() 272 (frm_buf->fb_addr[2].dma_addr % 16 == 0)) { in vpu_enc_encode_32bits() 273 out.base.input_addr[0] = frm_buf->fb_addr[0].dma_addr; in vpu_enc_encode_32bits() 274 out.base.input_addr[1] = frm_buf->fb_addr[1].dma_addr; in vpu_enc_encode_32bits() 275 out.base.input_addr[2] = frm_buf->fb_addr[2].dma_addr; in vpu_enc_encode_32bits() 282 out.base.bs_addr = bs_buf->dma_addr; in vpu_enc_encode_32bits() 316 if ((frm_buf->fb_addr[0].dma_addr % 16 == 0) && in vpu_enc_encode_34bits() 317 (frm_buf->fb_addr[1].dma_addr % 16 == 0) && in vpu_enc_encode_34bits() 318 (frm_buf->fb_addr[2].dma_addr % 16 == 0)) { in vpu_enc_encode_34bits() [all …]
|
/linux/drivers/xen/ |
H A D | swiotlb-xen.c | 72 dma_addr_t dma_addr) in xen_dma_to_phys() argument 74 return xen_bus_to_phys(dev, dma_to_phys(dev, dma_addr)); in xen_dma_to_phys() 98 dma_addr_t dma_addr) in xen_swiotlb_find_pool() argument 100 unsigned long bfn = XEN_PFN_DOWN(dma_to_phys(dev, dma_addr)); in xen_swiotlb_find_pool() 284 xen_swiotlb_sync_single_for_cpu(struct device *dev, dma_addr_t dma_addr, in xen_swiotlb_sync_single_for_cpu() argument 287 phys_addr_t paddr = xen_dma_to_phys(dev, dma_addr); in xen_swiotlb_sync_single_for_cpu() 291 if (pfn_valid(PFN_DOWN(dma_to_phys(dev, dma_addr)))) in xen_swiotlb_sync_single_for_cpu() 294 xen_dma_sync_for_cpu(dev, dma_addr, size, dir); in xen_swiotlb_sync_single_for_cpu() 297 pool = xen_swiotlb_find_pool(dev, dma_addr); in xen_swiotlb_sync_single_for_cpu() 303 xen_swiotlb_sync_single_for_device(struct device *dev, dma_addr_t dma_addr, in xen_swiotlb_sync_single_for_device() argument [all …]
|
/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_hevc_req_multi_if.c | 274 dma_addr_t dma_addr; member 740 inst->vsi->bs.dma_addr = (u64)bs->dma_addr; in vdec_hevc_slice_setup_lat_buffer() 761 inst->vsi->mv_buf_dma[i].dma_addr = mem->dma_addr; in vdec_hevc_slice_setup_lat_buffer() 765 inst->vsi->ube.dma_addr = lat_buf->ctx->msg_queue.wdma_addr.dma_addr; in vdec_hevc_slice_setup_lat_buffer() 768 inst->vsi->err_map.dma_addr = lat_buf->wdma_err_addr.dma_addr; in vdec_hevc_slice_setup_lat_buffer() 771 inst->vsi->slice_bc.dma_addr = lat_buf->slice_bc_addr.dma_addr; in vdec_hevc_slice_setup_lat_buffer() 775 inst->vsi->trans.dma_addr = inst->ctx->msg_queue.wdma_wptr_addr; in vdec_hevc_slice_setup_lat_buffer() 778 share_info->trans.dma_addr = inst->vsi->trans.dma_addr; in vdec_hevc_slice_setup_lat_buffer() 812 y_fb_dma = (u64)fb->base_y.dma_addr; in vdec_hevc_slice_setup_core_buffer() 817 c_fb_dma = (u64)fb->base_c.dma_addr; in vdec_hevc_slice_setup_core_buffer() [all …]
|
/linux/arch/mips/loongson2ef/lemote-2f/ |
H 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()
|
/linux/drivers/crypto/caam/ |
H 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/net/core/ |
H A D | devmem.c | 73 unsigned long dma_addr; in net_devmem_alloc_dmabuf() local 78 dma_addr = gen_pool_alloc_owner(binding->chunk_pool, PAGE_SIZE, in net_devmem_alloc_dmabuf() 80 if (!dma_addr) in net_devmem_alloc_dmabuf() 83 offset = dma_addr - owner->base_dma_addr; in net_devmem_alloc_dmabuf() 97 unsigned long dma_addr = net_devmem_get_dma_addr(niov); in net_devmem_free_dmabuf() local 99 if (WARN_ON(!gen_pool_has_addr(binding->chunk_pool, dma_addr, in net_devmem_free_dmabuf() 103 gen_pool_free(binding->chunk_pool, dma_addr, PAGE_SIZE); in net_devmem_free_dmabuf() 241 dma_addr_t dma_addr = sg_dma_address(sg); in net_devmem_bind_dmabuf() local 254 owner->base_dma_addr = dma_addr; in net_devmem_bind_dmabuf() 258 err = gen_pool_add_owner(binding->chunk_pool, dma_addr, in net_devmem_bind_dmabuf() [all …]
|
/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_rl_admin.c | 12 prep_admin_req_msg(struct rl_sla *sla, dma_addr_t dma_addr, in prep_admin_req_msg() argument 17 req->init_cfg_ptr = dma_addr; in prep_admin_req_msg() 75 dma_addr_t dma_addr; in adf_rl_send_admin_add_update_msg() local 79 &dma_addr, GFP_KERNEL); in adf_rl_send_admin_add_update_msg() 84 prep_admin_req_msg(sla, dma_addr, fw_params, &req, is_update); in adf_rl_send_admin_add_update_msg() 88 dma_addr); in adf_rl_send_admin_add_update_msg()
|
/linux/drivers/vdpa/vdpa_user/ |
H A D | iova_domain.h | 49 dma_addr_t dma_addr, size_t size, 53 dma_addr_t dma_addr, size_t size, 62 dma_addr_t dma_addr, size_t size, 66 size_t size, dma_addr_t *dma_addr, 70 void *vaddr, dma_addr_t dma_addr,
|