| /linux/tools/testing/selftests/vfio/lib/ |
| H A D | iommu.c | 152 static int __vfio_iommu_unmap(int fd, u64 iova, u64 size, u32 flags, u64 *unmapped) in __vfio_iommu_unmap() argument 164 if (unmapped) in __vfio_iommu_unmap() 165 *unmapped = args.size; in __vfio_iommu_unmap() 171 u64 *unmapped) in vfio_iommu_unmap() argument 174 region->size, 0, unmapped); in vfio_iommu_unmap() 177 static int __iommufd_unmap(int fd, u64 iova, u64 length, u32 ioas_id, u64 *unmapped) in __iommufd_unmap() argument 189 if (unmapped) in __iommufd_unmap() 190 *unmapped = args.length; in __iommufd_unmap() 196 u64 *unmapped) in iommufd_unmap() argument 199 iommu->ioas_id, unmapped); in iommufd_unmap() [all …]
|
| /linux/tools/testing/selftests/vfio/ |
| H A D | vfio_dma_mapping_test.c | 141 u64 unmapped; in TEST_F() local 193 rc = __iommu_unmap(self->iommu, ®ion, &unmapped); in TEST_F() 195 ASSERT_EQ(unmapped, region.size); in TEST_F() 196 printf("Unmapped IOVA 0x%lx\n", region.iova); in TEST_F() 263 u64 unmapped; in TEST_F() local 269 rc = __iommu_unmap(self->iommu, region, &unmapped); in TEST_F() 271 ASSERT_EQ(unmapped, region->size); in TEST_F() 277 u64 unmapped; in TEST_F() local 283 rc = __iommu_unmap_all(self->iommu, &unmapped); in TEST_F() 285 ASSERT_EQ(unmapped, regio in TEST_F() [all...] |
| /linux/tools/testing/selftests/filesystems/ |
| H A D | idmapped_tmpfile.c | 28 #define UNMAPPED 50000 macro 92 /* World-writable so an unmapped caller still passes permission(). */ in FIXTURE_SETUP() 115 setfsgid(UNMAPPED); in TEST_F() 116 setfsuid(UNMAPPED); in TEST_F() 117 ASSERT_EQ(setfsuid(-1), UNMAPPED); in TEST_F() 131 * the unmapped case above necessary in the first place.
|
| /linux/drivers/gpu/drm/msm/ |
| H A D | msm_gem_shrinker.c | 246 unsigned idx, unmapped = 0; in msm_gem_shrinker_vmap() local 249 for (idx = 0; lrus[idx] && unmapped < vmap_shrink_limit; idx++) { in msm_gem_shrinker_vmap() 250 unmapped += drm_gem_lru_scan(priv->dev, lrus[idx], in msm_gem_shrinker_vmap() 251 vmap_shrink_limit - unmapped, in msm_gem_shrinker_vmap() 257 *(unsigned long *)ptr += unmapped; in msm_gem_shrinker_vmap() 259 if (unmapped > 0) in msm_gem_shrinker_vmap() 260 trace_msm_gem_purge_vmaps(unmapped); in msm_gem_shrinker_vmap()
|
| H A D | msm_iommu.c | 119 ssize_t unmapped; in msm_iommu_pagetable_unmap() local 123 unmapped = ops->unmap_pages(ops, iova, pgsize, count, NULL); in msm_iommu_pagetable_unmap() 124 if (unmapped <= 0) { in msm_iommu_pagetable_unmap() 131 unmapped = PAGE_SIZE; in msm_iommu_pagetable_unmap() 134 iova += unmapped; in msm_iommu_pagetable_unmap() 135 size -= unmapped; in msm_iommu_pagetable_unmap()
|
| /linux/mm/damon/ |
| H A D | vaddr.c | 61 * Find three regions separated by two biggest unmapped regions 67 * separated by the two biggest unmapped regions in the space. Please refer to 156 * is actually mapped to the memory and accessed, monitoring the unmapped 161 * with the noise by simply identifying the unmapped areas as a region that 163 * unmapped areas inside will make the adaptive mechanism quite complex. That 164 * said, too huge unmapped areas inside the monitoring target should be removed 169 * between the three regions are the two biggest unmapped areas in the given 171 * end of the mappings and the two biggest unmapped areas of the address space. 180 * region and the stack will be two biggest unmapped regions. Because these 182 * two biggest unmapped regions will be sufficient to make a trade-off. [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | stream.c | 126 __stderr("ERROR: Arena WRITE access at unmapped address 0x{{.*}}") 160 __stderr("ERROR: Arena READ access at unmapped address 0x{{.*}}") 193 __stderr("ERROR: Arena READ access at unmapped address 0x{{.*}}") 237 __stderr("ERROR: Arena WRITE access at unmapped address 0x{{.*}}") 287 __stderr("ERROR: Arena WRITE access at unmapped address 0x{{.*}}") 346 __stderr("ERROR: Arena WRITE access at unmapped address 0x{{.*}}") 370 __stderr("ERROR: Arena WRITE access at unmapped address 0x{{.*}}")
|
| /linux/drivers/accel/rocket/ |
| H A D | rocket_gem.c | 18 size_t unmapped; in rocket_gem_bo_free() local 22 unmapped = iommu_unmap(bo->domain->domain, bo->mm.start, bo->size); in rocket_gem_bo_free() 23 drm_WARN_ON(obj->dev, unmapped != bo->size); in rocket_gem_bo_free()
|
| /linux/tools/testing/selftests/vfio/lib/include/libvfio/ |
| H A D | iommu.h | 45 int __iommu_unmap(struct iommu *iommu, struct dma_region *region, u64 *unmapped); 52 int __iommu_unmap_all(struct iommu *iommu, u64 *unmapped);
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_exec.c | 35 * mapping. If such memory backed mappings are unmapped the kernel will make 38 * will result in those memory backed mappings being unmapped first. 48 * backed mappings being mapped and unmapped, either within a single or multiple 54 * of the previously unmapped sparse mapping within the same VM_BIND ioctl 56 * range of the previously unmapped sparse mapping within the same VM_BIND
|
| /linux/mm/damon/tests/ |
| H A D | vaddr-kunit.h | 41 * regions should not include the two biggest unmapped areas in the original 44 * Because these two unmapped areas are very huge but obviously never accessed, 49 * unmapped areas. After that, based on the information, it constructs the 57 * and end with 305. The process also has three unmapped areas, 25-200, 59 * unmapped areas, and thus it should be converted to three regions of 10-25,
|
| /linux/include/linux/dma/ |
| H A D | k3-psil.h | 56 * @flow_start: PKDMA flow range start of mapped channel. Unmapped 58 * @flow_num: PKDMA flow count of mapped channel. Unmapped channels
|
| /linux/Documentation/translations/zh_CN/mm/damon/ |
| H A D | design.rst | 57 <BIG UNMAPPED REGION 1> 61 <BIG UNMAPPED REGION 2>
|
| /linux/drivers/iommu/ |
| H A D | virtio-iommu.c | 359 * On success, returns the number of unmapped bytes 364 size_t unmapped = 0; in viommu_del_mappings() local 384 unmapped += mapping->iova.last - mapping->iova.start + 1; in viommu_del_mappings() 391 return unmapped; in viommu_del_mappings() 891 size_t unmapped; in viommu_unmap_pages() local 896 unmapped = viommu_del_mappings(vdomain, iova, iova + size - 1); in viommu_unmap_pages() 897 if (unmapped < size) in viommu_unmap_pages() 902 return unmapped; in viommu_unmap_pages() 908 .virt_end = cpu_to_le64(iova + unmapped - 1), in viommu_unmap_pages() 912 return ret ? 0 : unmapped; in viommu_unmap_pages()
|
| /linux/drivers/staging/media/ipu3/ |
| H A D | ipu3-mmu.c | 383 size_t unmapped_page, unmapped = 0; in imgu_mmu_unmap() local 402 while (unmapped < size) { in imgu_mmu_unmap() 407 dev_dbg(mmu->dev, "unmapped: iova 0x%lx size 0x%zx\n", in imgu_mmu_unmap() 411 unmapped += unmapped_page; in imgu_mmu_unmap() 416 return unmapped; in imgu_mmu_unmap()
|
| /linux/lib/ |
| H A D | devres.c | 70 * Managed ioremap(). Map is automatically unmapped on driver detach. 85 * Managed ioremap_uc(). Map is automatically unmapped on driver detach. 100 * Managed ioremap_wc(). Map is automatically unmapped on driver detach. 275 * Managed ioport_map(). Map is automatically unmapped on driver
|
| /linux/arch/hexagon/include/asm/ |
| H A D | processor.h | 47 * Apparently the convention is that ld.so will ask for "unmapped" private 52 * you have to kick the "unmapped" base requests higher up.
|
| /linux/mm/ |
| H A D | migrate_device.c | 253 unsigned long addr = start, unmapped = 0; in migrate_vma_collect_pmd() local 323 if (unmapped) in migrate_vma_collect_pmd() 369 if (unmapped) in migrate_vma_collect_pmd() 478 unmapped++; in migrate_vma_collect_pmd() 490 if (unmapped) in migrate_vma_collect_pmd() 579 unsigned long unmapped = 0; in migrate_device_unmap() local 590 unmapped++; in migrate_device_unmap() 634 unmapped++; in migrate_device_unmap() 656 return unmapped; in migrate_device_unmap() 686 * and unmapped, check whether each page is pinned or not. Pages that aren't [all …]
|
| H A D | khugepaged.c | 250 * any unmapped ptes in turn potentially increasing the memory 1091 * Anon VMA expected, the address may be unmapped then in hugepage_vma_revalidate() 1288 int referenced, int unmapped, struct collapse_control *cc, in collapse_huge_page() argument 1327 if (unmapped) { in collapse_huge_page() 1366 * hold prevent anybody from stumbling over such temporarily unmapped in collapse_huge_page() 1499 unsigned long address, int referenced, int unmapped, in mthp_collapse() argument 1521 * Swap PTEs accepted during the scan are counted in @unmapped, in mthp_collapse() 1526 nr_occupied_ptes += unmapped; in mthp_collapse() 1533 unmapped, cc, order); in mthp_collapse() 1618 int node = NUMA_NO_NODE, unmapped = 0; in collapse_scan_pmd() local [all …]
|
| /linux/drivers/irqchip/ |
| H A D | irq-ti-sci-inta.c | 90 * unmapped event sources. 91 * Unmapped Events are not part of the Global Event Map and 95 * generating Unmapped Event, we must use the INTA's TI-SCI 127 * For devices sending Unmapped Events we must use the INTA's TI-SCI in ti_sci_inta_get_dev_id() 619 count = of_count_phandle_with_args(node, "ti,unmapped-event-sources", NULL); in ti_sci_inta_get_unmapped_sources() 630 of_for_each_phandle(&it, err, node, "ti,unmapped-event-sources", NULL, 0) { in ti_sci_inta_get_unmapped_sources()
|
| /linux/tools/testing/selftests/powerpc/signal/ |
| H A D | sigreturn_vdso.c | 106 printf("Unmapped VDSO\n"); in test_sigreturn_vdso() 119 printf("Signal delivered OK with VDSO unmapped\n"); in test_sigreturn_vdso()
|
| /linux/arch/mips/include/asm/octeon/ |
| H A D | cvmx-address.h | 108 /* mapped or unmapped virtual address */ 120 /* mapped or unmapped virtual address */ 128 * physical address accessed through xkphys unmapped virtual
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | vas-debug.c | 36 /* ensure window is not unmapped */ in info_show() 63 /* ensure window is not unmapped */ in hvwc_show()
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | listns_efault_test.c | 29 * into unmapped memory), listns() returns EINVAL. 54 * - Second page: will be unmapped to trigger EFAULT in TEST() 67 * unmapped page. in TEST() 93 * 2. Fail with EFAULT when trying to write the second ID (unmapped page) in TEST()
|
| /linux/drivers/net/ethernet/intel/libie/ |
| H A D | pci.c | 76 WARN_ONCE(true, "Access to an unmapped MMIO region (BAR%d, offset %pa)", in __libie_pci_get_mmio_addr() 160 * @fltr: returns true, if region is to be unmapped
|