| /linux/crypto/async_tx/ |
| 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 …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | ksm_functional_tests.c | 103 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 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 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 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()
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| H A D | bnad.c | 94 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/arch/x86/xen/ |
| H A D | p2m.c | 701 struct gnttab_unmap_grant_ref unmap[2]; in set_foreign_p2m_mapping() local 728 unmap[0].host_addr = map_ops[i].host_addr; in set_foreign_p2m_mapping() 729 unmap[0].handle = map_ops[i].handle; in set_foreign_p2m_mapping() 732 unmap[0].dev_bus_addr = map_ops[i].dev_bus_addr; in set_foreign_p2m_mapping() 734 unmap[0].dev_bus_addr = 0; in set_foreign_p2m_mapping() 738 unmap[1].host_addr = kmap_ops[i].host_addr; in set_foreign_p2m_mapping() 739 unmap[1].handle = kmap_ops[i].handle; in set_foreign_p2m_mapping() 742 unmap[1].dev_bus_addr = kmap_ops[i].dev_bus_addr; in set_foreign_p2m_mapping() 744 unmap[1].dev_bus_addr = 0; in set_foreign_p2m_mapping() 751 unmap[0].status = 1; in set_foreign_p2m_mapping() [all …]
|
| /linux/drivers/dma/ |
| 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 …]
|
| /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()
|
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_mmu.c | 1446 } unmap; member 1521 op_ctx->curr_page.l1_table->next_free = op_ctx->unmap.l1_free_tables; in pvr_page_table_l2_remove() 1522 op_ctx->unmap.l1_free_tables = op_ctx->curr_page.l1_table; in pvr_page_table_l2_remove() 1584 op_ctx->curr_page.l0_table->next_free = op_ctx->unmap.l0_free_tables; in pvr_page_table_l1_remove() 1585 op_ctx->unmap.l0_free_tables = op_ctx->curr_page.l0_table; in pvr_page_table_l1_remove() 2315 while (op_ctx->unmap.l0_free_tables) { in pvr_mmu_op_context_destroy() 2316 struct pvr_page_table_l0 *tmp = op_ctx->unmap.l0_free_tables; in pvr_mmu_op_context_destroy() 2318 op_ctx->unmap.l0_free_tables = in pvr_mmu_op_context_destroy() 2319 op_ctx->unmap.l0_free_tables->next_free; in pvr_mmu_op_context_destroy() 2323 while (op_ctx->unmap.l1_free_tables) { in pvr_mmu_op_context_destroy() [all …]
|
| H A D | pvr_vm.c | 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()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_gpuvm.c | 2320 struct drm_gpuva *va = op->unmap->va; in drm_gpuva_remap() 2373 struct drm_gpuva_op_unmap *unmap) in op_remap_cb() argument 2382 r->unmap = unmap; in op_remap_cb() 2397 op.unmap.va = va; in op_unmap_cb() 2398 op.unmap.keep = merge; in op_unmap_cb() 2622 struct drm_gpuva_op_unmap unmap = { .va = va }; in __drm_gpuvm_sm_unmap() local 2627 &unmap); in __drm_gpuvm_sm_unmap() 2733 if (op->remap.unmap->va->gem.obj) in drm_gpuva_sm_step_lock() 2734 return drm_exec_lock_obj(exec, op->remap.unmap->va->gem.obj); in drm_gpuva_sm_step_lock() 2737 if (op->unmap.va->gem.obj) in drm_gpuva_sm_step_lock() [all …]
|
| /linux/arch/x86/platform/geode/ |
| H A D | net5501.c | 66 goto unmap; in net5501_present() 80 unmap: in net5501_present()
|
| /linux/drivers/irqchip/ |
| H A D | irq-mchp-eic.c | 225 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/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()
|
| H A D | xen-front-pgdir-shbuf.c | 61 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() 494 .unmap = backend_unmap
|
| /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,
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_uvmm.c | 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() 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() 879 struct drm_gpuva_op_unmap *u = r->unmap; in op_remap() [all …]
|
| /linux/drivers/block/xen-blkback/ |
| H A D | blkback.c | 245 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 D | efi_secret.c | 160 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 D | clk-sun4i-display.c | 126 goto unmap; in sun4i_a10_display_init() 131 goto unmap; in sun4i_a10_display_init() 216 unmap: in sun4i_a10_display_init()
|
| /linux/drivers/gpu/drm/virtio/ |
| H A D | virtgpu_vram.c | 11 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()
|
| /linux/drivers/ntb/test/ |
| H A D | ntb_perf.c | 789 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 …]
|
| /linux/drivers/iommu/generic_pt/ |
| H A D | iommu_pt.h | 982 struct pt_unmap_args *unmap = arg; in __unmap_range() local 1034 iommu_pages_list_add(&unmap->free_list, in __unmap_range() 1063 unmap->unmapped += log2_mul(num_oas, pt_table_item_lg2sz(&pts)); in __unmap_range() 1074 struct pt_unmap_args unmap = { .free_list = IOMMU_PAGES_LIST_INIT( in NS() local 1075 unmap.free_list) }; in NS() 1083 pt_walk_range(&range, __unmap_range, &unmap); in NS() 1085 gather_range_pages(iotlb_gather, iommu_table, iova, unmap.unmapped, in NS() 1086 &unmap.free_list); in NS() 1088 return unmap.unmapped; in NS()
|