/linux-master/drivers/media/tuners/ |
H A D | tda18271-common.c | 186 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 D | ip6t_frag.c | 24 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 D | mem2node.c | 52 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 D | resource.c | 157 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 D | swapfile.c | 40 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 D | sh-cpufreq.c | 60 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 D | speedstep-centrino.c | 67 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 D | sar.c | 46 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 D | oct_ilm.c | 33 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 D | swap_cgroup.c | 43 unsigned long idx, max; local 58 max = idx; 59 for (idx = 0; idx < max; idx++)
|
/linux-master/drivers/char/hw_random/ |
H A D | s390-trng.c | 174 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 D | histb-rng.c | 22 #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 D | amd-rng.c | 62 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 D | meson-rng.c | 26 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 D | npcm-rng.c | 54 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 D | tracex2_user.c | 18 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 D | regcache-rbtree.c | 389 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 D | cpufreq_schedutil.c | 147 * @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 D | perf.c | 74 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 D | mlock-random-test.c | 27 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 D | mtk-mdp3-regs.c | 92 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 D | intel_fixed.h | 55 uint_fixed_16_16_t max = { .val = max(max1.val, max2.val) }; local 57 return max;
|
/linux-master/drivers/media/pci/cx88/ |
H A D | cx88-dsp.c | 202 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 D | scatterlist.c | 215 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 D | pv88060-regulator.c | 145 #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,\
|