Home
last modified time | relevance | path

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

1234

/linux/mm/damon/
H A Dcore.c396 static struct damos_quota *damos_quota_init(struct damos_quota *quota) in damos_quota_init() argument
398 quota->esz = 0; in damos_quota_init()
399 quota->total_charged_sz = 0; in damos_quota_init()
400 quota->total_charged_ns = 0; in damos_quota_init()
401 quota->charged_sz = 0; in damos_quota_init()
402 quota->charged_from = 0; in damos_quota_init()
403 quota->charge_target_from = NULL; in damos_quota_init()
404 quota->charge_addr_from = 0; in damos_quota_init()
405 quota->esz_bp = 0; in damos_quota_init()
406 return quota; in damos_quota_init()
[all …]
H A Dmodules-common.h20 #define DEFINE_DAMON_MODULES_DAMOS_TIME_QUOTA(quota) \ argument
21 module_param_named(quota_ms, quota.ms, ulong, 0600); \
23 quota.reset_interval, ulong, 0600);
25 #define DEFINE_DAMON_MODULES_DAMOS_QUOTAS(quota) \ argument
26 DEFINE_DAMON_MODULES_DAMOS_TIME_QUOTA(quota) \
27 module_param_named(quota_sz, quota.sz, ulong, 0600);
H A Dlru_sort.c192 struct damos_quota quota = damon_lru_sort_quota; in damon_lru_sort_new_scheme() local
195 quota.ms = quota.ms / 2; in damon_lru_sort_new_scheme()
205 &quota, in damon_lru_sort_new_scheme()
240 damos_add_quota_goal(&hot_scheme->quota, goal); in damon_lru_sort_add_quota_goals()
246 damos_add_quota_goal(&cold_scheme->quota, goal); in damon_lru_sort_add_quota_goals()
H A Dreclaim.c218 damos_add_quota_goal(&scheme->quota, goal); in damon_reclaim_apply_parameters()
226 damos_add_quota_goal(&scheme->quota, goal); in damon_reclaim_apply_parameters()
/linux/net/netfilter/
H A Dxt_quota.c17 uint64_t quota; member
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()
/linux/Documentation/filesystems/
H A Dquota.rst20 For more details about quota design, see the documentation in quota-tools package
26 quota subsystem traditionally printed a message to the controlling terminal of
29 Thus quota netlink interface has been designed to pass information about
35 more details about this layer). The name of the quota generic netlink interface
36 is "VFS_DQUOT". Definitions of constants below are in <linux/quota.h>. Since
37 the quota netlink protocol is not namespace aware, quota netlink messages are
46 - type of quota being exceeded (one of USRQUOTA, GRPQUOTA)
48 - UID/GID (depends on quota type) of user / group whose limit
/linux/arch/powerpc/platforms/pseries/
H A Dmsi.c223 int quota; member
266 if (req < counts->quota) in count_spare_msis()
267 counts->spare += counts->quota - req; in count_spare_msis()
268 else if (req > counts->quota) in count_spare_msis()
305 counts.quota = total / counts.num_devices; in msi_quota_for_device()
306 if (request <= counts.quota) in msi_quota_for_device()
320 counts.quota += counts.spare / counts.over_quota; in msi_quota_for_device()
323 request = min(counts.quota, request); in msi_quota_for_device()
353 int quota, rc; in rtas_prepare_msi_irqs() local
365 quota = msi_quota_for_device(pdev, nvec); in rtas_prepare_msi_irqs()
[all …]
/linux/tools/testing/selftests/damon/
H A Dsysfs.py63 def assert_quota_committed(quota, dump): argument
64 assert_true(dump['reset_interval'] == quota.reset_interval_ms,
66 assert_true(dump['ms'] == quota.ms, 'ms', dump)
67 assert_true(dump['sz'] == quota.sz, 'sz', dump)
68 for idx, qgoal in enumerate(quota.goals):
74 assert_true(dump['goal_tuner'] == tuner_val[quota.goal_tuner],
76 assert_true(dump['weight_sz'] == quota.weight_sz_permil, 'weight_sz', dump)
77 assert_true(dump['weight_nr_accesses'] == quota.weight_nr_accesses_permil,
80 dump['weight_age'] == quota.weight_age_permil, 'weight_age', dump)
137 assert_quota_committed(scheme.quota, dum
[all...]
H A D_damon_sysfs.py98 quota = None # owner quota variable in DamosQuotaGoal
108 return os.path.join(self.quota.sysfs_dir(), 'goals', '%d' % self.idx)
130 sz = None # size quota, in bytes
131 ms = None # time quota
132 goals = None # quota goals
133 goal_tuner = None # quota goal tuner
134 reset_interval_ms = None # quota reset interval
153 goal.quota = self
398 quota
392 quota = None global() variable in Damos
407 __init__(self, action='stat', access_pattern=DamosAccessPattern(), quota=DamosQuota(), watermarks=DamosWatermarks(), core_filters=[], ops_filters=[], filters=[], target_nid=0, dests=DamosDests(), apply_interval_us=0) global() argument
[all...]
H A Ddrgn_dump_damon_status.py108 def damos_quota_to_dict(quota): argument
109 return to_dict(quota, [
174 ['quota', damos_quota_to_dict],
/linux/tools/testing/selftests/net/tcp_ao/
H A Dseq-ext.c15 const unsigned int quota = nr_packets * msg_len; variable
28 new_seq2 = ((uint32_t)-1) - (quota - 2 * msg_len); in test_adjust_seqs()
30 new_seq1 = ((uint32_t)-1) - (quota - 2 * msg_len); in test_adjust_seqs()
92 bytes = test_server_run(sk, quota, TEST_TIMEOUT_SEC); in server_fn()
93 if (bytes != quota) { in server_fn()
128 bytes = test_server_run(sk, quota, TEST_TIMEOUT_SEC); in server_fn()
129 if (bytes != quota) { in server_fn()
H A Drst.c29 const size_t quota = 1000; variable
111 bytes = test_server_run(sk, quota, 0); in test_server_active_rst()
112 if (bytes != quota) in test_server_active_rst()
153 bytes = test_server_run(sk, quota, TEST_TIMEOUT_SEC); in test_server_passive_rst()
154 if (bytes != quota) { in test_server_passive_rst()
290 if (test_client_verify(sk[0], packet_sz, quota / packet_sz)) in test_client_active_rst()
343 if (test_client_verify(sk, packet_sz, quota / packet_sz)) in test_client_passive_rst()
419 err = test_client_verify(sk, packet_sz, quota / packet_sz); in test_client_passive_rst()
H A Dkey-management.c9 const size_t quota = nr_packets * msg_len; variable
793 static int start_server(const char *tst_name, unsigned int port, size_t quota, in start_server() argument
821 bytes = test_server_run(sk, quota, TEST_TIMEOUT_SEC); in start_server()
822 if (bytes != quota) in start_server()
848 static void try_server_run(const char *tst_name, unsigned int port, size_t quota, in try_server_run() argument
854 sk = start_server(tst_name, port, quota, &tmp, in try_server_run()
860 size_t quota, unsigned int rotations, in server_rotations() argument
867 sk = start_server(tst_name, port, quota, &tmp, in server_rotations()
875 bytes = test_server_run(sk, quota, TEST_TIMEOUT_SEC); in server_rotations()
876 if (bytes != quota) { in server_rotations()
[all …]
H A Drestore.c13 const size_t quota = nr_packets * msg_len; variable
44 bytes = test_server_run(sk, quota, TEST_TIMEOUT_SEC); in try_server_run()
45 if (bytes != quota) { in try_server_run()
54 bytes = test_skpair_server(sk, quota, poll_cnt, &dummy); in try_server_run()
61 if (bytes != quota) in try_server_run()
/linux/drivers/platform/raspberrypi/vchiq-interface/
H A Dvchiq_core.c427 struct vchiq_service_quota *quota; in mark_service_closing_internal() local
446 quota = &state->service_quotas[service->localport]; in mark_service_closing_internal()
447 complete(&quota->quota_event); in mark_service_closing_internal()
764 struct vchiq_service_quota *quota = &state->service_quotas[port]; in process_free_data_message() local
768 count = quota->message_use_count; in process_free_data_message()
770 quota->message_use_count = count - 1; in process_free_data_message()
773 if (count == quota->message_quota) { in process_free_data_message()
778 complete(&quota->quota_event); in process_free_data_message()
782 port, quota->message_use_count, header, msgid, in process_free_data_message()
791 count = quota->slot_use_count; in process_free_data_message()
[all …]
/linux/Documentation/translations/zh_CN/scheduler/
H A Dsched-bwc.rst174 # echo 250000 > cpu.cfs_quota_us /* quota = 250ms */
181 # echo 1000000 > cpu.cfs_quota_us /* quota = 1000ms */
190 # echo 10000 > cpu.cfs_quota_us /* quota = 10ms */
200 # echo 20000 > cpu.cfs_quota_us /* quota = 20ms */
/linux/Documentation/filesystems/ext4/
H A Dspecial_inodes.rst21 - User quota.
23 - Group quota.
53 - Inode number of quota file tracking project quotas
/linux/include/linux/
H A Ddamon.h580 struct damos_quota quota; member
895 #define damos_for_each_quota_goal(goal, quota) \ argument
896 list_for_each_entry(goal, &quota->goals, list)
898 #define damos_for_each_quota_goal_safe(goal, next, quota) \ argument
899 list_for_each_entry_safe(goal, next, &(quota)->goals, list)
950 struct damos_quota *quota,
/linux/drivers/net/wireless/ath/wil6210/
H A 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()
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dsock.c589 static ssize_t _test_server_run(int sk, ssize_t quota, struct tcp_counters *c, in _test_server_run() argument
621 } while (!quota || total < quota); in _test_server_run()
626 ssize_t test_server_run(int sk, ssize_t quota, time_t timeout_sec) in test_server_run() argument
628 return _test_server_run(sk, quota, NULL, 0, NULL, in test_server_run()
632 int test_skpair_server(int sk, ssize_t quota, test_cnt cond, volatile int *err) in test_skpair_server() argument
642 ret = _test_server_run(sk, quota, &c, cond, err, TEST_TIMEOUT_SEC); in test_skpair_server()
/linux/drivers/net/can/dev/
H A 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()
/linux/include/uapi/linux/netfilter/
H A Dxt_quota.h17 __aligned_u64 quota; member
/linux/fs/quota/
H A DMakefile6 obj-$(CONFIG_QUOTACTL) += quota.o kqid.o
/linux/drivers/net/ethernet/sfc/
H A Dnic_common.h177 efx_nic_process_eventq(struct efx_channel *channel, int quota) in efx_nic_process_eventq() argument
179 return channel->efx->type->ev_process(channel, quota); in efx_nic_process_eventq()
/linux/kernel/sched/
H A Dcore.c9784 u64 period, quota, burst; in tg_set_cfs_bandwidth() local
9789 quota = RUNTIME_INF; in tg_set_cfs_bandwidth()
9791 quota = (u64)quota_us * NSEC_PER_USEC; in tg_set_cfs_bandwidth()
9802 ret = __cfs_schedulable(tg, period, quota); in tg_set_cfs_bandwidth()
9806 runtime_enabled = quota != RUNTIME_INF; in tg_set_cfs_bandwidth()
9807 runtime_was_enabled = cfs_b->quota != RUNTIME_INF; in tg_set_cfs_bandwidth()
9817 cfs_b->quota = quota; in tg_set_cfs_bandwidth()
9862 if (tg->cfs_bandwidth.quota == RUNTIME_INF) in tg_get_cfs_quota()
9865 quota_us = tg->cfs_bandwidth.quota; in tg_get_cfs_quota()
9883 u64 period, quota; member
[all …]

1234