/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A 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() 175 IWL_DEBUG_QUOTA(mvm, "quota: adjust for NoA from %d to %d\n", 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_re in iwl_mvm_update_quotas() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A 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() 120 IWL_DEBUG_QUOTA(mvm, "quota: adjust for NoA from %d to %d\n", 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_re in iwl_mvm_update_quotas() local [all...] |
/kernel/linux/linux-6.6/mm/damon/ |
H A D | core.c | 302 static struct damos_quota *damos_quota_init_priv(struct damos_quota *quota) in damos_quota_init_priv() argument 304 quota->total_charged_sz = 0; in damos_quota_init_priv() 305 quota->total_charged_ns = 0; in damos_quota_init_priv() 306 quota->esz = 0; in damos_quota_init_priv() 307 quota->charged_sz = 0; in damos_quota_init_priv() 308 quota->charged_from = 0; in damos_quota_init_priv() 309 quota->charge_target_from = NULL; in damos_quota_init_priv() 310 quota->charge_addr_from = 0; in damos_quota_init_priv() 311 return quota; in damos_quota_init_priv() 315 enum damos_action action, struct damos_quota *quota, in damon_new_scheme() 314 damon_new_scheme(struct damos_access_pattern *pattern, enum damos_action action, struct damos_quota *quota, struct damos_watermarks *wmarks) damon_new_scheme() argument 813 struct damos_quota *quota = &s->quota; damos_skip_charged_region() local 921 struct damos_quota *quota = &s->quota; damos_apply_scheme() local 965 struct damos_quota *quota = &s->quota; damon_do_apply_schemes() local 985 damos_set_effective_quota(struct damos_quota *quota) damos_set_effective_quota() argument 1009 struct damos_quota *quota = &s->quota; damos_adjust_quota() local [all...] |
H A D | modules-common.h | 20 #define DEFINE_DAMON_MODULES_DAMOS_TIME_QUOTA(quota) \ 21 module_param_named(quota_ms, quota.ms, ulong, 0600); \ 23 quota.reset_interval, ulong, 0600); 25 #define DEFINE_DAMON_MODULES_DAMOS_QUOTAS(quota) \ 26 DEFINE_DAMON_MODULES_DAMOS_TIME_QUOTA(quota) \ 27 module_param_named(quota_sz, quota.sz, ulong, 0600);
|
H A D | lru_sort.c | 71 /* Within the quota, mark hotter regions accessed first. */ 151 struct damos_quota quota = damon_lru_sort_quota; in damon_lru_sort_new_scheme() local 153 /* Use half of total quota for hot/cold pages sorting */ in damon_lru_sort_new_scheme() 154 quota.ms = quota.ms / 2; in damon_lru_sort_new_scheme() 161 /* under the quota. */ in damon_lru_sort_new_scheme() 162 "a, in damon_lru_sort_new_scheme() 222 damon_lru_sort_copy_quota_status(&hot_scheme->quota, in damon_lru_sort_apply_parameters() 223 &old_hot_scheme->quota); in damon_lru_sort_apply_parameters() 232 damon_lru_sort_copy_quota_status(&cold_scheme->quota, in damon_lru_sort_apply_parameters() [all...] |
H A D | dbgfs.c | 152 s->quota.ms, s->quota.sz, in sprint_schemes() 153 s->quota.reset_interval, in sprint_schemes() 154 s->quota.weight_sz, in sprint_schemes() 155 s->quota.weight_nr_accesses, in sprint_schemes() 156 s->quota.weight_age, in sprint_schemes() 249 struct damos_quota quota = {}; in str_to_schemes() local 259 &action_input, "a.ms, in str_to_schemes() 260 "a.sz, "a in str_to_schemes() [all...] |
H A D | ops-common.c | 79 unsigned int freq_weight = s->quota.weight_nr_accesses; in damon_hot_score() 80 unsigned int age_weight = s->quota.weight_age; in damon_hot_score()
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nft_quota.c | 16 atomic64_t quota; member 25 atomic64_read(&priv->quota); in nft_overquota() 70 u64 quota, consumed = 0; in nft_quota_do_init() local 75 quota = be64_to_cpu(nla_get_be64(tb[NFTA_QUOTA_BYTES])); in nft_quota_do_init() 76 if (quota > S64_MAX) in nft_quota_do_init() 81 if (consumed > quota) in nft_quota_do_init() 93 atomic64_set(&priv->quota, quota); in nft_quota_do_init() 116 newquota = atomic64_read(&newpriv->quota); in nft_quota_obj_update() 117 atomic64_set(&priv->quota, newquot in nft_quota_obj_update() 124 u64 consumed, consumed_cap, quota; nft_quota_do_dump() local [all...] |
H A D | xt_quota2.c | 33 * @lock: lock to protect quota writers from each other 36 u_int64_t quota; member 70 seq_printf(m, "%llu\n", e->quota); in quota_proc_show() 98 /* Do not let quota become negative if @tmp is very negative */ in quota_proc_write() 99 if (temp > 0 || -temp < e->quota) in quota_proc_write() 100 e->quota += temp; in quota_proc_write() 102 e->quota = 0; in quota_proc_write() 107 /* Do not let quota become negative if @tmp is very big */ in quota_proc_write() 108 if (temp < 0 || temp < e->quota) in quota_proc_write() 109 e->quota in quota_proc_write() [all...] |
H A D | xt_quota.c | 17 uint64_t quota; member 22 MODULE_DESCRIPTION("Xtables: countdown quota match"); 34 if (priv->quota >= skb->len) { in quota_mt() 35 priv->quota -= skb->len; in quota_mt() 39 priv->quota = 0; in quota_mt() 58 q->master->quota = q->quota; in quota_mt_check() 70 .name = "quota",
|
H A D | nfnetlink_acct.c | 81 /* reset overquota flag if quota is enabled. */ in nfnl_acct_new() 109 u64 *quota = (u64 *)nfacct->data; in nfnl_acct_new() local 111 *quota = be64_to_cpu(nla_get_be64(tb[NFACCT_QUOTA])); in nfnl_acct_new() 166 u64 *quota = (u64 *)acct->data; in nfnl_acct_fill_info() local 169 nla_put_be64(skb, NFACCT_QUOTA, cpu_to_be64(*quota), in nfnl_acct_fill_info() 462 u64 *quota; in nfnl_acct_overquota() local 465 /* no place here if we don't have a quota */ in nfnl_acct_overquota() 469 quota = (u64 *)nfacct->data; in nfnl_acct_overquota() 473 ret = now > *quota; in nfnl_acct_overquota() 475 if (now >= *quota in nfnl_acct_overquota() [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nft_quota.c | 16 atomic64_t quota; member 25 atomic64_read(&priv->quota); in nft_overquota() 70 u64 quota, consumed = 0; in nft_quota_do_init() local 75 quota = be64_to_cpu(nla_get_be64(tb[NFTA_QUOTA_BYTES])); in nft_quota_do_init() 76 if (quota > S64_MAX) in nft_quota_do_init() 81 if (consumed > quota) in nft_quota_do_init() 97 atomic64_set(&priv->quota, quota); in nft_quota_do_init() 126 newquota = atomic64_read(&newpriv->quota); in nft_quota_obj_update() 127 atomic64_set(&priv->quota, newquot in nft_quota_obj_update() 134 u64 consumed, consumed_cap, quota; nft_quota_do_dump() local [all...] |
H A D | xt_quota.c | 17 uint64_t quota; member 22 MODULE_DESCRIPTION("Xtables: countdown quota match"); 34 if (priv->quota >= skb->len) { in quota_mt() 35 priv->quota -= skb->len; in quota_mt() 39 priv->quota = 0; in quota_mt() 58 q->master->quota = q->quota; in quota_mt_check() 70 .name = "quota",
|
H A D | nfnetlink_acct.c | 92 /* reset overquota flag if quota is enabled. */ in nfnl_acct_new() 120 u64 *quota = (u64 *)nfacct->data; in nfnl_acct_new() local 122 *quota = be64_to_cpu(nla_get_be64(tb[NFACCT_QUOTA])); in nfnl_acct_new() 177 u64 *quota = (u64 *)acct->data; in nfnl_acct_fill_info() local 180 nla_put_be64(skb, NFACCT_QUOTA, cpu_to_be64(*quota), in nfnl_acct_fill_info() 481 u64 *quota; in nfnl_acct_overquota() local 484 /* no place here if we don't have a quota */ in nfnl_acct_overquota() 488 quota = (u64 *)nfacct->data; in nfnl_acct_overquota() 492 ret = now > *quota; in nfnl_acct_overquota() 494 if (now >= *quota in nfnl_acct_overquota() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
H A D | msi.c | 224 int quota; member 267 if (req < counts->quota) in count_spare_msis() 268 counts->spare += counts->quota - req; in count_spare_msis() 269 else if (req > counts->quota) in count_spare_msis() 281 pr_debug("rtas_msi: calc quota for %s, request %d\n", pci_name(dev), in msi_quota_for_device() 306 counts.quota = total / counts.num_devices; in msi_quota_for_device() 307 if (request <= counts.quota) in msi_quota_for_device() 315 /* If the quota isn't an integer multiple of the total, we can in msi_quota_for_device() 319 /* Divide any spare by the number of over-quota requestors */ in msi_quota_for_device() 321 counts.quota in msi_quota_for_device() 374 int hwirq, virq, i, quota, rc; rtas_setup_msi_irqs() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/ |
H A D | msi.c | 216 int quota; member 259 if (req < counts->quota) in count_spare_msis() 260 counts->spare += counts->quota - req; in count_spare_msis() 261 else if (req > counts->quota) in count_spare_msis() 273 pr_debug("rtas_msi: calc quota for %s, request %d\n", pci_name(dev), in msi_quota_for_device() 298 counts.quota = total / counts.num_devices; in msi_quota_for_device() 299 if (request <= counts.quota) in msi_quota_for_device() 307 /* If the quota isn't an integer multiple of the total, we can in msi_quota_for_device() 311 /* Divide any spare by the number of over-quota requestors */ in msi_quota_for_device() 313 counts.quota in msi_quota_for_device() 346 int quota, rc; rtas_prepare_msi_irqs() local [all...] |
/kernel/liteos_a/kernel/extended/plimit/ |
H A D | los_schedlimit.c | 41 schedLimit->quota = 0; in OsSchedLimitInit() 70 plimitDest->quota = plimitSrc->quota; in OsSchedLimitCopy() 84 if ((schedLimit->period <= 0) || (schedLimit->quota <= 0)) { in OsSchedLimitUpdateRuntime() 88 if ((schedLimit->startTime <= currTime) && (schedLimit->allRuntime < schedLimit->quota)) { in OsSchedLimitUpdateRuntime() 147 schedLimit->quota = value; in OsSchedLimitSetQuota()
|
/kernel/linux/linux-6.6/drivers/staging/vc04_services/interface/vchiq_arm/ |
H A 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() 750 * has dropped below its quota in process_free_data_message() 752 complete("a->quota_event); in process_free_data_message() 756 port, quota in process_free_data_message() 921 struct vchiq_service_quota *quota = NULL; queue_message() local 2216 struct vchiq_service_quota *quota = &state->service_quotas[i]; vchiq_init_state() local 2375 struct vchiq_service_quota *quota; vchiq_add_service_internal() local 3328 struct vchiq_service_quota *quota; vchiq_set_service_option() local 3551 struct vchiq_service_quota *quota = vchiq_dump_service_state() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | binding.h | 66 * struct iwl_time_quota_data_v1 - configuration of time quota per binding 69 * @quota: absolute time quota in TU. The scheduler will try to divide the 70 * remainig quota (after Time Events) according to this quota. 75 __le32 quota; member 80 * struct iwl_time_quota_cmd - configuration of time quota between bindings 100 * struct iwl_time_quota_data - configuration of time quota per binding 102 * @quota: absolute time quota i 109 __le32 quota; global() member [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | binding.h | 129 * struct iwl_time_quota_data_v1 - configuration of time quota per binding 132 * @quota: absolute time quota in TU. The scheduler will try to divide the 133 * remainig quota (after Time Events) according to this quota. 138 __le32 quota; member 143 * struct iwl_time_quota_cmd - configuration of time quota between bindings 163 * struct iwl_time_quota_data - configuration of time quota per binding 165 * @quota: absolute time quota i 172 __le32 quota; global() member [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ath/wil6210/ |
H A 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()
|
/kernel/linux/linux-6.6/drivers/net/wireless/ath/wil6210/ |
H A 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()
|
/kernel/linux/linux-5.10/kernel/sched/ |
H A D | core.c | 8551 static int tg_set_cfs_bandwidth(struct task_group *tg, u64 period, u64 quota) in tg_set_cfs_bandwidth() argument 8564 if (quota < min_cfs_quota_period || period < min_cfs_quota_period) in tg_set_cfs_bandwidth() 8568 * Likewise, bound things on the otherside by preventing insane quota in tg_set_cfs_bandwidth() 8569 * periods. This also allows us to normalize in computing quota in tg_set_cfs_bandwidth() 8576 * Bound quota to defend quota against overflow during bandwidth shift. in tg_set_cfs_bandwidth() 8578 if (quota != RUNTIME_INF && quota > max_cfs_runtime) in tg_set_cfs_bandwidth() 8587 ret = __cfs_schedulable(tg, period, quota); in tg_set_cfs_bandwidth() 8591 runtime_enabled = quota ! in tg_set_cfs_bandwidth() 8635 u64 quota, period; tg_set_cfs_quota() local 8663 u64 quota, period; tg_set_cfs_period() local 8710 u64 period, quota; global() member 8720 u64 quota, period; normalize_cfs_quota() local 8741 s64 quota = 0, parent_quota = -1; tg_cfs_schedulable_down() local 8770 __cfs_schedulable(struct task_group *tg, u64 period, u64 quota) __cfs_schedulable() argument 8987 cpu_period_quota_print(struct seq_file *sf, long period, long quota) cpu_period_quota_print() argument 9033 u64 quota; cpu_max_write() local [all...] |
/kernel/linux/linux-5.10/drivers/net/can/c_can/ |
H A D | c_can.c | 745 * objects in the last run due to quota limit. 788 u32 pend, int quota) in c_can_read_objects() 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 787 c_can_read_objects(struct net_device *dev, struct c_can_priv *priv, u32 pend, int quota) c_can_read_objects() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/can/ |
H A 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() [all...] |