/openbmc/linux/crypto/async_tx/ |
H A D | async_xor.c | 23 do_async_xor(struct dma_chan *chan, struct dmaengine_unmap_data *unmap, in do_async_xor() argument 32 int src_cnt = unmap->to_cnt; in do_async_xor() 34 dma_addr_t dma_dest = unmap->addr[unmap->to_cnt]; in do_async_xor() 35 dma_addr_t *src_list = unmap->addr; in do_async_xor() 63 if (src_list > unmap->addr) in do_async_xor() 66 xor_src_cnt, unmap->len, in do_async_xor() 77 xor_src_cnt, unmap->len, in do_async_xor() 82 dma_set_unmap(tx, unmap); in do_async_xor() 190 struct dmaengine_unmap_data *unmap = NULL; in async_xor_offs() local 195 unmap = dmaengine_get_unmap_data(device->dev, src_cnt+1, GFP_NOWAIT); in async_xor_offs() [all …]
|
H A D | async_pq.c | 37 struct dmaengine_unmap_data *unmap, in do_async_gen_syndrome() argument 76 dma_dest[0] = unmap->addr[disks - 2]; in do_async_gen_syndrome() 77 dma_dest[1] = unmap->addr[disks - 1]; in do_async_gen_syndrome() 79 &unmap->addr[src_off], in do_async_gen_syndrome() 81 &scfs[src_off], unmap->len, in do_async_gen_syndrome() 89 dma_set_unmap(tx, unmap); in do_async_gen_syndrome() 185 struct dmaengine_unmap_data *unmap = NULL; in async_gen_syndrome() local 190 unmap = dmaengine_get_unmap_data(device->dev, disks, GFP_NOWAIT); in async_gen_syndrome() 193 if (unmap && !(submit->flags & ASYNC_TX_PQ_XOR_DST) && in async_gen_syndrome() 209 unmap->len = len; in async_gen_syndrome() [all …]
|
H A D | async_memcpy.c | 40 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 …]
|
H A D | async_raid6_recov.c | 25 struct dmaengine_unmap_data *unmap = NULL; in async_sum_product() local 31 unmap = dmaengine_get_unmap_data(dma->dev, 3, GFP_NOWAIT); in async_sum_product() 33 if (unmap) { in async_sum_product() 41 unmap->addr[0] = dma_map_page(dev, srcs[0], src_offs[0], in async_sum_product() 43 unmap->addr[1] = dma_map_page(dev, srcs[1], src_offs[1], in async_sum_product() 45 unmap->to_cnt = 2; in async_sum_product() 47 unmap->addr[2] = dma_map_page(dev, dest, d_off, in async_sum_product() 49 unmap->bidi_cnt = 1; in async_sum_product() 51 pq[1] = unmap->addr[2]; in async_sum_product() 53 unmap->len = len; in async_sum_product() [all …]
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | ksm_functional_tests.c | 157 goto unmap; in mmap_and_merge_range() 162 goto unmap; in mmap_and_merge_range() 175 goto unmap; in mmap_and_merge_range() 183 goto unmap; in mmap_and_merge_range() 190 goto unmap; in mmap_and_merge_range() 193 goto unmap; in mmap_and_merge_range() 197 goto unmap; in mmap_and_merge_range() 203 goto unmap; in mmap_and_merge_range() 212 goto unmap; in mmap_and_merge_range() 216 unmap: in mmap_and_merge_range() [all …]
|
H A D | mlock2-tests.c | 209 goto unmap; in test_mlock_lock() 213 goto unmap; in test_mlock_lock() 218 goto unmap; in test_mlock_lock() 223 unmap: in test_mlock_lock() 272 goto unmap; in test_mlock_onfault() 276 goto unmap; in test_mlock_onfault() 285 goto unmap; in test_mlock_onfault() 289 unmap: in test_mlock_onfault() 316 goto unmap; in test_lock_onfault_of_present() 322 goto unmap; in test_lock_onfault_of_present() [all …]
|
/openbmc/linux/drivers/xen/xenbus/ |
H A D | xenbus_client.c | 80 struct gnttab_unmap_grant_ref unmap[XENBUS_MAX_RING_GRANTS]; member 92 int (*unmap)(struct xenbus_device *dev, void *vaddr); member 581 gnttab_set_unmap_op(&info->unmap[j], in __xenbus_map_ring() 588 BUG_ON(HYPERVISOR_grant_table_op(GNTTABOP_unmap_grant_ref, info->unmap, j)); in __xenbus_map_ring() 592 if (info->unmap[i].status != GNTST_okay) { in __xenbus_map_ring() 615 struct gnttab_unmap_grant_ref unmap[XENBUS_MAX_RING_GRANTS]; in xenbus_unmap_ring() local 623 gnttab_set_unmap_op(&unmap[i], vaddrs[i], in xenbus_unmap_ring() 626 BUG_ON(HYPERVISOR_grant_table_op(GNTTABOP_unmap_grant_ref, unmap, i)); in xenbus_unmap_ring() 630 if (unmap[i].status != GNTST_okay) { in xenbus_unmap_ring() 631 xenbus_dev_error(dev, unmap[i].status, in xenbus_unmap_ring() [all …]
|
/openbmc/linux/arch/arm/xen/ |
H A D | p2m.c | 98 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()
|
/openbmc/linux/drivers/iommu/iommufd/ |
H A D | vfio_compat.c | 208 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 …]
|
/openbmc/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bnad.c | 93 struct bnad_tx_unmap *unmap; in bnad_tx_buff_unmap() local 97 unmap = &unmap_q[index]; in bnad_tx_buff_unmap() 98 nvecs = unmap->nvecs; in bnad_tx_buff_unmap() 100 skb = unmap->skb; in bnad_tx_buff_unmap() 101 unmap->skb = NULL; in bnad_tx_buff_unmap() 102 unmap->nvecs = 0; in bnad_tx_buff_unmap() 104 dma_unmap_addr(&unmap->vectors[0], dma_addr), in bnad_tx_buff_unmap() 106 dma_unmap_addr_set(&unmap->vectors[0], dma_addr, 0); in bnad_tx_buff_unmap() 115 unmap = &unmap_q[index]; in bnad_tx_buff_unmap() 119 dma_unmap_addr(&unmap->vectors[vector], dma_addr), in bnad_tx_buff_unmap() [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | dmaengine.c | 1350 struct dmaengine_unmap_data *unmap = container_of(kref, typeof(*unmap), kref); in dmaengine_unmap() local 1351 struct device *dev = unmap->dev; in dmaengine_unmap() 1354 cnt = unmap->to_cnt; in dmaengine_unmap() 1356 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap() 1358 cnt += unmap->from_cnt; in dmaengine_unmap() 1360 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap() 1362 cnt += unmap->bidi_cnt; in dmaengine_unmap() 1364 if (unmap->addr[i] == 0) in dmaengine_unmap() 1366 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap() 1369 cnt = unmap->map_cnt; in dmaengine_unmap() [all …]
|
H A D | mv_xor.c | 769 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 …]
|
/openbmc/linux/arch/x86/xen/ |
H A D | p2m.c | 709 struct gnttab_unmap_grant_ref unmap[2]; in set_foreign_p2m_mapping() local 736 unmap[0].host_addr = map_ops[i].host_addr; in set_foreign_p2m_mapping() 737 unmap[0].handle = map_ops[i].handle; in set_foreign_p2m_mapping() 740 unmap[0].dev_bus_addr = map_ops[i].dev_bus_addr; in set_foreign_p2m_mapping() 742 unmap[0].dev_bus_addr = 0; in set_foreign_p2m_mapping() 746 unmap[1].host_addr = kmap_ops[i].host_addr; in set_foreign_p2m_mapping() 747 unmap[1].handle = kmap_ops[i].handle; in set_foreign_p2m_mapping() 750 unmap[1].dev_bus_addr = kmap_ops[i].dev_bus_addr; in set_foreign_p2m_mapping() 752 unmap[1].dev_bus_addr = 0; in set_foreign_p2m_mapping() 759 unmap[0].status = 1; in set_foreign_p2m_mapping() [all …]
|
/openbmc/linux/include/xen/ |
H A D | grant_table.h | 179 gnttab_set_unmap_op(struct gnttab_unmap_grant_ref *unmap, phys_addr_t addr, in gnttab_set_unmap_op() argument 183 unmap->host_addr = addr; in gnttab_set_unmap_op() 185 unmap->host_addr = __pa(addr); in gnttab_set_unmap_op() 187 unmap->host_addr = addr; in gnttab_set_unmap_op() 189 unmap->handle = handle; in gnttab_set_unmap_op() 190 unmap->dev_bus_addr = 0; in gnttab_set_unmap_op()
|
/openbmc/qemu/hw/vfio/ |
H A D | container.c | 67 struct vfio_iommu_type1_dma_unmap *unmap; in vfio_dma_unmap_bitmap() local 77 unmap = g_malloc0(sizeof(*unmap) + sizeof(*bitmap)); in vfio_dma_unmap_bitmap() 79 unmap->argsz = sizeof(*unmap) + sizeof(*bitmap); in vfio_dma_unmap_bitmap() 80 unmap->iova = iova; in vfio_dma_unmap_bitmap() 81 unmap->size = size; in vfio_dma_unmap_bitmap() 82 unmap->flags |= VFIO_DMA_UNMAP_FLAG_GET_DIRTY_BITMAP; in vfio_dma_unmap_bitmap() 83 bitmap = (struct vfio_bitmap *)&unmap->data; in vfio_dma_unmap_bitmap() 100 ret = ioctl(container->fd, VFIO_IOMMU_UNMAP_DMA, unmap); in vfio_dma_unmap_bitmap() 109 g_free(unmap); in vfio_dma_unmap_bitmap() 124 struct vfio_iommu_type1_dma_unmap unmap = { in vfio_legacy_dma_unmap() local [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_gpuva_mgr.c | 995 struct drm_gpuva *curr = op->unmap->va; in drm_gpuva_remap() 1046 struct drm_gpuva_op_unmap *unmap) in op_remap_cb() argument 1055 r->unmap = unmap; in op_remap_cb() 1067 op.unmap.va = va; in op_unmap_cb() 1068 op.unmap.keep = merge; in op_unmap_cb() 1255 struct drm_gpuva_op_unmap unmap = { .va = va }; in __drm_gpuva_sm_unmap() local 1260 &unmap); in __drm_gpuva_sm_unmap() 1416 r->unmap = kmemdup(__r->unmap, sizeof(*r->unmap), in drm_gpuva_sm_step() 1418 if (unlikely(!r->unmap)) in drm_gpuva_sm_step() 1441 kfree(op->remap.unmap); in drm_gpuva_sm_step() [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | nvs.c | 80 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()
|
/openbmc/linux/drivers/ntb/ |
H A D | ntb_transport.c | 1547 struct dmaengine_unmap_data *unmap; in ntb_async_rx_submit() local 1559 unmap = dmaengine_get_unmap_data(device->dev, 2, GFP_NOWAIT); in ntb_async_rx_submit() 1560 if (!unmap) in ntb_async_rx_submit() 1563 unmap->len = len; in ntb_async_rx_submit() 1564 unmap->addr[0] = dma_map_page(device->dev, virt_to_page(offset), in ntb_async_rx_submit() 1566 if (dma_mapping_error(device->dev, unmap->addr[0])) in ntb_async_rx_submit() 1569 unmap->to_cnt = 1; in ntb_async_rx_submit() 1571 unmap->addr[1] = dma_map_page(device->dev, virt_to_page(buf), in ntb_async_rx_submit() 1573 if (dma_mapping_error(device->dev, unmap->addr[1])) in ntb_async_rx_submit() 1576 unmap->from_cnt = 1; in ntb_async_rx_submit() [all …]
|
/openbmc/linux/drivers/irqchip/ |
H A D | irq-mchp-eic.c | 220 goto unmap; in mchp_eic_init() 226 goto unmap; in mchp_eic_init() 231 goto unmap; in mchp_eic_init() 267 unmap: in mchp_eic_init()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 271 | 102 unmap) 203 _run_test sc=0 len=32k cmd=unmap 207 _run_test sc=0 len=64k cmd=unmap 444 _run_test c=9 sc=0 len=192k cmd=unmap 450 _run_test c=12 sc=16 len=128k cmd=unmap 458 _run_test c=15 sc=15 off=1 len=128k cmd=unmap 474 _run_test c=18 sc=0 len=192k cmd=unmap 484 _run_test c=21 sc=16 len=128k cmd=unmap 495 _run_test c=24 sc=15 off=1 len=129k cmd=unmap 506 _run_test c=27 sc=15 off=1 len=128k cmd=unmap
|
/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | write-zeroes-unmap.out | 1 QA output created by write-zeroes-unmap 13 === defaults - write zeros unmap === 33 === discard=off - write zeroes unmap === 73 === discard=on - write zeroes unmap ===
|
/openbmc/linux/include/linux/ |
H A D | dmaengine.h | 612 struct dmaengine_unmap_data *unmap; member 624 struct dmaengine_unmap_data *unmap) in dma_set_unmap() argument 626 kref_get(&unmap->kref); in dma_set_unmap() 627 tx->unmap = unmap; in dma_set_unmap() 632 void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap); 635 struct dmaengine_unmap_data *unmap) in dma_set_unmap() argument 643 static inline void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap) in dmaengine_unmap_put() argument 650 if (!tx->unmap) in dma_descriptor_unmap() 653 dmaengine_unmap_put(tx->unmap); in dma_descriptor_unmap() 654 tx->unmap = NULL; in dma_descriptor_unmap()
|
/openbmc/linux/drivers/xen/ |
H A D | arm-device.c | 70 goto unmap; in xen_map_device_mmio() 94 goto unmap; in xen_map_device_mmio() 99 unmap: in xen_map_device_mmio()
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | vmmgm200.c | 37 .unmap = gf100_vmm_pgt_unmap, 47 .unmap = gf100_vmm_pgt_unmap, 62 .unmap = gf100_vmm_pgt_unmap,
|
/openbmc/linux/arch/x86/platform/geode/ |
H A D | net5501.c | 121 goto unmap; in net5501_present() 135 unmap: in net5501_present()
|