Home
last modified time | relevance | path

Searched refs:adist (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/include/linux/
Dmemory-tiers.h48 int mt_calc_adistance(int node, int *adist);
51 int mt_perf_to_adistance(struct access_coordinate *perf, int *adist);
52 struct memory_dev_type *mt_find_alloc_memory_type(int adist,
129 static inline int mt_calc_adistance(int node, int *adist) in mt_calc_adistance() argument
140 static inline int mt_perf_to_adistance(struct access_coordinate *perf, int *adist) in mt_perf_to_adistance() argument
145 static inline struct memory_dev_type *mt_find_alloc_memory_type(int adist, in mt_find_alloc_memory_type() argument
/linux-6.12.1/drivers/dax/
Dkmem.c56 static struct memory_dev_type *kmem_find_alloc_memory_type(int adist) in kmem_find_alloc_memory_type() argument
59 return mt_find_alloc_memory_type(adist, &kmem_memory_types); in kmem_find_alloc_memory_type()
77 int adist = MEMTIER_DEFAULT_DAX_ADISTANCE; in dev_dax_kmem_probe() local
92 mt_calc_adistance(numa_node, &adist); in dev_dax_kmem_probe()
93 mtype = kmem_find_alloc_memory_type(adist); in dev_dax_kmem_probe()
/linux-6.12.1/mm/
Dmemory-tiers.c536 int adist = MEMTIER_ADISTANCE_DRAM; in set_node_memory_tier() local
545 mt_calc_adistance(node, &adist); in set_node_memory_tier()
547 memtype = mt_find_alloc_memory_type(adist, &default_memory_types); in set_node_memory_tier()
663 struct memory_dev_type *mt_find_alloc_memory_type(int adist, struct list_head *memory_types) in mt_find_alloc_memory_type() argument
668 if (mtype->adistance == adist) in mt_find_alloc_memory_type()
671 mtype = alloc_memory_type(adist); in mt_find_alloc_memory_type()
785 int mt_perf_to_adistance(struct access_coordinate *perf, int *adist) in mt_perf_to_adistance() argument
805 *adist = MEMTIER_ADISTANCE_DRAM * in mt_perf_to_adistance()
865 int mt_calc_adistance(int node, int *adist) in mt_calc_adistance() argument
867 return blocking_notifier_call_chain(&mt_adistance_algorithms, node, adist); in mt_calc_adistance()
/linux-6.12.1/drivers/acpi/numa/
Dhmat.c963 int *adist = data; in hmat_calculate_adistance() local
977 if (mt_perf_to_adistance(perf, adist)) in hmat_calculate_adistance()
/linux-6.12.1/drivers/cxl/core/
Dregion.c2427 int *adist = data; in cxl_region_calculate_adistance() local
2440 if (mt_perf_to_adistance(perf, adist)) in cxl_region_calculate_adistance()