Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 25 of 1257) sorted by relevance

12345678910>>...51

/linux/net/netfilter/
A Dnft_limit.c35 tokens = limit->tokens + now - limit->last; in nft_limit_eval()
39 limit->last = now; in nft_limit_eval()
44 return limit->invert; in nft_limit_eval()
66 if (limit->rate == 0 || limit->nsecs < unit) in nft_limit_init()
75 if (limit->rate + limit->burst < limit->rate) in nft_limit_init()
79 tokens = div64_u64(limit->nsecs, limit->rate) * limit->burst; in nft_limit_init()
85 tokens = div64_u64(limit->nsecs * (limit->rate + limit->burst), in nft_limit_init()
86 limit->rate); in nft_limit_init()
90 limit->tokens_max = limit->tokens; in nft_limit_init()
158 priv->cost = div64_u64(priv->limit.nsecs, priv->limit.rate); in nft_limit_pkts_init()
[all …]
A Dnf_conntrack_sip.c252 if (++dptr >= limit) in ct_sip_parse_request()
315 if (++dptr >= limit) in sip_follow_continuation()
353 for (limit -= len; dptr < limit; dptr++) { in ct_sip_header_search()
547 limit = ct_sip_header_search(dptr + dataoff, limit, ",", strlen(",")); in ct_sip_parse_param()
548 if (!limit) in ct_sip_parse_param()
558 end = limit; in ct_sip_parse_param()
575 limit = ct_sip_header_search(dptr + dataoff, limit, ",", strlen(",")); in ct_sip_parse_address_param()
576 if (!limit) in ct_sip_parse_address_param()
603 limit = ct_sip_header_search(dptr + dataoff, limit, ",", strlen(",")); in ct_sip_parse_numerical_param()
604 if (!limit) in ct_sip_parse_numerical_param()
[all …]
/linux/arch/arm64/lib/
A Dmemcmp.S22 #define limit x2 macro
36 subs limit, limit, 8
44 subs limit, limit, 8
59 subs limit, limit, 16
64 cmp limit, 96
69 add limit, limit, tmp1
80 subs limit, limit, 16
119 adds limit, limit, 4
125 sub limit, limit, 4
127 adds limit, limit, 4
[all …]
A Dstrncmp.S26 #define limit x2 macro
48 cbz limit, L(ret0)
81 ands limit, limit, #7
84 lsl limit, limit, #3 /* Bits -> bytes. */
87 lsr mask, mask, limit
89 lsl mask, mask, limit
173 add limit, limit, count
183 cmp limit, #16
190 subs limit, limit, #1
205 sub limit, limit, count
[all …]
/linux/arch/x86/mm/
A Damdtopology.c83 u64 base, limit; in amd_numa_init() local
96 base, limit); in amd_numa_init()
100 if (!limit) { in amd_numa_init()
116 limit >>= 16; in amd_numa_init()
117 limit++; in amd_numa_init()
118 limit <<= 24; in amd_numa_init()
120 if (limit > end) in amd_numa_init()
121 limit = end; in amd_numa_init()
122 if (limit <= base) in amd_numa_init()
130 if (limit > end) in amd_numa_init()
[all …]
/linux/lib/
A Ddynamic_queue_limits.c20 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()
53 limit += POSDIFF(completed, dql->prev_num_queued) + in dql_completed()
82 slack = POSDIFF(limit + dql->prev_ovlimit, in dql_completed()
94 limit = POSDIFF(limit, dql->lowest_slack); in dql_completed()
101 limit = clamp(limit, dql->min_limit, dql->max_limit); in dql_completed()
103 if (limit != dql->limit) { in dql_completed()
104 dql->limit = limit; in dql_completed()
108 dql->adj_limit = limit + completed; in dql_completed()
[all …]
/linux/arch/powerpc/kernel/
A Dpaca.c28 unsigned long limit, int cpu) in alloc_paca_data() argument
46 limit, nid); in alloc_paca_data()
81 limit, NUMA_NO_NODE); in alloc_shared_lppaca()
132 lp = alloc_shared_lppaca(LPPACA_SIZE, limit, cpu); in new_lppaca()
189 limit = min_t(unsigned long, limit, RTAS_INSTANTIATE_MAX); in new_rtas_args()
195 limit, cpu); in new_rtas_args()
287 u64 limit; in allocate_paca() local
297 limit = min(ppc64_bolted_size(), ppc64_rma_size); in allocate_paca()
299 limit = ppc64_rma_size; in allocate_paca()
303 limit, cpu); in allocate_paca()
[all …]
/linux/drivers/clk/bcm/
A Dclk-kona-setup.c29 u32 limit; in ccu_data_offsets_valid() local
32 limit = round_down(limit, sizeof(u32)); 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()
110 if (gate->offset > limit) { in peri_clk_data_offsets_valid()
150 if (sel->offset > limit) { in peri_clk_data_offsets_valid()
184 if (bit_posn > limit) { in bit_posn_valid()
299 u32 limit; in sel_valid() local
311 if (max_sel > limit) { in sel_valid()
[all …]
/linux/drivers/gpu/drm/i915/display/
A Dintel_dpll.c365 if (clock->n < limit->n.min || limit->n.max < clock->n) in intel_pll_is_valid()
367 if (clock->p1 < limit->p1.min || limit->p1.max < clock->p1) in intel_pll_is_valid()
369 if (clock->m2 < limit->m2.min || limit->m2.max < clock->m2) in intel_pll_is_valid()
379 if (clock->p < limit->p.min || limit->p.max < clock->p) in intel_pll_is_valid()
381 if (clock->m < limit->m.min || limit->m.max < clock->m) in intel_pll_is_valid()
446 for (clock.m1 = limit->m1.min; clock.m1 <= limit->m1.max; in i9xx_find_best_dpll()
460 limit, in i9xx_find_best_dpll()
505 for (clock.m1 = limit->m1.min; clock.m1 <= limit->m1.max; in pnv_find_best_dpll()
517 limit, in pnv_find_best_dpll()
579 limit, in g4x_find_best_dpll()
[all …]
/linux/Documentation/hwmon/
A Dina209.rst44 in0_max shunt voltage max alarm limit (mV)
45 in0_min shunt voltage min alarm limit (mV)
57 in1_max bus voltage max alarm limit (mV)
58 in1_min bus voltage min alarm limit (mV)
59 in1_crit_max bus voltage crit max alarm limit (mV)
60 in1_crit_min bus voltage crit min alarm limit (mV)
61 in1_max_alarm bus voltage max alarm limit exceeded
69 power1_max power max alarm limit (uW)
70 power1_crit power crit alarm limit (uW)
71 power1_max_alarm power max alarm limit exceeded
[all …]
/linux/net/sched/
A Dsch_fifo.c31 if (likely(sch->q.qlen < sch->limit)) in pfifo_enqueue()
42 if (likely(sch->q.qlen < sch->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()
121 bypass = sch->limit >= 1; in __fifo_init()
157 struct tc_fifo_qopt opt = { .limit = sch->limit }; in __fifo_dump()
243 ((struct tc_fifo_qopt *)nla_data(nla))->limit = limit; in fifo_set_limit()
253 unsigned int limit, in fifo_create_dflt() argument
[all …]
/linux/fs/romfs/
A Dstorage.c140 while (limit > 0) { 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
243 if (pos >= limit) in romfs_dev_strnlen()
245 if (maxlen > limit - pos) in romfs_dev_strnlen()
246 maxlen = limit - pos; in romfs_dev_strnlen()
268 size_t limit; in romfs_dev_strcmp() local
[all …]
/linux/kernel/cgroup/
A Dpids.c49 atomic64_t limit; member
150 int64_t limit = atomic64_read(&p->limit); in pids_try_charge() local
157 if (new > limit) in pids_try_charge()
267 int64_t limit; in pids_max_write() local
272 limit = PIDS_MAX; in pids_max_write()
276 err = kstrtoll(buf, 0, &limit); in pids_max_write()
280 if (limit < 0 || limit >= PIDS_MAX) in pids_max_write()
288 atomic64_set(&pids->limit, limit); in pids_max_write()
296 int64_t limit = atomic64_read(&pids->limit); in pids_max_show() local
298 if (limit >= PIDS_MAX) in pids_max_show()
[all …]
/linux/Documentation/devicetree/bindings/regulator/
A Dregulator.yaml121 description: Set over current protection limit. This is a limit where
127 description: Set over current error limit. This is a limit where part of
133 description: Set over current warning limit. This is a limit where hardware
140 description: Set over voltage protection limit. This is a limit where
147 description: Set over voltage error limit. This is a limit where part of
154 description: Set over voltage warning limit. This is a limit where hardware
162 description: Set over under voltage protection limit. This is a limit where
169 description: Set under voltage error limit. This is a limit where part of
176 description: Set over under voltage warning limit. This is a limit where
184 description: Set over temperature protection limit. This is a limit where
[all …]
/linux/drivers/gpu/drm/gma500/
A Doaktrail_crtc.c103 limit = NULL; in mrst_limit()
107 return limit; in mrst_limit()
134 for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) { in mrst_sdvo_find_best_pll()
135 for (clock.n = limit->n.min; clock.n <= limit->n.max; in mrst_sdvo_find_best_pll()
137 for (clock.p1 = limit->p1.min; in mrst_sdvo_find_best_pll()
144 if (target_vco > limit->vco.max) in mrst_sdvo_find_best_pll()
191 for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) { in mrst_lvds_find_best_pll()
192 for (clock.p1 = limit->p1.min; clock.p1 <= limit->p1.max; in mrst_lvds_find_best_pll()
369 const struct gma_limit_t *limit; in oaktrail_crtc_mode_set() local
503 ok = limit->find_pll(limit, crtc, adjusted_mode->clock, in oaktrail_crtc_mode_set()
[all …]
A Dgma_display.c720 if (clock->p1 < limit->p1.min || limit->p1.max < clock->p1) in gma_pll_is_valid()
722 if (clock->p < limit->p.min || limit->p.max < clock->p) in gma_pll_is_valid()
724 if (clock->m2 < limit->m2.min || limit->m2.max < clock->m2) in gma_pll_is_valid()
726 if (clock->m1 < limit->m1.min || limit->m1.max < clock->m1) in gma_pll_is_valid()
731 if (clock->m < limit->m.min || limit->m.max < clock->m) in gma_pll_is_valid()
733 if (clock->n < limit->n.min || limit->n.max < clock->n) in gma_pll_is_valid()
735 if (clock->vco < limit->vco.min || limit->vco.max < clock->vco) in gma_pll_is_valid()
741 if (clock->dot < limit->dot.min || limit->dot.max < clock->dot) in gma_pll_is_valid()
780 for (clock.m1 = limit->m1.min; clock.m1 <= limit->m1.max; clock.m1++) { in gma_find_best_pll()
784 for (clock.n = limit->n.min; in gma_find_best_pll()
[all …]
/linux/drivers/gpu/drm/amd/pm/powerplay/
A Dkv_smc.c78 u32 smc_address, u32 limit) in kv_set_smc_sram_address() argument
82 if ((smc_address + 3) > limit) in kv_set_smc_sram_address()
93 u32 *value, u32 limit) in amdgpu_kv_read_smc_sram_dword() argument
97 ret = kv_set_smc_sram_address(adev, smc_address, limit); in amdgpu_kv_read_smc_sram_dword()
123 const u8 *src, u32 byte_count, u32 limit) in amdgpu_kv_copy_bytes_to_smc() argument
128 if ((smc_start_address + byte_count) > limit) in amdgpu_kv_copy_bytes_to_smc()
138 ret = kv_set_smc_sram_address(adev, addr, limit); in amdgpu_kv_copy_bytes_to_smc()
164 ret = kv_set_smc_sram_address(adev, addr, limit); in amdgpu_kv_copy_bytes_to_smc()
177 ret = kv_set_smc_sram_address(adev, addr, limit); in amdgpu_kv_copy_bytes_to_smc()
192 ret = kv_set_smc_sram_address(adev, addr, limit); in amdgpu_kv_copy_bytes_to_smc()
[all …]
A Dsi_smc.c34 u32 smc_address, u32 limit) in si_set_smc_sram_address() argument
38 if ((smc_address + 3) > limit) in si_set_smc_sram_address()
49 const u8 *src, u32 byte_count, u32 limit) in amdgpu_si_copy_bytes_to_smc() argument
57 if ((smc_start_address + byte_count) > limit) in amdgpu_si_copy_bytes_to_smc()
67 ret = si_set_smc_sram_address(adev, addr, limit); in amdgpu_si_copy_bytes_to_smc()
82 ret = si_set_smc_sram_address(adev, addr, limit); in amdgpu_si_copy_bytes_to_smc()
98 ret = si_set_smc_sram_address(adev, addr, limit); in amdgpu_si_copy_bytes_to_smc()
246 u32 *value, u32 limit) in amdgpu_si_read_smc_sram_dword() argument
252 ret = si_set_smc_sram_address(adev, smc_address, limit); in amdgpu_si_read_smc_sram_dword()
261 u32 value, u32 limit) in amdgpu_si_write_smc_sram_dword() argument
[all …]
/linux/drivers/gpu/drm/radeon/
A Dkv_smc.c75 u32 smc_address, u32 limit) in kv_set_smc_sram_address() argument
79 if ((smc_address + 3) > limit) in kv_set_smc_sram_address()
89 u32 *value, u32 limit) in kv_read_smc_sram_dword() argument
93 ret = kv_set_smc_sram_address(rdev, smc_address, limit); in kv_read_smc_sram_dword()
119 const u8 *src, u32 byte_count, u32 limit) in kv_copy_bytes_to_smc() argument
124 if ((smc_start_address + byte_count) > limit) in kv_copy_bytes_to_smc()
134 ret = kv_set_smc_sram_address(rdev, addr, limit); in kv_copy_bytes_to_smc()
160 ret = kv_set_smc_sram_address(rdev, addr, limit); in kv_copy_bytes_to_smc()
173 ret = kv_set_smc_sram_address(rdev, addr, limit); in kv_copy_bytes_to_smc()
188 ret = kv_set_smc_sram_address(rdev, addr, limit); in kv_copy_bytes_to_smc()
[all …]
A Drv770_smc.c278 u16 smc_address, u16 limit) in rv770_set_smc_sram_address() argument
284 if ((smc_address + 3) > limit) in rv770_set_smc_sram_address()
297 u16 byte_count, u16 limit) in rv770_copy_bytes_to_smc() argument
306 if ((smc_start_address + byte_count) > limit) in rv770_copy_bytes_to_smc()
473 for (i = 0; i < limit; i += 4) { in rv770_clear_smc_sram()
474 rv770_set_smc_sram_address(rdev, i, limit); in rv770_clear_smc_sram()
481 u16 limit) in rv770_load_smc_ucode() argument
494 rv770_clear_smc_sram(rdev, limit); in rv770_load_smc_ucode()
590 ucode_data, ucode_size, limit); in rv770_load_smc_ucode()
604 u16 smc_address, u32 *value, u16 limit) in rv770_read_smc_sram_dword() argument
[all …]
A Dci_smc.c34 u32 smc_address, u32 limit) in ci_set_smc_sram_address() argument
38 if ((smc_address + 3) > limit) in ci_set_smc_sram_address()
49 const u8 *src, u32 byte_count, u32 limit) in ci_copy_bytes_to_smc() argument
59 if ((smc_start_address + byte_count) > limit) in ci_copy_bytes_to_smc()
69 ret = ci_set_smc_sram_address(rdev, addr, limit); in ci_copy_bytes_to_smc()
84 ret = ci_set_smc_sram_address(rdev, addr, limit); in ci_copy_bytes_to_smc()
101 ret = ci_set_smc_sram_address(rdev, addr, limit); in ci_copy_bytes_to_smc()
247 u32 smc_address, u32 *value, u32 limit) in ci_read_smc_sram_dword() argument
253 ret = ci_set_smc_sram_address(rdev, smc_address, limit); in ci_read_smc_sram_dword()
262 u32 smc_address, u32 value, u32 limit) in ci_write_smc_sram_dword() argument
[all …]
/linux/Documentation/devicetree/bindings/power/supply/
A 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
/linux/fs/xfs/
A Dxfs_qm_bhv.c24 uint64_t limit; in xfs_fill_statvfs_from_dquot() local
26 limit = dqp->q_blk.softlimit ? in xfs_fill_statvfs_from_dquot()
29 if (limit && statp->f_blocks > limit) { in xfs_fill_statvfs_from_dquot()
30 statp->f_blocks = limit; in xfs_fill_statvfs_from_dquot()
36 limit = dqp->q_ino.softlimit ? in xfs_fill_statvfs_from_dquot()
39 if (limit && statp->f_files > limit) { in xfs_fill_statvfs_from_dquot()
40 statp->f_files = limit; in xfs_fill_statvfs_from_dquot()
/linux/net/wireless/
A 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()
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/tools/testing/selftests/x86/
A Dldt_gdt.c72 : [limit] "=r" (limit), [has_limit] "+rm" (has_limit) in check_invalid_segment()
102 : [limit] "=r" (limit), [has_limit] "+rm" (has_limit) in check_valid_segment()
169 uint32_t limit = desc.limit; in install_valid_mode() local
171 limit = (limit << 12) + 4095; in install_valid_mode()
249 .limit = 10, in do_simple_tests()
359 desc.limit = i; in do_simple_tests()
395 desc.limit = 1; in do_simple_tests()
398 desc.limit = 0; in do_simple_tests()
408 desc.limit = 0xfffff; in do_simple_tests()
423 desc.limit = 0; in do_simple_tests()
[all …]

Completed in 114 milliseconds

12345678910>>...51