Home
last modified time | relevance | path

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

12345

/linux-4.1.27/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.1.27/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.c109 unsigned long n, end, start, limit, boundary_size; in iommu_tbl_range_alloc() local
146 limit = pool->end; in iommu_tbl_range_alloc()
154 if (start >= limit) in iommu_tbl_range_alloc()
157 if (limit + shift > mask) { in iommu_tbl_range_alloc()
158 limit = mask - shift + 1; in iommu_tbl_range_alloc()
163 if ((start & mask) >= limit || pass > 0) { in iommu_tbl_range_alloc()
189 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.1.27/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.1.27/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 ? : 1; 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()
138 q->limit = pkt_limit * psched_mtu(qdisc_dev(sch)); in plug_init()
145 q->limit = ctl->limit; in plug_init()
202 q->limit = msg->limit; in plug_change()
Dsch_sfb.c65 u32 limit; /* HARD maximal queue length */ member
292 if (unlikely(sch->q.qlen >= q->limit)) { in sfb_enqueue()
299 unsigned long limit = q->rehash_time + q->rehash_interval; in sfb_enqueue() local
301 if (unlikely(time_after(jiffies, limit))) { in sfb_enqueue()
305 time_after(jiffies, limit - q->warmup_time))) { in sfb_enqueue()
482 .limit = 0,
497 u32 limit; in sfb_change() local
511 limit = ctl->limit; in sfb_change()
512 if (limit == 0) in sfb_change()
513 limit = max_t(u32, qdisc_dev(sch)->tx_queue_len, 1); 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()
445 sch->limit = q->params.limit; in pie_init()
473 nla_put_u32(skb, TCA_PIE_LIMIT, sch->limit) || in pie_dump()
Dsch_codel.c98 if (likely(qdisc_qlen(sch) < sch->limit)) { in codel_qdisc_enqueue()
143 sch->limit = nla_get_u32(tb[TCA_CODEL_LIMIT]); in codel_change()
149 while (sch->q.qlen > sch->limit) { in codel_change()
165 sch->limit = DEFAULT_CODEL_LIMIT; in codel_init()
178 if (sch->limit >= 1) in codel_init()
198 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()
262 .limit = q->limit, in red_dump()
Dsch_tbf.c103 u32 limit; /* Maximal length of backlog: bytes */ member
389 err = fifo_set_limit(q->qdisc, qopt->limit); in tbf_change()
392 } else if (qopt->limit > 0) { in tbf_change()
393 child = fifo_create_dflt(sch, &bfifo_qdisc_ops, qopt->limit); in tbf_change()
406 q->limit = qopt->limit; in tbf_change()
461 opt.limit = q->limit; in tbf_dump()
Dsch_choke.c53 u32 limit; member
331 if (sch->q.qlen < q->limit) { in choke_enqueue()
434 if (ctl->limit > CHOKE_MAX_QUEUE) in choke_change()
437 mask = roundup_pow_of_two(ctl->limit + 1) - 1; in choke_change()
478 q->limit = ctl->limit; in choke_change()
504 .limit = q->limit, in choke_dump()
Dsch_sfq.c119 int limit; /* limit of total number of packets in this qdisc */ member
483 if (++sch->q.qlen <= q->limit) in sfq_enqueue()
686 if (ctl->limit) { in sfq_change()
687 q->limit = min_t(u32, ctl->limit, q->maxdepth * q->maxflows); in sfq_change()
688 q->maxflows = min_t(u32, q->maxflows, q->limit); in sfq_change()
692 while (sch->q.qlen > q->limit) in sfq_change()
746 q->limit = SFQ_MAX_DEPTH; in sfq_init()
776 if (q->limit >= 1) in sfq_init()
793 opt.v0.limit = q->limit; in sfq_dump()
/linux-4.1.27/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.1.27/net/netfilter/
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.1.27/drivers/clk/bcm/
Dclk-kona-setup.c31 u32 limit; in ccu_data_offsets_valid() local
33 limit = ccu->range - sizeof(u32); in ccu_data_offsets_valid()
34 limit = round_down(limit, sizeof(u32)); in ccu_data_offsets_valid()
36 if (ccu_policy->enable.offset > limit) { in ccu_data_offsets_valid()
39 ccu->name, ccu_policy->enable.offset, limit); in ccu_data_offsets_valid()
42 if (ccu_policy->control.offset > limit) { in ccu_data_offsets_valid()
45 ccu->name, ccu_policy->control.offset, limit); in ccu_data_offsets_valid()
90 u32 limit; in peri_clk_data_offsets_valid() local
97 limit = range - sizeof(u32); in peri_clk_data_offsets_valid()
98 limit = round_down(limit, sizeof(u32)); in peri_clk_data_offsets_valid()
[all …]
/linux-4.1.27/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
Dw83792d51 triggered if the rotation speed has dropped below a programmable limit. Fan
57 or maximum limit.
132 exceeds the high limit (T+tolerance), the fan will be turned on with a
136 (1) If the temperature still exceeds the high limit, PWM duty
139 (2) If the temperature goes below the high limit, but still above the low
140 limit (T-tolerance), the fan speed will be fixed at the current speed because
143 (3) If the temperature goes below the low limit, PWM duty cycle will decrease
145 limit. (The preset stop value handling is not yet implemented in driver)
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
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.1.27/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.1.27/mm/
Dnobootmem.c36 u64 goal, u64 limit) in __alloc_memory_core_early() argument
41 if (limit > memblock.current_limit) in __alloc_memory_core_early()
42 limit = memblock.current_limit; in __alloc_memory_core_early()
44 addr = memblock_find_in_range_node(size, align, goal, limit, nid); in __alloc_memory_core_early()
224 unsigned long limit) in ___alloc_bootmem_nopanic() argument
233 ptr = __alloc_memory_core_early(NUMA_NO_NODE, size, align, goal, limit); in ___alloc_bootmem_nopanic()
262 unsigned long limit = -1UL; in __alloc_bootmem_nopanic() local
264 return ___alloc_bootmem_nopanic(size, align, goal, limit); in __alloc_bootmem_nopanic()
268 unsigned long goal, unsigned long limit) in ___alloc_bootmem() argument
270 void *mem = ___alloc_bootmem_nopanic(size, align, goal, limit); in ___alloc_bootmem()
[all …]
Dbootmem.c495 unsigned long goal, unsigned long limit) in alloc_bootmem_bdata() argument
502 align, goal, limit); in alloc_bootmem_bdata()
506 BUG_ON(limit && goal + size > limit); in alloc_bootmem_bdata()
515 limit >>= PAGE_SHIFT; in alloc_bootmem_bdata()
517 if (limit && max > limit) in alloc_bootmem_bdata()
518 max = limit; in alloc_bootmem_bdata()
603 unsigned long limit) in alloc_bootmem_core() argument
614 if (limit && bdata->node_min_pfn >= PFN_DOWN(limit)) in alloc_bootmem_core()
617 region = alloc_bootmem_bdata(bdata, size, align, goal, limit); in alloc_bootmem_core()
628 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()
320 limit = highmem_start; in cma_declare_contiguous()
325 limit); in cma_declare_contiguous()
Dslab.c191 unsigned int limit; member
462 .limit = BOOT_CPUCACHE_ENTRIES,
660 static void init_arraycache(struct array_cache *ac, int limit, int batch) in init_arraycache() argument
672 ac->limit = limit; in init_arraycache()
815 int nr = min3(from->avail, max, to->limit - to->avail); in transfer_objects()
834 int limit, gfp_t gfp) in alloc_alien_cache() argument
882 static struct alien_cache **alloc_alien_cache(int node, int limit, gfp_t gfp) in alloc_alien_cache() argument
888 if (limit > 1) in alloc_alien_cache()
889 limit = 12; in alloc_alien_cache()
897 alc_ptr[i] = __alloc_alien_cache(node, limit, 0xbaadf00d, gfp); in alloc_alien_cache()
[all …]
Dpage-writeback.c325 unsigned long limit = zone_dirty_limit(zone); in zone_dirty_ok() local
329 zone_page_state(zone, NR_WRITEBACK) <= limit; in zone_dirty_ok()
577 unsigned long limit) in pos_ratio_polynom() argument
583 (limit - setpoint) | 1); in pos_ratio_polynom()
676 unsigned long limit = hard_dirty_limit(thresh); in bdi_position_ratio() local
684 if (unlikely(dirty >= limit)) in bdi_position_ratio()
692 setpoint = (freerun + limit) / 2; in bdi_position_ratio()
693 pos_ratio = pos_ratio_polynom(setpoint, dirty, limit); in bdi_position_ratio()
805 bdi_thresh = max(bdi_thresh, (limit - dirty) / 8); in bdi_position_ratio()
898 unsigned long limit = global_dirty_limit; in update_dirty_limit() local
[all …]
Dmemcontrol.c1359 unsigned long limit; in mem_cgroup_margin() local
1362 limit = READ_ONCE(memcg->memory.limit); in mem_cgroup_margin()
1363 if (count < limit) in mem_cgroup_margin()
1364 margin = limit - count; in mem_cgroup_margin()
1368 limit = READ_ONCE(memcg->memsw.limit); in mem_cgroup_margin()
1369 if (count <= limit) in mem_cgroup_margin()
1370 margin = min(margin, limit - count); in mem_cgroup_margin()
1464 K((u64)memcg->memory.limit), memcg->memory.failcnt); in mem_cgroup_print_oom_info()
1467 K((u64)memcg->memsw.limit), memcg->memsw.failcnt); in mem_cgroup_print_oom_info()
1470 K((u64)memcg->kmem.limit), memcg->kmem.failcnt); in mem_cgroup_print_oom_info()
[all …]
/linux-4.1.27/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);
Dsislands_smc.h407 const u8 *src, u32 byte_count, u32 limit);
416 int si_load_smc_ucode(struct radeon_device *rdev, u32 limit);
418 u32 *value, u32 limit);
420 u32 value, u32 limit);
/linux-4.1.27/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 int cpu, limit; in allocate_pacas() local
214 limit = min(0x10000000ULL, ppc64_rma_size); in allocate_pacas()
218 paca = __va(memblock_alloc_base(paca_size, PAGE_SIZE, limit)); in allocate_pacas()
224 allocate_lppacas(nr_cpu_ids, limit); in allocate_pacas()
[all …]
Dsetup_64.c583 u64 limit = safe_stack_limit(); in irqstack_early_init() local
593 THREAD_SIZE, limit)); in irqstack_early_init()
596 THREAD_SIZE, limit)); in irqstack_early_init()
634 u64 limit; in emergency_stack_init() local
646 limit = min(safe_stack_limit(), ppc64_rma_size); in emergency_stack_init()
650 sp = memblock_alloc_base(THREAD_SIZE, THREAD_SIZE, limit); in emergency_stack_init()
656 sp = memblock_alloc_base(THREAD_SIZE, THREAD_SIZE, limit); in emergency_stack_init()
/linux-4.1.27/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()
Dxfs_rtalloc.h107 xfs_rtblock_t start, xfs_rtblock_t limit,
110 xfs_rtblock_t start, xfs_rtblock_t limit,
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/Documentation/devicetree/bindings/leds/
Dleds-pm8941-wled.txt15 - qcom,current-limit: mA; per-string current limit; value from 0 to 25
17 - qcom,current-boost-limit: mA; boost current limit; one of:
24 - qcom,ovp: V; Over-voltage protection limit; one of:
38 qcom,current-limit = <20>;
39 qcom,current-boost-limit = <805>;
/linux-4.1.27/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.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dshadowacpi.c51 u32 limit = (offset + length + 0xfff) & ~0xfff; in acpi_read_fast() local
53 u32 fetch = limit - start; in acpi_read_fast()
55 if (nvbios_extend(bios, limit) >= 0) { in acpi_read_fast()
72 u32 limit = (offset + length + 0xfff) & ~0xfff; in acpi_read_slow() local
76 if (nvbios_extend(bios, limit) >= 0) { in acpi_read_slow()
77 while (start + fetch < limit) { in acpi_read_slow()
Dshadow.c44 const u32 limit = (upto + 3) & ~3; in shadow_fetch() local
47 if (nvbios_extend(bios, limit) > 0) { in shadow_fetch()
48 u32 read = mthd->func->read(data, start, limit - start, bios); in shadow_fetch()
51 return bios->size >= limit; in shadow_fetch()
/linux-4.1.27/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()
218 return tlbcam_addrs[tlbcam_index - 1].limit - PAGE_OFFSET + 1; in mmu_mapin_ram()
253 phys_addr_t limit = first_memblock_base + first_memblock_size; in setup_initial_memory_limit() local
256 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.1.27/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.1.27/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.1.27/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.1.27/fs/configfs/
Ditem.c69 int limit = CONFIGFS_ITEM_NAME_LEN; in config_item_set_name() local
78 need = vsnprintf(item->ci_namebuf, limit, fmt, args); in config_item_set_name()
80 if (need < limit) in config_item_set_name()
86 limit = need + 1; in config_item_set_name()
87 name = kmalloc(limit, GFP_KERNEL); in config_item_set_name()
93 need = vsnprintf(name, limit, fmt, args); in config_item_set_name()
97 if (need >= limit) { in config_item_set_name()
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
Dldlm_pool.c223 int granted, grant_step, limit; in ldlm_pool_recalc_grant_plan() local
225 limit = ldlm_pool_get_limit(pl); in ldlm_pool_recalc_grant_plan()
229 grant_step = ((limit - granted) * grant_step) / 100; in ldlm_pool_recalc_grant_plan()
231 limit = (limit * 5) >> 2; in ldlm_pool_recalc_grant_plan()
232 if (pl->pl_grant_plan > limit) in ldlm_pool_recalc_grant_plan()
233 pl->pl_grant_plan = limit; in ldlm_pool_recalc_grant_plan()
249 __u32 limit; in ldlm_pool_recalc_slv() local
253 limit = ldlm_pool_get_limit(pl); in ldlm_pool_recalc_slv()
255 round_up = granted < limit; in ldlm_pool_recalc_slv()
257 grant_usage = max_t(int, limit - (granted - grant_plan), 1); in ldlm_pool_recalc_slv()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_chan.c139 args.limit = cli->vm->mmu->limit - 1; in nouveau_channel_prep()
150 args.limit = args.start + device->info.ram_user - 1; in nouveau_channel_prep()
155 args.limit = device->info.ram_user - 1; in nouveau_channel_prep()
162 args.limit = chan->drm->agp.base + in nouveau_channel_prep()
168 args.limit = mmu->limit - 1; in nouveau_channel_prep()
298 args.limit = cli->vm->mmu->limit - 1; in nouveau_channel_init()
303 args.limit = device->info.ram_user - 1; in nouveau_channel_init()
316 args.limit = cli->vm->mmu->limit - 1; in nouveau_channel_init()
322 args.limit = chan->drm->agp.base + in nouveau_channel_init()
328 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.1.27/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))))
Duaccess.h44 static inline bool __chk_range_not_ok(unsigned long addr, unsigned long size, unsigned long limit) in __chk_range_not_ok() argument
54 return addr > limit - size; in __chk_range_not_ok()
60 return addr > limit; in __chk_range_not_ok()
63 #define __range_not_ok(addr, size, limit) \ argument
66 __chk_range_not_ok((unsigned long __force)(addr), size, limit); \
/linux-4.1.27/Documentation/devicetree/bindings/misc/
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.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bar/
Dnv50.c114 u64 start, limit; in nv50_bar_ctor() local
140 limit = start + nv_device_resource_len(device, 3); in nv50_bar_ctor()
142 ret = nvkm_vm_new(device, start, limit, start, &vm); in nv50_bar_ctor()
149 ((limit-- - start) >> 12) * 8, 0x1000, in nv50_bar_ctor()
165 nv_wo32(priv->bar3, 0x04, lower_32_bits(limit)); in nv50_bar_ctor()
167 nv_wo32(priv->bar3, 0x0c, upper_32_bits(limit) << 24 | in nv50_bar_ctor()
174 limit = start + nv_device_resource_len(device, 1); in nv50_bar_ctor()
176 ret = nvkm_vm_new(device, start, limit--, start, &vm); in nv50_bar_ctor()
192 nv_wo32(priv->bar1, 0x04, lower_32_bits(limit)); in nv50_bar_ctor()
194 nv_wo32(priv->bar1, 0x0c, upper_32_bits(limit) << 24 | in nv50_bar_ctor()
/linux-4.1.27/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.1.27/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.1.27/drivers/tty/serial/
Dsunhv.c78 int limit = 10000; in receive_chars_getchar() local
80 while (limit-- > 0) { in receive_chars_getchar()
121 int limit = 10000; in receive_chars_read() local
123 while (limit-- > 0) { in receive_chars_read()
269 int limit = 10000; in sunhv_send_xchar() local
276 while (limit-- > 0) { in sunhv_send_xchar()
296 int limit = 10000; in sunhv_break_ctl() local
300 while (limit-- > 0) { in sunhv_break_ctl()
448 int limit = 1000000; in sunhv_console_write_paged() local
450 while (limit--) { in sunhv_console_write_paged()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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
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 …]
Dunified-hierarchy.txt45 In practice, these issues heavily limit which controllers can be put
58 There's no limit on how many hierarchies there may be, which means
330 - The original lower boundary, the soft limit, is defined as a limit
335 basic desirable behavior. First off, the soft limit has no
339 impossible. Second, the soft limit reclaim pass is so aggressive
357 - The original high boundary, the hard limit, is defined as a strict
358 limit that can not budge, even if the OOM killer has to be called.
362 that with a strict upper limit requires either a fairly accurate
363 prediction of the working set size or adding slack to the limit.
366 side of a looser limit and end up wasting precious resources.
[all …]
/linux-4.1.27/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()
Dinternal.h167 extern void keyring_gc(struct key *keyring, time_t limit);
207 static inline bool key_is_dead(const struct key *key, time_t limit) in key_is_dead() argument
212 (key->expiry > 0 && key->expiry <= limit); in key_is_dead()
/linux-4.1.27/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()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/staging/rtl8712/
Dieee80211.c113 u8 *r8712_get_ie(u8 *pbuf, sint index, sint *len, sint limit) in r8712_get_ie() argument
118 if (limit < 1) in r8712_get_ie()
131 if (i >= limit) in r8712_get_ie()
218 unsigned char *r8712_get_wpa_ie(unsigned char *pie, int *wpa_ie_len, int limit) in r8712_get_wpa_ie() argument
226 pbuf = r8712_get_ie(pbuf, _WPA_IE_ID_, &len, limit); in r8712_get_wpa_ie()
243 limit = limit - (pbuf - pie) - 2 - len; in r8712_get_wpa_ie()
244 if (limit <= 0) in r8712_get_wpa_ie()
252 unsigned char *r8712_get_wpa2_ie(unsigned char *pie, int *rsn_ie_len, int limit) in r8712_get_wpa2_ie() argument
254 return r8712_get_ie(pie, _WPA2_IE_ID_, rsn_ie_len, limit); in r8712_get_wpa2_ie()
/linux-4.1.27/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.1.27/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.1.27/drivers/gpu/drm/nouveau/nvkm/engine/dmaobj/
Dbase.c84 args->v0.start, args->v0.limit); in nvkm_dmaobj_create_()
88 dmaobj->limit = args->v0.limit; in nvkm_dmaobj_create_()
95 if (dmaobj->start > dmaobj->limit) in nvkm_dmaobj_create_()
104 if (dmaobj->limit >= pfb->ram->size - instmem->reserved) in nvkm_dmaobj_create_()
/linux-4.1.27/arch/x86/math-emu/
Dget_address.c139 unsigned long base_address, limit, address, seg_top; in pm_address() local
163 limit = base_address in pm_address()
165 if (limit < base_address) in pm_address()
166 limit = 0xffffffff; in pm_address()
177 (address <= limit) || (address >= seg_top) ? 0 : in pm_address()
181 (address > limit) || (address < base_address) ? 0 : in pm_address()
182 ((limit - address) >= 254 ? 255 : limit - address + 1); in pm_address()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/
Dfalcon.c96 falcon->code.limit = (caps & 0x000001ff) << 8; in _nvkm_falcon_init()
97 falcon->data.limit = (caps & 0x0003fe00) >> 1; in _nvkm_falcon_init()
101 nv_debug(falcon, "code limit: %d\n", falcon->code.limit); in _nvkm_falcon_init()
102 nv_debug(falcon, "data limit: %d\n", falcon->data.limit); in _nvkm_falcon_init()
197 if (falcon->code.size > falcon->code.limit || in _nvkm_falcon_init()
198 falcon->data.size > falcon->data.limit) { in _nvkm_falcon_init()
222 for (; i < falcon->data.limit; i += 4) in _nvkm_falcon_init()
228 for (; i < falcon->data.limit / 4; i++) in _nvkm_falcon_init()
/linux-4.1.27/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.1.27/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
277 __u32 limit; /* HARD maximal queue length (bytes) */ member
317 __u32 limit; /* Hard queue length (packets) */ member
536 __u32 limit; /* fifo limit (packets) */ member
640 __u32 limit; /* max SFB queue length */ member
/linux-4.1.27/fs/minix/
Ddir.c104 char *p, *kaddr, *limit; in minix_readdir() local
111 limit = kaddr + minix_last_byte(inode, n) - chunk_size; in minix_readdir()
112 for ( ; p <= limit; p = minix_next_entry(p, sbi)) { in minix_readdir()
172 char *kaddr, *limit; in minix_find_entry() local
179 limit = kaddr + minix_last_byte(dir, n) - sbi->s_dirsize; in minix_find_entry()
180 for (p = kaddr; p <= limit; p = minix_next_entry(p, sbi)) { in minix_find_entry()
228 char *limit, *dir_end; in minix_add_link() local
237 limit = kaddr + PAGE_CACHE_SIZE - sbi->s_dirsize; in minix_add_link()
238 for (p = kaddr; p <= limit; p = minix_next_entry(p, sbi)) { in minix_add_link()
374 char *p, *kaddr, *limit; in minix_empty_dir() local
[all …]
/linux-4.1.27/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.1.27/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.1.27/fs/freevxfs/
Dvxfs_lookup.c135 caddr_t baddr, limit; in vxfs_find_entry() local
140 limit = baddr + bsize - VXFS_DIRLEN(1); in vxfs_find_entry()
145 for (; (caddr_t)de <= limit; de = vxfs_next_entry(de)) { in vxfs_find_entry()
279 char *baddr, *limit; in vxfs_readdir() local
284 limit = baddr + bsize - VXFS_DIRLEN(1); in vxfs_readdir()
292 for (; (char *)de <= limit; de = vxfs_next_entry(de)) { in vxfs_readdir()
/linux-4.1.27/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()
Dnct7802.c142 u8 reg_fan_high, unsigned int limit) in nct7802_write_fan_min() argument
146 if (limit) in nct7802_write_fan_min()
147 limit = DIV_ROUND_CLOSEST(1350000U, limit); in nct7802_write_fan_min()
149 limit = 0x1fff; in nct7802_write_fan_min()
150 limit = clamp_val(limit, 0, 0x1fff); in nct7802_write_fan_min()
153 err = regmap_write(data->regmap, reg_fan_low, limit & 0xff); in nct7802_write_fan_min()
157 err = regmap_write(data->regmap, reg_fan_high, (limit & 0x1f00) >> 5); in nct7802_write_fan_min()
/linux-4.1.27/drivers/char/tpm/
Dtpm_eventlog.c77 void *limit = log->bios_event_log_end; in tpm_bios_measurements_start() local
84 if ((addr + sizeof(struct tcpa_event)) < limit) { in tpm_bios_measurements_start()
92 if ((addr + sizeof(struct tcpa_event)) >= limit) in tpm_bios_measurements_start()
98 ((addr + sizeof(struct tcpa_event) + event->event_size) >= limit)) in tpm_bios_measurements_start()
109 void *limit = log->bios_event_log_end; in tpm_bios_measurements_next() local
114 if ((v + sizeof(struct tcpa_event)) >= limit) in tpm_bios_measurements_next()
123 ((v + sizeof(struct tcpa_event) + event->event_size) >= limit)) in tpm_bios_measurements_next()
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_efuse.c232 u16 limit = *size; in efuse_read_phymap_from_txpktbuf() local
271 limit = (len-2 < limit) ? 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.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dnv10.c33 tile->limit = max(1u, addr + size) - 1; in nv10_fb_tile_init()
41 tile->limit = 0; in nv10_fb_tile_fini()
49 nv_wr32(pfb, 0x100244 + (i * 0x10), tile->limit); in nv10_fb_tile_prog()
Dnv20.c33 tile->limit = max(1u, addr + size) - 1; in nv20_fb_tile_init()
62 tile->limit = 0; in nv20_fb_tile_fini()
71 nv_wr32(pfb, 0x100244 + (i * 0x10), tile->limit); in nv20_fb_tile_prog()
Dnv44.c34 tile->limit = max(1u, addr + size) - 1; in nv44_fb_tile_init()
41 nv_wr32(pfb, 0x100604 + (i * 0x10), tile->limit); in nv44_fb_tile_prog()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/ltc/
Dbase.c51 const u32 limit = first + count - 1; in nvkm_ltc_tags_clear() local
53 BUG_ON((first > limit) || (limit >= priv->num_tags)); in nvkm_ltc_tags_clear()
55 impl->cbc_clear(priv, first, limit); in nvkm_ltc_tags_clear()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/net/ethernet/mellanox/mlx5/core/
Dmain.c93 .limit = 250
97 .limit = 250
101 .limit = 250
105 .limit = 250
109 .limit = 250
113 .limit = 250
117 .limit = 250
121 .limit = 250
125 .limit = 250
129 .limit = 250
[all …]
/linux-4.1.27/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.1.27/arch/powerpc/platforms/pseries/
Diommu.c191 long l, limit; in tce_buildmulti_pSeriesLP() local
230 limit = min_t(long, npages, 4096/TCE_ENTRY_SIZE); in tce_buildmulti_pSeriesLP()
232 for (l = 0; l < limit; l++) { in tce_buildmulti_pSeriesLP()
240 limit); in tce_buildmulti_pSeriesLP()
242 npages -= limit; in tce_buildmulti_pSeriesLP()
243 tcenum += limit; in tce_buildmulti_pSeriesLP()
251 (npages_start - (npages + limit))); in tce_buildmulti_pSeriesLP()
358 long limit; in tce_clearrange_multi_pSeriesLP() local
378 limit = min_t(long, num_tce, 512); in tce_clearrange_multi_pSeriesLP()
383 0, limit); in tce_clearrange_multi_pSeriesLP()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/spi/
Dspi-pxa2xx-pxadma.c120 unsigned long limit = loops_per_jiffy << 1; in wait_ssp_rx_stall() local
122 while ((pxa2xx_spi_read(drv_data, SSSR) & SSSR_BSY) && --limit) in wait_ssp_rx_stall()
125 return limit; in wait_ssp_rx_stall()
130 unsigned long limit = loops_per_jiffy << 1; in wait_dma_channel_stop() local
132 while (!(DCSR(channel) & DCSR_STOPSTATE) && --limit) in wait_dma_channel_stop()
135 return limit; in wait_dma_channel_stop()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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()
Dcheck.c130 state->limit = nr; in allocate_partitions()
165 memset(state->parts, 0, state->limit * sizeof(state->parts[0])); in check_partition()
/linux-4.1.27/fs/nilfs2/
Ddir.c117 unsigned limit = PAGE_CACHE_SIZE; in nilfs_check_page() local
122 limit = dir->i_size & ~PAGE_CACHE_MASK; in nilfs_check_page()
123 if (limit & (chunk_size - 1)) in nilfs_check_page()
125 if (!limit) in nilfs_check_page()
128 for (offs = 0; offs <= limit - NILFS_DIR_REC_LEN(1); offs += rec_len) { in nilfs_check_page()
141 if (offs != limit) in nilfs_check_page()
273 char *kaddr, *limit; in nilfs_readdir() local
285 limit = kaddr + nilfs_last_byte(inode, n) - in nilfs_readdir()
287 for ( ; (char *)de <= limit; de = nilfs_next_entry(de)) { in nilfs_readdir()
/linux-4.1.27/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.1.27/arch/arm64/mm/
Dmmu.c347 phys_addr_t limit; in map_mem() local
360 limit = PHYS_OFFSET + PMD_SIZE; in map_mem()
362 limit = PHYS_OFFSET + PUD_SIZE; in map_mem()
363 memblock_set_current_limit(limit); in map_mem()
381 if (start < limit) in map_mem()
383 if (end < limit) { in map_mem()
384 limit = end & PMD_MASK; in map_mem()
385 memblock_set_current_limit(limit); in map_mem()
/linux-4.1.27/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.1.27/drivers/edac/
Dsb_edac.c966 u64 limit, prv = 0; in get_memory_layout() local
1001 limit = SAD_LIMIT(reg); in get_memory_layout()
1006 if (limit <= prv) in get_memory_layout()
1009 tmp_mb = (limit + 1) >> 20; in get_memory_layout()
1018 prv = limit; in get_memory_layout()
1040 limit = TAD_LIMIT(reg); in get_memory_layout()
1041 if (limit <= prv) in get_memory_layout()
1043 tmp_mb = (limit + 1) >> 20; in get_memory_layout()
1056 prv = limit; in get_memory_layout()
1151 u64 ch_addr, offset, limit = 0, prv = 0; in get_memory_error_data() local
[all …]
/linux-4.1.27/arch/x86/platform/uv/
Duv_irq.c131 unsigned long mmr_offset, int limit) in arch_enable_uv_irq() argument
151 if (limit == UV_AFFINITY_CPU) in arch_enable_uv_irq()
239 unsigned long mmr_offset, int limit) in uv_setup_irq() argument
247 limit); in uv_setup_irq()
/linux-4.1.27/tools/testing/selftests/x86/
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.1.27/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.1.27/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()
Ddso.c386 rlim_t limit = 0; in get_fd_limit() local
391 limit = l.rlim_cur; in get_fd_limit()
393 limit = l.rlim_cur / 2; in get_fd_limit()
396 limit = 1; in get_fd_limit()
399 return limit; in get_fd_limit()
404 static rlim_t limit; in may_cache_fd() local
406 if (!limit) in may_cache_fd()
407 limit = get_fd_limit(); in may_cache_fd()
409 if (limit == RLIM_INFINITY) in may_cache_fd()
412 return limit > (rlim_t) dso__data_open_cnt; in may_cache_fd()
/linux-4.1.27/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.1.27/drivers/net/ethernet/emulex/benet/
Dbe.h126 static inline u32 MODULO(u16 val, u16 limit) in MODULO() argument
128 BUG_ON(limit & (limit - 1)); in MODULO()
129 return val & (limit - 1); in MODULO()
132 static inline void index_adv(u16 *index, u16 val, u16 limit) in index_adv() argument
134 *index = MODULO((*index + val), limit); in index_adv()
137 static inline void index_inc(u16 *index, u16 limit) in index_inc() argument
139 *index = MODULO((*index + 1), limit); in index_inc()
162 static inline void index_dec(u16 *index, u16 limit) in index_dec() argument
164 *index = MODULO((*index - 1), limit); in index_dec()
/linux-4.1.27/arch/s390/mm/
Dpgtable.c59 int crst_table_upgrade(struct mm_struct *mm, unsigned long limit) in crst_table_upgrade() argument
65 BUG_ON(limit > (1UL << 53)); in crst_table_upgrade()
72 if (mm->context.asce_limit < limit) { in crst_table_upgrade()
97 if (mm->context.asce_limit < limit) in crst_table_upgrade()
104 void crst_table_downgrade(struct mm_struct *mm, unsigned long limit) in crst_table_downgrade() argument
112 while (mm->context.asce_limit > limit) { in crst_table_downgrade()
147 struct gmap *gmap_alloc(struct mm_struct *mm, unsigned long limit) in gmap_alloc() argument
154 if (limit < (1UL << 31)) { in gmap_alloc()
155 limit = (1UL << 31) - 1; in gmap_alloc()
158 } else if (limit < (1UL << 42)) { in gmap_alloc()
[all …]
/linux-4.1.27/tools/perf/tests/
Ddso-data.c241 int dso_cnt, limit, i, fd; in test__dso_data_cache() local
246 limit = nr * 4; in test__dso_data_cache()
247 TEST_ASSERT_VAL("failed to set file limit", !set_fd_limit(limit)); in test__dso_data_cache()
250 dso_cnt = limit / 2; in test__dso_data_cache()
/linux-4.1.27/include/acpi/
Dprocessor.h187 u8 limit:1; member
210 struct acpi_processor_limit limit; member
282 extern int acpi_processor_get_bios_limit(int cpu, unsigned int *limit);
305 static inline int acpi_processor_get_bios_limit(int cpu, unsigned int *limit) in acpi_processor_get_bios_limit() argument
/linux-4.1.27/arch/arm/include/asm/
Ddma-mapping.h151 u64 limit, mask; in dma_capable() local
158 limit = (mask + 1) & ~mask; in dma_capable()
159 if (limit && size > limit) in dma_capable()
/linux-4.1.27/fs/exofs/
Ddir.c94 unsigned limit = PAGE_CACHE_SIZE; in exofs_check_page() local
100 limit = dir->i_size & ~PAGE_CACHE_MASK; in exofs_check_page()
101 if (limit & (chunk_size - 1)) in exofs_check_page()
103 if (!limit) in exofs_check_page()
106 for (offs = 0; offs <= limit - EXOFS_DIR_REC_LEN(1); offs += rec_len) { in exofs_check_page()
119 if (offs != limit) in exofs_check_page()
256 char *kaddr, *limit; in exofs_readdir() local
277 limit = kaddr + exofs_last_byte(inode, n) - in exofs_readdir()
279 for (; (char *)de <= limit; de = exofs_next_entry(de)) { in exofs_readdir()
/linux-4.1.27/fs/ufs/
Ddir.c117 unsigned limit = PAGE_CACHE_SIZE; in ufs_check_page() local
123 limit = dir->i_size & ~PAGE_CACHE_MASK; in ufs_check_page()
124 if (limit & chunk_mask) in ufs_check_page()
126 if (!limit) in ufs_check_page()
129 for (offs = 0; offs <= limit - UFS_DIR_REC_LEN(1); offs += rec_len) { in ufs_check_page()
145 if (offs != limit) in ufs_check_page()
451 char *kaddr, *limit; in ufs_readdir() local
473 limit = kaddr + ufs_last_byte(inode, n) - UFS_DIR_REC_LEN(1); in ufs_readdir()
474 for ( ;(char*)de <= limit; de = ufs_next_entry(sb, de)) { in ufs_readdir()
/linux-4.1.27/fs/ext2/
Ddir.c126 unsigned limit = PAGE_CACHE_SIZE; in ext2_check_page() local
131 limit = dir->i_size & ~PAGE_CACHE_MASK; in ext2_check_page()
132 if (limit & (chunk_size - 1)) in ext2_check_page()
134 if (!limit) in ext2_check_page()
137 for (offs = 0; offs <= limit - EXT2_DIR_REC_LEN(1); offs += rec_len) { in ext2_check_page()
152 if (offs != limit) in ext2_check_page()
309 char *kaddr, *limit; in ext2_readdir() local
330 limit = kaddr + ext2_last_byte(inode, n) - EXT2_DIR_REC_LEN(1); in ext2_readdir()
331 for ( ;(char*)de <= limit; de = ext2_next_entry(de)) { in ext2_readdir()
/linux-4.1.27/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()
387 if (ent->cur > ent->limit) in __cache_work_func()
[all …]
/linux-4.1.27/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()
Diwl-debug.h79 u32 level, bool limit, const char *function,
84 u32 level, bool limit, const char *function, in __iwl_dbg() argument
95 #define __IWL_DEBUG_DEV(dev, level, limit, fmt, args...) \ argument
98 __iwl_dbg(dev, level, limit, __func__, fmt, ##args); \
/linux-4.1.27/Documentation/devicetree/bindings/video/backlight/
Dsky81452-backlight.txt17 - skyworks,current-limit-mA
28 skyworks,current-limit-mA = <2300>;
/linux-4.1.27/drivers/infiniband/hw/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.1.27/fs/qnx6/
Ddir.c133 int limit = last_entry(inode, n); in qnx6_readdir() local
143 for (; i < limit; i++, de++, ctx->pos += QNX6_DIR_ENTRY_SIZE) { in qnx6_readdir()
241 int limit = last_entry(dir, n); in qnx6_find_entry() local
245 for (i = 0; i < limit; i++, de++) { in qnx6_find_entry()
/linux-4.1.27/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.1.27/drivers/gpu/drm/nouveau/include/nvkm/engine/
Dfalcon.h42 u32 limit; member
48 u32 limit; member
/linux-4.1.27/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.1.27/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.1.27/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 …]
/linux-4.1.27/fs/fuse/
Dcontrol.c78 unsigned limit = (1 << 16) - 1; in fuse_conn_limit_write() local
89 limit = min(limit, global_limit); in fuse_conn_limit_write()
91 if (t > limit) in fuse_conn_limit_write()
/linux-4.1.27/arch/metag/kernel/
Ddma.c181 u64 limit; in dma_alloc_coherent() local
192 limit = (mask + 1) & ~mask; in dma_alloc_coherent()
193 if ((limit && size >= limit) in dma_alloc_coherent()
/linux-4.1.27/crypto/
Dtea.c138 u32 limit = XTEA_DELTA * XTEA_ROUNDS; in xtea_encrypt() local
146 while (sum != limit) { in xtea_encrypt()
182 u32 limit = XTEA_DELTA * XTEA_ROUNDS; in xeta_encrypt() local
190 while (sum != limit) { in xeta_encrypt()
Dalgif_hash.c45 int limit = ALG_MAX_PAGES * PAGE_SIZE; in hash_sendmsg() local
52 if (limit > sk->sk_sndbuf) in hash_sendmsg()
53 limit = sk->sk_sndbuf; in hash_sendmsg()
68 if (len > limit) in hash_sendmsg()
69 len = limit; in hash_sendmsg()
/linux-4.1.27/Documentation/devicetree/bindings/power/
Dbq2415x.txt18 - ti,current-limit: integer, initial maximum current charger can pull
39 ti,current-limit = <100>;
/linux-4.1.27/include/net/
Dpkt_sched.h83 int fifo_set_limit(struct Qdisc *q, unsigned int limit);
85 unsigned int limit);
/linux-4.1.27/drivers/video/backlight/
Dpcf50633-backlight.c45 int pcf50633_bl_set_brightness_limit(struct pcf50633 *pcf, unsigned int limit) in pcf50633_bl_set_brightness_limit() argument
52 pcf_bl->brightness_limit = limit & 0x3f; in pcf50633_bl_set_brightness_limit()
/linux-4.1.27/drivers/misc/sgi-gru/
Dgrumain.c108 int i, gid, inuse_asid, limit; in gru_reset_asid_limit() local
112 limit = MAX_ASID; in gru_reset_asid_limit()
113 if (asid >= limit) in gru_reset_asid_limit()
127 if (asid >= limit) { in gru_reset_asid_limit()
132 limit = MAX_ASID; in gru_reset_asid_limit()
139 if ((inuse_asid > asid) && (inuse_asid < limit)) in gru_reset_asid_limit()
140 limit = inuse_asid; in gru_reset_asid_limit()
142 gru->gs_asid_limit = limit; in gru_reset_asid_limit()
145 asid, limit); in gru_reset_asid_limit()

12345