/drivers/scsi/qedi/ |
D | qedi_dbg.c | 17 va_list va; in qedi_dbg_err() local 20 va_start(va, fmt); in qedi_dbg_err() 23 vaf.va = &va; in qedi_dbg_err() 31 va_end(va); in qedi_dbg_err() 38 va_list va; in qedi_dbg_warn() local 41 va_start(va, fmt); in qedi_dbg_warn() 44 vaf.va = &va; in qedi_dbg_warn() 56 va_end(va); in qedi_dbg_warn() 63 va_list va; in qedi_dbg_notice() local 66 va_start(va, fmt); in qedi_dbg_notice() [all …]
|
/drivers/scsi/qedf/ |
D | qedf_dbg.c | 16 va_list va; in qedf_dbg_err() local 23 va_start(va, fmt); in qedf_dbg_err() 26 vaf.va = &va; in qedf_dbg_err() 34 va_end(va); in qedf_dbg_err() 41 va_list va; in qedf_dbg_warn() local 48 va_start(va, fmt); in qedf_dbg_warn() 51 vaf.va = &va; in qedf_dbg_warn() 63 va_end(va); in qedf_dbg_warn() 70 va_list va; in qedf_dbg_notice() local 77 va_start(va, fmt); in qedf_dbg_notice() [all …]
|
/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() 138 if (probe_kernel_read(&i, (unsigned char *)va + DIO_IDOFF, 1)) { in dio_find() 140 iounmap(va); in dio_find() 144 prid = DIO_ID(va); in dio_find() 147 secid = DIO_SECID(va); in dio_find() 154 iounmap(va); in dio_find() 195 u_char *va; in dio_init() local 207 va = (void *)(pa + DIO_VIRADDRBASE); in dio_init() [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/infiniband/hw/hfi1/ |
D | trace_rx.h | 151 u32 npages, unsigned long va, unsigned long pa, 153 TP_ARGS(ctxt, subctxt, rarr, npages, va, pa, dma), 159 __field(unsigned long, va) 168 __entry->va = va; 178 __entry->va, 186 unsigned long va, unsigned long pa, dma_addr_t dma), 187 TP_ARGS(ctxt, subctxt, rarr, npages, va, pa, dma)); 192 unsigned long va, unsigned long pa, dma_addr_t dma), 193 TP_ARGS(ctxt, subctxt, rarr, npages, va, pa, dma)); 224 TP_PROTO(unsigned int ctxt, u16 subctxt, unsigned long va, u32 rarr, [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/gpu/drm/i915/gvt/ |
D | opregion.c | 33 if (WARN((vgpu_opregion(vgpu)->va), in init_vgpu_opregion() 38 vgpu_opregion(vgpu)->va = (void *)__get_free_pages(GFP_KERNEL | in init_vgpu_opregion() 42 if (!vgpu_opregion(vgpu)->va) in init_vgpu_opregion() 45 memcpy(vgpu_opregion(vgpu)->va, vgpu->gvt->opregion.opregion_va, in init_vgpu_opregion() 55 buf = (u8 *)vgpu_opregion(vgpu)->va; in init_vgpu_opregion() 67 mfn = intel_gvt_hypervisor_virt_to_mfn(vgpu_opregion(vgpu)->va in map_vgpu_opregion() 94 if (!vgpu_opregion(vgpu)->va) in intel_vgpu_clean_opregion() 99 free_pages((unsigned long)vgpu_opregion(vgpu)->va, in intel_vgpu_clean_opregion() 102 vgpu_opregion(vgpu)->va = NULL; in intel_vgpu_clean_opregion() 287 scic = vgpu_opregion(vgpu)->va + INTEL_GVT_OPREGION_SCIC; in intel_vgpu_emulate_opregion_request() [all …]
|
/drivers/media/platform/mtk-vcodec/vdec/ |
D | vdec_vp9_if.c | 44 unsigned long va; member 230 if (fb->base_y.va == addr) { in vp9_rm_from_fb_use_list() 280 vsi->frm_bufs[ref_idx].buf.fb->base_y.va); in vp9_ref_cnt_fb() 298 if (vsi->sf_ref_fb[i].fb.base_y.va) { in vp9_free_all_sf_ref_fb() 323 if (vsi->sf_ref_fb[idx].fb.base_y.va && in vp9_get_sf_ref_fb() 332 if (vsi->sf_ref_fb[idx].fb.base_y.va == NULL) in vp9_get_sf_ref_fb() 397 if (mem->va) in vp9_alloc_work_buf() 409 vsi->mv_buf.va = (unsigned long)mem->va; in vp9_alloc_work_buf() 415 if (mem->va) in vp9_alloc_work_buf() 426 vsi->seg_id_buf.va = (unsigned long)mem->va; in vp9_alloc_work_buf() [all …]
|
/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 mtk_v4l2_debug(3, "[%d] - va = %p", ctx->id, mem->va); in mtk_vcodec_mem_free() 89 dma_free_coherent(dev, size, mem->va, mem->dma_addr); in mtk_vcodec_mem_free() 90 mem->va = NULL; in mtk_vcodec_mem_free()
|
/drivers/video/fbdev/matrox/ |
D | matroxfb_base.h | 128 static inline unsigned int mga_readb(vaddr_t va, unsigned int offs) { in mga_readb() argument 129 return readb(va.vaddr + offs); in mga_readb() 132 static inline void mga_writeb(vaddr_t va, unsigned int offs, u_int8_t value) { in mga_writeb() argument 133 writeb(value, va.vaddr + offs); in mga_writeb() 136 static inline void mga_writew(vaddr_t va, unsigned int offs, u_int16_t value) { in mga_writew() argument 137 writew(value, va.vaddr + offs); in mga_writew() 140 static inline u_int32_t mga_readl(vaddr_t va, unsigned int offs) { in mga_readl() argument 141 return readl(va.vaddr + offs); in mga_readl() 144 static inline void mga_writel(vaddr_t va, unsigned int offs, u_int32_t value) { in mga_writel() argument 145 writel(value, va.vaddr + offs); in mga_writel() [all …]
|
/drivers/soc/fsl/qbman/ |
D | bman_portal.c | 94 void __iomem *va; in bman_portal_probe() local 126 va = ioremap_prot(addr_phys[0]->start, resource_size(addr_phys[0]), 0); in bman_portal_probe() 127 if (!va) { in bman_portal_probe() 132 pcfg->addr_virt[DPAA_PORTAL_CE] = va; in bman_portal_probe() 134 va = ioremap_prot(addr_phys[1]->start, resource_size(addr_phys[1]), in bman_portal_probe() 136 if (!va) { in bman_portal_probe() 141 pcfg->addr_virt[DPAA_PORTAL_CI] = va; in bman_portal_probe()
|
D | qman_portal.c | 227 void __iomem *va; in qman_portal_probe() local 265 va = ioremap_prot(addr_phys[0]->start, resource_size(addr_phys[0]), 0); in qman_portal_probe() 266 if (!va) { in qman_portal_probe() 271 pcfg->addr_virt[DPAA_PORTAL_CE] = va; in qman_portal_probe() 273 va = ioremap_prot(addr_phys[1]->start, resource_size(addr_phys[1]), in qman_portal_probe() 275 if (!va) { in qman_portal_probe() 280 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/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/infiniband/hw/usnic/ |
D | usnic_uiom.c | 211 long unsigned va, size; in usnic_uiom_unmap_sorted_intervals() local 214 va = interval->start << PAGE_SHIFT; in usnic_uiom_unmap_sorted_intervals() 218 usnic_dbg("va 0x%lx size 0x%lx", va, PAGE_SIZE); in usnic_uiom_unmap_sorted_intervals() 219 iommu_unmap(pd->domain, va, PAGE_SIZE); in usnic_uiom_unmap_sorted_intervals() 220 va += PAGE_SIZE; in usnic_uiom_unmap_sorted_intervals() 237 vpn_start = (uiomr->va & PAGE_MASK) >> PAGE_SHIFT; in __usnic_uiom_reg_release() 268 long int va = uiomr->va & PAGE_MASK; in usnic_uiom_map_sorted_intervals() local 276 for (i = 0; i < chunk->nents; i++, va += PAGE_SIZE) { in usnic_uiom_map_sorted_intervals() 278 if ((va >> PAGE_SHIFT) < interval_node->start) in usnic_uiom_map_sorted_intervals() 281 if ((va >> PAGE_SHIFT) == interval_node->start) { in usnic_uiom_map_sorted_intervals() [all …]
|
/drivers/net/wireless/ath/wil6210/ |
D | pmc.c | 27 void *va; member 153 pmc->descriptors[i].va = dma_alloc_coherent(dev, in wil_pmc_alloc() 158 if (unlikely(!pmc->descriptors[i].va)) { in wil_pmc_alloc() 164 u32 *p = (u32 *)pmc->descriptors[i].va + j; in wil_pmc_alloc() 203 for (i = 0; i < num_descriptors && pmc->descriptors[i].va; i++) { in wil_pmc_alloc() 206 pmc->descriptors[i].va, in wil_pmc_alloc() 209 pmc->descriptors[i].va = NULL; in wil_pmc_alloc() 286 i < pmc->num_descriptors && pmc->descriptors[i].va; i++) { in wil_pmc_free() 289 pmc->descriptors[i].va, in wil_pmc_free() 291 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 | 120 if (!vring->va || !txdata->enabled) { in wil_is_tx_idle() 141 if (!vring->va || !txdata->enabled) in wil_is_tx_idle() 161 size_t sz = vring->size * sizeof(vring->va[0]); in wil_vring_alloc() 166 BUILD_BUG_ON(sizeof(vring->va[0]) != 32); in wil_vring_alloc() 172 vring->va = NULL; in wil_vring_alloc() 191 vring->va = dma_alloc_coherent(dev, sz, &vring->pa, GFP_KERNEL); in wil_vring_alloc() 192 if (!vring->va) { in wil_vring_alloc() 206 volatile struct vring_tx_desc *_d = &vring->va[i].tx; in wil_vring_alloc() 212 vring->va, &vring->pa, vring->ctx); in wil_vring_alloc() 239 size_t sz = vring->size * sizeof(vring->va[0]); in wil_vring_free() [all …]
|
/drivers/net/ethernet/amd/ |
D | hplance.c | 129 unsigned long va = (d->resource.start + DIO_VIRADDRBASE); in hplance_init() local 134 out_8(va + DIO_IDOFF, 0xff); in hplance_init() 138 dev->base_addr = va; in hplance_init() 146 dev->dev_addr[i] = ((in_8(va + HPLANCE_NVRAMOFF + i*4 + 1) & 0xF) << 4) in hplance_init() 147 | (in_8(va + HPLANCE_NVRAMOFF + i*4 + 3) & 0xF); in hplance_init() 152 lp->lance.base = va; in hplance_init() 153 lp->lance.init_block = (struct lance_init_block *)(va + HPLANCE_MEMOFF); /* CPU addr */ in hplance_init()
|
/drivers/scsi/be2iscsi/ |
D | be_mgmt.c | 68 struct be_bsg_vendor_cmd *req = nonemb_cmd->va; in mgmt_vendor_specific_fw_cmd() 72 memset(nonemb_cmd->va, 0, nonemb_cmd->size); in mgmt_vendor_specific_fw_cmd() 90 nonemb_cmd->va + offset, job->request_len); in mgmt_vendor_specific_fw_cmd() 181 req = nonemb_cmd->va; in mgmt_open_connection() 276 memcpy(resp_buf, nonemb_cmd->va, resp_buf_len); in mgmt_exec_nonemb_cmd() 294 nonemb_cmd->va, nonemb_cmd->dma); in mgmt_exec_nonemb_cmd() 301 cmd->va = pci_zalloc_consistent(phba->ctrl.pdev, size, &cmd->dma); in mgmt_alloc_cmd_data() 302 if (!cmd->va) { in mgmt_alloc_cmd_data() 308 be_cmd_hdr_prepare(cmd->va, CMD_SUBSYSTEM_ISCSI, iscsi_cmd, size); in mgmt_alloc_cmd_data() 377 req = nonemb_cmd.va; in beiscsi_if_mod_gw() [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() 341 early_memunmap(va, size); in efi_esrt_init()
|
/drivers/xen/ |
D | privcmd.c | 219 unsigned long va; member 233 ((unsigned long)(msg->npages << PAGE_SHIFT) >= -st->va)) in mmap_gfn_range() 237 if ((msg->va != st->va) || in mmap_gfn_range() 238 ((msg->va+(msg->npages<<PAGE_SHIFT)) > vma->vm_end)) in mmap_gfn_range() 242 msg->va & PAGE_MASK, in mmap_gfn_range() 249 st->va += msg->npages << PAGE_SHIFT; in mmap_gfn_range() 289 vma = find_vma(mm, msg->va); in privcmd_ioctl_mmap() 292 if (!vma || (msg->va != vma->vm_start) || vma->vm_private_data) in privcmd_ioctl_mmap() 297 state.va = vma->vm_start; in privcmd_ioctl_mmap() 317 unsigned long va; member [all …]
|
/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() 244 i, va, &dma, size, notifyid); in rproc_alloc_vring() 246 rvring->va = va; in rproc_alloc_vring() 294 dma_free_coherent(rproc->dev.parent, size, rvring->va, rvring->dma); in rproc_free_vring() 423 if (!rvring->va) in rproc_vdev_release() 482 trace->va = ptr; in rproc_handle_trace() [all …]
|