Lines Matching refs:dpi

356 	register struct dynpcc_info *dpi = &(jme->dpi);  in jme_start_irq()  local
359 dpi->cur = PCC_P1; in jme_start_irq()
360 dpi->attempt = PCC_P1; in jme_start_irq()
361 dpi->cnt = 0; in jme_start_irq()
1112 jme_attempt_pcc(struct dynpcc_info *dpi, int atmp) in jme_attempt_pcc() argument
1114 if (likely(atmp == dpi->cur)) { in jme_attempt_pcc()
1115 dpi->cnt = 0; in jme_attempt_pcc()
1119 if (dpi->attempt == atmp) { in jme_attempt_pcc()
1120 ++(dpi->cnt); in jme_attempt_pcc()
1122 dpi->attempt = atmp; in jme_attempt_pcc()
1123 dpi->cnt = 0; in jme_attempt_pcc()
1131 register struct dynpcc_info *dpi = &(jme->dpi); in jme_dynamic_pcc() local
1133 if ((NET_STAT(jme).rx_bytes - dpi->last_bytes) > PCC_P3_THRESHOLD) in jme_dynamic_pcc()
1134 jme_attempt_pcc(dpi, PCC_P3); in jme_dynamic_pcc()
1135 else if ((NET_STAT(jme).rx_packets - dpi->last_pkts) > PCC_P2_THRESHOLD || in jme_dynamic_pcc()
1136 dpi->intr_cnt > PCC_INTR_THRESHOLD) in jme_dynamic_pcc()
1137 jme_attempt_pcc(dpi, PCC_P2); in jme_dynamic_pcc()
1139 jme_attempt_pcc(dpi, PCC_P1); in jme_dynamic_pcc()
1141 if (unlikely(dpi->attempt != dpi->cur && dpi->cnt > 5)) { in jme_dynamic_pcc()
1142 if (dpi->attempt < dpi->cur) in jme_dynamic_pcc()
1144 jme_set_rx_pcc(jme, dpi->attempt); in jme_dynamic_pcc()
1145 dpi->cur = dpi->attempt; in jme_dynamic_pcc()
1146 dpi->cnt = 0; in jme_dynamic_pcc()
1153 struct dynpcc_info *dpi = &(jme->dpi); in jme_start_pcc_timer() local
1154 dpi->last_bytes = NET_STAT(jme).rx_bytes; in jme_start_pcc_timer()
1155 dpi->last_pkts = NET_STAT(jme).rx_packets; in jme_start_pcc_timer()
1156 dpi->intr_cnt = 0; in jme_start_pcc_timer()
1344 struct dynpcc_info *dpi = &(jme->dpi); in jme_rx_clean_tasklet() local
1347 ++(dpi->intr_cnt); in jme_rx_clean_tasklet()
2407 switch (jme->dpi.cur) { in jme_get_coalesce()
2433 struct dynpcc_info *dpi = &(jme->dpi); in jme_set_coalesce() local
2442 dpi->cur = PCC_P1; in jme_set_coalesce()
2443 dpi->attempt = PCC_P1; in jme_set_coalesce()
2444 dpi->cnt = 0; in jme_set_coalesce()
3024 jme->dpi.cur = PCC_P1; in jme_init_one()