Lines Matching refs:cnt

796 	u32 cnt;  in tegra_dp_channel_eq_status()  local
802 for (cnt = 0; cnt < n_lanes / 2; cnt++) { in tegra_dp_channel_eq_status()
803 ret = tegra_dc_dp_dpcd_read(dp, DP_LANE0_1_STATUS + cnt, &data); in tegra_dp_channel_eq_status()
840 u32 cnt; in tegra_dp_clock_recovery_status() local
845 for (cnt = 0; cnt < n_lanes / 2; cnt++) { in tegra_dp_clock_recovery_status()
846 ret = tegra_dc_dp_dpcd_read(dp, (DP_LANE0_1_STATUS + cnt), in tegra_dp_clock_recovery_status()
866 size_t cnt; in tegra_dp_lt_adjust() local
871 for (cnt = 0; cnt < n_lanes / 2; cnt++) { in tegra_dp_lt_adjust()
872 ret = tegra_dc_dp_dpcd_read(dp, DP_ADJUST_REQUEST_LANE0_1 + cnt, in tegra_dp_lt_adjust()
876 pe[2 * cnt] = (data_ptr & NV_DPCD_ADJUST_REQ_LANEX_PE_MASK) >> in tegra_dp_lt_adjust()
878 vs[2 * cnt] = (data_ptr & NV_DPCD_ADJUST_REQ_LANEX_DC_MASK) >> in tegra_dp_lt_adjust()
880 pe[1 + 2 * cnt] = in tegra_dp_lt_adjust()
883 vs[1 + 2 * cnt] = in tegra_dp_lt_adjust()
892 for (cnt = 0; cnt < n_lanes; cnt++) { in tegra_dp_lt_adjust()
893 pc[cnt] = (data_ptr >> in tegra_dp_lt_adjust()
894 NV_DPCD_ADJUST_REQ_POST_CURSOR2_LANE_SHIFT(cnt)) & in tegra_dp_lt_adjust()
1011 u32 cnt; in tegra_dp_lt_config() local
1014 for (cnt = 0; cnt < n_lanes; cnt++) { in tegra_dp_lt_config()
1019 switch (cnt) { in tegra_dp_lt_config()
1041 pe_reg = tegra_dp_pe_regs[pc[cnt]][vs[cnt]][pe[cnt]]; in tegra_dp_lt_config()
1042 vs_reg = tegra_dp_vs_regs[pc[cnt]][vs[cnt]][pe[cnt]]; in tegra_dp_lt_config()
1043 pc_reg = tegra_dp_pc_regs[pc[cnt]][vs[cnt]][pe[cnt]]; in tegra_dp_lt_config()
1053 for (cnt = 0; cnt < n_lanes; cnt++) { in tegra_dp_lt_config()
1054 u32 max_vs_flag = tegra_dp_is_max_vs(pe[cnt], vs[cnt]); in tegra_dp_lt_config()
1055 u32 max_pe_flag = tegra_dp_is_max_pe(pe[cnt], vs[cnt]); in tegra_dp_lt_config()
1057 val = (vs[cnt] << NV_DPCD_TRAINING_LANEX_SET_DC_SHIFT) | in tegra_dp_lt_config()
1061 (pe[cnt] << NV_DPCD_TRAINING_LANEX_SET_PE_SHIFT) | in tegra_dp_lt_config()
1065 tegra_dc_dp_dpcd_write(dp, (DP_TRAINING_LANE0_SET + cnt), val); in tegra_dp_lt_config()
1069 for (cnt = 0; cnt < n_lanes / 2; cnt++) { in tegra_dp_lt_config()
1070 u32 max_pc_flag0 = tegra_dp_is_max_pc(pc[cnt]); in tegra_dp_lt_config()
1071 u32 max_pc_flag1 = tegra_dp_is_max_pc(pc[cnt + 1]); in tegra_dp_lt_config()
1072 val = (pc[cnt] << NV_DPCD_LANEX_SET2_PC2_SHIFT) | in tegra_dp_lt_config()
1076 (pc[cnt + 1] << in tegra_dp_lt_config()
1083 cnt, val); in tegra_dp_lt_config()