/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | quota.c | 112 u32 quota = le32_to_cpu(data->quota); in iwl_mvm_adjust_quota_for_noa() local 117 quota *= (beacon_int - mvm->noa_duration); in iwl_mvm_adjust_quota_for_noa() 118 quota /= beacon_int; in iwl_mvm_adjust_quota_for_noa() 121 le32_to_cpu(data->quota), quota); in iwl_mvm_adjust_quota_for_noa() 123 data->quota = cpu_to_le32(quota); in iwl_mvm_adjust_quota_for_noa() 133 int i, idx, err, num_active_macs, quota, quota_rem, n_non_lowlat; in iwl_mvm_update_quotas() local 190 quota = (QUOTA_100 - QUOTA_LOWLAT_MIN) / n_non_lowlat; in iwl_mvm_update_quotas() 191 quota_rem = QUOTA_100 - n_non_lowlat * quota - in iwl_mvm_update_quotas() 195 quota); in iwl_mvm_update_quotas() 202 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() 738 struct vchiq_service_quota *quota = &state->service_quotas[port]; in process_free_data_message() local 742 count = quota->message_use_count; in process_free_data_message() 744 quota->message_use_count = count - 1; in process_free_data_message() 747 if (count == quota->message_quota) { in process_free_data_message() 752 complete("a->quota_event); in process_free_data_message() 756 port, quota->message_use_count, header, msgid, header->msgid, in process_free_data_message() 765 count = quota->slot_use_count; in process_free_data_message() [all …]
|
/drivers/net/wireless/intel/iwlwifi/fw/api/ |
D | binding.h | 75 __le32 quota; member 109 __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_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/ |
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/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 | 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() 561 static int ifi_canfd_poll(struct napi_struct *napi, int quota) in ifi_canfd_poll() argument 581 work_done += ifi_canfd_do_rx_poll(ndev, quota - work_done); in ifi_canfd_poll() 583 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 | 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 | 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 | 561 static int m_can_do_rx_poll(struct net_device *dev, int quota) in m_can_do_rx_poll() argument 581 for (i = 0; i < rx_count && quota > 0; ++i) { in m_can_do_rx_poll() 586 quota--; in m_can_do_rx_poll() 931 static int m_can_rx_handler(struct net_device *dev, int quota, u32 irqstatus) in m_can_rx_handler() argument 970 rx_work_or_err = m_can_do_rx_poll(dev, (quota - work_done)); in m_can_rx_handler() 996 static int m_can_poll(struct napi_struct *napi, int quota) in m_can_poll() argument 1005 work_done = m_can_rx_handler(dev, quota, irqstatus); in m_can_poll() 1010 if (work_done >= 0 && work_done < quota) { in m_can_poll()
|
/drivers/net/wireless/ath/ath10k/ |
D | htt_rx.c | 4308 static int ath10k_htt_rx_deliver_msdu(struct ath10k *ar, int quota, int budget) in ath10k_htt_rx_deliver_msdu() argument 4312 while (quota < budget) { in ath10k_htt_rx_deliver_msdu() 4320 quota++; in ath10k_htt_rx_deliver_msdu() 4323 return quota; in ath10k_htt_rx_deliver_msdu() 4332 int quota; in ath10k_htt_rx_hl_indication() local 4334 for (quota = 0; quota < budget; quota++) { in ath10k_htt_rx_hl_indication() 4353 return quota; in ath10k_htt_rx_hl_indication() 4364 int quota = 0, done, ret; in ath10k_htt_txrx_compl_task() local 4372 quota = ath10k_htt_rx_deliver_msdu(ar, quota, budget); in ath10k_htt_txrx_compl_task() 4373 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 | 767 static bool ravb_rx_gbeth(struct net_device *ndev, int *quota, int q) in ravb_rx_gbeth() argument 786 boguscnt = min(boguscnt, *quota); in ravb_rx_gbeth() 890 *quota -= limit - (++boguscnt); in ravb_rx_gbeth() 896 static bool ravb_rx_rcar(struct net_device *ndev, int *quota, int q) in ravb_rx_rcar() argument 912 boguscnt = min(boguscnt, *quota); in ravb_rx_rcar() 1005 *quota -= limit - (++boguscnt); in ravb_rx_rcar() 1011 static bool ravb_rx(struct net_device *ndev, int *quota, int q) in ravb_rx() argument 1016 return info->receive(ndev, quota, q); in ravb_rx() 1294 int quota = budget; in ravb_poll() local 1300 unmask = !ravb_rx(ndev, "a, q); in ravb_poll() [all …]
|
D | rswitch.c | 695 static bool rswitch_rx(struct net_device *ndev, int *quota) in rswitch_rx() argument 706 if (*quota <= 0) in rswitch_rx() 709 boguscnt = min_t(int, gq->ring_size, *quota); in rswitch_rx() 753 *quota -= limit - boguscnt; in rswitch_rx() 804 int quota = budget; in rswitch_poll() local 812 if (rswitch_rx(ndev, "a)) in rswitch_poll() 821 if (napi_complete_done(napi, budget - quota)) { in rswitch_poll() 829 return budget - quota; in rswitch_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);
|