/Linux-v4.19/crypto/async_tx/ |
D | async_xor.c | 36 do_async_xor(struct dma_chan *chan, struct dmaengine_unmap_data *unmap, in do_async_xor() argument 45 int src_cnt = unmap->to_cnt; in do_async_xor() 47 dma_addr_t dma_dest = unmap->addr[unmap->to_cnt]; in do_async_xor() 48 dma_addr_t *src_list = unmap->addr; in do_async_xor() 76 if (src_list > unmap->addr) in do_async_xor() 79 xor_src_cnt, unmap->len, in do_async_xor() 90 xor_src_cnt, unmap->len, in do_async_xor() 95 dma_set_unmap(tx, unmap); in do_async_xor() 180 struct dmaengine_unmap_data *unmap = NULL; in async_xor() local 185 unmap = dmaengine_get_unmap_data(device->dev, src_cnt+1, GFP_NOWAIT); in async_xor() [all …]
|
D | async_pq.c | 53 struct dmaengine_unmap_data *unmap, in do_async_gen_syndrome() argument 92 dma_dest[0] = unmap->addr[disks - 2]; in do_async_gen_syndrome() 93 dma_dest[1] = unmap->addr[disks - 1]; in do_async_gen_syndrome() 95 &unmap->addr[src_off], in do_async_gen_syndrome() 97 &scfs[src_off], unmap->len, in do_async_gen_syndrome() 105 dma_set_unmap(tx, unmap); in do_async_gen_syndrome() 187 struct dmaengine_unmap_data *unmap = NULL; in async_gen_syndrome() local 192 unmap = dmaengine_get_unmap_data(device->dev, disks, GFP_NOWAIT); in async_gen_syndrome() 195 if (unmap && !(submit->flags & ASYNC_TX_PQ_XOR_DST) && in async_gen_syndrome() 211 unmap->len = len; in async_gen_syndrome() [all …]
|
D | async_memcpy.c | 53 struct dmaengine_unmap_data *unmap = NULL; in async_memcpy() local 56 unmap = dmaengine_get_unmap_data(device->dev, 2, GFP_NOWAIT); in async_memcpy() 58 if (unmap && is_dma_copy_aligned(device, src_offset, dest_offset, len)) { in async_memcpy() 66 unmap->to_cnt = 1; in async_memcpy() 67 unmap->addr[0] = dma_map_page(device->dev, src, src_offset, len, in async_memcpy() 69 unmap->from_cnt = 1; in async_memcpy() 70 unmap->addr[1] = dma_map_page(device->dev, dest, dest_offset, len, in async_memcpy() 72 unmap->len = len; in async_memcpy() 74 tx = device->device_prep_dma_memcpy(chan, unmap->addr[1], in async_memcpy() 75 unmap->addr[0], len, in async_memcpy() [all …]
|
D | async_raid6_recov.c | 38 struct dmaengine_unmap_data *unmap = NULL; in async_sum_product() local 44 unmap = dmaengine_get_unmap_data(dma->dev, 3, GFP_NOWAIT); in async_sum_product() 46 if (unmap) { in async_sum_product() 54 unmap->addr[0] = dma_map_page(dev, srcs[0], 0, len, DMA_TO_DEVICE); in async_sum_product() 55 unmap->addr[1] = dma_map_page(dev, srcs[1], 0, len, DMA_TO_DEVICE); in async_sum_product() 56 unmap->to_cnt = 2; in async_sum_product() 58 unmap->addr[2] = dma_map_page(dev, dest, 0, len, DMA_BIDIRECTIONAL); in async_sum_product() 59 unmap->bidi_cnt = 1; in async_sum_product() 61 pq[1] = unmap->addr[2]; in async_sum_product() 63 unmap->len = len; in async_sum_product() [all …]
|
/Linux-v4.19/drivers/xen/xenbus/ |
D | xenbus_client.c | 79 int (*unmap)(struct xenbus_device *dev, void *vaddr); member 469 struct gnttab_unmap_grant_ref unmap[XENBUS_MAX_RING_GRANTS]; in __xenbus_map_ring() local 501 memset(&unmap[j], 0, sizeof(unmap[j])); in __xenbus_map_ring() 502 gnttab_set_unmap_op(&unmap[j], (phys_addr_t)addrs[i], in __xenbus_map_ring() 508 if (HYPERVISOR_grant_table_op(GNTTABOP_unmap_grant_ref, unmap, j)) in __xenbus_map_ring() 513 if (unmap[i].status != GNTST_okay) { in __xenbus_map_ring() 666 return ring_ops->unmap(dev, vaddr); in xenbus_unmap_ring_vfree() 732 struct gnttab_unmap_grant_ref unmap[XENBUS_MAX_RING_GRANTS]; in xenbus_unmap_ring_vfree_pv() local 758 memset(&unmap[i], 0, sizeof(unmap[i])); in xenbus_unmap_ring_vfree_pv() 760 unmap[i].host_addr = arbitrary_virt_to_machine( in xenbus_unmap_ring_vfree_pv() [all …]
|
/Linux-v4.19/tools/testing/selftests/vm/ |
D | mlock2-tests.c | 311 goto unmap; in test_mlock_lock() 315 goto unmap; in test_mlock_lock() 320 goto unmap; in test_mlock_lock() 325 unmap: in test_mlock_lock() 420 goto unmap; in test_mlock_onfault() 424 goto unmap; in test_mlock_onfault() 433 goto unmap; in test_mlock_onfault() 437 unmap: in test_mlock_onfault() 465 goto unmap; in test_lock_onfault_of_present() 476 goto unmap; in test_lock_onfault_of_present() [all …]
|
/Linux-v4.19/drivers/dma/ |
D | dmaengine.c | 1210 struct dmaengine_unmap_data *unmap = container_of(kref, typeof(*unmap), kref); in dmaengine_unmap() local 1211 struct device *dev = unmap->dev; in dmaengine_unmap() 1214 cnt = unmap->to_cnt; in dmaengine_unmap() 1216 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap() 1218 cnt += unmap->from_cnt; in dmaengine_unmap() 1220 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap() 1222 cnt += unmap->bidi_cnt; in dmaengine_unmap() 1224 if (unmap->addr[i] == 0) in dmaengine_unmap() 1226 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap() 1229 cnt = unmap->map_cnt; in dmaengine_unmap() [all …]
|
D | mv_xor.c | 777 struct dmaengine_unmap_data *unmap; in mv_chan_memcpy_self_test() local 800 unmap = dmaengine_get_unmap_data(dma_chan->device->dev, 2, GFP_KERNEL); in mv_chan_memcpy_self_test() 801 if (!unmap) { in mv_chan_memcpy_self_test() 809 unmap->addr[0] = src_dma; in mv_chan_memcpy_self_test() 816 unmap->to_cnt = 1; in mv_chan_memcpy_self_test() 821 unmap->addr[1] = dest_dma; in mv_chan_memcpy_self_test() 828 unmap->from_cnt = 1; in mv_chan_memcpy_self_test() 829 unmap->len = PAGE_SIZE; in mv_chan_memcpy_self_test() 870 dmaengine_unmap_put(unmap); in mv_chan_memcpy_self_test() 888 struct dmaengine_unmap_data *unmap; in mv_chan_xor_self_test() local [all …]
|
/Linux-v4.19/drivers/net/ethernet/brocade/bna/ |
D | bnad.c | 101 struct bnad_tx_unmap *unmap; in bnad_tx_buff_unmap() local 105 unmap = &unmap_q[index]; in bnad_tx_buff_unmap() 106 nvecs = unmap->nvecs; in bnad_tx_buff_unmap() 108 skb = unmap->skb; in bnad_tx_buff_unmap() 109 unmap->skb = NULL; in bnad_tx_buff_unmap() 110 unmap->nvecs = 0; in bnad_tx_buff_unmap() 112 dma_unmap_addr(&unmap->vectors[0], dma_addr), in bnad_tx_buff_unmap() 114 dma_unmap_addr_set(&unmap->vectors[0], dma_addr, 0); in bnad_tx_buff_unmap() 123 unmap = &unmap_q[index]; in bnad_tx_buff_unmap() 127 dma_unmap_addr(&unmap->vectors[vector], dma_addr), in bnad_tx_buff_unmap() [all …]
|
/Linux-v4.19/include/xen/ |
D | grant_table.h | 163 gnttab_set_unmap_op(struct gnttab_unmap_grant_ref *unmap, phys_addr_t addr, in gnttab_set_unmap_op() argument 167 unmap->host_addr = addr; in gnttab_set_unmap_op() 169 unmap->host_addr = __pa(addr); in gnttab_set_unmap_op() 171 unmap->host_addr = addr; in gnttab_set_unmap_op() 173 unmap->handle = handle; in gnttab_set_unmap_op() 174 unmap->dev_bus_addr = 0; in gnttab_set_unmap_op()
|
/Linux-v4.19/drivers/acpi/ |
D | nvs.c | 79 bool unmap; member 138 if (entry->unmap) { in suspend_nvs_free() 140 entry->unmap = false; in suspend_nvs_free() 184 entry->unmap = !!entry->kaddr; in suspend_nvs_save()
|
/Linux-v4.19/drivers/vfio/ |
D | vfio_iommu_type1.c | 868 struct vfio_iommu_type1_dma_unmap *unmap) in vfio_dma_do_unmap() argument 877 if (unmap->iova & mask) in vfio_dma_do_unmap() 879 if (!unmap->size || unmap->size & mask) in vfio_dma_do_unmap() 881 if (unmap->iova + unmap->size < unmap->iova || in vfio_dma_do_unmap() 882 unmap->size > SIZE_MAX) in vfio_dma_do_unmap() 921 dma = vfio_find_dma(iommu, unmap->iova, 1); in vfio_dma_do_unmap() 922 if (dma && dma->iova != unmap->iova) { in vfio_dma_do_unmap() 926 dma = vfio_find_dma(iommu, unmap->iova + unmap->size - 1, 0); in vfio_dma_do_unmap() 927 if (dma && dma->iova + dma->size != unmap->iova + unmap->size) { in vfio_dma_do_unmap() 933 while ((dma = vfio_find_dma(iommu, unmap->iova, unmap->size))) { in vfio_dma_do_unmap() [all …]
|
/Linux-v4.19/drivers/ntb/ |
D | ntb_transport.c | 1323 struct dmaengine_unmap_data *unmap; in ntb_async_rx_submit() local 1335 unmap = dmaengine_get_unmap_data(device->dev, 2, GFP_NOWAIT); in ntb_async_rx_submit() 1336 if (!unmap) in ntb_async_rx_submit() 1339 unmap->len = len; in ntb_async_rx_submit() 1340 unmap->addr[0] = dma_map_page(device->dev, virt_to_page(offset), in ntb_async_rx_submit() 1342 if (dma_mapping_error(device->dev, unmap->addr[0])) in ntb_async_rx_submit() 1345 unmap->to_cnt = 1; in ntb_async_rx_submit() 1347 unmap->addr[1] = dma_map_page(device->dev, virt_to_page(buf), in ntb_async_rx_submit() 1349 if (dma_mapping_error(device->dev, unmap->addr[1])) in ntb_async_rx_submit() 1352 unmap->from_cnt = 1; in ntb_async_rx_submit() [all …]
|
/Linux-v4.19/arch/um/kernel/ |
D | exec.c | 29 ret = unmap(¤t->mm->context.id, 0, STUB_START, 0, &data); in flush_thread() 30 ret = ret || unmap(¤t->mm->context.id, STUB_END, in flush_thread()
|
/Linux-v4.19/drivers/gpio/ |
D | gpio-sodaville.c | 227 goto unmap; in sdv_gpio_probe() 233 goto unmap; in sdv_gpio_probe() 238 goto unmap; in sdv_gpio_probe() 244 unmap: in sdv_gpio_probe()
|
/Linux-v4.19/include/linux/ |
D | dmaengine.h | 518 struct dmaengine_unmap_data *unmap; member 528 struct dmaengine_unmap_data *unmap) in dma_set_unmap() argument 530 kref_get(&unmap->kref); in dma_set_unmap() 531 tx->unmap = unmap; in dma_set_unmap() 536 void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap); 539 struct dmaengine_unmap_data *unmap) in dma_set_unmap() argument 547 static inline void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap) in dmaengine_unmap_put() argument 554 if (tx->unmap) { in dma_descriptor_unmap() 555 dmaengine_unmap_put(tx->unmap); in dma_descriptor_unmap() 556 tx->unmap = NULL; in dma_descriptor_unmap()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
D | vmmgm200.c | 37 .unmap = gf100_vmm_pgt_unmap, 47 .unmap = gf100_vmm_pgt_unmap, 62 .unmap = gf100_vmm_pgt_unmap,
|
D | vmmgp100.c | 87 .unmap = gf100_vmm_pgt_unmap, 105 .unmap = gf100_vmm_pgt_unmap, 182 .unmap = gp100_vmm_pd0_unmap, 205 .unmap = gf100_vmm_pgt_unmap,
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | scom.h | 55 void (*unmap)(scom_map_t map); member 129 scom_controller->unmap(map); in scom_unmap()
|
/Linux-v4.19/drivers/xen/ |
D | arm-device.c | 81 goto unmap; in xen_map_device_mmio() 105 goto unmap; in xen_map_device_mmio() 110 unmap: in xen_map_device_mmio()
|
/Linux-v4.19/drivers/ntb/test/ |
D | ntb_perf.c | 777 struct dmaengine_unmap_data *unmap; in perf_copy_chunk() local 792 unmap = dmaengine_get_unmap_data(dma_dev, 2, GFP_NOWAIT); in perf_copy_chunk() 793 if (!unmap) in perf_copy_chunk() 796 unmap->len = len; in perf_copy_chunk() 797 unmap->addr[0] = dma_map_page(dma_dev, virt_to_page(src), in perf_copy_chunk() 799 if (dma_mapping_error(dma_dev, unmap->addr[0])) { in perf_copy_chunk() 803 unmap->to_cnt = 1; in perf_copy_chunk() 805 unmap->addr[1] = dma_map_page(dma_dev, virt_to_page(dst), in perf_copy_chunk() 807 if (dma_mapping_error(dma_dev, unmap->addr[1])) { in perf_copy_chunk() 811 unmap->from_cnt = 1; in perf_copy_chunk() [all …]
|
/Linux-v4.19/arch/x86/platform/geode/ |
D | net5501.c | 117 goto unmap; in net5501_present() 131 unmap: in net5501_present()
|
/Linux-v4.19/drivers/block/xen-blkback/ |
D | blkback.c | 307 struct gnttab_unmap_grant_ref unmap[BLKIF_MAX_SEGMENTS_PER_REQUEST]; in free_persistent_gnts() local 315 unmap_data.unmap_ops = unmap; in free_persistent_gnts() 321 gnttab_set_unmap_op(&unmap[segs_to_unmap], in free_persistent_gnts() 348 struct gnttab_unmap_grant_ref unmap[BLKIF_MAX_SEGMENTS_PER_REQUEST]; in xen_blkbk_unmap_purged_grants() local 356 unmap_data.unmap_ops = unmap; in xen_blkbk_unmap_purged_grants() 365 gnttab_set_unmap_op(&unmap[segs_to_unmap], in xen_blkbk_unmap_purged_grants() 760 req->unmap, req->unmap_pages); in xen_blkbk_unmap_and_respond() 764 work->unmap_ops = req->unmap; in xen_blkbk_unmap_and_respond() 784 struct gnttab_unmap_grant_ref unmap[BLKIF_MAX_SEGMENTS_PER_REQUEST]; in xen_blkbk_unmap() local 793 unmap, unmap_pages); in xen_blkbk_unmap() [all …]
|
/Linux-v4.19/Documentation/vm/ |
D | transhuge.rst | 130 - map/unmap of the pages with PTE entry increment/decrement ->_mapcount 133 - map/unmap of the whole compound page accounted in compound_mapcount 136 last unmap of subpages. 142 get race-free detection of unmap of subpages when we have them mapped with 147 map/unmap of the whole compound page. 182 Partial unmap and deferred_split_huge_page() 191 the place where we can detect partial unmap. It's also might be 192 counterproductive since in many cases partial unmap happens during exit(2) if
|
/Linux-v4.19/drivers/clk/sunxi/ |
D | clk-sun4i-display.c | 134 goto unmap; in sun4i_a10_display_init() 139 goto unmap; in sun4i_a10_display_init() 224 unmap: in sun4i_a10_display_init()
|