Home
last modified time | relevance | path

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

12345678910>>...12

/OK3568_Linux_fs/kernel/crypto/async_tx/
H A Dasync_xor.c23 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 Dasync_pq.c37 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 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 …]
H A Dasync_raid6_recov.c25 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 …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/vm/
H A Dmlock2-tests.c210 goto unmap; in test_mlock_lock()
214 goto unmap; in test_mlock_lock()
219 goto unmap; in test_mlock_lock()
224 unmap: in test_mlock_lock()
273 goto unmap; in test_mlock_onfault()
277 goto unmap; in test_mlock_onfault()
286 goto unmap; in test_mlock_onfault()
290 unmap: in test_mlock_onfault()
317 goto unmap; in test_lock_onfault_of_present()
323 goto unmap; in test_lock_onfault_of_present()
[all …]
/OK3568_Linux_fs/kernel/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
536 gnttab_set_unmap_op(&info->unmap[j], in __xenbus_map_ring()
543 if (HYPERVISOR_grant_table_op(GNTTABOP_unmap_grant_ref, info->unmap, j)) in __xenbus_map_ring()
548 if (info->unmap[i].status != GNTST_okay) { in __xenbus_map_ring()
571 struct gnttab_unmap_grant_ref unmap[XENBUS_MAX_RING_GRANTS]; in xenbus_unmap_ring() local
579 gnttab_set_unmap_op(&unmap[i], vaddrs[i], in xenbus_unmap_ring()
582 if (HYPERVISOR_grant_table_op(GNTTABOP_unmap_grant_ref, unmap, i)) in xenbus_unmap_ring()
587 if (unmap[i].status != GNTST_okay) { in xenbus_unmap_ring()
588 xenbus_dev_error(dev, unmap[i].status, in xenbus_unmap_ring()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/xen/
H A Dp2m.c97 struct gnttab_unmap_grant_ref unmap; in set_foreign_p2m_mapping() local
111 unmap.host_addr = map_ops[i].host_addr, in set_foreign_p2m_mapping()
112 unmap.handle = map_ops[i].handle; in set_foreign_p2m_mapping()
115 unmap.dev_bus_addr = map_ops[i].dev_bus_addr; in set_foreign_p2m_mapping()
117 unmap.dev_bus_addr = 0; in set_foreign_p2m_mapping()
123 unmap.status = 1; in set_foreign_p2m_mapping()
126 &unmap, 1); in set_foreign_p2m_mapping()
127 if (rc || unmap.status != GNTST_okay) in set_foreign_p2m_mapping()
129 rc, unmap.status); in set_foreign_p2m_mapping()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/brocade/bna/
H A Dbnad.c93 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 …]
/OK3568_Linux_fs/kernel/arch/x86/xen/
H A Dp2m.c712 struct gnttab_unmap_grant_ref unmap[2]; in set_foreign_p2m_mapping() local
739 unmap[0].host_addr = map_ops[i].host_addr, in set_foreign_p2m_mapping()
740 unmap[0].handle = map_ops[i].handle; in set_foreign_p2m_mapping()
743 unmap[0].dev_bus_addr = map_ops[i].dev_bus_addr; in set_foreign_p2m_mapping()
745 unmap[0].dev_bus_addr = 0; in set_foreign_p2m_mapping()
749 unmap[1].host_addr = kmap_ops[i].host_addr, in set_foreign_p2m_mapping()
750 unmap[1].handle = kmap_ops[i].handle; in set_foreign_p2m_mapping()
753 unmap[1].dev_bus_addr = kmap_ops[i].dev_bus_addr; in set_foreign_p2m_mapping()
755 unmap[1].dev_bus_addr = 0; in set_foreign_p2m_mapping()
762 unmap[0].status = 1; in set_foreign_p2m_mapping()
[all …]
/OK3568_Linux_fs/kernel/drivers/dma/
H A Ddmaengine.c1408 struct dmaengine_unmap_data *unmap = container_of(kref, typeof(*unmap), kref); in dmaengine_unmap() local
1409 struct device *dev = unmap->dev; in dmaengine_unmap()
1412 cnt = unmap->to_cnt; in dmaengine_unmap()
1414 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap()
1416 cnt += unmap->from_cnt; in dmaengine_unmap()
1418 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap()
1420 cnt += unmap->bidi_cnt; in dmaengine_unmap()
1422 if (unmap->addr[i] == 0) in dmaengine_unmap()
1424 dma_unmap_page(dev, unmap->addr[i], unmap->len, in dmaengine_unmap()
1427 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 …]
/OK3568_Linux_fs/kernel/include/xen/
H A Dgrant_table.h179 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()
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/qemu/qemu/
H A D0002-virtio-net-fix-map-leaking-on-error-during-receive.patch10 Commit bedd7e93d0196 ("virtio-net: fix use after unmap/free for sg")
12 elements in an array and unmap them at once after receiving the
13 packets, But it forgot to unmap the cached elements on error which
22 Fixes: bedd7e93d0196 ("virtio-net: fix use after unmap/free for sg")
/OK3568_Linux_fs/kernel/drivers/acpi/
H A Dnvs.c78 bool unmap; member
137 if (entry->unmap) { in suspend_nvs_free()
139 entry->unmap = false; in suspend_nvs_free()
183 entry->unmap = !!entry->kaddr; in suspend_nvs_save()
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/xcore/
H A Ddrm_buffer.cpp73 bool DrmBuffer::unmap(unsigned int plane) { in unmap() function in XCam::DrmBuffer
79 buf->unmap(); in unmap()
83 bool DrmBuffer::unmap() { return unmap(0); } in unmap() function in XCam::DrmBuffer
H A Ddma_video_buffer.cpp40 bool DmaVideoBuffer::unmap() { in unmap() function in XCam::DmaVideoBuffer
41 DmaBuffer::unmap(); in unmap()
/OK3568_Linux_fs/kernel/drivers/vfio/
H A Dvfio_iommu_type1.c1155 struct vfio_iommu_type1_dma_unmap *unmap, in vfio_dma_do_unmap() argument
1168 if (unmap->iova & (pgsize - 1)) { in vfio_dma_do_unmap()
1173 if (!unmap->size || unmap->size & (pgsize - 1)) { in vfio_dma_do_unmap()
1178 if (unmap->iova + unmap->size - 1 < unmap->iova || in vfio_dma_do_unmap()
1179 unmap->size > SIZE_MAX) { in vfio_dma_do_unmap()
1185 if ((unmap->flags & VFIO_DMA_UNMAP_FLAG_GET_DIRTY_BITMAP) && in vfio_dma_do_unmap()
1225 dma = vfio_find_dma(iommu, unmap->iova, 1); in vfio_dma_do_unmap()
1226 if (dma && dma->iova != unmap->iova) { in vfio_dma_do_unmap()
1230 dma = vfio_find_dma(iommu, unmap->iova + unmap->size - 1, 0); in vfio_dma_do_unmap()
1231 if (dma && dma->iova + dma->size != unmap->iova + unmap->size) { in vfio_dma_do_unmap()
[all …]
/OK3568_Linux_fs/kernel/drivers/ntb/
H A Dntb_transport.c1529 struct dmaengine_unmap_data *unmap; in ntb_async_rx_submit() local
1541 unmap = dmaengine_get_unmap_data(device->dev, 2, GFP_NOWAIT); in ntb_async_rx_submit()
1542 if (!unmap) in ntb_async_rx_submit()
1545 unmap->len = len; in ntb_async_rx_submit()
1546 unmap->addr[0] = dma_map_page(device->dev, virt_to_page(offset), in ntb_async_rx_submit()
1548 if (dma_mapping_error(device->dev, unmap->addr[0])) in ntb_async_rx_submit()
1551 unmap->to_cnt = 1; in ntb_async_rx_submit()
1553 unmap->addr[1] = dma_map_page(device->dev, virt_to_page(buf), in ntb_async_rx_submit()
1555 if (dma_mapping_error(device->dev, unmap->addr[1])) in ntb_async_rx_submit()
1558 unmap->from_cnt = 1; in ntb_async_rx_submit()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Ddmaengine.h618 struct dmaengine_unmap_data *unmap; member
630 struct dmaengine_unmap_data *unmap) in dma_set_unmap() argument
632 kref_get(&unmap->kref); in dma_set_unmap()
633 tx->unmap = unmap; in dma_set_unmap()
638 void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap);
641 struct dmaengine_unmap_data *unmap) in dma_set_unmap() argument
649 static inline void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap) in dmaengine_unmap_put() argument
656 if (!tx->unmap) in dma_descriptor_unmap()
659 dmaengine_unmap_put(tx->unmap); in dma_descriptor_unmap()
660 tx->unmap = NULL; in dma_descriptor_unmap()
/OK3568_Linux_fs/kernel/drivers/block/xen-blkback/
H A Dblkback.c245 struct gnttab_unmap_grant_ref unmap[BLKIF_MAX_SEGMENTS_PER_REQUEST]; in free_persistent_gnts() local
253 unmap_data.unmap_ops = unmap; in free_persistent_gnts()
259 gnttab_set_unmap_op(&unmap[segs_to_unmap], in free_persistent_gnts()
287 struct gnttab_unmap_grant_ref unmap[BLKIF_MAX_SEGMENTS_PER_REQUEST]; in xen_blkbk_unmap_purged_grants() local
295 unmap_data.unmap_ops = unmap; in xen_blkbk_unmap_purged_grants()
304 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 …]
/OK3568_Linux_fs/kernel/arch/um/kernel/
H A Dexec.c29 ret = unmap(&current->mm->context.id, 0, STUB_START, 0, &data); in flush_thread()
30 ret = ret || unmap(&current->mm->context.id, STUB_END, in flush_thread()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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,
/OK3568_Linux_fs/kernel/Documentation/vm/
H A Dtranshuge.rst125 - map/unmap of the pages with PTE entry increment/decrement ->_mapcount
128 - map/unmap of the whole compound page is accounted for in compound_mapcount
131 last unmap of subpages.
137 get race-free detection of unmap of subpages when we have them mapped with
142 map/unmap of the whole compound page.
177 Partial unmap and deferred_split_huge_page()
186 the place where we can detect partial unmap. It also might be
187 counterproductive since in many cases partial unmap happens during exit(2) if
/OK3568_Linux_fs/kernel/arch/x86/include/asm/
H A Dset_memory.h95 static inline int set_mce_nospec(unsigned long pfn, bool unmap) in set_mce_nospec() argument
114 if (unmap) in set_mce_nospec()

12345678910>>...12