Searched refs:max (Results 351 - 375 of 3298) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/media/tuners/
H A Dtda18271-common.c186 int i, ret = 1, max; local
192 max = 3;
195 max = 8;
198 max = 16;
202 max = 39;
219 if (max > len)
220 max = len;
223 for (i = 1; i <= max; i++)
226 msg.len = max + 1;
233 idx += max;
[all...]
/linux-master/net/ipv6/netfilter/
H A Dip6t_frag.c24 id_match(u_int32_t min, u_int32_t max, u_int32_t id, bool invert) argument
28 min, id, max);
29 r = (id >= min && id <= max) ^ invert;
/linux-master/tools/perf/util/
H A Dmem2node.c52 int i, j = 0, max = 0; local
59 max += bitmap_weight(n->set, n->size);
62 entries = zalloc(sizeof(*entries) * max);
/linux-master/drivers/infiniband/hw/cxgb4/
H A Dresource.c157 if (rdev->stats.qid.cur > rdev->stats.qid.max)
158 rdev->stats.qid.max = rdev->stats.qid.cur;
231 if (rdev->stats.qid.cur > rdev->stats.qid.max)
232 rdev->stats.qid.max = rdev->stats.qid.cur;
272 if (rdev->stats.pbl.cur > rdev->stats.pbl.max)
273 rdev->stats.pbl.max = rdev->stats.pbl.cur;
354 if (rdev->stats.rqt.cur > rdev->stats.rqt.max)
355 rdev->stats.rqt.max = rdev->stats.rqt.cur;
439 if (rdev->stats.srqt.cur > rdev->stats.srqt.max)
440 rdev->stats.srqt.max
[all...]
/linux-master/fs/iomap/
H A Dswapfile.c40 if (unlikely(isi->nr_pages >= isi->sis->max))
42 max_pages = isi->sis->max - isi->nr_pages;
190 sis->max = isi.nr_pages;
/linux-master/drivers/cpufreq/
H A Dsh-cpufreq.c60 if (freq < (policy->min * 1000) || freq > (policy->max * 1000))
101 policy->max = (clk_round_rate(cpuclk, ~0UL) + 500) / 1000;
131 policy->max = policy->cpuinfo.max_freq =
H A Dspeedstep-centrino.c67 unsigned max_freq; /* max clock in kHz */
200 #define _BANIAS(cpuid, max, name) \
203 .max_freq = (max)*1000, \
204 .op_points = banias_##max, \
206 #define BANIAS(max) _BANIAS(&cpu_ids[CPU_BANIAS], max, #max)
263 pr_debug("found \"%s\": max frequency: %dkHz\n",
/linux-master/drivers/net/wireless/realtek/rtw88/
H A Dsar.c46 u8 max = rtwdev->chip->max_power_index; local
55 return (s8)clamp_t(s32, tmp, -max - 1, max) - base;
/linux-master/arch/mips/cavium-octeon/
H A Doct_ilm.c33 u64 cpuclk, avg, max, min; local
38 max = (curr_li.max_latency * 1000000000) / cpuclk;
42 seq_printf(m, "cnt: %10lld, avg: %7lld ns, max: %7lld ns, min: %7lld ns\n",
43 curr_li.interrupt_cnt, avg, max, min);
/linux-master/mm/
H A Dswap_cgroup.c43 unsigned long idx, max; local
58 max = idx;
59 for (idx = 0; idx < max; idx++)
/linux-master/drivers/char/hw_random/
H A Ds390-trng.c174 static int trng_hwrng_read(struct hwrng *rng, void *data, size_t max, bool wait) argument
176 size_t len = max <= PAGE_SIZE ? max : PAGE_SIZE;
H A Dhistb-rng.c22 #define DATA_COUNT GENMASK(2, 0) /* max 4 */
60 static int histb_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) argument
65 for (int i = 0; i < max; i += sizeof(u32)) {
78 return max;
H A Damd-rng.c62 static int amd_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) argument
68 int timeout = max / 4 + 1;
75 while (read < max) {
H A Dmeson-rng.c26 int (*read)(struct hwrng *rng, void *buf, size_t max, bool wait);
35 static int meson_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) argument
59 static int meson_s4_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) argument
H A Dnpcm-rng.c54 static int npcm_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) argument
62 while (max) {
79 max--;
/linux-master/samples/bpf/
H A Dtracex2_user.c18 static void stars(char *str, long val, long max, int width) argument
22 for (i = 0; i < (width * val / max) - 1 && i < width - 1; i++)
24 if (val > max)
/linux-master/drivers/base/regmap/
H A Dregcache-rbtree.c389 unsigned int min, max; local
399 max = reg + max_dist;
410 if (base_reg <= max && top_reg >= min) {
421 new_top_reg = max(reg, top_reg);
466 unsigned int max)
483 if (base_reg > max)
493 if (max < top_reg)
494 end = (max - base_reg) / map->reg_stride + 1;
511 unsigned int max)
525 if (base_reg > max)
465 regcache_rbtree_sync(struct regmap *map, unsigned int min, unsigned int max) argument
510 regcache_rbtree_drop(struct regmap *map, unsigned int min, unsigned int max) argument
[all...]
/linux-master/kernel/sched/
H A Dcpufreq_schedutil.c147 * @max: CPU capacity.
152 * next_freq = C * max_freq * util / max
157 * next_freq = C * curr_freq * util_raw / max
159 * Take C = 1.25 for the frequency tipping point at (util / max) = 0.8.
162 * next_freq (as calculated above) is returned, subject to policy min/max and
166 unsigned long util, unsigned long max)
172 freq = map_util_freq(util, freq, max);
183 unsigned long max)
187 /* Actually we don't need to target the max performance */
188 if (actual < max)
165 get_next_freq(struct sugov_policy *sg_policy, unsigned long util, unsigned long max) argument
181 sugov_effective_cpu_perf(int cpu, unsigned long actual, unsigned long min, unsigned long max) argument
200 unsigned long min, max, util = cpu_util_cfs_boost(sg_cpu->cpu); local
[all...]
/linux-master/drivers/iommu/intel/
H A Dperf.c74 u64 min, max; local
96 max = lstat[type].counter[COUNTS_MAX];
98 lstat[type].counter[COUNTS_MAX] = max_t(u64, max, latency);
108 " min(us)", " max(us)", " average(us)"
/linux-master/tools/testing/selftests/mm/
H A Dmlock-random-test.c27 int set_cap_limits(rlim_t max) argument
32 new.rlim_cur = max;
33 new.rlim_max = max;
/linux-master/drivers/media/platform/mediatek/mdp3/
H A Dmtk-mdp3-regs.c92 static int mdp_clamp_align(s32 *x, int min, int max, unsigned int align) argument
96 if (min < 0 || max < 0)
103 max = max & mask;
104 if ((unsigned int)min > (unsigned int)max)
107 /* Clamp to aligned min and max */
108 *x = clamp(*x, min, max);
211 static int mdp_clamp_start(s32 *x, int min, int max, unsigned int align, argument
215 max = *x;
218 return mdp_clamp_align(x, min, max, alig
221 mdp_clamp_end(s32 *x, int min, int max, unsigned int align, u32 flags) argument
[all...]
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_fixed.h55 uint_fixed_16_16_t max = { .val = max(max1.val, max2.val) }; local
57 return max;
/linux-master/drivers/media/pci/cx88/
H A Dcx88-dsp.c202 if ((carrier > max(stereo, dual) * 2) &&
203 (carrier < max(stereo, dual) * 6) &&
205 (max(stereo, dual) > min(stereo, dual))) {
213 if ((carrier > max(stereo, dual) * 2) &&
214 (carrier < max(stereo, dual) * 8) &&
217 (max(stereo, dual) > min(stereo, dual) * 2)) {
/linux-master/drivers/gpu/drm/i915/selftests/
H A Dscatterlist.c215 unsigned long count, unsigned long max,
224 if (overflows_type(max, unsigned int))
227 if (sg_alloc_table(&pt->st, max,
328 const unsigned long max = PAGE_SIZE; /* not prime! */ local
333 for_each_prime_number(prime, max) {
341 err = alloc_table(&pt, prime, max, *npages, &prng,
214 alloc_table(struct pfn_table *pt, unsigned long count, unsigned long max, npages_fn_t npages_fn, struct rnd_state *rnd, int alloc_error) argument
/linux-master/drivers/regulator/
H A Dpv88060-regulator.c145 #define PV88060_BUCK(chip, regl_name, min, step, max, limits_array) \
157 .n_voltages = ((max) - (min))/(step) + 1,\
170 #define PV88060_LDO(chip, regl_name, min, step, max) \
182 .n_voltages = (step) ? ((max - min) / step + 1) : 1, \
190 #define PV88060_SW(chip, regl_name, max) \
200 .fixed_uV = max,\

Completed in 412 milliseconds

<<11121314151617181920>>