Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 200 of 921) sorted by relevance

12345

/linux-4.4.14/net/netfilter/
Dnft_limit.c31 static inline bool nft_limit_eval(struct nft_limit *limit, u64 cost) in nft_limit_eval() argument
38 tokens = limit->tokens + now - limit->last; in nft_limit_eval()
39 if (tokens > limit->tokens_max) in nft_limit_eval()
40 tokens = limit->tokens_max; in nft_limit_eval()
42 limit->last = now; in nft_limit_eval()
45 limit->tokens = delta; in nft_limit_eval()
49 limit->tokens = tokens; in nft_limit_eval()
54 static int nft_limit_init(struct nft_limit *limit, in nft_limit_init() argument
63 limit->rate = be64_to_cpu(nla_get_be64(tb[NFTA_LIMIT_RATE])); in nft_limit_init()
65 limit->nsecs = unit * NSEC_PER_SEC; in nft_limit_init()
[all …]
Dnf_conntrack_sip.c59 const char *limit, int *shift) in string_len() argument
63 while (dptr < limit && isalpha(*dptr)) { in string_len()
71 const char *limit, int *shift) in digits_len() argument
74 while (dptr < limit && isdigit(*dptr)) { in digits_len()
91 static int word_len(const char *dptr, const char *limit) in word_len() argument
94 while (dptr < limit && iswordc(*dptr)) { in word_len()
102 const char *limit, int *shift) in callid_len() argument
106 len = word_len(dptr, limit); in callid_len()
108 if (!len || dptr == limit || *dptr != '@') in callid_len()
113 domain_len = word_len(dptr, limit); in callid_len()
[all …]
/linux-4.4.14/arch/x86/mm/
Damdtopology.c99 u64 base, limit; in amd_numa_init() local
102 limit = read_pci_config(0, nb, 1, 0x44 + i*8); in amd_numa_init()
104 nodeids[i] = nodeid = limit & 7; in amd_numa_init()
112 base, limit); in amd_numa_init()
116 if (!limit) { in amd_numa_init()
121 if ((base >> 8) & 3 || (limit >> 8) & 3) { in amd_numa_init()
123 nodeid, (base >> 8) & 3, (limit >> 8) & 3); in amd_numa_init()
132 limit >>= 16; in amd_numa_init()
133 limit++; in amd_numa_init()
134 limit <<= 24; in amd_numa_init()
[all …]
Dnuma_emulation.c129 u64 start, limit, end; in split_nodes_interleave() local
138 limit = pi->blk[phys_blk].end; in split_nodes_interleave()
150 if (end > limit) { in split_nodes_interleave()
151 end = limit; in split_nodes_interleave()
170 if (limit - end - mem_hole_size(end, limit) < size) in split_nodes_interleave()
171 end = limit; in split_nodes_interleave()
175 min(end, limit) - start); in split_nodes_interleave()
244 u64 start, limit, end; in split_nodes_size_interleave() local
253 limit = pi->blk[phys_blk].end; in split_nodes_size_interleave()
255 end = find_end_of_node(start, limit, size); in split_nodes_size_interleave()
[all …]
/linux-4.4.14/lib/
Ddynamic_queue_limits.c19 unsigned int inprogress, prev_inprogress, limit; in dql_completed() local
29 limit = dql->limit; in dql_completed()
30 ovlimit = POSDIFF(num_queued - dql->num_completed, limit); in dql_completed()
52 limit += POSDIFF(completed, dql->prev_num_queued) + in dql_completed()
81 slack = POSDIFF(limit + dql->prev_ovlimit, in dql_completed()
93 limit = POSDIFF(limit, dql->lowest_slack); in dql_completed()
100 limit = clamp(limit, dql->min_limit, dql->max_limit); in dql_completed()
102 if (limit != dql->limit) { in dql_completed()
103 dql->limit = limit; in dql_completed()
107 dql->adj_limit = limit + completed; in dql_completed()
[all …]
Diommu-common.c105 unsigned long n, end, start, limit, boundary_size; in iommu_tbl_range_alloc() local
142 limit = pool->end; in iommu_tbl_range_alloc()
150 if (start >= limit) in iommu_tbl_range_alloc()
153 if (limit + shift > mask) { in iommu_tbl_range_alloc()
154 limit = mask - shift + 1; in iommu_tbl_range_alloc()
159 if ((start & mask) >= limit || pass > 0) { in iommu_tbl_range_alloc()
185 n = iommu_area_alloc(iommu->map, limit, start, npages, shift, in iommu_tbl_range_alloc()
Ddecompress_bunzip2.c83 int limit[MAX_HUFCODE_BITS+1]; member
159 int *limit = NULL; in get_next_block() local
303 limit = hufGroup->limit-1; in get_next_block()
308 temp[i] = limit[i] = 0; in get_next_block()
335 limit[i] = (pp << (maxLen - i)) - 1; in get_next_block()
339 limit[maxLen+1] = INT_MAX; /* Sentinal value for in get_next_block()
341 limit[maxLen] = pp+temp[maxLen]-1; in get_next_block()
365 limit = hufGroup->limit-1; in get_next_block()
395 while (j > limit[i]) in get_next_block()
Ducs2_string.c86 unsigned long limit = ucs2_strnlen(src, maxlength); in ucs2_as_utf8() local
88 for (i = 0; maxlength && i < limit; i++) { in ucs2_as_utf8()
/linux-4.4.14/arch/arm64/lib/
Dmemcmp.S43 limit .req x2 label
62 cbz limit, .Lret0
68 sub limit_wd, limit, #1 /* limit != 0, so no underflow. */
87 ands limit, limit, #7
93 lsl limit, limit, #3 /* bytes-> bits. */
95 CPU_BE( lsr mask, mask, limit )
96 CPU_LE( lsl mask, mask, limit )
117 sub limit_wd, limit, #1/*limit != 0, so no underflow.*/
122 add limit, limit, tmp1/* Adjust the limit for the extra. */
138 cmp limit, #8
[all …]
Dstrncmp.S47 limit .req x2 label
68 cbz limit, .Lret0
80 sub limit_wd, limit, #1 /* limit != 0, so no underflow. */
105 ands limit, limit, #7
108 lsl limit, limit, #3 /* Bits -> bytes. */
110 CPU_BE( lsr mask, mask, limit )
111 CPU_LE( lsl mask, mask, limit )
136 sub limit_wd, limit, #1 /* limit != 0, so no underflow. */
145 add limit, limit, tmp1
154 cmp limit, #8
[all …]
Dstrnlen.S41 limit .req x1 label
63 cbz limit, .Lhit_limit
69 sub limit_wd, limit, #1 /* Limit != 0, so no underflow. */
126 cmp len, limit
127 csel len, len, limit, ls /* Return the lower value. */
143 sub limit_wd, limit, #1
169 mov len, limit
/linux-4.4.14/net/sched/
Dsch_fifo.c24 if (likely(sch->qstats.backlog + qdisc_pkt_len(skb) <= sch->limit)) in bfifo_enqueue()
32 if (likely(skb_queue_len(&sch->q) < sch->limit)) in pfifo_enqueue()
40 if (likely(skb_queue_len(&sch->q) < sch->limit)) in pfifo_tail_enqueue()
57 u32 limit = qdisc_dev(sch)->tx_queue_len; in fifo_init() local
60 limit *= psched_mtu(qdisc_dev(sch)); in fifo_init()
62 sch->limit = limit; in fifo_init()
69 sch->limit = ctl->limit; in fifo_init()
73 bypass = sch->limit >= psched_mtu(qdisc_dev(sch)); in fifo_init()
75 bypass = sch->limit >= 1; in fifo_init()
86 struct tc_fifo_qopt opt = { .limit = sch->limit }; in fifo_dump()
[all …]
Dsch_plug.c68 u32 limit; member
93 if (likely(sch->qstats.backlog + skb->len <= q->limit)) { in plug_enqueue()
133 q->limit = qdisc_dev(sch)->tx_queue_len in plug_init()
141 q->limit = ctl->limit; in plug_init()
198 q->limit = msg->limit; in plug_change()
Dsch_gred.c36 u32 limit; /* HARD maximal queue length */ member
169 sch->limit)) in gred_enqueue()
233 if (gred_backlog(t, q, sch) + qdisc_pkt_len(skb) <= q->limit) { in gred_enqueue()
401 if (ctl->limit > sch->limit) in gred_change_vq()
402 q->limit = sch->limit; in gred_change_vq()
404 q->limit = ctl->limit; in gred_change_vq()
443 sch->limit = nla_get_u32(tb[TCA_GRED_LIMIT]); in gred_change()
514 sch->limit = nla_get_u32(tb[TCA_GRED_LIMIT]); in gred_init()
516 sch->limit = qdisc_dev(sch)->tx_queue_len in gred_init()
549 if (nla_put_u32(skb, TCA_GRED_LIMIT, sch->limit)) in gred_dump()
[all …]
Dsch_sfb.c64 u32 limit; /* HARD maximal queue length */ member
291 if (unlikely(sch->q.qlen >= q->limit)) { in sfb_enqueue()
298 unsigned long limit = q->rehash_time + q->rehash_interval; in sfb_enqueue() local
300 if (unlikely(time_after(jiffies, limit))) { in sfb_enqueue()
304 time_after(jiffies, limit - q->warmup_time))) { in sfb_enqueue()
474 .limit = 0,
489 u32 limit; in sfb_change() local
503 limit = ctl->limit; in sfb_change()
504 if (limit == 0) in sfb_change()
505 limit = qdisc_dev(sch)->tx_queue_len; in sfb_change()
[all …]
Dsch_pie.c43 u32 limit; /* number of packets that can be enqueued */ member
84 params->limit = 1000; /* default of 1000 packets */ in pie_params_init()
142 if (unlikely(qdisc_qlen(sch) >= sch->limit)) { in pie_qdisc_enqueue()
212 u32 limit = nla_get_u32(tb[TCA_PIE_LIMIT]); in pie_change() local
214 q->params.limit = limit; in pie_change()
215 sch->limit = limit; in pie_change()
232 while (sch->q.qlen > sch->limit) { in pie_change()
446 sch->limit = q->params.limit; in pie_init()
474 nla_put_u32(skb, TCA_PIE_LIMIT, sch->limit) || in pie_dump()
Dsch_codel.c99 if (likely(qdisc_qlen(sch) < sch->limit)) { in codel_qdisc_enqueue()
151 sch->limit = nla_get_u32(tb[TCA_CODEL_LIMIT]); in codel_change()
157 while (sch->q.qlen > sch->limit) { in codel_change()
174 sch->limit = DEFAULT_CODEL_LIMIT; in codel_init()
187 if (sch->limit >= 1) in codel_init()
207 sch->limit) || in codel_dump()
Dsch_red.c40 u32 limit; /* HARD maximal queue length */ member
203 if (ctl->limit > 0) { in red_change()
204 child = fifo_create_dflt(sch, &bfifo_qdisc_ops, ctl->limit); in red_change()
211 q->limit = ctl->limit; in red_change()
263 .limit = q->limit, in red_dump()
Dsch_tbf.c103 u32 limit; /* Maximal length of backlog: bytes */ member
391 err = fifo_set_limit(q->qdisc, qopt->limit); in tbf_change()
394 } else if (qopt->limit > 0) { in tbf_change()
395 child = fifo_create_dflt(sch, &bfifo_qdisc_ops, qopt->limit); in tbf_change()
409 q->limit = qopt->limit; in tbf_change()
464 opt.limit = q->limit; in tbf_dump()
Dsch_choke.c53 u32 limit; member
325 if (sch->q.qlen < q->limit) { in choke_enqueue()
441 if (ctl->limit > CHOKE_MAX_QUEUE) in choke_change()
444 mask = roundup_pow_of_two(ctl->limit + 1) - 1; in choke_change()
487 q->limit = ctl->limit; in choke_change()
513 .limit = q->limit, in choke_dump()
Dsch_sfq.c118 int limit; /* limit of total number of packets in this qdisc */ member
460 if (++sch->q.qlen <= q->limit) in sfq_enqueue()
665 if (ctl->limit) { in sfq_change()
666 q->limit = min_t(u32, ctl->limit, q->maxdepth * q->maxflows); in sfq_change()
667 q->maxflows = min_t(u32, q->maxflows, q->limit); in sfq_change()
671 while (sch->q.qlen > q->limit) in sfq_change()
725 q->limit = SFQ_MAX_DEPTH; in sfq_init()
755 if (q->limit >= 1) in sfq_init()
772 opt.v0.limit = q->limit; in sfq_dump()
/linux-4.4.14/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_hwtstamp.c56 int limit; in stmmac_init_systime() local
67 limit = 10; in stmmac_init_systime()
68 while (limit--) { in stmmac_init_systime()
73 if (limit < 0) in stmmac_init_systime()
82 int limit; in stmmac_config_addend() local
91 limit = 10; in stmmac_config_addend()
92 while (limit--) { in stmmac_config_addend()
97 if (limit < 0) in stmmac_config_addend()
107 int limit; in stmmac_adjust_systime() local
118 limit = 10; in stmmac_adjust_systime()
[all …]
Ddwmac100_dma.c39 int limit; in dwmac100_dma_init() local
44 limit = 10; in dwmac100_dma_init()
45 while (limit--) { in dwmac100_dma_init()
50 if (limit < 0) in dwmac100_dma_init()
Ddwmac1000_dma.c37 int limit; in dwmac1000_dma_init() local
42 limit = 10; in dwmac1000_dma_init()
43 while (limit--) { in dwmac1000_dma_init()
48 if (limit < 0) in dwmac1000_dma_init()
/linux-4.4.14/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-4.4.14/Documentation/hwmon/
Dina20939 in0_max shunt voltage max alarm limit (mV)
40 in0_min shunt voltage min alarm limit (mV)
41 in0_crit_max shunt voltage crit max alarm limit (mV)
42 in0_crit_min shunt voltage crit min alarm limit (mV)
43 in0_max_alarm shunt voltage max alarm limit exceeded
44 in0_min_alarm shunt voltage min alarm limit exceeded
45 in0_crit_max_alarm shunt voltage crit max alarm limit exceeded
46 in0_crit_min_alarm shunt voltage crit min alarm limit exceeded
52 in1_max bus voltage max alarm limit (mV)
53 in1_min bus voltage min alarm limit (mV)
[all …]
Dadm924039 microprocessor-based systems, providing measurement and limit comparison
43 for limit comparisons can be programmed in over the same serial bus. The
45 analog channels to ensure a fast interrupt response to any out-of-limit
77 Temperature alarm is asserted once the temperature exceeds the high limit,
89 * User sets 0 to fan_min limit
94 * User sets fan_min limit too low
108 * User sets unreasonably high low fan speed limit
109 - resolution of the low speed limit may be reduced
164 0 +2.5 V_Error high or low limit exceeded
165 1 VCCP_Error high or low limit exceeded
[all …]
Dlm7719 and lower limit values.
25 the limit and its hysteresis is always the same for all 3 limits.
28 * When setting a limit, its hysteresis will automatically follow, the
29 difference staying unchanged. For example, if the old critical limit
31 the critical limit to 90 degrees C, then the hysteresis will
Dadm102638 an analog output and a PWM output along with limit, alarm and mask bits for
43 limit. If the limit is exceeded, an interrupt (#SMBALERT) can be
45 limits for each sensor. If this limit is exceeded, the #THERM output will
50 in counts of a 22.5kHz internal clock. Each fan has a high limit which
51 corresponds to a minimum fan speed. If the limit is exceeded, an interrupt
58 crossed a programmable minimum or maximum limit. Note that minimum in this
82 register. Then set the low temperature limit in the tmin values for each
Dmax1606552 MAX16066, MAX16070, and MAX16071 support an additional limit which is
53 configurable as either low or high secondary limit. MAX16065, MAX16066,
82 in[0-11]_min Low warning limit.
86 in[0-11]_max High warning limit.
93 in[0-11]_lcrit Low critical limit.
95 in[0-11]_crit High critical limit.
Demc140345 difference between the limit and its hysteresis is always the same for
49 * When setting a limit, its hysteresis will automatically follow, the
50 difference staying unchanged. For example, if the old critical limit
52 the critical limit to 90 degrees C, then the hysteresis will
Dgl518sm37 temperature is above the over temperature limit, and has not yet dropped
38 below the hysteresis limit. The alarm always reflects the current
43 triggered if the rotation speed has dropped below a programmable limit. In
53 maximum limit. Note that minimum in this case always means 'closest to
58 reading the current voltage of any input except for VIN3; limit setting and
Dw83792d59 triggered if the rotation speed has dropped below a programmable limit. Fan
65 or maximum limit.
140 exceeds the high limit (T+tolerance), the fan will be turned on with a
144 (1) If the temperature still exceeds the high limit, PWM duty
147 (2) If the temperature goes below the high limit, but still above the low
148 limit (T-tolerance), the fan speed will be fixed at the current speed because
151 (3) If the temperature goes below the low limit, PWM duty cycle will decrease
153 limit. (The preset stop value handling is not yet implemented in driver)
Dlm8734 and low alarm settings. A high limit produces an alarm when the value
36 the low limit.
39 triggered if the rotation speed has dropped below a programmable limit. Fan
47 minimum or maximum limit. Note that minimum in this case always means
Dadm103132 limit.
35 two. Each fan channel has its own low speed limit.
Dlm6335 - No low limit for local temperature.
36 - No critical limit for local temperature.
37 - Critical limit for remote temperature can be changed only once. We
38 will consider that the critical limit is read-only.
Dadt741122 loses 2 inputs then). There are high- and low-limit registers for all inputs.
42 SPI, external temperature sensor and limit registers are not supported yet.
Dmenf21bmc43 in[0-4]_min Minimum voltage limit
44 in[0-4]_max Maximum voltage limit
/linux-4.4.14/fs/romfs/
Dstorage.c135 unsigned long pos, size_t limit) in romfs_blk_strnlen() argument
144 while (limit > 0) { in romfs_blk_strnlen()
146 segment = min_t(size_t, limit, ROMBSIZE - offset); in romfs_blk_strnlen()
155 limit -= segment; in romfs_blk_strnlen()
221 size_t limit; in romfs_dev_read() local
223 limit = romfs_maxsize(sb); in romfs_dev_read()
224 if (pos >= limit) in romfs_dev_read()
226 if (buflen > limit - pos) in romfs_dev_read()
227 buflen = limit - pos; in romfs_dev_read()
246 size_t limit; in romfs_dev_strnlen() local
[all …]
/linux-4.4.14/arch/powerpc/kernel/
Dpaca.c49 static void __init allocate_lppacas(int nr_cpus, unsigned long limit) in allocate_lppacas() argument
57 PAGE_SIZE, limit)); in allocate_lppacas()
91 static inline void allocate_lppacas(int nr_cpus, unsigned long limit) { } in allocate_lppacas() argument
107 static void __init allocate_slb_shadows(int nr_cpus, int limit) in allocate_slb_shadows() argument
110 slb_shadow = __va(memblock_alloc_base(size, PAGE_SIZE, limit)); in allocate_slb_shadows()
134 static void __init allocate_slb_shadows(int nr_cpus, int limit) { } in allocate_slb_shadows() argument
207 u64 limit; in allocate_pacas() local
210 limit = ppc64_rma_size; in allocate_pacas()
218 limit = min(0x10000000ULL, limit); in allocate_pacas()
223 paca = __va(memblock_alloc_base(paca_size, PAGE_SIZE, limit)); in allocate_pacas()
[all …]
Dsetup_64.c607 u64 limit = safe_stack_limit(); in irqstack_early_init() local
617 THREAD_SIZE, limit)); in irqstack_early_init()
620 THREAD_SIZE, limit)); in irqstack_early_init()
658 u64 limit; in emergency_stack_init() local
670 limit = min(safe_stack_limit(), ppc64_rma_size); in emergency_stack_init()
674 sp = memblock_alloc_base(THREAD_SIZE, THREAD_SIZE, limit); in emergency_stack_init()
680 sp = memblock_alloc_base(THREAD_SIZE, THREAD_SIZE, limit); in emergency_stack_init()
/linux-4.4.14/mm/
Dnobootmem.c36 u64 goal, u64 limit) in __alloc_memory_core_early() argument
42 if (limit > memblock.current_limit) in __alloc_memory_core_early()
43 limit = memblock.current_limit; in __alloc_memory_core_early()
46 addr = memblock_find_in_range_node(size, align, goal, limit, nid, in __alloc_memory_core_early()
237 unsigned long limit) in ___alloc_bootmem_nopanic() argument
246 ptr = __alloc_memory_core_early(NUMA_NO_NODE, size, align, goal, limit); in ___alloc_bootmem_nopanic()
275 unsigned long limit = -1UL; in __alloc_bootmem_nopanic() local
277 return ___alloc_bootmem_nopanic(size, align, goal, limit); in __alloc_bootmem_nopanic()
281 unsigned long goal, unsigned long limit) in ___alloc_bootmem() argument
283 void *mem = ___alloc_bootmem_nopanic(size, align, goal, limit); in ___alloc_bootmem()
[all …]
Dbootmem.c502 unsigned long goal, unsigned long limit) in alloc_bootmem_bdata() argument
509 align, goal, limit); in alloc_bootmem_bdata()
513 BUG_ON(limit && goal + size > limit); in alloc_bootmem_bdata()
522 limit >>= PAGE_SHIFT; in alloc_bootmem_bdata()
524 if (limit && max > limit) in alloc_bootmem_bdata()
525 max = limit; in alloc_bootmem_bdata()
610 unsigned long limit) in alloc_bootmem_core() argument
621 if (limit && bdata->node_min_pfn >= PFN_DOWN(limit)) in alloc_bootmem_core()
624 region = alloc_bootmem_bdata(bdata, size, align, goal, limit); in alloc_bootmem_core()
635 unsigned long limit) in ___alloc_bootmem_nopanic() argument
[all …]
Dpage_counter.c85 if (new > c->limit) { in page_counter_try_charge()
134 int page_counter_limit(struct page_counter *counter, unsigned long limit) in page_counter_limit() argument
153 if (count > limit) in page_counter_limit()
156 old = xchg(&counter->limit, limit); in page_counter_limit()
161 counter->limit = old; in page_counter_limit()
Dcma.c229 phys_addr_t size, phys_addr_t limit, in cma_declare_contiguous() argument
250 __func__, &size, &base, &limit, &alignment); in cma_declare_contiguous()
273 limit &= ~(alignment - 1); in cma_declare_contiguous()
298 if (limit == 0 || limit > memblock_end) in cma_declare_contiguous()
299 limit = memblock_end; in cma_declare_contiguous()
317 if (base < highmem_start && limit > highmem_start) { in cma_declare_contiguous()
319 highmem_start, limit, in cma_declare_contiguous()
321 limit = highmem_start; in cma_declare_contiguous()
326 limit, in cma_declare_contiguous()
Dslab.c191 unsigned int limit; member
463 .limit = BOOT_CPUCACHE_ENTRIES,
661 static void init_arraycache(struct array_cache *ac, int limit, int batch) in init_arraycache() argument
673 ac->limit = limit; in init_arraycache()
816 int nr = min3(from->avail, max, to->limit - to->avail); in transfer_objects()
835 int limit, gfp_t gfp) in alloc_alien_cache() argument
883 static struct alien_cache **alloc_alien_cache(int node, int limit, gfp_t gfp) in alloc_alien_cache() argument
889 if (limit > 1) in alloc_alien_cache()
890 limit = 12; in alloc_alien_cache()
898 alc_ptr[i] = __alloc_alien_cache(node, limit, 0xbaadf00d, gfp); in alloc_alien_cache()
[all …]
Dmemcontrol.c1180 unsigned long limit; in mem_cgroup_margin() local
1183 limit = READ_ONCE(memcg->memory.limit); in mem_cgroup_margin()
1184 if (count < limit) in mem_cgroup_margin()
1185 margin = limit - count; in mem_cgroup_margin()
1189 limit = READ_ONCE(memcg->memsw.limit); in mem_cgroup_margin()
1190 if (count <= limit) in mem_cgroup_margin()
1191 margin = min(margin, limit - count); in mem_cgroup_margin()
1276 K((u64)memcg->memory.limit), memcg->memory.failcnt); in mem_cgroup_print_oom_info()
1279 K((u64)memcg->memsw.limit), memcg->memsw.failcnt); in mem_cgroup_print_oom_info()
1282 K((u64)memcg->kmem.limit), memcg->kmem.failcnt); in mem_cgroup_print_oom_info()
[all …]
Dpage-writeback.c464 unsigned long limit = zone_dirty_limit(zone); in zone_dirty_ok() local
468 zone_page_state(zone, NR_WRITEBACK) <= limit; in zone_dirty_ok()
773 unsigned long limit) in pos_ratio_polynom() argument
779 (limit - setpoint) | 1); in pos_ratio_polynom()
868 unsigned long limit = hard_dirty_limit(dtc_dom(dtc), dtc->thresh); in wb_position_ratio() local
879 if (unlikely(dtc->dirty >= limit)) in wb_position_ratio()
887 setpoint = (freerun + limit) / 2; in wb_position_ratio()
888 pos_ratio = pos_ratio_polynom(setpoint, dtc->dirty, limit); in wb_position_ratio()
1001 wb_thresh = max(wb_thresh, (limit - dtc->dirty) / 8); in wb_position_ratio()
1096 unsigned long limit = dom->dirty_limit; in update_dirty_limit() local
[all …]
/linux-4.4.14/kernel/
Dcgroup_pids.c51 int64_t limit; member
73 pids->limit = PIDS_MAX; in pids_css_alloc()
151 if (new > p->limit) in pids_try_charge()
244 int64_t limit; in pids_max_write() local
249 limit = PIDS_MAX; in pids_max_write()
253 err = kstrtoll(buf, 0, &limit); in pids_max_write()
257 if (limit < 0 || limit >= PIDS_MAX) in pids_max_write()
265 pids->limit = limit; in pids_max_write()
273 int64_t limit = pids->limit; in pids_max_show() local
275 if (limit >= PIDS_MAX) in pids_max_show()
[all …]
/linux-4.4.14/drivers/gpu/drm/radeon/
Dkv_smc.c76 u32 smc_address, u32 limit) in kv_set_smc_sram_address() argument
80 if ((smc_address + 3) > limit) in kv_set_smc_sram_address()
90 u32 *value, u32 limit) in kv_read_smc_sram_dword() argument
94 ret = kv_set_smc_sram_address(rdev, smc_address, limit); in kv_read_smc_sram_dword()
120 const u8 *src, u32 byte_count, u32 limit) in kv_copy_bytes_to_smc() argument
125 if ((smc_start_address + byte_count) > limit) in kv_copy_bytes_to_smc()
135 ret = kv_set_smc_sram_address(rdev, addr, limit); in kv_copy_bytes_to_smc()
161 ret = kv_set_smc_sram_address(rdev, addr, limit); in kv_copy_bytes_to_smc()
174 ret = kv_set_smc_sram_address(rdev, addr, limit); in kv_copy_bytes_to_smc()
189 ret = kv_set_smc_sram_address(rdev, addr, limit); in kv_copy_bytes_to_smc()
[all …]
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()
316 ret = rv770_set_smc_sram_address(rdev, addr, limit); in rv770_copy_bytes_to_smc()
331 ret = rv770_set_smc_sram_address(rdev, addr, limit); in rv770_copy_bytes_to_smc()
349 ret = rv770_set_smc_sram_address(rdev, addr, limit); in rv770_copy_bytes_to_smc()
467 static void rv770_clear_smc_sram(struct radeon_device *rdev, u16 limit) in rv770_clear_smc_sram() argument
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()
[all …]
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()
207 int ci_load_smc_ucode(struct radeon_device *rdev, u32 limit) in ci_load_smc_ucode() argument
268 u32 smc_address, u32 *value, u32 limit) in ci_read_smc_sram_dword() argument
274 ret = ci_set_smc_sram_address(rdev, smc_address, limit); in ci_read_smc_sram_dword()
[all …]
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 si_copy_bytes_to_smc() argument
57 if ((smc_start_address + byte_count) > limit) in si_copy_bytes_to_smc()
67 ret = si_set_smc_sram_address(rdev, addr, limit); in si_copy_bytes_to_smc()
82 ret = si_set_smc_sram_address(rdev, addr, limit); in si_copy_bytes_to_smc()
100 ret = si_set_smc_sram_address(rdev, addr, limit); in si_copy_bytes_to_smc()
211 int si_load_smc_ucode(struct radeon_device *rdev, u32 limit) in si_load_smc_ucode() argument
283 u32 *value, u32 limit) in si_read_smc_sram_dword() argument
289 ret = si_set_smc_sram_address(rdev, smc_address, limit); in si_read_smc_sram_dword()
[all …]
Drv770_smc.h192 u16 byte_count, u16 limit);
201 u16 smc_address, u32 *value, u16 limit);
203 u16 smc_address, u32 value, u16 limit);
205 u16 limit);
Dci_dpm.h326 const u8 *src, u32 byte_count, u32 limit);
335 int ci_load_smc_ucode(struct radeon_device *rdev, u32 limit);
337 u32 smc_address, u32 *value, u32 limit);
339 u32 smc_address, u32 value, u32 limit);
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Dkv_smc.c79 u32 smc_address, u32 limit) in kv_set_smc_sram_address() argument
83 if ((smc_address + 3) > limit) in kv_set_smc_sram_address()
94 u32 *value, u32 limit) in amdgpu_kv_read_smc_sram_dword() argument
98 ret = kv_set_smc_sram_address(adev, smc_address, limit); in amdgpu_kv_read_smc_sram_dword()
124 const u8 *src, u32 byte_count, u32 limit) in amdgpu_kv_copy_bytes_to_smc() argument
129 if ((smc_start_address + byte_count) > limit) in amdgpu_kv_copy_bytes_to_smc()
139 ret = kv_set_smc_sram_address(adev, addr, limit); in amdgpu_kv_copy_bytes_to_smc()
165 ret = kv_set_smc_sram_address(adev, addr, limit); in amdgpu_kv_copy_bytes_to_smc()
178 ret = kv_set_smc_sram_address(adev, addr, limit); in amdgpu_kv_copy_bytes_to_smc()
193 ret = kv_set_smc_sram_address(adev, addr, limit); in amdgpu_kv_copy_bytes_to_smc()
[all …]
Dci_smc.c37 u32 smc_address, u32 limit) in ci_set_smc_sram_address() argument
41 if ((smc_address + 3) > limit) in ci_set_smc_sram_address()
52 const u8 *src, u32 byte_count, u32 limit) in amdgpu_ci_copy_bytes_to_smc() argument
62 if ((smc_start_address + byte_count) > limit) in amdgpu_ci_copy_bytes_to_smc()
72 ret = ci_set_smc_sram_address(adev, addr, limit); in amdgpu_ci_copy_bytes_to_smc()
87 ret = ci_set_smc_sram_address(adev, addr, limit); in amdgpu_ci_copy_bytes_to_smc()
104 ret = ci_set_smc_sram_address(adev, addr, limit); in amdgpu_ci_copy_bytes_to_smc()
208 int amdgpu_ci_load_smc_ucode(struct amdgpu_device *adev, u32 limit) in amdgpu_ci_load_smc_ucode() argument
252 u32 smc_address, u32 *value, u32 limit) in amdgpu_ci_read_smc_sram_dword() argument
258 ret = ci_set_smc_sram_address(adev, smc_address, limit); in amdgpu_ci_read_smc_sram_dword()
[all …]
Diceland_smc.c38 uint32_t smc_address, uint32_t limit) in iceland_set_smc_sram_address() argument
45 if ((smc_address + 3) > limit) in iceland_set_smc_sram_address()
60 uint32_t byte_count, uint32_t limit) in iceland_copy_bytes_to_smc() argument
71 if ((smc_start_address + byte_count) > limit) in iceland_copy_bytes_to_smc()
81 result = iceland_set_smc_sram_address(adev, addr, limit); in iceland_copy_bytes_to_smc()
97 result = iceland_set_smc_sram_address(adev, addr, limit); in iceland_copy_bytes_to_smc()
112 result = iceland_set_smc_sram_address(adev, addr, limit); in iceland_copy_bytes_to_smc()
339 uint32_t limit)
345 result = iceland_set_smc_sram_address(adev, smc_address, limit);
355 uint32_t limit)
[all …]
Dfiji_smc.c37 …tic int fiji_set_smc_sram_address(struct amdgpu_device *adev, uint32_t smc_address, uint32_t limit) in fiji_set_smc_sram_address() argument
44 if ((smc_address + 3) > limit) in fiji_set_smc_sram_address()
56 …_device *adev, uint32_t smc_start_address, const uint8_t *src, uint32_t byte_count, uint32_t limit) in fiji_copy_bytes_to_smc() argument
67 if ((smc_start_address + byte_count) > limit) in fiji_copy_bytes_to_smc()
77 result = fiji_set_smc_sram_address(adev, addr, limit); in fiji_copy_bytes_to_smc()
93 result = fiji_set_smc_sram_address(adev, addr, limit); in fiji_copy_bytes_to_smc()
108 result = fiji_set_smc_sram_address(adev, addr, limit); in fiji_copy_bytes_to_smc()
318 uint32_t limit)
324 result = fiji_set_smc_sram_address(adev, smc_address, limit);
334 uint32_t limit)
[all …]
Dtonga_smc.c37 …ic int tonga_set_smc_sram_address(struct amdgpu_device *adev, uint32_t smc_address, uint32_t limit) in tonga_set_smc_sram_address() argument
44 if ((smc_address + 3) > limit) in tonga_set_smc_sram_address()
56 …_device *adev, uint32_t smc_start_address, const uint8_t *src, uint32_t byte_count, uint32_t limit) in tonga_copy_bytes_to_smc() argument
67 if ((smc_start_address + byte_count) > limit) in tonga_copy_bytes_to_smc()
77 result = tonga_set_smc_sram_address(adev, addr, limit); in tonga_copy_bytes_to_smc()
93 result = tonga_set_smc_sram_address(adev, addr, limit); in tonga_copy_bytes_to_smc()
108 result = tonga_set_smc_sram_address(adev, addr, limit); in tonga_copy_bytes_to_smc()
318 uint32_t limit)
324 result = tonga_set_smc_sram_address(adev, smc_address, limit);
334 uint32_t limit)
[all …]
Dci_dpm.h333 const u8 *src, u32 byte_count, u32 limit);
342 int amdgpu_ci_load_smc_ucode(struct amdgpu_device *adev, u32 limit);
344 u32 smc_address, u32 *value, u32 limit);
346 u32 smc_address, u32 value, u32 limit);
/linux-4.4.14/fs/xfs/
Dxfs_qm_bhv.c36 __uint64_t limit; in xfs_fill_statvfs_from_dquot() local
38 limit = dqp->q_core.d_blk_softlimit ? in xfs_fill_statvfs_from_dquot()
41 if (limit && statp->f_blocks > limit) { in xfs_fill_statvfs_from_dquot()
42 statp->f_blocks = limit; in xfs_fill_statvfs_from_dquot()
48 limit = dqp->q_core.d_ino_softlimit ? in xfs_fill_statvfs_from_dquot()
51 if (limit && statp->f_files > limit) { in xfs_fill_statvfs_from_dquot()
52 statp->f_files = limit; in xfs_fill_statvfs_from_dquot()
Dxfs_pnfs.c124 loff_t limit; in xfs_fs_map_blocks() local
151 limit = mp->m_super->s_maxbytes; in xfs_fs_map_blocks()
153 limit = max(limit, round_up(i_size_read(inode), in xfs_fs_map_blocks()
155 if (offset > limit) in xfs_fs_map_blocks()
157 if (offset > limit - length) in xfs_fs_map_blocks()
158 length = limit - offset; in xfs_fs_map_blocks()
/linux-4.4.14/drivers/gpu/drm/gma500/
Doaktrail_crtc.c46 static bool mrst_lvds_find_best_pll(const struct gma_limit_t *limit,
50 static bool mrst_sdvo_find_best_pll(const struct gma_limit_t *limit,
93 const struct gma_limit_t *limit = NULL; in mrst_limit() local
101 limit = &mrst_limits[MRST_LIMIT_LVDS_100L]; in mrst_limit()
104 limit = &mrst_limits[MRST_LIMIT_LVDS_83]; in mrst_limit()
107 limit = &mrst_limits[MRST_LIMIT_LVDS_100]; in mrst_limit()
111 limit = &mrst_limits[MRST_LIMIT_SDVO]; in mrst_limit()
113 limit = NULL; in mrst_limit()
117 return limit; in mrst_limit()
133 static bool mrst_sdvo_find_best_pll(const struct gma_limit_t *limit, in mrst_sdvo_find_best_pll() argument
[all …]
Dgma_display.c700 const struct gma_limit_t *limit, in gma_pll_is_valid() argument
703 if (clock->p1 < limit->p1.min || limit->p1.max < clock->p1) in gma_pll_is_valid()
705 if (clock->p < limit->p.min || limit->p.max < clock->p) in gma_pll_is_valid()
707 if (clock->m2 < limit->m2.min || limit->m2.max < clock->m2) in gma_pll_is_valid()
709 if (clock->m1 < limit->m1.min || limit->m1.max < clock->m1) in gma_pll_is_valid()
714 if (clock->m < limit->m.min || limit->m.max < clock->m) in gma_pll_is_valid()
716 if (clock->n < limit->n.min || limit->n.max < clock->n) in gma_pll_is_valid()
718 if (clock->vco < limit->vco.min || limit->vco.max < clock->vco) in gma_pll_is_valid()
724 if (clock->dot < limit->dot.min || limit->dot.max < clock->dot) in gma_pll_is_valid()
730 bool gma_find_best_pll(const struct gma_limit_t *limit, in gma_find_best_pll() argument
[all …]
Dgma_display.h58 const struct gma_limit_t *(*limit)(struct drm_crtc *crtc, int refclk); member
60 const struct gma_limit_t *limit,
101 const struct gma_limit_t *limit,
103 extern bool gma_find_best_pll(const struct gma_limit_t *limit,
Dmdfld_intel_display.c591 const struct mrst_limit_t *limit = NULL; in mdfld_limit() local
598 limit = &mdfld_limits[MDFLD_LIMT_DSIPLL_19]; in mdfld_limit()
600 limit = &mdfld_limits[MDFLD_LIMT_DSIPLL_25]; in mdfld_limit()
603 limit = &mdfld_limits[MDFLD_LIMT_DSIPLL_83]; in mdfld_limit()
607 limit = &mdfld_limits[MDFLD_LIMT_DSIPLL_100]; in mdfld_limit()
610 limit = &mdfld_limits[MDFLD_LIMT_DPLL_19]; in mdfld_limit()
612 limit = &mdfld_limits[MDFLD_LIMT_DPLL_25]; in mdfld_limit()
615 limit = &mdfld_limits[MDFLD_LIMT_DPLL_83]; in mdfld_limit()
619 limit = &mdfld_limits[MDFLD_LIMT_DPLL_100]; in mdfld_limit()
621 limit = NULL; in mdfld_limit()
[all …]
Dcdv_intel_display.c32 static bool cdv_intel_find_dp_pll(const struct gma_limit_t *limit,
376 const struct gma_limit_t *limit; in cdv_intel_limit() local
383 limit = &cdv_intel_limits[CDV_LIMIT_SINGLE_LVDS_96]; in cdv_intel_limit()
385 limit = &cdv_intel_limits[CDV_LIMIT_SINGLE_LVDS_100]; in cdv_intel_limit()
389 limit = &cdv_intel_limits[CDV_LIMIT_DP_27]; in cdv_intel_limit()
391 limit = &cdv_intel_limits[CDV_LIMIT_DP_100]; in cdv_intel_limit()
394 limit = &cdv_intel_limits[CDV_LIMIT_DAC_HDMI_27]; in cdv_intel_limit()
396 limit = &cdv_intel_limits[CDV_LIMIT_DAC_HDMI_96]; in cdv_intel_limit()
398 return limit; in cdv_intel_limit()
410 static bool cdv_intel_find_dp_pll(const struct gma_limit_t *limit, in cdv_intel_find_dp_pll() argument
[all …]
Dpsb_intel_display.c68 const struct gma_limit_t *limit; in psb_intel_limit() local
71 limit = &psb_intel_limits[INTEL_LIMIT_I9XX_LVDS]; in psb_intel_limit()
73 limit = &psb_intel_limits[INTEL_LIMIT_I9XX_SDVO_DAC]; in psb_intel_limit()
74 return limit; in psb_intel_limit()
121 const struct gma_limit_t *limit; in psb_intel_crtc_mode_set() local
151 limit = gma_crtc->clock_funcs->limit(crtc, refclk); in psb_intel_crtc_mode_set()
153 ok = limit->find_pll(limit, crtc, adjusted_mode->clock, refclk, in psb_intel_crtc_mode_set()
453 .limit = psb_intel_limit,
/linux-4.4.14/tools/testing/selftests/x86/
Dldt_gdt.c49 uint32_t has_limit = 0, has_ar = 0, limit, ar; in check_invalid_segment() local
56 : [limit] "=r" (limit), [has_limit] "+rm" (has_limit) in check_invalid_segment()
79 uint32_t has_limit = 0, has_ar = 0, limit, ar; in check_valid_segment() local
86 : [limit] "=r" (limit), [has_limit] "+rm" (has_limit) in check_valid_segment()
106 } else if (limit != expected_limit) { in check_valid_segment()
108 (ldt ? "LDT" : "GDT"), index, limit, expected_limit); in check_valid_segment()
112 (ldt ? "LDT" : "GDT"), index, ar, limit); in check_valid_segment()
124 uint32_t limit = desc->limit; in install_valid_mode() local
126 limit = (limit << 12) + 4095; in install_valid_mode()
127 check_valid_segment(desc->entry_number, 1, ar, limit, true); in install_valid_mode()
[all …]
Dsigreturn.c166 .limit = 4095, in setup_ldt()
179 .limit = 0xffff, in setup_ldt()
192 .limit = 4095, in setup_ldt()
205 .limit = 0xffff, in setup_ldt()
218 .limit = 0xffff, in setup_ldt()
243 .limit = 0xffff, in setup_ldt()
/linux-4.4.14/fs/dlm/
Dmidcomms.c35 unsigned len, unsigned limit) in copy_from_cb() argument
39 if ((copy + offset) > limit) in copy_from_cb()
40 copy = limit - offset; in copy_from_cb()
59 unsigned offset, unsigned len, unsigned limit) in dlm_process_incoming_buffer() argument
79 limit); in dlm_process_incoming_buffer()
120 copy_from_cb(p, base, offset, msglen, limit); in dlm_process_incoming_buffer()
126 offset &= (limit - 1); in dlm_process_incoming_buffer()
/linux-4.4.14/arch/sparc/mm/
Dio-unit.c52 iounit->limit[0] = IOUNIT_BMAP1_START; in iounit_iommu_init()
53 iounit->limit[1] = IOUNIT_BMAP2_START; in iounit_iommu_init()
54 iounit->limit[2] = IOUNIT_BMAPM_START; in iounit_iommu_init()
55 iounit->limit[3] = IOUNIT_BMAPM_END; in iounit_iommu_init()
97 unsigned long rotor, scan, limit; in iounit_get_area() local
113 limit = iounit->limit[j]; in iounit_get_area()
115 nexti: scan = find_next_zero_bit(iounit->bmap, limit, scan); in iounit_get_area()
116 if (scan + npages > limit) { in iounit_get_area()
117 if (limit != rotor) { in iounit_get_area()
118 limit = rotor; in iounit_get_area()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Dcalib.c50 struct ath_nf_limits *limit; in ath9k_hw_get_nf_limits() local
53 limit = &ah->nf_2g; in ath9k_hw_get_nf_limits()
55 limit = &ah->nf_5g; in ath9k_hw_get_nf_limits()
57 return limit; in ath9k_hw_get_nf_limits()
86 struct ath_nf_limits *limit; in ath9k_hw_update_nfcal_hist_buffer() local
93 limit = ath9k_hw_get_nf_limits(ah, ah->curchan); in ath9k_hw_update_nfcal_hist_buffer()
116 if (h[i].privNF > limit->max) { in ath9k_hw_update_nfcal_hist_buffer()
121 i, h[i].privNF, limit->max, in ath9k_hw_update_nfcal_hist_buffer()
134 h[i].privNF = limit->max; in ath9k_hw_update_nfcal_hist_buffer()
330 struct ath_nf_limits *limit; in ath9k_hw_nf_sanitize() local
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/leds/backlight/
Dpm8941-wled.txt14 - qcom,current-limit: mA; per-string current limit; value from 0 to 25
16 - qcom,current-boost-limit: mA; boost current limit; one of:
23 - qcom,ovp: V; Over-voltage protection limit; one of:
37 qcom,current-limit = <20>;
38 qcom,current-boost-limit = <805>;
Dsky81452-backlight.txt17 - skyworks,current-limit-mA
28 skyworks,current-limit-mA = <2300>;
/linux-4.4.14/arch/arm/boot/dts/
Domap3-gta04a3.dts32 st,click-click-time-limit = <9>;
41 st,min-limit-x = <32>;
42 st,min-limit-y = <3>;
43 st,min-limit-z = <3>;
44 st,max-limit-x = <3>;
45 st,max-limit-y = <32>;
46 st,max-limit-z = <32>;
Domap3-overo-common-peripherals.dtsi77 st,min-limit-x = <120>;
78 st,min-limit-y = <120>;
79 st,min-limit-z = <140>;
80 st,max-limit-x = <550>;
81 st,max-limit-y = <550>;
82 st,max-limit-z = <750>;
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dshadowacpi.c49 u32 limit = (offset + length + 0xfff) & ~0xfff; in acpi_read_fast() local
51 u32 fetch = limit - start; in acpi_read_fast()
53 if (nvbios_extend(bios, limit) >= 0) { in acpi_read_fast()
70 u32 limit = (offset + length + 0xfff) & ~0xfff; in acpi_read_slow() local
74 if (nvbios_extend(bios, limit) >= 0) { in acpi_read_slow()
75 while (start + fetch < limit) { in acpi_read_slow()
/linux-4.4.14/arch/powerpc/mm/
Dsubpage-prot.c100 unsigned long next, limit; in subpage_prot_clear() local
103 limit = addr + len; in subpage_prot_clear()
104 if (limit > spt->maxaddr) in subpage_prot_clear()
105 limit = spt->maxaddr; in subpage_prot_clear()
106 for (; addr < limit; addr = next) { in subpage_prot_clear()
107 next = pmd_addr_end(addr, limit); in subpage_prot_clear()
195 unsigned long next, limit; in sys_subpage_prot() local
217 for (limit = addr + len; addr < limit; addr = next) { in sys_subpage_prot()
218 next = pmd_addr_end(addr, limit); in sys_subpage_prot()
260 if (limit > spt->maxaddr) in sys_subpage_prot()
[all …]
Dfsl_booke_mmu.c66 unsigned long limit; member
72 return tlbcam_addrs[idx].limit - tlbcam_addrs[idx].start + 1; in tlbcam_sz()
82 if (va >= tlbcam_addrs[b].start && va < tlbcam_addrs[b].limit) in v_mapped_by_tlbcam()
95 && pa < (tlbcam_addrs[b].limit-tlbcam_addrs[b].start) in p_mapped_by_tlbcam()
142 tlbcam_addrs[index].limit = virt + size - 1; in settlbcam()
224 return tlbcam_addrs[tlbcam_index - 1].limit - PAGE_OFFSET + 1; in mmu_mapin_ram()
259 phys_addr_t limit = first_memblock_base + first_memblock_size; in setup_initial_memory_limit() local
262 memblock_set_current_limit(min_t(u64, limit, 0x04000000)); in setup_initial_memory_limit()
Dppc_mmu_32.c45 unsigned long limit; member
56 if (va >= bat_addrs[b].start && va < bat_addrs[b].limit) in v_mapped_by_bats()
69 && pa < (bat_addrs[b].limit-bat_addrs[b].start) in p_mapped_by_bats()
96 done = (unsigned long)bat_addrs[2].limit - PAGE_OFFSET + 1; in mmu_mapin_ram()
97 if ((done < tot) && !bat_addrs[3].limit) { in mmu_mapin_ram()
104 done = (unsigned long)bat_addrs[3].limit - PAGE_OFFSET + 1; in mmu_mapin_ram()
158 bat_addrs[index].limit = virt + ((bl + 1) << 17) - 1; in setbat()
Ddma-noncoherent.c160 u64 mask = ISA_DMA_THRESHOLD, limit; in __dma_alloc_coherent() local
184 limit = (mask + 1) & ~mask; in __dma_alloc_coherent()
185 if ((limit && size >= limit) || in __dma_alloc_coherent()
/linux-4.4.14/arch/powerpc/sysdev/
Ddart_iommu.c82 unsigned long limit; in dart_tlb_invalidate_all() local
96 limit = 0; in dart_tlb_invalidate_all()
105 while ((DART_IN(DART_CNTL) & inv_bit) && l < (1L << limit)) in dart_tlb_invalidate_all()
107 if (l == (1L << limit)) { in dart_tlb_invalidate_all()
108 if (limit < 4) { in dart_tlb_invalidate_all()
109 limit++; in dart_tlb_invalidate_all()
125 unsigned int l, limit; in dart_tlb_invalidate_one() local
134 limit = 0; in dart_tlb_invalidate_one()
137 while ((DART_IN(DART_CNTL) & DART_CNTL_U4_IONE) && l < (1L << limit)) { in dart_tlb_invalidate_one()
142 if (l == (1L << limit)) { in dart_tlb_invalidate_one()
[all …]
/linux-4.4.14/include/linux/
Ddma-contiguous.h86 phys_addr_t limit, struct cma **res_cma,
103 phys_addr_t base, phys_addr_t limit) in dma_declare_contiguous() argument
107 ret = dma_contiguous_reserve_area(size, base, limit, &cma, true); in dma_declare_contiguous()
130 static inline void dma_contiguous_reserve(phys_addr_t limit) { } in dma_contiguous_reserve() argument
133 phys_addr_t limit, struct cma **res_cma, in dma_contiguous_reserve_area() argument
141 phys_addr_t base, phys_addr_t limit) in dma_declare_contiguous() argument
Dpage_counter.h10 unsigned long limit; member
28 counter->limit = PAGE_COUNTER_MAX; in page_counter_init()
43 int page_counter_limit(struct page_counter *counter, unsigned long limit);
/linux-4.4.14/fs/gfs2/
Dlops.h35 unsigned int limit; in buf_limit() local
37 limit = (sdp->sd_sb.sb_bsize - BUF_OFFSET) / sizeof(__be64); in buf_limit()
38 return limit; in buf_limit()
43 unsigned int limit; in databuf_limit() local
45 limit = (sdp->sd_sb.sb_bsize - DATABUF_OFFSET) / (2 * sizeof(__be64)); in databuf_limit()
46 return limit; in databuf_limit()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bar/
Dnv50.c67 u64 start, limit; in nv50_bar_oneinit() local
85 limit = start + device->func->resource_size(device, 3); in nv50_bar_oneinit()
87 ret = nvkm_vm_new(device, start, limit, start, &bar3_lock, &vm); in nv50_bar_oneinit()
93 ret = nvkm_vm_boot(vm, limit-- - start); in nv50_bar_oneinit()
108 nvkm_wo32(bar->bar3, 0x04, lower_32_bits(limit)); in nv50_bar_oneinit()
110 nvkm_wo32(bar->bar3, 0x0c, upper_32_bits(limit) << 24 | in nv50_bar_oneinit()
118 limit = start + device->func->resource_size(device, 1); in nv50_bar_oneinit()
120 ret = nvkm_vm_new(device, start, limit--, start, &bar1_lock, &vm); in nv50_bar_oneinit()
137 nvkm_wo32(bar->bar1, 0x04, lower_32_bits(limit)); in nv50_bar_oneinit()
139 nvkm_wo32(bar->bar1, 0x0c, upper_32_bits(limit) << 24 | in nv50_bar_oneinit()
/linux-4.4.14/fs/configfs/
Ditem.c68 int limit = CONFIGFS_ITEM_NAME_LEN; in config_item_set_name() local
77 need = vsnprintf(item->ci_namebuf, limit, fmt, args); in config_item_set_name()
79 if (need < limit) in config_item_set_name()
85 limit = need + 1; in config_item_set_name()
86 name = kmalloc(limit, GFP_KERNEL); in config_item_set_name()
92 need = vsnprintf(name, limit, fmt, args); in config_item_set_name()
96 if (need >= limit) { in config_item_set_name()
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnouveau_chan.c141 args.limit = cli->vm->mmu->limit - 1; in nouveau_channel_prep()
153 args.limit = args.start + device->info.ram_user - 1; in nouveau_channel_prep()
158 args.limit = device->info.ram_user - 1; in nouveau_channel_prep()
165 args.limit = chan->drm->agp.base + in nouveau_channel_prep()
171 args.limit = mmu->limit - 1; in nouveau_channel_prep()
309 args.limit = cli->vm->mmu->limit - 1; in nouveau_channel_init()
314 args.limit = device->info.ram_user - 1; in nouveau_channel_init()
326 args.limit = cli->vm->mmu->limit - 1; in nouveau_channel_init()
332 args.limit = chan->drm->agp.base + in nouveau_channel_init()
338 args.limit = mmu->limit - 1; in nouveau_channel_init()
Dnv50_fence.c42 u32 limit = start + mem->size - 1; in nv50_fence_context_new() local
59 .limit = limit, in nv50_fence_context_new()
67 u32 limit = start + bo->bo.mem.size - 1; in nv50_fence_context_new() local
74 .limit = limit, in nv50_fence_context_new()
Dnv17_fence.c80 u32 limit = start + mem->size - 1; in nv17_fence_context_new() local
97 .limit = limit, in nv17_fence_context_new()
/linux-4.4.14/arch/x86/include/asm/
Ddesc.h13 desc->limit0 = info->limit & 0x0ffff; in fill_ldt()
24 desc->limit = (info->limit & 0xf0000) >> 16; in fill_ldt()
144 unsigned long limit, unsigned char type, in pack_descriptor() argument
147 desc->a = ((base & 0xffff) << 16) | (limit & 0xffff); in pack_descriptor()
149 (limit & 0x000f0000) | ((type & 0xff) << 8) | in pack_descriptor()
257 (info)->limit == 0 && \
269 info->limit == 0 && in LDT_zero()
297 return desc->limit0 | (desc->limit << 16); in get_desc_limit()
300 static inline void set_desc_limit(struct desc_struct *desc, unsigned long limit) in set_desc_limit() argument
302 desc->limit0 = limit & 0xffff; in set_desc_limit()
[all …]
Ddesc_defs.h32 unsigned limit: 4, avl: 1, l: 1, d: 1, g: 1, base2: 8; member
37 #define GDT_ENTRY_INIT(flags, base, limit) { { { \ argument
38 .a = ((limit) & 0xffff) | (((base) & 0xffff) << 16), \
40 ((limit) & 0xf0000) | ((base) & 0xff000000), \
Dsegment.h10 #define GDT_ENTRY(flags, base, limit) \ argument
13 (((limit) & _AC(0x000f0000,ULL)) << (48-16)) | \
15 (((limit) & _AC(0x0000ffff,ULL))))
/linux-4.4.14/Documentation/devicetree/bindings/iio/accel/
Dlis302.txt30 - st,click-click-time-limit: click time limit, from 0 to 127.5msec
48 upper/lower limit
51 upper/lower limit for second wakeup
61 - st,{min,max}-limit-{x,y,z} set the min/max limits for x/y/z axis
112 st,min-limit-x = <120>;
113 st,min-limit-y = <120>;
114 st,min-limit-z = <140>;
115 st,max-limit-x = <550>;
116 st,max-limit-y = <550>;
117 st,max-limit-z = <750>;
/linux-4.4.14/arch/arm/mach-rpc/include/mach/
Dacornfb.h18 u_long limit; in acornfb_valid_pixrate() local
28 limit = 6578; in acornfb_valid_pixrate()
30 limit = 13157; in acornfb_valid_pixrate()
32 limit = 26315; in acornfb_valid_pixrate()
35 return acornfb_bandwidth(var) >= limit; in acornfb_valid_pixrate()
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_diag.c344 u32 limit; in qib_read_umem64() local
347 reg_addr = (const u64 __iomem *)qib_remap_ioaddr32(dd, regoffs, &limit); in qib_read_umem64()
348 if (reg_addr == NULL || limit == 0 || !(dd->flags & QIB_PRESENT)) { in qib_read_umem64()
352 if (count >= limit) in qib_read_umem64()
353 count = limit; in qib_read_umem64()
388 u32 limit; in qib_write_umem64() local
391 reg_addr = (u64 __iomem *)qib_remap_ioaddr32(dd, regoffs, &limit); in qib_write_umem64()
392 if (reg_addr == NULL || limit == 0 || !(dd->flags & QIB_PRESENT)) { in qib_write_umem64()
396 if (count >= limit) in qib_write_umem64()
397 count = limit; in qib_write_umem64()
[all …]
Dqib_srq.c173 srq->limit = srq_init_attr->attr.srq_limit; in qib_create_srq()
227 attr->srq_limit : srq->limit) > attr->max_wr) { in qib_modify_srq()
300 srq->limit = attr->srq_limit; in qib_modify_srq()
338 srq->limit = attr->srq_limit; in qib_modify_srq()
357 attr->srq_limit = srq->limit; in qib_query_srq()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dnv44.c45 nvkm_wr32(device, NV20_PGRAPH_TLIMIT(i), tile->limit); in nv44_gr_tile()
54 nvkm_wr32(device, NV47_PGRAPH_TLIMIT(i), tile->limit); in nv44_gr_tile()
57 nvkm_wr32(device, NV40_PGRAPH_TLIMIT1(i), tile->limit); in nv44_gr_tile()
62 nvkm_wr32(device, NV20_PGRAPH_TLIMIT(i), tile->limit); in nv44_gr_tile()
65 nvkm_wr32(device, NV40_PGRAPH_TLIMIT1(i), tile->limit); in nv44_gr_tile()
/linux-4.4.14/drivers/tty/serial/
Dsunhv.c77 int limit = 10000; in receive_chars_getchar() local
79 while (limit-- > 0) { in receive_chars_getchar()
120 int limit = 10000; in receive_chars_read() local
122 while (limit-- > 0) { in receive_chars_read()
270 int limit = 10000; in sunhv_send_xchar() local
277 while (limit-- > 0) { in sunhv_send_xchar()
297 int limit = 10000; in sunhv_break_ctl() local
301 while (limit-- > 0) { in sunhv_break_ctl()
449 int limit = 1000000; in sunhv_console_write_paged() local
451 while (limit--) { in sunhv_console_write_paged()
[all …]
/linux-4.4.14/drivers/usb/host/
Dxhci-ext-caps.h144 int limit = XHCI_MAX_EXT_CAPS; in xhci_find_ext_cap_by_id() local
146 while (ext_offset && limit > 0) { in xhci_find_ext_cap_by_id()
151 limit--; in xhci_find_ext_cap_by_id()
153 if (limit > 0) in xhci_find_ext_cap_by_id()
/linux-4.4.14/arch/mips/ath25/
Dboard.c57 static const void __iomem * __init find_board_config(const void __iomem *limit, in find_board_config() argument
61 const void __iomem *begin = limit - 0x1000; in find_board_config()
62 const void __iomem *end = limit - 0x30000; in find_board_config()
71 static const void __iomem * __init find_radio_config(const void __iomem *limit, in find_radio_config() argument
82 end = limit; in find_radio_config()
89 end = limit - 0x1000 + 0xf8; in find_radio_config()
/linux-4.4.14/arch/tile/lib/
Duaccess.c20 unsigned long limit = current_thread_info()->addr_limit.seg; in __range_ok() local
21 return !((addr < limit && size <= limit - addr) || in __range_ok()
/linux-4.4.14/Documentation/cgroups/
Dhugetlb.txt4 The HugeTLB controller allows to limit the HugeTLB usage per control group and
5 enforces the controller limit during page fault. Since HugeTLB doesn't
6 support page reclaim, enforcing the limit at page fault time implies that,
8 beyond its limit. This requires the application to know beforehand how much
30 hugetlb.<hugepagesize>.limit_in_bytes # set/show limit of "hugepagesize" hugetlb usage
33 hugetlb.<hugepagesize>.failcnt # show the number of allocation failure due to HugeTLB limit
Dpids.txt8 new tasks from being fork()'d or clone()'d after a certain limit is reached.
10 Since it is trivial to hit the task limit without hitting any kmemcg limits in
23 to have pids.current > pids.max. This can be done by either setting the limit to
29 To set a cgroup to have no limit, set pids.max to "max". This is the default for
31 limit in the hierarchy is followed).
51 It should be noted that attempts to overcome the set limit (2 in this case) will
60 Even if we migrate to a child cgroup (which doesn't have a set limit), we will
61 not be able to overcome the most stringent limit in the hierarchy (in this case,
75 We can set a limit that is smaller than pids.current, which will stop any new
Dmemory.txt45 - soft limit
50 - Root cgroup has no limit controls.
64 memory.limit_in_bytes # set/show limit of memory usage
65 memory.memsw.limit_in_bytes # set/show limit of memory+Swap usage
70 memory.soft_limit_in_bytes # set/show soft limit of memory usage
81 memory.kmem.limit_in_bytes # set/show hard limit for kernel memory
86 memory.kmem.tcp.limit_in_bytes # set/show hard limit for tcp buf memory
125 page_counter tracks the current memory usage and limit of the group of
161 charged is over its limit. If it is, then reclaim is invoked on the cgroup.
224 By using the memsw limit, you can avoid system OOM which can be caused by swap
[all …]
/linux-4.4.14/security/keys/
Dgc.c189 time_t new_timer, limit; in key_garbage_collector() local
193 limit = current_kernel_time().tv_sec; in key_garbage_collector()
194 if (limit > key_gc_delay) in key_garbage_collector()
195 limit -= key_gc_delay; in key_garbage_collector()
197 limit = key_gc_delay; in key_garbage_collector()
236 if (key->expiry > limit && key->expiry < new_timer) { in key_garbage_collector()
238 key_serial(key), key->expiry - limit); in key_garbage_collector()
344 keyring_gc(key, limit); in key_garbage_collector()
/linux-4.4.14/arch/sparc/include/asm/
Dobio.h122 unsigned limit; in bw_get_prof_limit() local
125 "=r" (limit) : in bw_get_prof_limit()
128 return limit; in bw_get_prof_limit()
131 static inline void bw_set_prof_limit(int cpu, unsigned limit) in bw_set_prof_limit() argument
134 "r" (limit), in bw_set_prof_limit()
Duaccess_64.h56 static inline bool __chk_range_not_ok(unsigned long addr, unsigned long size, unsigned long limit) in __chk_range_not_ok() argument
59 return addr > limit - size; in __chk_range_not_ok()
65 return addr > limit; in __chk_range_not_ok()
68 #define __range_not_ok(addr, size, limit) \ argument
71 __chk_range_not_ok((unsigned long __force)(addr), size, limit); \
/linux-4.4.14/drivers/usb/mon/
Dmon_text.c96 int cnt, limit; member
394 ptr.limit = rp->printf_size; in mon_text_read_t()
398 ptr.cnt += snprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt, in mon_text_read_t()
421 ptr.limit = rp->printf_size; in mon_text_read_u()
434 ptr.cnt += snprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt, in mon_text_read_u()
488 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_head_t()
506 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_head_u()
517 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_statset()
525 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_statset()
528 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_statset()
[all …]
/linux-4.4.14/drivers/isdn/gigaset/
Disocdata.c136 int read, write, limit, src, dst; in gigaset_isowbuf_getbytes() local
147 limit = read + size; in gigaset_isowbuf_getbytes()
149 __func__, read, write, limit); in gigaset_isowbuf_getbytes()
159 if (limit >= write) { in gigaset_isowbuf_getbytes()
165 if (limit >= write) { in gigaset_isowbuf_getbytes()
168 limit = write + BAS_OUTBUFPAD; in gigaset_isowbuf_getbytes()
171 __func__, write, limit, iwb->idle); in gigaset_isowbuf_getbytes()
180 limit = 0; in gigaset_isowbuf_getbytes()
184 __func__, pbyte, limit); in gigaset_isowbuf_getbytes()
185 iwb->data[limit] = pbyte; /* restore in gigaset_isowbuf_getbytes()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/dma/
Duser.c84 args->v0.start, args->v0.limit); in nvkm_dmaobj_ctor()
88 dmaobj->limit = args->v0.limit; in nvkm_dmaobj_ctor()
95 if (dmaobj->start > dmaobj->limit) in nvkm_dmaobj_ctor()
104 if (dmaobj->limit >= fb->ram->size - instmem->reserved) in nvkm_dmaobj_ctor()
/linux-4.4.14/drivers/scsi/be2iscsi/
Dbe.h48 static inline u32 MODULO(u16 val, u16 limit) in MODULO() argument
50 WARN_ON(limit & (limit - 1)); in MODULO()
51 return val & (limit - 1); in MODULO()
54 static inline void index_inc(u16 *index, u16 limit) in index_inc() argument
56 *index = MODULO((*index + 1), limit); in index_inc()
/linux-4.4.14/drivers/base/
Ddma-contiguous.c107 void __init dma_contiguous_reserve(phys_addr_t limit) in dma_contiguous_reserve() argument
111 phys_addr_t selected_limit = limit; in dma_contiguous_reserve()
114 pr_debug("%s(limit %08lx)\n", __func__, (unsigned long)limit); in dma_contiguous_reserve()
119 selected_limit = min_not_zero(limit_cmdline, limit); in dma_contiguous_reserve()
163 phys_addr_t limit, struct cma **res_cma, in dma_contiguous_reserve_area() argument
168 ret = cma_declare_contiguous(base, size, limit, 0, 0, fixed, res_cma); in dma_contiguous_reserve_area()
/linux-4.4.14/Documentation/devicetree/bindings/power_supply/
Dqcom_smbb.txt43 - qcom,fast-charge-current-limit:
51 Description: Battery voltage limit above which fast charging may operate;
58 Description: Battery voltage limit below which fast charging may operate;
74 'qcom,fast-charge-current-limit' will be clamped by this value.
79 Description: Battery voltage limit below which auto-recharge functionality
81 limit for auto-recharge is 5% above this value.
88 - qcom,dc-current-limit:
91 Description: Default DC charge current limit
129 qcom,fast-charge-current-limit = <1000000>;
130 qcom,dc-charge-current-limit = <1000000>;
/linux-4.4.14/drivers/staging/rtl8712/
Dieee80211.c114 u8 *r8712_get_ie(u8 *pbuf, sint index, sint *len, sint limit) in r8712_get_ie() argument
119 if (limit < 1) in r8712_get_ie()
132 if (i >= limit) in r8712_get_ie()
216 unsigned char *r8712_get_wpa_ie(unsigned char *pie, int *wpa_ie_len, int limit) in r8712_get_wpa_ie() argument
224 pbuf = r8712_get_ie(pbuf, _WPA_IE_ID_, &len, limit); in r8712_get_wpa_ie()
241 limit = limit - (pbuf - pie) - 2 - len; in r8712_get_wpa_ie()
242 if (limit <= 0) in r8712_get_wpa_ie()
250 unsigned char *r8712_get_wpa2_ie(unsigned char *pie, int *rsn_ie_len, int limit) in r8712_get_wpa2_ie() argument
252 return r8712_get_ie(pie, _WPA2_IE_ID_, rsn_ie_len, limit); in r8712_get_wpa2_ie()
/linux-4.4.14/arch/x86/pci/
Dnumachip.c19 static u8 limit __read_mostly;
42 if (unlikely(bus == 0 && devfn >= limit)) { in pci_mmcfg_read_numachip()
80 if (unlikely(bus == 0 && devfn >= limit)) in pci_mmcfg_write_numachip()
123 limit = PCI_DEVFN(0x18 + ((val >> 4) & 7) + 1, 0); in pci_numachip_init()
/linux-4.4.14/lib/xz/
Dxz_dec_lzma2.c61 size_t limit; member
295 dict->limit = 0; in dict_reset()
303 dict->limit = dict->end; in dict_limit()
305 dict->limit = dict->pos + out_max; in dict_limit()
311 return dict->pos < dict->limit; in dict_has_space()
354 left = min_t(size_t, dict->limit - dict->pos, *len); in dict_repeat()
520 uint16_t *probs, uint32_t limit) in rc_bittree() argument
529 } while (symbol < limit); in rc_bittree()
537 uint32_t *dest, uint32_t limit) in rc_bittree_reverse() argument
549 } while (++i < limit); in rc_bittree_reverse()
[all …]
/linux-4.4.14/arch/x86/math-emu/
Dget_address.c140 unsigned long base_address, limit, address, seg_top; in pm_address() local
164 limit = base_address in pm_address()
166 if (limit < base_address) in pm_address()
167 limit = 0xffffffff; in pm_address()
178 (address <= limit) || (address >= seg_top) ? 0 : in pm_address()
182 (address > limit) || (address < base_address) ? 0 : in pm_address()
183 ((limit - address) >= 254 ? 255 : limit - address + 1); in pm_address()
/linux-4.4.14/fs/minix/
Ddir.c99 char *p, *kaddr, *limit; in minix_readdir() local
106 limit = kaddr + minix_last_byte(inode, n) - chunk_size; in minix_readdir()
107 for ( ; p <= limit; p = minix_next_entry(p, sbi)) { in minix_readdir()
167 char *kaddr, *limit; in minix_find_entry() local
174 limit = kaddr + minix_last_byte(dir, n) - sbi->s_dirsize; in minix_find_entry()
175 for (p = kaddr; p <= limit; p = minix_next_entry(p, sbi)) { in minix_find_entry()
223 char *limit, *dir_end; in minix_add_link() local
232 limit = kaddr + PAGE_CACHE_SIZE - sbi->s_dirsize; in minix_add_link()
233 for (p = kaddr; p <= limit; p = minix_next_entry(p, sbi)) { in minix_add_link()
369 char *p, *kaddr, *limit; in minix_empty_dir() local
[all …]
/linux-4.4.14/drivers/gpu/drm/exynos/
Dexynos_drm_rotator.c171 struct rot_limit *limit; in rotator_align_size() local
176 limit = &limit_tbl->rgb888; in rotator_align_size()
178 limit = &limit_tbl->ycbcr420_2p; in rotator_align_size()
181 mask = ~((1 << limit->align) - 1); in rotator_align_size()
184 val = ROT_ALIGN(*hsize, limit->align, mask); in rotator_align_size()
185 if (val < limit->min_w) in rotator_align_size()
186 *hsize = ROT_MIN(limit->min_w, mask); in rotator_align_size()
187 else if (val > limit->max_w) in rotator_align_size()
188 *hsize = ROT_MAX(limit->max_w, mask); in rotator_align_size()
193 val = ROT_ALIGN(*vsize, limit->align, mask); in rotator_align_size()
[all …]
/linux-4.4.14/include/uapi/linux/
Dpkt_sched.h118 __u32 limit; /* Queue length: bytes for bfifo, packets for pfifo */ member
156 __u32 limit; member
164 __u32 limit; member
193 __u32 limit; /* Maximal packets in queue */ member
212 __u32 limit; /* HARD maximal flow queue length (bytes) */ member
242 __u32 limit; /* HARD maximal queue length (bytes) */ member
278 __u32 limit; /* HARD maximal queue length (bytes) */ member
318 __u32 limit; /* Hard queue length (packets) */ member
537 __u32 limit; /* fifo limit (packets) */ member
641 __u32 limit; /* max SFB queue length */ member
/linux-4.4.14/arch/x86/um/asm/
Dmm_context.h38 ((((info)->base_addr & 0x0000ffff) << 16) | ((info)->limit & 0x0ffff))
43 ((info)->limit & 0xf0000) | \
54 (info)->limit == 0 && \
/linux-4.4.14/drivers/staging/speakup/
Dselection.c47 static unsigned short limit(const unsigned short v, const unsigned short u) in limit() function
59 spk_xs = limit(spk_xs, vc->vc_cols - 1); in speakup_set_selection()
60 spk_ys = limit(spk_ys, vc->vc_rows - 1); in speakup_set_selection()
61 spk_xe = limit(spk_xe, vc->vc_cols - 1); in speakup_set_selection()
62 spk_ye = limit(spk_ye, vc->vc_rows - 1); in speakup_set_selection()
/linux-4.4.14/fs/freevxfs/
Dvxfs_lookup.c128 caddr_t baddr, limit; in vxfs_find_entry() local
133 limit = baddr + bsize - VXFS_DIRLEN(1); in vxfs_find_entry()
138 for (; (caddr_t)de <= limit; de = vxfs_next_entry(de)) { in vxfs_find_entry()
272 char *baddr, *limit; in vxfs_readdir() local
277 limit = baddr + bsize - VXFS_DIRLEN(1); in vxfs_readdir()
285 for (; (char *)de <= limit; de = vxfs_next_entry(de)) { in vxfs_readdir()
/linux-4.4.14/drivers/hwmon/
Dmax197.c54 int limit; member
103 data->limit : data->limit / 2; in max197_show_range()
126 int half = data->limit / 2; in max197_store_range()
127 int full = data->limit; in max197_store_range()
285 data->limit = MAX197_LIMIT; in max197_probe()
288 data->limit = MAX199_LIMIT; in max197_probe()
Dmax16065.c95 int limit[MAX16065_NUM_LIMIT][MAX16065_NUM_ADC]; member
115 static inline int LIMIT_TO_MV(int limit, int range) in LIMIT_TO_MV() argument
117 return limit * range / 256; in LIMIT_TO_MV()
230 int limit; in max16065_set_limit() local
236 limit = MV_TO_LIMIT(val, data->range[attr2->index]); in max16065_set_limit()
239 data->limit[attr2->nr][attr2->index] in max16065_set_limit()
240 = LIMIT_TO_MV(limit, data->range[attr2->index]); in max16065_set_limit()
243 limit); in max16065_set_limit()
256 data->limit[attr2->nr][attr2->index]); in max16065_show_limit()
615 data->limit[i][j] = LIMIT_TO_MV(val, data->range[j]); in max16065_probe()
Demc1403.c116 unsigned int limit; in show_hyst_common() local
120 retval = regmap_read(regmap, sda->index, &limit); in show_hyst_common()
128 return sprintf(buf, "%d000\n", is_min ? limit + hyst : limit - hyst); in show_hyst_common()
149 unsigned int limit; in store_hyst() local
158 retval = regmap_read(regmap, sda->index, &limit); in store_hyst()
162 hyst = limit * 1000 - val; in store_hyst()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dnv10.c34 tile->limit = max(1u, addr + size) - 1; in nv10_fb_tile_init()
42 tile->limit = 0; in nv10_fb_tile_fini()
51 nvkm_wr32(device, 0x100244 + (i * 0x10), tile->limit); in nv10_fb_tile_prog()
Dnv20.c34 tile->limit = max(1u, addr + size) - 1; in nv20_fb_tile_init()
63 tile->limit = 0; in nv20_fb_tile_fini()
73 nvkm_wr32(device, 0x100244 + (i * 0x10), tile->limit); in nv20_fb_tile_prog()
Dnv44.c35 tile->limit = max(1u, addr + size) - 1; in nv44_fb_tile_init()
43 nvkm_wr32(device, 0x100604 + (i * 0x10), tile->limit); in nv44_fb_tile_prog()
/linux-4.4.14/Documentation/power/regulator/
Doverview.txt13 current limit is controllable).
39 current limit. It only needs to enable or disable its
44 current limit to meet operation demands.
94 - regulator current output limit is 20mA @ 5V but is
103 - Domain-3 current limit is 0mA -> 20mA.
106 dynamically setting voltage or current limit levels.
117 Power Domain: is the new current limit within the domain
121 Regulator Domains: is the new current limit within the
139 get/set voltage, current limit, mode, enable and disable. This should
141 limit. This also compiles out if not in use so drivers can be reused in
Dconsumer.txt101 current limit to match system operating points. e.g. LCD backlight driver can
102 change the current limit to vary the backlight brightness, USB drivers may want
103 to set the limit to 500mA when supplying power.
105 Consumers can control their supply current limit by calling :-
109 Where min_uA and max_uA are the minimum and maximum acceptable current limit in
113 when enabled, then the current limit changes instantly, otherwise the current
114 limit configuration changes and the current limit is physically set when the
117 A regulators current limit can be found by calling :-
121 NOTE: get_current_limit() will return the current limit whether the regulator
/linux-4.4.14/drivers/media/i2c/smiapp/
Dsmiapp-quirk.c48 u32 limit, u32 val) in smiapp_replace_limit() argument
53 smiapp_reg_limits[limit].addr, in smiapp_replace_limit()
54 smiapp_reg_limits[limit].what, val, val); in smiapp_replace_limit()
55 sensor->limits[limit] = val; in smiapp_replace_limit()
/linux-4.4.14/drivers/net/ethernet/ibm/emac/
Dphy.c57 int limit = 10000; in emac_mii_reset_phy() local
66 while (--limit) { in emac_mii_reset_phy()
72 if ((val & BMCR_ISOLATE) && limit > 0) in emac_mii_reset_phy()
75 return limit <= 0; in emac_mii_reset_phy()
81 int limit = 10000; in emac_mii_reset_gpcs() local
90 while (--limit) { in emac_mii_reset_gpcs()
96 if ((val & BMCR_ISOLATE) && limit > 0) in emac_mii_reset_gpcs()
99 if (limit > 0 && phy->mode == PHY_MODE_SGMII) { in emac_mii_reset_gpcs()
106 return limit <= 0; in emac_mii_reset_gpcs()
/linux-4.4.14/drivers/staging/rtl8188eu/core/
Drtw_efuse.c232 u16 limit = *size; in efuse_read_phymap_from_txpktbuf() local
271 limit = min_t(u16, len-2, limit); in efuse_read_phymap_from_txpktbuf()
275 memcpy(pos, ((u8 *)&lo32)+2, (limit >= count+2) ? 2 : limit-count); in efuse_read_phymap_from_txpktbuf()
276 count += (limit >= count+2) ? 2 : limit-count; in efuse_read_phymap_from_txpktbuf()
280 memcpy(pos, ((u8 *)&lo32), (limit >= count+4) ? 4 : limit-count); in efuse_read_phymap_from_txpktbuf()
281 count += (limit >= count+4) ? 4 : limit-count; in efuse_read_phymap_from_txpktbuf()
285 if (limit > count && len-2 > count) { in efuse_read_phymap_from_txpktbuf()
286 memcpy(pos, (u8 *)&hi32, (limit >= count+4) ? 4 : limit-count); in efuse_read_phymap_from_txpktbuf()
287 count += (limit >= count+4) ? 4 : limit-count; in efuse_read_phymap_from_txpktbuf()
291 if (limit <= count || len-2 <= count) in efuse_read_phymap_from_txpktbuf()
/linux-4.4.14/drivers/char/tpm/
Dtpm_eventlog.c77 void *limit = log->bios_event_log_end; in tpm_bios_measurements_start() local
92 if ((addr + sizeof(struct tcpa_event)) < limit) { in tpm_bios_measurements_start()
102 if ((addr + sizeof(struct tcpa_event)) >= limit) in tpm_bios_measurements_start()
112 >= limit)) in tpm_bios_measurements_start()
123 void *limit = log->bios_event_log_end; in tpm_bios_measurements_next() local
132 if ((v + sizeof(struct tcpa_event)) >= limit) in tpm_bios_measurements_next()
141 ((v + sizeof(struct tcpa_event) + converted_event_size) >= limit)) in tpm_bios_measurements_next()
/linux-4.4.14/drivers/atm/
Dambassador.h540 #define NEXTQ(current,start,limit) \ argument
541 ( (current)+1 < (limit) ? (current)+1 : (start) )
547 command * limit; member
568 tx_in * limit; member
573 tx_out * limit; member
586 rx_in * limit; member
591 rx_out * limit; member
Dambassador.c579 ptrs->in = NEXTQ (ptrs->in, ptrs->start, ptrs->limit); in command_do()
613 ptrs->out = NEXTQ (ptrs->out, ptrs->start, ptrs->limit); in command_do()
643 txq->in.ptr = NEXTQ (txq->in.ptr, txq->in.start, txq->in.limit); in tx_give()
674 txq->out.ptr = NEXTQ (txq->out.ptr, txq->out.start, txq->out.limit); in tx_take()
700 rxq->in.ptr = NEXTQ (rxq->in.ptr, rxq->in.start, rxq->in.limit); in rx_give()
728 rxq->out.ptr = NEXTQ (rxq->out.ptr, rxq->out.start, rxq->out.limit); in rx_take()
1516 void * limit; in create_queues() local
1538 limit = memory + total; in create_queues()
1539 PRINTD (DBG_INIT, "queues from %p to %p", memory, limit); in create_queues()
1554 cq->ptrs.limit = cmd + cmds; in create_queues()
[all …]
/linux-4.4.14/drivers/cpufreq/
De_powersaver.c190 unsigned int limit; in eps_cpu_init() local
299 if (!acpi_processor_get_bios_limit(policy->cpu, &limit)) { in eps_cpu_init()
301 limit/1000000, in eps_cpu_init()
302 (limit%1000000)/10000); in eps_cpu_init()
305 if (limit && max_multiplier * fsb > limit) { in eps_cpu_init()
345 centaur->bios_limit = limit; in eps_cpu_init()
/linux-4.4.14/drivers/ata/
Dpata_amd.c277 unsigned long bios_limit = 0, acpi_limit = 0, limit; in nv_mode_filter() local
300 limit = bios_limit | acpi_limit; in nv_mode_filter()
305 if (!(limit & ATA_MASK_PIO)) in nv_mode_filter()
306 limit |= ATA_MASK_PIO; in nv_mode_filter()
307 if (!(limit & (ATA_MASK_MWDMA | ATA_MASK_UDMA))) in nv_mode_filter()
308 limit |= ATA_MASK_MWDMA | ATA_MASK_UDMA; in nv_mode_filter()
311 limit |= ata_pack_xfermask(ATA_PIO4, ATA_MWDMA2, ATA_UDMA2); in nv_mode_filter()
315 xfer_mask, limit, xfer_mask & limit, bios_limit, in nv_mode_filter()
318 return xfer_mask & limit; in nv_mode_filter()
/linux-4.4.14/Documentation/virtual/kvm/devices/
Dvm.txt29 Parameters: in attr->addr the address for the new limit of guest memory
37 Allows userspace to query the actual limit and set a new limit for
38 the maximum guest memory size. The limit will be rounded up to
39 2048 MB, 4096 GB, 8192 TB respectively, as this limit is governed by
75 KVM does not enforce or limit the cpu model data in any form. Take the information
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/ltc/
Dbase.c46 const u32 limit = first + count - 1; in nvkm_ltc_tags_clear() local
48 BUG_ON((first > limit) || (limit >= ltc->num_tags)); in nvkm_ltc_tags_clear()
50 ltc->func->cbc_clear(ltc, first, limit); in nvkm_ltc_tags_clear()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/
Dfalcon.c146 falcon->code.limit = (caps & 0x000001ff) << 8; in nvkm_falcon_oneinit()
147 falcon->data.limit = (caps & 0x0003fe00) >> 1; in nvkm_falcon_oneinit()
151 nvkm_debug(subdev, "code limit: %d\n", falcon->code.limit); in nvkm_falcon_oneinit()
152 nvkm_debug(subdev, "data limit: %d\n", falcon->data.limit); in nvkm_falcon_oneinit()
271 if (falcon->code.size > falcon->code.limit || in nvkm_falcon_init()
272 falcon->data.size > falcon->data.limit) { in nvkm_falcon_init()
296 for (; i < falcon->data.limit; i += 4) in nvkm_falcon_init()
302 for (; i < falcon->data.limit / 4; i++) in nvkm_falcon_init()
/linux-4.4.14/drivers/usb/isp1760/
Disp1760-if.c34 u8 latency, limit; in isp1761_pci_init() local
62 pci_read_config_byte(dev, PCI_MAX_LAT, &limit); in isp1761_pci_init()
63 if (limit && limit < latency) in isp1761_pci_init()
64 pci_write_config_byte(dev, PCI_LATENCY_TIMER, limit); in isp1761_pci_init()
/linux-4.4.14/drivers/mmc/host/
Dcb710-mmc.c149 unsigned limit = 2000000; /* FIXME: real timeout */ in cb710_wait_for_event() local
157 if (!--limit) { in cb710_wait_for_event()
169 limit = 2000000 - limit; in cb710_wait_for_event()
170 if (limit > 100) in cb710_wait_for_event()
173 limit, what, e, x); in cb710_wait_for_event()
181 unsigned limit = 500000; /* FIXME: real timeout */ in cb710_wait_while_busy() local
190 if (!--limit) { in cb710_wait_while_busy()
202 limit = 500000 - limit; in cb710_wait_while_busy()
203 if (limit > 100) in cb710_wait_while_busy()
206 limit, mask, e, x); in cb710_wait_while_busy()
/linux-4.4.14/drivers/scsi/
DNCR5380.h356 unsigned limit; in NCR5380_pc_dma_setup() local
363 limit = 65536 - (bus_addr & 0xFFFF); in NCR5380_pc_dma_setup()
367 limit = 65536 * 2 - (bus_addr & 0x1FFFF); in NCR5380_pc_dma_setup()
370 if (count > limit) in NCR5380_pc_dma_setup()
371 count = limit; in NCR5380_pc_dma_setup()
/linux-4.4.14/arch/arm/include/asm/
Ddma-mapping.h153 u64 limit, mask; in dma_capable() local
160 limit = (mask + 1) & ~mask; in dma_capable()
161 if (limit && size > limit) in dma_capable()
/linux-4.4.14/arch/ia64/sn/pci/
Dtioce_provider.c702 tioce_reserve_m32(struct tioce_kernel *ce_kern, u64 base, u64 limit) in tioce_reserve_m32() argument
710 last_ate = ate_index + ATE_NPAGES(base, limit-base+1, ps) - 1; in tioce_reserve_m32()
801 u64 base, limit; in tioce_kern_init() local
811 limit = (u64)tmp << 16; in tioce_kern_init()
812 limit |= 0xfffffUL; in tioce_kern_init()
814 if (base < limit) in tioce_kern_init()
815 tioce_reserve_m32(tioce_kern, base, limit); in tioce_kern_init()
834 limit = ((u64)tmp & PCI_PREF_RANGE_MASK) << 16; in tioce_kern_init()
835 limit |= 0xfffffUL; in tioce_kern_init()
839 limit |= (u64)tmp << 32; in tioce_kern_init()
[all …]
/linux-4.4.14/drivers/net/ethernet/sun/
Dsungem.c121 int limit = 10000; in __sungem_phy_read() local
130 while (--limit) { in __sungem_phy_read()
138 if (!limit) in __sungem_phy_read()
158 int limit = 10000; in __sungem_phy_write() local
168 while (limit--) { in __sungem_phy_write()
363 int limit, i; in gem_rxmac_reset() local
369 for (limit = 0; limit < 5000; limit++) { in gem_rxmac_reset()
374 if (limit == 5000) { in gem_rxmac_reset()
381 for (limit = 0; limit < 5000; limit++) { in gem_rxmac_reset()
386 if (limit == 5000) { in gem_rxmac_reset()
[all …]
/linux-4.4.14/fs/jfs/
Djfs_types.h157 #define setDASDLIMIT(dasdp, limit)\ argument
159 (dasdp)->limit_hi = ((u64)limit) >> 32;\
160 (dasdp)->limit_lo = __cpu_to_le32(limit);\
/linux-4.4.14/fs/
Dattr.c102 unsigned long limit; in inode_newsize_ok() local
104 limit = rlimit(RLIMIT_FSIZE); in inode_newsize_ok()
105 if (limit != RLIM_INFINITY && offset > limit) in inode_newsize_ok()
/linux-4.4.14/arch/x86/kernel/
Dmachine_kexec_32.c29 static void set_idt(void *newidt, __u16 limit) in set_idt() argument
34 curidt.size = limit; in set_idt()
41 static void set_gdt(void *newgdt, __u16 limit) in set_gdt() argument
46 curgdt.size = limit; in set_gdt()
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-class-led-flash59 has exceeded the limit specific to the flash controller
68 supply has exceeded the limit specific to the flash
73 LED has been below the minimum limit specific to
76 controller is below the limit under which strobing the
80 its allowed upper limit
Dsysfs-class-net-queues62 What: /sys/class/<iface>/queues/tx-<queue>/byte_queue_limits/limit
67 Indicates the current limit of bytes allowed to be queued
76 Indicates the absolute maximum limit of bytes allowed to be
85 Indicates the absolute minimum limit of bytes allowed to be
/linux-4.4.14/drivers/tty/vt/
Dselection.c123 static inline unsigned short limit(const unsigned short v, const unsigned short u) in limit() function
180 xs = limit(xs, vc->vc_cols - 1); in set_selection()
181 ys = limit(ys, vc->vc_rows - 1); in set_selection()
182 xe = limit(xe, vc->vc_cols - 1); in set_selection()
183 ye = limit(ye, vc->vc_rows - 1); in set_selection()
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/engine/
Dfalcon.h19 u32 limit; member
25 u32 limit; member
/linux-4.4.14/arch/powerpc/platforms/pseries/
Diommu.c260 long l, limit; in tce_buildmulti_pSeriesLP() local
299 limit = min_t(long, npages, 4096/TCE_ENTRY_SIZE); in tce_buildmulti_pSeriesLP()
301 for (l = 0; l < limit; l++) { in tce_buildmulti_pSeriesLP()
309 limit); in tce_buildmulti_pSeriesLP()
311 npages -= limit; in tce_buildmulti_pSeriesLP()
312 tcenum += limit; in tce_buildmulti_pSeriesLP()
320 (npages_start - (npages + limit))); in tce_buildmulti_pSeriesLP()
430 long limit; in tce_clearrange_multi_pSeriesLP() local
450 limit = min_t(long, num_tce, 512); in tce_clearrange_multi_pSeriesLP()
455 0, limit); in tce_clearrange_multi_pSeriesLP()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_lib.c329 u16 vmdq_i = adapter->ring_feature[RING_F_VMDQ].limit; in ixgbe_set_dcb_sriov_queues()
392 fcoe_i = min_t(u16, fcoe_i, fcoe->limit); in ixgbe_set_dcb_sriov_queues()
454 rss_i = min_t(int, rss_i, f->limit); in ixgbe_set_dcb_queues()
471 f->indices = min_t(u16, rss_i, f->limit); in ixgbe_set_dcb_queues()
497 u16 vmdq_i = adapter->ring_feature[RING_F_VMDQ].limit; in ixgbe_set_sriov_queues()
499 u16 rss_i = adapter->ring_feature[RING_F_RSS].limit; in ixgbe_set_sriov_queues()
565 fcoe_i = min_t(u16, fcoe_i, fcoe->limit); in ixgbe_set_sriov_queues()
580 fcoe->indices = min_t(u16, fcoe_i, fcoe->limit); in ixgbe_set_sriov_queues()
610 rss_i = f->limit; in ixgbe_set_rss_queues()
626 rss_i = f->indices = f->limit; in ixgbe_set_rss_queues()
[all …]
/linux-4.4.14/net/bridge/netfilter/
Debt_among.c27 int start, limit, i; in ebt_mac_wormhash_contains() local
33 limit = wh->table[key + 1]; in ebt_mac_wormhash_contains()
35 for (i = start; i < limit; i++) { in ebt_mac_wormhash_contains()
42 for (i = start; i < limit; i++) { in ebt_mac_wormhash_contains()
/linux-4.4.14/drivers/net/wireless/rt2x00/
Drt2800mmio.c441 for (i = 0; i < rt2x00dev->tx->limit; i++) { in rt2800mmio_txstatus_interrupt()
655 queue->limit = 128; in rt2800mmio_queue_init()
666 queue->limit = 64; in rt2800mmio_queue_init()
674 queue->limit = 8; in rt2800mmio_queue_init()
751 rt2x00dev->tx[0].limit); in rt2800mmio_init_queues()
759 rt2x00dev->tx[1].limit); in rt2800mmio_init_queues()
767 rt2x00dev->tx[2].limit); in rt2800mmio_init_queues()
775 rt2x00dev->tx[3].limit); in rt2800mmio_init_queues()
793 rt2x00dev->rx[0].limit); in rt2800mmio_init_queues()
795 rt2x00dev->rx[0].limit - 1); in rt2800mmio_init_queues()
Drt2x00mmio.c123 queue->limit * queue->desc_size, &dma, in rt2x00mmio_alloc_queue_dma()
131 for (i = 0; i < queue->limit; i++) { in rt2x00mmio_alloc_queue_dma()
148 queue->limit * queue->desc_size, in rt2x00mmio_free_queue_dma()
Drt2x00queue.h471 unsigned short limit; member
607 return queue->length == queue->limit; in rt2x00queue_full()
616 return queue->limit - queue->length; in rt2x00queue_available()
/linux-4.4.14/arch/ia64/include/asm/
Dmmu_context.h37 unsigned int limit; /* available free range */ member
91 if (ia64_ctx.next >= ia64_ctx.limit) { in get_mmu_context()
94 ia64_ctx.limit = find_next_bit(ia64_ctx.bitmap, in get_mmu_context()
/linux-4.4.14/block/partitions/
Datari.c66 for (slot = 1; pi < &rs->part[4] && slot < state->limit; slot++, pi++) { in atari_partition()
118 if (++slot == state->limit) { in atari_partition()
131 for (; pi < &rs->icdpart[8] && slot < state->limit; slot++, pi++) { in atari_partition()
Dcheck.h20 int limit; member
43 if (n < p->limit) { in put_partition()
Daix.c218 lvip = kcalloc(state->limit, sizeof(struct lv_info), GFP_KERNEL); in aix_partition()
229 for (i = 0; foundlvs < numlvs && i < state->limit; i += 1) { in aix_partition()
256 if (lv_ix >= state->limit) { in aix_partition()
283 for (i = 0; i < state->limit; i += 1) in aix_partition()
Dmsdos.c139 if (state->next == state->limit) in parse_extended()
187 if (++state->next == state->limit) in parse_extended()
248 for (i = 0; i < max_nparts && state->next < state->limit; i++) { in parse_solaris_x86()
297 if (state->next == state->limit) in parse_bsd()
376 if (state->next == state->limit) in parse_unixware()
420 if (state->next == state->limit) in parse_minix()
/linux-4.4.14/drivers/ssb/
Ddriver_chipcommon.c152 int uninitialized_var(limit); in chipco_pctl_clockfreqlimit()
189 limit = 43000; in chipco_pctl_clockfreqlimit()
191 limit = 25000; in chipco_pctl_clockfreqlimit()
195 limit = 20200000; in chipco_pctl_clockfreqlimit()
197 limit = 19800000; in chipco_pctl_clockfreqlimit()
201 limit = 34000000; in chipco_pctl_clockfreqlimit()
203 limit = 25000000; in chipco_pctl_clockfreqlimit()
206 limit /= divisor; in chipco_pctl_clockfreqlimit()
208 return limit; in chipco_pctl_clockfreqlimit()
/linux-4.4.14/fs/nilfs2/
Ddir.c112 unsigned limit = PAGE_CACHE_SIZE; in nilfs_check_page() local
117 limit = dir->i_size & ~PAGE_CACHE_MASK; in nilfs_check_page()
118 if (limit & (chunk_size - 1)) in nilfs_check_page()
120 if (!limit) in nilfs_check_page()
123 for (offs = 0; offs <= limit - NILFS_DIR_REC_LEN(1); offs += rec_len) { in nilfs_check_page()
136 if (offs != limit) in nilfs_check_page()
268 char *kaddr, *limit; in nilfs_readdir() local
280 limit = kaddr + nilfs_last_byte(inode, n) - in nilfs_readdir()
282 for ( ; (char *)de <= limit; de = nilfs_next_entry(de)) { in nilfs_readdir()
/linux-4.4.14/drivers/staging/fwserial/
Ddma_fifo.c193 unsigned len, n, ofs, l, limit; in dma_fifo_out_pend() local
213 limit = min_t(unsigned, l, fifo->tx_limit); in dma_fifo_out_pend()
214 if (n > limit) { in dma_fifo_out_pend()
215 n = limit; in dma_fifo_out_pend()
216 fifo->out += limit; in dma_fifo_out_pend()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Dmain.c91 .limit = 250
95 .limit = 250
99 .limit = 250
103 .limit = 250
107 .limit = 250
111 .limit = 250
115 .limit = 250
119 .limit = 250
123 .limit = 250
127 .limit = 250
[all …]
/linux-4.4.14/Documentation/sysctl/
Dfs.txt89 you might want to raise the limit.
98 want to increase this limit.
110 reported with printk, look for "VFS: file-max limit <number>
118 enough for most machines. Actual limit depends on RLIMIT_NOFILE
119 resource limit.
167 Once this limit is reached, no new pipes may be allocated until usage goes
168 below the limit again. When set to 0, no limit is applied, which is the default
176 before the pipe size gets limited to a single page. Once this limit is reached,
178 limit total memory usage, and trying to increase them using fcntl() will be
179 denied until usage goes below the limit again. The default value allows to
[all …]
/linux-4.4.14/sound/oss/
Dpss.c155 unsigned long i, limit; in pss_write() local
157 limit = jiffies + HZ/10; /* The timeout is 0.1 seconds */ in pss_write()
166 for (i = 0; i < 5000000 && time_before(jiffies, limit); i++) in pss_write()
269 unsigned long i, limit = jiffies + HZ/10; in pss_reset_dsp() local
272 for (i = 0; i < 32768 && time_after_eq(limit, jiffies); i++) in pss_reset_dsp()
314 unsigned long limit; in pss_download_boot() local
321 limit = jiffies + HZ/10; in pss_download_boot()
322 for (i = 0; i < 32768 && time_before(jiffies, limit); i++) in pss_download_boot()
372 limit = jiffies + HZ/10; in pss_download_boot()
373 for (i = 0; i < 32768 && time_after_eq(limit, jiffies); i++) in pss_download_boot()
[all …]
/linux-4.4.14/tools/perf/util/
Dordered-events.c189 u64 limit = oe->next_flush; in __ordered_events__flush() local
191 bool show_progress = limit == ULLONG_MAX; in __ordered_events__flush()
195 if (!limit) in __ordered_events__flush()
205 if (iter->timestamp > limit) in __ordered_events__flush()
220 else if (last_ts <= limit) in __ordered_events__flush()
/linux-4.4.14/Documentation/devicetree/bindings/input/touchscreen/
Dbu21013.txt10 - rohm,touch-max-x : Maximum outward permitted limit in the X axis
11 - rohm,touch-max-y : Maximum outward permitted limit in the Y axis
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
Dbe.h130 static inline u32 MODULO(u16 val, u16 limit) in MODULO() argument
132 BUG_ON(limit & (limit - 1)); in MODULO()
133 return val & (limit - 1); in MODULO()
136 static inline void index_adv(u16 *index, u16 val, u16 limit) in index_adv() argument
138 *index = MODULO((*index + val), limit); in index_adv()
141 static inline void index_inc(u16 *index, u16 limit) in index_inc() argument
143 *index = MODULO((*index + 1), limit); in index_inc()
166 static inline void index_dec(u16 *index, u16 limit) in index_dec() argument
168 *index = MODULO((*index - 1), limit); in index_dec()
/linux-4.4.14/tools/perf/tests/
Ddso-data.c252 int dso_cnt, limit, i, fd; in test__dso_data_cache() local
257 limit = nr * 4; in test__dso_data_cache()
258 TEST_ASSERT_VAL("failed to set file limit", !set_fd_limit(limit)); in test__dso_data_cache()
261 dso_cnt = limit / 2; in test__dso_data_cache()
/linux-4.4.14/drivers/edac/
Dsb_edac.c1037 u64 limit, prv = 0; in get_memory_layout() local
1072 limit = SAD_LIMIT(reg); in get_memory_layout()
1077 if (limit <= prv) in get_memory_layout()
1080 tmp_mb = (limit + 1) >> 20; in get_memory_layout()
1089 prv = limit; in get_memory_layout()
1111 limit = TAD_LIMIT(reg); in get_memory_layout()
1112 if (limit <= prv) in get_memory_layout()
1114 tmp_mb = (limit + 1) >> 20; in get_memory_layout()
1127 prv = limit; in get_memory_layout()
1222 u64 ch_addr, offset, limit = 0, prv = 0; in get_memory_error_data() local
[all …]
/linux-4.4.14/fs/ufs/
Ddir.c114 unsigned limit = PAGE_CACHE_SIZE; in ufs_check_page() local
120 limit = dir->i_size & ~PAGE_CACHE_MASK; in ufs_check_page()
121 if (limit & chunk_mask) in ufs_check_page()
123 if (!limit) in ufs_check_page()
126 for (offs = 0; offs <= limit - UFS_DIR_REC_LEN(1); offs += rec_len) { in ufs_check_page()
142 if (offs != limit) in ufs_check_page()
448 char *kaddr, *limit; in ufs_readdir() local
470 limit = kaddr + ufs_last_byte(inode, n) - UFS_DIR_REC_LEN(1); in ufs_readdir()
471 for ( ;(char*)de <= limit; de = ufs_next_entry(sb, de)) { in ufs_readdir()
/linux-4.4.14/fs/ext2/
Ddir.c121 unsigned limit = PAGE_CACHE_SIZE; in ext2_check_page() local
126 limit = dir->i_size & ~PAGE_CACHE_MASK; in ext2_check_page()
127 if (limit & (chunk_size - 1)) in ext2_check_page()
129 if (!limit) in ext2_check_page()
132 for (offs = 0; offs <= limit - EXT2_DIR_REC_LEN(1); offs += rec_len) { in ext2_check_page()
147 if (offs != limit) in ext2_check_page()
304 char *kaddr, *limit; in ext2_readdir() local
325 limit = kaddr + ext2_last_byte(inode, n) - EXT2_DIR_REC_LEN(1); in ext2_readdir()
326 for ( ;(char*)de <= limit; de = ext2_next_entry(de)) { in ext2_readdir()
/linux-4.4.14/fs/exofs/
Ddir.c88 unsigned limit = PAGE_CACHE_SIZE; in exofs_check_page() local
94 limit = dir->i_size & ~PAGE_CACHE_MASK; in exofs_check_page()
95 if (limit & (chunk_size - 1)) in exofs_check_page()
97 if (!limit) in exofs_check_page()
100 for (offs = 0; offs <= limit - EXOFS_DIR_REC_LEN(1); offs += rec_len) { in exofs_check_page()
113 if (offs != limit) in exofs_check_page()
250 char *kaddr, *limit; in exofs_readdir() local
271 limit = kaddr + exofs_last_byte(inode, n) - in exofs_readdir()
273 for (; (char *)de <= limit; de = exofs_next_entry(de)) { in exofs_readdir()
/linux-4.4.14/drivers/infiniband/hw/mlx5/
Dmr.c234 if (var < ent->limit) in size_write()
303 ent->limit = var; in limit_write()
305 if (ent->cur < ent->limit) { in limit_write()
306 err = add_keys(dev, c, 2 * ent->limit - ent->cur); in limit_write()
324 err = snprintf(lbuf, sizeof(lbuf), "%d\n", ent->limit); in limit_read()
348 if (cache->ent[i].cur < cache->ent[i].limit) in someone_adding()
366 if (ent->cur < 2 * ent->limit && !dev->fill_delay) { in __cache_work_func()
368 if (ent->cur < 2 * ent->limit) { in __cache_work_func()
383 } else if (ent->cur > 2 * ent->limit) { in __cache_work_func()
399 if (ent->cur > ent->limit) in __cache_work_func()
[all …]
/linux-4.4.14/drivers/net/wireless/iwlwifi/
Diwl-debug.c116 u32 level, bool limit, const char *function, in __iwl_dbg() argument
128 (!limit || net_ratelimit())) in __iwl_dbg()
/linux-4.4.14/Documentation/devicetree/bindings/net/
Dmarvell-armada-370-neta.txt12 - tx-csum-limit: maximum mtu supported by port that allow TX checksum.
23 tx-csum-limit = <9800>
/linux-4.4.14/include/acpi/
Dprocessor.h187 u8 limit:1; member
210 struct acpi_processor_limit limit; member
279 extern int acpi_processor_get_bios_limit(int cpu, unsigned int *limit);
302 static inline int acpi_processor_get_bios_limit(int cpu, unsigned int *limit) in acpi_processor_get_bios_limit() argument
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dchang84.c138 u64 limit, start; in g84_fifo_chan_engine_init() local
144 limit = engn->addr + engn->size - 1; in g84_fifo_chan_engine_init()
149 nvkm_wo32(chan->eng, offset + 0x04, lower_32_bits(limit)); in g84_fifo_chan_engine_init()
151 nvkm_wo32(chan->eng, offset + 0x0c, upper_32_bits(limit) << 24 | in g84_fifo_chan_engine_init()
Dchannv50.c107 u64 limit, start; in nv50_fifo_chan_engine_init() local
113 limit = engn->addr + engn->size - 1; in nv50_fifo_chan_engine_init()
118 nvkm_wo32(chan->eng, offset + 0x04, lower_32_bits(limit)); in nv50_fifo_chan_engine_init()
120 nvkm_wo32(chan->eng, offset + 0x0c, upper_32_bits(limit) << 24 | in nv50_fifo_chan_engine_init()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dsrq.c190 srq->limit = srq_init_attr->attr.srq_limit; in hfi1_create_srq()
244 attr->srq_limit : srq->limit) > attr->max_wr) { in hfi1_modify_srq()
317 srq->limit = attr->srq_limit; in hfi1_modify_srq()
355 srq->limit = attr->srq_limit; in hfi1_modify_srq()
374 attr->srq_limit = srq->limit; in hfi1_query_srq()
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_srq.c177 srq->limit = srq_init_attr->attr.srq_limit; in ipath_create_srq()
231 attr->srq_limit : srq->limit) > attr->max_wr) { in ipath_modify_srq()
304 srq->limit = attr->srq_limit; in ipath_modify_srq()
338 srq->limit = attr->srq_limit; in ipath_modify_srq()
357 attr->srq_limit = srq->limit; in ipath_query_srq()
/linux-4.4.14/arch/x86/xen/
Dsetup.c549 unsigned long limit; in xen_get_pages_limit() local
552 limit = GB(64) / PAGE_SIZE; in xen_get_pages_limit()
554 limit = MAXMEM / PAGE_SIZE; in xen_get_pages_limit()
556 limit = GB(512) / PAGE_SIZE; in xen_get_pages_limit()
558 return limit; in xen_get_pages_limit()
563 unsigned long max_pages, limit; in xen_get_max_pages() local
567 limit = xen_get_pages_limit(); in xen_get_max_pages()
568 max_pages = limit; in xen_get_max_pages()
585 return min(max_pages, limit); in xen_get_max_pages()
/linux-4.4.14/fs/qnx6/
Ddir.c128 int limit = last_entry(inode, n); in qnx6_readdir() local
138 for (; i < limit; i++, de++, ctx->pos += QNX6_DIR_ENTRY_SIZE) { in qnx6_readdir()
236 int limit = last_entry(dir, n); in qnx6_find_entry() local
240 for (i = 0; i < limit; i++, de++) { in qnx6_find_entry()
/linux-4.4.14/arch/arm64/mm/
Dmmu.c353 phys_addr_t limit; in map_mem() local
365 limit = PHYS_OFFSET + SWAPPER_INIT_MAP_SIZE; in map_mem()
366 memblock_set_current_limit(limit); in map_mem()
387 if (start < limit) in map_mem()
389 if (end < limit) { in map_mem()
390 limit = end & SECTION_MASK; in map_mem()
391 memblock_set_current_limit(limit); in map_mem()
/linux-4.4.14/Documentation/devicetree/bindings/power/
Dbq24257.txt24 - ti,current-limit: The maximum current to be drawn from the charger's input
25 (in uA). If this property is not specified, the input limit current is
61 ti,current-limit = <900000>;
/linux-4.4.14/drivers/input/serio/
Dapbps2.c109 int limit; in apbps2_open() local
116 limit = 1024; in apbps2_open()
117 while ((ioread32be(&priv->regs->status) & APBPS2_STATUS_DR) && --limit) in apbps2_open()
/linux-4.4.14/drivers/staging/lustre/lustre/ldlm/
Dldlm_pool.c226 static void ldlm_pool_set_limit(struct ldlm_pool *pl, __u32 limit) in ldlm_pool_set_limit() argument
228 atomic_set(&pl->pl_limit, limit); in ldlm_pool_set_limit()
451 __u32 limit; in lprocfs_pool_state_seq_show() local
456 limit = ldlm_pool_get_limit(pl); in lprocfs_pool_state_seq_show()
473 granted, limit); in lprocfs_pool_state_seq_show()
507 LDLM_POOL_SYSFS_READER_NOLOCK_SHOW(limit, atomic);
508 LDLM_POOL_SYSFS_WRITER_NOLOCK_STORE(limit, atomic);
509 LUSTRE_RW_ATTR(limit);
/linux-4.4.14/drivers/idle/
Di7300_idle.c396 u8 limit; in i7300_idle_start() local
401 limit = throttle_low_limit; in i7300_idle_start()
402 if (unlikely(limit > MAX_THROTTLE_LOW_LIMIT)) in i7300_idle_start()
403 limit = MAX_THROTTLE_LOW_LIMIT; in i7300_idle_start()
405 pci_write_config_byte(fbd_dev, DIMM_THRTLOW, limit); in i7300_idle_start()
/linux-4.4.14/arch/powerpc/platforms/pasemi/
Ddma_lib.c115 int start, limit; in pasemi_alloc_tx_chan() local
120 limit = 10; in pasemi_alloc_tx_chan()
124 limit = MAX_TXCH; in pasemi_alloc_tx_chan()
128 limit = MAX_TXCH; in pasemi_alloc_tx_chan()
133 if (bit >= limit) in pasemi_alloc_tx_chan()
/linux-4.4.14/drivers/media/tuners/
Dtda18271-maps.c959 u16 limit; member
963 { .rfmax = 46000, .target = 0x04, .limit = 1800 },
964 { .rfmax = 52200, .target = 0x0a, .limit = 1500 },
965 { .rfmax = 70100, .target = 0x01, .limit = 4000 },
966 { .rfmax = 136800, .target = 0x18, .limit = 4000 },
967 { .rfmax = 156700, .target = 0x18, .limit = 4000 },
968 { .rfmax = 186250, .target = 0x0a, .limit = 4000 },
969 { .rfmax = 230000, .target = 0x0a, .limit = 4000 },
970 { .rfmax = 345000, .target = 0x18, .limit = 4000 },
971 { .rfmax = 426000, .target = 0x0e, .limit = 4000 },
[all …]

12345