Searched refs:qcount (Results 1 - 24 of 24) sorted by relevance

/linux-master/include/net/
H A Dred.h146 int qcount; /* Number of packets since last random member in struct:red_vars
167 v->qcount = -1;
286 v->qcount = -1;
385 max_P*(qavg - qth_min)/(qth_max-qth_min) < rnd/qcount
389 return !(((qavg - p->qth_min) >> p->Wlog) * v->qcount < v->qR);
420 v->qcount = -1;
424 if (++v->qcount) {
426 v->qcount = 0;
436 v->qcount = -1;
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_mqprio.c14 u32 speed, qcount = 0, qoffset = 0; local
49 qcount += mqprio->qopt.count[i];
81 if (qoffset >= adap->tids.neotids || qcount > adap->tids.neotids)
431 u32 qoffset, qcount, tot_qcount, qid, hwqid; local
446 qcount = mqprio->qopt.count[i];
447 for (j = 0; j < qcount; j++) {
486 qcount = mqprio->qopt.count[i];
487 if (qcount) {
490 qcount = pi->nqsets;
494 ret = netdev_set_tc_queue(dev, i, qcount, qoffse
537 u32 qoffset, qcount; local
[all...]
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_vf.c538 int err, qcount, qos_txqs; local
563 qcount = num_online_cpus();
564 qos_txqs = min_t(int, qcount, OTX2_QOS_MAX_LEAF_NODES);
565 netdev = alloc_etherdev_mqs(sizeof(*vf), qcount + qos_txqs, qcount);
582 hw->rx_queues = qcount;
583 hw->tx_queues = qcount;
584 hw->max_queues = qcount;
585 hw->non_qos_queues = qcount;
638 err = otx2_set_real_num_queues(netdev, qcount, qcoun
[all...]
H A Dotx2_pf.c2857 int err, qcount, qos_txqs; local
2884 qcount = min_t(int, num_online_cpus(), OTX2_MAX_CQ_CNT);
2885 qos_txqs = min_t(int, qcount, OTX2_QOS_MAX_LEAF_NODES);
2887 netdev = alloc_etherdev_mqs(sizeof(*pf), qcount + qos_txqs, qcount);
2904 hw->rx_queues = qcount;
2905 hw->tx_queues = qcount;
2906 hw->non_qos_queues = qcount;
2907 hw->max_queues = qcount;
/linux-master/net/sched/
H A Dsch_choke.c226 q->vars.qcount = -1;
239 q->vars.qcount = -1;
249 } else if (++q->vars.qcount) {
251 q->vars.qcount = 0;
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_dcb_lib.c219 u16 qoffset, qcount; local
240 qcount = vsi->tc_cfg.tc_info[n].qcount_tx;
241 for (i = qoffset; i < (qoffset + qcount); i++)
244 qcount = vsi->tc_cfg.tc_info[n].qcount_rx;
245 for (i = qoffset; i < (qoffset + qcount); i++)
262 qcount = vsi->mqprio_qopt.qopt.count[n];
263 for (i = qoffset; i < (qoffset + qcount); i++) {
H A Dice_main.c8177 * This function validates MQPRIO params, such as qcount (power of 2 wherever
8178 * needed), and make sure user doesn't specify qcount and BW rate limit
8207 int qcount = mqprio_qopt->qopt.count[i]; local
8210 if (!qcount)
8213 if (is_power_of_2(qcount)) {
8215 qcount > non_power_of_2_qcount) {
8216 dev_err(dev, "qcount[%d] cannot be greater than non power of 2 qcount[%d]\n",
8217 qcount, non_power_of_2_qcount);
8220 if (qcount > max_rss_q_cn
[all...]
H A Dice_tc_lib.c861 * VSI based on per channel "offset" and "qcount"
878 int qcount = vsi->mqprio_qopt.qopt.count[tc]; local
881 if (queue >= offset && queue < offset + qcount) {
H A Dice_lib.c1041 /* find the (rounded up) power-of-2 of qcount */
1209 u16 qcount, qmap; local
1213 qcount = min_t(int, vsi->num_rxq, pf->num_lan_msix);
1215 pow = order_base_2(qcount);
1222 ctxt->info.q_mapping[1] = cpu_to_le16(qcount);
H A Dice_ethtool.c3287 u16 qcount, offset; local
3301 qcount = vsi->mqprio_qopt.qopt.count[rss_context];
3336 rxfh->indir[i] = offset + lut[i] % qcount;
/linux-master/fs/gfs2/
H A Dtrace_gfs2.h275 __field( u64, qcount )
292 __entry->qcount = gl->gl_stats.stats[GFS2_LKS_QCOUNT];
307 (long long)__entry->qcount)
/linux-master/drivers/net/ethernet/cavium/thunder/
H A Dnicvf_queues.c384 int tail, qcount; local
401 qcount = nicvf_queue_reg_read(nic, NIC_QSET_RBDR_0_1_STATUS0, rbdr_idx);
402 qcount &= 0x7FFFF;
404 if (qcount >= (qs->rbdr_len - 1))
407 refill_rb_cnt = qs->rbdr_len - qcount - 1;
H A Dnicvf_main.c2099 int err, qcount; local
2128 qcount = netif_get_num_default_rss_queues();
2133 qcount = min_t(int, num_online_cpus(),
2137 netdev = alloc_etherdev_mqs(sizeof(struct nicvf), qcount, qcount);
2151 nic->max_queues = qcount;
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_main.c1935 u16 qcount = 0, max_qcount, qmap, sections = 0; local
1960 qcount = vsi->mqprio_qopt.qopt.count[i];
1961 if (qcount > max_qcount)
1962 max_qcount = qcount;
1964 vsi->tc_config.tc_info[i].qcount = qcount;
1972 vsi->tc_config.tc_info[i].qcount = 1;
1978 vsi->num_queue_pairs = offset + qcount;
2029 u16 qcount; local
2100 qcount
3781 u16 qoffset, qcount; local
6237 u16 qcount, qmap, sections = 0; local
7659 u16 qcount; local
12424 u16 qcount; local
12481 u16 qcount; local
[all...]
H A Di40e.h332 u16 qcount; /* Total Queues */ member in struct:i40e_tc_info
H A Di40e_txrx.c3786 u16 qcount; local
3804 qcount = vsi->tc_config.tc_info[tclass].qcount;
3805 hash = i40e_swdcb_skb_tx_hash(netdev, skb, qcount);
H A Di40e_debugfs.c454 " tc_config: tc = %d, qoffset = %d, qcount = %d, netdev_tc = %d\n",
456 vsi->tc_config.tc_info[i].qcount,
/linux-master/drivers/infiniband/hw/bnxt_re/
H A Dqplib_res.h281 u8 qcount[MAX_TQM_ALLOC_REQ]; member in struct:bnxt_qplib_tqm_ctx
H A Dqplib_res.c409 if (!tqmctx->qcount[i])
411 hwq_attr.depth = ctx->qpc_count * tqmctx->qcount[i];
H A Dmain.c228 rdev->qplib_ctx.tqm_ctx.qcount[i] =
/linux-master/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_sriov.c2449 int vf_idx, sb_idx, vfq_idx, qcount, first_vf; local
2493 qcount = 0;
2498 vf->vfqs = &bp->vfdb->vfqs[qcount];
2499 qcount += vf_sb_count(vf);
/linux-master/net/core/
H A Ddev.c3198 u16 qcount = dev->real_num_tx_queues; local
3204 qcount = sb_dev->tc_to_txq[tc].count;
3205 if (unlikely(!qcount)) {
3206 net_warn_ratelimited("%s: invalid qcount, qoffset %u for tc %u\n",
3209 qcount = dev->real_num_tx_queues;
3214 DEBUG_NET_WARN_ON_ONCE(qcount == 0);
3218 while (unlikely(hash >= qcount))
3219 hash -= qcount;
3223 return (u16) reciprocal_scale(skb_get_hash(skb), qcount) + qoffset;
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dsdio.c536 static int qcount[NUMPRIO]; variable
2844 if (pktq_plen(&bus->txq, prec) > qcount[prec])
2845 qcount[prec] = pktq_plen(&bus->txq, prec);
/linux-master/drivers/net/ethernet/intel/iavf/
H A Diavf_main.c3634 u16 qcount = mqprio_qopt->qopt.count[i];
3638 netdev_set_tc_queue(netdev, netdev_tc++, qcount,
3606 u16 qcount = mqprio_qopt->qopt.count[i]; local

Completed in 378 milliseconds