Home
last modified time | relevance | path

Searched refs:max_asid (Results 1 – 9 of 9) sorted by relevance

/linux-5.19.10/drivers/misc/habanalabs/common/
Dasid.c14 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()
Dhabanalabs.h603 u32 max_asid; member
/linux-5.19.10/drivers/iommu/arm/arm-smmu/
Dqcom_iommu.c770 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/
Dsev.c79 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()
Dsvm.h273 u32 max_asid; member
Dsvm.c519 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/
Dmmu_v1.c396 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/
Dgoya.c457 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/
Dgaudi.c634 prop->max_asid = MAX_ASID; in gaudi_set_fixed_properties()
3841 for (i = 0 ; i < prop->max_asid ; i++) { in gaudi_mmu_init()