Home
last modified time | relevance | path

Searched refs:granule (Results 1 – 13 of 13) sorted by relevance

/linux/tools/dma/
H A Ddma_map_benchmark.c38 /* default granule 1 PAGESIZE */ in main()
39 int granule = 1; in main()
64 granule = atoi(optarg); in main()
110 if (granule < 1 || granule > 1024) { in main()
111 fprintf(stderr, "invalid granule size\n"); in main()
128 map.granule = granule;
136 printf("dma mapping benchmark(%s): threads:%d seconds:%d node:%d dir:%s granule:%d\n",
137 mode[map_mode], threads, seconds, node, directions[dir], granule);
32 int granule = 1; main() local
[all...]
/linux/include/linux/
H A Dio-pgtable.h41 void (*tlb_flush_walk)(unsigned long iova, size_t size, size_t granule,
44 unsigned long iova, size_t granule, void *cookie);
286 size_t size, size_t granule) in io_pgtable_tlb_flush_walk() argument
289 iop->cfg.tlb->tlb_flush_walk(iova, size, granule, iop->cookie); in io_pgtable_tlb_flush_walk()
295 size_t granule) in io_pgtable_tlb_add_page() argument
298 iop->cfg.tlb->tlb_add_page(gather, iova, granule, iop->cookie); in io_pgtable_tlb_add_page()
/linux/drivers/virt/coco/arm-cca-guest/
H A Darm-cca-guest.c23 phys_addr_t granule; member
47 ret = rsi_attestation_token_continue(info->granule, info->offset, size, in arm_cca_attestation_continue()
118 info.granule = (unsigned long)virt_to_phys(buf); in arm_cca_report_new()
/linux/drivers/iommu/
H A Dio-pgtable-arm-selftests.c27 size_t granule, void *cookie) in dummy_tlb_flush() argument
34 unsigned long iova, size_t granule, in dummy_tlb_add_page() argument
37 dummy_tlb_flush(iova, granule, granule, cookie); in dummy_tlb_add_page()
H A Dio-pgtable-arm-v7s.c791 size_t granule, void *cookie) in dummy_tlb_flush() argument
799 size_t granule, in dummy_tlb_add_page() argument
802 dummy_tlb_flush(iova, granule, granule, cookie); in dummy_tlb_add_page()
H A Dvirtio-iommu.c406 unsigned long granule = 1UL << __ffs(vdomain->domain.pgsize_bitmap); in viommu_domain_map_identity() local
408 iova = ALIGN(iova, granule); in viommu_domain_map_identity()
409 limit = ALIGN_DOWN(limit + 1, granule) - 1; in viommu_domain_map_identity()
412 u64 resv_start = ALIGN_DOWN(resv->start, granule); in viommu_domain_map_identity()
413 u64 resv_end = ALIGN(resv->start + resv->length, granule) - 1; in viommu_domain_map_identity()
H A Ddma-iommu.c429 if (cookie->iovad.granule) { in iommu_put_dma_cookie()
492 start += iovad->granule; in cookie_init_hw_msi_region()
701 if (1UL << order != iovad->granule || in iommu_dma_init_domain()
1915 size_t bounce_len = min(size, iovad->granule - iova_start_pad); in iommu_dma_iova_link_swiotlb()
2063 end - addr, iovad->granule - iova_start_pad); in iommu_dma_iova_unlink_range_slow()
2174 return domain->iova_cookie->iovad.granule; in cookie_msi_granule()
H A Dipmmu-vmsa.c317 size_t granule, void *cookie) in ipmmu_tlb_flush() argument
/linux/arch/arm64/kvm/hyp/
H A Dpgtable.c34 u64 granule = kvm_granule_size(ctx->level); in kvm_block_mapping_supported() local
39 if (granule > (ctx->end - ctx->addr)) in kvm_block_mapping_supported()
42 if (!IS_ALIGNED(phys, granule)) in kvm_block_mapping_supported()
45 return IS_ALIGNED(ctx->addr, granule); in kvm_block_mapping_supported()
473 u64 granule = kvm_granule_size(ctx->level); in hyp_unmap_walker() local
490 if (ctx->end - ctx->addr < granule) in hyp_unmap_walker()
496 *unmapped += granule; in hyp_unmap_walker()
961 u64 granule = kvm_granule_size(ctx->level); in stage2_map_walker_try_leaf() local
1004 granule); in stage2_map_walker_try_leaf()
1008 mm_ops->icache_inval_pou(kvm_pte_follow(new, mm_ops), granule); in stage2_map_walker_try_leaf()
/linux/arch/powerpc/boot/dts/
H A Dmicrowatt.dts119 reservation-granule-size = <64>;
149 reservation-granule-size = <64>;
/linux/Documentation/core-api/
H A Dswiotlb.rst53 granule, other parts of the granule may contain unrelated kernel data. Since
54 IOMMU access control is per-granule, the untrusted device can gain access to
136 devices. It is set to the granule size - 1 so that the bounce buffer is
192 granule size, and granules cannot be larger than PAGE_SIZE. But if that were to
/linux/drivers/gpu/drm/panfrost/
H A Dpanfrost_mmu.c539 static void mmu_tlb_flush_walk(unsigned long iova, size_t size, size_t granule, in mmu_tlb_flush_walk() argument
/linux/drivers/gpu/drm/panthor/
H A Dpanthor_mmu.c1753 static void mmu_tlb_flush_walk(unsigned long iova, size_t size, size_t granule, void *cookie) in mmu_tlb_flush_walk() argument