Lines Matching refs:cs_mode
1288 unsigned cs_mode, int cs_mask_nr) in k8_dbam_to_chip_select() argument
1293 WARN_ON(cs_mode > 11); in k8_dbam_to_chip_select()
1294 return ddr2_cs_size(cs_mode, dclr & WIDTH_128); in k8_dbam_to_chip_select()
1298 WARN_ON(cs_mode > 10); in k8_dbam_to_chip_select()
1324 diff = cs_mode/3 + (unsigned)(cs_mode > 5); in k8_dbam_to_chip_select()
1326 return 32 << (cs_mode - diff); in k8_dbam_to_chip_select()
1329 WARN_ON(cs_mode > 6); in k8_dbam_to_chip_select()
1330 return 32 << cs_mode; in k8_dbam_to_chip_select()
1455 unsigned cs_mode, int cs_mask_nr) in f10_dbam_to_chip_select() argument
1459 WARN_ON(cs_mode > 11); in f10_dbam_to_chip_select()
1462 return ddr3_cs_size(cs_mode, dclr & WIDTH_128); in f10_dbam_to_chip_select()
1464 return ddr2_cs_size(cs_mode, dclr & WIDTH_128); in f10_dbam_to_chip_select()
1471 unsigned cs_mode, int cs_mask_nr) in f15_dbam_to_chip_select() argument
1473 WARN_ON(cs_mode > 12); in f15_dbam_to_chip_select()
1475 return ddr3_cs_size(cs_mode, false); in f15_dbam_to_chip_select()
1480 unsigned cs_mode, int cs_mask_nr) in f15_m60h_dbam_to_chip_select() argument
1485 WARN_ON(cs_mode > 12); in f15_m60h_dbam_to_chip_select()
1488 if (cs_mode > 9) in f15_m60h_dbam_to_chip_select()
1491 cs_size = ddr4_cs_size(cs_mode); in f15_m60h_dbam_to_chip_select()
1497 cs_size = ddr3_lrdimm_cs_size(cs_mode, rank_multiply); in f15_m60h_dbam_to_chip_select()
1500 if (cs_mode == 0x1) in f15_m60h_dbam_to_chip_select()
1503 cs_size = ddr3_cs_size(cs_mode, false); in f15_m60h_dbam_to_chip_select()
1513 unsigned cs_mode, int cs_mask_nr) in f16_dbam_to_chip_select() argument
1515 WARN_ON(cs_mode > 12); in f16_dbam_to_chip_select()
1517 if (cs_mode == 6 || cs_mode == 8 || in f16_dbam_to_chip_select()
1518 cs_mode == 9 || cs_mode == 12) in f16_dbam_to_chip_select()
1521 return ddr3_cs_size(cs_mode, false); in f16_dbam_to_chip_select()
1525 unsigned int cs_mode, int csrow_nr) in f17_base_addr_to_cs_size() argument
2765 u32 cs_mode, nr_pages; in get_csrow_nr_pages() local
2770 cs_mode = DBAM_DIMM(csrow_nr, dbam); in get_csrow_nr_pages()
2772 nr_pages = pvt->ops->dbam_to_cs(pvt, dct, cs_mode, csrow_nr); in get_csrow_nr_pages()
2776 csrow_nr_orig, dct, cs_mode); in get_csrow_nr_pages()