Searched refs:max_asid (Results 1 – 9 of 9) sorted by relevance
/linux-5.19.10/drivers/misc/habanalabs/common/ |
D | asid.c | 14 hdev->asid_bitmap = kcalloc(BITS_TO_LONGS(hdev->asic_prop.max_asid), in hl_asid_init() 40 hdev->asic_prop.max_asid); in hl_asid_alloc() 41 if (found == hdev->asic_prop.max_asid) in hl_asid_alloc() 53 if (asid == HL_KERNEL_ASID_ID || asid >= hdev->asic_prop.max_asid) { in hl_asid_free()
|
D | habanalabs.h | 603 u32 max_asid; member
|
/linux-5.19.10/drivers/iommu/arm/arm-smmu/ |
D | qcom_iommu.c | 770 int ret, max_asid = 0; in qcom_iommu_device_probe() local 776 max_asid = max(max_asid, get_asid(child)); in qcom_iommu_device_probe() 778 qcom_iommu = devm_kzalloc(dev, struct_size(qcom_iommu, ctxs, max_asid), in qcom_iommu_device_probe() 782 qcom_iommu->num_ctxs = max_asid; in qcom_iommu_device_probe()
|
/linux-5.19.10/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 | 273 u32 max_asid; member
|
D | svm.c | 519 sd->max_asid = cpuid_ebx(SVM_CPUID_FUNC) - 1; in svm_hardware_enable() 520 sd->next_asid = sd->max_asid + 1; in svm_hardware_enable() 1803 if (sd->next_asid > sd->max_asid) { in new_asid()
|
/linux-5.19.10/drivers/misc/habanalabs/common/mmu/ |
D | mmu_v1.c | 396 hdev->mmu_priv.dr.mmu_shadow_hop0 = kvmalloc_array(prop->max_asid, in hl_mmu_v1_init()
|
/linux-5.19.10/drivers/misc/habanalabs/goya/ |
D | goya.c | 457 prop->max_asid = MAX_ASID; in goya_set_fixed_properties() 2690 for (i = 0 ; i < prop->max_asid ; i++) { in goya_mmu_init()
|
/linux-5.19.10/drivers/misc/habanalabs/gaudi/ |
D | gaudi.c | 634 prop->max_asid = MAX_ASID; in gaudi_set_fixed_properties() 3841 for (i = 0 ; i < prop->max_asid ; i++) { in gaudi_mmu_init()
|