Searched refs:max_asid (Results 1 – 11 of 11) sorted by relevance
/linux-6.1.9/drivers/misc/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 | 730 u32 max_asid; member
|
/linux-6.1.9/drivers/iommu/arm/arm-smmu/ |
D | qcom_iommu.c | 759 int ret, max_asid = 0; in qcom_iommu_device_probe() local 765 max_asid = max(max_asid, get_asid(child)); in qcom_iommu_device_probe() 767 qcom_iommu = devm_kzalloc(dev, struct_size(qcom_iommu, ctxs, max_asid), in qcom_iommu_device_probe() 771 qcom_iommu->num_ctxs = max_asid; in qcom_iommu_device_probe()
|
/linux-6.1.9/arch/x86/kvm/svm/ |
D | sev.c | 79 static int sev_flush_asids(int min_asid, int max_asid) in sev_flush_asids() argument 85 if (asid > max_asid) in sev_flush_asids() 111 static bool __sev_recycle_asids(int min_asid, int max_asid) in __sev_recycle_asids() argument 113 if (sev_flush_asids(min_asid, max_asid)) in __sev_recycle_asids() 138 int asid, min_asid, max_asid, ret; in sev_asid_new() local 157 max_asid = sev->es_active ? min_sev_asid - 1 : max_sev_asid; in sev_asid_new() 159 asid = find_next_zero_bit(sev_asid_bitmap, max_asid + 1, min_asid); in sev_asid_new() 160 if (asid > max_asid) { in sev_asid_new() 161 if (retry && __sev_recycle_asids(min_asid, max_asid)) { in sev_asid_new()
|
D | svm.h | 284 u32 max_asid; member
|
D | svm.c | 580 sd->max_asid = cpuid_ebx(SVM_CPUID_FUNC) - 1; in svm_hardware_enable() 581 sd->next_asid = sd->max_asid + 1; in svm_hardware_enable() 1894 if (sd->next_asid > sd->max_asid) { in new_asid()
|
/linux-6.1.9/drivers/misc/habanalabs/common/mmu/ |
D | mmu.c | 820 for (asid = 0 ; asid < prop->max_asid ; asid++) { in hl_mmu_hr_pool_destroy() 874 hr_priv->mmu_asid_hop0 = kvcalloc(prop->max_asid, sizeof(struct pgt_info), GFP_KERNEL); in hl_mmu_hr_init() 900 for (i = 0 ; i < prop->max_asid ; i++) { in hl_mmu_hr_init()
|
D | mmu_v1.c | 396 hdev->mmu_priv.dr.mmu_shadow_hop0 = kvcalloc(prop->max_asid, prop->mmu_hop_table_size, in hl_mmu_v1_init()
|
/linux-6.1.9/drivers/misc/habanalabs/gaudi2/ |
D | gaudi2.c | 2034 prop->max_asid = MAX_ASID; in gaudi2_set_fixed_properties() 5038 u32 asid, max_asid = prop->max_asid; in gaudi2_mmu_update_hop0_addr() local 5043 max_asid = min((u32) 8, max_asid); in gaudi2_mmu_update_hop0_addr() 5045 for (asid = 0 ; asid < max_asid ; asid++) { in gaudi2_mmu_update_hop0_addr()
|
/linux-6.1.9/drivers/misc/habanalabs/goya/ |
D | goya.c | 458 prop->max_asid = MAX_ASID; in goya_set_fixed_properties() 2675 for (i = 0 ; i < prop->max_asid ; i++) { in goya_mmu_init()
|
/linux-6.1.9/drivers/misc/habanalabs/gaudi/ |
D | gaudi.c | 657 prop->max_asid = MAX_ASID; in gaudi_set_fixed_properties() 3711 for (i = 0 ; i < prop->max_asid ; i++) { in gaudi_mmu_init()
|