/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | quota.c | 167 u32 quota = le32_to_cpu(data->quota); in iwl_mvm_adjust_quota_for_noa() local 172 quota *= (beacon_int - mvm->noa_duration); in iwl_mvm_adjust_quota_for_noa() 173 quota /= beacon_int; in iwl_mvm_adjust_quota_for_noa() 176 le32_to_cpu(data->quota), quota); in iwl_mvm_adjust_quota_for_noa() 178 data->quota = cpu_to_le32(quota); in iwl_mvm_adjust_quota_for_noa() 188 int i, idx, err, num_active_macs, quota, quota_rem, n_non_lowlat; in iwl_mvm_update_quotas() local 245 quota = (QUOTA_100 - QUOTA_LOWLAT_MIN) / n_non_lowlat; in iwl_mvm_update_quotas() 246 quota_rem = QUOTA_100 - n_non_lowlat * quota - in iwl_mvm_update_quotas() 250 quota); in iwl_mvm_update_quotas() 257 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
|
D | d3.c | 505 struct iwl_time_quota_data *quota; in iwl_mvm_d3_reprogram() local 578 quota = iwl_mvm_quota_cmd_get_quota(mvm, "a_cmd, 0); in iwl_mvm_d3_reprogram() 579 quota->id_and_color = in iwl_mvm_d3_reprogram() 582 quota->quota = cpu_to_le32(IWL_MVM_MAX_QUOTA); in iwl_mvm_d3_reprogram() 583 quota->max_duration = cpu_to_le32(IWL_MVM_MAX_QUOTA); in iwl_mvm_d3_reprogram() 586 quota = iwl_mvm_quota_cmd_get_quota(mvm, "a_cmd, i); in iwl_mvm_d3_reprogram() 587 quota->id_and_color = cpu_to_le32(FW_CTXT_INVALID); in iwl_mvm_d3_reprogram()
|
/drivers/net/wireless/intel/iwlwifi/fw/api/ |
D | binding.h | 138 __le32 quota; member 172 __le32 quota; member
|
/drivers/net/wireless/ath/wil6210/ |
D | netdev.c | 95 int quota = budget; in wil6210_netdev_poll_rx() local 98 wil_rx_handle(wil, "a); in wil6210_netdev_poll_rx() 99 done = budget - quota; in wil6210_netdev_poll_rx() 116 int quota = budget; in wil6210_netdev_poll_rx_edma() local 119 wil_rx_handle_edma(wil, "a); in wil6210_netdev_poll_rx_edma() 120 done = budget - quota; in wil6210_netdev_poll_rx_edma()
|
/drivers/net/can/c_can/ |
D | c_can.c | 788 u32 pend, int quota) in c_can_read_objects() argument 792 while ((obj = ffs(pend)) && quota > 0) { in c_can_read_objects() 802 quota -= n; in c_can_read_objects() 820 quota--; in c_can_read_objects() 846 static int c_can_do_rx_poll(struct net_device *dev, int quota) in c_can_do_rx_poll() argument 858 while (quota > 0) { in c_can_do_rx_poll() 874 n = c_can_read_objects(dev, priv, toread, quota); in c_can_do_rx_poll() 876 quota -= n; in c_can_do_rx_poll() 1043 static int c_can_poll(struct napi_struct *napi, int quota) in c_can_poll() argument 1098 work_done += c_can_do_rx_poll(dev, (quota - work_done)); in c_can_poll() [all …]
|
/drivers/net/can/ |
D | pch_can.c | 630 static int pch_can_rx_normal(struct net_device *ndev, u32 obj_num, int quota) in pch_can_rx_normal() argument 658 quota--; in pch_can_rx_normal() 697 quota--; in pch_can_rx_normal() 703 } while (quota > 0); in pch_can_rx_normal() 726 static int pch_can_poll(struct napi_struct *napi, int quota) in pch_can_poll() argument 732 int quota_save = quota; in pch_can_poll() 744 quota--; in pch_can_poll() 754 if (quota == 0) in pch_can_poll() 758 quota -= pch_can_rx_normal(ndev, int_stat, quota); in pch_can_poll() 769 return quota_save - quota; in pch_can_poll()
|
D | at91_can.c | 677 static int at91_poll_rx(struct net_device *dev, int quota) in at91_poll_rx() argument 692 mb < get_mb_tx_first(priv) && quota > 0; in at91_poll_rx() 706 quota--; in at91_poll_rx() 713 if (quota > 0) in at91_poll_rx() 768 static int at91_poll_err(struct net_device *dev, int quota, u32 reg_sr) in at91_poll_err() argument 773 if (quota == 0) in at91_poll_err() 789 static int at91_poll(struct napi_struct *napi, int quota) in at91_poll() argument 797 work_done += at91_poll_rx(dev, quota - work_done); in at91_poll() 805 work_done += at91_poll_err(dev, quota - work_done, reg_sr); in at91_poll() 807 if (work_done < quota) { in at91_poll()
|
/drivers/net/can/dev/ |
D | rx-offload.c | 42 static int can_rx_offload_napi_poll(struct napi_struct *napi, int quota) in can_rx_offload_napi_poll() argument 52 while ((work_done < quota) && in can_rx_offload_napi_poll() 62 if (work_done < quota) { in can_rx_offload_napi_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/ |
D | nic_common.h | 179 efx_nic_process_eventq(struct efx_channel *channel, int quota) in efx_nic_process_eventq() argument 181 return channel->efx->type->ev_process(channel, quota); in efx_nic_process_eventq()
|
D | rx_common.h | 104 bool __efx_filter_rfs_expire(struct efx_channel *channel, unsigned int quota);
|
D | efx_channels.c | 497 unsigned int time, quota; in efx_filter_rfs_expire() local 501 quota = channel->rfs_filter_count * time / (30 * HZ); in efx_filter_rfs_expire() 502 if (quota >= 20 && __efx_filter_rfs_expire(channel, min(channel->rfs_filter_count, quota))) in efx_filter_rfs_expire()
|
D | rx_common.c | 1062 bool __efx_filter_rfs_expire(struct efx_channel *channel, unsigned int quota) in __efx_filter_rfs_expire() argument 1075 while (quota) { in __efx_filter_rfs_expire() 1079 quota--; in __efx_filter_rfs_expire()
|
/drivers/net/ethernet/sfc/falcon/ |
D | nic.h | 372 ef4_nic_process_eventq(struct ef4_channel *channel, int quota) in ef4_nic_process_eventq() argument 374 return channel->efx->type->ev_process(channel, quota); in ef4_nic_process_eventq() 400 int ef4_farch_ev_process(struct ef4_channel *channel, int quota);
|
D | efx.h | 166 bool __ef4_filter_rfs_expire(struct ef4_nic *efx, unsigned quota);
|
/drivers/net/ethernet/adaptec/ |
D | starfire.c | 576 static int __netdev_rx(struct net_device *dev, int *quota); 1426 static int __netdev_rx(struct net_device *dev, int *quota) in __netdev_rx() argument 1451 if (*quota <= 0) { /* out of rx quota */ in __netdev_rx() 1455 (*quota)--; in __netdev_rx() 1461 printk(KERN_DEBUG " netdev_rx() normal Rx pkt length %d, quota %d.\n", pkt_len, *quota); in __netdev_rx() 1536 if (*quota == 0) { /* out of rx quota */ in __netdev_rx() 1556 int quota = budget; in netdev_poll() local 1561 if (__netdev_rx(dev, "a)) in netdev_poll() 1575 budget - quota); in netdev_poll() 1578 return budget - quota; in netdev_poll()
|
/drivers/net/can/m_can/ |
D | m_can.c | 492 static int m_can_do_rx_poll(struct net_device *dev, int quota) in m_can_do_rx_poll() argument 504 while ((rxfs & RXFS_FFL_MASK) && (quota > 0)) { in m_can_do_rx_poll() 507 quota--; in m_can_do_rx_poll() 834 static int m_can_rx_handler(struct net_device *dev, int quota) in m_can_rx_handler() argument 874 work_done += m_can_do_rx_poll(dev, (quota - work_done)); in m_can_rx_handler() 890 static int m_can_poll(struct napi_struct *napi, int quota) in m_can_poll() argument 896 work_done = m_can_rx_handler(dev, quota); in m_can_poll() 897 if (work_done < quota) { in m_can_poll()
|
/drivers/net/wireless/ath/ath10k/ |
D | htt_rx.c | 4181 static int ath10k_htt_rx_deliver_msdu(struct ath10k *ar, int quota, int budget) in ath10k_htt_rx_deliver_msdu() argument 4185 while (quota < budget) { in ath10k_htt_rx_deliver_msdu() 4193 quota++; in ath10k_htt_rx_deliver_msdu() 4196 return quota; in ath10k_htt_rx_deliver_msdu() 4205 int quota; in ath10k_htt_rx_hl_indication() local 4207 for (quota = 0; quota < budget; quota++) { in ath10k_htt_rx_hl_indication() 4226 return quota; in ath10k_htt_rx_hl_indication() 4237 int quota = 0, done, ret; in ath10k_htt_txrx_compl_task() local 4245 quota = ath10k_htt_rx_deliver_msdu(ar, quota, budget); in ath10k_htt_txrx_compl_task() 4246 if (quota == budget) { in ath10k_htt_txrx_compl_task() [all …]
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_hw.c | 230 size_t quota, done = 0; in qed_memcpy_hw() local 234 quota = min_t(size_t, n - done, in qed_memcpy_hw() 244 dw_count = quota / 4; in qed_memcpy_hw() 254 done += quota; in qed_memcpy_hw()
|
/drivers/net/wireless/ath/ath11k/ |
D | dp_rx.c | 2493 int *quota, int ring_id) in ath11k_dp_rx_process_received_packets() argument 2506 while (*quota && (msdu = __skb_dequeue(msdu_list))) { in ath11k_dp_rx_process_received_packets() 2529 (*quota)--; in ath11k_dp_rx_process_received_packets() 2546 int quota = budget; in ath11k_dp_process_rx() local 2619 if (total_msdu_reaped >= quota && !rxcb->is_continuation) { in ath11k_dp_process_rx() 2655 "a, ring_id); in ath11k_dp_process_rx() 2658 return budget - quota; in ath11k_dp_process_rx() 3628 int tot_n_bufs_reaped, quota, ret, i; in ath11k_dp_process_rx_err() local 3644 quota = budget; in ath11k_dp_process_rx_err() 3708 if (tot_n_bufs_reaped >= quota) { in ath11k_dp_process_rx_err() [all …]
|
/drivers/net/can/mscan/ |
D | mscan.c | 379 static int mscan_rx_poll(struct napi_struct *napi, int quota) in mscan_rx_poll() argument 390 while (work_done < quota) { in mscan_rx_poll() 415 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_array(dev->persist->num_vfs + 1, in mlx4_init_resource_tracker() [all …]
|
/drivers/net/ethernet/ti/ |
D | davinci_cpdma.h | 88 int cpdma_chan_process(struct cpdma_chan *chan, int quota);
|
/drivers/net/can/rcar/ |
D | rcar_can.c | 678 static int rcar_can_rx_poll(struct napi_struct *napi, int quota) in rcar_can_rx_poll() argument 684 for (num_pkts = 0; num_pkts < quota; num_pkts++) { in rcar_can_rx_poll() 702 if (num_pkts < quota) { in rcar_can_rx_poll()
|