Lines Matching refs:ram
138 static unsigned long calc_cam_sz(unsigned long ram, unsigned long virt, in calc_cam_sz() argument
141 unsigned int camsize = __ilog2(ram); in calc_cam_sz()
164 unsigned long ram, int max_cam_idx, in map_mem_in_cams_addr() argument
174 boundary = ram; in map_mem_in_cams_addr()
190 for (ram -= amount_mapped; ram && i < max_cam_idx; i++) { in map_mem_in_cams_addr()
194 cam_sz = calc_cam_sz(ram, virt, phys); in map_mem_in_cams_addr()
198 ram -= cam_sz; in map_mem_in_cams_addr()
224 unsigned long map_mem_in_cams(unsigned long ram, int max_cam_idx, bool dryrun, bool init) in map_mem_in_cams() argument
229 return map_mem_in_cams_addr(phys, virt, ram, max_cam_idx, dryrun, init); in map_mem_in_cams()
268 unsigned long ram; in adjust_total_lowmem() local
272 ram = min((phys_addr_t)__max_low_memory, (phys_addr_t)total_lowmem); in adjust_total_lowmem()
275 __max_low_memory = map_mem_in_cams(ram, CONFIG_LOWMEM_CAM_NUM, false, true); in adjust_total_lowmem()