/drivers/bus/ |
D | uniphier-system-bus.c | 39 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/ |
D | bcm87xx.c | 36 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/xen/ |
D | swiotlb-xen.c | 55 static inline phys_addr_t xen_phys_to_bus(struct device *dev, phys_addr_t paddr) in xen_phys_to_bus() argument 57 unsigned long bfn = pfn_to_bfn(XEN_PFN_DOWN(paddr)); in xen_phys_to_bus() 60 baddr |= paddr & ~XEN_PAGE_MASK; in xen_phys_to_bus() 64 static inline dma_addr_t xen_phys_to_dma(struct device *dev, phys_addr_t paddr) in xen_phys_to_dma() argument 66 return phys_to_dma(dev, xen_phys_to_bus(dev, paddr)); in xen_phys_to_dma() 73 phys_addr_t paddr = (xen_pfn << XEN_PAGE_SHIFT) | in xen_bus_to_phys() local 76 return paddr; in xen_bus_to_phys() 108 phys_addr_t paddr = (phys_addr_t)xen_pfn << XEN_PAGE_SHIFT; in is_xen_swiotlb_buffer() local 114 if (pfn_valid(PFN_DOWN(paddr))) { in is_xen_swiotlb_buffer() 115 return paddr >= virt_to_phys(xen_io_tlb_start) && in is_xen_swiotlb_buffer() [all …]
|
/drivers/media/platform/sti/hva/ |
D | hva-mem.c | 16 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()
|
D | hva-h264.c | 603 dma_addr_t paddr = 0; in hva_h264_prepare_task() local 769 td->addr_source_buffer = frame->paddr; in hva_h264_prepare_task() 770 td->addr_fwd_ref_buffer = fwd_ref_frame->paddr; in hva_h264_prepare_task() 771 td->addr_rec_buffer = loc_rec_frame->paddr; in hva_h264_prepare_task() 773 td->addr_output_bitstream_end = (u32)stream->paddr + stream->size; in hva_h264_prepare_task() 775 td->addr_output_bitstream_start = (u32)stream->paddr; in hva_h264_prepare_task() 776 td->bitstream_offset = (((u32)stream->paddr & 0xF) << 3) & in hva_h264_prepare_task() 779 td->addr_param_out = (u32)ctx->task->paddr + in hva_h264_prepare_task() 784 paddr = seq_info->paddr; in hva_h264_prepare_task() 785 td->addr_spatial_context = ALIGN(paddr, 0x100); in hva_h264_prepare_task() [all …]
|
/drivers/video/fbdev/omap2/omapfb/ |
D | vrfb.c | 169 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/ |
D | bdisp-hw.c | 47 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/gpu/drm/ |
D | drm_fb_cma_helper.c | 68 dma_addr_t paddr; in drm_fb_cma_get_gem_addr() local 82 paddr = obj->paddr + fb->offsets[plane]; in drm_fb_cma_get_gem_addr() 94 paddr += fb->pitches[plane] * block_start_y; in drm_fb_cma_get_gem_addr() 95 paddr += block_size * num_hblocks; in drm_fb_cma_get_gem_addr() 97 return paddr; in drm_fb_cma_get_gem_addr()
|
/drivers/net/wireless/ath/ath10k/ |
D | htt_tx.c | 110 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 …]
|
D | swap.c | 86 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/net/wireless/ath/ath11k/ |
D | dbring.c | 15 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 …]
|
D | dp_rx.c | 290 dma_addr_t paddr; in ath11k_dp_rxbufs_replenish() local 320 paddr = dma_map_single(ab->dev, skb->data, in ath11k_dp_rxbufs_replenish() 323 if (dma_mapping_error(ab->dev, paddr)) in ath11k_dp_rxbufs_replenish() 337 ATH11K_SKB_RXCB(skb)->paddr = paddr; in ath11k_dp_rxbufs_replenish() 344 ath11k_hal_rx_buf_addr_info_set(desc, paddr, cookie, mgr); in ath11k_dp_rxbufs_replenish() 358 dma_unmap_single(ab->dev, paddr, skb->len + skb_tailroom(skb), in ath11k_dp_rxbufs_replenish() 383 dma_unmap_single(ar->ab->dev, ATH11K_SKB_RXCB(skb)->paddr, in ath11k_dp_rxdma_buf_ring_free() 405 dma_unmap_single(ar->ab->dev, ATH11K_SKB_RXCB(skb)->paddr, in ath11k_dp_rxdma_buf_ring_free() 633 dma_unmap_single(ab->dev, cmd->data.paddr, in ath11k_dp_reo_cmd_list_cleanup() 643 dma_unmap_single(ab->dev, cmd_cache->data.paddr, in ath11k_dp_reo_cmd_list_cleanup() [all …]
|
/drivers/atm/ |
D | eni.c | 345 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/dma/dw-edma/ |
D | dw-edma-pcie.c | 144 dw->rg_region.paddr = pdev->resource[pdata->rg_bar].start; in dw_edma_pcie_probe() 145 dw->rg_region.paddr += pdata->rg_off; in dw_edma_pcie_probe() 150 dw->ll_region.paddr = pdev->resource[pdata->ll_bar].start; in dw_edma_pcie_probe() 151 dw->ll_region.paddr += pdata->ll_off; in dw_edma_pcie_probe() 156 dw->dt_region.paddr = pdev->resource[pdata->dt_bar].start; in dw_edma_pcie_probe() 157 dw->dt_region.paddr += pdata->dt_off; in dw_edma_pcie_probe() 173 dw->rg_region.vaddr, &dw->rg_region.paddr); in dw_edma_pcie_probe() 177 dw->ll_region.vaddr, &dw->ll_region.paddr); in dw_edma_pcie_probe() 181 dw->dt_region.vaddr, &dw->dt_region.paddr); in dw_edma_pcie_probe()
|
/drivers/net/ethernet/altera/ |
D | altera_tse.h | 492 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/gpu/drm/mxsfb/ |
D | mxsfb_kms.c | 222 return gem->paddr; in mxsfb_get_fb_paddr() 350 dma_addr_t paddr; in mxsfb_crtc_atomic_enable() local 360 paddr = mxsfb_get_fb_paddr(crtc->primary); in mxsfb_crtc_atomic_enable() 361 if (paddr) { in mxsfb_crtc_atomic_enable() 362 writel(paddr, mxsfb->base + mxsfb->devdata->cur_buf); in mxsfb_crtc_atomic_enable() 363 writel(paddr, mxsfb->base + mxsfb->devdata->next_buf); in mxsfb_crtc_atomic_enable() 461 dma_addr_t paddr; in mxsfb_plane_primary_atomic_update() local 463 paddr = mxsfb_get_fb_paddr(plane); in mxsfb_plane_primary_atomic_update() 464 if (paddr) in mxsfb_plane_primary_atomic_update() 465 writel(paddr, mxsfb->base + mxsfb->devdata->next_buf); in mxsfb_plane_primary_atomic_update() [all …]
|
/drivers/lightnvm/ |
D | pblk-map.c | 32 u64 paddr; in pblk_map_page_data() local 58 paddr = pblk_alloc_page(pblk, line, nr_secs); in pblk_map_page_data() 60 for (i = 0; i < nr_secs; i++, paddr++) { in pblk_map_page_data() 65 ppa_list[i] = addr_to_gen_ppa(pblk, paddr, line->id); in pblk_map_page_data() 80 lba_list[paddr] = cpu_to_le64(w_ctx->lba); in pblk_map_page_data() 81 if (lba_list[paddr] != addr_empty) in pblk_map_page_data() 86 lba_list[paddr] = addr_empty; in pblk_map_page_data() 88 __pblk_map_invalidate(pblk, line, paddr); in pblk_map_page_data()
|
D | pblk.h | 733 u64 paddr, unsigned int pos); 828 u64 paddr); 835 struct pblk_line *gc_line, u64 paddr); 976 static inline struct ppa_addr addr_to_gen_ppa(struct pblk *pblk, u64 paddr, in addr_to_gen_ppa() argument 988 ppa.g.pg = (paddr & ppaf->pg_mask) >> ppaf->pg_offset; in addr_to_gen_ppa() 989 ppa.g.lun = (paddr & ppaf->lun_mask) >> ppaf->lun_offset; in addr_to_gen_ppa() 990 ppa.g.ch = (paddr & ppaf->ch_mask) >> ppaf->ch_offset; in addr_to_gen_ppa() 991 ppa.g.pl = (paddr & ppaf->pln_mask) >> ppaf->pln_offset; in addr_to_gen_ppa() 992 ppa.g.sec = (paddr & ppaf->sec_mask) >> ppaf->sec_offset; in addr_to_gen_ppa() 1001 paddr = div_u64_rem(paddr, uaddrf->sec_stripe, &secs); in addr_to_gen_ppa() [all …]
|
/drivers/net/wireless/quantenna/qtnfmac/pcie/ |
D | topaz_pcie.c | 188 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 …]
|
D | pearl_pcie.c | 235 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/iommu/ |
D | io-pgtable-arm-v7s.c | 185 static arm_v7s_iopte paddr_to_iopte(phys_addr_t paddr, int lvl, in paddr_to_iopte() argument 188 arm_v7s_iopte pte = paddr & ARM_V7S_LVL_MASK(lvl); in paddr_to_iopte() 193 if (paddr & BIT_ULL(32)) in paddr_to_iopte() 195 if (paddr & BIT_ULL(33)) in paddr_to_iopte() 197 if (paddr & BIT_ULL(34)) in paddr_to_iopte() 206 phys_addr_t paddr; in iopte_to_paddr() local 215 paddr = pte & mask; in iopte_to_paddr() 217 return paddr; in iopte_to_paddr() 220 paddr |= BIT_ULL(32); in iopte_to_paddr() 222 paddr |= BIT_ULL(33); in iopte_to_paddr() [all …]
|
/drivers/firmware/efi/ |
D | efi-init.c | 159 u64 paddr, npages, size; in reserve_regions() local 173 paddr = md->phys_addr; in reserve_regions() 180 paddr, paddr + (npages << EFI_PAGE_SHIFT) - 1, in reserve_regions() 184 memrange_efi_to_native(&paddr, &npages); in reserve_regions() 198 early_init_dt_add_memory_arch(paddr, size); in reserve_regions() 201 memblock_mark_nomap(paddr, size); in reserve_regions() 205 memblock_reserve(paddr, size); in reserve_regions()
|
/drivers/net/ethernet/alacritech/ |
D | slicoss.c | 100 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/ |
D | tee_shm_pool.c | 25 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/gpu/drm/sun4i/ |
D | sun4i_frontend.c | 163 dma_addr_t paddr; in sun4i_frontend_update_buffer() local 224 paddr = drm_fb_cma_get_gem_addr(fb, state, 0); in sun4i_frontend_update_buffer() 225 paddr -= PHYS_OFFSET; in sun4i_frontend_update_buffer() 226 DRM_DEBUG_DRIVER("Setting buffer #0 address to %pad\n", &paddr); in sun4i_frontend_update_buffer() 227 regmap_write(frontend->regs, SUN4I_FRONTEND_BUF_ADDR0_REG, paddr); in sun4i_frontend_update_buffer() 230 paddr = drm_fb_cma_get_gem_addr(fb, state, swap ? 2 : 1); in sun4i_frontend_update_buffer() 231 paddr -= PHYS_OFFSET; in sun4i_frontend_update_buffer() 232 DRM_DEBUG_DRIVER("Setting buffer #1 address to %pad\n", &paddr); in sun4i_frontend_update_buffer() 234 paddr); in sun4i_frontend_update_buffer() 238 paddr = drm_fb_cma_get_gem_addr(fb, state, swap ? 1 : 2); in sun4i_frontend_update_buffer() [all …]
|