Home
last modified time | relevance | path

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

12345678

/linux/crypto/async_tx/
H A Dasync_memcpy.c40 struct dmaengine_unmap_data *unmap = NULL; in async_memcpy() local
43 unmap = dmaengine_get_unmap_data(device->dev, 2, GFP_NOWAIT); in async_memcpy()
45 if (unmap && is_dma_copy_aligned(device, src_offset, dest_offset, len)) { in async_memcpy()
53 unmap->to_cnt = 1; in async_memcpy()
54 unmap->addr[0] = dma_map_page(device->dev, src, src_offset, len, in async_memcpy()
56 unmap->from_cnt = 1; in async_memcpy()
57 unmap->addr[1] = dma_map_page(device->dev, dest, dest_offset, len, in async_memcpy()
59 unmap->len = len; in async_memcpy()
61 tx = device->device_prep_dma_memcpy(chan, unmap->addr[1], in async_memcpy()
62 unmap->addr[0], len, in async_memcpy()
[all …]
/linux/tools/testing/selftests/mm/
H A Dksm_functional_tests.c103 goto unmap; in __mmap_and_merge_range()
112 goto unmap; in __mmap_and_merge_range()
121 goto unmap; in __mmap_and_merge_range()
124 goto unmap; in __mmap_and_merge_range()
130 goto unmap; in __mmap_and_merge_range()
140 goto unmap; in __mmap_and_merge_range()
149 goto unmap; in __mmap_and_merge_range()
153 unmap: in __mmap_and_merge_range()
188 goto unmap; in test_unmerge()
193 unmap in test_unmerge()
[all...]
/linux/drivers/xen/xenbus/
H A Dxenbus_client.c80 struct gnttab_unmap_grant_ref unmap[XENBUS_MAX_RING_GRANTS]; member
92 int (*unmap)(struct xenbus_device *dev, void *vaddr); member
598 gnttab_set_unmap_op(&info->unmap[j], in __xenbus_map_ring()
605 BUG_ON(HYPERVISOR_grant_table_op(GNTTABOP_unmap_grant_ref, info->unmap, j)); in __xenbus_map_ring()
609 if (info->unmap[i].status != GNTST_okay) { in __xenbus_map_ring()
633 struct gnttab_unmap_grant_ref unmap[XENBUS_MAX_RING_GRANTS]; in xenbus_unmap_ring() local
641 gnttab_set_unmap_op(&unmap[i], vaddrs[i], in xenbus_unmap_ring()
644 BUG_ON(HYPERVISOR_grant_table_op(GNTTABOP_unmap_grant_ref, unmap, i)); in xenbus_unmap_ring()
648 if (unmap[i].status != GNTST_okay) { in xenbus_unmap_ring()
649 xenbus_dev_error(dev, unmap[i].status, in xenbus_unmap_ring()
[all …]
/linux/arch/arm/xen/
H A Dp2m.c98 struct gnttab_unmap_grant_ref unmap; in set_foreign_p2m_mapping() local
112 unmap.host_addr = map_ops[i].host_addr; in set_foreign_p2m_mapping()
113 unmap.handle = map_ops[i].handle; in set_foreign_p2m_mapping()
116 unmap.dev_bus_addr = map_ops[i].dev_bus_addr; in set_foreign_p2m_mapping()
118 unmap.dev_bus_addr = 0; in set_foreign_p2m_mapping()
124 unmap.status = 1; in set_foreign_p2m_mapping()
127 &unmap, 1); in set_foreign_p2m_mapping()
128 if (rc || unmap.status != GNTST_okay) in set_foreign_p2m_mapping()
130 rc, unmap.status); in set_foreign_p2m_mapping()
/linux/mm/
H A Dvma.h186 static inline void unmap_all_init(struct unmap_desc *unmap, in unmap_all_init() argument
189 unmap->mas = &vmi->mas; in unmap_all_init()
190 unmap->first = vma; in unmap_all_init()
191 unmap->pg_start = FIRST_USER_ADDRESS; in unmap_all_init()
192 unmap->pg_end = USER_PGTABLES_CEILING; in unmap_all_init()
193 unmap->vma_start = 0; in unmap_all_init()
194 unmap->vma_end = ULONG_MAX; in unmap_all_init()
195 unmap->tree_end = ULONG_MAX; in unmap_all_init()
196 unmap->tree_reset = vma->vm_end; in unmap_all_init()
197 unmap->mm_wr_locked = false; in unmap_all_init()
[all …]
/linux/drivers/net/ethernet/brocade/bna/
H A Dbnad.c94 struct bnad_tx_unmap *unmap; in bnad_tx_buff_unmap() local
98 unmap = &unmap_q[index]; in bnad_tx_buff_unmap()
99 nvecs = unmap->nvecs; in bnad_tx_buff_unmap()
101 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()
105 dma_unmap_addr(&unmap->vectors[0], dma_addr), in bnad_tx_buff_unmap()
107 dma_unmap_addr_set(&unmap->vectors[0], dma_addr, 0); in bnad_tx_buff_unmap()
116 unmap = &unmap_q[index]; in bnad_tx_buff_unmap()
120 dma_unmap_addr(&unmap->vectors[vector], dma_addr), in bnad_tx_buff_unmap()
[all …]
/linux/drivers/dma/
H A Ddmaengine.c1405 struct dmaengine_unmap_data *unmap = container_of(kref, typeof(*unmap), kref); in dmaengine_unmap() local
1406 struct device *dev = unmap->dev; in dmaengine_unmap()
1409 cnt = unmap->to_cnt; in dmaengine_unmap()
1411 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap()
1413 cnt += unmap->from_cnt; in dmaengine_unmap()
1415 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap()
1417 cnt += unmap->bidi_cnt; in dmaengine_unmap()
1419 if (unmap->addr[i] == 0) in dmaengine_unmap()
1421 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap()
1424 cnt = unmap->map_cnt; in dmaengine_unmap()
[all …]
H A Dmv_xor.c769 struct dmaengine_unmap_data *unmap; in mv_chan_memcpy_self_test() local
792 unmap = dmaengine_get_unmap_data(dma_chan->device->dev, 2, GFP_KERNEL); in mv_chan_memcpy_self_test()
793 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()
880 struct dmaengine_unmap_data *unmap; in mv_chan_xor_self_test() local
[all …]
/linux/drivers/ntb/
H A Dntb_transport.c1523 struct dmaengine_unmap_data *unmap; in ntb_async_rx_submit() local
1535 unmap = dmaengine_get_unmap_data(device->dev, 2, GFP_NOWAIT); in ntb_async_rx_submit()
1536 if (!unmap) in ntb_async_rx_submit()
1539 unmap->len = len; in ntb_async_rx_submit()
1540 unmap->addr[0] = dma_map_phys(device->dev, virt_to_phys(offset), in ntb_async_rx_submit()
1542 if (dma_mapping_error(device->dev, unmap->addr[0])) in ntb_async_rx_submit()
1545 unmap->to_cnt = 1; in ntb_async_rx_submit()
1547 unmap->addr[1] = dma_map_phys(device->dev, virt_to_phys(buf), in ntb_async_rx_submit()
1549 if (dma_mapping_error(device->dev, unmap->addr[1])) in ntb_async_rx_submit()
1552 unmap->from_cnt = 1; in ntb_async_rx_submit()
[all …]
/linux/drivers/gpu/drm/imagination/
H A Dpvr_mmu.c1447 } unmap; member
1522 op_ctx->curr_page.l1_table->next_free = op_ctx->unmap.l1_free_tables; in pvr_page_table_l2_remove()
1523 op_ctx->unmap.l1_free_tables = op_ctx->curr_page.l1_table; in pvr_page_table_l2_remove()
1585 op_ctx->curr_page.l0_table->next_free = op_ctx->unmap.l0_free_tables; in pvr_page_table_l1_remove()
1586 op_ctx->unmap.l0_free_tables = op_ctx->curr_page.l0_table; in pvr_page_table_l1_remove()
2316 while (op_ctx->unmap.l0_free_tables) { in pvr_mmu_op_context_destroy()
2317 struct pvr_page_table_l0 *tmp = op_ctx->unmap.l0_free_tables; in pvr_mmu_op_context_destroy()
2319 op_ctx->unmap.l0_free_tables = in pvr_mmu_op_context_destroy()
2320 op_ctx->unmap.l0_free_tables->next_free; in pvr_mmu_op_context_destroy()
2324 while (op_ctx->unmap.l1_free_tables) { in pvr_mmu_op_context_destroy()
[all …]
H A Dpvr_vm.c392 int err = pvr_mmu_unmap(ctx->mmu_op_ctx, op->unmap.va->va.addr, in pvr_vm_gpuva_unmap()
393 op->unmap.va->va.range); in pvr_vm_gpuva_unmap()
398 drm_gpuva_unmap(&op->unmap); in pvr_vm_gpuva_unmap()
399 drm_gpuva_unlink(op->unmap.va); in pvr_vm_gpuva_unmap()
400 kfree(to_pvr_vm_gpuva(op->unmap.va)); in pvr_vm_gpuva_unmap()
447 drm_gpuva_unlink(op->remap.unmap->va); in pvr_vm_gpuva_remap()
448 kfree(to_pvr_vm_gpuva(op->remap.unmap->va)); in pvr_vm_gpuva_remap()
/linux/arch/x86/platform/geode/
H A Dnet5501.c66 goto unmap; in net5501_present()
80 unmap: in net5501_present()
/linux/drivers/irqchip/
H A Dirq-mchp-eic.c225 goto unmap; in mchp_eic_probe()
231 goto unmap; in mchp_eic_probe()
236 goto unmap; in mchp_eic_probe()
273 unmap: in mchp_eic_probe()
/linux/drivers/net/wireless/mediatek/mt76/
H A Dwed.c53 goto unmap; in mt76_wed_init_rx_buf()
57 goto unmap; in mt76_wed_init_rx_buf()
64 goto unmap; in mt76_wed_init_rx_buf()
77 unmap: in mt76_wed_init_rx_buf()
/linux/drivers/xen/
H 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()
H 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()
498 .unmap = backend_unmap
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Dvmmgm200.c37 .unmap = gf100_vmm_pgt_unmap,
47 .unmap = gf100_vmm_pgt_unmap,
62 .unmap = gf100_vmm_pgt_unmap,
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_uvmm.c532 struct drm_gpuva *va = r->unmap->va; in nouveau_uvmm_sm_prepare_unwind()
544 op_unmap_prepare_unwind(op->unmap.va); in nouveau_uvmm_sm_prepare_unwind()
570 struct drm_gpuva *va = r->unmap->va; in nouveau_uvmm_sm_prepare_unwind()
587 struct drm_gpuva_op_unmap *u = &op->unmap; in nouveau_uvmm_sm_prepare_unwind()
712 struct drm_gpuva *va = r->unmap->va; in nouveau_uvmm_sm_prepare()
721 op_unmap_prepare(r->unmap); in nouveau_uvmm_sm_prepare()
752 struct drm_gpuva_op_unmap *u = &op->unmap; in nouveau_uvmm_sm_prepare()
835 return op->remap.unmap->va->gem.obj; in op_gem_obj()
837 return op->unmap.va->gem.obj; in op_gem_obj()
882 struct drm_gpuva_op_unmap *u = r->unmap; in op_remap()
[all …]
/linux/include/linux/
H A Ddmaengine.h632 struct dmaengine_unmap_data *unmap; member
644 struct dmaengine_unmap_data *unmap) in dma_set_unmap() argument
646 kref_get(&unmap->kref); in dma_set_unmap()
647 tx->unmap = unmap; in dma_set_unmap()
652 void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap);
655 struct dmaengine_unmap_data *unmap) in dma_set_unmap() argument
663 static inline void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap) in dmaengine_unmap_put() argument
670 if (!tx->unmap) in dma_descriptor_unmap()
673 dmaengine_unmap_put(tx->unmap); in dma_descriptor_unmap()
674 tx->unmap = NULL; in dma_descriptor_unmap()
/linux/drivers/block/xen-blkback/
H A Dblkback.c245 struct gnttab_unmap_grant_ref unmap[BLKIF_MAX_SEGMENTS_PER_REQUEST]; in free_persistent_gnts() local
256 unmap_data.unmap_ops = unmap; in free_persistent_gnts()
262 gnttab_set_unmap_op(&unmap[segs_to_unmap], in free_persistent_gnts()
292 struct gnttab_unmap_grant_ref unmap[BLKIF_MAX_SEGMENTS_PER_REQUEST]; in xen_blkbk_unmap_purged_grants() local
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()
735 struct gnttab_unmap_grant_ref unmap[BLKIF_MAX_SEGMENTS_PER_REQUEST]; in xen_blkbk_unmap() local
744 unmap, unmap_pages); in xen_blkbk_unmap()
[all …]
/linux/drivers/virt/coco/efi_secret/
H 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()
/linux/drivers/clk/sunxi/
H 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()
/linux/drivers/net/ethernet/alibaba/eea/
H A Deea_tx.c34 bool unmap; member
59 if (meta->unmap) { in eea_tx_meta_put_and_unmap()
211 bool unmap) in __eea_tx_desc_fill() argument
228 meta->unmap = unmap; in __eea_tx_desc_fill()
/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_vram.c13 bool unmap; in virtio_gpu_vram_free() local
17 unmap = drm_mm_node_allocated(&vram->vram_node); in virtio_gpu_vram_free()
20 if (unmap) in virtio_gpu_vram_free()
/linux/drivers/ntb/test/
H 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 …]

12345678