/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | quota.c | 111 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 …]
|
D | Makefile | 4 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/ |
D | vchiq_core.c | 437 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("a->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("a->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/ |
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/wireless/intel/iwlwifi/fw/api/ |
D | binding.h | 83 __le32 quota; member 117 __le32 quota; member
|
/drivers/net/can/ |
D | pch_can.c | 629 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()
|
D | at91_can.c | 672 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/ |
D | c_can_main.c | 818 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/ |
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() 65 if (work_done < quota) { in can_rx_offload_napi_poll()
|
/drivers/net/ethernet/sfc/siena/ |
D | nic_common.h | 176 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()
|
D | rx_common.h | 104 unsigned int quota);
|
D | efx_channels.c | 518 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/ |
D | ifi_canfd.c | 325 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/ |
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);
|
/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 | 110 bool __efx_filter_rfs_expire(struct efx_channel *channel, unsigned int quota);
|
D | efx_channels.c | 517 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/ |
D | starfire.c | 576 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, "a)) in netdev_poll() 1577 budget - quota); in netdev_poll() 1580 return budget - quota; in netdev_poll()
|
/drivers/net/can/m_can/ |
D | m_can.c | 546 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/ |
D | htt_rx.c | 4313 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/ |
D | qed_hw.c | 248 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/ |
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() 417 if (work_done < quota) { in mscan_rx_poll()
|
/drivers/net/ethernet/renesas/ |
D | ravb_main.c | 769 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, "a, q)) in ravb_poll() [all …]
|
/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);
|