Lines Matching refs:index
17 static inline u32 pattern_table_get_killer_word16(u8 dqs, u8 index);
18 static inline u32 pattern_table_get_sso_word(u8 sso, u8 index);
19 static inline u32 pattern_table_get_vref_word(u8 index);
20 static inline u32 pattern_table_get_vref_word16(u8 index);
21 static inline u32 pattern_table_get_sso_full_xtalk_word(u8 bit, u8 index);
22 static inline u32 pattern_table_get_sso_full_xtalk_word16(u8 bit, u8 index);
23 static inline u32 pattern_table_get_sso_xtalk_free_word(u8 bit, u8 index);
24 static inline u32 pattern_table_get_sso_xtalk_free_word16(u8 bit, u8 index);
25 static inline u32 pattern_table_get_isi_word(u8 index);
26 static inline u32 pattern_table_get_isi_word16(u8 index);
95 static inline u32 pattern_table_get_killer_word_4(u8 dqs, u8 index) in pattern_table_get_killer_word_4() argument
99 if (index >= (KILLER_PATTERN_LENGTH * 2)) { in pattern_table_get_killer_word_4()
100 printf("error: %s: invalid index [%u] found\n", __func__, index); in pattern_table_get_killer_word_4()
104 byte = pattern_killer_map[index]; in pattern_table_get_killer_word_4()
207 u32 mv_ddr_cl_val_get(u32 index, u32 freq) in mv_ddr_cl_val_get() argument
209 return cl_table[index].cl_val[freq]; in mv_ddr_cl_val_get()
269 u32 mv_ddr_cwl_val_get(u32 index, u32 freq) in mv_ddr_cwl_val_get() argument
271 return cwl_table[index].cl_val[freq]; in mv_ddr_cwl_val_get()
507 unsigned int mv_ddr_speed_bin_timing_get(enum mv_ddr_speed_bin index, enum mv_ddr_speed_bin_timing … in mv_ddr_speed_bin_timing_get() argument
514 result = speed_bin_table_t_rcd_t_rp[index]; in mv_ddr_speed_bin_timing_get()
517 if (index <= SPEED_BIN_DDR_1066G) in mv_ddr_speed_bin_timing_get()
519 else if (index <= SPEED_BIN_DDR_1333J) in mv_ddr_speed_bin_timing_get()
521 else if (index <= SPEED_BIN_DDR_1600K) in mv_ddr_speed_bin_timing_get()
523 else if (index <= SPEED_BIN_DDR_1866M) in mv_ddr_speed_bin_timing_get()
529 result = speed_bin_table_t_rc[index]; in mv_ddr_speed_bin_timing_get()
532 if (index <= SPEED_BIN_DDR_800E) in mv_ddr_speed_bin_timing_get()
534 else if (index <= SPEED_BIN_DDR_1066G) in mv_ddr_speed_bin_timing_get()
536 else if (index <= SPEED_BIN_DDR_1600K) in mv_ddr_speed_bin_timing_get()
542 if (index <= SPEED_BIN_DDR_1066G) in mv_ddr_speed_bin_timing_get()
544 else if (index <= SPEED_BIN_DDR_1600K) in mv_ddr_speed_bin_timing_get()
550 if (index < SPEED_BIN_DDR_800E) in mv_ddr_speed_bin_timing_get()
552 else if (index < SPEED_BIN_DDR_1333J) in mv_ddr_speed_bin_timing_get()
558 if (index <= SPEED_BIN_DDR_800E) in mv_ddr_speed_bin_timing_get()
560 else if (index <= SPEED_BIN_DDR_1066G) in mv_ddr_speed_bin_timing_get()
562 else if (index <= SPEED_BIN_DDR_1600K) in mv_ddr_speed_bin_timing_get()
564 else if (index <= SPEED_BIN_DDR_1866M) in mv_ddr_speed_bin_timing_get()
570 if (index <= SPEED_BIN_DDR_1066G) in mv_ddr_speed_bin_timing_get()
572 else if (index <= SPEED_BIN_DDR_1333J) in mv_ddr_speed_bin_timing_get()
574 else if (index <= SPEED_BIN_DDR_1600K) in mv_ddr_speed_bin_timing_get()
604 static inline u32 pattern_table_get_killer_word(u8 dqs, u8 index) in pattern_table_get_killer_word() argument
613 byte |= pattern_killer_pattern_table_map[index][role] << i; in pattern_table_get_killer_word()
620 static inline u32 pattern_table_get_killer_word16(u8 dqs, u8 index) in pattern_table_get_killer_word16() argument
629 byte0 |= pattern_killer_pattern_table_map[index * 2][role] << i; in pattern_table_get_killer_word16()
630 byte1 |= pattern_killer_pattern_table_map[index * 2 + 1][role] << i; in pattern_table_get_killer_word16()
636 static inline u32 pattern_table_get_sso_word(u8 sso, u8 index) in pattern_table_get_sso_word() argument
640 if (0 == ((index / step) & 1)) in pattern_table_get_sso_word()
646 static inline u32 pattern_table_get_sso_full_xtalk_word(u8 bit, u8 index) in pattern_table_get_sso_full_xtalk_word() argument
650 if ((index & 1) == 1) in pattern_table_get_sso_full_xtalk_word()
657 static inline u32 pattern_table_get_sso_xtalk_free_word(u8 bit, u8 index) in pattern_table_get_sso_xtalk_free_word() argument
661 if ((index & 1) == 1) in pattern_table_get_sso_xtalk_free_word()
667 static inline u32 pattern_table_get_isi_word(u8 index) in pattern_table_get_isi_word() argument
669 u8 i0 = index % 32; in pattern_table_get_isi_word()
670 u8 i1 = index % 8; in pattern_table_get_isi_word()
683 static inline u32 pattern_table_get_sso_full_xtalk_word16(u8 bit, u8 index) in pattern_table_get_sso_full_xtalk_word16() argument
687 if ((index & 1) == 1) in pattern_table_get_sso_full_xtalk_word16()
693 static inline u32 pattern_table_get_sso_xtalk_free_word16(u8 bit, u8 index) in pattern_table_get_sso_xtalk_free_word16() argument
697 if ((index & 1) == 0) in pattern_table_get_sso_xtalk_free_word16()
703 static inline u32 pattern_table_get_isi_word16(u8 index) in pattern_table_get_isi_word16() argument
705 u8 i0 = index % 16; in pattern_table_get_isi_word16()
706 u8 i1 = index % 4; in pattern_table_get_isi_word16()
719 static inline u32 pattern_table_get_vref_word(u8 index) in pattern_table_get_vref_word() argument
721 if (0 == ((pattern_vref_pattern_table_map[index / 8] >> in pattern_table_get_vref_word()
722 (index % 8)) & 1)) in pattern_table_get_vref_word()
728 static inline u32 pattern_table_get_vref_word16(u8 index) in pattern_table_get_vref_word16() argument
731 [PATTERN_KILLER_PATTERN_TABLE_MAP_ROLE_VICTIM][index * 2] && in pattern_table_get_vref_word16()
733 [PATTERN_KILLER_PATTERN_TABLE_MAP_ROLE_VICTIM][index * 2 + 1]) in pattern_table_get_vref_word16()
736 [PATTERN_KILLER_PATTERN_TABLE_MAP_ROLE_VICTIM][index * 2] && in pattern_table_get_vref_word16()
738 [PATTERN_KILLER_PATTERN_TABLE_MAP_ROLE_VICTIM][index * 2 + 1]) in pattern_table_get_vref_word16()
741 [PATTERN_KILLER_PATTERN_TABLE_MAP_ROLE_VICTIM][index * 2] && in pattern_table_get_vref_word16()
743 [PATTERN_KILLER_PATTERN_TABLE_MAP_ROLE_VICTIM][index * 2 + 1]) in pattern_table_get_vref_word16()
750 static inline u32 pattern_table_get_static_pbs_word(u8 index) in pattern_table_get_static_pbs_word() argument
754 temp = ((0x00ff << (index / 3)) & 0xff00) >> 8; in pattern_table_get_static_pbs_word()
760 u32 pattern_table_get_word(u32 dev_num, enum hws_pattern type, u8 index) in pattern_table_get_word() argument
771 if (index == 0 || index == 2 || index == 5 || in pattern_table_get_word()
772 index == 7) in pattern_table_get_word()
780 if (0 == (index & 1)) in pattern_table_get_word()
788 if (index < 6) in pattern_table_get_word()
798 pattern = pattern_table_get_static_pbs_word(index); in pattern_table_get_word()
814 (u8)(type - PATTERN_KILLER_DQ0), index); in pattern_table_get_word()
818 if (index < 6) in pattern_table_get_word()
827 if (index > 1 && index < 6) in pattern_table_get_word()
837 (u8)(type - PATTERN_FULL_SSO0), index); in pattern_table_get_word()
840 pattern = pattern_table_get_vref_word(index); in pattern_table_get_word()
851 (u8)(type - PATTERN_SSO_FULL_XTALK_DQ0), index); in pattern_table_get_word()
862 (u8)(type - PATTERN_SSO_XTALK_FREE_DQ0), index); in pattern_table_get_word()
865 pattern = pattern_table_get_isi_word(index); in pattern_table_get_word()
877 (u8)(type - PATTERN_KILLER_DQ0_INV), index); in pattern_table_get_word()
891 if (index < t_end) in pattern_table_get_word()
892 pattern = ((index % (t_num * 2)) >= t_num) ? 0xffffffff : 0x00000000; in pattern_table_get_word()
894 pattern = ((index % 2) == 0) ? 0xffffffff : 0x00000000; in pattern_table_get_word()
904 pattern = ~pattern_table_get_vref_word(index); in pattern_table_get_word()
925 if (index < 3) in pattern_table_get_word()
947 (u8)(type - PATTERN_KILLER_DQ0), index); in pattern_table_get_word()
951 if (index < 3) in pattern_table_get_word()
959 if ((index == 0) || (index == 3)) in pattern_table_get_word()
964 if ((index > 1) && (index < 6)) in pattern_table_get_word()
980 (u8)(type - PATTERN_FULL_SSO1), index); in pattern_table_get_word()
982 (u8)(type - PATTERN_FULL_SSO0), index); in pattern_table_get_word()
986 pattern = pattern_table_get_vref_word16(index); in pattern_table_get_word()
997 (u8)(type - PATTERN_SSO_FULL_XTALK_DQ0), index); in pattern_table_get_word()
1008 (u8)(type - PATTERN_SSO_XTALK_FREE_DQ0), index); in pattern_table_get_word()
1011 pattern = pattern_table_get_isi_word16(index); in pattern_table_get_word()
1023 (u8)(type - PATTERN_KILLER_DQ0_INV), index); in pattern_table_get_word()
1037 if (index < t_end) in pattern_table_get_word()
1038 pattern = ((index % (t_num * 2)) >= t_num) ? 0xffffffff : 0x00000000; in pattern_table_get_word()
1040 pattern = ((index % 2) == 0) ? 0xffffffff : 0x00000000; in pattern_table_get_word()
1044 pattern = ~pattern_table_get_vref_word16(index); in pattern_table_get_word()