Lines Matching full:dpi
357 register struct dynpcc_info *dpi = &(jme->dpi); in jme_start_irq() local
360 dpi->cur = PCC_P1; in jme_start_irq()
361 dpi->attempt = PCC_P1; in jme_start_irq()
362 dpi->cnt = 0; in jme_start_irq()
1111 jme_attempt_pcc(struct dynpcc_info *dpi, int atmp) in jme_attempt_pcc() argument
1113 if (likely(atmp == dpi->cur)) { in jme_attempt_pcc()
1114 dpi->cnt = 0; in jme_attempt_pcc()
1118 if (dpi->attempt == atmp) { in jme_attempt_pcc()
1119 ++(dpi->cnt); in jme_attempt_pcc()
1121 dpi->attempt = atmp; in jme_attempt_pcc()
1122 dpi->cnt = 0; in jme_attempt_pcc()
1130 register struct dynpcc_info *dpi = &(jme->dpi); in jme_dynamic_pcc() local
1132 if ((NET_STAT(jme).rx_bytes - dpi->last_bytes) > PCC_P3_THRESHOLD) in jme_dynamic_pcc()
1133 jme_attempt_pcc(dpi, PCC_P3); in jme_dynamic_pcc()
1134 else if ((NET_STAT(jme).rx_packets - dpi->last_pkts) > PCC_P2_THRESHOLD || in jme_dynamic_pcc()
1135 dpi->intr_cnt > PCC_INTR_THRESHOLD) in jme_dynamic_pcc()
1136 jme_attempt_pcc(dpi, PCC_P2); in jme_dynamic_pcc()
1138 jme_attempt_pcc(dpi, PCC_P1); in jme_dynamic_pcc()
1140 if (unlikely(dpi->attempt != dpi->cur && dpi->cnt > 5)) { in jme_dynamic_pcc()
1141 if (dpi->attempt < dpi->cur) in jme_dynamic_pcc()
1143 jme_set_rx_pcc(jme, dpi->attempt); in jme_dynamic_pcc()
1144 dpi->cur = dpi->attempt; in jme_dynamic_pcc()
1145 dpi->cnt = 0; in jme_dynamic_pcc()
1152 struct dynpcc_info *dpi = &(jme->dpi); in jme_start_pcc_timer() local
1153 dpi->last_bytes = NET_STAT(jme).rx_bytes; in jme_start_pcc_timer()
1154 dpi->last_pkts = NET_STAT(jme).rx_packets; in jme_start_pcc_timer()
1155 dpi->intr_cnt = 0; in jme_start_pcc_timer()
1343 struct dynpcc_info *dpi = &(jme->dpi); in jme_rx_clean_tasklet() local
1346 ++(dpi->intr_cnt); in jme_rx_clean_tasklet()
2406 switch (jme->dpi.cur) { in jme_get_coalesce()
2432 struct dynpcc_info *dpi = &(jme->dpi); in jme_set_coalesce() local
2441 dpi->cur = PCC_P1; in jme_set_coalesce()
2442 dpi->attempt = PCC_P1; in jme_set_coalesce()
2443 dpi->cnt = 0; in jme_set_coalesce()
3023 jme->dpi.cur = PCC_P1; in jme_init_one()