/drivers/dio/ |
D | dio.c | 122 void *va; in dio_find() local 134 va = (void *)(pa + DIO_VIRADDRBASE); in dio_find() 136 va = ioremap(pa, PAGE_SIZE); in dio_find() 141 if (get_user(i, (unsigned char *)va + DIO_IDOFF)) { in dio_find() 144 iounmap(va); in dio_find() 149 prid = DIO_ID(va); in dio_find() 152 secid = DIO_SECID(va); in dio_find() 159 iounmap(va); in dio_find() 201 u_char *va; in dio_init() local 213 va = (void *)(pa + DIO_VIRADDRBASE); in dio_init() [all …]
|
/drivers/infiniband/hw/hfi1/ |
D | trace_rx.h | 134 u32 npages, unsigned long va, unsigned long pa, 136 TP_ARGS(ctxt, subctxt, rarr, npages, va, pa, dma), 142 __field(unsigned long, va) 151 __entry->va = va; 161 __entry->va, 168 unsigned long va, unsigned long pa, dma_addr_t dma), 169 TP_ARGS(ctxt, subctxt, rarr, npages, va, pa, dma), 175 __field(unsigned long, va) 184 __entry->va = va; 194 __entry->va, [all …]
|
/drivers/video/fbdev/vermilion/ |
D | vermilion.c | 87 static int vmlfb_alloc_vram_area(struct vram_area *va, unsigned max_order, in vmlfb_alloc_vram_area() argument 103 va->logical = in vmlfb_alloc_vram_area() 105 } while (va->logical == 0 && max_order > min_order); in vmlfb_alloc_vram_area() 107 if (!va->logical) in vmlfb_alloc_vram_area() 110 va->phys = virt_to_phys((void *)va->logical); in vmlfb_alloc_vram_area() 111 va->size = PAGE_SIZE << max_order; in vmlfb_alloc_vram_area() 112 va->order = max_order; in vmlfb_alloc_vram_area() 121 memset((void *)va->logical, 0x00, va->size); in vmlfb_alloc_vram_area() 122 for (i = va->logical; i < va->logical + va->size; i += PAGE_SIZE) { in vmlfb_alloc_vram_area() 130 set_pages_uc(virt_to_page(va->logical), va->size >> PAGE_SHIFT); in vmlfb_alloc_vram_area() [all …]
|
/drivers/misc/mic/scif/ |
D | scif_map.h | 28 void *va; in scif_alloc_coherent() local 31 va = kmalloc(size, gfp); in scif_alloc_coherent() 32 if (va) in scif_alloc_coherent() 33 *dma_handle = virt_to_phys(va); in scif_alloc_coherent() 35 va = dma_alloc_coherent(&scifdev->sdev->dev, in scif_alloc_coherent() 37 if (va && scifdev_is_p2p(scifdev)) in scif_alloc_coherent() 40 return va; in scif_alloc_coherent() 44 scif_free_coherent(void *va, dma_addr_t local, in scif_free_coherent() argument 48 kfree(va); in scif_free_coherent() 53 size, va, local); in scif_free_coherent()
|
/drivers/media/platform/mtk-vcodec/ |
D | mtk_vcodec_util.c | 52 mem->va = dma_alloc_coherent(dev, size, &mem->dma_addr, GFP_KERNEL); in mtk_vcodec_mem_alloc() 54 if (!mem->va) { in mtk_vcodec_mem_alloc() 60 memset(mem->va, 0, size); in mtk_vcodec_mem_alloc() 62 mtk_v4l2_debug(3, "[%d] - va = %p", ctx->id, mem->va); in mtk_vcodec_mem_alloc() 78 if (!mem->va) { in mtk_vcodec_mem_free() 84 dma_free_coherent(dev, size, mem->va, mem->dma_addr); in mtk_vcodec_mem_free() 85 mem->va = NULL; in mtk_vcodec_mem_free() 89 mtk_v4l2_debug(3, "[%d] - va = %p", ctx->id, mem->va); in mtk_vcodec_mem_free()
|
/drivers/video/fbdev/matrox/ |
D | matroxfb_base.h | 127 static inline unsigned int mga_readb(vaddr_t va, unsigned int offs) { in mga_readb() argument 128 return readb(va.vaddr + offs); in mga_readb() 131 static inline void mga_writeb(vaddr_t va, unsigned int offs, u_int8_t value) { in mga_writeb() argument 132 writeb(value, va.vaddr + offs); in mga_writeb() 135 static inline void mga_writew(vaddr_t va, unsigned int offs, u_int16_t value) { in mga_writew() argument 136 writew(value, va.vaddr + offs); in mga_writew() 139 static inline u_int32_t mga_readl(vaddr_t va, unsigned int offs) { in mga_readl() argument 140 return readl(va.vaddr + offs); in mga_readl() 143 static inline void mga_writel(vaddr_t va, unsigned int offs, u_int32_t value) { in mga_writel() argument 144 writel(value, va.vaddr + offs); in mga_writel() [all …]
|
/drivers/soc/fsl/qbman/ |
D | bman_portal.c | 114 void __iomem *va; in bman_portal_probe() local 148 va = ioremap_prot(addr_phys[0]->start, resource_size(addr_phys[0]), 0); in bman_portal_probe() 149 if (!va) in bman_portal_probe() 152 pcfg->addr_virt[DPAA_PORTAL_CE] = va; in bman_portal_probe() 154 va = ioremap_prot(addr_phys[1]->start, resource_size(addr_phys[1]), in bman_portal_probe() 156 if (!va) in bman_portal_probe() 159 pcfg->addr_virt[DPAA_PORTAL_CI] = va; in bman_portal_probe()
|
D | qman_portal.c | 242 void __iomem *va; in qman_portal_probe() local 282 va = ioremap_prot(addr_phys[0]->start, resource_size(addr_phys[0]), 0); in qman_portal_probe() 283 if (!va) in qman_portal_probe() 286 pcfg->addr_virt[DPAA_PORTAL_CE] = va; in qman_portal_probe() 288 va = ioremap_prot(addr_phys[1]->start, resource_size(addr_phys[1]), in qman_portal_probe() 290 if (!va) in qman_portal_probe() 293 pcfg->addr_virt[DPAA_PORTAL_CI] = va; in qman_portal_probe()
|
/drivers/misc/mic/host/ |
D | mic_boot.c | 43 void *va = phys_to_virt(page_to_phys(page)) + offset; in _mic_dma_map_page() local 46 return mic_map_single(mdev, va, size); in _mic_dma_map_page() 120 return mdev->aper.va + pa; in __mic_ioremap() 123 static void __mic_iounmap(struct vop_device *vpdev, void __iomem *va) in __mic_iounmap() argument 152 void *va = kmalloc(size, gfp); in __mic_dma_alloc() local 154 if (va) { in __mic_dma_alloc() 155 tmp = mic_map_single(mdev, va, size); in __mic_dma_alloc() 157 kfree(va); in __mic_dma_alloc() 158 va = NULL; in __mic_dma_alloc() 163 return va; in __mic_dma_alloc() [all …]
|
D | mic_main.c | 212 mdev->mmio.va = pci_ioremap_bar(pdev, mdev->ops->mmio_bar); in mic_probe() 213 if (!mdev->mmio.va) { in mic_probe() 221 mdev->aper.va = ioremap_wc(mdev->aper.pa, mdev->aper.len); in mic_probe() 222 if (!mdev->aper.va) { in mic_probe() 265 iounmap(mdev->aper.va); in mic_probe() 267 iounmap(mdev->mmio.va); in mic_probe() 301 iounmap(mdev->aper.va); in mic_remove() 302 iounmap(mdev->mmio.va); in mic_remove()
|
/drivers/net/wireless/ath/wil6210/ |
D | pmc.c | 27 void *va; member 116 pmc->descriptors[i].va = dma_alloc_coherent(dev, in wil_pmc_alloc() 121 if (unlikely(!pmc->descriptors[i].va)) { in wil_pmc_alloc() 129 u32 *p = (u32 *)pmc->descriptors[i].va + j; in wil_pmc_alloc() 168 for (i = 0; pmc->descriptors[i].va && i < num_descriptors; i++) { in wil_pmc_alloc() 171 pmc->descriptors[i].va, in wil_pmc_alloc() 174 pmc->descriptors[i].va = NULL; in wil_pmc_alloc() 253 pmc->descriptors[i].va && i < pmc->num_descriptors; i++) { in wil_pmc_free() 256 pmc->descriptors[i].va, in wil_pmc_free() 258 pmc->descriptors[i].va = NULL; in wil_pmc_free() [all …]
|
D | debug.c | 27 vaf.va = &args; in __wil_err() 43 vaf.va = &args; in __wil_err_ratelimited() 59 vaf.va = &args; in wil_dbg_ratelimited() 72 vaf.va = &args; in __wil_info() 85 vaf.va = &args; in wil_dbg_trace()
|
D | txrx.c | 100 size_t sz = vring->size * sizeof(vring->va[0]); in wil_vring_alloc() 105 BUILD_BUG_ON(sizeof(vring->va[0]) != 32); in wil_vring_alloc() 111 vring->va = NULL; in wil_vring_alloc() 117 vring->va = dma_alloc_coherent(dev, sz, &vring->pa, GFP_KERNEL); in wil_vring_alloc() 118 if (!vring->va) { in wil_vring_alloc() 128 volatile struct vring_tx_desc *_d = &vring->va[i].tx; in wil_vring_alloc() 134 vring->va, &vring->pa, vring->ctx); in wil_vring_alloc() 161 size_t sz = vring->size * sizeof(vring->va[0]); in wil_vring_free() 168 vring_index, vring->size, vring->va, in wil_vring_free() 172 vring->size, vring->va, in wil_vring_free() [all …]
|
/drivers/infiniband/hw/usnic/ |
D | usnic_uiom.c | 199 long unsigned va, size; in usnic_uiom_unmap_sorted_intervals() local 202 va = interval->start << PAGE_SHIFT; in usnic_uiom_unmap_sorted_intervals() 206 usnic_dbg("va 0x%lx size 0x%lx", va, PAGE_SIZE); in usnic_uiom_unmap_sorted_intervals() 207 iommu_unmap(pd->domain, va, PAGE_SIZE); in usnic_uiom_unmap_sorted_intervals() 208 va += PAGE_SIZE; in usnic_uiom_unmap_sorted_intervals() 225 vpn_start = (uiomr->va & PAGE_MASK) >> PAGE_SHIFT; in __usnic_uiom_reg_release() 256 long int va = uiomr->va & PAGE_MASK; in usnic_uiom_map_sorted_intervals() local 264 for (i = 0; i < chunk->nents; i++, va += PAGE_SIZE) { in usnic_uiom_map_sorted_intervals() 266 if ((va >> PAGE_SHIFT) < interval_node->start) in usnic_uiom_map_sorted_intervals() 269 if ((va >> PAGE_SHIFT) == interval_node->start) { in usnic_uiom_map_sorted_intervals() [all …]
|
/drivers/xen/ |
D | privcmd.c | 197 unsigned long va; member 211 ((unsigned long)(msg->npages << PAGE_SHIFT) >= -st->va)) in mmap_gfn_range() 215 if ((msg->va != st->va) || in mmap_gfn_range() 216 ((msg->va+(msg->npages<<PAGE_SHIFT)) > vma->vm_end)) in mmap_gfn_range() 220 msg->va & PAGE_MASK, in mmap_gfn_range() 227 st->va += msg->npages << PAGE_SHIFT; in mmap_gfn_range() 262 vma = find_vma(mm, msg->va); in privcmd_ioctl_mmap() 265 if (!vma || (msg->va != vma->vm_start) || vma->vm_private_data) in privcmd_ioctl_mmap() 270 state.va = vma->vm_start; in privcmd_ioctl_mmap() 290 unsigned long va; member [all …]
|
/drivers/net/ethernet/amd/ |
D | hplance.c | 130 unsigned long va = (d->resource.start + DIO_VIRADDRBASE); in hplance_init() local 135 out_8(va + DIO_IDOFF, 0xff); in hplance_init() 139 dev->base_addr = va; in hplance_init() 147 dev->dev_addr[i] = ((in_8(va + HPLANCE_NVRAMOFF + i*4 + 1) & 0xF) << 4) in hplance_init() 148 | (in_8(va + HPLANCE_NVRAMOFF + i*4 + 3) & 0xF); in hplance_init() 153 lp->lance.base = va; in hplance_init() 154 lp->lance.init_block = (struct lance_init_block *)(va + HPLANCE_MEMOFF); /* CPU addr */ in hplance_init()
|
/drivers/tee/ |
D | tee_shm_pool.c | 24 unsigned long va; in pool_op_gen_alloc() local 28 va = gen_pool_alloc(genpool, s); in pool_op_gen_alloc() 29 if (!va) in pool_op_gen_alloc() 32 memset((void *)va, 0, s); in pool_op_gen_alloc() 33 shm->kaddr = (void *)va; in pool_op_gen_alloc() 34 shm->paddr = gen_pool_virt_to_phys(genpool, va); in pool_op_gen_alloc()
|
/drivers/remoteproc/ |
D | remoteproc_core.c | 193 ptr = carveout->va + offset; in rproc_da_to_va() 210 void *va; in rproc_alloc_vring() local 220 va = dma_alloc_coherent(dev->parent, size, &dma, GFP_KERNEL); in rproc_alloc_vring() 221 if (!va) { in rproc_alloc_vring() 234 dma_free_coherent(dev->parent, size, va, dma); in rproc_alloc_vring() 240 i, va, &dma, size, notifyid); in rproc_alloc_vring() 242 rvring->va = va; in rproc_alloc_vring() 290 dma_free_coherent(rproc->dev.parent, size, rvring->va, rvring->dma); in rproc_free_vring() 435 trace->va = ptr; in rproc_handle_trace() 443 trace->va = NULL; in rproc_handle_trace() [all …]
|
/drivers/net/ethernet/emulex/benet/ |
D | be_cmds.c | 674 struct be_mcc_mailbox *mbox = mbox_mem->va; in be_mbox_notify_wait() 826 int i, buf_pages = min(PAGES_4K_SPANNED(mem->va, mem->size), max_pages); in be_cmd_page_addrs_prepare() 840 = &((struct be_mcc_mailbox *)(mbox_mem->va))->wrb; in wrb_from_mbox() 1020 req->num_pages = cpu_to_le16(PAGES_4K_SPANNED(q_mem->va, q_mem->size)); in be_cmd_eq_create() 1182 req->num_pages = cpu_to_le16(PAGES_4K_SPANNED(q_mem->va, q_mem->size)); in be_cmd_cq_create() 1260 req->num_pages = cpu_to_le16(PAGES_4K_SPANNED(q_mem->va, q_mem->size)); in be_cmd_mccq_ext_create() 1325 req->num_pages = cpu_to_le16(PAGES_4K_SPANNED(q_mem->va, q_mem->size)); in be_cmd_mccq_org_create() 1387 req->num_pages = PAGES_4K_SPANNED(q_mem->va, q_mem->size); in be_cmd_txq_create() 1606 hdr = nonemb_cmd->va; in be_cmd_get_stats() 1650 req = nonemb_cmd->va; in lancer_cmd_get_pport_stats() [all …]
|
/drivers/firmware/efi/ |
D | esrt.c | 240 void *va; in efi_esrt_init() local 274 va = early_memremap(efi.esrt, size); in efi_esrt_init() 275 if (!va) { in efi_esrt_init() 281 memcpy(&tmpesrt, va, sizeof(tmpesrt)); in efi_esrt_init() 322 early_memunmap(va, size); in efi_esrt_init() 324 va = early_memremap(efi.esrt, size); in efi_esrt_init() 325 if (!va) { in efi_esrt_init() 340 early_memunmap(va, size); in efi_esrt_init()
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_stats.c | 76 mem->va = dma_alloc_coherent(&dev->nic_info.pdev->dev, mem->size, in ocrdma_alloc_stats_resources() 78 if (!mem->va) { in ocrdma_alloc_stats_resources() 83 memset(mem->va, 0, mem->size); in ocrdma_alloc_stats_resources() 99 if (mem->va) in ocrdma_release_stats_resources() 101 mem->va, mem->pa); in ocrdma_release_stats_resources() 102 mem->va = NULL; in ocrdma_release_stats_resources() 110 (struct ocrdma_rdma_stats_resp *)dev->stats_mem.va; in ocrdma_resource_stats() 227 (struct ocrdma_rdma_stats_resp *)dev->stats_mem.va; in ocrdma_rx_stats() 273 (struct ocrdma_rdma_stats_resp *)dev->stats_mem.va; in ocrdma_sysfs_rcv_pkts() 284 (struct ocrdma_rdma_stats_resp *)dev->stats_mem.va; in ocrdma_sysfs_rcv_data() [all …]
|
D | ocrdma_hw.c | 112 return eq->q.va + (eq->q.tail * sizeof(struct ocrdma_eqe)); in ocrdma_get_eqe() 123 (dev->mq.cq.va + (dev->mq.cq.tail * sizeof(struct ocrdma_mcqe))); in ocrdma_get_mcqe() 137 return dev->mq.sq.va + (dev->mq.sq.head * sizeof(struct ocrdma_mqe)); in ocrdma_get_mqe() 147 return dev->mq.sq.va + (dev->mqe_ctx.tag * sizeof(struct ocrdma_mqe)); in ocrdma_get_mqe_rsp() 369 dma_free_coherent(&dev->nic_info.pdev->dev, q->size, q->va, q->dma); in ocrdma_free_q() 379 q->va = dma_alloc_coherent(&dev->nic_info.pdev->dev, q->size, in ocrdma_alloc_q() 381 if (!q->va) in ocrdma_alloc_q() 383 memset(q->va, 0, q->size); in ocrdma_alloc_q() 535 cmd->pgsz_pgcnt |= PAGES_4K_SPANNED(cq->va, cq->size); in ocrdma_mbx_mq_cq_create() 571 num_pages = PAGES_4K_SPANNED(mq->va, mq->size); in ocrdma_mbx_create_mq() [all …]
|
D | ocrdma.h | 121 void *va; member 127 void *va; member 132 void *va; member 190 u64 va; member 223 void *va; member 266 struct ocrdma_av *va; member 319 struct ocrdma_cqe *va; member 364 u8 *va; /* virtual address */ member 443 u32 *va; member
|
/drivers/scsi/be2iscsi/ |
D | be_mgmt.c | 74 struct be_bsg_vendor_cmd *req = nonemb_cmd->va; in mgmt_vendor_specific_fw_cmd() 78 memset(nonemb_cmd->va, 0, nonemb_cmd->size); in mgmt_vendor_specific_fw_cmd() 79 resp = nonemb_cmd->va; in mgmt_vendor_specific_fw_cmd() 97 nonemb_cmd->va + offset, job->request_len); in mgmt_vendor_specific_fw_cmd() 150 req = nonemb_cmd->va; in mgmt_invalidate_icds() 293 req = nonemb_cmd->va; in mgmt_open_connection() 388 memcpy(resp_buf, nonemb_cmd->va, resp_buf_len); in mgmt_exec_nonemb_cmd() 406 nonemb_cmd->va, nonemb_cmd->dma); in mgmt_exec_nonemb_cmd() 413 cmd->va = pci_zalloc_consistent(phba->ctrl.pdev, size, &cmd->dma); in mgmt_alloc_cmd_data() 414 if (!cmd->va) { in mgmt_alloc_cmd_data() [all …]
|
/drivers/media/platform/mtk-vcodec/venc/ |
D | venc_h264_if.c | 269 inst->work_bufs[i].va = vpu_mapping_dm_addr( in h264_enc_alloc_work_buf() 291 memcpy(inst->work_bufs[i].va, tmp_va, in h264_enc_alloc_work_buf() 299 i, inst->work_bufs[i].va, in h264_enc_alloc_work_buf() 405 memcpy(bs_buf->va + bs_size_sps, inst->pps_buf.va, bs_size_pps); in h264_encode_header() 432 memcpy(bs_buf->va, in h264_encode_frame() 433 inst->work_bufs[VENC_H264_VPU_WORK_BUF_SKIP_FRAME].va, in h264_encode_frame() 558 h264_encode_filler(inst, bs_buf->va + hdr_sz, in h264_enc_encode() 562 tmp_bs_buf.va = bs_buf->va + hdr_sz + filler_sz; in h264_enc_encode()
|