Lines Matching refs:max_cp
13803 int *max_cp);
13809 int max_rx, max_tx, max_cp, tx_sets = 1, tx_cp; in bnxt_check_rings() local
13817 _bnxt_get_max_rings(bp, &max_rx, &max_tx, &max_cp); in bnxt_check_rings()
13834 if (max_cp < hwr.cp) in bnxt_check_rings()
15378 int *max_cp) in _bnxt_get_max_rings() argument
15385 *max_cp = bnxt_get_max_func_cp_rings_for_en(bp); in _bnxt_get_max_rings()
15391 *max_cp = min_t(int, *max_cp, max_irq); in _bnxt_get_max_rings()
15394 *max_cp -= 1; in _bnxt_get_max_rings()
15402 rc = __bnxt_trim_rings(bp, max_rx, max_tx, *max_cp, false); in _bnxt_get_max_rings()
15408 *max_cp = max_irq; in _bnxt_get_max_rings()
15448 int max_cp, max_stat, max_irq; in bnxt_get_dflt_rings() local
15451 max_cp = bnxt_get_max_func_cp_rings(bp); in bnxt_get_dflt_rings()
15454 if (max_cp <= BNXT_MIN_ROCE_CP_RINGS || in bnxt_get_dflt_rings()
15459 max_cp -= BNXT_MIN_ROCE_CP_RINGS; in bnxt_get_dflt_rings()
15462 max_cp = min_t(int, max_cp, max_irq); in bnxt_get_dflt_rings()
15463 max_cp = min_t(int, max_cp, max_stat); in bnxt_get_dflt_rings()
15464 rc = bnxt_trim_rings(bp, max_rx, max_tx, max_cp, shared); in bnxt_get_dflt_rings()