Lines Matching refs:dram_addr
858 u64 dram_base, hole_base, hole_offset, hole_size, dram_addr; in sys_addr_to_dram_addr() local
868 dram_addr = sys_addr - hole_offset; in sys_addr_to_dram_addr()
872 (unsigned long)dram_addr); in sys_addr_to_dram_addr()
874 return dram_addr; in sys_addr_to_dram_addr()
887 dram_addr = (sys_addr & GENMASK_ULL(39, 0)) - dram_base; in sys_addr_to_dram_addr()
890 (unsigned long)sys_addr, (unsigned long)dram_addr); in sys_addr_to_dram_addr()
891 return dram_addr; in sys_addr_to_dram_addr()
910 static u64 dram_addr_to_input_addr(struct mem_ctl_info *mci, u64 dram_addr) in dram_addr_to_input_addr() argument
923 input_addr = ((dram_addr >> intlv_shift) & GENMASK_ULL(35, 12)) + in dram_addr_to_input_addr()
924 (dram_addr & 0xfff); in dram_addr_to_input_addr()
927 intlv_shift, (unsigned long)dram_addr, in dram_addr_to_input_addr()