Lines Matching refs:num_rings
463 int num_rings, i; in enetc_port_si_configure() local
467 num_rings = min(ENETC_PCAPR0_RXBDR(val), ENETC_PCAPR0_TXBDR(val)); in enetc_port_si_configure()
472 if (unlikely(num_rings < ENETC_PF_NUM_RINGS)) { in enetc_port_si_configure()
473 val = ENETC_PSICFGR0_SET_TXBDR(num_rings); in enetc_port_si_configure()
474 val |= ENETC_PSICFGR0_SET_RXBDR(num_rings); in enetc_port_si_configure()
477 num_rings, ENETC_PF_NUM_RINGS); in enetc_port_si_configure()
479 num_rings = 0; in enetc_port_si_configure()
487 if (num_rings) in enetc_port_si_configure()
488 num_rings -= ENETC_PF_NUM_RINGS; in enetc_port_si_configure()
494 if (num_rings) { in enetc_port_si_configure()
495 num_rings /= pf->total_vfs; in enetc_port_si_configure()
496 val |= ENETC_PSICFGR0_SET_TXBDR(num_rings); in enetc_port_si_configure()
497 val |= ENETC_PSICFGR0_SET_RXBDR(num_rings); in enetc_port_si_configure()