Lines Matching refs:fn
81 int ocxl_pasid_afu_alloc(struct ocxl_fn *fn, u32 size) in ocxl_pasid_afu_alloc() argument
85 if (fn->config.max_pasid_log < 0) in ocxl_pasid_afu_alloc()
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()
91 void ocxl_pasid_afu_free(struct ocxl_fn *fn, u32 start, u32 size) in ocxl_pasid_afu_free() argument
93 return range_free(&fn->pasid_list, start, size, "afu pasid"); in ocxl_pasid_afu_free()
96 int ocxl_actag_afu_alloc(struct ocxl_fn *fn, u32 size) in ocxl_actag_afu_alloc() argument
100 max_actag = fn->actag_enabled; in ocxl_actag_afu_alloc()
101 return range_alloc(&fn->actag_list, size, max_actag, "afu actag"); in ocxl_actag_afu_alloc()
104 void ocxl_actag_afu_free(struct ocxl_fn *fn, u32 start, u32 size) in ocxl_actag_afu_free() argument
106 return range_free(&fn->actag_list, start, size, "afu actag"); in ocxl_actag_afu_free()