Home
last modified time | relevance | path

Searched refs:unmap (Results 1 – 25 of 163) sorted by relevance

1234567

/drivers/xen/xenbus/
A Dxenbus_client.c643 if (unmap[i].status != GNTST_okay) { in xenbus_unmap_ring()
646 handles[i], unmap[i].status); in xenbus_unmap_ring()
647 err = unmap[i].status; in xenbus_unmap_ring()
742 return ring_ops->unmap(dev, vaddr); in xenbus_unmap_ring_vfree()
828 memset(&unmap[i], 0, sizeof(unmap[i])); in xenbus_unmap_ring_pv()
832 unmap[i].dev_bus_addr = 0; in xenbus_unmap_ring_pv()
833 unmap[i].handle = node->handles[i]; in xenbus_unmap_ring_pv()
841 if (unmap[i].status != GNTST_okay) { in xenbus_unmap_ring_pv()
846 err = unmap[i].status; in xenbus_unmap_ring_pv()
863 .unmap = xenbus_unmap_ring_pv,
[all …]
/drivers/iommu/iommufd/
A Dvfio_compat.c208 struct vfio_iommu_type1_dma_unmap unmap; in iommufd_vfio_unmap_dma() local
213 if (copy_from_user(&unmap, arg, minsz)) in iommufd_vfio_unmap_dma()
216 if (unmap.argsz < minsz || unmap.flags & ~supported_flags) in iommufd_vfio_unmap_dma()
223 if (unmap.flags & VFIO_DMA_UNMAP_FLAG_ALL) { in iommufd_vfio_unmap_dma()
224 if (unmap.iova != 0 || unmap.size != 0) { in iommufd_vfio_unmap_dma()
236 unsigned long iovas[] = { unmap.iova + unmap.size - 1, in iommufd_vfio_unmap_dma()
237 unmap.iova - 1 }; in iommufd_vfio_unmap_dma()
240 unmap.iova ? 2 : 1); in iommufd_vfio_unmap_dma()
244 rc = iopt_unmap_iova(&ioas->iopt, unmap.iova, unmap.size, in iommufd_vfio_unmap_dma()
247 unmap.size = unmapped; in iommufd_vfio_unmap_dma()
[all …]
/drivers/net/ethernet/brocade/bna/
A Dbnad.c101 skb = unmap->skb; in bnad_tx_buff_unmap()
102 unmap->skb = NULL; in bnad_tx_buff_unmap()
103 unmap->nvecs = 0; in bnad_tx_buff_unmap()
310 if (!unmap->skb) in bnad_rxq_cleanup_skb()
329 struct bnad_rx_unmap *unmap = &unmap_q->unmap[i]; in bnad_rxq_cleanup() local
357 unmap = &unmap_q->unmap[prod]; in bnad_rxq_refill_page()
429 unmap = &unmap_q->unmap[prod]; in bnad_rxq_refill_skb()
509 unmap = &unmap_q->unmap[ci]; in bnad_cq_drop_packet()
545 unmap = &unmap_q->unmap[ci]; in bnad_cq_setup_skb_frags()
557 unmap->page, unmap->page_offset, len); in bnad_cq_setup_skb_frags()
[all …]
/drivers/dma/
A Ddmaengine.c1388 cnt = unmap->to_cnt; in dmaengine_unmap()
1390 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap()
1394 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap()
1400 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap()
1403 cnt = unmap->map_cnt; in dmaengine_unmap()
1409 if (unmap) in dmaengine_unmap_put()
1461 if (!unmap) in dmaengine_get_unmap_data()
1464 memset(unmap, 0, sizeof(*unmap)); in dmaengine_get_unmap_data()
1466 unmap->dev = dev; in dmaengine_get_unmap_data()
1467 unmap->map_cnt = nr; in dmaengine_get_unmap_data()
[all …]
A Dmv_xor.c793 if (!unmap) { in mv_chan_memcpy_self_test()
801 unmap->addr[0] = src_dma; in mv_chan_memcpy_self_test()
808 unmap->to_cnt = 1; in mv_chan_memcpy_self_test()
813 unmap->addr[1] = dest_dma; in mv_chan_memcpy_self_test()
820 unmap->from_cnt = 1; in mv_chan_memcpy_self_test()
821 unmap->len = PAGE_SIZE; in mv_chan_memcpy_self_test()
862 dmaengine_unmap_put(unmap); in mv_chan_memcpy_self_test()
927 if (!unmap) { in mv_chan_xor_self_test()
942 unmap->to_cnt++; in mv_chan_xor_self_test()
953 unmap->from_cnt = 1; in mv_chan_xor_self_test()
[all …]
/drivers/acpi/
A Dnvs.c80 bool unmap; member
139 if (entry->unmap) { in suspend_nvs_free()
141 entry->unmap = false; in suspend_nvs_free()
185 entry->unmap = !!entry->kaddr; in suspend_nvs_save()
/drivers/ntb/
A Dntb_transport.c1562 if (!unmap) in ntb_async_rx_submit()
1565 unmap->len = len; in ntb_async_rx_submit()
1571 unmap->to_cnt = 1; in ntb_async_rx_submit()
1578 unmap->from_cnt = 1; in ntb_async_rx_submit()
1588 dma_set_unmap(txd, unmap); in ntb_async_rx_submit()
1594 dmaengine_unmap_put(unmap); in ntb_async_rx_submit()
1603 dmaengine_unmap_put(unmap); in ntb_async_rx_submit()
1843 if (!unmap) in ntb_async_tx_submit()
1846 unmap->len = len; in ntb_async_tx_submit()
1852 unmap->to_cnt = 1; in ntb_async_tx_submit()
[all …]
/drivers/gpu/drm/
A Ddrm_gpuvm.c2084 r->unmap = unmap; in op_remap_cb()
2096 op.unmap.va = va; in op_unmap_cb()
2097 op.unmap.keep = merge; in op_unmap_cb()
2289 &unmap); in __drm_gpuvm_sm_unmap()
2401 if (op->remap.unmap->va->gem.obj) in drm_gpuva_sm_step_lock()
2405 if (op->unmap.va->gem.obj) in drm_gpuva_sm_step_lock()
2571 r->unmap = kmemdup(__r->unmap, sizeof(*r->unmap), in drm_gpuva_sm_step()
2573 if (unlikely(!r->unmap)) in drm_gpuva_sm_step()
2596 kfree(op->remap.unmap); in drm_gpuva_sm_step()
2836 op->unmap.va = va; in drm_gpuvm_bo_unmap_ops_create()
[all …]
/drivers/gpu/drm/imagination/
A Dpvr_mmu.c1446 } unmap; member
1522 op_ctx->unmap.l1_free_tables = op_ctx->curr_page.l1_table; in pvr_page_table_l2_remove()
1585 op_ctx->unmap.l0_free_tables = op_ctx->curr_page.l0_table; in pvr_page_table_l1_remove()
2317 while (op_ctx->unmap.l0_free_tables) { in pvr_mmu_op_context_destroy()
2318 struct pvr_page_table_l0 *tmp = op_ctx->unmap.l0_free_tables; in pvr_mmu_op_context_destroy()
2320 op_ctx->unmap.l0_free_tables = in pvr_mmu_op_context_destroy()
2321 op_ctx->unmap.l0_free_tables->next_free; in pvr_mmu_op_context_destroy()
2325 while (op_ctx->unmap.l1_free_tables) { in pvr_mmu_op_context_destroy()
2326 struct pvr_page_table_l1 *tmp = op_ctx->unmap.l1_free_tables; in pvr_mmu_op_context_destroy()
2328 op_ctx->unmap.l1_free_tables = in pvr_mmu_op_context_destroy()
[all …]
A Dpvr_vm.c386 int err = pvr_mmu_unmap(ctx->mmu_op_ctx, op->unmap.va->va.addr, in pvr_vm_gpuva_unmap()
387 op->unmap.va->va.range); in pvr_vm_gpuva_unmap()
392 drm_gpuva_unmap(&op->unmap); in pvr_vm_gpuva_unmap()
393 drm_gpuva_unlink(op->unmap.va); in pvr_vm_gpuva_unmap()
394 kfree(to_pvr_vm_gpuva(op->unmap.va)); in pvr_vm_gpuva_unmap()
441 drm_gpuva_unlink(op->remap.unmap->va); in pvr_vm_gpuva_remap()
442 kfree(to_pvr_vm_gpuva(op->remap.unmap->va)); in pvr_vm_gpuva_remap()
/drivers/irqchip/
A Dirq-mchp-eic.c220 goto unmap; in mchp_eic_init()
226 goto unmap; in mchp_eic_init()
231 goto unmap; in mchp_eic_init()
268 unmap: in mchp_eic_init()
/drivers/firmware/efi/
A Dmemattr.c40 goto unmap; in efi_memattr_init()
55 goto unmap; in efi_memattr_init()
62 unmap: in efi_memattr_init()
/drivers/net/wireless/mediatek/mt76/
A Dwed.c48 goto unmap; in mt76_wed_init_rx_buf()
52 goto unmap; in mt76_wed_init_rx_buf()
59 goto unmap; in mt76_wed_init_rx_buf()
72 unmap: in mt76_wed_init_rx_buf()
/drivers/gpu/drm/nouveau/
A Dnouveau_uvmm.c472 struct drm_gpuva *va = r->unmap->va; in nouveau_uvmm_sm_prepare_unwind()
509 struct drm_gpuva *va = r->unmap->va; in nouveau_uvmm_sm_prepare_unwind()
647 struct drm_gpuva *va = r->unmap->va; in nouveau_uvmm_sm_prepare()
656 op_unmap_prepare(r->unmap); in nouveau_uvmm_sm_prepare()
769 return op->remap.unmap->va->gem.obj; in op_gem_obj()
771 return op->unmap.va->gem.obj; in op_gem_obj()
842 op_unmap(&op->unmap); in nouveau_uvmm_sm()
883 struct drm_gpuva *va = r->unmap->va; in nouveau_uvmm_sm_cleanup()
886 if (unmap) { in nouveau_uvmm_sm_cleanup()
908 if (unmap) in nouveau_uvmm_sm_cleanup()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
A Dvmmgm200.c37 .unmap = gf100_vmm_pgt_unmap,
47 .unmap = gf100_vmm_pgt_unmap,
62 .unmap = gf100_vmm_pgt_unmap,
A Dvmmgh100.c69 .unmap = gf100_vmm_pgt_unmap,
88 .unmap = gf100_vmm_pgt_unmap,
172 .unmap = gh100_vmm_pd0_unmap,
195 .unmap = gf100_vmm_pgt_unmap,
/drivers/xen/
A Darm-device.c70 goto unmap; in xen_map_device_mmio()
94 goto unmap; in xen_map_device_mmio()
99 unmap: in xen_map_device_mmio()
A Dxen-front-pgdir-shbuf.c61 int (*unmap)(struct xen_front_pgdir_shbuf *buf); member
118 if (buf->ops && buf->ops->unmap) in xen_front_pgdir_shbuf_unmap()
119 return buf->ops->unmap(buf); in xen_front_pgdir_shbuf_unmap()
496 .unmap = backend_unmap
/drivers/block/xen-blkback/
A Dblkback.c256 unmap_data.unmap_ops = unmap; in free_persistent_gnts()
262 gnttab_set_unmap_op(&unmap[segs_to_unmap], in free_persistent_gnts()
300 unmap_data.unmap_ops = unmap; in xen_blkbk_unmap_purged_grants()
309 gnttab_set_unmap_op(&unmap[segs_to_unmap], in xen_blkbk_unmap_purged_grants()
711 req->unmap, req->unmap_pages); in xen_blkbk_unmap_and_respond()
715 work->unmap_ops = req->unmap; in xen_blkbk_unmap_and_respond()
744 unmap, unmap_pages); in xen_blkbk_unmap()
746 ret = gnttab_unmap_refs(unmap, NULL, unmap_pages, invcount); in xen_blkbk_unmap()
932 goto unmap; in xen_blkbk_parse_indirect()
951 goto unmap; in xen_blkbk_parse_indirect()
[all …]
/drivers/clk/sunxi/
A Dclk-sun4i-display.c126 goto unmap; in sun4i_a10_display_init()
131 goto unmap; in sun4i_a10_display_init()
216 unmap: in sun4i_a10_display_init()
/drivers/virt/coco/efi_secret/
A Defi_secret.c160 goto unmap; in efi_secret_map_area()
167 goto unmap; in efi_secret_map_area()
173 unmap: in efi_secret_map_area()
/drivers/ntb/test/
A Dntb_perf.c789 struct dmaengine_unmap_data *unmap; in perf_copy_chunk() local
812 unmap = dmaengine_get_unmap_data(dma_dev, 1, GFP_NOWAIT); in perf_copy_chunk()
813 if (!unmap) in perf_copy_chunk()
816 unmap->len = len; in perf_copy_chunk()
817 unmap->addr[0] = dma_map_page(dma_dev, virt_to_page(src), in perf_copy_chunk()
819 if (dma_mapping_error(dma_dev, unmap->addr[0])) { in perf_copy_chunk()
823 unmap->to_cnt = 1; in perf_copy_chunk()
827 unmap->addr[0], len, DMA_PREP_INTERRUPT | DMA_CTRL_ACK); in perf_copy_chunk()
839 dma_set_unmap(tx, unmap); in perf_copy_chunk()
845 dmaengine_unmap_put(unmap); in perf_copy_chunk()
[all …]
/drivers/gpu/drm/virtio/
A Dvirtgpu_vram.c11 bool unmap; in virtio_gpu_vram_free() local
15 unmap = drm_mm_node_allocated(&vram->vram_node); in virtio_gpu_vram_free()
18 if (unmap) in virtio_gpu_vram_free()
/drivers/vfio/
A Dvfio_iommu_type1.c1299 struct vfio_iommu_type1_dma_unmap *unmap, in vfio_dma_do_unmap() argument
1306 dma_addr_t iova = unmap->iova; in vfio_dma_do_unmap()
1307 u64 size = unmap->size; in vfio_dma_do_unmap()
1444 unmap->size = unmapped; in vfio_dma_do_unmap()
2811 struct vfio_iommu_type1_dma_unmap unmap; in vfio_iommu_type1_unmap_dma() local
2821 if (copy_from_user(&unmap, (void __user *)arg, minsz)) in vfio_iommu_type1_unmap_dma()
2824 if (unmap.argsz < minsz || unmap.flags & ~mask) in vfio_iommu_type1_unmap_dma()
2828 (unmap.flags & (VFIO_DMA_UNMAP_FLAG_ALL | in vfio_iommu_type1_unmap_dma()
2835 if (unmap.argsz < (minsz + sizeof(bitmap))) in vfio_iommu_type1_unmap_dma()
2847 ret = verify_bitmap_size(unmap.size >> pgshift, in vfio_iommu_type1_unmap_dma()
[all …]
/drivers/power/reset/
A Dat91-sama5d2_shdwc.c393 goto unmap; in at91_shdwc_probe()
401 goto unmap; in at91_shdwc_probe()
418 unmap: in at91_shdwc_probe()

Completed in 73 milliseconds

1234567