Searched refs:quota (Results 1 - 25 of 39) sorted by path

12

/drivers/net/caif/
H A Dcaif_virtio.c30 /* NAPI schedule quota */
55 * @rx_napi_resched: Number of calls where the full quota was used (RX)
250 static int cfv_rx_poll(struct napi_struct *napi, int quota) argument
309 } while (rxcnt < quota);
/drivers/net/can/
H A Dat91_can.c657 * @quota: max number of pkgs we're allowed to receive
700 * quota.
703 static int at91_poll_rx(struct net_device *dev, int quota) argument
718 mb < get_mb_tx_first(priv) && quota > 0;
732 quota--;
737 quota > 0 && mb > get_mb_rx_last(priv)) {
793 static int at91_poll_err(struct net_device *dev, int quota, u32 reg_sr) argument
798 if (quota == 0)
814 static int at91_poll(struct napi_struct *napi, int quota) argument
822 work_done += at91_poll_rx(dev, quota
[all...]
H A Dflexcan.c741 static int flexcan_poll(struct napi_struct *napi, int quota) argument
761 work_done < quota) {
767 if (flexcan_has_and_handle_berr(priv, reg_esr) && work_done < quota)
770 if (work_done < quota) {
H A Djanz-ican3.c788 static int ican3_set_buserror(struct ican3_dev *mod, u8 quota) argument
796 msg.data[1] = quota;
H A Dpch_can.c641 static int pch_can_rx_normal(struct net_device *ndev, u32 obj_num, int quota) argument
669 quota--;
709 quota--;
714 } while (quota > 0);
737 static int pch_can_poll(struct napi_struct *napi, int quota) argument
743 int quota_save = quota;
755 quota--;
765 if (quota == 0)
769 quota -= pch_can_rx_normal(ndev, int_stat, quota);
[all...]
H A Drcar_can.c671 static int rcar_can_rx_poll(struct napi_struct *napi, int quota) argument
677 for (num_pkts = 0; num_pkts < quota; num_pkts++) {
695 if (num_pkts < quota) {
H A Dti_hecc.c613 static int ti_hecc_rx_poll(struct napi_struct *napi, int quota) argument
625 num_pkts < quota) {
H A Dxilinx_can.c697 * @quota: Max number of rx packets to be processed.
700 * It will process the packets maximux quota value.
704 static int xcan_rx_poll(struct napi_struct *napi, int quota) argument
712 while ((isr & XCAN_IXR_RXNEMP_MASK) && (work_done < quota)) {
729 if (work_done < quota) {
/drivers/net/can/c_can/
H A Dc_can.c698 * objects in the last run due to quota limit.
741 u32 pend, int quota)
745 while ((obj = ffs(pend)) && quota > 0) {
755 quota -= n;
773 quota--;
799 static int c_can_do_rx_poll(struct net_device *dev, int quota) argument
811 while (quota > 0) {
827 n = c_can_read_objects(dev, priv, toread, quota);
829 quota -= n;
989 static int c_can_poll(struct napi_struct *napi, int quota) argument
740 c_can_read_objects(struct net_device *dev, struct c_can_priv *priv, u32 pend, int quota) argument
[all...]
/drivers/net/can/m_can/
H A Dm_can.c418 static int m_can_do_rx_poll(struct net_device *dev, int quota) argument
430 while ((rxfs & RXFS_FFL_MASK) && (quota > 0)) {
436 quota--;
713 static int m_can_poll(struct napi_struct *napi, int quota) argument
732 work_done += m_can_do_rx_poll(dev, (quota - work_done));
734 if (work_done < quota) {
/drivers/net/can/mscan/
H A Dmscan.c409 static int mscan_rx_poll(struct napi_struct *napi, int quota) argument
421 while (npackets < quota) {
/drivers/net/ethernet/adaptec/
H A Dstarfire.c584 static int __netdev_rx(struct net_device *dev, int *quota);
1404 static int __netdev_rx(struct net_device *dev, int *quota) argument
1429 if (*quota <= 0) { /* out of rx quota */
1433 (*quota)--;
1439 printk(KERN_DEBUG " netdev_rx() normal Rx pkt length %d, quota %d.\n", pkt_len, *quota);
1512 if (*quota == 0) { /* out of rx quota */
1532 int quota local
[all...]
/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_hsi.h4829 u32 quota; member in struct:rate_shaping_counter
H A Dbnx2x_init.h359 * the quota in each timer period - number of bytes
362 vdata->vnic_max_rate[vnic].vn_counter.quota =
H A Dbnx2x_main.c2858 m_rs_vn.vn_counter.quota =
/drivers/net/ethernet/ibm/ehea/
H A Dehea_main.c818 int quota = my_quota; local
826 while (cqe && (quota > 0)) {
865 quota--;
/drivers/net/ethernet/mellanox/mlx4/
H A Dfw.c278 /* enable rdma and ethernet interfaces, and new quota locations */
294 size = priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[slave];
299 size = priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[slave];
304 size = priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[slave];
315 size = priv->mfunc.master.res_tracker.res_alloc[RES_MPT].quota[slave];
320 size = priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[slave];
H A Dmlx4.h526 int *quota; member in struct:resource_allocator
H A Dresource_tracker.c325 if (allocated + count > res_alloc->quota[slave]) {
326 mlx4_warn(dev, "VF %d port %d res %s: quota exceeded, count %d alloc %d quota %d\n",
328 allocated, res_alloc->quota[slave]);
419 res_alloc->quota[vf] = (num_instances / 2) + res_alloc->guaranteed[vf];
426 res_alloc->quota[vf] += dev->caps.reserved_mtts;
452 priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[pf];
454 priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[pf];
456 priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[pf];
458 priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[p
[all...]
/drivers/net/ethernet/renesas/
H A Dsh_eth.c1383 static int sh_eth_rx(struct net_device *ndev, u32 intr_status, int *quota) argument
1403 if (*quota <= 0)
1406 (*quota)--;
1498 return *quota <= 0;
1690 int quota = budget; local
1700 if (sh_eth_rx(ndev, intr_status, &quota))
1709 return budget - quota;
/drivers/net/ethernet/sfc/
H A Def10.c1968 static int efx_ef10_ev_process(struct efx_channel *channel, int quota) argument
1977 if (quota <= 0)
2005 if (spent >= quota) {
2007 * avoid going over-quota?
2009 spent = quota;
2016 spent = quota;
2018 } else if (++spent == quota) {
2024 if (++spent == quota)
H A Defx.h158 bool __efx_filter_rfs_expire(struct efx_nic *efx, unsigned quota);
H A Dnet_driver.h1184 * @ev_process: Process events for a queue, up to the given NAPI quota
1304 int (*ev_process)(struct efx_channel *channel, int quota);
H A Dnic.h681 efx_nic_process_eventq(struct efx_channel *channel, int quota) argument
683 return channel->efx->type->ev_process(channel, quota);
707 int efx_farch_ev_process(struct efx_channel *channel, int quota);
H A Drx.c928 bool __efx_filter_rfs_expire(struct efx_nic *efx, unsigned int quota) argument
940 while (quota--) {

Completed in 351 milliseconds

12