Lines Matching refs:dpi
364 register struct dynpcc_info *dpi = &(jme->dpi); in jme_start_irq() local
367 dpi->cur = PCC_P1; in jme_start_irq()
368 dpi->attempt = PCC_P1; in jme_start_irq()
369 dpi->cnt = 0; in jme_start_irq()
1144 jme_attempt_pcc(struct dynpcc_info *dpi, int atmp) in jme_attempt_pcc() argument
1146 if (likely(atmp == dpi->cur)) { in jme_attempt_pcc()
1147 dpi->cnt = 0; in jme_attempt_pcc()
1151 if (dpi->attempt == atmp) { in jme_attempt_pcc()
1152 ++(dpi->cnt); in jme_attempt_pcc()
1154 dpi->attempt = atmp; in jme_attempt_pcc()
1155 dpi->cnt = 0; in jme_attempt_pcc()
1163 register struct dynpcc_info *dpi = &(jme->dpi); in jme_dynamic_pcc() local
1165 if ((NET_STAT(jme).rx_bytes - dpi->last_bytes) > PCC_P3_THRESHOLD) in jme_dynamic_pcc()
1166 jme_attempt_pcc(dpi, PCC_P3); in jme_dynamic_pcc()
1167 else if ((NET_STAT(jme).rx_packets - dpi->last_pkts) > PCC_P2_THRESHOLD || in jme_dynamic_pcc()
1168 dpi->intr_cnt > PCC_INTR_THRESHOLD) in jme_dynamic_pcc()
1169 jme_attempt_pcc(dpi, PCC_P2); in jme_dynamic_pcc()
1171 jme_attempt_pcc(dpi, PCC_P1); in jme_dynamic_pcc()
1173 if (unlikely(dpi->attempt != dpi->cur && dpi->cnt > 5)) { in jme_dynamic_pcc()
1174 if (dpi->attempt < dpi->cur) in jme_dynamic_pcc()
1176 jme_set_rx_pcc(jme, dpi->attempt); in jme_dynamic_pcc()
1177 dpi->cur = dpi->attempt; in jme_dynamic_pcc()
1178 dpi->cnt = 0; in jme_dynamic_pcc()
1185 struct dynpcc_info *dpi = &(jme->dpi); in jme_start_pcc_timer() local
1186 dpi->last_bytes = NET_STAT(jme).rx_bytes; in jme_start_pcc_timer()
1187 dpi->last_pkts = NET_STAT(jme).rx_packets; in jme_start_pcc_timer()
1188 dpi->intr_cnt = 0; in jme_start_pcc_timer()
1377 struct dynpcc_info *dpi = &(jme->dpi); in jme_rx_clean_tasklet() local
1380 ++(dpi->intr_cnt); in jme_rx_clean_tasklet()
2377 struct dynpcc_info *dpi = &(jme->dpi); in jme_resume_rx() local
2385 dpi->cur = PCC_P1; in jme_resume_rx()
2386 dpi->attempt = PCC_P1; in jme_resume_rx()
2387 dpi->cnt = 0; in jme_resume_rx()
2470 switch (jme->dpi.cur) { in jme_get_coalesce()
2494 struct dynpcc_info *dpi = &(jme->dpi); in jme_set_coalesce() local
2503 dpi->cur = PCC_P1; in jme_set_coalesce()
2504 dpi->attempt = PCC_P1; in jme_set_coalesce()
2505 dpi->cnt = 0; in jme_set_coalesce()
3086 jme->dpi.cur = PCC_P1; in jme_init_one()