Searched refs:max_asid (Results 1 – 11 of 11) sorted by relevance
/linux-6.6.21/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 | 742 u32 max_asid; member
|
/linux-6.6.21/drivers/iommu/arm/arm-smmu/ ! |
D | qcom_iommu.c | 53 u8 max_asid; member 545 if (WARN_ON(asid > qcom_iommu->max_asid) || in qcom_iommu_of_xlate() 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 + 1), in qcom_iommu_device_probe() 771 qcom_iommu->max_asid = max_asid; in qcom_iommu_device_probe()
|
/linux-6.6.21/arch/x86/kvm/svm/ ! |
D | sev.c | 87 static int sev_flush_asids(int min_asid, int max_asid) in sev_flush_asids() argument 93 if (asid > max_asid) in sev_flush_asids() 119 static bool __sev_recycle_asids(int min_asid, int max_asid) in __sev_recycle_asids() argument 121 if (sev_flush_asids(min_asid, max_asid)) in __sev_recycle_asids() 146 int asid, min_asid, max_asid, ret; in sev_asid_new() local 165 max_asid = sev->es_active ? min_sev_asid - 1 : max_sev_asid; in sev_asid_new() 167 asid = find_next_zero_bit(sev_asid_bitmap, max_asid + 1, min_asid); in sev_asid_new() 168 if (asid > max_asid) { in sev_asid_new() 169 if (retry && __sev_recycle_asids(min_asid, max_asid)) { in sev_asid_new()
|
D | svm.h | 297 u32 max_asid; member
|
D | svm.c | 636 sd->max_asid = cpuid_ebx(SVM_CPUID_FUNC) - 1; in svm_hardware_enable() 637 sd->next_asid = sd->max_asid + 1; in svm_hardware_enable() 1999 if (sd->next_asid > sd->max_asid) { in new_asid()
|
/linux-6.6.21/drivers/accel/habanalabs/common/mmu/ ! |
D | mmu.c | 785 for (asid = 0 ; asid < prop->max_asid ; asid++) { in hl_mmu_hr_pool_destroy() 839 hr_priv->mmu_asid_hop0 = kvcalloc(prop->max_asid, sizeof(struct pgt_info), GFP_KERNEL); in hl_mmu_hr_init() 865 for (i = 0 ; i < prop->max_asid ; i++) { in hl_mmu_hr_init()
|
D | mmu_v1.c | 395 hdev->mmu_priv.dr.mmu_shadow_hop0 = kvcalloc(prop->max_asid, prop->mmu_hop_table_size, in hl_mmu_v1_init()
|
/linux-6.6.21/drivers/accel/habanalabs/gaudi2/ ! |
D | gaudi2.c | 2422 prop->max_asid = MAX_ASID; in gaudi2_set_fixed_properties() 5743 u32 asid, max_asid = prop->max_asid; in gaudi2_mmu_update_hop0_addr() local 5748 max_asid = min((u32) 8, max_asid); in gaudi2_mmu_update_hop0_addr() 5750 for (asid = 0 ; asid < max_asid ; asid++) { in gaudi2_mmu_update_hop0_addr()
|
/linux-6.6.21/drivers/accel/habanalabs/goya/ ! |
D | goya.c | 458 prop->max_asid = MAX_ASID; in goya_set_fixed_properties() 2679 for (i = 0 ; i < prop->max_asid ; i++) { in goya_mmu_init()
|
/linux-6.6.21/drivers/accel/habanalabs/gaudi/ ! |
D | gaudi.c | 650 prop->max_asid = MAX_ASID; in gaudi_set_fixed_properties() 3649 for (i = 0 ; i < prop->max_asid ; i++) { in gaudi_mmu_init()
|