Home
last modified time | relevance | path

Searched full:unmap (Results 1 – 25 of 584) sorted by relevance

12345678910>>...24

/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...]
H A Dmremap_dontunmap.c59 "unable to unmap destination mapping"); in kernel_support_for_mremap_dontunmap()
63 "unable to unmap source mapping"); in kernel_support_for_mremap_dontunmap()
122 "unable to unmap destination mapping"); in mremap_dontunmap_simple()
124 "unable to unmap source mapping"); in mremap_dontunmap_simple()
155 "unable to unmap source mapping"); in mremap_dontunmap_simple_shmem()
174 "unable to unmap destination mapping"); in mremap_dontunmap_simple_shmem()
176 "unable to unmap source mapping"); in mremap_dontunmap_simple_shmem()
209 // The dest mapping will have been unmap by mremap so we expect the Xs in mremap_dontunmap_simple_fixed()
221 "unable to unmap destination mapping"); in mremap_dontunmap_simple_fixed()
223 "unable to unmap sourc in mremap_dontunmap_simple_fixed()
[all...]
H A Dhugetlb_dio.c114 /* unmap the huge page */ in main()
117 /* Get the free huge pages after unmap*/ in main()
124 * If the no. of free hugepages before allocation and after unmap does in main()
/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()
619 * xenbus_unmap_ring - unmap memory from another domain
623 * @vaddrs: addresses to unmap
625 * Unmap memory in this domain that was imported from another domain.
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()
[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()
129 pr_err_once("gnttab unmap failed: rc=%d st=%d\n", in set_foreign_p2m_mapping()
130 rc, unmap.status); in set_foreign_p2m_mapping()
/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/include/net/libeth/
H A Dtx.h17 * @LIBETH_SQE_SLAB: kmalloc-allocated buffer, unmap and kfree()
18 * @LIBETH_SQE_FRAG: mapped skb frag, only unmap DMA
19 * @LIBETH_SQE_SKB: &sk_buff, unmap and napi_consume_skb(), update stats
22 * @LIBETH_SQE_XDP_XMIT: &xdp_frame, unmap and xdp_return_frame_bulk(), stats
23 * @LIBETH_SQE_XDP_XMIT_FRAG: &xdp_frame frag, only unmap DMA
51 * @dma: DMA address to unmap
52 * @len: length of the mapped region to unmap
/linux/drivers/xen/
H A Dxen-front-pgdir-shbuf.c60 /* Unmap grant references of the buffer. */
61 int (*unmap)(struct xen_front_pgdir_shbuf *buf); member
106 * Unmap granted references of the shared buffer.
110 * shared by the frontend itself) or unmap the provided granted
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()
121 /* No need to unmap own grant references. */ in xen_front_pgdir_shbuf_unmap()
194 * Unmap the buffer previously mapped with grant references
226 "Failed to unmap page %d: %d\n", in backend_unmap()
232 "Failed to unmap grant references, ret %d", ret); in backend_unmap()
[all …]
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()
126 (action == BUS_NOTIFY_DEL_DEVICE ? "unmap" : "?"), in xen_platform_notifier()
168 (action == BUS_NOTIFY_DEL_DEVICE ? "unmap" : "?"), in xen_amba_notifier()
/linux/drivers/dma/
H A Ddmaengine.c1361 #define __UNMAP_POOL(x) { .size = x, .name = "dmaengine-unmap-" __stringify(x) }
1394 struct dmaengine_unmap_data *unmap = container_of(kref, typeof(*unmap), kref); in dmaengine_unmap() local
1395 struct device *dev = unmap->dev; in dmaengine_unmap()
1398 cnt = unmap->to_cnt; in dmaengine_unmap()
1400 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap()
1402 cnt += unmap->from_cnt; in dmaengine_unmap()
1404 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap()
1406 cnt += unmap->bidi_cnt; in dmaengine_unmap()
1408 if (unmap->addr[i] == 0) in dmaengine_unmap()
1410 dma_unmap_page(dev, unmap->addr[i], unmap->len, 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/gpu/drm/nouveau/
H A Dnouveau_exec.c27 * and unmap memory. Mappings may be flagged as sparse. Sparse mappings are not
37 * Requests to unmap a sparse mapping that still contains memory backed mappings
40 * Unmap requests are not bound to the range of existing mappings and can even
42 * make sure to unmap all memory backed mappings within the given range,
44 * within the given range. Unmap requests with the sparse flag set must match
52 * - unmap non-existent sparse mappings
53 * - unmap a sparse mapping and map a new sparse mapping overlapping the range
55 * - unmap a sparse mapping and map new memory backed mappings overlapping the
H A Dnouveau_uvmm.c12 * Actual map/unmap operations within the fence signalling critical path are
15 * list in order to map/unmap it's entries, can't occur concurrently.
532 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()
551 /* Unmap operation don't allocate page tables, hence skip the following 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()
[all …]
/linux/drivers/net/wwan/iosm/
H A Diosm_ipc_protocol_ops.h85 * struct ipc_msg_prep_unmap - struct for unmap argument for message preparation
86 * @region_id: Region to unmap
99 * @unmap: Memory unmap message preparation struct
107 struct ipc_msg_prep_unmap unmap; member
117 * @IPC_MSG_PREP_UNMAP: Memory unmap message preparation type
/linux/include/uapi/xen/
H A Dgntalloc.h52 /* Number of references to unmap */
57 * Sets up an unmap notification within the page, so that the other side can do
76 /* Action(s) to take on unmap */
/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/gpu/drm/imagination/
H A Dpvr_vm.c127 * struct pvr_vm_bind_op - Context of a map/unmap operation.
130 /** @type: Map or unmap. */
377 * @op: gpuva op containing the unmap details.
392 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()
[all …]
/linux/drivers/net/ethernet/intel/libie/
H A Dpci.c158 * libie_pci_unmap_fltr_regs - unmap selected PCI device MMIO regions
159 * @mmio_info: contains list of MMIO regions to unmap
179 * libie_pci_unmap_all_mmio_regions - unmap all PCI device MMIO regions
180 * @mmio_info: contains list of MMIO regions to unmap
/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/staging/media/ipu3/
H A Dipu3-mmu.c343 size_t unmap = size; in __imgu_mmu_unmap() local
360 unmap = 0; in __imgu_mmu_unmap()
366 return unmap; in __imgu_mmu_unmap()
370 * imgu_mmu_unmap - Unmap a buffer
396 dev_dbg(mmu->dev, "unmap this: iova 0x%lx size 0x%zx\n", iova, size); in imgu_mmu_unmap()
399 * Keep iterating until we either unmap 'size' bytes (or more) in imgu_mmu_unmap()
/linux/include/linux/
H A Dio-mapping.h63 /* Atomic map/unmap */
152 /* Non-atomic map/unmap */
166 /* Atomic map/unmap */
/linux/arch/powerpc/platforms/ps3/
H A Dmm.c879 * dma_sb_unmap_area - Unmap an area of memory from a device dma region.
881 * @bus_addr: The starting ioc bus address of the area to unmap.
882 * @len: Length in bytes of the area to unmap.
884 * This is the common dma unmap routine.
1022 * This routine will unmap all mapped areas and free the HV dma region.
1032 /* Unmap (part of) 1st RAM chunk */ in dma_sb_region_free_linear()
1043 /* Unmap (part of) 2nd RAM chunk */ in dma_sb_region_free_linear()
1084 * dma_unmap_area_linear - Unmap an area of memory from a device dma region.
1086 * @bus_addr: The starting ioc bus address of the area to unmap.
1087 * @len: Length in bytes of the area to unmap.
[all …]
/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()
725 * Unmap the grant references.
735 struct gnttab_unmap_grant_ref unmap[BLKIF_MAX_SEGMENTS_PER_REQUEST]; in xen_blkbk_unmap() local
[all …]
/linux/sound/pci/ctxfi/
H A Dctvmem.h52 /* Unmap device logical addr area. */
53 void (*unmap)(struct ct_vm *, struct ct_vm_block *block); member

12345678910>>...24