Home
last modified time | relevance | path

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

/linux-6.12.1/mm/
Dmemory-tiers.c202 int adistance = memtype->adistance; in find_create_memory_tier() local
207 adistance = round_down(adistance, memtier_adistance_chunk_size); in find_create_memory_tier()
214 if (adistance == memtier->adistance_start) in find_create_memory_tier()
222 if (adistance == memtier->adistance_start) { in find_create_memory_tier()
224 } else if (adistance < memtier->adistance_start) { in find_create_memory_tier()
234 new_memtier->adistance_start = adistance; in find_create_memory_tier()
242 new_memtier->dev.id = adistance >> MEMTIER_CHUNK_BITS; in find_create_memory_tier()
614 struct memory_dev_type *alloc_memory_type(int adistance) in alloc_memory_type() argument
622 memtype->adistance = adistance; in alloc_memory_type()
668 if (mtype->adistance == adist) in mt_find_alloc_memory_type()
/linux-6.12.1/include/linux/
Dmemory-tiers.h30 int adistance; member
42 struct memory_dev_type *alloc_memory_type(int adistance);
84 static inline struct memory_dev_type *alloc_memory_type(int adistance) in alloc_memory_type() argument