Home
last modified time | relevance | path

Searched refs:quota (Results 1 – 25 of 64) sorted by relevance

123

/drivers/net/wireless/intel/iwlwifi/mvm/
Dquota.c111 u32 quota = le32_to_cpu(data->quota); in iwl_mvm_adjust_quota_for_noa() local
116 quota *= (beacon_int - mvm->noa_duration); in iwl_mvm_adjust_quota_for_noa()
117 quota /= beacon_int; in iwl_mvm_adjust_quota_for_noa()
120 le32_to_cpu(data->quota), quota); in iwl_mvm_adjust_quota_for_noa()
122 data->quota = cpu_to_le32(quota); in iwl_mvm_adjust_quota_for_noa()
132 int i, idx, err, num_active_macs, quota, quota_rem, n_non_lowlat; in iwl_mvm_update_quotas() local
189 quota = (QUOTA_100 - QUOTA_LOWLAT_MIN) / n_non_lowlat; in iwl_mvm_update_quotas()
190 quota_rem = QUOTA_100 - n_non_lowlat * quota - in iwl_mvm_update_quotas()
194 quota); in iwl_mvm_update_quotas()
201 quota = QUOTA_100 / num_active_macs; in iwl_mvm_update_quotas()
[all …]
DMakefile4 iwlmvm-y += utils.o rx.o rxmq.o tx.o binding.o quota.o sta.o sf.o
/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_core.c437 struct vchiq_service_quota *quota; in mark_service_closing_internal() local
456 quota = &state->service_quotas[service->localport]; in mark_service_closing_internal()
457 complete(&quota->quota_event); in mark_service_closing_internal()
728 struct vchiq_service_quota *quota = &state->service_quotas[port]; in process_free_data_message() local
732 count = quota->message_use_count; in process_free_data_message()
734 quota->message_use_count = count - 1; in process_free_data_message()
737 if (count == quota->message_quota) { in process_free_data_message()
742 complete(&quota->quota_event); in process_free_data_message()
746 port, quota->message_use_count, header, msgid, header->msgid, in process_free_data_message()
755 count = quota->slot_use_count; in process_free_data_message()
[all …]
/drivers/net/wireless/ath/wil6210/
Dnetdev.c95 int quota = budget; in wil6210_netdev_poll_rx() local
98 wil_rx_handle(wil, &quota); 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, &quota); in wil6210_netdev_poll_rx_edma()
120 done = budget - quota; in wil6210_netdev_poll_rx_edma()
/drivers/net/wireless/intel/iwlwifi/fw/api/
Dbinding.h83 __le32 quota; member
117 __le32 quota; member
/drivers/net/can/
Dpch_can.c629 static int pch_can_rx_normal(struct net_device *ndev, u32 obj_num, int quota) in pch_can_rx_normal() argument
657 quota--; in pch_can_rx_normal()
698 quota--; in pch_can_rx_normal()
703 } while (quota > 0); in pch_can_rx_normal()
723 static int pch_can_poll(struct napi_struct *napi, int quota) in pch_can_poll() argument
729 int quota_save = quota; in pch_can_poll()
741 quota--; in pch_can_poll()
751 if (quota == 0) in pch_can_poll()
755 quota -= pch_can_rx_normal(ndev, int_stat, quota); in pch_can_poll()
766 return quota_save - quota; in pch_can_poll()
Dat91_can.c672 static int at91_poll_rx(struct net_device *dev, int quota) in at91_poll_rx() argument
687 mb < get_mb_tx_first(priv) && quota > 0; in at91_poll_rx()
701 quota--; in at91_poll_rx()
708 if (quota > 0) in at91_poll_rx()
763 static int at91_poll_err(struct net_device *dev, int quota, u32 reg_sr) in at91_poll_err() argument
768 if (quota == 0) in at91_poll_err()
782 static int at91_poll(struct napi_struct *napi, int quota) in at91_poll() argument
790 work_done += at91_poll_rx(dev, quota - work_done); in at91_poll()
797 work_done += at91_poll_err(dev, quota - work_done, reg_sr); in at91_poll()
799 if (work_done < quota) { in at91_poll()
/drivers/net/can/c_can/
Dc_can_main.c818 u32 pend, int quota) in c_can_read_objects() argument
822 while ((obj = ffs(pend)) && quota > 0) { in c_can_read_objects()
834 quota -= n; in c_can_read_objects()
851 quota--; in c_can_read_objects()
880 static int c_can_do_rx_poll(struct net_device *dev, int quota) in c_can_do_rx_poll() argument
885 while (quota > 0) { in c_can_do_rx_poll()
901 n = c_can_read_objects(dev, priv, toread, quota); in c_can_do_rx_poll()
903 quota -= n; in c_can_do_rx_poll()
1059 static int c_can_poll(struct napi_struct *napi, int quota) in c_can_poll() argument
1115 work_done += c_can_do_rx_poll(dev, (quota - work_done)); in c_can_poll()
[all …]
/drivers/net/can/dev/
Drx-offload.c42 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()
65 if (work_done < quota) { in can_rx_offload_napi_poll()
/drivers/net/ethernet/sfc/siena/
Dnic_common.h176 efx_nic_process_eventq(struct efx_channel *channel, int quota) in efx_nic_process_eventq() argument
178 return channel->efx->type->ev_process(channel, quota); in efx_nic_process_eventq()
Drx_common.h104 unsigned int quota);
Defx_channels.c518 unsigned int time, quota; in efx_filter_rfs_expire() local
522 quota = channel->rfs_filter_count * time / (30 * HZ); in efx_filter_rfs_expire()
523 if (quota >= 20 && __efx_siena_filter_rfs_expire(channel, in efx_filter_rfs_expire()
524 min(channel->rfs_filter_count, quota))) in efx_filter_rfs_expire()
/drivers/net/can/ifi_canfd/
Difi_canfd.c325 static int ifi_canfd_do_rx_poll(struct net_device *ndev, int quota) in ifi_canfd_do_rx_poll() argument
340 if (quota <= 0) in ifi_canfd_do_rx_poll()
344 quota--; in ifi_canfd_do_rx_poll()
562 static int ifi_canfd_poll(struct napi_struct *napi, int quota) in ifi_canfd_poll() argument
582 work_done += ifi_canfd_do_rx_poll(ndev, quota - work_done); in ifi_canfd_poll()
584 if (work_done < quota) { in ifi_canfd_poll()
/drivers/net/ethernet/sfc/falcon/
Dnic.h372 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);
/drivers/net/ethernet/sfc/
Dnic_common.h179 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()
Drx_common.h110 bool __efx_filter_rfs_expire(struct efx_channel *channel, unsigned int quota);
Defx_channels.c517 unsigned int time, quota; in efx_filter_rfs_expire() local
521 quota = channel->rfs_filter_count * time / (30 * HZ); in efx_filter_rfs_expire()
522 if (quota >= 20 && __efx_filter_rfs_expire(channel, min(channel->rfs_filter_count, quota))) in efx_filter_rfs_expire()
/drivers/net/ethernet/adaptec/
Dstarfire.c576 static int __netdev_rx(struct net_device *dev, int *quota);
1428 static int __netdev_rx(struct net_device *dev, int *quota) in __netdev_rx() argument
1453 if (*quota <= 0) { /* out of rx quota */ in __netdev_rx()
1457 (*quota)--; in __netdev_rx()
1463 printk(KERN_DEBUG " netdev_rx() normal Rx pkt length %d, quota %d.\n", pkt_len, *quota); in __netdev_rx()
1538 if (*quota == 0) { /* out of rx quota */ in __netdev_rx()
1558 int quota = budget; in netdev_poll() local
1563 if (__netdev_rx(dev, &quota)) in netdev_poll()
1577 budget - quota); in netdev_poll()
1580 return budget - quota; in netdev_poll()
/drivers/net/can/m_can/
Dm_can.c546 static int m_can_do_rx_poll(struct net_device *dev, int quota) in m_can_do_rx_poll() argument
559 while ((rxfs & RXFS_FFL_MASK) && (quota > 0)) { in m_can_do_rx_poll()
564 quota--; in m_can_do_rx_poll()
893 static int m_can_rx_handler(struct net_device *dev, int quota) in m_can_rx_handler() argument
934 rx_work_or_err = m_can_do_rx_poll(dev, (quota - work_done)); in m_can_rx_handler()
960 static int m_can_poll(struct napi_struct *napi, int quota) in m_can_poll() argument
966 work_done = m_can_rx_handler(dev, quota); in m_can_poll()
971 if (work_done >= 0 && work_done < quota) { in m_can_poll()
/drivers/net/wireless/ath/ath10k/
Dhtt_rx.c4313 static int ath10k_htt_rx_deliver_msdu(struct ath10k *ar, int quota, int budget) in ath10k_htt_rx_deliver_msdu() argument
4317 while (quota < budget) { in ath10k_htt_rx_deliver_msdu()
4325 quota++; in ath10k_htt_rx_deliver_msdu()
4328 return quota; in ath10k_htt_rx_deliver_msdu()
4337 int quota; in ath10k_htt_rx_hl_indication() local
4339 for (quota = 0; quota < budget; quota++) { in ath10k_htt_rx_hl_indication()
4358 return quota; in ath10k_htt_rx_hl_indication()
4369 int quota = 0, done, ret; in ath10k_htt_txrx_compl_task() local
4377 quota = ath10k_htt_rx_deliver_msdu(ar, quota, budget); in ath10k_htt_txrx_compl_task()
4378 if (quota == budget) { in ath10k_htt_txrx_compl_task()
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_hw.c248 size_t quota, done = 0; in qed_memcpy_hw() local
252 quota = min_t(size_t, n - done, in qed_memcpy_hw()
262 dw_count = quota / 4; in qed_memcpy_hw()
272 done += quota; in qed_memcpy_hw()
/drivers/net/can/mscan/
Dmscan.c379 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()
417 if (work_done < quota) { in mscan_rx_poll()
/drivers/net/ethernet/renesas/
Dravb_main.c769 static bool ravb_rx_gbeth(struct net_device *ndev, int *quota, int q) in ravb_rx_gbeth() argument
788 boguscnt = min(boguscnt, *quota); in ravb_rx_gbeth()
892 *quota -= limit - (++boguscnt); in ravb_rx_gbeth()
898 static bool ravb_rx_rcar(struct net_device *ndev, int *quota, int q) in ravb_rx_rcar() argument
914 boguscnt = min(boguscnt, *quota); in ravb_rx_rcar()
1007 *quota -= limit - (++boguscnt); in ravb_rx_rcar()
1013 static bool ravb_rx(struct net_device *ndev, int *quota, int q) in ravb_rx() argument
1018 return info->receive(ndev, quota, q); in ravb_rx()
1298 int quota = budget; in ravb_poll() local
1309 if (ravb_rx(ndev, &quota, q)) in ravb_poll()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c332 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/
Ddavinci_cpdma.h88 int cpdma_chan_process(struct cpdma_chan *chan, int quota);

123