Searched refs:max_asid (Results 1 – 10 of 10) sorted by relevance
/linux-6.12.1/drivers/accel/habanalabs/common/ |
D | asid.c | 14 hdev->asid_bitmap = bitmap_zalloc(hdev->asic_prop.max_asid, GFP_KERNEL); in hl_asid_init() 39 hdev->asic_prop.max_asid); in hl_asid_alloc() 40 if (found == hdev->asic_prop.max_asid) in hl_asid_alloc() 52 if (asid == HL_KERNEL_ASID_ID || asid >= hdev->asic_prop.max_asid) { in hl_asid_free()
|
D | habanalabs.h | 753 u32 max_asid; member
|
/linux-6.12.1/drivers/iommu/arm/arm-smmu/ |
D | qcom_iommu.c | 53 u8 max_asid; member 572 if (WARN_ON(asid > qcom_iommu->max_asid) || in qcom_iommu_of_xlate() 787 int ret, max_asid = 0; in qcom_iommu_device_probe() local 793 max_asid = max(max_asid, get_asid(child)); in qcom_iommu_device_probe() 795 qcom_iommu = devm_kzalloc(dev, struct_size(qcom_iommu, ctxs, max_asid + 1), in qcom_iommu_device_probe() 799 qcom_iommu->max_asid = max_asid; in qcom_iommu_device_probe()
|
/linux-6.12.1/drivers/accel/habanalabs/common/mmu/ |
D | mmu.c | 792 for (asid = 0 ; asid < prop->max_asid ; asid++) { in hl_mmu_hr_pool_destroy() 846 hr_priv->mmu_asid_hop0 = kvcalloc(prop->max_asid, sizeof(struct pgt_info), GFP_KERNEL); in hl_mmu_hr_init() 872 for (i = 0 ; i < prop->max_asid ; i++) { in hl_mmu_hr_init() 1402 hdev->mmu_priv.dr.mmu_shadow_hop0 = kvcalloc(prop->max_asid, in hl_mmu_dr_init()
|
/linux-6.12.1/arch/x86/kvm/svm/ |
D | sev.c | 103 static int sev_flush_asids(unsigned int min_asid, unsigned int max_asid) in sev_flush_asids() argument 110 if (asid > max_asid) in sev_flush_asids() 149 static bool __sev_recycle_asids(unsigned int min_asid, unsigned int max_asid) in __sev_recycle_asids() argument 151 if (sev_flush_asids(min_asid, max_asid)) in __sev_recycle_asids() 183 unsigned int max_asid = sev->es_active ? min_sev_asid - 1 : max_sev_asid; in sev_asid_new() local 188 if (min_asid > max_asid) in sev_asid_new() 203 asid = find_next_zero_bit(sev_asid_bitmap, max_asid + 1, min_asid); in sev_asid_new() 204 if (asid > max_asid) { in sev_asid_new() 205 if (retry && __sev_recycle_asids(min_asid, max_asid)) { in sev_asid_new()
|
D | svm.h | 334 u32 max_asid; member
|
D | svm.c | 626 sd->max_asid = cpuid_ebx(SVM_CPUID_FUNC) - 1; in svm_enable_virtualization_cpu() 627 sd->next_asid = sd->max_asid + 1; in svm_enable_virtualization_cpu() 1985 if (sd->next_asid > sd->max_asid) { in new_asid()
|
/linux-6.12.1/drivers/accel/habanalabs/gaudi2/ |
D | gaudi2.c | 2468 prop->max_asid = 2; in gaudi2_set_fixed_properties() 2486 prop->dmmu.hop0_tables_total_size = HOP_TABLE_SIZE_512_PTE * prop->max_asid; in gaudi2_set_fixed_properties() 2504 prop->pmmu.hop0_tables_total_size = HOP_TABLE_SIZE_512_PTE * prop->max_asid; in gaudi2_set_fixed_properties() 5926 u32 asid, max_asid = prop->max_asid; in gaudi2_mmu_update_hop0_addr() local 5931 max_asid = min((u32) 8, max_asid); in gaudi2_mmu_update_hop0_addr() 5933 for (asid = 0 ; asid < max_asid ; asid++) { in gaudi2_mmu_update_hop0_addr()
|
/linux-6.12.1/drivers/accel/habanalabs/goya/ |
D | goya.c | 456 prop->max_asid = MAX_ASID; in goya_set_fixed_properties() 2674 for (i = 0 ; i < prop->max_asid ; i++) { in goya_mmu_init()
|
/linux-6.12.1/drivers/accel/habanalabs/gaudi/ |
D | gaudi.c | 653 prop->max_asid = MAX_ASID; in gaudi_set_fixed_properties() 3650 for (i = 0 ; i < prop->max_asid ; i++) { in gaudi_mmu_init()
|