Home
last modified time | relevance | path

Searched refs:paddr (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/drivers/bus/
Duniphier-system-bus.c39 int bank, u32 addr, u64 paddr, u32 size) in uniphier_system_bus_add_bank() argument
45 bank, addr, paddr, size); in uniphier_system_bus_add_bank()
58 if (paddr > U32_MAX) { in uniphier_system_bus_add_bank()
59 dev_err(priv->dev, "base address %llx is too high\n", paddr); in uniphier_system_bus_add_bank()
63 end = paddr + size; in uniphier_system_bus_add_bank()
65 if (addr > paddr) { in uniphier_system_bus_add_bank()
68 addr, paddr); in uniphier_system_bus_add_bank()
71 paddr -= addr; in uniphier_system_bus_add_bank()
73 paddr = round_down(paddr, 0x00020000); in uniphier_system_bus_add_bank()
80 mask = paddr ^ (end - 1); in uniphier_system_bus_add_bank()
[all …]
/drivers/net/phy/
Dbcm87xx.c36 const __be32 *paddr; in bcm87xx_of_reg_init() local
43 paddr = of_get_property(phydev->mdio.dev.of_node, in bcm87xx_of_reg_init()
45 if (!paddr) in bcm87xx_of_reg_init()
48 paddr_end = paddr + (len /= sizeof(*paddr)); in bcm87xx_of_reg_init()
52 while (paddr + 3 < paddr_end) { in bcm87xx_of_reg_init()
53 u16 devid = be32_to_cpup(paddr++); in bcm87xx_of_reg_init()
54 u16 reg = be32_to_cpup(paddr++); in bcm87xx_of_reg_init()
55 u16 mask = be32_to_cpup(paddr++); in bcm87xx_of_reg_init()
56 u16 val_bits = be32_to_cpup(paddr++); in bcm87xx_of_reg_init()
/drivers/media/platform/sti/hva/
Dhva-mem.c16 dma_addr_t paddr; in hva_mem_alloc() local
25 base = dma_alloc_attrs(dev, size, &paddr, GFP_KERNEL, in hva_mem_alloc()
36 b->paddr = paddr; in hva_mem_alloc()
42 ctx->name, size, b->vaddr, &b->paddr, b->name); in hva_mem_alloc()
56 ctx->name, buf->size, buf->vaddr, &buf->paddr, buf->name); in hva_mem_free()
58 dma_free_attrs(dev, buf->size, buf->vaddr, buf->paddr, in hva_mem_free()
Dhva-h264.c605 dma_addr_t paddr = 0; in hva_h264_prepare_task() local
771 td->addr_source_buffer = frame->paddr; in hva_h264_prepare_task()
772 td->addr_fwd_ref_buffer = fwd_ref_frame->paddr; in hva_h264_prepare_task()
773 td->addr_rec_buffer = loc_rec_frame->paddr; in hva_h264_prepare_task()
775 td->addr_output_bitstream_end = (u32)stream->paddr + stream->size; in hva_h264_prepare_task()
777 td->addr_output_bitstream_start = (u32)stream->paddr; in hva_h264_prepare_task()
778 td->bitstream_offset = (((u32)stream->paddr & 0xF) << 3) & in hva_h264_prepare_task()
781 td->addr_param_out = (u32)ctx->task->paddr + in hva_h264_prepare_task()
786 paddr = seq_info->paddr; in hva_h264_prepare_task()
787 td->addr_spatial_context = ALIGN(paddr, 0x100); in hva_h264_prepare_task()
[all …]
/drivers/xen/
Dswiotlb-xen.c48 static inline phys_addr_t xen_phys_to_bus(struct device *dev, phys_addr_t paddr) in xen_phys_to_bus() argument
50 unsigned long bfn = pfn_to_bfn(XEN_PFN_DOWN(paddr)); in xen_phys_to_bus()
53 baddr |= paddr & ~XEN_PAGE_MASK; in xen_phys_to_bus()
57 static inline dma_addr_t xen_phys_to_dma(struct device *dev, phys_addr_t paddr) in xen_phys_to_dma() argument
59 return phys_to_dma(dev, xen_phys_to_bus(dev, paddr)); in xen_phys_to_dma()
66 phys_addr_t paddr = (xen_pfn << XEN_PAGE_SHIFT) | in xen_bus_to_phys() local
69 return paddr; in xen_bus_to_phys()
96 phys_addr_t paddr = (phys_addr_t)xen_pfn << XEN_PAGE_SHIFT; in is_xen_swiotlb_buffer() local
102 if (pfn_valid(PFN_DOWN(paddr))) in is_xen_swiotlb_buffer()
103 return is_swiotlb_buffer(dev, paddr); in is_xen_swiotlb_buffer()
[all …]
/drivers/video/fbdev/omap2/omapfb/
Dvrfb.c169 void omap_vrfb_setup(struct vrfb *vrfb, unsigned long paddr, in omap_vrfb_setup() argument
180 DBG("omapfb_set_vrfb(%d, %lx, %dx%d, %d, %d)\n", ctx, paddr, in omap_vrfb_setup()
211 ctxs[ctx].physical_ba = paddr; in omap_vrfb_setup()
215 omap2_sms_write_rot_physical_ba(paddr, ctx); in omap_vrfb_setup()
235 vrfb->vaddr[rot] = ioremap_wc(vrfb->paddr[rot], size); in omap_vrfb_map_angle()
266 if (vrfb->paddr[rot]) { in omap_vrfb_release_ctx()
267 release_mem_region(vrfb->paddr[rot], OMAP_VRFB_SIZE); in omap_vrfb_release_ctx()
268 vrfb->paddr[rot] = 0; in omap_vrfb_release_ctx()
281 u32 paddr; in omap_vrfb_request_ctx() local
308 paddr = ctxs[ctx].base + SMS_ROT_VIRT_BASE(rot); in omap_vrfb_request_ctx()
[all …]
/drivers/media/platform/sti/bdisp/
Dbdisp-hw.c47 dma_addr_t paddr; /* Physical address for filter table */ member
454 dma_addr_t paddr; in bdisp_hw_alloc_nodes() local
457 base = dma_alloc_attrs(dev, node_size * MAX_NB_NODE, &paddr, in bdisp_hw_alloc_nodes()
468 ctx->node_paddr[i] = paddr; in bdisp_hw_alloc_nodes()
470 &paddr); in bdisp_hw_alloc_nodes()
472 paddr += node_size; in bdisp_hw_alloc_nodes()
493 bdisp_h_filter[0].paddr, DMA_ATTR_WRITE_COMBINE); in bdisp_hw_free_filters()
509 dma_addr_t paddr; in bdisp_hw_alloc_filters() local
513 base = dma_alloc_attrs(dev, size, &paddr, GFP_KERNEL, in bdisp_hw_alloc_filters()
524 bdisp_h_filter[i].paddr = paddr; in bdisp_hw_alloc_filters()
[all …]
/drivers/iommu/
Dio-pgtable-arm-v7s.c185 static arm_v7s_iopte to_mtk_iopte(phys_addr_t paddr, arm_v7s_iopte pte) in to_mtk_iopte() argument
187 if (paddr & BIT_ULL(32)) in to_mtk_iopte()
189 if (paddr & BIT_ULL(33)) in to_mtk_iopte()
191 if (paddr & BIT_ULL(34)) in to_mtk_iopte()
196 static arm_v7s_iopte paddr_to_iopte(phys_addr_t paddr, int lvl, in paddr_to_iopte() argument
199 arm_v7s_iopte pte = paddr & ARM_V7S_LVL_MASK(lvl); in paddr_to_iopte()
202 return to_mtk_iopte(paddr, pte); in paddr_to_iopte()
211 phys_addr_t paddr; in iopte_to_paddr() local
220 paddr = pte & mask; in iopte_to_paddr()
222 return paddr; in iopte_to_paddr()
[all …]
/drivers/net/wireless/ath/ath10k/
Dhtt_tx.c110 ar->htt.tx_q_state.paddr, in __ath10k_htt_tx_txq_sync()
234 htt->txbuf.paddr); in ath10k_htt_tx_free_cont_txbuf_32()
247 &htt->txbuf.paddr, in ath10k_htt_tx_alloc_cont_txbuf_32()
267 htt->txbuf.paddr); in ath10k_htt_tx_free_cont_txbuf_64()
280 &htt->txbuf.paddr, in ath10k_htt_tx_alloc_cont_txbuf_64()
303 htt->frag_desc.paddr); in ath10k_htt_tx_free_cont_frag_desc_32()
319 &htt->frag_desc.paddr, in ath10k_htt_tx_alloc_cont_frag_desc_32()
343 htt->frag_desc.paddr); in ath10k_htt_tx_free_cont_frag_desc_64()
360 &htt->frag_desc.paddr, in ath10k_htt_tx_alloc_cont_frag_desc_64()
382 dma_unmap_single(ar->dev, htt->tx_q_state.paddr, size, DMA_TO_DEVICE); in ath10k_htt_tx_free_txq()
[all …]
Dswap.c86 seg_info->paddr[0]); in ath10k_swap_code_seg_free()
94 dma_addr_t paddr; in ath10k_swap_code_seg_alloc() local
107 virt_addr = dma_alloc_coherent(ar->dev, swap_bin_len, &paddr, in ath10k_swap_code_seg_alloc()
112 seg_info->seg_hw_info.bus_addr[0] = __cpu_to_le32(paddr); in ath10k_swap_code_seg_alloc()
119 seg_info->paddr[0] = paddr; in ath10k_swap_code_seg_alloc()
/drivers/dma/dw-edma/
Ddw-edma-pcie.c247 dw->rg_region.paddr = pdev->resource[vsec_data.rg.bar].start; in dw_edma_pcie_probe()
248 dw->rg_region.paddr += vsec_data.rg.off; in dw_edma_pcie_probe()
262 ll_region->paddr = pdev->resource[ll_block->bar].start; in dw_edma_pcie_probe()
263 ll_region->paddr += ll_block->off; in dw_edma_pcie_probe()
271 dt_region->paddr = pdev->resource[dt_block->bar].start; in dw_edma_pcie_probe()
272 dt_region->paddr += dt_block->off; in dw_edma_pcie_probe()
287 ll_region->paddr = pdev->resource[ll_block->bar].start; in dw_edma_pcie_probe()
288 ll_region->paddr += ll_block->off; in dw_edma_pcie_probe()
296 dt_region->paddr = pdev->resource[dt_block->bar].start; in dw_edma_pcie_probe()
297 dt_region->paddr += dt_block->off; in dw_edma_pcie_probe()
[all …]
/drivers/atm/
Deni.c345 dma_addr_t paddr; in do_rx_dma() local
351 paddr = 0; /* GCC, shut up */ in do_rx_dma()
353 paddr = dma_map_single(&eni_dev->pci_dev->dev,skb->data,skb->len, in do_rx_dma()
355 if (dma_mapping_error(&eni_dev->pci_dev->dev, paddr)) in do_rx_dma()
357 ENI_PRV_PADDR(skb) = paddr; in do_rx_dma()
358 if (paddr & 3) in do_rx_dma()
361 vcc->vci,(unsigned long) paddr); in do_rx_dma()
384 if (paddr & 15) { in do_rx_dma()
387 init = 4-((paddr & 15) >> 2); in do_rx_dma()
391 dma[j++] = paddr; in do_rx_dma()
[all …]
/drivers/net/wireless/ath/ath11k/
Ddbring.c15 dma_addr_t paddr; in ath11k_dbring_bufs_replenish() local
29 paddr = dma_map_single(ab->dev, ptr_aligned, ring->buf_sz, in ath11k_dbring_bufs_replenish()
32 ret = dma_mapping_error(ab->dev, paddr); in ath11k_dbring_bufs_replenish()
50 buff->paddr = paddr; in ath11k_dbring_bufs_replenish()
55 ath11k_hal_rx_buf_addr_info_set(desc, paddr, cookie, 0); in ath11k_dbring_bufs_replenish()
66 dma_unmap_single(ab->dev, paddr, ring->buf_sz, in ath11k_dbring_bufs_replenish()
124 param.base_paddr_lo = lower_32_bits(ring->refill_srng.paddr); in ath11k_dbring_wmi_cfg_setup()
125 param.base_paddr_hi = upper_32_bits(ring->refill_srng.paddr); in ath11k_dbring_wmi_cfg_setup()
241 dma_addr_t paddr; in ath11k_dbring_buffer_release_event() local
297 ath11k_hal_rx_buf_addr_info_get(&desc, &paddr, &cookie, &rbm); in ath11k_dbring_buffer_release_event()
[all …]
/drivers/net/ethernet/altera/
Daltera_tse.h492 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrrd32() local
493 return readl(paddr); in csrrd32()
499 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrrd16() local
500 return readw(paddr); in csrrd16()
506 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrrd8() local
507 return readb(paddr); in csrrd8()
513 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrwr32() local
515 writel(val, paddr); in csrwr32()
521 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrwr16() local
523 writew(val, paddr); in csrwr16()
[all …]
/drivers/firmware/efi/
Defi-init.c168 u64 paddr, npages, size; in reserve_regions() local
182 paddr = md->phys_addr; in reserve_regions()
189 paddr, paddr + (npages << EFI_PAGE_SHIFT) - 1, in reserve_regions()
193 memrange_efi_to_native(&paddr, &npages); in reserve_regions()
197 early_init_dt_add_memory_arch(paddr, size); in reserve_regions()
200 memblock_mark_nomap(paddr, size); in reserve_regions()
204 memblock_reserve(paddr, size); in reserve_regions()
/drivers/gpu/drm/mxsfb/
Dmxsfb_kms.c219 return gem->paddr; in mxsfb_get_fb_paddr()
352 dma_addr_t paddr; in mxsfb_crtc_atomic_enable() local
388 paddr = mxsfb_get_fb_paddr(crtc->primary); in mxsfb_crtc_atomic_enable()
389 if (paddr) { in mxsfb_crtc_atomic_enable()
390 writel(paddr, mxsfb->base + mxsfb->devdata->cur_buf); in mxsfb_crtc_atomic_enable()
391 writel(paddr, mxsfb->base + mxsfb->devdata->next_buf); in mxsfb_crtc_atomic_enable()
491 dma_addr_t paddr; in mxsfb_plane_primary_atomic_update() local
493 paddr = mxsfb_get_fb_paddr(plane); in mxsfb_plane_primary_atomic_update()
494 if (paddr) in mxsfb_plane_primary_atomic_update()
495 writel(paddr, mxsfb->base + mxsfb->devdata->next_buf); in mxsfb_plane_primary_atomic_update()
[all …]
/drivers/gpu/drm/
Ddrm_fb_cma_helper.c70 dma_addr_t paddr; in drm_fb_cma_get_gem_addr() local
84 paddr = obj->paddr + fb->offsets[plane]; in drm_fb_cma_get_gem_addr()
96 paddr += fb->pitches[plane] * block_start_y; in drm_fb_cma_get_gem_addr()
97 paddr += block_size * num_hblocks; in drm_fb_cma_get_gem_addr()
99 return paddr; in drm_fb_cma_get_gem_addr()
Ddrm_gem_cma_helper.c127 &cma_obj->paddr, in drm_gem_cma_create()
131 cma_obj->vaddr = dma_alloc_wc(drm->dev, size, &cma_obj->paddr, in drm_gem_cma_create()
215 cma_obj->vaddr, cma_obj->paddr, in drm_gem_cma_free_object()
219 cma_obj->vaddr, cma_obj->paddr); in drm_gem_cma_free_object()
385 drm_printf_indent(p, indent, "paddr=%pad\n", &cma_obj->paddr); in drm_gem_cma_print_info()
413 cma_obj->paddr, obj->size); in drm_gem_cma_get_sg_table()
458 cma_obj->paddr = sg_dma_address(sgt->sgl); in drm_gem_cma_prime_import_sg_table()
461 DRM_DEBUG_PRIME("dma_addr = %pad, size = %zu\n", &cma_obj->paddr, attach->dmabuf->size); in drm_gem_cma_prime_import_sg_table()
530 cma_obj->paddr, vma->vm_end - vma->vm_start); in drm_gem_cma_mmap()
/drivers/net/wireless/quantenna/qtnfmac/pcie/
Dtopaz_pcie.c188 dma_addr_t paddr; in topaz_alloc_bd_table() local
199 vaddr = dmam_alloc_coherent(&priv->pdev->dev, len, &paddr, GFP_KERNEL); in topaz_alloc_bd_table()
206 qtnf_non_posted_write(paddr, &bda->bda_rc_tx_bd_base); in topaz_alloc_bd_table()
211 pr_debug("TX descriptor table: vaddr=0x%p paddr=%pad\n", vaddr, &paddr); in topaz_alloc_bd_table()
219 paddr += priv->tx_bd_num * sizeof(struct qtnf_topaz_tx_bd); in topaz_alloc_bd_table()
222 qtnf_non_posted_write(paddr, &bda->bda_rc_rx_bd_base); in topaz_alloc_bd_table()
224 pr_debug("RX descriptor table: vaddr=0x%p paddr=%pad\n", vaddr, &paddr); in topaz_alloc_bd_table()
229 paddr += priv->rx_bd_num * sizeof(struct qtnf_topaz_rx_bd); in topaz_alloc_bd_table()
234 qtnf_non_posted_write(paddr + QTNF_BD_PARAM_OFFSET(1), in topaz_alloc_bd_table()
238 ts->dma_msi_dummy = paddr + QTNF_BD_PARAM_OFFSET(4); in topaz_alloc_bd_table()
[all …]
Dpearl_pcie.c235 dma_addr_t paddr; in pearl_alloc_bd_table() local
242 vaddr = dmam_alloc_coherent(&priv->pdev->dev, len, &paddr, GFP_KERNEL); in pearl_alloc_bd_table()
249 ps->bd_table_paddr = paddr; in pearl_alloc_bd_table()
253 ps->tx_bd_pbase = paddr; in pearl_alloc_bd_table()
255 pr_debug("TX descriptor table: vaddr=0x%p paddr=%pad\n", vaddr, &paddr); in pearl_alloc_bd_table()
263 paddr += priv->tx_bd_num * sizeof(struct qtnf_pearl_tx_bd); in pearl_alloc_bd_table()
266 ps->rx_bd_pbase = paddr; in pearl_alloc_bd_table()
269 writel(QTN_HOST_HI32(paddr), in pearl_alloc_bd_table()
272 writel(QTN_HOST_LO32(paddr), in pearl_alloc_bd_table()
277 pr_debug("RX descriptor table: vaddr=0x%p paddr=%pad\n", vaddr, &paddr); in pearl_alloc_bd_table()
[all …]
/drivers/net/ethernet/alacritech/
Dslicoss.c100 dma_addr_t paddr = stq->paddr[active]; in slic_next_compl_idx() local
102 slic_write(sdev, SLIC_REG_RBAR, lower_32_bits(paddr) | in slic_next_compl_idx()
145 slic_write(sdev, reg, lower_32_bits(upr->paddr)); in slic_start_upr()
191 dma_addr_t paddr) in slic_new_upr() argument
199 upr->paddr = paddr; in slic_new_upr()
403 dma_addr_t paddr; in slic_refill_rx_queue() local
410 paddr = dma_map_single(&sdev->pdev->dev, skb->data, maplen, in slic_refill_rx_queue()
412 if (dma_mapping_error(&sdev->pdev->dev, paddr)) { in slic_refill_rx_queue()
420 misalign = paddr & ALIGN_MASK; in slic_refill_rx_queue()
428 dma_sync_single_for_cpu(&sdev->pdev->dev, paddr, in slic_refill_rx_queue()
[all …]
/drivers/tee/
Dtee_shm_pool.c25 shm->paddr = gen_pool_virt_to_phys(genpool, va); in pool_op_gen_alloc()
74 rc = tee_shm_pool_mgr_alloc_res_mem(priv_info->vaddr, priv_info->paddr, in tee_shm_pool_alloc_res_mem()
85 dmabuf_info->paddr, in tee_shm_pool_alloc_res_mem()
107 phys_addr_t paddr, in tee_shm_pool_mgr_alloc_res_mem() argument
116 if (vaddr & page_mask || paddr & page_mask || size & page_mask) in tee_shm_pool_mgr_alloc_res_mem()
130 rc = gen_pool_add_virt(mgr->private_data, vaddr, paddr, size, -1); in tee_shm_pool_mgr_alloc_res_mem()
/drivers/media/platform/sti/delta/
Ddelta-mem.c29 buf->paddr = dma_addr; in hw_alloc()
36 ctx->name, size, buf->vaddr, &buf->paddr, buf->name); in hw_alloc()
47 ctx->name, buf->size, buf->vaddr, &buf->paddr, buf->name); in hw_free()
50 buf->vaddr, buf->paddr, buf->attrs); in hw_free()
/drivers/firmware/
Dstratix10-svc.c92 phys_addr_t paddr; member
110 phys_addr_t paddr; member
181 if (pmem->paddr == addr) in svc_pa_to_va()
372 (unsigned int)pdata->paddr, pdata->command, in svc_normal_to_secure_thread()
387 a1 = (unsigned long)pdata->paddr; in svc_normal_to_secure_thread()
612 phys_addr_t paddr; in svc_create_memory_pool() local
623 paddr = begin; in svc_create_memory_pool()
625 va = devm_memremap(dev, paddr, size, MEMREMAP_WC); in svc_create_memory_pool()
633 va, (unsigned int)paddr, (unsigned int)size); in svc_create_memory_pool()
634 if ((vaddr & page_mask) || (paddr & page_mask) || in svc_create_memory_pool()
[all …]
/drivers/i2c/busses/
Di2c-xgene-slimpro.c274 dma_addr_t paddr; in slimpro_i2c_blkrd() local
278 paddr = dma_map_single(ctx->dev, ctx->dma_buffer, readlen, DMA_FROM_DEVICE); in slimpro_i2c_blkrd()
279 if (dma_mapping_error(ctx->dev, paddr)) { in slimpro_i2c_blkrd()
289 SLIMPRO_IIC_ENCODE_UPPER_BUFADDR(paddr) | in slimpro_i2c_blkrd()
291 msg[2] = (u32)paddr; in slimpro_i2c_blkrd()
298 dma_unmap_single(ctx->dev, paddr, readlen, DMA_FROM_DEVICE); in slimpro_i2c_blkrd()
306 dma_addr_t paddr; in slimpro_i2c_blkwr() local
314 paddr = dma_map_single(ctx->dev, ctx->dma_buffer, writelen, in slimpro_i2c_blkwr()
316 if (dma_mapping_error(ctx->dev, paddr)) { in slimpro_i2c_blkwr()
325 SLIMPRO_IIC_ENCODE_UPPER_BUFADDR(paddr) | in slimpro_i2c_blkwr()
[all …]

12345678910>>...12