Home
last modified time | relevance | path

Searched full:limit (Results 1 – 25 of 3760) sorted by relevance

12345678910>>...151

/Linux-v5.15/net/netfilter/
Dnft_limit.c28 static inline bool nft_limit_eval(struct nft_limit *limit, u64 cost) in nft_limit_eval() argument
33 spin_lock_bh(&limit->lock); in nft_limit_eval()
35 tokens = limit->tokens + now - limit->last; in nft_limit_eval()
36 if (tokens > limit->tokens_max) in nft_limit_eval()
37 tokens = limit->tokens_max; in nft_limit_eval()
39 limit->last = now; in nft_limit_eval()
42 limit->tokens = delta; in nft_limit_eval()
43 spin_unlock_bh(&limit->lock); in nft_limit_eval()
44 return limit->invert; in nft_limit_eval()
46 limit->tokens = tokens; in nft_limit_eval()
[all …]
Dnf_conntrack_sip.c67 const char *limit, int *shift) in string_len() argument
71 while (dptr < limit && isalpha(*dptr)) { in string_len()
79 const char *limit, int *shift) in digits_len() argument
82 while (dptr < limit && isdigit(*dptr)) { in digits_len()
100 static int word_len(const char *dptr, const char *limit) in word_len() argument
103 while (dptr < limit && iswordc(*dptr)) { in word_len()
111 const char *limit, int *shift) in callid_len() argument
115 len = word_len(dptr, limit); in callid_len()
117 if (!len || dptr == limit || *dptr != '@') in callid_len()
122 domain_len = word_len(dptr, limit); in callid_len()
[all …]
/Linux-v5.15/arch/arm64/lib/
Dmemcmp.S22 #define limit x2 macro
36 subs limit, limit, 8
44 subs limit, limit, 8
47 ldr data1, [src1, limit]
48 ldr data2, [src2, limit]
59 subs limit, limit, 16
63 try to align, so limit it only to strings larger than 128 bytes. */
64 cmp limit, 96
69 add limit, limit, tmp1
74 Limit is pre-decremented by 16 and must be larger than zero.
[all …]
Dstrncmp.S26 #define limit x2 macro
48 cbz limit, L(ret0)
56 sub limit_wd, limit, #1 /* limit != 0, so no underflow. */
77 /* Not reached the limit, must have found the end or a diff. */
80 /* Limit % 8 == 0 => all bytes significant. */
81 ands limit, limit, #7
84 lsl limit, limit, #3 /* Bits -> bytes. */
87 lsr mask, mask, limit
89 lsl mask, mask, limit
154 We also need to adjust the limit calculations, but without
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/regulator/
Dregulator.yaml33 regulator-input-current-limit-microamp:
121 description: Set over current protection limit. This is a limit where
124 limit setting can be omitted.
127 description: Set over current error limit. This is a limit where part of
130 that detection should be enabled but limit setting can be omitted.
133 description: Set over current warning limit. This is a limit where hardware
134 is assumed still to be functional but approaching limit where it gets
137 be enabled but limit setting can be omitted.
140 description: Set over voltage protection limit. This is a limit where
143 limit setting can be omitted. Limit is given as microvolt offset from
[all …]
/Linux-v5.15/lib/
Ddynamic_queue_limits.c17 /* Records completed count and recalculates the queue limit */
20 unsigned int inprogress, prev_inprogress, limit; in dql_completed() local
30 limit = dql->limit; in dql_completed()
31 ovlimit = POSDIFF(num_queued - dql->num_completed, limit); in dql_completed()
40 * - The queue was over-limit in the last interval, in dql_completed()
43 * - The queue was over-limit in the previous interval and in dql_completed()
49 * When queue is starved increase the limit by the amount in dql_completed()
51 * plus any previous over-limit. in dql_completed()
53 limit += POSDIFF(completed, dql->prev_num_queued) + in dql_completed()
59 * Queue was not starved, check if the limit can be decreased. in dql_completed()
[all …]
/Linux-v5.15/Documentation/hwmon/
Dina209.rst44 in0_max shunt voltage max alarm limit (mV)
45 in0_min shunt voltage min alarm limit (mV)
46 in0_crit_max shunt voltage crit max alarm limit (mV)
47 in0_crit_min shunt voltage crit min alarm limit (mV)
48 in0_max_alarm shunt voltage max alarm limit exceeded
49 in0_min_alarm shunt voltage min alarm limit exceeded
50 in0_crit_max_alarm shunt voltage crit max alarm limit exceeded
51 in0_crit_min_alarm shunt voltage crit min alarm limit exceeded
57 in1_max bus voltage max alarm limit (mV)
58 in1_min bus voltage min alarm limit (mV)
[all …]
Dadm9240.rst52 microprocessor-based systems, providing measurement and limit comparison
56 for limit comparisons can be programmed in over the same serial bus. The
58 analog channels to ensure a fast interrupt response to any out-of-limit
90 Temperature alarm is asserted once the temperature exceeds the high limit,
102 * User sets 0 to fan_min limit
108 * User sets fan_min limit too low
124 * User sets unreasonably high low fan speed limit
126 - resolution of the low speed limit may be reduced
187 0 +2.5 V_Error high or low limit exceeded
188 1 VCCP_Error high or low limit exceeded
[all …]
/Linux-v5.15/tools/testing/selftests/net/forwarding/
Dsch_red.sh57 rate 10Mbit burst 10K limit 1M
103 rate 10Mbit burst 10K limit 1M
256 local limit=$1; shift
260 # Build the below-the-limit backlog using UDP. We could use TCP just
262 # length is below the limit. The main stream is using TCP, and if the
263 # limit is misconfigured, we would see this traffic being ECN marked.
265 backlog=$(build_backlog $((2 * limit / 3)) udp)
268 check_err $? "backlog $backlog / $limit Got $pct% marked packets, expected == 0."
269 log_test "$name backlog < limit"
272 # backlog crosses the limit, and we want to make sure that the backlog
[all …]
/Linux-v5.15/fs/quota/
Dquotaio_v2.h40 __le32 dqb_ihardlimit; /* absolute limit on allocated inodes */
41 __le32 dqb_isoftlimit; /* preferred inode limit */
43 __le32 dqb_bhardlimit; /* absolute limit on disk space (in QUOTABLOCK_SIZE) */
44 __le32 dqb_bsoftlimit; /* preferred limit on disk space (in QUOTABLOCK_SIZE) */
46 __le64 dqb_btime; /* time limit for excessive disk use */
47 __le64 dqb_itime; /* time limit for excessive inode use */
53 __le64 dqb_ihardlimit; /* absolute limit on allocated inodes */
54 __le64 dqb_isoftlimit; /* preferred inode limit */
56 __le64 dqb_bhardlimit; /* absolute limit on disk space (in QUOTABLOCK_SIZE) */
57 __le64 dqb_bsoftlimit; /* preferred limit on disk space (in QUOTABLOCK_SIZE) */
[all …]
Dquotaio_v1.h11 * their soft limit, it is reset when they go below their soft limit.
22 __u32 dqb_bhardlimit; /* absolute limit on disk blks alloc */
23 __u32 dqb_bsoftlimit; /* preferred limit on disk blks */
25 __u32 dqb_ihardlimit; /* absolute limit on allocated inodes */
26 __u32 dqb_isoftlimit; /* preferred inode limit */
30 unsigned long dqb_btime; /* time limit for excessive disk use */
31 unsigned long dqb_itime; /* time limit for excessive inode use */
/Linux-v5.15/arch/x86/mm/
Damdtopology.c83 u64 base, limit; in amd_numa_init() local
86 limit = read_pci_config(0, nb, 1, 0x44 + i*8); in amd_numa_init()
88 nodeids[i] = nodeid = limit & 7; in amd_numa_init()
96 base, limit); in amd_numa_init()
100 if (!limit) { in amd_numa_init()
105 if ((base >> 8) & 3 || (limit >> 8) & 3) { in amd_numa_init()
107 nodeid, (base >> 8) & 3, (limit >> 8) & 3); in amd_numa_init()
116 limit >>= 16; in amd_numa_init()
117 limit++; in amd_numa_init()
118 limit <<= 24; in amd_numa_init()
[all …]
/Linux-v5.15/kernel/cgroup/
Dpids.c6 * after a certain limit is reached.
8 * Since it is trivial to hit the task limit without hitting any kmemcg limits
21 * To set a cgroup to have no limit, set pids.max to "max". This is the default
23 * stringent limit in the hierarchy is followed).
49 atomic64_t limit; member
54 /* Number of times fork failed because limit was hit. */
78 atomic64_set(&pids->limit, PIDS_MAX); in pids_css_alloc()
123 * This function does *not* follow the pid limit set. It cannot fail and the new
124 * pid count may exceed the limit. This is only used for reverting failed
125 * attaches, where there is no other way out than violating the limit.
[all …]
/Linux-v5.15/tools/testing/selftests/drivers/net/mlxsw/
Dsch_red_core.sh408 local limit=$1; shift
412 # Build the below-the-limit backlog using UDP. We could use TCP just
414 # length is below the limit. The main stream is using TCP, and if the
415 # limit is misconfigured, we would see this traffic being ECN marked.
417 backlog=$(build_backlog $vlan $((2 * limit / 3)) udp)
420 check_err $? "backlog $backlog / $limit Got $pct% marked packets, expected == 0."
421 log_test "TC $((vlan - 10)): $name backlog < limit"
424 # backlog crosses the limit, and we want to make sure that the backlog
425 # is above the limit.
427 backlog=$(build_backlog $vlan $((3 * limit / 2)) tcp tos=0x01)
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/power/supply/
Dgpio-charger.yaml42 charge-current-limit-gpios:
47 charge-current-limit-mapping:
50 current limit.
55 Current limit in uA
58 charge-current-limit-gpios property. Bit 1 second to last
70 - charge-current-limit-gpios
73 charge-current-limit-gpios: [ charge-current-limit-mapping ]
74 charge-current-limit-mapping: [ charge-current-limit-gpios ]
89 charge-current-limit-gpios = <&gpioA 11 GPIO_ACTIVE_HIGH>,
91 charge-current-limit-mapping = <2500000 0x00>, // 2.5 A => both GPIOs low
Dbq25980.yaml41 ti,sc-ovp-limit-microvolt:
43 Minimum input voltage limit in micro volts with a when the charger is in
49 ti,sc-ocp-limit-microamp:
51 Maximum input current limit in micro amps with a 100000 micro amp step.
55 ti,bypass-ovp-limit-microvolt:
57 Minimum input voltage limit in micro volts with a when the charger is in
62 ti,bypass-ocp-limit-microamp:
64 Maximum input current limit in micro amps with a 100000 micro amp step.
109 ti,sc-ocp-limit-microamp = <2000000>;
110 ti,sc-ovp-limit-microvolt = <17800000>;
/Linux-v5.15/net/sched/
Dsch_fifo.c22 if (likely(sch->qstats.backlog + qdisc_pkt_len(skb) <= sch->limit)) in bfifo_enqueue()
31 if (likely(sch->q.qlen < sch->limit)) in pfifo_enqueue()
42 if (likely(sch->q.qlen < sch->limit)) in pfifo_tail_enqueue()
46 /* queue full, remove one skb to fulfill the limit */ in pfifo_tail_enqueue()
103 u32 limit = qdisc_dev(sch)->tx_queue_len; in __fifo_init() local
106 limit *= psched_mtu(qdisc_dev(sch)); in __fifo_init()
108 sch->limit = limit; in __fifo_init()
115 sch->limit = ctl->limit; in __fifo_init()
119 bypass = sch->limit >= psched_mtu(qdisc_dev(sch)); in __fifo_init()
121 bypass = sch->limit >= 1; in __fifo_init()
[all …]
/Linux-v5.15/arch/powerpc/kernel/
Dpaca.c28 unsigned long limit, int cpu) in alloc_paca_data() argument
46 limit, nid); in alloc_paca_data()
60 static void *__init alloc_shared_lppaca(unsigned long size, unsigned long limit, in alloc_shared_lppaca() argument
81 limit, NUMA_NO_NODE); in alloc_shared_lppaca()
122 static struct lppaca * __init new_lppaca(int cpu, unsigned long limit) in new_lppaca() argument
132 lp = alloc_shared_lppaca(LPPACA_SIZE, limit, cpu); in new_lppaca()
134 lp = alloc_paca_data(LPPACA_SIZE, 0x400, limit, cpu); in new_lppaca()
151 static struct slb_shadow * __init new_slb_shadow(int cpu, unsigned long limit) in new_slb_shadow() argument
165 s = alloc_paca_data(sizeof(*s), L1_CACHE_BYTES, limit, cpu); in new_slb_shadow()
179 * @limit: Memory limit for this allocation
[all …]
/Linux-v5.15/tools/testing/selftests/tc-testing/tc-tests/qdiscs/
Dred.json15 …"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red limit 1M avpkt 1500 min 100K max 300K…
18 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb $",
38 …"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red adaptive limit 1M avpkt 1500 min 100K…
41 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb adaptive $",
61 …"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red ecn limit 1M avpkt 1500 min 100K max …
64 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb ecn $",
84 …"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red ecn adaptive limit 1M avpkt 1500 min …
87 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb ecn adaptive $",
107 …"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red ecn harddrop limit 1M avpkt 1500 min …
110 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb ecn harddrop $",
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/display/
Dintel_dpll.c359 const struct intel_limit *limit, in intel_pll_is_valid() argument
362 if (clock->n < limit->n.min || limit->n.max < clock->n) in intel_pll_is_valid()
364 if (clock->p1 < limit->p1.min || limit->p1.max < clock->p1) in intel_pll_is_valid()
366 if (clock->m2 < limit->m2.min || limit->m2.max < clock->m2) in intel_pll_is_valid()
368 if (clock->m1 < limit->m1.min || limit->m1.max < clock->m1) in intel_pll_is_valid()
376 if (clock->p < limit->p.min || limit->p.max < clock->p) in intel_pll_is_valid()
378 if (clock->m < limit->m.min || limit->m.max < clock->m) in intel_pll_is_valid()
382 if (clock->vco < limit->vco.min || limit->vco.max < clock->vco) in intel_pll_is_valid()
387 if (clock->dot < limit->dot.min || limit->dot.max < clock->dot) in intel_pll_is_valid()
394 i9xx_select_p2_div(const struct intel_limit *limit, in i9xx_select_p2_div() argument
[all …]
/Linux-v5.15/include/linux/
Ddynamic_queue_limits.h11 * 1) Objects are queued up to some limit specified as number of objects.
14 * 3) Starvation occurs when limit has been reached, all queued data has
19 * The goal of dql is to calculate the limit as the minimum number of objects
25 * on the object limit and how many objects are already enqueued
46 unsigned int adj_limit; /* limit + num_completed */
51 unsigned int limit ____cacheline_aligned_in_smp; /* Current limit */
54 unsigned int prev_ovlimit; /* Previous over limit */
62 unsigned int max_limit; /* Max limit */
63 unsigned int min_limit; /* Minimum limit */
91 /* Returns how many objects can be queued, < 0 indicates over limit. */
[all …]
/Linux-v5.15/fs/romfs/
Dstorage.c131 unsigned long pos, size_t limit) in romfs_blk_strnlen() argument
140 while (limit > 0) { in romfs_blk_strnlen()
142 segment = min_t(size_t, limit, ROMBSIZE - offset); in romfs_blk_strnlen()
151 limit -= segment; in romfs_blk_strnlen()
217 size_t limit; in romfs_dev_read() local
219 limit = romfs_maxsize(sb); in romfs_dev_read()
220 if (pos >= limit || buflen > limit - pos) in romfs_dev_read()
240 size_t limit; in romfs_dev_strnlen() local
242 limit = romfs_maxsize(sb); in romfs_dev_strnlen()
243 if (pos >= limit) in romfs_dev_strnlen()
[all …]
/Linux-v5.15/drivers/clk/bcm/
Dclk-kona-setup.c29 u32 limit; in ccu_data_offsets_valid() local
31 limit = ccu->range - sizeof(u32); in ccu_data_offsets_valid()
32 limit = round_down(limit, sizeof(u32)); in ccu_data_offsets_valid()
34 if (ccu_policy->enable.offset > limit) { in ccu_data_offsets_valid()
37 ccu->name, ccu_policy->enable.offset, limit); in ccu_data_offsets_valid()
40 if (ccu_policy->control.offset > limit) { in ccu_data_offsets_valid()
43 ccu->name, ccu_policy->control.offset, limit); in ccu_data_offsets_valid()
88 u32 limit; in peri_clk_data_offsets_valid() local
95 limit = range - sizeof(u32); in peri_clk_data_offsets_valid()
96 limit = round_down(limit, sizeof(u32)); in peri_clk_data_offsets_valid()
[all …]
/Linux-v5.15/net/wireless/
Dof.c30 struct ieee80211_freq_range *limit = &freq_limits[i]; in wiphy_freq_limits_valid_chan() local
32 if (cfg80211_does_bw_fit_range(limit, in wiphy_freq_limits_valid_chan()
91 prop = of_find_property(np, "ieee80211-freq-limit", &len); in wiphy_read_of_freq_limits()
96 dev_err(dev, "ieee80211-freq-limit wrong format"); in wiphy_read_of_freq_limits()
109 struct ieee80211_freq_range *limit = &freq_limits[i]; in wiphy_read_of_freq_limits() local
111 p = of_prop_next_u32(prop, p, &limit->start_freq_khz); in wiphy_read_of_freq_limits()
117 p = of_prop_next_u32(prop, p, &limit->end_freq_khz); in wiphy_read_of_freq_limits()
123 if (!limit->start_freq_khz || in wiphy_read_of_freq_limits()
124 !limit->end_freq_khz || in wiphy_read_of_freq_limits()
125 limit->start_freq_khz >= limit->end_freq_khz) { in wiphy_read_of_freq_limits()
/Linux-v5.15/Documentation/admin-guide/cgroup-v1/
Dhugetlb.rst24 …hugetlb.<hugepagesize>.rsvd.limit_in_bytes # set/show limit of "hugepagesize" hugetlb r…
27 ….failcnt # show the number of allocation failure due to HugeTLB reservation limit
28 …hugetlb.<hugepagesize>.limit_in_bytes # set/show limit of "hugepagesize" hugetlb f…
31 …>.failcnt # show the number of allocation failure due to HugeTLB usage limit
69 The HugeTLB controller allows users to limit the HugeTLB usage (page fault) per
70 control group and enforces the limit during page fault. Since HugeTLB
71 doesn't support page reclaim, enforcing the limit at page fault time implies
73 pages beyond its limit. Therefore the application needs to know exactly how many
86 The HugeTLB controller allows to limit the HugeTLB reservations per control
87 group and enforces the controller limit at reservation time and at the fault of
[all …]

12345678910>>...151