Lines Matching refs:dram_info
68 int ddr3_find_adll_limits(MV_DRAM_INFO *dram_info, u32 cs, u32 ecc, int is_tx);
71 static int ddr3_center_calc(MV_DRAM_INFO *dram_info, u32 cs, u32 ecc,
73 int ddr3_special_pattern_i_search(MV_DRAM_INFO *dram_info, u32 cs, u32 ecc,
75 int ddr3_special_pattern_ii_search(MV_DRAM_INFO *dram_info, u32 cs, u32 ecc,
77 int ddr3_set_dqs_centralization_results(MV_DRAM_INFO *dram_info, u32 cs, u32 ecc,
93 static u32 *ddr3_dqs_choose_pattern(MV_DRAM_INFO *dram_info, u32 victim_dq) in ddr3_dqs_choose_pattern() argument
98 switch (dram_info->ddr_width) { in ddr3_dqs_choose_pattern()
131 int ddr3_dqs_centralization_rx(MV_DRAM_INFO *dram_info) in ddr3_dqs_centralization_rx() argument
152 if (dram_info->cs_ena & (1 << cs)) { in ddr3_dqs_centralization_rx()
156 for (ecc = 0; ecc < (dram_info->ecc_ena + 1); ecc++) { in ddr3_dqs_centralization_rx()
161 reg |= (dram_info->ecc_ena * in ddr3_dqs_centralization_rx()
172 status = ddr3_find_adll_limits(dram_info, cs, in ddr3_dqs_centralization_rx()
179 status = ddr3_center_calc(dram_info, cs, ecc, in ddr3_dqs_centralization_rx()
213 int ddr3_dqs_centralization_tx(MV_DRAM_INFO *dram_info) in ddr3_dqs_centralization_tx() argument
234 if (dram_info->cs_ena & (1 << cs)) { in ddr3_dqs_centralization_tx()
237 for (ecc = 0; ecc < (dram_info->ecc_ena + 1); ecc++) { in ddr3_dqs_centralization_tx()
241 reg |= (dram_info->ecc_ena * in ddr3_dqs_centralization_tx()
252 status = ddr3_find_adll_limits(dram_info, cs, in ddr3_dqs_centralization_tx()
259 status = ddr3_center_calc(dram_info, cs, ecc, in ddr3_dqs_centralization_tx()
296 int ddr3_find_adll_limits(MV_DRAM_INFO *dram_info, u32 cs, u32 ecc, int is_tx) in ddr3_find_adll_limits() argument
322 max_pup = (ecc + (1 - ecc) * dram_info->num_of_std_pups); in ddr3_find_adll_limits()
335 if (dram_info->cs_ena & (1 << cs_tmp)) in ddr3_find_adll_limits()
395 dram_info->wl_val[cs] in ddr3_find_adll_limits()
404 pattern_ptr = ddr3_dqs_choose_pattern(dram_info, in ddr3_find_adll_limits()
413 if (MV_OK != ddr3_sdram_dqs_compare(dram_info, in ddr3_find_adll_limits()
887 static int ddr3_center_calc(MV_DRAM_INFO *dram_info, u32 cs, u32 ecc, in ddr3_center_calc() argument
896 max_pup = (ecc + (1 - ecc) * dram_info->num_of_std_pups); in ddr3_center_calc()
926 ddr3_special_pattern_i_search(dram_info, cs, ecc, is_tx, in ddr3_center_calc()
935 ddr3_special_pattern_ii_search(dram_info, cs, ecc, is_tx, in ddr3_center_calc()
941 return ddr3_set_dqs_centralization_results(dram_info, cs, ecc, is_tx); in ddr3_center_calc()
952 int ddr3_special_pattern_i_search(MV_DRAM_INFO *dram_info, u32 cs, u32 ecc, in ddr3_special_pattern_i_search() argument
969 max_pup = ecc + (1 - ecc) * dram_info->num_of_std_pups; in ddr3_special_pattern_i_search()
1003 ddr3_sdram_dqs_compare(dram_info, unlock_pup, in ddr3_special_pattern_i_search()
1113 int ddr3_special_pattern_ii_search(MV_DRAM_INFO *dram_info, u32 cs, u32 ecc, in ddr3_special_pattern_ii_search() argument
1130 max_pup = (ecc + (1 - ecc) * dram_info->num_of_std_pups); in ddr3_special_pattern_ii_search()
1162 dram_info, unlock_pup, &new_lockup_pup, in ddr3_special_pattern_ii_search()
1262 int ddr3_set_dqs_centralization_results(MV_DRAM_INFO *dram_info, u32 cs, in ddr3_set_dqs_centralization_results() argument
1269 max_pup = (ecc + (1 - ecc) * dram_info->num_of_std_pups); in ddr3_set_dqs_centralization_results()
1315 dram_info->wl_val[cs][pup_num][D]); in ddr3_set_dqs_centralization_results()
1328 int ddr3_load_dqs_patterns(MV_DRAM_INFO *dram_info) in ddr3_load_dqs_patterns() argument
1336 if (dram_info->cs_ena & (1 << cs)) { in ddr3_load_dqs_patterns()
1339 if (dram_info->cs_ena & (1 << cs_tmp)) in ddr3_load_dqs_patterns()
1347 pattern_ptr = ddr3_dqs_choose_pattern(dram_info, in ddr3_load_dqs_patterns()
1350 dram_info, (u32)NULL, NULL, in ddr3_load_dqs_patterns()
1363 dram_info, (u32)NULL, NULL, in ddr3_load_dqs_patterns()