Lines Matching refs:idx
131 uint32_t idx; in htc_print_credit_history() local
142 idx = HTC_CREDIT_HISTORY_MAX + g_htc_credit_history_idx - count; in htc_print_credit_history()
143 idx %= HTC_CREDIT_HISTORY_MAX; in htc_print_credit_history()
149 &htc_credit_history_buffer[idx]; in htc_print_credit_history()
161 ++idx; in htc_print_credit_history()
162 if (idx >= HTC_CREDIT_HISTORY_MAX) in htc_print_credit_history()
163 idx = 0; in htc_print_credit_history()
175 uint32_t count = NUM_HANG_CREDIT_HISTORY, idx, total_len; in htc_log_hang_credit_history() local
196 idx = HTC_CREDIT_HISTORY_MAX + g_htc_credit_history_idx - count; in htc_log_hang_credit_history()
197 idx %= HTC_CREDIT_HISTORY_MAX; in htc_log_hang_credit_history()
203 &htc_credit_history_buffer[idx]; in htc_log_hang_credit_history()
215 ++idx; in htc_log_hang_credit_history()
216 if (idx >= HTC_CREDIT_HISTORY_MAX) in htc_log_hang_credit_history()
217 idx = 0; in htc_log_hang_credit_history()