Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 127) sorted by relevance

123456

/arch/frv/kernel/
Duaccess.c22 unsigned long max; in strncpy_from_user() local
39 max = get_addr_limit() - (unsigned long) src; in strncpy_from_user()
40 if ((unsigned long) count > max) { in strncpy_from_user()
41 memset(dst + max, 0, count - max); in strncpy_from_user()
42 count = max; in strncpy_from_user()
/arch/alpha/oprofile/
Dop_model_ev5.c93 unsigned long max, hilo, count = ctr[i].count; in common_reg_setup() local
98 count = 256, hilo = 3, max = 256; in common_reg_setup()
100 max = (i == 2 ? 16384 : 65536); in common_reg_setup()
102 if (count > max) in common_reg_setup()
103 count = max; in common_reg_setup()
108 reset |= (max - count) << (48 - 16*i); in common_reg_setup()
109 if (count != max) in common_reg_setup()
/arch/x86/kernel/cpu/
Dtransmeta.c22 unsigned int cap_mask, uk, max, dummy; in init_transmeta() local
32 max = cpuid_eax(0x80860000); in init_transmeta()
34 if (max >= 0x80860001) { in init_transmeta()
45 if (max >= 0x80860002) { in init_transmeta()
58 if (max >= 0x80860006) { in init_transmeta()
/arch/powerpc/platforms/powermac/
Dbacklight.c79 int i, max = 0; in pmac_backlight_curve_lookup() local
83 max = max((int)info->bl_curve[i], max); in pmac_backlight_curve_lookup()
88 if (diff < max) { in pmac_backlight_curve_lookup()
89 max = diff; in pmac_backlight_curve_lookup()
/arch/powerpc/kernel/
Dsmp-tbsync.c114 int i, score, score2, old, min=0, max=5000, offset=1000; in smp_generic_give_timebase() local
129 for (old = -1; old != offset ; offset = (min+max) / 2) { in smp_generic_give_timebase()
135 max = offset; in smp_generic_give_timebase()
141 score2 = start_contest(kSetAndTest, max, NUM_ITER); in smp_generic_give_timebase()
144 min, score, max, score2); in smp_generic_give_timebase()
147 offset = (score < score2) ? min : max; in smp_generic_give_timebase()
Diomap.c120 void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max) in pci_iomap() argument
128 if (max && len > max) in pci_iomap()
129 len = max; in pci_iomap()
/arch/arm/lib/
Ddelay.S29 ldr r2, [r2] @ max = 0x01ffffff
30 mov r0, r0, lsr #14 @ max = 0x0001ffff
31 mov r2, r2, lsr #10 @ max = 0x00007fff
32 mul r0, r2, r0 @ max = 2^32-1
/arch/sh/kernel/
Dcpufreq.c58 if (freq < (policy->min * 1000) || freq > (policy->max * 1000)) in sh_cpufreq_target()
96 policy->max = policy->cpuinfo.max_freq; in sh_cpufreq_cpu_init()
103 if (unlikely(policy->min == policy->max)) { in sh_cpufreq_cpu_init()
114 policy->max / 1000, policy->max % 1000); in sh_cpufreq_cpu_init()
/arch/x86/kernel/cpu/cpufreq/
Dgx-suspmod.c349 if (policy->min > policy->max) in cpufreq_gx_verify()
350 policy->max = tmp_freq; in cpufreq_gx_verify()
351 tmp_freq = gx_validate_speed(policy->max, &tmp1, &tmp2); in cpufreq_gx_verify()
352 if (tmp_freq > policy->max) in cpufreq_gx_verify()
354 policy->max = tmp_freq; in cpufreq_gx_verify()
355 if (policy->max < policy->min) in cpufreq_gx_verify()
356 policy->max = policy->min; in cpufreq_gx_verify()
383 while (tmp_freq > policy->max) { in cpufreq_gx_target()
421 policy->max = maxfreq; in cpufreq_gx_cpu_init()
Dcpufreq-nforce2.c258 if ((target_freq > policy->max) || (target_freq < policy->min)) in nforce2_target()
301 fsb_pol_max = policy->max / (fid * 100); in nforce2_verify()
304 policy->max = (fsb_pol_max + 1) * fid * 100; in nforce2_verify()
367 policy->max = policy->cpuinfo.max_freq; in nforce2_cpu_init()
Dspeedstep-centrino.c199 #define _BANIAS(cpuid, max, name) \ argument
202 .max_freq = (max)*1000, \
203 .op_points = banias_##max, \
205 #define BANIAS(max) _BANIAS(&cpu_ids[CPU_BANIAS], max, #max) argument
/arch/arm/mach-integrator/
Dcpu.c62 vco = icst525_khz_to_vco(&cclk_params, policy->max); in integrator_verify_policy()
63 policy->max = icst525_khz(&cclk_params, vco); in integrator_verify_policy()
115 if (target_freq > policy->max) in integrator_set_target()
116 target_freq = policy->max; in integrator_set_target()
190 policy->cur = policy->min = policy->max = integrator_get(policy->cpu); in integrator_cpufreq_init()
/arch/arm/plat-omap/
Dcpu-omap.c49 policy->max = clk_round_rate(mpu_clk, policy->max * 1000) / 1000; in omap_verify_speed()
92 policy->cur = policy->min = policy->max = omap_getspeed(0); in omap_cpu_init()
/arch/x86/kernel/cpu/mtrr/
Dif.c38 int reg, max; in mtrr_file_add() local
41 max = num_var_ranges; in mtrr_file_add()
43 fcount = kzalloc(max * sizeof *fcount, GFP_KERNEL); in mtrr_file_add()
341 int i, max; in mtrr_close() local
345 max = num_var_ranges; in mtrr_close()
346 for (i = 0; i < max; ++i) { in mtrr_close()
387 int i, max, len; in mtrr_seq_show() local
392 max = num_var_ranges; in mtrr_seq_show()
393 for (i = 0; i < max; i++) { in mtrr_seq_show()
Dcentaur.c27 int i, max; in centaur_get_free_region() local
31 max = num_var_ranges; in centaur_get_free_region()
32 if (replace_reg >= 0 && replace_reg < max) in centaur_get_free_region()
34 for (i = 0; i < max; ++i) { in centaur_get_free_region()
/arch/powerpc/platforms/pseries/
Dpci_dlpar.c105 int slotno, num, mode, pass, max; in pcibios_add_pci_devices() local
125 max = bus->secondary; in pcibios_add_pci_devices()
130 max = pci_scan_bridge(bus, dev, max, pass); in pcibios_add_pci_devices()
/arch/alpha/kernel/
Dirq_srm.c62 init_srm_irqs(long max, unsigned long ignore_mask) in init_srm_irqs() argument
68 for (i = 16; i < max; ++i) { in init_srm_irqs()
/arch/um/os-Linux/
Dtime.c63 int remain, max = UM_NSEC_PER_SEC / UM_HZ; in disable_timer() local
70 if (remain > max) in disable_timer()
71 remain = max; in disable_timer()
/arch/ia64/kernel/
Dsetup.c173 range_start = max(start, prev_start); in filter_rsvd_memory()
212 sort_regions (struct rsvd_region *rsvd_region, int max) in sort_regions() argument
217 while (max--) { in sort_regions()
218 for (j = 0; j < max; ++j) { in sort_regions()
872 unsigned long line_size, max = 1; in get_cache_info() local
881 max = SMP_CACHE_BYTES; in get_cache_info()
896 max = SMP_CACHE_BYTES; in get_cache_info()
907 if (line_size > max) in get_cache_info()
908 max = line_size; in get_cache_info()
926 if (max > ia64_max_cacheline_size) in get_cache_info()
[all …]
/arch/parisc/kernel/
Dirq.c201 unsigned int k, avg, min, max; in show_interrupts() local
203 min = max = action->cr16_hist[0]; in show_interrupts()
213 if (hist > max) max = hist; in show_interrupts()
219 min,avg,max); in show_interrupts()
/arch/arm/mach-pxa/
Dcm-x270.c220 .max = 1200,
225 .max = 1200,
230 .max = 32,
/arch/avr32/mach-at32ap/
Dcpufreq.c57 if(freq < (policy->min * 1000) || freq > (policy->max * 1000)) in at32_set_target()
103 policy->max = policy->cpuinfo.max_freq; in at32_cpufreq_driver_init()
/arch/powerpc/sysdev/
Dcpm_common.c80 resource_size_t max = 0; in cpm_muram_init() local
110 if (r.end > max) in cpm_muram_init()
111 max = r.end; in cpm_muram_init()
117 muram_vbase = ioremap(muram_pbase, max - muram_pbase + 1); in cpm_muram_init()
/arch/blackfin/mach-bf548/include/mach/
Dbf54x-lq043.h7 unsigned int max; member
/arch/arm/mach-sa1100/
Dcpu-sa1100.c192 if (sa11x0_ppcr_to_freq(new_ppcr) > policy->max) in sa1100_target()
226 policy->cur = policy->min = policy->max = sa11x0_getspeed(0); in sa1100_cpu_init()

123456