Lines Matching refs:num_rings
471 int num_rings, i; in enetc_port_si_configure() local
475 num_rings = min(ENETC_PCAPR0_RXBDR(val), ENETC_PCAPR0_TXBDR(val)); in enetc_port_si_configure()
480 if (unlikely(num_rings < ENETC_PF_NUM_RINGS)) { in enetc_port_si_configure()
481 val = ENETC_PSICFGR0_SET_TXBDR(num_rings); in enetc_port_si_configure()
482 val |= ENETC_PSICFGR0_SET_RXBDR(num_rings); in enetc_port_si_configure()
485 num_rings, ENETC_PF_NUM_RINGS); in enetc_port_si_configure()
487 num_rings = 0; in enetc_port_si_configure()
495 if (num_rings) in enetc_port_si_configure()
496 num_rings -= ENETC_PF_NUM_RINGS; in enetc_port_si_configure()
502 if (num_rings) { in enetc_port_si_configure()
503 num_rings /= pf->total_vfs; in enetc_port_si_configure()
504 val |= ENETC_PSICFGR0_SET_TXBDR(num_rings); in enetc_port_si_configure()
505 val |= ENETC_PSICFGR0_SET_RXBDR(num_rings); in enetc_port_si_configure()