/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | quota.c | 169 u32 quota = le32_to_cpu(cmd->quotas[i].quota); in iwl_mvm_adjust_quota_for_noa() local 174 quota *= (beacon_int - mvm->noa_duration); in iwl_mvm_adjust_quota_for_noa() 175 quota /= beacon_int; in iwl_mvm_adjust_quota_for_noa() 178 le32_to_cpu(cmd->quotas[i].quota), quota); in iwl_mvm_adjust_quota_for_noa() 180 cmd->quotas[i].quota = cpu_to_le32(quota); in iwl_mvm_adjust_quota_for_noa() 190 int i, idx, err, num_active_macs, quota, quota_rem, n_non_lowlat; in iwl_mvm_update_quotas() local 241 quota = (QUOTA_100 - QUOTA_LOWLAT_MIN) / n_non_lowlat; in iwl_mvm_update_quotas() 242 quota_rem = QUOTA_100 - n_non_lowlat * quota - in iwl_mvm_update_quotas() 246 quota); in iwl_mvm_update_quotas() 253 quota = QUOTA_100 / num_active_macs; in iwl_mvm_update_quotas() [all …]
|
D | Makefile | 4 iwlmvm-y += utils.o rx.o rxmq.o tx.o binding.o quota.o sta.o sf.o
|
/drivers/net/wireless/ath/wil6210/ |
D | netdev.c | 57 int quota = budget; in wil6210_netdev_poll_rx() local 60 wil_rx_handle(wil, "a); in wil6210_netdev_poll_rx() 61 done = budget - quota; in wil6210_netdev_poll_rx()
|
/drivers/net/can/c_can/ |
D | c_can.c | 809 u32 pend, int quota) in c_can_read_objects() argument 813 while ((obj = ffs(pend)) && quota > 0) { in c_can_read_objects() 823 quota -= n; in c_can_read_objects() 841 quota--; in c_can_read_objects() 867 static int c_can_do_rx_poll(struct net_device *dev, int quota) in c_can_do_rx_poll() argument 879 while (quota > 0) { in c_can_do_rx_poll() 895 n = c_can_read_objects(dev, priv, toread, quota); in c_can_do_rx_poll() 897 quota -= n; in c_can_do_rx_poll() 1054 static int c_can_poll(struct napi_struct *napi, int quota) in c_can_poll() argument 1103 work_done += c_can_do_rx_poll(dev, (quota - work_done)); in c_can_poll() [all …]
|
/drivers/net/can/ |
D | pch_can.c | 641 static int pch_can_rx_normal(struct net_device *ndev, u32 obj_num, int quota) in pch_can_rx_normal() argument 669 quota--; in pch_can_rx_normal() 709 quota--; in pch_can_rx_normal() 714 } while (quota > 0); in pch_can_rx_normal() 737 static int pch_can_poll(struct napi_struct *napi, int quota) in pch_can_poll() argument 743 int quota_save = quota; in pch_can_poll() 755 quota--; in pch_can_poll() 765 if (quota == 0) in pch_can_poll() 769 quota -= pch_can_rx_normal(ndev, int_stat, quota); in pch_can_poll() 780 return quota_save - quota; in pch_can_poll()
|
D | at91_can.c | 681 static int at91_poll_rx(struct net_device *dev, int quota) in at91_poll_rx() argument 696 mb < get_mb_tx_first(priv) && quota > 0; in at91_poll_rx() 710 quota--; in at91_poll_rx() 717 if (quota > 0) in at91_poll_rx() 772 static int at91_poll_err(struct net_device *dev, int quota, u32 reg_sr) in at91_poll_err() argument 777 if (quota == 0) in at91_poll_err() 793 static int at91_poll(struct napi_struct *napi, int quota) in at91_poll() argument 801 work_done += at91_poll_rx(dev, quota - work_done); in at91_poll() 809 work_done += at91_poll_err(dev, quota - work_done, reg_sr); in at91_poll() 811 if (work_done < quota) { in at91_poll()
|
D | rx-offload.c | 48 static int can_rx_offload_napi_poll(struct napi_struct *napi, int quota) in can_rx_offload_napi_poll() argument 56 while ((work_done < quota) && in can_rx_offload_napi_poll() 66 if (work_done < quota) { in can_rx_offload_napi_poll()
|
D | xilinx_can.c | 821 static int xcan_rx_poll(struct napi_struct *napi, int quota) in xcan_rx_poll() argument 829 while ((isr & XCAN_IXR_RXNEMP_MASK) && (work_done < quota)) { in xcan_rx_poll() 840 if (work_done < quota) { in xcan_rx_poll()
|
D | ti_hecc.c | 598 static int ti_hecc_rx_poll(struct napi_struct *napi, int quota) in ti_hecc_rx_poll() argument 610 num_pkts < quota) { in ti_hecc_rx_poll() 642 num_pkts = quota; in ti_hecc_rx_poll()
|
/drivers/net/can/ifi_canfd/ |
D | ifi_canfd.c | 324 static int ifi_canfd_do_rx_poll(struct net_device *ndev, int quota) in ifi_canfd_do_rx_poll() argument 339 if (quota <= 0) in ifi_canfd_do_rx_poll() 343 quota--; in ifi_canfd_do_rx_poll() 569 static int ifi_canfd_poll(struct napi_struct *napi, int quota) in ifi_canfd_poll() argument 589 work_done += ifi_canfd_do_rx_poll(ndev, quota - work_done); in ifi_canfd_poll() 591 if (work_done < quota) { in ifi_canfd_poll()
|
/drivers/net/ethernet/sfc/falcon/ |
D | nic.h | 373 ef4_nic_process_eventq(struct ef4_channel *channel, int quota) in ef4_nic_process_eventq() argument 375 return channel->efx->type->ev_process(channel, quota); in ef4_nic_process_eventq() 401 int ef4_farch_ev_process(struct ef4_channel *channel, int quota);
|
D | efx.h | 169 bool __ef4_filter_rfs_expire(struct ef4_nic *efx, unsigned quota);
|
/drivers/net/wireless/intel/iwlwifi/fw/api/ |
D | binding.h | 128 __le32 quota; member
|
/drivers/staging/fsl-mc/bus/ |
D | dprc-cmd.h | 196 __le16 quota; member 212 __le16 quota; member
|
/drivers/net/ethernet/adaptec/ |
D | starfire.c | 584 static int __netdev_rx(struct net_device *dev, int *quota); 1438 static int __netdev_rx(struct net_device *dev, int *quota) in __netdev_rx() argument 1463 if (*quota <= 0) { /* out of rx quota */ in __netdev_rx() 1467 (*quota)--; in __netdev_rx() 1473 printk(KERN_DEBUG " netdev_rx() normal Rx pkt length %d, quota %d.\n", pkt_len, *quota); in __netdev_rx() 1546 if (*quota == 0) { /* out of rx quota */ in __netdev_rx() 1566 int quota = budget; in netdev_poll() local 1571 if (__netdev_rx(dev, "a)) in netdev_poll() 1585 budget - quota); in netdev_poll() 1588 return budget - quota; in netdev_poll()
|
/drivers/net/ethernet/sfc/ |
D | nic.h | 524 efx_nic_process_eventq(struct efx_channel *channel, int quota) in efx_nic_process_eventq() argument 526 return channel->efx->type->ev_process(channel, quota); in efx_nic_process_eventq() 552 int efx_farch_ev_process(struct efx_channel *channel, int quota);
|
D | efx.h | 176 bool __efx_filter_rfs_expire(struct efx_nic *efx, unsigned quota);
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_hw.c | 256 size_t quota, done = 0; in qed_memcpy_hw() local 260 quota = min_t(size_t, n - done, in qed_memcpy_hw() 270 dw_count = quota / 4; in qed_memcpy_hw() 280 done += quota; in qed_memcpy_hw()
|
/drivers/net/wireless/ath/ath10k/ |
D | htt_rx.c | 2619 int quota = 0, done, num_rx_msdus; in ath10k_htt_txrx_compl_task() local 2627 while (quota < budget) { in ath10k_htt_txrx_compl_task() 2647 quota += num_rx_msdus; in ath10k_htt_txrx_compl_task() 2649 if ((quota > ATH10K_NAPI_QUOTA_LIMIT) && in ath10k_htt_txrx_compl_task() 2656 while (quota < budget) { in ath10k_htt_txrx_compl_task() 2667 quota += num_rx_msdus; in ath10k_htt_txrx_compl_task() 2669 if ((quota > ATH10K_NAPI_QUOTA_LIMIT) && in ath10k_htt_txrx_compl_task() 2681 if ((quota < budget) && !kfifo_is_empty(&htt->txdone_fifo)) in ath10k_htt_txrx_compl_task() 2682 quota = budget; in ath10k_htt_txrx_compl_task() 2708 done = resched_napi ? budget : quota; in ath10k_htt_txrx_compl_task()
|
/drivers/net/ethernet/ti/ |
D | davinci_cpdma.h | 87 int cpdma_chan_process(struct cpdma_chan *chan, int quota);
|
/drivers/net/can/m_can/ |
D | m_can.c | 503 static int m_can_do_rx_poll(struct net_device *dev, int quota) in m_can_do_rx_poll() argument 515 while ((rxfs & RXFS_FFL_MASK) && (quota > 0)) { in m_can_do_rx_poll() 521 quota--; in m_can_do_rx_poll() 810 static int m_can_poll(struct napi_struct *napi, int quota) in m_can_poll() argument 850 work_done += m_can_do_rx_poll(dev, (quota - work_done)); in m_can_poll() 852 if (work_done < quota) { in m_can_poll()
|
/drivers/net/can/mscan/ |
D | mscan.c | 389 static int mscan_rx_poll(struct napi_struct *napi, int quota) in mscan_rx_poll() argument 400 while (work_done < quota) { in mscan_rx_poll() 425 if (work_done < quota) { in mscan_rx_poll()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | resource_tracker.c | 332 if (allocated + count > res_alloc->quota[slave]) { in mlx4_grant_resource() 335 allocated, res_alloc->quota[slave]); in mlx4_grant_resource() 430 res_alloc->quota[vf] = (num_instances / 2) + res_alloc->guaranteed[vf]; in initialize_res_quotas() 437 res_alloc->quota[vf] += dev->caps.reserved_mtts; in initialize_res_quotas() 463 priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[pf]; in mlx4_init_quotas() 465 priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[pf]; in mlx4_init_quotas() 467 priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[pf]; in mlx4_init_quotas() 469 priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[pf]; in mlx4_init_quotas() 471 priv->mfunc.master.res_tracker.res_alloc[RES_MPT].quota[pf]; in mlx4_init_quotas() 528 res_alloc->quota = kmalloc((dev->persist->num_vfs + 1) * in mlx4_init_resource_tracker() [all …]
|
/drivers/net/can/rcar/ |
D | rcar_can.c | 676 static int rcar_can_rx_poll(struct napi_struct *napi, int quota) in rcar_can_rx_poll() argument 682 for (num_pkts = 0; num_pkts < quota; num_pkts++) { in rcar_can_rx_poll() 700 if (num_pkts < quota) { in rcar_can_rx_poll()
|
/drivers/net/ethernet/renesas/ |
D | ravb_main.c | 527 static bool ravb_rx(struct net_device *ndev, int *quota, int q) in ravb_rx() argument 542 boguscnt = min(boguscnt, *quota); in ravb_rx() 633 *quota -= limit - (++boguscnt); in ravb_rx() 907 int quota = budget; in ravb_poll() local 920 if (ravb_rx(ndev, "a, q)) in ravb_poll() 957 return budget - quota; in ravb_poll()
|