Home
last modified time | relevance | path

Searched refs:spa_size (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/misc/cxl/
Dnative.c205 static int spa_max_procs(int spa_size) in spa_max_procs() argument
220 return ((spa_size / 8) - 96) / 17; in spa_max_procs()
225 unsigned spa_size; in cxl_alloc_spa() local
231 spa_size = (1 << afu->native->spa_order) * PAGE_SIZE; in cxl_alloc_spa()
233 if (spa_size > 0x100000) { in cxl_alloc_spa()
235 afu->native->spa_max_procs, afu->native->spa_size); in cxl_alloc_spa()
241 afu->native->spa_size = spa_size; in cxl_alloc_spa()
242 afu->native->spa_max_procs = spa_max_procs(afu->native->spa_size); in cxl_alloc_spa()
264 spap |= ((afu->native->spa_size >> (12 - CXL_PSL_SPAP_Size_Shift)) - 1) & CXL_PSL_SPAP_Size; in attach_spa()
Dcxl.h460 unsigned int spa_size; member