Searched refs:max_pasid (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/drivers/misc/ocxl/ |
D | pasid.c | 83 int max_pasid; in ocxl_pasid_afu_alloc() local 87 max_pasid = 1 << fn->config.max_pasid_log; in ocxl_pasid_afu_alloc() 88 return range_alloc(&fn->pasid_list, size, max_pasid, "afu pasid"); in ocxl_pasid_afu_alloc()
|
/linux-6.1.9/drivers/iommu/intel/ |
D | pasid.c | 99 u32 max_pasid = 0; in intel_pasid_alloc_table() local 112 max_pasid = min_t(u32, pci_max_pasids(to_pci_dev(dev)), in intel_pasid_alloc_table() 115 size = max_pasid >> (PASID_PDE_SHIFT - 3); in intel_pasid_alloc_table() 126 pasid_table->max_pasid = 1 << (order + PAGE_SHIFT + 3); in intel_pasid_alloc_table() 149 max_pde = pasid_table->max_pasid >> PASID_PDE_SHIFT; in intel_pasid_free_table() 178 return info->pasid_table->max_pasid; in intel_pasid_get_dev_max_id()
|
D | pasid.h | 77 u32 max_pasid; /* max pasid */ member
|
D | svm.c | 305 ioasid_t max_pasid = dev_is_pci(dev) ? in intel_svm_alloc_pasid() local 308 return iommu_sva_alloc_pasid(mm, PASID_MIN, max_pasid - 1); in intel_svm_alloc_pasid()
|
D | iommu.c | 1889 max_pde = table->max_pasid >> PASID_PDE_SHIFT; in context_get_sm_pds()
|
/linux-6.1.9/drivers/scsi/cxlflash/ |
D | ocxl_hw.h | 40 int max_pasid; /* Maximum number of contexts */ member
|
D | ocxl_hw.c | 499 rc = idr_alloc(&afu->idr, ctx, 0, afu->max_pasid, GFP_NOWAIT); in ocxlflash_dev_context_init() 885 afu->max_pasid = 1 << acfg->pasid_supported_log; in ocxlflash_config_afu()
|
/linux-6.1.9/drivers/iommu/amd/ |
D | init.c | 2032 u32 max_pasid; in iommu_init_pci() local 2037 max_pasid = (1 << (pasmax + 1)) - 1; in iommu_init_pci() 2039 amd_iommu_max_pasid = min(amd_iommu_max_pasid, max_pasid); in iommu_init_pci()
|