Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
Dttm_memory.c53 uint64_t max_mem; member
103 val = zone->max_mem; in ttm_mem_zone_show()
139 if (zone->max_mem > val64) in ttm_mem_zone_store()
140 zone->max_mem = val64; in ttm_mem_zone_store()
142 zone->max_mem = val64; in ttm_mem_zone_store()
252 target = zone->max_mem; in ttm_zones_above_swap_target()
314 zone->max_mem = mem >> 1; in ttm_mem_init_kernel_zone()
316 zone->swap_limit = zone->max_mem - (mem >> 3); in ttm_mem_init_kernel_zone()
350 zone->max_mem = mem >> 1; in ttm_mem_init_highmem_zone()
352 zone->swap_limit = zone->max_mem - (mem >> 3); in ttm_mem_init_highmem_zone()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dprom.c452 u64 max_mem = 1UL << (MAX_PHYSMEM_BITS); in validate_mem_limit() local
454 if (base >= max_mem) in validate_mem_limit()
456 if ((base + *size) > max_mem) in validate_mem_limit()
457 *size = max_mem - base; in validate_mem_limit()
/kernel/linux/linux-5.10/include/linux/
Dsm501.h52 unsigned long max_mem; member
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/
Dsja1105_static_config.c664 int i, max_mem, mem = 0; in static_config_check_memory_size() local
678 max_mem = SJA1105_MAX_FRAME_MEMORY_RETAGGING; in static_config_check_memory_size()
680 max_mem = SJA1105_MAX_FRAME_MEMORY; in static_config_check_memory_size()
682 if (mem > max_mem) in static_config_check_memory_size()
Dsja1105_main.c446 int max_mem; in sja1105_frame_memory_partitioning() local
452 max_mem = SJA1105_MAX_FRAME_MEMORY_RETAGGING; in sja1105_frame_memory_partitioning()
454 max_mem = SJA1105_MAX_FRAME_MEMORY; in sja1105_frame_memory_partitioning()
458 l2_fwd_params->part_spc[0] = max_mem; in sja1105_frame_memory_partitioning()