Symbol: max
arch/alpha/kernel/irq_srm.c
46
init_srm_irqs(long max, unsigned long ignore_mask)
arch/alpha/kernel/irq_srm.c
52
for (i = 16; i < max; ++i) {
arch/alpha/kernel/pci_impl.h
186
extern unsigned long size_for_memory(unsigned long max);
arch/alpha/kernel/pci_iommu.c
166
mask = max(align, arena->align_entry) - 1;
arch/alpha/kernel/pci_iommu.c
51
size_for_memory(unsigned long max)
arch/alpha/kernel/pci_iommu.c
54
if (mem < max)
arch/alpha/kernel/pci_iommu.c
55
max = roundup_pow_of_two(mem);
arch/alpha/kernel/pci_iommu.c
56
return max;
arch/alpha/kernel/time.c
289
unsigned int min, max;
arch/alpha/kernel/time.c
324
if (cpu_hz[index].max == 0)
arch/alpha/kernel/time.c
328
|| cc > cpu_hz[index].max + deviation)
arch/arc/kernel/unwind.c
1178
endLoc = max(STACK_LIMIT(cfa), cfa);
arch/arm/include/asm/efi.h
74
#define EFI_PHYS_ALIGN max(UL(SZ_2M), roundup_pow_of_two(TEXT_OFFSET))
arch/arm/kernel/cacheinfo.c
47
return 8 << max(FIELD_GET(CTR_ISIZE_LEN_MASK, ctr),
arch/arm/mach-omap2/vp.c
62
vddmin = max(voltdm->vp_param->vddmin, voltdm->pmic->vddmin);
arch/arm/mach-pxa/pxa2xx.c
48
sdram_rows = 1 << (11 + max(drac0, drac2));
arch/arm/mach-shmobile/timer.c
24
max_freq = max(max_freq, freq);
arch/arm/mm/dma-mapping.c
1245
unsigned int max = dma_get_max_seg_size(dev);
arch/arm/mm/dma-mapping.c
1252
if (s->offset || (size & ~PAGE_MASK) || size + s->length > max) {
arch/arm/mm/pmsa-v7.c
363
return __ffs(max(drbar_result, irbar_result));
arch/arm64/include/asm/fpsimd.h
300
unsigned int vl = max(sve_vl, sme_vl);
arch/arm64/include/asm/fpsimdmacros.h
90
.macro _check_num n, min, max
arch/arm64/include/asm/kvm_host.h
1592
#define kvm_has_feat_range(kvm, id, fld, min, max) \
arch/arm64/include/asm/kvm_host.h
1594
kvm_cmp_feat(kvm, id, fld, <=, max))
arch/arm64/kernel/armv8_deprecated.c
53
int max;
arch/arm64/kernel/armv8_deprecated.c
546
insn->max = INSN_HW;
arch/arm64/kernel/armv8_deprecated.c
550
insn->max = INSN_EMULATE;
arch/arm64/kernel/armv8_deprecated.c
554
insn->max = INSN_UNDEF;
arch/arm64/kernel/armv8_deprecated.c
570
sysctl->extra2 = &insn->max;
arch/arm64/kernel/cpufeature.c
1599
int val, min, max;
arch/arm64/kernel/cpufeature.c
1616
max = cpuid_feature_extract_field_width(tmp, entry->field_pos,
arch/arm64/kernel/cpufeature.c
1620
return val >= min && val <= max;
arch/arm64/kernel/cpufeature.c
946
ret = max(new, cur);
arch/arm64/kernel/module-plts.c
232
dstsec->sh_addralign = max(dstsec->sh_addralign,
arch/arm64/kernel/proton-pack.c
990
max_bhb_k = max(max_bhb_k, spectre_bhb_loop_affected());
arch/arm64/kernel/setup.c
260
start = max(PFN_PHYS(PFN_DOWN(r_start)), mem->start);
arch/arm64/kernel/signal.c
1174
int vl = max(sve_max_vl(), sme_max_vl());
arch/arm64/kernel/signal.c
146
return round_up(max(user->size, sizeof(struct rt_sigframe)), 16);
arch/arm64/kvm/at.c
338
x = max(x, 6);
arch/arm64/kvm/hyp/nvhe/mm.c
162
start = max(start, end);
arch/arm64/kvm/hyp/nvhe/sys_regs.c
209
val |= max(sys_val, pvm_max) << shift;
arch/arm64/kvm/hyp/nvhe/sys_regs.c
39
#define __MAX_FEAT_FUNC(id, fld, max, func, sgn) \
arch/arm64/kvm/hyp/nvhe/sys_regs.c
44
.max_val = id##_##fld##_##max, \
arch/arm64/kvm/hyp/nvhe/sys_regs.c
48
#define MAX_FEAT_FUNC(id, fld, max, func) \
arch/arm64/kvm/hyp/nvhe/sys_regs.c
49
__MAX_FEAT_FUNC(id, fld, max, func, id##_##fld##_SIGNED)
arch/arm64/kvm/hyp/nvhe/sys_regs.c
51
#define MAX_FEAT(id, fld, max) \
arch/arm64/kvm/hyp/nvhe/sys_regs.c
52
MAX_FEAT_FUNC(id, fld, max, NULL)
arch/arm64/kvm/hyp/nvhe/sys_regs.c
54
#define MAX_FEAT_ENUM(id, fld, max) \
arch/arm64/kvm/hyp/nvhe/sys_regs.c
55
__MAX_FEAT_FUNC(id, fld, max, NULL, false)
arch/arm64/kvm/mmu.c
1058
vm_start = max(hva, vma->vm_start);
arch/arm64/kvm/va_layout.c
68
return max(IDMAP_VA_BITS, vabits_actual);
arch/arm64/mm/gcs.c
38
return max(PAGE_SIZE, size);
arch/arm64/mm/init.c
302
unsigned long min, max;
arch/arm64/mm/init.c
305
max = PFN_DOWN(memblock_end_of_DRAM());
arch/arm64/mm/init.c
307
early_memtest(min << PAGE_SHIFT, max << PAGE_SHIFT);
arch/arm64/mm/init.c
309
max_pfn = max_low_pfn = max;
arch/arm64/mm/init.c
471
u64 max = kernel_end;
arch/arm64/mm/init.c
476
module_direct_base = random_bounding_box(SZ_128M, min, max);
arch/arm64/mm/init.c
479
max = module_direct_base + SZ_128M;
arch/arm64/mm/init.c
483
module_plt_base = random_bounding_box(SZ_2G, min, max);
arch/arm64/mm/mmu.c
1993
max_pfn = max(max_pfn, PFN_UP(start + size));
arch/arm64/net/bpf_jit_comp.c
166
shift = max(round_down((inverse ? (fls64(rev_tmp) - 1) :
arch/loongarch/kernel/paravirt.c
106
min = max = cpu;
arch/loongarch/kernel/paravirt.c
70
int i, cpu, min = 0, max = 0, old;
arch/loongarch/kernel/paravirt.c
91
min = max = cpu;
arch/loongarch/kernel/paravirt.c
92
} else if (cpu < min && cpu > (max - KVM_IPI_CLUSTER_SIZE)) {
arch/loongarch/kernel/paravirt.c
98
max = cpu > max ? cpu : max;
arch/loongarch/kernel/setup.c
555
start = max(PFN_PHYS(PFN_DOWN(r_start)), mem->start);
arch/loongarch/kernel/setup.c
579
possible, max((possible - num_processors), 0));
arch/mips/bcm47xx/prom.c
61
unsigned long max;
arch/mips/bcm47xx/prom.c
82
max = 128 << 20;
arch/mips/bcm47xx/prom.c
84
for (mem = 1 << 20; mem < max; mem += 1 << 20) {
arch/mips/bcm47xx/prom.c
86
if (off + mem >= max) {
arch/mips/bcm47xx/prom.c
87
mem = max;
arch/mips/cavium-octeon/executive/cvmx-bootmem.c
326
ALIGN(max(address_min, ent_addr), alignment);
arch/mips/cavium-octeon/oct_ilm.c
33
u64 cpuclk, avg, max, min;
arch/mips/cavium-octeon/oct_ilm.c
38
max = (curr_li.max_latency * 1000000000) / cpuclk;
arch/mips/cavium-octeon/oct_ilm.c
43
curr_li.interrupt_cnt, avg, max, min);
arch/mips/cavium-octeon/octeon-platform.c
649
static void __init octeon_fdt_pip_port(int iface, int i, int p, int max)
arch/mips/cavium-octeon/octeon-platform.c
661
if (p > max) {
arch/mips/include/asm/octeon/cvmx-npei-defs.h
3256
uint64_t max:9;
arch/mips/include/asm/octeon/cvmx-npei-defs.h
3266
uint64_t max:9;
arch/mips/include/asm/octeon/cvmx-spxx-defs.h
400
uint64_t max:32;
arch/mips/include/asm/octeon/cvmx-spxx-defs.h
402
uint64_t max:32;
arch/mips/kernel/elf.c
189
abi1 = max(fp_abi, interp_fp_abi);
arch/mips/kernel/setup.c
518
static void __init bootcmdline_append(const char *s, size_t max)
arch/mips/kernel/setup.c
520
if (!s[0] || !max)
arch/mips/kernel/setup.c
526
strlcat(boot_command_line, s, max);
arch/mips/kernel/sync-r4k.c
86
max_warp = max(max_warp, prev - now);
arch/mips/mm/cerr-sb1.c
288
static char range_parity(uint64_t dword, int max, int min)
arch/mips/mm/cerr-sb1.c
293
for (i=max-min; i>=0; i--) {
arch/mips/mm/page.c
214
max(cache_line_size >> 1,
arch/mips/mm/page.c
217
max(cache_line_size >> 1,
arch/mips/mm/tlb-r4k.c
675
vpn = max(vpn,
arch/mips/mm/tlb-r4k.c
684
vpn = max(vpn,
arch/mips/mm/tlb-r4k.c
697
vpn_pagesz = max(vpn_pagesz, idx_pagesz);
arch/mips/mm/tlb-r4k.c
713
vpn = max(vpn,
arch/mips/net/bpf_jit_comp.c
142
ctx->stack_used = max((int)ctx->stack_used, depth);
arch/mips/pci/pci-malta.c
217
start = max(start, msc_mem_resource.start);
arch/mips/tools/loongson3-llsc-check.c
143
ssize_t i, max, sc_pos;
arch/mips/tools/loongson3-llsc-check.c
157
max = sz / 4;
arch/mips/tools/loongson3-llsc-check.c
158
for (sc_pos = 0; sc_pos < max; sc_pos++) {
arch/mips/tools/loongson3-llsc-check.c
162
if (sc_pos >= max) {
arch/mips/txx9/generic/pci.c
146
unsigned long min = 0, max = 0x20000000; /* low 512MB */
arch/mips/txx9/generic/pci.c
156
max = 0xe0000000;
arch/mips/txx9/generic/pci.c
162
mem_size, min, max,
arch/parisc/kernel/cache.c
591
threshold = max(cache_info.it_size, cache_info.dt_size);
arch/parisc/kernel/cache.c
614
parisc_tlb_flush_threshold = max(threshold, FLUSH_TLB_THRESHOLD);
arch/parisc/kernel/irq.c
211
unsigned int k, avg, min, max;
arch/parisc/kernel/irq.c
213
min = max = action->cr16_hist[0];
arch/parisc/kernel/irq.c
223
if (hist > max) max = hist;
arch/parisc/kernel/irq.c
229
min,avg,max);
arch/parisc/kernel/pci.c
212
mask = max(alignment, align) - 1;
arch/parisc/kernel/topology.c
66
max_socket = max(max_socket, cpu_topology[cpu].package_id);
arch/powerpc/boot/types.h
41
#define max_t(type, a, b) max(((type) a), ((type) b))
arch/powerpc/include/asm/guest-state-buffer.h
556
#define kvmppc_gse_for_each_elem(i, max, pos, head, len, rem) \
arch/powerpc/include/asm/guest-state-buffer.h
557
for (i = 0, pos = head, rem = len; kvmppc_gse_ok(pos, rem) && i < max; \
arch/powerpc/kernel/pci-hotplug.c
139
int mode, max;
arch/powerpc/kernel/pci-hotplug.c
166
max = bus->busn_res.start;
arch/powerpc/kernel/pci-hotplug.c
173
max = pci_scan_bridge(bus, dev, max, 0);
arch/powerpc/kernel/pci-hotplug.c
177
max = pci_scan_bridge(bus, dev, max, 1);
arch/powerpc/kernel/prom_init.c
2045
align = max(minalign, minsize);
arch/powerpc/kernel/rtas.c
1002
rtas_error_log_max = max;
arch/powerpc/kernel/rtas.c
988
u32 max;
arch/powerpc/kernel/rtas.c
990
if (of_property_read_u32(rtas.dev, propname, &max)) {
arch/powerpc/kernel/rtas.c
993
max = RTAS_ERROR_LOG_MAX;
arch/powerpc/kernel/rtas.c
996
if (max > RTAS_ERROR_LOG_MAX) {
arch/powerpc/kernel/rtas.c
998
propname, max, RTAS_ERROR_LOG_MAX);
arch/powerpc/kernel/rtas.c
999
max = RTAS_ERROR_LOG_MAX;
arch/powerpc/kernel/signal_32.c
238
return max(sizeof(struct rt_sigframe) + __SIGNAL_FRAMESIZE + 16,
arch/powerpc/kernel/smp-tbsync.c
115
int i, score, score2, old, min=0, max=5000, offset=1000;
arch/powerpc/kernel/smp-tbsync.c
130
for (old = -1; old != offset ; offset = (min+max) / 2) {
arch/powerpc/kernel/smp-tbsync.c
136
max = offset;
arch/powerpc/kernel/smp-tbsync.c
142
score2 = start_contest(kSetAndTest, max, NUM_ITER);
arch/powerpc/kernel/smp-tbsync.c
145
min, score, max, score2);
arch/powerpc/kernel/smp-tbsync.c
148
offset = (score < score2) ? min : max;
arch/powerpc/kernel/time.c
123
#define SCALE_XSEC(xsec, max) (((xsec) * max) / XSEC_PER_SEC)
arch/powerpc/kernel/time.c
126
#define SCALE_XSEC(xsec, max) mulhwu((xsec) << 12, max)
arch/powerpc/kvm/book3s_hv_rm_xics.c
82
struct kvmppc_host_rm_core *rm_core, int max, int action)
arch/powerpc/kvm/book3s_hv_rm_xics.c
88
for (core = start + 1; core < max; core++) {
arch/powerpc/kvm/book3s_xive.c
1028
u32 max;
arch/powerpc/kvm/book3s_xive.c
1040
max = (q->msk + 1) - XIVE_Q_GAP;
arch/powerpc/kvm/book3s_xive.c
1041
return atomic_add_unless(&q->count, 1, max) ? 0 : -EBUSY;
arch/powerpc/kvm/e500_mmu.c
175
max(vcpu_e500->tlb1_max_eaddr, eaddr);
arch/powerpc/kvm/e500_mmu.c
207
vcpu_e500->tlb1_max_eaddr = max(vcpu_e500->tlb1_max_eaddr, end);
arch/powerpc/kvm/e500_mmu_host.c
425
tsize = max(BOOK3E_PAGESZ_4K, tsize & ~1);
arch/powerpc/kvm/mpic.c
1757
opp->nb_cpus = max(opp->nb_cpus, cpu + 1);
arch/powerpc/kvm/timing.c
133
u64 min, max, sum, sum_quad;
arch/powerpc/kvm/timing.c
141
max = vcpu->arch.timing_max_duration[i];
arch/powerpc/kvm/timing.c
142
do_div(max, tb_ticks_per_usec);
arch/powerpc/kvm/timing.c
152
max,
arch/powerpc/lib/sstep.c
1017
nr_vsx_regs = max(1ul, size / sizeof(__vector128));
arch/powerpc/lib/sstep.c
970
nr_vsx_regs = max(1ul, size / sizeof(__vector128));
arch/powerpc/mm/book3s64/hash_utils.c
1193
return max(pteg_shift + 7, 18U);
arch/powerpc/mm/book3s64/mmu_context.c
44
unsigned long max;
arch/powerpc/mm/book3s64/mmu_context.c
47
max = MAX_USER_CONTEXT;
arch/powerpc/mm/book3s64/mmu_context.c
49
max = MAX_USER_CONTEXT_65BIT_VA;
arch/powerpc/mm/book3s64/mmu_context.c
51
return alloc_context_id(MIN_USER_CONTEXT, max);
arch/powerpc/mm/book3s64/pgtable.c
645
return max(SUBSECTION_SIZE, 1UL << shift);
arch/powerpc/mm/book3s64/slice.c
334
unsigned long min_addr = max(PAGE_SIZE, mmap_min_addr);
arch/powerpc/mm/nohash/mmu_context.c
100
unsigned int cpu, max, i;
arch/powerpc/mm/nohash/mmu_context.c
102
max = LAST_CONTEXT - FIRST_CONTEXT;
arch/powerpc/mm/nohash/mmu_context.c
105
while (max--) {
arch/powerpc/mm/numa.c
1367
return max(hot_add_drconf_memory_max(), memblock_end_of_DRAM());
arch/powerpc/platforms/512x/mpc512x_lpbfifo.c
208
dma_conf.dst_maxburst = max(bpt, 0x4u) / 4;
arch/powerpc/platforms/512x/mpc512x_lpbfifo.c
209
dma_conf.src_maxburst = max(bpt, 0x4u) / 4;
arch/powerpc/platforms/cell/spufs/sched.c
71
#define MIN_SPU_TIMESLICE max(5 * HZ / (1000 * SPUSCHED_TICK), 1)
arch/powerpc/platforms/cell/spufs/sched.c
75
max(x * (MAX_PRIO - prio) / (NICE_WIDTH / 2), MIN_SPU_TIMESLICE)
arch/powerpc/platforms/powernv/opal-powercap.c
165
u32 cur, min, max;
arch/powerpc/platforms/powernv/opal-powercap.c
174
if (!of_property_read_u32(node, "powercap-max", &max)) {
arch/powerpc/platforms/powernv/opal-powercap.c
210
powercap_add_attr(max, "powercap-max",
arch/powerpc/platforms/powernv/pci-ioda.c
1486
unsigned long tce_table_size = max(0x1000UL, 1UL << table_shift);
arch/powerpc/platforms/pseries/iommu.c
1400
ret = max(ret, shift[i]);
arch/powerpc/platforms/pseries/msi.c
263
req = max(req, (int)be32_to_cpup(p));
arch/powerpc/platforms/pseries/vio.c
450
need = max(viodev->cmo.allocated, viodev->cmo.entitled)-
arch/powerpc/platforms/pseries/vio.c
451
max(viodev->cmo.allocated, level);
arch/powerpc/platforms/pseries/vio.c
682
max(viodev->cmo.allocated, desired);
arch/powerpc/sysdev/fsl_pci.c
257
paddr_hi = max(paddr_hi, (u64)hose->mem_resources[i].end);
arch/powerpc/sysdev/xive/common.c
507
int max;
arch/powerpc/sysdev/xive/common.c
514
max = (q->msk + 1) - 1;
arch/powerpc/sysdev/xive/common.c
515
return !!atomic_add_unless(&q->count, 1, max);
arch/riscv/kernel/setup.c
248
start = max(PFN_PHYS(PFN_DOWN(r_start)), mem->start);
arch/riscv/kvm/vcpu_pmu.c
169
int min, max;
arch/riscv/kvm/vcpu_pmu.c
174
max = min + kvpmu->num_fw_ctrs;
arch/riscv/kvm/vcpu_pmu.c
178
max = kvpmu->num_hw_ctrs;
arch/riscv/kvm/vcpu_pmu.c
183
if ((pmc_idx >= min && pmc_idx < max) &&
arch/s390/boot/boot.h
57
unsigned long align, unsigned long min, unsigned long max,
arch/s390/boot/boot.h
75
unsigned long min, unsigned long max);
arch/s390/boot/kaslr.c
117
align = max(align, 8UL);
arch/s390/boot/kaslr.c
125
start = max(_min, start);
arch/s390/boot/kaslr.c
183
unsigned long min, unsigned long max)
arch/s390/boot/kaslr.c
190
max = min(max, get_physmem_alloc_pos());
arch/s390/boot/kaslr.c
192
max_pos = iterate_valid_positions(size, align, min, max, res, ARRAY_SIZE(res), true, 0);
arch/s390/boot/kaslr.c
197
return iterate_valid_positions(size, align, min, max, res, ARRAY_SIZE(res), false, pos + 1);
arch/s390/boot/physmem_info.c
205
static void die_oom(unsigned long size, unsigned long align, unsigned long min, unsigned long max)
arch/s390/boot/physmem_info.c
216
size, align, min, max);
arch/s390/boot/physmem_info.c
273
unsigned long min, unsigned long max,
arch/s390/boot/physmem_info.c
280
unsigned long addr, pos = max;
arch/s390/boot/physmem_info.c
282
align = max(align, 8UL);
arch/s390/boot/physmem_info.c
304
die_oom(size, align, min, max);
arch/s390/boot/physmem_info.c
309
unsigned long align, unsigned long min, unsigned long max,
arch/s390/boot/physmem_info.c
314
max = min(max, physmem_alloc_pos);
arch/s390/boot/physmem_info.c
315
addr = __physmem_alloc_range(size, align, min, max, 0, NULL, die_on_oom);
arch/s390/boot/printk.c
59
char *p = dst + max(pad, (int)__fls(val | 1) / 4 + 1);
arch/s390/boot/printk.c
94
if (max(len, abs(pad)) >= dst_size)
arch/s390/boot/startup.c
200
static void rescue_initrd(unsigned long min, unsigned long max)
arch/s390/boot/startup.c
208
if (addr >= min && addr + size <= max)
arch/s390/boot/startup.c
312
max_mappable = max(identity_size, MAX_DCSS_ADDR);
arch/s390/boot/startup.c
376
kaslr_len = max(KASLR_LEN, vmax - vsize);
arch/s390/boot/startup.c
440
max_mappable = max(ident_map_size, MAX_DCSS_ADDR);
arch/s390/boot/startup.c
470
vmalloc_size = max(size, vmalloc_size);
arch/s390/include/asm/pci_io.h
131
static inline int zpci_get_max_io_size(u64 src, u64 dst, int len, int max)
arch/s390/include/asm/pci_io.h
136
size = min3(len, ZPCI_BOUNDARY_SIZE - offset, max);
arch/s390/kernel/crash_dump.c
36
.max = 1,
arch/s390/kernel/module.c
182
long min, max;
arch/s390/kernel/module.c
190
max = (1L << (bits - 1)) - 1;
arch/s390/kernel/module.c
191
if ((long) val < min || (long) val > max)
arch/s390/kernel/perf_cpum_sf.c
2004
unsigned long min, max;
arch/s390/kernel/perf_cpum_sf.c
2013
max = CPUM_SF_MAX_SDB;
arch/s390/kernel/perf_cpum_sf.c
2015
rc = (sscanf(val, "%lu,%lu", &min, &max) == 2) ? 0 : -EINVAL;
arch/s390/kernel/perf_cpum_sf.c
2017
rc = kstrtoul(val, 10, &max);
arch/s390/kernel/perf_cpum_sf.c
2019
if (min < 2 || min >= max || max > get_num_physpages())
arch/s390/kernel/perf_cpum_sf.c
2024
sfb_set_limits(min, max);
arch/s390/kernel/perf_cpum_sf.c
349
static void sfb_set_limits(unsigned long min, unsigned long max)
arch/s390/kernel/perf_cpum_sf.c
354
CPUM_SF_MAX_SDB = max;
arch/s390/kernel/setup.c
735
start = max(lowcore_start, (void *)__identity_base);
arch/s390/kernel/smp.c
942
sclp_max = max(sclp.mtid, sclp.mtid_cp) + 1;
arch/s390/kernel/topology.c
543
nr_masks = max(nr_masks, 1);
arch/s390/kvm/dat.c
567
rc = dat_crste_walk_range(max(start, cur), min(end, next),
arch/s390/kvm/dat.c
570
rc = dat_pte_walk_range(max(start, cur), min(end, next),
arch/s390/kvm/dat.c
813
addr = ((max(gfn, walk->start) - gfn) << PAGE_SHIFT) + origin;
arch/s390/kvm/diag.c
32
start = __gfn_to_hva_memslot(slot, max(gfn_start, slot->base_gfn));
arch/s390/kvm/gmap.c
942
cur = ((max(gfn, walk->start) - gfn) << PAGE_SHIFT) + origin;
arch/s390/pci/pci.c
299
unsigned long offset, unsigned long max)
arch/s390/pci/pci.c
317
unsigned long max)
arch/s390/pci/pci.c
328
unsigned long offset, unsigned long max)
arch/s390/pci/pci.c
334
return pci_iomap_range_mio(pdev, bar, offset, max);
arch/s390/pci/pci.c
336
return pci_iomap_range_fh(pdev, bar, offset, max);
arch/s390/pci/pci.c
347
unsigned long offset, unsigned long max)
arch/s390/pci/pci.c
358
unsigned long offset, unsigned long max)
arch/s390/pci/pci.c
364
return pci_iomap_wc_range_mio(pdev, bar, offset, max);
arch/s390/pci/pci.c
366
return pci_iomap_range_fh(pdev, bar, offset, max);
arch/sh/kernel/cpu/sh2/smp-j2.c
46
unsigned i, max = 1;
arch/sh/kernel/cpu/sh2/smp-j2.c
69
max = max_cpus;
arch/sh/kernel/cpu/sh2/smp-j2.c
73
for (i=max; i<NR_CPUS; i++) {
arch/sh/kernel/machine_kexec.c
160
unsigned long max = memblock_end_of_DRAM() - memory_limit;
arch/sh/kernel/machine_kexec.c
162
PAGE_SIZE, 0, max);
arch/sparc/kernel/chmc.c
345
u64 max = base + (8UL * 1024 * 1024 * 1024);
arch/sparc/kernel/chmc.c
359
if (this_end > max)
arch/sparc/kernel/chmc.c
360
this_end = max;
arch/sparc/kernel/mdesc.c
1059
unsigned long def, unsigned long max)
arch/sparc/kernel/mdesc.c
1070
if (val > max)
arch/sparc/kernel/mdesc.c
1071
val = max;
arch/sparc/mm/init_64.c
1203
prev_max = memblock.memory.max;
arch/sparc/mm/init_64.c
1218
if (memblock.memory.max != prev_max)
arch/um/drivers/random.c
34
static int rng_dev_read(struct hwrng *rng, void *buf, size_t max, bool block)
arch/um/drivers/random.c
39
ret = os_read_file(random_fd, buf, max);
arch/x86/boot/startup/sev-shared.c
247
xsave_size = max(xsave_size, e->eax + e->ebx);
arch/x86/boot/startup/sme.c
415
decrypted_base = max(decrypted_base, check_base);
arch/x86/crypto/camellia_glue.c
798
static void camellia_setup_tail(u64 *subkey, u64 *subRL, int max)
arch/x86/crypto/camellia_glue.c
835
if (max == 24) {
arch/x86/crypto/camellia_glue.c
952
if (max == 24) {
arch/x86/events/amd/ibs.c
102
perf_event_set_period(struct hw_perf_event *hwc, u64 min, u64 max, u64 *hw_period)
arch/x86/events/amd/ibs.c
131
if (left > max) {
arch/x86/events/amd/ibs.c
132
left -= max;
arch/x86/events/amd/ibs.c
133
if (left > max)
arch/x86/events/amd/ibs.c
134
left = max;
arch/x86/events/core.c
1046
wmax = max(wmax, c->weight);
arch/x86/events/core.c
3145
int max = x86_pmu.max_events;
arch/x86/events/core.c
3147
if (hw_event < max)
arch/x86/events/core.c
3148
return x86_pmu.event_map(array_index_nospec(hw_event, max));
arch/x86/events/intel/core.c
5450
*left = max(*left, erratum_hsw11(event) ? 128 : 32);
arch/x86/events/intel/core.c
5479
*left = max(*left, 32LL);
arch/x86/events/intel/core.c
5485
*left = max(*left, 128LL);
arch/x86/events/intel/core.c
7592
GENMASK_ULL(max((int)edx.split.num_counters_fixed, assume) - 1, 0);
arch/x86/events/intel/ds.c
852
int max, node = cpu_to_node(cpu);
arch/x86/events/intel/ds.c
885
max = x86_pmu.pebs_record_size * (bsiz / x86_pmu.pebs_record_size);
arch/x86/events/intel/ds.c
886
ds->pebs_absolute_maximum = ds->pebs_buffer_base + max;
arch/x86/events/intel/ds.c
916
int max;
arch/x86/events/intel/ds.c
932
max = BTS_BUFFER_SIZE / BTS_RECORD_SIZE;
arch/x86/events/intel/ds.c
934
max * BTS_RECORD_SIZE;
arch/x86/events/intel/ds.c
936
(max / 16) * BTS_RECORD_SIZE;
arch/x86/events/intel/uncore.c
467
wmax = max(wmax, c->weight);
arch/x86/events/intel/uncore_snbep.c
6339
int max = 0;
arch/x86/events/intel/uncore_snbep.c
6352
if ((unit->id > max) && (unit->id < 0x8000))
arch/x86/events/intel/uncore_snbep.c
6353
max = unit->id;
arch/x86/events/intel/uncore_snbep.c
6355
return max + 1;
arch/x86/include/asm/crash_reserve.h
36
return max(swiotlb_size_or_default() + (8UL << 20), 256UL << 20);
arch/x86/include/asm/io_bitmap.h
12
unsigned int max;
arch/x86/kernel/alternative.c
612
ps->len = max(ps->len, alt->instrlen);
arch/x86/kernel/apic/io_apic.c
2256
ioapic_dynirq_base = max(ioapic_dynirq_base, gsi_cfg->gsi_end + 1);
arch/x86/kernel/apic/io_apic.c
533
int i, max, ints[MAX_PIRQS+1];
arch/x86/kernel/apic/io_apic.c
539
max = MAX_PIRQS;
arch/x86/kernel/apic/io_apic.c
541
max = ints[0];
arch/x86/kernel/apic/io_apic.c
543
for (i = 0; i < max; i++) {
arch/x86/kernel/apic/x2apic_uv_x.c
1383
static inline void blade_update_min_max(unsigned long bits, int base, int mask, int *min, int *max)
arch/x86/kernel/apic/x2apic_uv_x.c
1394
if (*max < last)
arch/x86/kernel/apic/x2apic_uv_x.c
1395
*max = last;
arch/x86/kernel/apic/x2apic_uv_x.c
1455
#define FREE_1_TO_1_TABLE(tbl, min, max, max2) free_1_to_1_table(&tbl, #tbl, min, max, max2)
arch/x86/kernel/apic/x2apic_uv_x.c
1457
static void __init free_1_to_1_table(unsigned short **tp, char *tname, int min, int max, int max2)
arch/x86/kernel/apic/x2apic_uv_x.c
1464
if (max != max2)
arch/x86/kernel/apic/x2apic_uv_x.c
1466
for (i = 0; i < max; i++) {
arch/x86/kernel/apic/x2apic_uv_x.c
1794
max_pnode = max(pnode, max_pnode);
arch/x86/kernel/cpu/amd_cache_disable.c
39
l3->indices = (max(max3(sc0, sc1, sc2), sc3) << 10) - 1;
arch/x86/kernel/cpu/intel.c
655
tlb_lli_4k = max(tlb_lli_4k, entries);
arch/x86/kernel/cpu/intel.c
656
tlb_lld_4k = max(tlb_lld_4k, entries);
arch/x86/kernel/cpu/intel.c
659
tlb_lli_4k = max(tlb_lli_4k, entries);
arch/x86/kernel/cpu/intel.c
660
tlb_lld_4k = max(tlb_lld_4k, entries);
arch/x86/kernel/cpu/intel.c
661
tlb_lli_2m = max(tlb_lli_2m, entries);
arch/x86/kernel/cpu/intel.c
662
tlb_lld_2m = max(tlb_lld_2m, entries);
arch/x86/kernel/cpu/intel.c
663
tlb_lli_4m = max(tlb_lli_4m, entries);
arch/x86/kernel/cpu/intel.c
664
tlb_lld_4m = max(tlb_lld_4m, entries);
arch/x86/kernel/cpu/intel.c
667
tlb_lli_4k = max(tlb_lli_4k, entries);
arch/x86/kernel/cpu/intel.c
668
tlb_lli_2m = max(tlb_lli_2m, entries);
arch/x86/kernel/cpu/intel.c
669
tlb_lli_4m = max(tlb_lli_4m, entries);
arch/x86/kernel/cpu/intel.c
672
tlb_lli_4k = max(tlb_lli_4k, entries);
arch/x86/kernel/cpu/intel.c
675
tlb_lli_4m = max(tlb_lli_4m, entries);
arch/x86/kernel/cpu/intel.c
678
tlb_lli_2m = max(tlb_lli_2m, entries);
arch/x86/kernel/cpu/intel.c
679
tlb_lli_4m = max(tlb_lli_4m, entries);
arch/x86/kernel/cpu/intel.c
683
tlb_lld_4k = max(tlb_lld_4k, entries);
arch/x86/kernel/cpu/intel.c
687
tlb_lld_4m = max(tlb_lld_4m, entries);
arch/x86/kernel/cpu/intel.c
691
tlb_lld_2m = max(tlb_lld_2m, entries);
arch/x86/kernel/cpu/intel.c
692
tlb_lld_4m = max(tlb_lld_4m, entries);
arch/x86/kernel/cpu/intel.c
695
tlb_lld_4k = max(tlb_lld_4k, entries);
arch/x86/kernel/cpu/intel.c
696
tlb_lld_4m = max(tlb_lld_4m, entries);
arch/x86/kernel/cpu/intel.c
699
tlb_lld_2m = max(tlb_lld_2m, TLB_0x63_2M_4M_ENTRIES);
arch/x86/kernel/cpu/intel.c
700
tlb_lld_4m = max(tlb_lld_4m, TLB_0x63_2M_4M_ENTRIES);
arch/x86/kernel/cpu/intel.c
703
tlb_lld_1g = max(tlb_lld_1g, entries);
arch/x86/kernel/cpu/mce/core.c
1808
iv = max(iv / 2, (unsigned long) HZ/100);
arch/x86/kernel/cpu/mce/dev-mcelog.c
340
mce_log_len = max(MCE_LOG_MIN_LEN, num_online_cpus());
arch/x86/kernel/cpu/mce/genpool.c
130
mce_numrecords = max(MCE_MIN_ENTRIES, num_possible_cpus() * MCE_PER_CPU);
arch/x86/kernel/cpu/mtrr/centaur.c
31
int i, max;
arch/x86/kernel/cpu/mtrr/centaur.c
33
max = num_var_ranges;
arch/x86/kernel/cpu/mtrr/centaur.c
34
if (replace_reg >= 0 && replace_reg < max)
arch/x86/kernel/cpu/mtrr/centaur.c
37
for (i = 0; i < max; ++i) {
arch/x86/kernel/cpu/mtrr/generic.c
791
int i, max;
arch/x86/kernel/cpu/mtrr/generic.c
793
max = num_var_ranges;
arch/x86/kernel/cpu/mtrr/generic.c
794
if (replace_reg >= 0 && replace_reg < max)
arch/x86/kernel/cpu/mtrr/generic.c
797
for (i = 0; i < max; ++i) {
arch/x86/kernel/cpu/mtrr/if.c
339
int i, max;
arch/x86/kernel/cpu/mtrr/if.c
342
max = num_var_ranges;
arch/x86/kernel/cpu/mtrr/if.c
343
for (i = 0; i < max; ++i) {
arch/x86/kernel/cpu/mtrr/if.c
358
int i, max;
arch/x86/kernel/cpu/mtrr/if.c
362
max = num_var_ranges;
arch/x86/kernel/cpu/mtrr/if.c
363
for (i = 0; i < max; i++) {
arch/x86/kernel/cpu/mtrr/if.c
42
int reg, max;
arch/x86/kernel/cpu/mtrr/if.c
44
max = num_var_ranges;
arch/x86/kernel/cpu/mtrr/if.c
46
fcount = kcalloc(max, sizeof(*fcount), GFP_KERNEL);
arch/x86/kernel/cpu/mtrr/mtrr.c
100
for (i = 0; i < max; i++)
arch/x86/kernel/cpu/mtrr/mtrr.c
397
int i, max;
arch/x86/kernel/cpu/mtrr/mtrr.c
405
max = num_var_ranges;
arch/x86/kernel/cpu/mtrr/mtrr.c
411
for (i = 0; i < max; ++i) {
arch/x86/kernel/cpu/mtrr/mtrr.c
423
if (reg >= max) {
arch/x86/kernel/cpu/mtrr/mtrr.c
97
int i, max;
arch/x86/kernel/cpu/mtrr/mtrr.c
99
max = num_var_ranges;
arch/x86/kernel/cpu/resctrl/ctrlmondata.c
76
msr_param.high = max(msr_param.high, idx + 1);
arch/x86/kernel/cpu/transmeta.c
24
unsigned int cap_mask, uk, max, dummy;
arch/x86/kernel/cpu/transmeta.c
34
max = cpuid_eax(0x80860000);
arch/x86/kernel/cpu/transmeta.c
36
if (max >= 0x80860001) {
arch/x86/kernel/cpu/transmeta.c
47
if (max >= 0x80860002) {
arch/x86/kernel/cpu/transmeta.c
60
if (max >= 0x80860006) {
arch/x86/kernel/devicetree.c
299
map_len = max(PAGE_SIZE - (initial_dtb & ~PAGE_MASK), (u64)128);
arch/x86/kernel/e820.c
517
final_start = max(start, entry->addr);
arch/x86/kernel/e820.c
589
final_start = max(start, entry->addr);
arch/x86/kernel/fpu/xstate.c
519
u16 tile_size, max;
arch/x86/kernel/fpu/xstate.c
528
max = ebx >> 16;
arch/x86/kernel/fpu/xstate.c
538
if (max > max_tile)
arch/x86/kernel/fpu/xstate.c
539
max_tile = max;
arch/x86/kernel/ioport.c
147
iobm->max = (max_long + 1) * sizeof(unsigned long);
arch/x86/kernel/kvm.c
521
int cpu, min = 0, max = 0;
arch/x86/kernel/kvm.c
547
min = max = apic_id;
arch/x86/kernel/kvm.c
548
} else if (apic_id < min && max - apic_id < KVM_IPI_CLUSTER_SIZE) {
arch/x86/kernel/kvm.c
552
max = apic_id < max ? max : apic_id;
arch/x86/kernel/kvm.c
558
min = max = apic_id;
arch/x86/kernel/ldt.c
624
new_nr_entries = max(ldt_info.entry_number + 1, old_nr_entries);
arch/x86/kernel/mmconf-fam10h_64.c
109
tom2 = max(val & 0xffffff800000ULL, 1ULL << 32);
arch/x86/kernel/process.c
457
max(tss->io_bitmap.prev_max, iobm->max));
arch/x86/kernel/process.c
463
tss->io_bitmap.prev_max = iobm->max;
arch/x86/kernel/ptrace.c
698
return iobm ? DIV_ROUND_UP(iobm->max, regset->size) : 0;
arch/x86/kernel/tsc_sync.c
307
max_warp = max(max_warp, prev - now);
arch/x86/kernel/uprobes.c
667
info.low_limit = max(low_limit, PAGE_SIZE);
arch/x86/kvm/cpuid.c
1752
entry->eax = max(entry->eax, 0x80000021);
arch/x86/kvm/cpuid.c
1788
unsigned int virt_as = max((entry->eax >> 8) & 0xff, 48U);
arch/x86/kvm/cpuid.c
80
ret = max(ret, offset + xs->eax);
arch/x86/kvm/lapic.c
449
max_id = max(max_id, kvm_x2apic_id(vcpu->arch.apic));
arch/x86/kvm/mmu/mmu.c
6905
start = max(gfn_start, memslot->base_gfn);
arch/x86/kvm/vmx/vmx.c
8424
delta_tsc = max(guest_deadline_tsc, guest_tscl) - guest_tscl;
arch/x86/kvm/x86.c
10181
u64 max = min(0x7fffffffULL,
arch/x86/kvm/x86.c
10183
kvm_caps.max_guest_tsc_khz = max;
arch/x86/kvm/x86.c
13720
nr_mmu_pages = max(nr_mmu_pages, KVM_MIN_ALLOC_MMU_PAGES);
arch/x86/kvm/x86.h
116
unsigned int base, unsigned int modifier, unsigned int max)
arch/x86/kvm/x86.h
128
return min(ret, (u64)max);
arch/x86/kvm/x86.h
142
return max(val, min);
arch/x86/mm/init.c
510
max_pfn_mapped = max(max_pfn_mapped, end_pfn);
arch/x86/mm/init.c
513
max_low_pfn_mapped = max(max_low_pfn_mapped,
arch/x86/mm/init.c
588
can_use_brk_pgt = max(start, (u64)pgt_buf_end<<PAGE_SHIFT) >=
arch/x86/mm/init.c
647
real_end = max(map_start, ALIGN_DOWN(map_end, PMD_SIZE));
arch/x86/mm/init_64.c
1488
bz = max(min(bz, MAX_BLOCK_SIZE), MIN_MEMORY_BLOCK_SIZE);
arch/x86/mm/mmap.c
43
unsigned long max = 0;
arch/x86/mm/mmap.c
45
max = (-1UL) & __STACK_RND_MASK(task_size == task_size_32bit());
arch/x86/mm/mmap.c
46
max <<= PAGE_SHIFT;
arch/x86/mm/mmap.c
49
return max;
arch/x86/pci/bus_numa.c
119
common_start = max(res->start, start);
arch/x86/pci/bus_numa.c
125
final_end = max(res->end, end);
arch/x86/pci/xen.c
176
v = kzalloc_objs(int, max(1, nvec));
arch/x86/platform/olpc/olpc_dt.c
131
const size_t chunk_size = max(PAGE_SIZE, size);
arch/x86/virt/vmx/tdx/tdx.c
241
start_pfn = max(start_pfn, PHYS_PFN(SZ_1M));
arch/x86/xen/p2m.c
410
vm.size = ALIGN(sizeof(unsigned long) * max(xen_max_p2m_pfn, p2m_limit),
arch/xtensa/mm/init.c
56
min_low_pfn = max(min_low_pfn, PFN_UP(PHYS_OFFSET));
block/bfq-iosched.c
7131
bfqd->async_depths[0][0] = max(async_depth * 2 / 3, 1U);
block/bfq-iosched.c
7132
bfqd->async_depths[1][1] = max(async_depth >> 1, 1U);
block/bfq-iosched.c
7133
bfqd->async_depths[1][0] = max(async_depth >> 2, 1U);
block/bfq-wf2q.c
845
int tot_serv_to_charge = max(serv_to_charge_for_time, entity->service);
block/blk-iocost.c
1019
vrate = max(vrate, vrate_max);
block/blk-iocost.c
2328
usage_us = max(usage_us, inflight_us);
block/blk-iocost.c
2404
ioc->busy_level = max(ioc->busy_level, 0);
block/blk-iolatency.c
237
thresh = max(thresh, 1ULL);
block/blk-iolatency.c
317
return max(up ? qd >> SCALE_UP_FACTOR : qd >> SCALE_DOWN_FACTOR, 1UL);
block/blk-iolatency.c
394
iolat->max_depth = max(old, 1UL);
block/blk-iolatency.c
441
samples_thresh = max(1ULL, div64_u64(samples_thresh, 100));
block/blk-merge.c
171
granularity = max(lim->discard_granularity >> 9, 1U);
block/blk-mq.c
5044
q->async_depth = max(q->async_depth * nr / q->nr_requests, 1);
block/blk-mq.h
434
depth = max((bt->sb.depth + users - 1) / users, 4U);
block/blk-settings.c
210
lim->dma_alignment = max(lim->dma_alignment,
block/blk-settings.c
456
max(lim->discard_granularity, lim->physical_block_size);
block/blk-settings.c
632
unsigned int granularity = max(lim->physical_block_size, lim->io_min);
block/blk-settings.c
687
t->atomic_write_hw_unit_min = max(t->atomic_write_hw_unit_min,
block/blk-settings.c
852
top = max(t->physical_block_size, t->io_min)
block/blk-settings.c
854
bottom = max(b->physical_block_size, b->io_min) + alignment;
block/blk-settings.c
857
if (max(top, bottom) % min(top, bottom)) {
block/blk-settings.c
863
t->logical_block_size = max(t->logical_block_size,
block/blk-settings.c
866
t->physical_block_size = max(t->physical_block_size,
block/blk-settings.c
869
t->io_min = max(t->io_min, b->io_min);
block/blk-settings.c
871
t->dma_alignment = max(t->dma_alignment, b->dma_alignment);
block/blk-settings.c
907
% max(t->physical_block_size, t->io_min);
block/blk-settings.c
927
t->discard_granularity = max(t->discard_granularity,
block/blk-settings.c
934
t->zone_write_granularity = max(t->zone_write_granularity,
block/blk-stat.c
23
stat->max = stat->nr_samples = stat->mean = 0;
block/blk-stat.c
34
dst->max = max(dst->max, src->max);
block/blk-stat.c
45
stat->max = max(stat->max, value);
block/blk-throttle.c
778
jiffy_wait = max(jiffy_wait, HZ / iops_limit + 1);
block/blk-zoned.c
1930
pool_size = max(lim->max_open_zones, lim->max_active_zones);
block/blk-zoned.c
1993
pool_size = max(lim.max_open_zones, lim.max_active_zones);
block/kyber-iosched.c
237
kqd->latency_timeout[sched_domain] = max(jiffies + HZ, 1UL);
block/partitions/msdos.c
678
n = min(size, max(sector_size, n));
crypto/acompress.c
497
unsigned int max = UINT_MAX;
crypto/acompress.c
500
max = PAGE_SIZE;
crypto/acompress.c
504
return min(slen, max);
crypto/acompress.c
514
unsigned int max = UINT_MAX;
crypto/acompress.c
517
max = PAGE_SIZE;
crypto/acompress.c
521
return min(dlen, max);
crypto/adiantum.c
522
tfm, max(sizeof(struct adiantum_request_ctx),
crypto/akcipher.c
178
mlen = max(data->slen, data->dlen);
crypto/camellia_generic.c
1001
max = 32; /* for key lengths of 24 and 32 */
crypto/camellia_generic.c
1003
camellia_do_encrypt(cctx->key_table, tmp, max);
crypto/camellia_generic.c
1015
unsigned int max;
crypto/camellia_generic.c
1025
max = 24;
crypto/camellia_generic.c
1027
max = 32; /* for key lengths of 24 and 32 */
crypto/camellia_generic.c
1029
camellia_do_decrypt(cctx->key_table, tmp, max);
crypto/camellia_generic.c
357
static void camellia_setup_tail(u32 *subkey, u32 *subL, u32 *subR, int max)
crypto/camellia_generic.c
387
if (max == 24) {
crypto/camellia_generic.c
502
if (max == 24) {
crypto/camellia_generic.c
843
static void camellia_do_encrypt(const u32 *subkey, u32 *io, unsigned max)
crypto/camellia_generic.c
884
if (max == 32) {
crypto/camellia_generic.c
893
io[2] ^= SUBKEY_L(max);
crypto/camellia_generic.c
894
io[3] ^= SUBKEY_R(max);
crypto/camellia_generic.c
989
unsigned int max;
crypto/camellia_generic.c
999
max = 24;
crypto/ccm.c
416
max(crypto_ahash_reqsize(mac), crypto_skcipher_reqsize(ctr)));
crypto/deflate.c
38
size_t size = max(zlib_inflate_workspacesize(),
crypto/ecc.c
1428
num_bits = max(vli_num_bits(u1, ndigits), vli_num_bits(u2, ndigits));
crypto/gcm.c
541
max(sizeof(struct skcipher_request) +
crypto/hctr2.c
298
tfm, max(sizeof(struct hctr2_request_ctx),
crypto/simd.c
131
reqsize = max(reqsize, crypto_skcipher_reqsize(&cryptd_tfm->base));
crypto/simd.c
355
reqsize = max(crypto_aead_reqsize(cryptd_aead_child(cryptd_tfm)),
crypto/skcipher.c
216
bsize = min(walk->stride, max(n, walk->blocksize));
crypto/testmgr.c
1956
statesize = max(statesize, crypto_shash_statesize(stfm));
crypto/testmgr.c
784
max(dst_total_len, src_total_len) :
crypto/zstd.c
42
wksp_size = max(zstd_cstream_workspace_bound(&params.cParams),
drivers/accel/amdxdna/aie2_message.c
61
*size = max(*size, SZ_8K);
drivers/accel/amdxdna/amdxdna_gem.c
58
align = 1 << max(PAGE_SHIFT, xdna->dev_info->dev_mem_buf_shift);
drivers/accel/ethosu/ethosu_gem.c
175
info->region_size[dma->region] = max(info->region_size[dma->region],
drivers/accel/ethosu/ethosu_gem.c
229
info->region_size[fm->region] = max(info->region_size[fm->region], addr + 1);
drivers/accel/ethosu/ethosu_gem.c
281
max(info->region_size[st->weight[0].region],
drivers/accel/ethosu/ethosu_gem.c
293
max(info->region_size[st->scale[0].region],
drivers/accel/habanalabs/common/memory.c
760
max(alignment, ctx->va_range[type]->page_size),
drivers/accel/habanalabs/gaudi2/gaudi2_security.c
2812
write_max = FIELD_GET(RR_LBW_SHORT_MASK, lower_32_bits(rr_cfg->max));
drivers/accel/habanalabs/gaudi2/gaudi2_security.c
2816
write_max = FIELD_GET(RR_LBW_LONG_MASK, lower_32_bits(rr_cfg->max));
drivers/accel/habanalabs/gaudi2/gaudi2_security.c
2853
rr_cfg.max = max_val;
drivers/accel/habanalabs/gaudi2/gaudi2_security.c
3037
val_max = FIELD_GET(RR_HBW_SHORT_HI_MASK, rr_cfg->max) |
drivers/accel/habanalabs/gaudi2/gaudi2_security.c
3038
FIELD_GET(RR_HBW_SHORT_LO_MASK, rr_cfg->max);
drivers/accel/habanalabs/gaudi2/gaudi2_security.c
3042
val_max = FIELD_GET(RR_HBW_LONG_HI_MASK, rr_cfg->max) |
drivers/accel/habanalabs/gaudi2/gaudi2_security.c
3043
FIELD_GET(RR_HBW_LONG_LO_MASK, rr_cfg->max);
drivers/accel/habanalabs/gaudi2/gaudi2_security.c
3081
rr_cfg.max = max_val;
drivers/accel/habanalabs/gaudi2/gaudi2_security.c
3166
WREG32(base + max_lo_reg_offset, lower_32_bits(rr_cfg->max));
drivers/accel/habanalabs/gaudi2/gaudi2_security.c
3167
WREG32(base + max_hi_reg_offset, upper_32_bits(rr_cfg->max));
drivers/accel/habanalabs/gaudi2/gaudi2_security.c
3182
rr_cfg.max = hdev->asic_funcs->scramble_addr(hdev, hdev->asic_prop.dram_user_base_address);
drivers/accel/habanalabs/gaudi2/gaudi2_security.c
40
u64 max;
drivers/accel/ivpu/ivpu_drv.c
266
file_priv->job_limit.max = file_priv->job_limit.min | IVPU_JOB_ID_JOB_MASK;
drivers/accel/ivpu/ivpu_drv.c
270
file_priv->cmdq_limit.max = IVPU_CMDQ_MAX_ID;
drivers/accel/ivpu/ivpu_drv.c
588
vdev->context_xa_limit.max = IVPU_USER_CONTEXT_MAX_SSID;
drivers/accel/ivpu/ivpu_drv.c
597
vdev->db_limit.max = IVPU_MAX_DB;
drivers/accel/ivpu/ivpu_drv.h
287
return (ctx_limit.max - ctx_limit.min + 1);
drivers/accel/ivpu/ivpu_hw_btrs.c
210
u16 max;
drivers/accel/ivpu/ivpu_hw_btrs.c
223
val = REG_SET_FLD_NUM(VPU_HW_BTRS_MTL_WP_REQ_PAYLOAD0, MAX_RATIO, wp->max, val);
drivers/accel/ivpu/ivpu_hw_btrs.c
246
val = REG_SET_FLD_NUM(VPU_HW_BTRS_LNL_WP_REQ_PAYLOAD0, MAX_RATIO, wp->max, val);
drivers/accel/ivpu/ivpu_hw_btrs.c
296
wp->max = hw->pll.max_ratio;
drivers/acpi/acpi_video.c
1371
int min, max, min_above, max_below, i, l, delta = 255;
drivers/acpi/acpi_video.c
1372
max = max_below = 0;
drivers/acpi/acpi_video.c
1389
if (l > max)
drivers/acpi/acpi_video.c
1390
max = l;
drivers/acpi/acpi_video.c
1399
return (level_current < max) ? min_above : min;
drivers/acpi/acpi_video.c
1401
return (level_current < max) ? min_above : max;
drivers/acpi/apei/apei-base.c
310
res->end = end = max(res->end, end);
drivers/acpi/mipi-disco-img.c
442
#define NEXT_PROPERTY(index, max) \
drivers/acpi/mipi-disco-img.c
443
(WARN_ON((index) > ACPI_DEVICE_SWNODE_##max) ? \
drivers/acpi/mipi-disco-img.c
444
ACPI_DEVICE_SWNODE_##max : (index)++)
drivers/acpi/nfit/core.c
2966
acpi_desc->max_ars = max(nfit_spa->max_ars, acpi_desc->max_ars);
drivers/acpi/nhlt.c
259
max_ch = max(fmt->format.channel_count, max_ch);
drivers/acpi/numa/srat.c
415
max_possible_pfn = max(max_possible_pfn, PFN_UP(end - 1));
drivers/acpi/processor_idle.c
1010
result->min_residency = max(local->min_residency, parent->min_residency);
drivers/android/binder/rust_binder_internal.h
59
int max;
drivers/android/binder/rust_binderfs.c
133
if (++info->device_count <= info->mount_opts.max)
drivers/android/binder/rust_binderfs.c
279
ctx->max = result.uint_32;
drivers/android/binder/rust_binderfs.c
303
info->mount_opts.max = ctx->max;
drivers/android/binder/rust_binderfs.c
311
if (info->mount_opts.max <= BINDERFS_MAX_MINOR)
drivers/android/binder/rust_binderfs.c
312
seq_printf(seq, ",max=%d", info->mount_opts.max);
drivers/android/binder/rust_binderfs.c
658
info->mount_opts.max = ctx->max;
drivers/android/binder/rust_binderfs.c
728
ctx->max = BINDERFS_MAX_MINOR;
drivers/android/binder_alloc.c
627
total = max(total, sizeof(void *));
drivers/android/binder_internal.h
47
int max;
drivers/android/binderfs.c
133
if (++info->device_count <= info->mount_opts.max)
drivers/android/binderfs.c
288
ctx->max = result.uint_32;
drivers/android/binderfs.c
312
info->mount_opts.max = ctx->max;
drivers/android/binderfs.c
320
if (info->mount_opts.max <= BINDERFS_MAX_MINOR)
drivers/android/binderfs.c
321
seq_printf(seq, ",max=%d", info->mount_opts.max);
drivers/android/binderfs.c
654
info->mount_opts.max = ctx->max;
drivers/android/binderfs.c
724
ctx->max = BINDERFS_MAX_MINOR;
drivers/ata/acard-ahci.c
410
n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
drivers/ata/ahci.c
2070
n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
drivers/ata/libahci_platform.c
452
max_port = max(max_port, port);
drivers/ata/libahci_platform.c
735
n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
drivers/ata/libata-core.c
3055
unsigned int max = dev->id[47] & 0xff;
drivers/ata/libata-core.c
3058
if (is_power_of_2(max) && is_power_of_2(cnt))
drivers/ata/libata-core.c
3059
if (cnt <= max)
drivers/ata/libata-eh.c
3602
qc->scsicmd->allowed = max(qc->scsicmd->allowed, 1);
drivers/ata/libata-pata-timings.c
78
m->setup = max(a->setup, b->setup);
drivers/ata/libata-pata-timings.c
80
m->act8b = max(a->act8b, b->act8b);
drivers/ata/libata-pata-timings.c
82
m->rec8b = max(a->rec8b, b->rec8b);
drivers/ata/libata-pata-timings.c
84
m->cyc8b = max(a->cyc8b, b->cyc8b);
drivers/ata/libata-pata-timings.c
86
m->active = max(a->active, b->active);
drivers/ata/libata-pata-timings.c
88
m->recover = max(a->recover, b->recover);
drivers/ata/libata-pata-timings.c
90
m->dmack_hold = max(a->dmack_hold, b->dmack_hold);
drivers/ata/libata-pata-timings.c
92
m->cycle = max(a->cycle, b->cycle);
drivers/ata/libata-pata-timings.c
94
m->udma = max(a->udma, b->udma);
drivers/ata/pata_octeon_cf.c
244
oe_n = max(T0 - oe_a, Tkr);
drivers/ata/pata_parport/pata_parport.c
391
static bool pi_probe_mode(struct pi_adapter *pi, int max)
drivers/ata/pata_parport/pata_parport.c
396
if (pi->mode >= max)
drivers/ata/pata_parport/pata_parport.c
406
for (pi->mode = 0; pi->mode < max; pi->mode++) {
drivers/ata/pata_parport/pata_parport.c
421
int max, s, e;
drivers/ata/pata_parport/pata_parport.c
433
max = pi->proto->test_port(pi);
drivers/ata/pata_parport/pata_parport.c
436
max = pi->proto->max_mode;
drivers/ata/pata_parport/pata_parport.c
444
return pi_probe_mode(pi, max);
drivers/ata/pata_parport/pata_parport.c
451
return pi_probe_mode(pi, max);
drivers/ata/sata_highbank.c
520
n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
drivers/atm/nicstar.c
1000
if (card->sbfqc >= card->sbnr.max) {
drivers/atm/nicstar.c
1010
if (card->lbfqc >= card->lbnr.max) {
drivers/atm/nicstar.c
2284
if (card->hbpool.count < card->hbnr.max) {
drivers/atm/nicstar.c
2351
if (card->iovpool.count < card->iovnr.max) {
drivers/atm/nicstar.c
2420
card->sbnr.init, card->sbnr.max);
drivers/atm/nicstar.c
2424
card->lbnr.init, card->lbnr.max);
drivers/atm/nicstar.c
2428
card->hbnr.init, card->hbnr.max);
drivers/atm/nicstar.c
2432
card->iovnr.init, card->iovnr.max);
drivers/atm/nicstar.c
2494
pl.level.max = card->sbnr.max;
drivers/atm/nicstar.c
2502
pl.level.max = card->lbnr.max;
drivers/atm/nicstar.c
2509
pl.level.max = card->hbnr.max;
drivers/atm/nicstar.c
2516
pl.level.max = card->iovnr.max;
drivers/atm/nicstar.c
2534
|| pl.level.init >= pl.level.max)
drivers/atm/nicstar.c
2540
if (pl.level.max > TOP_SB)
drivers/atm/nicstar.c
2544
card->sbnr.max = pl.level.max;
drivers/atm/nicstar.c
2548
if (pl.level.max > TOP_LB)
drivers/atm/nicstar.c
2552
card->lbnr.max = pl.level.max;
drivers/atm/nicstar.c
2556
if (pl.level.max > TOP_HB)
drivers/atm/nicstar.c
2560
card->hbnr.max = pl.level.max;
drivers/atm/nicstar.c
2564
if (pl.level.max > TOP_IOVB)
drivers/atm/nicstar.c
2568
card->iovnr.max = pl.level.max;
drivers/atm/nicstar.c
635
card->sbnr.max = MAX_SB;
drivers/atm/nicstar.c
638
card->lbnr.max = MAX_LB;
drivers/atm/nicstar.c
641
card->iovnr.max = MAX_IOVB;
drivers/atm/nicstar.c
644
card->hbnr.max = MAX_HB;
drivers/base/arch_topology.c
254
capacity_scale = max(capacity, capacity_scale);
drivers/base/arch_topology.c
923
max_smt_thread_num = max(max_smt_thread_num, entry->thread_num);
drivers/base/firmware_loader/main.c
262
int new_array_size = max(pages_needed,
drivers/base/regmap/internal.h
198
int (*sync)(struct regmap *map, unsigned int min, unsigned int max);
drivers/base/regmap/internal.h
199
int (*drop)(struct regmap *map, unsigned int min, unsigned int max);
drivers/base/regmap/internal.h
25
off_t max;
drivers/base/regmap/regcache-flat.c
147
unsigned int max)
drivers/base/regmap/regcache-flat.c
151
unsigned int bitmap_max = regcache_flat_get_index(map, max);
drivers/base/regmap/regcache-maple.c
108
unsigned int max)
drivers/base/regmap/regcache-maple.c
111
MA_STATE(mas, mt, min, max);
drivers/base/regmap/regcache-maple.c
123
mas_for_each(&mas, entry, max) {
drivers/base/regmap/regcache-maple.c
145
if (mas.last > max) {
drivers/base/regmap/regcache-maple.c
146
upper_index = max + 1;
drivers/base/regmap/regcache-maple.c
149
upper = kmemdup_array(&entry[max - mas.index + 1],
drivers/base/regmap/regcache-maple.c
150
mas.last - max, sizeof(*upper),
drivers/base/regmap/regcache-maple.c
191
unsigned int min, unsigned int max)
drivers/base/regmap/regcache-maple.c
206
if (max - min > 1 && regmap_can_raw_write(map)) {
drivers/base/regmap/regcache-maple.c
207
buf = kmalloc_array(max - min, val_bytes, map->alloc_flags);
drivers/base/regmap/regcache-maple.c
214
for (r = min; r < max; r++) {
drivers/base/regmap/regcache-maple.c
219
ret = _regmap_raw_write(map, min, buf, (max - min) * val_bytes,
drivers/base/regmap/regcache-maple.c
224
for (r = min; r < max; r++) {
drivers/base/regmap/regcache-maple.c
239
unsigned int max)
drivers/base/regmap/regcache-maple.c
243
MA_STATE(mas, mt, min, max);
drivers/base/regmap/regcache-maple.c
245
unsigned long lmax = max;
drivers/base/regmap/regcache-maple.c
254
mas_for_each(&mas, entry, max) {
drivers/base/regmap/regcache-maple.c
255
for (r = max(mas.index, lmin); r <= min(mas.last, lmax); r++) {
drivers/base/regmap/regcache-rbtree.c
389
unsigned int min, max;
drivers/base/regmap/regcache-rbtree.c
399
max = reg + max_dist;
drivers/base/regmap/regcache-rbtree.c
410
if (base_reg <= max && top_reg >= min) {
drivers/base/regmap/regcache-rbtree.c
421
new_top_reg = max(reg, top_reg);
drivers/base/regmap/regcache-rbtree.c
466
unsigned int max)
drivers/base/regmap/regcache-rbtree.c
483
if (base_reg > max)
drivers/base/regmap/regcache-rbtree.c
493
if (max < top_reg)
drivers/base/regmap/regcache-rbtree.c
494
end = (max - base_reg) / map->reg_stride + 1;
drivers/base/regmap/regcache-rbtree.c
511
unsigned int max)
drivers/base/regmap/regcache-rbtree.c
525
if (base_reg > max)
drivers/base/regmap/regcache-rbtree.c
535
if (max < top_reg)
drivers/base/regmap/regcache-rbtree.c
536
end = (max - base_reg) / map->reg_stride + 1;
drivers/base/regmap/regcache.c
345
unsigned int max)
drivers/base/regmap/regcache.c
349
for (reg = min; reg <= max; reg += map->reg_stride) {
drivers/base/regmap/regcache.c
490
unsigned int max)
drivers/base/regmap/regcache.c
507
dev_dbg(map->dev, "Syncing %s cache from %d-%d\n", name, min, max);
drivers/base/regmap/regcache.c
517
ret = map->cache_ops->sync(map, min, max);
drivers/base/regmap/regcache.c
519
ret = regcache_default_sync(map, min, max);
drivers/base/regmap/regcache.c
548
unsigned int max)
drivers/base/regmap/regcache.c
557
trace_regcache_drop_region(map, min, max);
drivers/base/regmap/regcache.c
559
ret = map->cache_ops->drop(map, min, max);
drivers/base/regmap/regmap-debugfs.c
121
c->max = p - 1;
drivers/base/regmap/regmap-debugfs.c
149
c->max = p - 1;
drivers/base/regmap/regmap-debugfs.c
165
if (from >= c->min && from <= c->max) {
drivers/base/regmap/regmap-debugfs.c
173
*pos = c->max;
drivers/block/drbd/drbd_main.c
3260
peer = max(peer, DRBD_MAX_BIO_SIZE_SAFE);
drivers/block/drbd/drbd_nl.c
1285
max(drbd_max_peer_bio_size(device), device->peer_max_bio_size));
drivers/block/drbd/drbd_receiver.c
1337
granularity = max(bdev_discard_granularity(bdev) >> 9, 1U);
drivers/block/drbd/drbd_vli.h
158
u64 max = 0;
drivers/block/drbd/drbd_vli.h
165
max += 1ULL << (t - b); \
drivers/block/drbd/drbd_vli.h
166
if (in <= max) { \
drivers/block/drbd/drbd_vli.h
171
adj = max + 1; \
drivers/block/floppy.c
2458
buffer_max = max(max_sector, buffer_max);
drivers/block/null_blk/main.c
132
static int null_param_store_val(const char *str, int *val, int min, int max)
drivers/block/null_blk/main.c
140
if (new_val < min || new_val > max)
drivers/block/zram/zram_drv.c
2422
prio = max(prio, get_slot_comp_priority(zram, index) + 1);
drivers/bus/intel-ixp4xx-eb.c
100
.max = 3,
drivers/bus/intel-ixp4xx-eb.c
106
.max = 15,
drivers/bus/intel-ixp4xx-eb.c
112
.max = 3,
drivers/bus/intel-ixp4xx-eb.c
118
.max = 15,
drivers/bus/intel-ixp4xx-eb.c
124
.max = 1,
drivers/bus/intel-ixp4xx-eb.c
129
.max = 1,
drivers/bus/intel-ixp4xx-eb.c
134
.max = 1,
drivers/bus/intel-ixp4xx-eb.c
139
.max = 1,
drivers/bus/intel-ixp4xx-eb.c
144
.max = 1,
drivers/bus/intel-ixp4xx-eb.c
149
.max = 1,
drivers/bus/intel-ixp4xx-eb.c
219
if (ip->max == 1) {
drivers/bus/intel-ixp4xx-eb.c
230
if (val > ip->max) {
drivers/bus/intel-ixp4xx-eb.c
233
cs_index, ip->prop, val, ip->max);
drivers/bus/intel-ixp4xx-eb.c
234
val = ip->max;
drivers/bus/intel-ixp4xx-eb.c
86
u32 max;
drivers/bus/intel-ixp4xx-eb.c
94
.max = 3,
drivers/bus/qcom-ebi2.c
164
u32 max;
drivers/bus/qcom-ebi2.c
172
.max = 15,
drivers/bus/qcom-ebi2.c
178
.max = 15,
drivers/bus/qcom-ebi2.c
184
.max = 255,
drivers/bus/qcom-ebi2.c
190
.max = 255,
drivers/bus/qcom-ebi2.c
196
.max = 15,
drivers/bus/qcom-ebi2.c
202
.max = 15,
drivers/bus/qcom-ebi2.c
208
.max = 1, /* boolean prop */
drivers/bus/qcom-ebi2.c
214
.max = 3,
drivers/bus/qcom-ebi2.c
220
.max = 15,
drivers/bus/qcom-ebi2.c
260
if (xp->max == 1 && val) {
drivers/bus/qcom-ebi2.c
270
if (val > xp->max) {
drivers/bus/qcom-ebi2.c
273
xp->prop, val, xp->max);
drivers/bus/qcom-ebi2.c
274
val = xp->max;
drivers/char/agp/isoch.c
148
y_max = max(y_max, master[cdev].y);
drivers/char/hw_random/airoha-trng.c
138
static int airoha_trng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/amd-rng.c
62
static int amd_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/amd-rng.c
68
int timeout = max / 4 + 1;
drivers/char/hw_random/amd-rng.c
75
while (read < max) {
drivers/char/hw_random/arm_smccc_trng.c
62
static int smccc_trng_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/char/hw_random/arm_smccc_trng.c
69
while (copied < max) {
drivers/char/hw_random/arm_smccc_trng.c
70
size_t bits = min_t(size_t, (max - copied) * BITS_PER_BYTE,
drivers/char/hw_random/atmel-rng.c
56
static int atmel_trng_read(struct hwrng *rng, void *buf, size_t max,
drivers/char/hw_random/ba431-rng.c
115
static int ba431_trng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/ba431-rng.c
122
while (max > 0) {
drivers/char/hw_random/ba431-rng.c
141
max -= sizeof(*data);
drivers/char/hw_random/ba431-rng.c
142
} while (--i && (max > 0));
drivers/char/hw_random/bcm2835-rng.c
63
static int bcm2835_rng_read(struct hwrng *rng, void *buf, size_t max,
drivers/char/hw_random/bcm2835-rng.c
67
u32 max_words = max / sizeof(u32);
drivers/char/hw_random/bcm74110-rng.c
39
static int bcm74110_rng_read(struct hwrng *rng, void *buf, size_t max,
drivers/char/hw_random/bcm74110-rng.c
46
u32 max_words = max / sizeof(u32);
drivers/char/hw_random/cavium-rng-vf.c
146
static int cavium_rng_read(struct hwrng *rng, void *dat, size_t max, bool wait)
drivers/char/hw_random/cavium-rng-vf.c
149
unsigned int size = max;
drivers/char/hw_random/cavium-rng-vf.c
166
return max;
drivers/char/hw_random/cctrng.c
209
static int cctrng_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/char/hw_random/cctrng.c
230
size = min((cnt_w<<2), max);
drivers/char/hw_random/cctrng.c
235
left = max - copied;
drivers/char/hw_random/cn10k-rng.c
138
size_t max, bool wait)
drivers/char/hw_random/cn10k-rng.c
150
size = max;
drivers/char/hw_random/cn10k-rng.c
174
return max - size;
drivers/char/hw_random/exynos-trng.c
100
static int exynos_trng_do_read_smc(struct hwrng *rng, void *data, size_t max,
drivers/char/hw_random/exynos-trng.c
108
while (copied < max) {
drivers/char/hw_random/exynos-trng.c
82
static int exynos_trng_do_read_reg(struct hwrng *rng, void *data, size_t max,
drivers/char/hw_random/exynos-trng.c
88
max = min_t(size_t, max, (EXYNOS_TRNG_FIFO_LEN * 4));
drivers/char/hw_random/exynos-trng.c
89
writel_relaxed(max * 8, trng->mem + EXYNOS_TRNG_FIFO_CTRL);
drivers/char/hw_random/exynos-trng.c
95
memcpy_fromio(data, trng->mem + EXYNOS_TRNG_FIFO_0, max);
drivers/char/hw_random/exynos-trng.c
97
return max;
drivers/char/hw_random/hisi-rng.c
64
static int hisi_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/histb-rng.c
60
static int histb_rng_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/char/hw_random/histb-rng.c
65
for (int i = 0; i < max; i += sizeof(u32)) {
drivers/char/hw_random/histb-rng.c
78
return max;
drivers/char/hw_random/imx-rngc.c
125
static int imx_rngc_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/char/hw_random/imx-rngc.c
135
while (max >= sizeof(u32)) {
drivers/char/hw_random/imx-rngc.c
148
max -= sizeof(u32);
drivers/char/hw_random/ingenic-rng.c
55
static int ingenic_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/ingenic-trng.c
57
static int ingenic_trng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/iproc-rng200.c
111
return max - num_remaining;
drivers/char/hw_random/iproc-rng200.c
141
return max - num_remaining;
drivers/char/hw_random/iproc-rng200.c
148
return max - num_remaining;
drivers/char/hw_random/iproc-rng200.c
90
static int iproc_rng200_read(struct hwrng *rng, void *buf, size_t max,
drivers/char/hw_random/iproc-rng200.c
94
uint32_t num_remaining = max;
drivers/char/hw_random/jh7110-trng.c
245
static int starfive_trng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/jh7110-trng.c
253
max = min_t(size_t, max, (STARFIVE_RAND_LEN * 8));
drivers/char/hw_random/jh7110-trng.c
255
max = min_t(size_t, max, (STARFIVE_RAND_LEN * 4));
drivers/char/hw_random/jh7110-trng.c
267
memcpy_fromio(buf, trng->base + STARFIVE_RAND0, max);
drivers/char/hw_random/jh7110-trng.c
271
return max;
drivers/char/hw_random/meson-rng.c
26
int (*read)(struct hwrng *rng, void *buf, size_t max, bool wait);
drivers/char/hw_random/meson-rng.c
35
static int meson_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/meson-rng.c
59
static int meson_s4_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/mpfs-rng.c
27
static int mpfs_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/mpfs-rng.c
48
while (count < max) {
drivers/char/hw_random/mpfs-rng.c
53
copy_size_bytes = max - count > RNG_RESP_BYTES ? RNG_RESP_BYTES : max - count;
drivers/char/hw_random/mtk-rng.c
84
static int mtk_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/mtk-rng.c
91
while (max >= sizeof(u32)) {
drivers/char/hw_random/mtk-rng.c
98
max -= sizeof(u32);
drivers/char/hw_random/nomadik-rng.c
16
static int nmk_rng_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/char/hw_random/npcm-rng.c
55
static int npcm_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/npcm-rng.c
63
while (max) {
drivers/char/hw_random/npcm-rng.c
80
max--;
drivers/char/hw_random/omap-rng.c
173
static int omap_rng_do_read(struct hwrng *rng, void *data, size_t max,
drivers/char/hw_random/omap-rng.c
181
if (max < priv->pdata->data_size)
drivers/char/hw_random/omap3-rom-rng.c
37
static int omap3_rom_rng_read(struct hwrng *rng, void *data, size_t max, bool w)
drivers/char/hw_random/optee-rng.c
115
static int optee_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/optee-rng.c
122
if (max > MAX_ENTROPY_REQ_SZ)
drivers/char/hw_random/optee-rng.c
123
max = MAX_ENTROPY_REQ_SZ;
drivers/char/hw_random/optee-rng.c
125
while (read < max) {
drivers/char/hw_random/optee-rng.c
126
rng_size = get_optee_rng_data(pvt_data, data, (max - read));
drivers/char/hw_random/optee-rng.c
132
if ((timeout-- == 0) || (read == max))
drivers/char/hw_random/optee-rng.c
134
msleep((1000 * (max - read)) / pvt_data->data_rate);
drivers/char/hw_random/pic32-rng.c
49
static int pic32_rng_read(struct hwrng *rng, void *buf, size_t max,
drivers/char/hw_random/powernv-rng.c
16
static int powernv_rng_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/char/hw_random/powernv-rng.c
22
len = max / sizeof(unsigned long);
drivers/char/hw_random/pseries-rng.c
16
static int pseries_rng_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/char/hw_random/rockchip-rng.c
135
int (*rk_rng_read)(struct hwrng *rng, void *buf, size_t max, bool wait);
drivers/char/hw_random/rockchip-rng.c
202
static int rk3568_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/rockchip-rng.c
205
size_t to_read = min_t(size_t, max, RK_RNG_MAX_BYTE);
drivers/char/hw_random/rockchip-rng.c
238
static int rk3576_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/rockchip-rng.c
241
size_t to_read = min_t(size_t, max, RKRNG_READ_LEN);
drivers/char/hw_random/rockchip-rng.c
322
static int rk3588_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/rockchip-rng.c
325
size_t to_read = min_t(size_t, max, RK_RNG_MAX_BYTE);
drivers/char/hw_random/s390-trng.c
173
static int trng_hwrng_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/char/hw_random/s390-trng.c
175
size_t len = max <= PAGE_SIZE ? max : PAGE_SIZE;
drivers/char/hw_random/st-rng.c
48
static int st_rng_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/char/hw_random/st-rng.c
65
for (i = 0; i < ST_RNG_FIFO_SIZE && i < max; i += 2)
drivers/char/hw_random/stm32-rng.c
186
static int stm32_rng_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/char/hw_random/stm32-rng.c
200
while (max >= sizeof(u32)) {
drivers/char/hw_random/stm32-rng.c
254
max -= sizeof(u32);
drivers/char/hw_random/timeriomem-rng.c
45
size_t max, bool wait)
drivers/char/hw_random/timeriomem-rng.c
72
period_us + max(1, period_us / 100));
drivers/char/hw_random/timeriomem-rng.c
77
max -= sizeof(u32);
drivers/char/hw_random/timeriomem-rng.c
78
} while (wait && max > sizeof(u32));
drivers/char/hw_random/xiphera-trng.c
35
static int xiphera_trng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/char/hw_random/xiphera-trng.c
40
while (max >= sizeof(u32)) {
drivers/char/hw_random/xiphera-trng.c
52
max -= sizeof(u32);
drivers/char/ipmi/ipmi_bt_sm.c
356
int max = bt->read_count;
drivers/char/ipmi/ipmi_bt_sm.c
359
"got %d bytes seq=0x%02X", max, bt->read_data[2]);
drivers/char/ipmi/ipmi_bt_sm.c
360
if (max > 16)
drivers/char/ipmi/ipmi_bt_sm.c
361
max = 16;
drivers/char/ipmi/ipmi_bt_sm.c
362
for (i = 0; i < max; i++)
drivers/char/ipmi/ipmi_bt_sm.c
364
pr_cont("%s\n", bt->read_count == max ? "" : " ...");
drivers/char/random.c
1203
this_cpu_ptr(&irq_randomness)->count += max(1u, bits * 64) - 1;
drivers/char/tpm/tpm-chip.c
493
static int tpm_hwrng_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/char/tpm/tpm-chip.c
497
return tpm_get_random(chip, data, max);
drivers/char/tpm/tpm-interface.c
497
int tpm_get_random(struct tpm_chip *chip, u8 *out, size_t max)
drivers/char/tpm/tpm-interface.c
501
if (!out || max > TPM_MAX_RNG_DATA)
drivers/char/tpm/tpm-interface.c
512
rc = tpm2_get_random(chip, out, max);
drivers/char/tpm/tpm-interface.c
514
rc = tpm1_get_random(chip, out, max);
drivers/char/tpm/tpm.h
255
int tpm1_get_random(struct tpm_chip *chip, u8 *out, size_t max);
drivers/char/tpm/tpm.h
295
int tpm2_get_random(struct tpm_chip *chip, u8 *dest, size_t max);
drivers/char/tpm/tpm1-cmd.c
530
int tpm1_get_random(struct tpm_chip *chip, u8 *dest, size_t max)
drivers/char/tpm/tpm1-cmd.c
533
u32 num_bytes = min_t(u32, max, TPM_MAX_RNG_DATA);
drivers/char/tpm/tpm1-cmd.c
575
} while (retries-- && total < max);
drivers/char/tpm/tpm2-cmd.c
257
int tpm2_get_random(struct tpm_chip *chip, u8 *dest, size_t max)
drivers/char/tpm/tpm2-cmd.c
263
u32 num_bytes = max;
drivers/char/tpm/tpm2-cmd.c
270
if (!num_bytes || max > TPM_MAX_RNG_DATA)
drivers/char/tpm/tpm2-cmd.c
334
} while (retries-- && total < max);
drivers/clk/at91/at91rm9200.c
24
.output = { .min = 0, .max = 80000000 },
drivers/clk/at91/at91rm9200.c
31
{ .min = 80000000, .max = 160000000 },
drivers/clk/at91/at91rm9200.c
32
{ .min = 150000000, .max = 180000000 },
drivers/clk/at91/at91rm9200.c
36
.input = { .min = 1000000, .max = 32000000 },
drivers/clk/at91/at91sam9260.c
125
.output = { .min = 0, .max = 133000000 },
drivers/clk/at91/at91sam9260.c
134
{ .min = 745000000, .max = 800000000 },
drivers/clk/at91/at91sam9260.c
135
{ .min = 695000000, .max = 750000000 },
drivers/clk/at91/at91sam9260.c
136
{ .min = 645000000, .max = 700000000 },
drivers/clk/at91/at91sam9260.c
137
{ .min = 595000000, .max = 650000000 },
drivers/clk/at91/at91sam9260.c
138
{ .min = 545000000, .max = 600000000 },
drivers/clk/at91/at91sam9260.c
139
{ .min = 495000000, .max = 550000000 },
drivers/clk/at91/at91sam9260.c
140
{ .min = 445000000, .max = 500000000 },
drivers/clk/at91/at91sam9260.c
141
{ .min = 400000000, .max = 450000000 },
drivers/clk/at91/at91sam9260.c
145
.input = { .min = 2000000, .max = 32000000 },
drivers/clk/at91/at91sam9260.c
157
{ .min = 30000000, .max = 100000000 },
drivers/clk/at91/at91sam9260.c
161
.input = { .min = 2000000, .max = 32000000 },
drivers/clk/at91/at91sam9260.c
183
.output = { .min = 0, .max = 94000000 },
drivers/clk/at91/at91sam9260.c
188
{ .min = 80000000, .max = 200000000 },
drivers/clk/at91/at91sam9260.c
189
{ .min = 190000000, .max = 240000000 },
drivers/clk/at91/at91sam9260.c
193
.input = { .min = 1000000, .max = 32000000 },
drivers/clk/at91/at91sam9260.c
205
{ .min = 70000000, .max = 130000000 },
drivers/clk/at91/at91sam9260.c
209
.input = { .min = 1000000, .max = 5000000 },
drivers/clk/at91/at91sam9260.c
263
.output = { .min = 0, .max = 120000000 },
drivers/clk/at91/at91sam9260.c
268
{ .min = 80000000, .max = 200000000 },
drivers/clk/at91/at91sam9260.c
269
{ .min = 190000000, .max = 240000000 },
drivers/clk/at91/at91sam9260.c
273
.input = { .min = 1000000, .max = 32000000 },
drivers/clk/at91/at91sam9260.c
38
.output = { .min = 0, .max = 105000000 },
drivers/clk/at91/at91sam9260.c
47
{ .min = 80000000, .max = 160000000 },
drivers/clk/at91/at91sam9260.c
48
{ .min = 150000000, .max = 240000000 },
drivers/clk/at91/at91sam9260.c
52
.input = { .min = 1000000, .max = 32000000 },
drivers/clk/at91/at91sam9260.c
64
{ .min = 70000000, .max = 130000000 },
drivers/clk/at91/at91sam9260.c
68
.input = { .min = 1000000, .max = 5000000 },
drivers/clk/at91/at91sam9g45.c
13
.output = { .min = 0, .max = 133333333 },
drivers/clk/at91/at91sam9g45.c
22
{ .min = 745000000, .max = 800000000 },
drivers/clk/at91/at91sam9g45.c
23
{ .min = 695000000, .max = 750000000 },
drivers/clk/at91/at91sam9g45.c
24
{ .min = 645000000, .max = 700000000 },
drivers/clk/at91/at91sam9g45.c
25
{ .min = 595000000, .max = 650000000 },
drivers/clk/at91/at91sam9g45.c
26
{ .min = 545000000, .max = 600000000 },
drivers/clk/at91/at91sam9g45.c
27
{ .min = 495000000, .max = 555000000 },
drivers/clk/at91/at91sam9g45.c
28
{ .min = 445000000, .max = 500000000 },
drivers/clk/at91/at91sam9g45.c
29
{ .min = 400000000, .max = 450000000 },
drivers/clk/at91/at91sam9g45.c
33
.input = { .min = 2000000, .max = 32000000 },
drivers/clk/at91/at91sam9n12.c
13
.output = { .min = 0, .max = 133333333 },
drivers/clk/at91/at91sam9n12.c
23
{ .min = 745000000, .max = 800000000 },
drivers/clk/at91/at91sam9n12.c
24
{ .min = 695000000, .max = 750000000 },
drivers/clk/at91/at91sam9n12.c
25
{ .min = 645000000, .max = 700000000 },
drivers/clk/at91/at91sam9n12.c
26
{ .min = 595000000, .max = 650000000 },
drivers/clk/at91/at91sam9n12.c
27
{ .min = 545000000, .max = 600000000 },
drivers/clk/at91/at91sam9n12.c
28
{ .min = 495000000, .max = 555000000 },
drivers/clk/at91/at91sam9n12.c
29
{ .min = 445000000, .max = 500000000 },
drivers/clk/at91/at91sam9n12.c
30
{ .min = 400000000, .max = 450000000 },
drivers/clk/at91/at91sam9n12.c
34
.input = { .min = 2000000, .max = 32000000 },
drivers/clk/at91/at91sam9n12.c
44
{ .min = 30000000, .max = 100000000 },
drivers/clk/at91/at91sam9n12.c
48
.input = { .min = 2000000, .max = 32000000 },
drivers/clk/at91/at91sam9rl.c
13
.output = { .min = 0, .max = 94000000 },
drivers/clk/at91/at91sam9rl.c
20
{ .min = 80000000, .max = 200000000 },
drivers/clk/at91/at91sam9rl.c
21
{ .min = 190000000, .max = 240000000 },
drivers/clk/at91/at91sam9rl.c
25
.input = { .min = 1000000, .max = 32000000 },
drivers/clk/at91/at91sam9x5.c
13
.output = { .min = 0, .max = 133333333 },
drivers/clk/at91/at91sam9x5.c
23
{ .min = 745000000, .max = 800000000 },
drivers/clk/at91/at91sam9x5.c
24
{ .min = 695000000, .max = 750000000 },
drivers/clk/at91/at91sam9x5.c
25
{ .min = 645000000, .max = 700000000 },
drivers/clk/at91/at91sam9x5.c
26
{ .min = 595000000, .max = 650000000 },
drivers/clk/at91/at91sam9x5.c
27
{ .min = 545000000, .max = 600000000 },
drivers/clk/at91/at91sam9x5.c
28
{ .min = 495000000, .max = 555000000 },
drivers/clk/at91/at91sam9x5.c
29
{ .min = 445000000, .max = 500000000 },
drivers/clk/at91/at91sam9x5.c
30
{ .min = 400000000, .max = 450000000 },
drivers/clk/at91/at91sam9x5.c
34
.input = { .min = 2000000, .max = 32000000 },
drivers/clk/at91/clk-audio-pll.c
255
req->min_rate = max(req->min_rate, AUDIO_PLL_FOUT_MIN);
drivers/clk/at91/clk-audio-pll.c
344
div = max(best_parent_rate / req->rate, 1UL);
drivers/clk/at91/clk-generated.c
146
if (gck->range.max && req->rate > gck->range.max)
drivers/clk/at91/clk-generated.c
147
req->rate = gck->range.max;
drivers/clk/at91/clk-generated.c
162
(gck->range.max && min_rate > gck->range.max))
drivers/clk/at91/clk-generated.c
212
if (best_rate < 0 || (gck->range.max && best_rate > gck->range.max))
drivers/clk/at91/clk-generated.c
253
if (gck->range.max && rate > gck->range.max)
drivers/clk/at91/clk-master.c
107
else if (rate > characteristics->output.max)
drivers/clk/at91/clk-master.c
200
else if (rate > characteristics->output.max)
drivers/clk/at91/clk-master.c
313
tmp_diff = characteristics->output.max - new_rate;
drivers/clk/at91/clk-peripheral.c
148
if (periph->range.max) {
drivers/clk/at91/clk-peripheral.c
155
if (parent_rate >> shift <= periph->range.max)
drivers/clk/at91/clk-peripheral.c
283
if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) {
drivers/clk/at91/clk-peripheral.c
293
if (periph->range.max && tmp_rate > periph->range.max)
drivers/clk/at91/clk-peripheral.c
326
(periph->range.max && best_rate > periph->range.max))
drivers/clk/at91/clk-peripheral.c
349
if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) {
drivers/clk/at91/clk-peripheral.c
355
if (periph->range.max) {
drivers/clk/at91/clk-peripheral.c
358
if (cur_rate <= periph->range.max)
drivers/clk/at91/clk-peripheral.c
398
if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) {
drivers/clk/at91/clk-peripheral.c
405
if (periph->range.max && rate > periph->range.max)
drivers/clk/at91/clk-pll.c
152
if (parent_rate > characteristics->input.max) {
drivers/clk/at91/clk-pll.c
153
tmpdiv = DIV_ROUND_UP(parent_rate, characteristics->input.max);
drivers/clk/at91/clk-pll.c
217
bestrate <= characteristics->output[i].max)
drivers/clk/at91/clk-sam9x60-pll.c
198
rate > core->characteristics->core_output[0].max)
drivers/clk/at91/clk-sam9x60-pll.c
219
tmprate > core->characteristics->core_output[0].max)
drivers/clk/at91/clk-sam9x60-pll.c
466
rate > characteristics->output[0].max)
drivers/clk/at91/clk-sam9x60-pll.c
488
best_rate > characteristics->output[0].max)
drivers/clk/at91/dt-compat.c
602
output[i].max = tmp;
drivers/clk/at91/pmc.c
27
u32 min, max;
drivers/clk/at91/pmc.c
34
ret = of_property_read_u32_index(np, propname, 1, &max);
drivers/clk/at91/pmc.c
40
range->max = max;
drivers/clk/at91/pmc.h
37
unsigned long max;
drivers/clk/at91/pmc.h
40
#define CLK_RANGE(MIN, MAX) {.min = MIN, .max = MAX,}
drivers/clk/at91/sam9x60.c
14
.output = { .min = 140000000, .max = 200000000 },
drivers/clk/at91/sam9x60.c
169
{ .n = "sdmmc0_gclk", .id = 12, .r = { .min = 0, .max = 105000000 }, },
drivers/clk/at91/sam9x60.c
176
{ .n = "lcd_gclk", .id = 25, .r = { .min = 0, .max = 140000000 }, },
drivers/clk/at91/sam9x60.c
177
{ .n = "sdmmc1_gclk", .id = 26, .r = { .min = 0, .max = 105000000 }, },
drivers/clk/at91/sam9x60.c
180
{ .n = "i2s_gclk", .id = 34, .r = { .min = 0, .max = 105000000 }, },
drivers/clk/at91/sam9x60.c
182
{ .n = "classd_gclk", .id = 42, .r = { .min = 0, .max = 100000000 }, },
drivers/clk/at91/sam9x60.c
26
{ .min = 2343750, .max = 1200000000 },
drivers/clk/at91/sam9x60.c
31
{ .min = 600000000, .max = 1200000000 },
drivers/clk/at91/sam9x60.c
35
.input = { .min = 12000000, .max = 48000000 },
drivers/clk/at91/sam9x60.c
43
{ .min = 300000000, .max = 500000000 },
drivers/clk/at91/sam9x60.c
47
.input = { .min = 12000000, .max = 48000000 },
drivers/clk/at91/sam9x7.c
101
{ .min = 200000000, .max = 400000000 },
drivers/clk/at91/sam9x7.c
106
.input = { .min = 20000000, .max = 50000000 },
drivers/clk/at91/sam9x7.c
114
.input = { .min = 20000000, .max = 50000000 },
drivers/clk/at91/sam9x7.c
123
.input = { .min = 20000000, .max = 50000000 },
drivers/clk/at91/sam9x7.c
131
.input = { .min = 20000000, .max = 50000000 },
drivers/clk/at91/sam9x7.c
139
.input = { .min = 20000000, .max = 50000000 },
drivers/clk/at91/sam9x7.c
51
.output = { .min = 32000000, .max = 266666667 },
drivers/clk/at91/sam9x7.c
511
.r = { .max = 105000000 },
drivers/clk/at91/sam9x7.c
575
.r = { .max = 75000000 },
drivers/clk/at91/sam9x7.c
585
.r = { .max = 105000000 },
drivers/clk/at91/sam9x7.c
595
.r = { .max = 80000000 },
drivers/clk/at91/sam9x7.c
605
.r = { .max = 80000000 },
drivers/clk/at91/sam9x7.c
633
.r = { .max = 100000000 },
drivers/clk/at91/sam9x7.c
64
{ .min = 800000000, .max = 1600000000 },
drivers/clk/at91/sam9x7.c
643
.r = { .max = 200000000 },
drivers/clk/at91/sam9x7.c
662
.r = { .max = 100000000 },
drivers/clk/at91/sam9x7.c
68
{ .min = 600000000, .max = 960000000 },
drivers/clk/at91/sam9x7.c
690
.r = { .max = 27000000 },
drivers/clk/at91/sam9x7.c
72
{ .min = 600000000, .max = 1200000000 },
drivers/clk/at91/sam9x7.c
76
{ .min = 600000000, .max = 1200000000 },
drivers/clk/at91/sam9x7.c
80
{ .min = 800000000, .max = 1600000000 },
drivers/clk/at91/sam9x7.c
85
{ .min = 400000000, .max = 800000000 },
drivers/clk/at91/sam9x7.c
89
{ .min = 300000000, .max = 480000000 },
drivers/clk/at91/sam9x7.c
93
{ .min = 175000000, .max = 550000000 },
drivers/clk/at91/sam9x7.c
97
{ .min = 0, .max = 300000000 },
drivers/clk/at91/sama5d2.c
100
{ .n = "classd_clk", .id = 59, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
13
.output = { .min = 124000000, .max = 166000000 },
drivers/clk/at91/sama5d2.c
133
{ .n = "flx0_gclk", .id = 19, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, },
drivers/clk/at91/sama5d2.c
134
{ .n = "flx1_gclk", .id = 20, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, },
drivers/clk/at91/sama5d2.c
135
{ .n = "flx2_gclk", .id = 21, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, },
drivers/clk/at91/sama5d2.c
136
{ .n = "flx3_gclk", .id = 22, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, },
drivers/clk/at91/sama5d2.c
137
{ .n = "flx4_gclk", .id = 23, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, },
drivers/clk/at91/sama5d2.c
138
{ .n = "uart0_gclk", .id = 24, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, },
drivers/clk/at91/sama5d2.c
139
{ .n = "uart1_gclk", .id = 25, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, },
drivers/clk/at91/sama5d2.c
140
{ .n = "uart2_gclk", .id = 26, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, },
drivers/clk/at91/sama5d2.c
141
{ .n = "uart3_gclk", .id = 27, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, },
drivers/clk/at91/sama5d2.c
142
{ .n = "uart4_gclk", .id = 28, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, },
drivers/clk/at91/sama5d2.c
145
{ .n = "tcb0_gclk", .id = 35, .chg_pid = INT_MIN, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
146
{ .n = "tcb1_gclk", .id = 36, .chg_pid = INT_MIN, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
147
{ .n = "pwm_gclk", .id = 38, .chg_pid = INT_MIN, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
152
{ .n = "can0_gclk", .id = 56, .chg_pid = INT_MIN, .r = { .min = 0, .max = 80000000 }, },
drivers/clk/at91/sama5d2.c
153
{ .n = "can1_gclk", .id = 57, .chg_pid = INT_MIN, .r = { .min = 0, .max = 80000000 }, },
drivers/clk/at91/sama5d2.c
154
{ .n = "classd_gclk", .id = 59, .chg_pid = 5, .r = { .min = 0, .max = 100000000 }, },
drivers/clk/at91/sama5d2.c
22
{ .min = 600000000, .max = 1200000000 },
drivers/clk/at91/sama5d2.c
26
.input = { .min = 12000000, .max = 24000000 },
drivers/clk/at91/sama5d2.c
65
{ .n = "macb0_clk", .id = 5, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
66
{ .n = "tdes_clk", .id = 11, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
69
{ .n = "pioA_clk", .id = 18, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
70
{ .n = "flx0_clk", .id = 19, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
71
{ .n = "flx1_clk", .id = 20, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
72
{ .n = "flx2_clk", .id = 21, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
73
{ .n = "flx3_clk", .id = 22, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
74
{ .n = "flx4_clk", .id = 23, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
75
{ .n = "uart0_clk", .id = 24, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
76
{ .n = "uart1_clk", .id = 25, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
77
{ .n = "uart2_clk", .id = 26, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
78
{ .n = "uart3_clk", .id = 27, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
79
{ .n = "uart4_clk", .id = 28, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
80
{ .n = "twi0_clk", .id = 29, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
81
{ .n = "twi1_clk", .id = 30, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
82
{ .n = "spi0_clk", .id = 33, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
83
{ .n = "spi1_clk", .id = 34, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
84
{ .n = "tcb0_clk", .id = 35, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
85
{ .n = "tcb1_clk", .id = 36, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
86
{ .n = "pwm_clk", .id = 38, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
87
{ .n = "adc_clk", .id = 40, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
88
{ .n = "uhphs_clk", .id = 41, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
89
{ .n = "udphs_clk", .id = 42, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
90
{ .n = "ssc0_clk", .id = 43, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
91
{ .n = "ssc1_clk", .id = 44, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
92
{ .n = "trng_clk", .id = 47, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
93
{ .n = "pdmic_clk", .id = 48, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
95
{ .n = "i2s0_clk", .id = 54, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
96
{ .n = "i2s1_clk", .id = 55, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
97
{ .n = "can0_clk", .id = 56, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
98
{ .n = "can1_clk", .id = 57, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d2.c
99
{ .n = "ptc_clk", .id = 58, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d3.c
100
{ .n = "ssc1_clk", .id = 39, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d3.c
101
{ .n = "can0_clk", .id = 40, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d3.c
102
{ .n = "can1_clk", .id = 41, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d3.c
13
.output = { .min = 0, .max = 166000000 },
drivers/clk/at91/sama5d3.c
22
{ .min = 400000000, .max = 1000000000 },
drivers/clk/at91/sama5d3.c
26
.input = { .min = 8000000, .max = 50000000 },
drivers/clk/at91/sama5d3.c
73
{ .n = "usart0_clk", .id = 12, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d3.c
74
{ .n = "usart1_clk", .id = 13, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d3.c
75
{ .n = "usart2_clk", .id = 14, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d3.c
76
{ .n = "usart3_clk", .id = 15, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d3.c
77
{ .n = "uart0_clk", .id = 16, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d3.c
78
{ .n = "uart1_clk", .id = 17, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d3.c
79
{ .n = "twi0_clk", .id = 18, .r = { .min = 0, .max = 41500000 }, },
drivers/clk/at91/sama5d3.c
80
{ .n = "twi1_clk", .id = 19, .r = { .min = 0, .max = 41500000 }, },
drivers/clk/at91/sama5d3.c
81
{ .n = "twi2_clk", .id = 20, .r = { .min = 0, .max = 41500000 }, },
drivers/clk/at91/sama5d3.c
85
{ .n = "spi0_clk", .id = 24, .r = { .min = 0, .max = 166000000 }, },
drivers/clk/at91/sama5d3.c
86
{ .n = "spi1_clk", .id = 25, .r = { .min = 0, .max = 166000000 }, },
drivers/clk/at91/sama5d3.c
87
{ .n = "tcb0_clk", .id = 26, .r = { .min = 0, .max = 166000000 }, },
drivers/clk/at91/sama5d3.c
88
{ .n = "tcb1_clk", .id = 27, .r = { .min = 0, .max = 166000000 }, },
drivers/clk/at91/sama5d3.c
90
{ .n = "adc_clk", .id = 29, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d3.c
99
{ .n = "ssc0_clk", .id = 38, .r = { .min = 0, .max = 83000000 }, },
drivers/clk/at91/sama5d4.c
13
.output = { .min = 125000000, .max = 200000000 },
drivers/clk/at91/sama5d4.c
22
{ .min = 600000000, .max = 1200000000 },
drivers/clk/at91/sama5d4.c
26
.input = { .min = 12000000, .max = 12000000 },
drivers/clk/at91/sama7d65.c
1000
.r = { .max = 208000000 },
drivers/clk/at91/sama7d65.c
1008
.r = { .max = 208000000 },
drivers/clk/at91/sama7d65.c
1016
.r = { .max = 150000000 },
drivers/clk/at91/sama7d65.c
102
{ .min = 2343750, .max = 1000000002 },
drivers/clk/at91/sama7d65.c
1024
.r = { .max = 25000000 },
drivers/clk/at91/sama7d65.c
1032
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
1041
.r = { .max = 67000000 },
drivers/clk/at91/sama7d65.c
1050
.r = {.max = 27000000},
drivers/clk/at91/sama7d65.c
1058
.r = {.max = 125000000},
drivers/clk/at91/sama7d65.c
1068
.output = { .min = 32768, .max = 200000000 },
drivers/clk/at91/sama7d65.c
107
{ .min = 2343750, .max = 1200000000 },
drivers/clk/at91/sama7d65.c
115
{ .min = 16406250, .max = 800000000 },
drivers/clk/at91/sama7d65.c
119
{ .min = 480000000, .max = 480000000 },
drivers/clk/at91/sama7d65.c
124
{ .min = 600000000, .max = 1200000000 },
drivers/clk/at91/sama7d65.c
128
{ .min = 600000000, .max = 1200000000 },
drivers/clk/at91/sama7d65.c
132
{ .min = 600000000, .max = 1200000000 },
drivers/clk/at91/sama7d65.c
137
.input = { .min = 12000000, .max = 50000000 },
drivers/clk/at91/sama7d65.c
146
.input = { .min = 12000000, .max = 50000000 },
drivers/clk/at91/sama7d65.c
154
.input = { .min = 12000000, .max = 50000000 },
drivers/clk/at91/sama7d65.c
162
.input = { .min = 20000000, .max = 50000000 },
drivers/clk/at91/sama7d65.c
618
{ .n = "asrc_clk", .p = PCK_PARENT_HW_MCK9, .id = 29, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
637
{ .n = "i2smcc0_clk", .p = PCK_PARENT_HW_MCK9, .id = 54, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
638
{ .n = "i2smcc1_clk", .p = PCK_PARENT_HW_MCK9, .id = 55, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
641
{ .n = "mcan0_clk", .p = PCK_PARENT_HW_MCK5, .id = 58, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
642
{ .n = "mcan1_clk", .p = PCK_PARENT_HW_MCK5, .id = 59, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
643
{ .n = "mcan2_clk", .p = PCK_PARENT_HW_MCK5, .id = 60, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
644
{ .n = "mcan3_clk", .p = PCK_PARENT_HW_MCK5, .id = 61, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
645
{ .n = "mcan4_clk", .p = PCK_PARENT_HW_MCK5, .id = 62, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
646
{ .n = "pdmc0_clk", .p = PCK_PARENT_HW_MCK9, .id = 64, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
647
{ .n = "pdmc1_clk", .p = PCK_PARENT_HW_MCK9, .id = 65, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
661
{ .n = "spdifrx_clk", .p = PCK_PARENT_HW_MCK9, .id = 79, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
662
{ .n = "spdiftx_clk", .p = PCK_PARENT_HW_MCK9, .id = 80, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
663
{ .n = "ssc0_clk", .p = PCK_PARENT_HW_MCK7, .id = 81, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
664
{ .n = "ssc1_clk", .p = PCK_PARENT_HW_MCK8, .id = 82, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
665
{ .n = "tcb0_ch0_clk", .p = PCK_PARENT_HW_MCK8, .id = 83, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
666
{ .n = "tcb0_ch1_clk", .p = PCK_PARENT_HW_MCK8, .id = 84, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
667
{ .n = "tcb0_ch2_clk", .p = PCK_PARENT_HW_MCK8, .id = 85, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
668
{ .n = "tcb1_ch0_clk", .p = PCK_PARENT_HW_MCK5, .id = 86, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
669
{ .n = "tcb1_ch1_clk", .p = PCK_PARENT_HW_MCK5, .id = 87, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
670
{ .n = "tcb1_ch2_clk", .p = PCK_PARENT_HW_MCK5, .id = 88, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7d65.c
707
.r = { .max = 100000000, },
drivers/clk/at91/sama7d65.c
715
.r = { .max = 200000000 },
drivers/clk/at91/sama7d65.c
723
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
731
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
739
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
747
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
755
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
763
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
771
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
779
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
787
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
795
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
803
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
811
.r = { .max = 125000000 },
drivers/clk/at91/sama7d65.c
819
.r = { .max = 125000000 },
drivers/clk/at91/sama7d65.c
827
.r = { .max = 400000000 },
drivers/clk/at91/sama7d65.c
835
.r = { .max = 400000000 },
drivers/clk/at91/sama7d65.c
843
.r = { .max = 100000000 },
drivers/clk/at91/sama7d65.c
851
.r = { .max = 100000000 },
drivers/clk/at91/sama7d65.c
859
.r = { .max = 90000000 },
drivers/clk/at91/sama7d65.c
866
.r = { .max = 80000000 },
drivers/clk/at91/sama7d65.c
874
.r = { .max = 80000000 },
drivers/clk/at91/sama7d65.c
882
.r = { .max = 80000000 },
drivers/clk/at91/sama7d65.c
890
.r = { .max = 80000000 },
drivers/clk/at91/sama7d65.c
898
.r = { .max = 80000000 },
drivers/clk/at91/sama7d65.c
906
.r = { .max = 80000000 },
drivers/clk/at91/sama7d65.c
914
.r = { .max = 80000000, },
drivers/clk/at91/sama7d65.c
922
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
931
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
940
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
949
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
958
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
967
.r = { .max = 34000000 },
drivers/clk/at91/sama7d65.c
976
.r = { .max = 400000000 },
drivers/clk/at91/sama7d65.c
984
.r = { .max = 266000000 },
drivers/clk/at91/sama7d65.c
992
.r = { .max = 208000000 },
drivers/clk/at91/sama7g5.c
102
{ .min = 2343750, .max = 1200000000 },
drivers/clk/at91/sama7g5.c
107
{ .min = 600000000, .max = 1200000000 },
drivers/clk/at91/sama7g5.c
112
.input = { .min = 12000000, .max = 50000000 },
drivers/clk/at91/sama7g5.c
121
.input = { .min = 12000000, .max = 50000000 },
drivers/clk/at91/sama7g5.c
477
{ .n = "asrc_clk", .p = PCK_PARENT_HW_MCK1, .id = 30, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
479
{ .n = "csi_clk", .p = PCK_PARENT_HW_MCK3, .id = 33, .r = { .max = 266000000, }, .chgp = 1, },
drivers/clk/at91/sama7g5.c
480
{ .n = "csi2dc_clk", .p = PCK_PARENT_HW_MCK3, .id = 34, .r = { .max = 266000000, }, .chgp = 1, },
drivers/clk/at91/sama7g5.c
497
{ .n = "isc_clk", .p = PCK_PARENT_HW_MCK3, .id = 56, .r = { .max = 266000000, }, .chgp = 1, },
drivers/clk/at91/sama7g5.c
498
{ .n = "i2smcc0_clk", .p = PCK_PARENT_HW_MCK1, .id = 57, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
499
{ .n = "i2smcc1_clk", .p = PCK_PARENT_HW_MCK1, .id = 58, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
501
{ .n = "mcan0_clk", .p = PCK_PARENT_HW_MCK1, .id = 61, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
502
{ .n = "mcan1_clk", .p = PCK_PARENT_HW_MCK1, .id = 62, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
503
{ .n = "mcan2_clk", .p = PCK_PARENT_HW_MCK1, .id = 63, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
504
{ .n = "mcan3_clk", .p = PCK_PARENT_HW_MCK1, .id = 64, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
505
{ .n = "mcan4_clk", .p = PCK_PARENT_HW_MCK1, .id = 65, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
506
{ .n = "mcan5_clk", .p = PCK_PARENT_HW_MCK1, .id = 66, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
507
{ .n = "pdmc0_clk", .p = PCK_PARENT_HW_MCK1, .id = 68, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
508
{ .n = "pdmc1_clk", .p = PCK_PARENT_HW_MCK1, .id = 69, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
522
{ .n = "spdifrx_clk", .p = PCK_PARENT_HW_MCK1, .id = 84, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
523
{ .n = "spdiftx_clk", .p = PCK_PARENT_HW_MCK1, .id = 85, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
524
{ .n = "ssc0_clk", .p = PCK_PARENT_HW_MCK1, .id = 86, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
525
{ .n = "ssc1_clk", .p = PCK_PARENT_HW_MCK1, .id = 87, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
526
{ .n = "tcb0_ch0_clk", .p = PCK_PARENT_HW_MCK1, .id = 88, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
527
{ .n = "tcb0_ch1_clk", .p = PCK_PARENT_HW_MCK1, .id = 89, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
528
{ .n = "tcb0_ch2_clk", .p = PCK_PARENT_HW_MCK1, .id = 90, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
529
{ .n = "tcb1_ch0_clk", .p = PCK_PARENT_HW_MCK1, .id = 91, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
530
{ .n = "tcb1_ch1_clk", .p = PCK_PARENT_HW_MCK1, .id = 92, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
531
{ .n = "tcb1_ch2_clk", .p = PCK_PARENT_HW_MCK1, .id = 93, .r = { .max = 200000000, }, },
drivers/clk/at91/sama7g5.c
566
.r = { .max = 100000000, },
drivers/clk/at91/sama7g5.c
575
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
583
.r = { .max = 27000000 },
drivers/clk/at91/sama7g5.c
591
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
599
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
607
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
615
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
623
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
631
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
639
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
647
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
655
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
663
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
671
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
679
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
687
.r = { .max = 125000000 },
drivers/clk/at91/sama7g5.c
695
.r = { .max = 50000000 },
drivers/clk/at91/sama7g5.c
703
.r = { .max = 300000000 },
drivers/clk/at91/sama7g5.c
711
.r = { .max = 300000000 },
drivers/clk/at91/sama7g5.c
719
.r = { .max = 100000000 },
drivers/clk/at91/sama7g5.c
727
.r = { .max = 100000000 },
drivers/clk/at91/sama7g5.c
735
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
743
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
751
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
759
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
767
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
775
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
783
.r = { .max = 50000000 },
drivers/clk/at91/sama7g5.c
791
.r = { .max = 50000000, },
drivers/clk/at91/sama7g5.c
799
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
809
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
819
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
829
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
839
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
849
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
859
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
867
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
875
.r = { .max = 208000000 },
drivers/clk/at91/sama7g5.c
883
.r = { .max = 208000000 },
drivers/clk/at91/sama7g5.c
891
.r = { .max = 208000000 },
drivers/clk/at91/sama7g5.c
899
.r = { .max = 150000000 },
drivers/clk/at91/sama7g5.c
907
.r = { .max = 25000000 },
drivers/clk/at91/sama7g5.c
915
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
925
.r = { .max = 200000000 },
drivers/clk/at91/sama7g5.c
935
.r = { .max = 32768, },
drivers/clk/at91/sama7g5.c
940
.r = { .max = 32768, },
drivers/clk/at91/sama7g5.c
946
.output = { .min = 32768, .max = 200000000 },
drivers/clk/at91/sama7g5.c
97
{ .min = 2343750, .max = 1000000002 },
drivers/clk/baikal-t1/ccu-pll.c
321
u32 max;
drivers/clk/baikal-t1/ccu-pll.c
338
.max = _max \
drivers/clk/baikal-t1/ccu-pll.c
392
val = clamp_t(u64, val, fld->min, fld->max);
drivers/clk/bcm/clk-bcm2835.c
1180
return *avgrate - max(*avgrate - low, high - *avgrate);
drivers/clk/bcm/clk-bcm63268-timer.c
158
maxbit = max(maxbit, entry->bit);
drivers/clk/clk-axi-clkgen.c
151
d_min = max(DIV_ROUND_UP(fin, limits->fpfd_max), 1);
drivers/clk/clk-axi-clkgen.c
158
m_min = max(DIV_ROUND_UP(fvco_min_fract, fin) * d_min, 1);
drivers/clk/clk-axi-clkgen.c
162
_d_min = max(d_min, DIV_ROUND_UP(fin * m, fvco_max_fract));
drivers/clk/clk-cdce706.c
335
diff = max(div_rate, rate) - min(div_rate, rate);
drivers/clk/clk-cdce925.c
397
pdiv_min = (u16)max(1ul, DIV_ROUND_UP(CDCE925_PLL_FREQUENCY_MIN, rate));
drivers/clk/clk-eyeq.c
156
biggest = max(*mult, *div);
drivers/clk/clk-loongson2.c
374
clks_num = max(clks_num, p->id + 1);
drivers/clk/clk-rpmi.c
291
rpmi_clk->rates->linear.max = rpmi_clkrate_u64(le32_to_cpu(rate_linear->max_hi),
drivers/clk/clk-rpmi.c
343
fmax = rpmi_clk->rates->linear.max;
drivers/clk/clk-rpmi.c
496
max_rate = rpmi_clk->rates->linear.max;
drivers/clk/clk-rpmi.c
53
u64 max;
drivers/clk/clk-scpi.c
144
unsigned long min = 0, max = 0;
drivers/clk/clk-scpi.c
159
if (sclk->scpi_ops->clk_get_range(sclk->id, &min, &max) || !max)
drivers/clk/clk-scpi.c
166
if (!ret && max)
drivers/clk/clk-scpi.c
167
clk_hw_set_rate_range(&sclk->hw, min, max);
drivers/clk/clk-sp7021.c
400
u32 max = 1 << clk->div_width;
drivers/clk/clk-sp7021.c
403
if (fbdiv > max)
drivers/clk/clk-sp7021.c
404
fbdiv = max;
drivers/clk/clk-versaclock3.c
1141
.pll2_vco = { .min = 400000000UL, .max = 1200000000UL },
drivers/clk/clk-versaclock3.c
1146
.pll2_vco = { .min = 30000000UL, .max = 130000000UL },
drivers/clk/clk-versaclock3.c
149
unsigned long max;
drivers/clk/clk-versaclock3.c
402
if (req->rate > pll->vco.max)
drivers/clk/clk-versaclock3.c
403
req->rate = pll->vco.max;
drivers/clk/clk-versaclock3.c
700
.max = VC3_PLL1_VCO_MAX
drivers/clk/clk-versaclock3.c
736
.max = VC3_PLL3_VCO_MAX
drivers/clk/clk.c
2657
unsigned long max)
drivers/clk/clk.c
2667
trace_clk_set_rate_range(clk->core, min, max);
drivers/clk/clk.c
2669
if (min > max) {
drivers/clk/clk.c
2672
min, max);
drivers/clk/clk.c
2683
clk->max_rate = max;
drivers/clk/clk.c
2685
if (!clk_core_check_boundaries(clk->core, min, max)) {
drivers/clk/clk.c
2711
rate = clamp(rate, min, max);
drivers/clk/clk.c
2734
int clk_set_rate_range(struct clk *clk, unsigned long min, unsigned long max)
drivers/clk/clk.c
2743
ret = clk_set_rate_range_nolock(clk, min, max);
drivers/clk/clk.c
793
*min_rate = max(*min_rate, clk_user->min_rate);
drivers/clk/imx/clk-sscg-pll.c
414
uint64_t max,
drivers/clk/imx/clk-sscg-pll.c
424
req->max_rate = max;
drivers/clk/imx/clk-sscg-pll.c
460
uint64_t max = req->max_rate;
drivers/clk/imx/clk-sscg-pll.c
483
if (setup->fout >= min && setup->fout <= max)
drivers/clk/meson/a1-pll.c
89
.max = 64,
drivers/clk/meson/c3-pll.c
243
.max = 250,
drivers/clk/meson/c3-pll.c
403
.max = 133,
drivers/clk/meson/clk-pll.c
185
} else if (rate >= pll->range->max * parent_rate) {
drivers/clk/meson/clk-pll.c
186
*m = pll->range->max;
drivers/clk/meson/clk-pll.h
21
unsigned int max;
drivers/clk/meson/g12a.c
206
.max = 250,
drivers/clk/meson/g12a.c
391
.max = 255,
drivers/clk/meson/s4-pll.c
278
.max = 250,
drivers/clk/meson/t7-pll.c
153
.max = 133,
drivers/clk/meson/t7-pll.c
715
.max = 133,
drivers/clk/meson/t7-pll.c
76
.max = 250,
drivers/clk/mstar/clk-msc313-mpll.c
57
output_rate *= (1 << loop_first) * max(loop_second, 1U);
drivers/clk/mstar/clk-msc313-mpll.c
58
output_rate /= max(output_div, 1U);
drivers/clk/mvebu/dove-divider.c
70
unsigned int divider, max;
drivers/clk/mvebu/dove-divider.c
86
max = 1 << dc->div_bit_size;
drivers/clk/mvebu/dove-divider.c
88
if (set && (divider == 0 || divider >= max))
drivers/clk/mvebu/dove-divider.c
90
if (divider >= max)
drivers/clk/mvebu/dove-divider.c
91
divider = max - 1;
drivers/clk/nxp/clk-lpc32xx.c
372
static inline bool pll_is_valid(u64 val0, u64 val1, u64 min, u64 max)
drivers/clk/nxp/clk-lpc32xx.c
374
return (val0 >= (val1 * min) && val0 <= (val1 * max));
drivers/clk/qcom/clk-rpm.c
193
active_rate = max(this_rate, peer_rate);
drivers/clk/qcom/clk-rpm.c
202
sleep_rate = max(this_sleep_rate, peer_sleep_rate);
drivers/clk/qcom/clk-rpm.c
339
active_rate = max(this_rate, peer_rate);
drivers/clk/qcom/clk-rpm.c
344
sleep_rate = max(this_sleep_rate, peer_sleep_rate);
drivers/clk/qcom/clk-smd-rpm.c
278
active_rate = max(this_rate, peer_rate);
drivers/clk/qcom/clk-smd-rpm.c
287
sleep_rate = max(this_sleep_rate, peer_sleep_rate);
drivers/clk/qcom/clk-smd-rpm.c
358
active_rate = max(this_rate, peer_rate);
drivers/clk/qcom/clk-smd-rpm.c
363
sleep_rate = max(this_sleep_rate, peer_sleep_rate);
drivers/clk/renesas/clk-div6.c
122
min_div = max(DIV_ROUND_UP(prate, req->max_rate), 1UL);
drivers/clk/renesas/clk-mstp.c
241
group->data.clk_num = max(group->data.clk_num,
drivers/clk/renesas/r9a06g032-clocks.c
1002
clk->max, DIV_ROUND_UP(req->best_parent_rate, clk->max));
drivers/clk/renesas/r9a06g032-clocks.c
1081
div->max = desc->div.max;
drivers/clk/renesas/r9a06g032-clocks.c
146
unsigned int min:10, max:10, reg:10;
drivers/clk/renesas/r9a06g032-clocks.c
211
.div.max = _max, \
drivers/clk/renesas/r9a06g032-clocks.c
932
u16 min, max;
drivers/clk/renesas/r9a06g032-clocks.c
950
else if (div > clk->max)
drivers/clk/renesas/r9a06g032-clocks.c
951
div = clk->max;
drivers/clk/renesas/r9a06g032-clocks.c
971
if (div >= clk->max)
drivers/clk/renesas/r9a06g032-clocks.c
972
return clk->max;
drivers/clk/renesas/rcar-gen2-cpg.c
72
min_mult = max(div64_ul(req->min_rate * 32ULL, prate), 1ULL);
drivers/clk/renesas/rcar-gen3-cpg.c
202
min_mult = max(div64_ul(req->min_rate * 32ULL, prate), 1ULL);
drivers/clk/renesas/rcar-gen3-cpg.c
71
min_mult = max(div64_ul(req->min_rate, prate), 1ULL);
drivers/clk/renesas/rcar-gen4-cpg.c
109
min_mult = max(div64_ul(req->min_rate, prate), 1ULL);
drivers/clk/renesas/rcar-gen4-cpg.c
307
min_mult = max(div64_ul(req->min_rate * 32ULL, prate), 1ULL);
drivers/clk/renesas/rzg2l-cpg.c
385
u32 max = 0;
drivers/clk/renesas/rzg2l-cpg.c
406
if (max < clkt->div)
drivers/clk/renesas/rzg2l-cpg.c
407
max = clkt->div;
drivers/clk/renesas/rzg2l-cpg.c
416
div_hw_data->width = fls(max) - 1;
drivers/clk/renesas/rzv2h-cpg.c
241
u64 fout_max_millihz = mul_u32_u32(limits->fout.max, MILLI);
drivers/clk/renesas/rzv2h-cpg.c
251
for (p.p = limits->p.min; p.p <= limits->p.max; p.p++) {
drivers/clk/renesas/rzv2h-cpg.c
256
p.s <= limits->s.max; p.s++, divider <<= 1) {
drivers/clk/renesas/rzv2h-cpg.c
257
for (p.m = limits->m.min; p.m <= limits->m.max; p.m++) {
drivers/clk/renesas/rzv2h-cpg.c
321
pll_k > limits->k.max)
drivers/clk/renesas/rzv2h-cpg.c
329
fvco > mul_u32_u32(limits->fvco.max, 65536))
drivers/clk/rockchip/clk-rk3128.c
588
ctx = rockchip_clk_init(np, reg_base, max(common_nr_clks, soc_nr_clks));
drivers/clk/rockchip/clk-rk3188.c
775
ctx = rockchip_clk_init(np, reg_base, max(common_nr_clks, soc_nr_clks));
drivers/clk/rockchip/clk-rk3528.c
1110
nr_clks = max(nr_clks, nr_vo_clks);
drivers/clk/rockchip/clk-rk3528.c
1120
nr_clks = max(nr_clks, nr_vpu_clks);
drivers/clk/rockchip/clk-rk3588.c
2449
clk_nr_clks = max(max_clk_id1, max_clk_id2) + 1;
drivers/clk/rockchip/clk.c
460
unsigned long max = 0;
drivers/clk/rockchip/clk.c
464
if (list->id > max)
drivers/clk/rockchip/clk.c
465
max = list->id;
drivers/clk/rockchip/clk.c
466
if (list->child && list->child->id > max)
drivers/clk/rockchip/clk.c
467
max = list->child->id;
drivers/clk/rockchip/clk.c
470
return max;
drivers/clk/sophgo/clk-cv18xx-pll.h
14
u8 max;
drivers/clk/sophgo/clk-cv18xx-pll.h
21
.max = _max, \
drivers/clk/sophgo/clk-cv18xx-pll.h
25
for (_var = (_restrict)->min; _var <= (_restrict)->max; _var++)
drivers/clk/sophgo/clk-sg2044-pll.c
107
return value >= limit->min && value <= limit->max;
drivers/clk/sophgo/clk-sg2044-pll.c
269
pll->pll.limits[PLL_LIMIT_FOUT].max);
drivers/clk/sophgo/clk-sg2044-pll.c
441
.max = U64_C(3200000000),
drivers/clk/sophgo/clk-sg2044-pll.c
445
.max = U64_C(3200000000),
drivers/clk/sophgo/clk-sg2044-pll.c
449
.max = U64_C(63),
drivers/clk/sophgo/clk-sg2044-pll.c
453
.max = U64_C(1066),
drivers/clk/sophgo/clk-sg2044-pll.c
457
.max = U64_C(7),
drivers/clk/sophgo/clk-sg2044-pll.c
461
.max = U64_C(7),
drivers/clk/sophgo/clk-sg2044-pll.c
57
for (_var = (_limit)->min; _var <= (_limit)->max; _var++)
drivers/clk/sophgo/clk-sg2044-pll.c
61
u64 max;
drivers/clk/starfive/clk-starfive-jh7100-audio.c
105
u32 max = jh7100_audclk_data[idx].max;
drivers/clk/starfive/clk-starfive-jh7100-audio.c
109
.ops = starfive_jh71x0_clk_ops(max),
drivers/clk/starfive/clk-starfive-jh7100-audio.c
111
.num_parents = ((max & JH71X0_CLK_MUX_MASK) >> JH71X0_CLK_MUX_SHIFT) + 1,
drivers/clk/starfive/clk-starfive-jh7100-audio.c
132
clk->max_div = max & JH71X0_CLK_DIV_MASK;
drivers/clk/starfive/clk-starfive-jh7100.c
316
u32 max = jh7100_clk_data[idx].max;
drivers/clk/starfive/clk-starfive-jh7100.c
320
.ops = starfive_jh71x0_clk_ops(max),
drivers/clk/starfive/clk-starfive-jh7100.c
322
.num_parents = ((max & JH71X0_CLK_MUX_MASK) >> JH71X0_CLK_MUX_SHIFT) + 1,
drivers/clk/starfive/clk-starfive-jh7100.c
347
clk->max_div = max & JH71X0_CLK_DIV_MASK;
drivers/clk/starfive/clk-starfive-jh7110-aon.c
113
clk->max_div = max & JH71X0_CLK_DIV_MASK;
drivers/clk/starfive/clk-starfive-jh7110-aon.c
77
u32 max = jh7110_aonclk_data[idx].max;
drivers/clk/starfive/clk-starfive-jh7110-aon.c
81
.ops = starfive_jh71x0_clk_ops(max),
drivers/clk/starfive/clk-starfive-jh7110-aon.c
84
((max & JH71X0_CLK_MUX_MASK) >> JH71X0_CLK_MUX_SHIFT) + 1,
drivers/clk/starfive/clk-starfive-jh7110-isp.c
142
u32 max = jh7110_ispclk_data[idx].max;
drivers/clk/starfive/clk-starfive-jh7110-isp.c
146
.ops = starfive_jh71x0_clk_ops(max),
drivers/clk/starfive/clk-starfive-jh7110-isp.c
149
((max & JH71X0_CLK_MUX_MASK) >> JH71X0_CLK_MUX_SHIFT) + 1,
drivers/clk/starfive/clk-starfive-jh7110-isp.c
172
clk->max_div = max & JH71X0_CLK_DIV_MASK;
drivers/clk/starfive/clk-starfive-jh7110-stg.c
101
.ops = starfive_jh71x0_clk_ops(max),
drivers/clk/starfive/clk-starfive-jh7110-stg.c
104
((max & JH71X0_CLK_MUX_MASK) >> JH71X0_CLK_MUX_SHIFT) + 1,
drivers/clk/starfive/clk-starfive-jh7110-stg.c
131
clk->max_div = max & JH71X0_CLK_DIV_MASK;
drivers/clk/starfive/clk-starfive-jh7110-stg.c
97
u32 max = jh7110_stgclk_data[idx].max;
drivers/clk/starfive/clk-starfive-jh7110-sys.c
464
u32 max = jh7110_sysclk_data[idx].max;
drivers/clk/starfive/clk-starfive-jh7110-sys.c
468
.ops = starfive_jh71x0_clk_ops(max),
drivers/clk/starfive/clk-starfive-jh7110-sys.c
471
((max & JH71X0_CLK_MUX_MASK) >> JH71X0_CLK_MUX_SHIFT) + 1,
drivers/clk/starfive/clk-starfive-jh7110-sys.c
512
clk->max_div = max & JH71X0_CLK_DIV_MASK;
drivers/clk/starfive/clk-starfive-jh7110-vout.c
147
u32 max = jh7110_voutclk_data[idx].max;
drivers/clk/starfive/clk-starfive-jh7110-vout.c
151
.ops = starfive_jh71x0_clk_ops(max),
drivers/clk/starfive/clk-starfive-jh7110-vout.c
154
((max & JH71X0_CLK_MUX_MASK) >> JH71X0_CLK_MUX_SHIFT) + 1,
drivers/clk/starfive/clk-starfive-jh7110-vout.c
179
clk->max_div = max & JH71X0_CLK_DIV_MASK;
drivers/clk/starfive/clk-starfive-jh71x0.c
301
const struct clk_ops *starfive_jh71x0_clk_ops(u32 max)
drivers/clk/starfive/clk-starfive-jh71x0.c
303
if (max & JH71X0_CLK_DIV_MASK) {
drivers/clk/starfive/clk-starfive-jh71x0.c
304
if (max & JH71X0_CLK_MUX_MASK) {
drivers/clk/starfive/clk-starfive-jh71x0.c
305
if (max & JH71X0_CLK_ENABLE)
drivers/clk/starfive/clk-starfive-jh71x0.c
309
if (max & JH71X0_CLK_ENABLE)
drivers/clk/starfive/clk-starfive-jh71x0.c
311
if (max == JH71X0_CLK_FRAC_MAX)
drivers/clk/starfive/clk-starfive-jh71x0.c
316
if (max & JH71X0_CLK_MUX_MASK) {
drivers/clk/starfive/clk-starfive-jh71x0.c
317
if (max & JH71X0_CLK_ENABLE)
drivers/clk/starfive/clk-starfive-jh71x0.c
322
if (max & JH71X0_CLK_ENABLE)
drivers/clk/starfive/clk-starfive-jh71x0.h
102
.max = JH71X0_CLK_INVERT, \
drivers/clk/starfive/clk-starfive-jh71x0.h
124
const struct clk_ops *starfive_jh71x0_clk_ops(u32 max);
drivers/clk/starfive/clk-starfive-jh71x0.h
28
u32 max;
drivers/clk/starfive/clk-starfive-jh71x0.h
36
.max = JH71X0_CLK_ENABLE, \
drivers/clk/starfive/clk-starfive-jh71x0.h
44
.max = _max, \
drivers/clk/starfive/clk-starfive-jh71x0.h
52
.max = JH71X0_CLK_ENABLE | (_max), \
drivers/clk/starfive/clk-starfive-jh71x0.h
60
.max = JH71X0_CLK_FRAC_MAX, \
drivers/clk/starfive/clk-starfive-jh71x0.h
68
.max = ((_nparents) - 1) << JH71X0_CLK_MUX_SHIFT, \
drivers/clk/starfive/clk-starfive-jh71x0.h
76
.max = JH71X0_CLK_ENABLE | \
drivers/clk/starfive/clk-starfive-jh71x0.h
85
.max = (((_nparents) - 1) << JH71X0_CLK_MUX_SHIFT) | (_max), \
drivers/clk/starfive/clk-starfive-jh71x0.h
93
.max = JH71X0_CLK_ENABLE | \
drivers/clk/sunxi-ng/ccu_div.h
35
u32 max;
drivers/clk/sunxi-ng/ccu_div.h
59
.max = _max, \
drivers/clk/sunxi-ng/ccu_mp.c
121
max_m = cmp->m.max ?: 1 << cmp->m.width;
drivers/clk/sunxi-ng/ccu_mp.c
123
max_p = cmp->p.max ?: 1 << ((1 << cmp->p.width) - 1);
drivers/clk/sunxi-ng/ccu_mp.c
125
max_p = cmp->p.max ?: 1 << cmp->p.width;
drivers/clk/sunxi-ng/ccu_mp.c
224
max_m = cmp->m.max ?: 1 << cmp->m.width;
drivers/clk/sunxi-ng/ccu_mp.c
226
max_p = cmp->p.max ?: 1 << ((1 << cmp->p.width) - 1);
drivers/clk/sunxi-ng/ccu_mp.c
228
max_p = cmp->p.max ?: 1 << cmp->p.width;
drivers/clk/sunxi-ng/ccu_mult.c
125
if (cm->mult.max)
drivers/clk/sunxi-ng/ccu_mult.c
126
_cm.max = cm->mult.max;
drivers/clk/sunxi-ng/ccu_mult.c
128
_cm.max = (1 << cm->mult.width) + cm->mult.offset - 1;
drivers/clk/sunxi-ng/ccu_mult.c
14
unsigned long mult, min, max;
drivers/clk/sunxi-ng/ccu_mult.c
26
if (_mult > mult->max)
drivers/clk/sunxi-ng/ccu_mult.c
27
_mult = mult->max;
drivers/clk/sunxi-ng/ccu_mult.c
41
if (cm->mult.max)
drivers/clk/sunxi-ng/ccu_mult.c
42
_cm.max = cm->mult.max;
drivers/clk/sunxi-ng/ccu_mult.c
44
_cm.max = (1 << cm->mult.width) + cm->mult.offset - 1;
drivers/clk/sunxi-ng/ccu_mult.h
14
u8 max;
drivers/clk/sunxi-ng/ccu_mult.h
20
.max = _max, \
drivers/clk/sunxi-ng/ccu_nk.c
105
_nk.max_n = nk->n.max ?: 1 << nk->n.width;
drivers/clk/sunxi-ng/ccu_nk.c
107
_nk.max_k = nk->k.max ?: 1 << nk->k.width;
drivers/clk/sunxi-ng/ccu_nk.c
129
_nk.max_n = nk->n.max ?: 1 << nk->n.width;
drivers/clk/sunxi-ng/ccu_nk.c
131
_nk.max_k = nk->k.max ?: 1 << nk->k.width;
drivers/clk/sunxi-ng/ccu_nkm.c
173
_nkm.max_n = nkm->n.max ?: 1 << nkm->n.width;
drivers/clk/sunxi-ng/ccu_nkm.c
175
_nkm.max_k = nkm->k.max ?: 1 << nkm->k.width;
drivers/clk/sunxi-ng/ccu_nkm.c
177
_nkm.max_m = nkm->m.max ?: 1 << nkm->m.width;
drivers/clk/sunxi-ng/ccu_nkm.c
218
_nkm.max_n = nkm->n.max ?: 1 << nkm->n.width;
drivers/clk/sunxi-ng/ccu_nkm.c
220
_nkm.max_k = nkm->k.max ?: 1 << nkm->k.width;
drivers/clk/sunxi-ng/ccu_nkm.c
222
_nkm.max_m = nkm->m.max ?: 1 << nkm->m.width;
drivers/clk/sunxi-ng/ccu_nkmp.c
147
_nkmp.max_n = nkmp->n.max ?: 1 << nkmp->n.width;
drivers/clk/sunxi-ng/ccu_nkmp.c
149
_nkmp.max_k = nkmp->k.max ?: 1 << nkmp->k.width;
drivers/clk/sunxi-ng/ccu_nkmp.c
151
_nkmp.max_m = nkmp->m.max ?: 1 << nkmp->m.width;
drivers/clk/sunxi-ng/ccu_nkmp.c
153
_nkmp.max_p = nkmp->p.max ?: 1 << ((1 << nkmp->p.width) - 1);
drivers/clk/sunxi-ng/ccu_nkmp.c
177
_nkmp.max_n = nkmp->n.max ?: 1 << nkmp->n.width;
drivers/clk/sunxi-ng/ccu_nkmp.c
179
_nkmp.max_k = nkmp->k.max ?: 1 << nkmp->k.width;
drivers/clk/sunxi-ng/ccu_nkmp.c
181
_nkmp.max_m = nkmp->m.max ?: 1 << nkmp->m.width;
drivers/clk/sunxi-ng/ccu_nkmp.c
183
_nkmp.max_p = nkmp->p.max ?: 1 << ((1 << nkmp->p.width) - 1);
drivers/clk/sunxi-ng/ccu_nm.c
155
_nm.max_n = nm->n.max ?: 1 << nm->n.width;
drivers/clk/sunxi-ng/ccu_nm.c
157
_nm.max_m = nm->m.max ?: 1 << nm->m.width;
drivers/clk/sunxi-ng/ccu_nm.c
199
_nm.max_n = nm->n.max ?: 1 << nm->n.width;
drivers/clk/sunxi-ng/ccu_nm.c
201
_nm.max_m = nm->m.max ?: 1 << nm->m.width;
drivers/clk/tegra/clk-dfll.c
1727
v += max(1UL, (v_max - v) / (MAX_DFLL_VOLTAGES - j));
drivers/clk/tegra/clk-sdmmc-mux.c
114
req->rate = max(req->rate, req->min_rate);
drivers/clk/tegra/clk-tegra124-emc.c
142
i = max(i, k + 1);
drivers/clk/tegra/cvb.c
33
uv = max(mv * 1000, offset) - offset;
drivers/clk/tegra/cvb.c
48
uv = max(mv * 1000, align->offset_uv) - align->offset_uv;
drivers/clk/ti/clock.h
18
u16 max;
drivers/clk/ti/divider.c
179
maxdiv = divider->max;
drivers/clk/ti/divider.c
218
bestdiv = divider->max;
drivers/clk/ti/divider.c
251
if (div > divider->max)
drivers/clk/ti/divider.c
252
div = divider->max;
drivers/clk/ti/divider.c
343
divider->max = max_div;
drivers/clk/ti/divider.c
378
divider->max = max_div;
drivers/clk/ti/divider.c
45
max_val = divider->max;
drivers/clk/ti/divider.c
465
divider->max = max_div;
drivers/clk/uniphier/clk-uniphier-core.c
64
clk_num = max(clk_num, p->idx + 1);
drivers/clk/xilinx/clk-xlnx-clock-wizard.c
401
mdmin = max(dmin, div64_u64(parent_rate * m + vcomax / 2, vcomax));
drivers/clk/xilinx/clk-xlnx-clock-wizard.c
932
unsigned long max;
drivers/clk/xilinx/clk-xlnx-clock-wizard.c
940
max = clk_wzrd_max_freq[clk_wzrd->speed_grade - 1];
drivers/clk/xilinx/clk-xlnx-clock-wizard.c
942
max = WZRD_ACLK_MAX_FREQ;
drivers/clk/xilinx/clk-xlnx-clock-wizard.c
948
if (ndata->new_rate > max)
drivers/clocksource/arm_arch_timer.c
755
arch_timer_evtstrm_enable(max(0, lsb));
drivers/comedi/comedi_fops.c
1675
max_n_data_required = max(max_n_data_required, insns[i].n);
drivers/comedi/comedi_fops.c
1762
n_data = max(n_data, insn->n);
drivers/comedi/drivers/comedi_test.c
117
do_div(binary_amplitude, krange->max - krange->min);
drivers/comedi/drivers/comedi_test.c
148
do_div(value, krange->max - krange->min);
drivers/comedi/drivers/comedi_test.c
344
arg = max(arg, cmd->convert_arg * cmd->scan_end_arg);
drivers/comedi/drivers/das16.c
1007
krange->max = max;
drivers/comedi/drivers/das16.c
956
unsigned int max = it->options[5];
drivers/comedi/drivers/das16.c
959
if (pg_type == das16_pg_none && (min || max)) {
drivers/comedi/drivers/das16.c
973
krange->max = max;
drivers/comedi/drivers/das16.c
990
unsigned int max = it->options[7];
drivers/comedi/drivers/das16.c
993
if (min || max) {
drivers/comedi/drivers/dt9812.c
245
tbuf_size = max(sizeof(*cmd), buf_size);
drivers/comedi/drivers/jr3_pci.c
120
static struct jr3_pci_poll_delay poll_delay_min_max(int min, int max)
drivers/comedi/drivers/jr3_pci.c
125
result.max = max;
drivers/comedi/drivers/jr3_pci.c
513
r[0].l.range[0].max = get_s16(&fs->fx) * 1000;
drivers/comedi/drivers/jr3_pci.c
515
r[1].l.range[0].max = get_s16(&fs->fy) * 1000;
drivers/comedi/drivers/jr3_pci.c
517
r[2].l.range[0].max = get_s16(&fs->fz) * 1000;
drivers/comedi/drivers/jr3_pci.c
519
r[3].l.range[0].max = get_s16(&fs->mx) * 100;
drivers/comedi/drivers/jr3_pci.c
521
r[4].l.range[0].max = get_s16(&fs->my) * 100;
drivers/comedi/drivers/jr3_pci.c
524
r[5].l.range[0].max = get_s16(&fs->mz) * 100;
drivers/comedi/drivers/jr3_pci.c
526
r[6].l.range[0].max = get_s16(&fs->v1) * 100;
drivers/comedi/drivers/jr3_pci.c
528
r[7].l.range[0].max = get_s16(&fs->v2) * 100;
drivers/comedi/drivers/jr3_pci.c
530
r[8].l.range[0].max = 65535;
drivers/comedi/drivers/jr3_pci.c
593
if (sub_delay.max && sub_delay.max < delay)
drivers/comedi/drivers/jr3_pci.c
598
delay = sub_delay.max;
drivers/comedi/drivers/jr3_pci.c
624
spriv->range[j].l.range[0].max = 1000000;
drivers/comedi/drivers/jr3_pci.c
633
spriv->range[8].l.range[0].max = 65535;
drivers/comedi/drivers/jr3_pci.c
85
int max;
drivers/comedi/drivers/ni_mio_common.c
2595
switch (krange->max - krange->min) {
drivers/comedi/drivers/ni_mio_common.c
2619
switch (krange->max + krange->min) {
drivers/comedi/drivers/vmk80xx.c
671
size = max(usb_endpoint_maxp(devpriv->ep_rx), MIN_BUF_SIZE);
drivers/comedi/drivers/vmk80xx.c
676
size = max(usb_endpoint_maxp(devpriv->ep_tx), MIN_BUF_SIZE);
drivers/counter/intel-qep.c
188
struct counter_count *count, u64 max)
drivers/counter/intel-qep.c
194
if (max != (u32)max)
drivers/counter/intel-qep.c
204
intel_qep_writel(qep, INTEL_QEPMAX, max);
drivers/counter/ti-eqep.c
154
u32 max;
drivers/counter/ti-eqep.c
156
regmap_read(priv->regmap32, QPOSMAX, &max);
drivers/counter/ti-eqep.c
157
if (val > max)
drivers/cpufreq/amd-pstate-ut.c
219
if ((policy->max != policy->cpuinfo.max_freq) &&
drivers/cpufreq/amd-pstate-ut.c
220
(policy->max != cpudata->nominal_freq)) {
drivers/cpufreq/amd-pstate-ut.c
222
__func__, cpu, policy->max, policy->cpuinfo.max_freq,
drivers/cpufreq/amd-pstate.c
1024
policy->cpuinfo.max_freq = policy->max = perf_to_freq(perf,
drivers/cpufreq/amd-pstate.c
1506
policy->cpuinfo.max_freq = policy->max = perf_to_freq(perf,
drivers/cpufreq/amd-pstate.c
1573
policy->max != cpudata->max_limit_freq)
drivers/cpufreq/amd-pstate.c
635
perf.max_limit_perf = freq_to_perf(perf, cpudata->nominal_freq, policy->max);
drivers/cpufreq/amd-pstate.c
636
WRITE_ONCE(cpudata->max_limit_freq, policy->max);
drivers/cpufreq/amd-pstate.c
672
if (policy->min != cpudata->min_limit_freq || policy->max != cpudata->max_limit_freq)
drivers/cpufreq/amd-pstate.c
731
if (policy->min != cpudata->min_limit_freq || policy->max != cpudata->max_limit_freq)
drivers/cpufreq/amd-pstate.c
772
policy->max = policy->cpuinfo.max_freq;
drivers/cpufreq/armada-37xx-cpufreq.c
268
target_vm = max(target_vm, MIN_VOLT_MV);
drivers/cpufreq/armada-37xx-cpufreq.c
276
target_vm = max(target_vm, MIN_VOLT_MV);
drivers/cpufreq/cppc_cpufreq.c
636
policy->max = cppc_perf_to_khz(caps, policy->boost_enabled ?
drivers/cpufreq/cppc_cpufreq.c
645
policy->cpuinfo.max_freq = policy->max;
drivers/cpufreq/cppc_cpufreq.c
813
policy->max = cppc_perf_to_khz(caps, caps->highest_perf);
drivers/cpufreq/cppc_cpufreq.c
815
policy->max = cppc_perf_to_khz(caps, caps->nominal_perf);
drivers/cpufreq/cppc_cpufreq.c
816
policy->cpuinfo.max_freq = policy->max;
drivers/cpufreq/cppc_cpufreq.c
818
ret = freq_qos_update_request(policy->max_freq_req, policy->max);
drivers/cpufreq/cpufreq-nforce2.c
259
if ((target_freq > policy->max) || (target_freq < policy->min))
drivers/cpufreq/cpufreq-nforce2.c
300
fsb_pol_max = policy->max / (fid * 100);
drivers/cpufreq/cpufreq-nforce2.c
303
policy->max = (fsb_pol_max + 1) * fid * 100;
drivers/cpufreq/cpufreq-nforce2.c
359
policy->max = policy->cpuinfo.max_freq = max_fsb * fid * 100;
drivers/cpufreq/cpufreq.c
1488
ret = freq_qos_update_request(policy->max_freq_req, policy->max);
drivers/cpufreq/cpufreq.c
1886
return policy->max;
drivers/cpufreq/cpufreq.c
2209
target_freq = clamp_val(target_freq, policy->min, policy->max);
drivers/cpufreq/cpufreq.c
2365
policy->max, relation);
drivers/cpufreq/cpufreq.c
2591
capped_freq = policy->max;
drivers/cpufreq/cpufreq.c
2640
new_data.max = freq_qos_read_value(&policy->constraints, FREQ_QOS_MAX);
drivers/cpufreq/cpufreq.c
2643
new_data.cpu, new_data.min, new_data.max);
drivers/cpufreq/cpufreq.c
2662
WRITE_ONCE(policy->max, __resolve_freq(policy, new_data.max,
drivers/cpufreq/cpufreq.c
2663
new_data.min, new_data.max,
drivers/cpufreq/cpufreq.c
2666
new_data.max, CPUFREQ_RELATION_L);
drivers/cpufreq/cpufreq.c
2667
WRITE_ONCE(policy->min, new_data.min > policy->max ? policy->max : new_data.min);
drivers/cpufreq/cpufreq.c
2676
policy->min, policy->max);
drivers/cpufreq/cpufreq.c
2797
ret = freq_qos_update_request(policy->max_freq_req, policy->max);
drivers/cpufreq/cpufreq.c
503
unsigned int min, unsigned int max,
drivers/cpufreq/cpufreq.c
508
target_freq = clamp_val(target_freq, min, max);
drivers/cpufreq/cpufreq.c
513
idx = cpufreq_frequency_table_target(policy, target_freq, min, max, relation);
drivers/cpufreq/cpufreq.c
534
unsigned int max = READ_ONCE(policy->max);
drivers/cpufreq/cpufreq.c
544
if (unlikely(min > max))
drivers/cpufreq/cpufreq.c
545
min = max;
drivers/cpufreq/cpufreq.c
547
return __resolve_freq(policy, target_freq, min, max, CPUFREQ_RELATION_LE);
drivers/cpufreq/cpufreq.c
719
show_one(scaling_max_freq, max);
drivers/cpufreq/cpufreq.c
768
store_one(scaling_max_freq, max);
drivers/cpufreq/cpufreq_conservative.c
107
if (requested_freq == policy->max)
drivers/cpufreq/cpufreq_conservative.c
111
if (requested_freq > policy->max)
drivers/cpufreq/cpufreq_conservative.c
112
requested_freq = policy->max;
drivers/cpufreq/cpufreq_conservative.c
40
unsigned int freq_step = (cs_tuners->freq_step * policy->max) / 100;
drivers/cpufreq/cpufreq_conservative.c
80
if (requested_freq > policy->max || requested_freq < policy->min) {
drivers/cpufreq/cpufreq_ondemand.c
101
else if (policy->cur == policy->max)
drivers/cpufreq/cpufreq_ondemand.c
126
if (policy->cur < policy->max)
drivers/cpufreq/cpufreq_ondemand.c
128
dbs_freq_increase(policy, policy->max);
drivers/cpufreq/cpufreq_ondemand.c
57
policy->max, relation);
drivers/cpufreq/cpufreq_performance.c
16
pr_debug("setting to %u kHz\n", policy->max);
drivers/cpufreq/cpufreq_performance.c
17
__cpufreq_driver_target(policy, policy->max, CPUFREQ_RELATION_H);
drivers/cpufreq/cpufreq_userspace.c
114
policy->cpu, policy->min, policy->max, policy->cur, userspace->setspeed);
drivers/cpufreq/cpufreq_userspace.c
116
if (policy->max < userspace->setspeed)
drivers/cpufreq/cpufreq_userspace.c
117
__cpufreq_driver_target(policy, policy->max,
drivers/cpufreq/freq_table.c
117
unsigned int max, unsigned int relation)
drivers/cpufreq/freq_table.c
148
if (freq < min || freq > max)
drivers/cpufreq/freq_table.c
53
policy->max = max_freq;
drivers/cpufreq/freq_table.c
59
policy->max = policy->cpuinfo.max_freq = max_freq;
drivers/cpufreq/freq_table.c
74
policy->min, policy->max, policy->cpu);
drivers/cpufreq/freq_table.c
81
if ((freq >= policy->min) && (freq <= policy->max)) {
drivers/cpufreq/freq_table.c
86
if ((prev_smaller < freq) && (freq <= policy->max))
drivers/cpufreq/freq_table.c
91
policy->max = prev_smaller;
drivers/cpufreq/freq_table.c
96
policy->min, policy->max, policy->cpu);
drivers/cpufreq/gx-suspmod.c
353
if (policy->min > policy->max)
drivers/cpufreq/gx-suspmod.c
354
policy->max = tmp_freq;
drivers/cpufreq/gx-suspmod.c
355
tmp_freq = gx_validate_speed(policy->max, &tmp1, &tmp2);
drivers/cpufreq/gx-suspmod.c
356
if (tmp_freq > policy->max)
drivers/cpufreq/gx-suspmod.c
358
policy->max = tmp_freq;
drivers/cpufreq/gx-suspmod.c
359
if (policy->max < policy->min)
drivers/cpufreq/gx-suspmod.c
360
policy->max = policy->min;
drivers/cpufreq/gx-suspmod.c
388
while (tmp_freq > policy->max) {
drivers/cpufreq/gx-suspmod.c
424
policy->max = maxfreq;
drivers/cpufreq/intel_pstate.c
1262
int max, min;
drivers/cpufreq/intel_pstate.c
1266
max = cpu_data->max_perf_ratio;
drivers/cpufreq/intel_pstate.c
1270
min = max;
drivers/cpufreq/intel_pstate.c
1278
value |= HWP_MAX_PERF(max);
drivers/cpufreq/intel_pstate.c
166
int max;
drivers/cpufreq/intel_pstate.c
2099
vid_fp = clamp_t(int32_t, vid_fp, cpudata->vid.min, cpudata->vid.max);
drivers/cpufreq/intel_pstate.c
2145
cpudata->vid.max = int_tofp((value >> 16) & 0x7f);
drivers/cpufreq/intel_pstate.c
2147
cpudata->vid.max - cpudata->vid.min,
drivers/cpufreq/intel_pstate.c
2569
int min_pstate = max(cpu->pstate.min_pstate, cpu->min_perf_ratio);
drivers/cpufreq/intel_pstate.c
2570
int max_pstate = max(min_pstate, cpu->max_perf_ratio);
drivers/cpufreq/intel_pstate.c
2870
cpu->min_perf_ratio = max(min_policy_perf, global_min);
drivers/cpufreq/intel_pstate.c
2873
cpu->max_perf_ratio = max(min_policy_perf, cpu->max_perf_ratio);
drivers/cpufreq/intel_pstate.c
2893
policy->cpuinfo.max_freq, policy->max);
drivers/cpufreq/intel_pstate.c
2900
intel_pstate_update_perf_limits(cpu, policy->min, policy->max);
drivers/cpufreq/intel_pstate.c
2903
int pstate = max(cpu->pstate.min_pstate, cpu->max_perf_ratio);
drivers/cpufreq/intel_pstate.c
2941
policy->max < policy->cpuinfo.max_freq &&
drivers/cpufreq/intel_pstate.c
2942
policy->max > cpu->pstate.max_freq) {
drivers/cpufreq/intel_pstate.c
2944
policy->max = policy->cpuinfo.max_freq;
drivers/cpufreq/intel_pstate.c
3053
policy->max = policy->cpuinfo.max_freq;
drivers/cpufreq/intel_pstate.c
3103
intel_pstate_update_perf_limits(cpu, policy->min, policy->max);
drivers/cpufreq/intel_pstate.c
3146
static void intel_cpufreq_hwp_update(struct cpudata *cpu, u32 min, u32 max,
drivers/cpufreq/intel_pstate.c
3155
value |= HWP_MAX_PERF(max);
drivers/cpufreq/longrun.c
53
policy->min = policy->max = longrun_high_freq;
drivers/cpufreq/longrun.c
57
policy->max = longrun_low_freq + msr_hi *
drivers/cpufreq/longrun.c
85
pctg_hi = (policy->max - longrun_low_freq) /
drivers/cpufreq/mediatek-cpufreq.c
127
vproc = max(new_vproc,
drivers/cpufreq/mediatek-cpufreq.c
137
vsram = max(new_vsram,
drivers/cpufreq/mediatek-cpufreq.c
247
vproc = max(vproc, info->vproc_on_boot);
drivers/cpufreq/mediatek-cpufreq.c
253
target_vproc = max(inter_vproc, vproc);
drivers/cpufreq/mediatek-cpufreq.c
521
info->vtrack_max = 3 * DIV_ROUND_UP(max(info->soc_data->sram_max_volt,
drivers/cpufreq/pcc-cpufreq.c
554
policy->max = policy->cpuinfo.max_freq =
drivers/cpufreq/pcc-cpufreq.c
560
policy->max, policy->min);
drivers/cpufreq/pmac32-cpufreq.c
497
hi_freq = max(freqs[0], freqs[1]);
drivers/cpufreq/powernow-k8.c
950
pol->max);
drivers/cpufreq/powernv-cpufreq.c
161
unsigned int max;
drivers/cpufreq/powernv-cpufreq.c
338
powernv_pstate_info.max = i;
drivers/cpufreq/powernv-cpufreq.c
347
for (j = i - 1; j >= (int)powernv_pstate_info.max; j--)
drivers/cpufreq/powernv-cpufreq.c
568
if (pmsr_pmax_idx != powernv_pstate_info.max) {
drivers/cpufreq/pxa3xx-cpufreq.c
189
policy->max = policy->cpuinfo.max_freq =
drivers/cpufreq/raspberrypi-cpufreq.c
22
unsigned long min, max;
drivers/cpufreq/raspberrypi-cpufreq.c
44
max = roundup(clk_round_rate(clk, ULONG_MAX), RASPBERRYPI_FREQ_INTERVAL);
drivers/cpufreq/raspberrypi-cpufreq.c
47
for (rate = min; rate <= max; rate += RASPBERRYPI_FREQ_INTERVAL) {
drivers/cpufreq/sa1110-cpufreq.c
244
if (policy->max < 147500) {
drivers/cpufreq/sh-cpufreq.c
129
policy->max = policy->cpuinfo.max_freq =
drivers/cpufreq/sh-cpufreq.c
60
if (freq < (policy->min * 1000) || freq > (policy->max * 1000))
drivers/cpufreq/sh-cpufreq.c
99
policy->max = (clk_round_rate(cpuclk, ~0UL) + 500) / 1000;
drivers/cpufreq/speedstep-centrino.c
200
#define _BANIAS(cpuid, max, name) \
drivers/cpufreq/speedstep-centrino.c
203
.max_freq = (max)*1000, \
drivers/cpufreq/speedstep-centrino.c
204
.op_points = banias_##max, \
drivers/cpufreq/speedstep-centrino.c
206
#define BANIAS(max) _BANIAS(&cpu_ids[CPU_BANIAS], max, #max)
drivers/cpufreq/virtual-cpufreq.c
168
policy->max = policy->cpuinfo.max_freq;
drivers/cpufreq/virtual-cpufreq.c
170
policy->cur = policy->max;
drivers/cpuidle/governors/menu.c
119
unsigned int max, min, divisor;
drivers/cpuidle/governors/menu.c
125
max = 0;
drivers/cpuidle/governors/menu.c
144
if (value > max)
drivers/cpuidle/governors/menu.c
145
max = value;
drivers/cpuidle/governors/menu.c
151
if (!max)
drivers/cpuidle/governors/menu.c
204
if (avg - min > max - avg)
drivers/cpuidle/governors/menu.c
207
max_thresh = max;
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-trng.c
23
static int sun8i_ce_trng_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-trng.c
38
todo = max + 32;
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-trng.c
92
memcpy(data, d, max);
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-trng.c
93
err = max;
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c
580
devm_kmalloc(ss->dev, max(SHA256_DIGEST_SIZE,
drivers/crypto/amcc/crypto4xx_core.c
1080
u8 *data, unsigned int max)
drivers/crypto/amcc/crypto4xx_core.c
1103
if ((max - curr) >= 8) {
drivers/crypto/amcc/crypto4xx_core.c
1109
memcpy(data, &val, max - curr);
drivers/crypto/amcc/crypto4xx_core.c
1112
} while (curr < max);
drivers/crypto/amcc/crypto4xx_core.c
953
crypto_aead_set_reqsize(tfm, max(sizeof(struct aead_request) + 32 +
drivers/crypto/atmel-sha204a.c
37
size_t max)
drivers/crypto/atmel-sha204a.c
50
max = min(sizeof(work_data->cmd.data), max);
drivers/crypto/atmel-sha204a.c
51
memcpy(data, &work_data->cmd.data, max);
drivers/crypto/atmel-sha204a.c
62
max = 0;
drivers/crypto/atmel-sha204a.c
68
return max;
drivers/crypto/atmel-sha204a.c
71
static int atmel_sha204a_rng_read(struct hwrng *rng, void *data, size_t max,
drivers/crypto/atmel-sha204a.c
79
return atmel_sha204a_rng_read_nonblocking(rng, data, max);
drivers/crypto/atmel-sha204a.c
89
max = min(sizeof(cmd.data), max);
drivers/crypto/atmel-sha204a.c
90
memcpy(data, cmd.data, max);
drivers/crypto/atmel-sha204a.c
92
return max;
drivers/crypto/caam/caamalg_qi.c
1059
qm_sg_ents = max(pad_sg_nents(qm_sg_ents),
drivers/crypto/caam/caamalg_qi2.c
467
qm_sg_nents = max(pad_sg_nents(qm_sg_nents),
drivers/crypto/caam/caamrng.c
147
static int caam_read(struct hwrng *rng, void *dst, size_t max, bool wait)
drivers/crypto/caam/caamrng.c
155
return caam_rng_read_one(ctx->jrdev, dst, max,
drivers/crypto/caam/caamrng.c
159
out = kfifo_out(&ctx->fifo, dst, max);
drivers/crypto/caam/key_gen.c
57
local_max = max(keylen, adata->keylen_pad);
drivers/crypto/cavium/nitrox/nitrox_reqmgr.c
45
static inline int incr_index(int index, int count, int max)
drivers/crypto/cavium/nitrox/nitrox_reqmgr.c
47
if ((index + count) >= max)
drivers/crypto/cavium/nitrox/nitrox_reqmgr.c
48
index = index + count - max;
drivers/crypto/ccp/ccp-dev.c
506
int ccp_trng_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/crypto/ccp/ccp-dev.c
510
int len = min(sizeof(trng_value), max);
drivers/crypto/ccp/ccp-dev.h
639
int ccp_trng_read(struct hwrng *rng, void *data, size_t max, bool wait);
drivers/crypto/ccp/ccp-ops.c
369
op_len = max(op_len, block_size);
drivers/crypto/chelsio/chcr_algo.c
3174
tfm, max(sizeof(struct chcr_aead_reqctx),
drivers/crypto/gemini/sl3516-ce-rng.c
13
static int sl3516_ce_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/crypto/gemini/sl3516-ce-rng.c
24
ce->hwrng_stat_bytes += max;
drivers/crypto/gemini/sl3516-ce-rng.c
33
while (read < max) {
drivers/crypto/hisilicon/hpre/hpre_crypto.c
698
reqsize = max(sizeof(struct hpre_asym_request) + hpre_align_pd(),
drivers/crypto/hisilicon/trng/trng.c
232
static int hisi_trng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/crypto/hisilicon/trng/trng.c
247
if (max - currsize >= HISI_TRNG_BYTES) {
drivers/crypto/hisilicon/trng/trng.c
250
if (currsize == max)
drivers/crypto/hisilicon/trng/trng.c
256
memcpy(buf + currsize, &val, max - currsize);
drivers/crypto/hisilicon/trng/trng.c
257
currsize = max;
drivers/crypto/hisilicon/trng/trng.c
258
} while (currsize < max);
drivers/crypto/hisilicon/trng/trng.c
69
static int hisi_trng_read(struct hwrng *rng, void *buf, size_t max, bool wait);
drivers/crypto/inside-secure/eip93/eip93-common.c
236
src_nents = max(src_nents, dst_nents);
drivers/crypto/inside-secure/eip93/eip93-common.c
268
copy_len = max(totlen_src, totlen_dst);
drivers/crypto/inside-secure/safexcel_cipher.c
2897
crypto_aead_set_reqsize(aead, max(sizeof(struct safexcel_cipher_req),
drivers/crypto/inside-secure/safexcel_cipher.c
737
sreq->nr_src = max(sreq->nr_src, sreq->nr_dst);
drivers/crypto/inside-secure/safexcel_cipher.c
742
max(totlen_src, totlen_dst));
drivers/crypto/inside-secure/safexcel_hash.c
2420
ahash, max(sizeof(struct safexcel_ahash_req),
drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c
1240
int max = crypto_aead_maxauthsize(tfm) >> 2;
drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c
1242
if ((authsize >> 2) < 1 || (authsize >> 2) > max || (authsize & 3))
drivers/crypto/intel/keembay/keembay-ocs-aes-core.c
1209
max(sizeof(struct ocs_aes_rctx),
drivers/crypto/intel/qat/qat_common/adf_clock.c
118
u32 *frequency, u32 min, u32 max)
drivers/crypto/intel/qat/qat_common/adf_clock.c
127
*frequency = clamp(freq, min, max);
drivers/crypto/intel/qat/qat_common/adf_clock.h
11
u32 min, u32 max);
drivers/crypto/intel/qat/qat_common/adf_tl_debugfs.c
129
vals->max = max_array(hist_vals, sample_cnt);
drivers/crypto/intel/qat/qat_common/adf_tl_debugfs.c
152
vals->max *= cpp_ns_per_cycle;
drivers/crypto/intel/qat/qat_common/adf_tl_debugfs.c
202
vals->max = max_array(hist_vals, sample_cnt);
drivers/crypto/intel/qat/qat_common/adf_tl_debugfs.c
235
vals->max = div_u64(max_array(hist_vals, sample_cnt) * bw_hw_2_bits, MEGA);
drivers/crypto/intel/qat/qat_common/adf_tl_debugfs.c
251
seq_printf(s, "%*llu", TL_VALUE_MIN_PADDING, vals->max);
drivers/crypto/intel/qat/qat_common/adf_tl_debugfs.h
102
u64 max;
drivers/crypto/intel/qat/qat_common/qat_algs.c
1153
reqsize = max(sizeof(struct qat_crypto_request),
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c
543
reqsize = max(sizeof(struct qat_asym_request) + 64,
drivers/crypto/qcom-rng.c
116
static int qcom_hwrng_read(struct hwrng *hwrng, void *data, size_t max, bool wait)
drivers/crypto/qcom-rng.c
120
return qcom_rng_read(qrng, data, max);
drivers/crypto/qcom-rng.c
53
static int qcom_rng_read(struct qcom_rng *rng, u8 *data, unsigned int max)
drivers/crypto/qcom-rng.c
71
if ((max - currsize) >= WORD_SZ) {
drivers/crypto/qcom-rng.c
77
memcpy(data, &val, max - currsize);
drivers/crypto/qcom-rng.c
78
currsize = max;
drivers/crypto/qcom-rng.c
80
} while (currsize < max);
drivers/crypto/rockchip/rk3288_crypto.c
76
if (dev->variant->rkclks[j].max == 0)
drivers/crypto/rockchip/rk3288_crypto.c
80
if (cr > dev->variant->rkclks[j].max) {
drivers/crypto/rockchip/rk3288_crypto.c
82
dev->variant->rkclks[j].max);
drivers/crypto/rockchip/rk3288_crypto.c
86
dev->variant->rkclks[j].max);
drivers/crypto/rockchip/rk3288_crypto.c
90
dev->variant->rkclks[j].max);
drivers/crypto/rockchip/rk3288_crypto.h
206
unsigned long max;
drivers/crypto/xilinx/xilinx-trng.c
290
static int xtrng_hwrng_trng_read(struct hwrng *hwrng, void *data, size_t max, bool wait)
drivers/crypto/xilinx/xilinx-trng.c
303
while (i < max) {
drivers/crypto/xilinx/xilinx-trng.c
308
memcpy(data + i, buf, min_t(int, ret, (max - i)));
drivers/crypto/xilinx/xilinx-trng.c
309
i += min_t(int, ret, (max - i));
drivers/crypto/xilinx/zynqmp-aes-gcm.c
750
max(sizeof(struct xilinx_aead_req_ctx),
drivers/cxl/core/edac.c
140
min_scrub_cycle = max(*min_cycle, min_scrub_cycle);
drivers/cxl/core/edac.c
300
void *drv_data, u32 *max)
drivers/cxl/core/edac.c
302
*max = U8_MAX * 3600; /* Max set by register size */
drivers/cxl/core/hdm.c
224
adjust_start = max(skip_base, part_res->start);
drivers/devfreq/devfreq.c
149
*min_freq = max(*min_freq, (unsigned long)HZ_PER_KHZ * qos_min_freq);
drivers/devfreq/governor_passive.c
133
*target_freq = max(freq, *target_freq);
drivers/devfreq/governor_passive.c
148
*target_freq = max(freq, *target_freq);
drivers/devfreq/mtk-cci-devfreq.c
100
vsram = max(new_vsram,
drivers/devfreq/mtk-cci-devfreq.c
164
target_voltage = max(inter_voltage, voltage);
drivers/devfreq/mtk-cci-devfreq.c
314
drv->vtrack_max = 3 * DIV_ROUND_UP(max(drv->soc_data->sram_max_volt,
drivers/devfreq/mtk-cci-devfreq.c
90
voltage = max(new_voltage,
drivers/devfreq/tegra30-devfreq.c
261
avg = max(dev->avg_count, band);
drivers/devfreq/tegra30-devfreq.c
363
dev->target_freq = max(dev->target_freq, static_cpu_emc_freq);
drivers/devfreq/tegra30-devfreq.c
711
target_freq = max(target_freq, dev->target_freq);
drivers/dma-buf/dma-fence-chain.c
261
seqno = max(prev->seqno, seqno);
drivers/dma-buf/dma-heap.c
156
ksize = max(max(in_size, out_size), drv_size);
drivers/dma-buf/dma-resv.c
185
unsigned int i, j, k, max;
drivers/dma-buf/dma-resv.c
200
max = max(old->num_fences + num_fences, old->max_fences * 2);
drivers/dma-buf/dma-resv.c
202
max = max(4ul, roundup_pow_of_two(num_fences));
drivers/dma-buf/dma-resv.c
205
new = dma_resv_list_alloc(max);
drivers/dma-buf/dma-resv.c
215
for (i = 0, j = 0, k = max; i < (old ? old->num_fences : 0); ++i) {
drivers/dma-buf/dma-resv.c
241
for (i = k; i < max; ++i) {
drivers/dma/amba-pl08x.c
1427
width = max(mbus->buswidth, sbus->buswidth);
drivers/dma/dma-axi-dmac.c
866
chan->address_align_mask = max(chan->dest_width, chan->src_width) - 1;
drivers/dma/ste_dma40.c
1023
u32 max_w = max(data_width1, data_width2);
drivers/dma/ste_dma40_ll.c
196
u32 max_w = max(data_width1, data_width2);
drivers/dma/stm32/stm32-dmamux.c
127
for (i = 1, min = 0, max = dmamux->dma_reqs[i];
drivers/dma/stm32/stm32-dmamux.c
129
min += dmamux->dma_reqs[i], max += dmamux->dma_reqs[++i])
drivers/dma/stm32/stm32-dmamux.c
130
if (mux->chan_id < max)
drivers/dma/stm32/stm32-dmamux.c
92
u32 i, min, max;
drivers/dma/sun4i-dma.c
313
int i, max;
drivers/dma/sun4i-dma.c
321
max = priv->cfg->dma_nr_max_channels;
drivers/dma/sun4i-dma.c
324
max = priv->cfg->ndma_nr_max_channels;
drivers/dma/sun4i-dma.c
328
for_each_clear_bit_from(i, priv->pchans_used, max) {
drivers/dma/tegra210-adma.c
491
unsigned int max = ADMA_CH_XFER_STATUS_COUNT_MASK + 1;
drivers/dma/tegra210-adma.c
500
tdc->tx_buf_count += pos + (max - tdc->tx_buf_pos);
drivers/dpll/dpll_netlink.c
1048
if (freq <= esync.range[i].max && freq >= esync.range[i].min)
drivers/dpll/dpll_netlink.c
1329
if (phase_adj > pin->prop.phase_range.max ||
drivers/dpll/dpll_netlink.c
432
freq = pin->prop.freq_supported[fs].max;
drivers/dpll/dpll_netlink.c
477
sizeof(esync.range[i].max),
drivers/dpll/dpll_netlink.c
478
&esync.range[i].max, DPLL_A_PIN_PAD))
drivers/dpll/dpll_netlink.c
536
freq <= pin->prop.freq_supported[fs].max)
drivers/dpll/dpll_netlink.c
667
prop->phase_range.max))
drivers/dpll/zl3073x/prop.c
229
props->dpll_props.phase_range.max = S32_MAX;
drivers/edac/sb_edac.c
702
int max = 4;
drivers/edac/sb_edac.c
705
max = 8;
drivers/edac/sb_edac.c
707
if (ranks > max) {
drivers/edac/sb_edac.c
709
ranks, max, (unsigned int)RANK_CNT_BITS(mtr), mtr);
drivers/edac/thunderx_edac.c
650
ret += max(node, 0) << 3;
drivers/extcon/extcon-usbc-cros-ec.c
71
msg = kzalloc_flex(*msg, data, max(outsize, insize));
drivers/firewire/core-topology.c
83
node->max_hops = max(max_child_hops, depths[0] + depths[1] + 2);
drivers/firewire/ohci.c
3330
header_size = max(ctx->base.header_size, (size_t)8);
drivers/firmware/arm_scpi.c
536
scpi_clk_get_range(u16 clk_id, unsigned long *min, unsigned long *max)
drivers/firmware/arm_scpi.c
546
*max = le32_to_cpu(clk.max_rate);
drivers/firmware/efi/esrt.c
239
size_t size, max, entry_size, entries_size;
drivers/firmware/efi/esrt.c
262
max = efi_mem_desc_end(&md) - efi.esrt;
drivers/firmware/efi/esrt.c
265
if (max < size) {
drivers/firmware/efi/esrt.c
267
size, max);
drivers/firmware/efi/esrt.c
288
if (tmpesrt.fw_resource_count > 0 && max - size < entry_size) {
drivers/firmware/efi/esrt.c
290
max - size, entry_size);
drivers/firmware/efi/esrt.c
312
if (max < size + entries_size) {
drivers/firmware/efi/esrt.c
314
size, max);
drivers/firmware/efi/libstub/alignedmem.c
26
unsigned long max, unsigned long align,
drivers/firmware/efi/libstub/alignedmem.c
33
max = min(max, EFI_ALLOC_LIMIT);
drivers/firmware/efi/libstub/alignedmem.c
38
alloc_addr = ALIGN_DOWN(max + 1, align) - 1;
drivers/firmware/efi/libstub/efi-stub-helper.c
549
unsigned long max)
drivers/firmware/efi/libstub/efi-stub-helper.c
572
status = efi_allocate_pages(initrd->size, &initrd->base, max);
drivers/firmware/efi/libstub/efistub.h
1098
unsigned long max);
drivers/firmware/efi/libstub/efistub.h
1101
unsigned long max, unsigned long align,
drivers/firmware/efi/libstub/mem.c
83
unsigned long max)
drivers/firmware/efi/libstub/mem.c
88
max = min(max, EFI_ALLOC_LIMIT);
drivers/firmware/efi/libstub/mem.c
91
return efi_allocate_pages_aligned(size, addr, max,
drivers/firmware/efi/libstub/mem.c
95
alloc_addr = ALIGN_DOWN(max + 1, EFI_ALLOC_ALIGN) - 1;
drivers/firmware/efi/libstub/randomalloc.c
40
first_slot = round_up(max(md->phys_addr, alloc_min), align);
drivers/firmware/efi/libstub/unaccepted_memory.c
37
unaccepted_end = max(unaccepted_end,
drivers/firmware/efi/libstub/x86-stub.c
427
unprotect_start = max(rounded_start, (unsigned long)desc.base_address);
drivers/firmware/ti_sci.c
3801
cpu_lat = max(cpu_lat, val);
drivers/firmware/turris-mox-rwtm.c
252
static int mox_hwrng_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/firmware/turris-mox-rwtm.c
256
.args = { 1, rwtm->buf_phys, ALIGN(max, 4) },
drivers/firmware/turris-mox-rwtm.c
260
max = min(max, RWTM_DMA_BUFFER_SIZE);
drivers/firmware/turris-mox-rwtm.c
273
memcpy(data, rwtm->buf, max);
drivers/firmware/turris-mox-rwtm.c
274
ret = max;
drivers/fpga/altera-ps-spi.c
104
int min, max, waits;
drivers/fpga/altera-ps-spi.c
127
max = conf->data->status_wait_max_us;
drivers/fpga/altera-ps-spi.c
128
waits = max / min;
drivers/fpga/altera-ps-spi.c
129
if (max % min)
drivers/fpga/dfl.c
1118
static int dfh_get_param_size(void __iomem *dfh_base, resource_size_t max)
drivers/fpga/dfl.c
1127
while (size + DFHv1_PARAM_HDR < max) {
drivers/fpga/dfl.c
981
static u64 *find_param(u64 *params, resource_size_t max, int param_id)
drivers/fpga/dfl.c
983
u64 *end = params + max / sizeof(u64);
drivers/gnss/usb.c
154
buf_len = max(usb_endpoint_maxp(in), GNSS_USB_READ_BUF_LEN);
drivers/gpio/gpio-sim.c
728
size = max(size, line->offset + 1);
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
153
#define ESTIMATE_PT_SIZE(mem_size) max(((mem_size) >> 14), AMDGPU_VM_RESERVED_VRAM)
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
750
adev->mm_stats.accum_us = max(min_us, adev->mm_stats.accum_us);
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
772
max(bytes_to_us(adev, free_vis_vram / 2),
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
4768
adev->mm_stats.log2_max_MBps = ilog2(max(1u, max_MBps));
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
918
dcc_block_bits = max(20, 16 + pipes + extra_pipe);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
922
dcc_block_bits = max(20, 18 + rb);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
988
return max(10 + (rb_aligned ? (int)AMD_FMT_MOD_GET(RB, modifier) : 0), 12);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
999
return max(8 + (pipe_aligned ? pipes_log2 : 0), 12);
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
388
u32 gfx_mqd_size = max(adev->mqds[AMDGPU_HW_IP_GFX].mqd_size, mqd_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
389
u32 compute_mqd_size = max(adev->mqds[AMDGPU_HW_IP_COMPUTE].mqd_size, mqd_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
1093
size = max(size, (unsigned)AMDGPU_VBIOS_VGA_ALLOCATION);
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
1418
if (max(ranges[j].base_address,
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
306
if (mc->gart_size > max(size_bf, size_af)) {
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
308
mc->gart_size = max(size_bf, size_af);
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
431
stamp = max(timestamp, AMDGPU_GMC_FAULT_TIMEOUT + 1) -
drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c
234
fb_div_min = max(fb_div_min, (9 - (fb_div % 10)) * 20 + 60);
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
264
sched_hw_submission = max(sched_hw_submission, 256);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1827
reserve_size = max(reserve_size, (uint32_t)280 << 20);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1831
reserve_size = max(reserve_size, (uint32_t)128 << 20);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
1833
reserve_size = max(reserve_size, (uint32_t)144 << 20);
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
853
int num_xcc = max(1U, adev->gfx.num_xcc_per_xcp);
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
699
tmp = max(width_in_mb, height_in_mb);
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
673
bo->placements[i].fpfn = max(bo->placements[i].fpfn, fpfn);
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
526
adev->virt.decode_max_dimension_pixels = max(tmp, adev->virt.decode_max_dimension_pixels);
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
529
adev->virt.decode_max_frame_pixels = max(tmp, adev->virt.decode_max_frame_pixels);
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
532
adev->virt.encode_max_dimension_pixels = max(tmp, adev->virt.encode_max_dimension_pixels);
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
535
adev->virt.encode_max_frame_pixels = max(tmp, adev->virt.encode_max_frame_pixels);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c
873
frag_end = max(frag_end, ALIGN(frag_start + 1,
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c
902
nptes = max(nptes, 1u);
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
599
vres->base.start = max(vres->base.start, start);
drivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.c
168
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/gfxhub_v12_0.c
171
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c
178
lower_32_bits(max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18));
drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c
181
upper_32_bits(max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18));
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c
117
max((adev->gmc.fb_end >> 18) + 0x1,
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c
122
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c
156
max((adev->gmc.fb_end >> 18) + 0x1,
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c
161
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c
165
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c
170
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0.c
164
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.c
169
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
109
max((adev->gmc.fb_end >> 18) + 0x1,
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
113
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c
122
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c
153
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c
236
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c
165
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0.c
190
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_1.c
196
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_2.c
181
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c
322
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/mmhub_v4_1_0.c
182
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/mmhub_v4_2_0.c
222
lower_32_bits(max(adev->gmc.fb_end,
drivers/gpu/drm/amd/amdgpu/mmhub_v4_2_0.c
226
upper_32_bits(max(adev->gmc.fb_end,
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c
136
max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18);
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
580
max(adev->usec_timeout/100000, 1));
drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
575
max(adev->usec_timeout/100000, 1));
drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c
557
max(adev->usec_timeout/100000, 1));
drivers/gpu/drm/amd/amdgpu/si.c
1737
vco_min = max(max(vco_min, vclk), dclk);
drivers/gpu/drm/amd/amdkfd/kfd_events.c
1008
max(0l, timeout-1));
drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
329
pdd->gpuvm_base = max(SVM_USER_BASE, AMDGPU_VA_RESERVED_BOTTOM);
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
996
start = max(ALIGN_DOWN(addr, size), prange->start);
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
1777
s = max(start, prange->start);
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
1832
map_start_vma = max(map_start, prange->start + offset);
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
2062
s = max(start, pchild->start);
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
2068
s = max(start, prange->start);
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
2602
s = max(start, pchild->start);
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
2609
s = max(start, prange->start);
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
2659
start = max(start, range->start) >> PAGE_SHIFT;
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
2816
start_limit = max(vma->vm_start >> PAGE_SHIFT,
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
2839
start_limit = max(start_limit, node->last + 1);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1500
logical_addr_high = max((adev->gmc.fb_end >> 18) + 0x1, adev->gmc.agp_end >> 18);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1502
logical_addr_high = max(adev->gmc.fb_end, adev->gmc.agp_end) >> 18;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5026
unsigned int *min, unsigned int *max)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5033
*max = 1000 * caps->aux_max_input_signal;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5037
*max = 0x101 * caps->max_input_signal;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5044
static inline u32 scale_input_to_fw(int min, int max, u64 input)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5046
return DIV_ROUND_CLOSEST_ULL(input * AMDGPU_MAX_BL_LEVEL, max - min);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5050
static inline u32 scale_fw_to_input(int min, int max, u64 input)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5052
return min + DIV_ROUND_CLOSEST_ULL(input * (max - min), AMDGPU_MAX_BL_LEVEL);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5056
unsigned int min, unsigned int max,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5059
u32 brightness = scale_input_to_fw(min, max, *user_brightness);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5115
*user_brightness = scale_fw_to_input(min, max,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5122
unsigned int min, max;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5124
if (!get_brightness_range(caps, &min, &max))
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5127
convert_custom_brightness(caps, min, max, &brightness);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5130
return min + DIV_ROUND_CLOSEST_ULL((u64)(max - min) * brightness, max);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5136
unsigned int min, max;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5138
if (!get_brightness_range(caps, &min, &max))
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5144
return DIV_ROUND_CLOSEST_ULL((u64)max * (brightness - min),
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5145
max - min);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5296
int min, max;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5311
if (get_brightness_range(caps, &min, &max)) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5313
props.brightness = DIV_ROUND_CLOSEST((max - min) * caps->ac_level, 100);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5315
props.brightness = DIV_ROUND_CLOSEST((max - min) * caps->dc_level, 100);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5317
props.max_brightness = max - min;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5318
drm_dbg(drm, "Backlight caps: min: %d, max: %d, ac %d, dc %d\n", min, max,
drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c
241
requested_clk_khz = max(requested_clk_khz,
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
223
pp_display_cfg->min_memory_clock_khz = max(pp_display_cfg->min_memory_clock_khz,
drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.c
136
requested_clk_khz = max(requested_clk_khz,
drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/dce112_clk_mgr.c
82
requested_clk_khz = max(requested_clk_khz,
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/vg_clk_mgr.c
532
uint32_t max = 0;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/vg_clk_mgr.c
536
if (clocks[i] > max)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/vg_clk_mgr.c
537
max = clocks[i];
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/vg_clk_mgr.c
540
return max;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
522
uint32_t max = 0;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
526
if (clocks[i] > max)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
527
max = clocks[i];
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
530
return max;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
613
uint32_t max = 0;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
617
if (clocks[i] > max)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
618
max = clocks[i];
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
621
return max;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c
448
uint32_t max = 0;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c
452
if (clocks[i] > max)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c
453
max = clocks[i];
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c
456
return max;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
1050
num_levels = max(num_entries_per_clk->num_memclk_levels, num_entries_per_clk->num_fclk_levels);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
758
max((int)dc->clk_mgr->bw_params->dc_mode_softmax_memclk, khz_to_mhz_ceil(clk_mgr_base->clks.dramclk_khz)));
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
980
uint32_t max = 0;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
984
if (clocks[i] > max)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
985
max = clocks[i];
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
988
return max;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
1407
num_levels = max(num_entries_per_clk->num_memclk_levels, num_entries_per_clk->num_fclk_levels);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1148
int max = higher_refresh_brightness;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1161
max = MAX(lower_refresh_brightness, higher_refresh_brightness);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1168
max = MAX(max, stream->lumin_data.luminance_millinits[nearest_smallest_index + 1]);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1171
return (max - min);
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
258
requested_clk_khz = max(requested_clk_khz,
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
301
requested_clk_khz = max(requested_clk_khz,
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
347
max(pipes[pipe_cnt].pipe.dest.vblank_nom, timing->v_sync_width + v_back_porch + 2);
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
483
max(pipes[pipe_cnt].pipe.dest.vblank_nom, timing->v_sync_width + v_back_porch + 2);
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
516
max(pipes[pipe_cnt].pipe.dest.vblank_nom, timing->v_sync_width + v_back_porch + 2);
drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
37
#define TABLE_CASE(mode, bpc, max) case (table_hash(mode, BPC_##bpc, max)): \
drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
38
table = qp_table_##mode##_##bpc##bpc_##max; \
drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
39
table_size = sizeof(qp_table_##mode##_##bpc##bpc_##max)/sizeof(*qp_table_##mode##_##bpc##bpc_##max); \
drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
76
TABLE_CASE(444, 8, max);
drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
78
TABLE_CASE(444, 10, max);
drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
80
TABLE_CASE(444, 12, max);
drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
82
TABLE_CASE(422, 8, max);
drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
84
TABLE_CASE(422, 10, max);
drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
86
TABLE_CASE(422, 12, max);
drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
88
TABLE_CASE(420, 8, max);
drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
90
TABLE_CASE(420, 10, max);
drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c
92
TABLE_CASE(420, 12, max);
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
137
timing->drr_config.min_refresh_uhz = max(stream->timing.min_refresh_in_uhz, min_hardware_refresh_in_uhz);
drivers/gpu/drm/amd/display/dc/inc/hw/opp.h
268
int32_t max;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
612
const struct dc_link_settings *max,
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
634
if (dp_lt_fallbacks[next_idx].lane_count > max->lane_count ||
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
635
dp_lt_fallbacks[next_idx].link_rate > max->link_rate)
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
670
struct dc_link_settings *max,
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
674
if (link_dp_get_encoding_format(max) == DP_128b_132b_ENCODING ||
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
676
return decide_fallback_link_setting_max_bw_policy(link, max,
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
688
cur->link_rate = max->link_rate;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
714
max->link_rate = cur->link_rate;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
715
cur->lane_count = max->lane_count;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
730
max->link_rate = cur->link_rate;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
731
cur->lane_count = max->lane_count;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.h
98
struct dc_link_settings *max,
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
537
return max(lt_settings->eq_pattern_time, (uint32_t) DPIA_CLK_SYNC_DELAY);
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training_dpia.c
668
wait_time_microsec = max(wait_time_microsec, (uint32_t) DPIA_CLK_SYNC_DELAY);
drivers/gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c
872
const uint32_t max_pix_clk_khz = max(dc->clk_mgr->clks.max_supported_dispclk_khz, 400000);
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c
607
window_sizes[DMUB_WINDOW_SHARED_STATE] = max(DMUB_FW_HEADER_SHARED_STATE_SIZE, shared_state_size);
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
1344
struct fixed31_32 max = dc_fixpt_one;
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
1359
if (dc_fixpt_lt(max, ramp->entries.red[i]))
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
1360
max = ramp->entries.red[i];
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
1362
if (dc_fixpt_lt(max, ramp->entries.green[i]))
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
1363
max = ramp->entries.green[i];
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
1365
if (dc_fixpt_lt(max, ramp->entries.blue[i]))
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
1366
max = ramp->entries.blue[i];
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
1372
offset = dc_fixpt_add(min, max);
drivers/gpu/drm/amd/pm/amdgpu_dpm.c
824
uint32_t *max)
drivers/gpu/drm/amd/pm/amdgpu_dpm.c
838
max);
drivers/gpu/drm/amd/pm/amdgpu_dpm.c
847
uint32_t max)
drivers/gpu/drm/amd/pm/amdgpu_dpm.c
859
max);
drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
460
uint32_t *max);
drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
464
uint32_t max);
drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c
2145
u32 min = max(min_sclk_in_sr, (u32)KV_MINIMUM_ENGINE_CLOCK);
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
2638
u16 *max, u16 *min)
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
2649
*max = 0;
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
2653
if (table->entries[i].vddc > *max)
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
2654
*max = table->entries[i].vddc;
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
2669
if ((*min > *max) || (*max == 0) || (*min == 0))
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
2675
static u16 si_get_cac_std_voltage_step(u16 max, u16 min)
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
2677
return ((max - min) + (SMC_SISLANDS_LKGE_LUT_NUM_OF_VOLT_ENTRIES - 1)) /
drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c
251
adev->pm.dpm.thermal.max_temp = range.max;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
739
ps->temperatures.max = PP_TEMPERATURE_UNITS_PER_CENTIGRADES *
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
1942
data->pcie_gen_performance.max = PP_PCIEGen1;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
1944
data->pcie_gen_power_saving.max = PP_PCIEGen1;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
1946
data->pcie_lane_performance.max = 0;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
1948
data->pcie_lane_power_saving.max = 0;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
1989
uint32_t asicrev1, evv_revision, max = 0, min = 0;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
1999
max = 2500;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2003
max = 2100;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2007
max = 2300;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2011
max = 2300;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2015
max = 2500;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2019
max = 2000;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2023
max = 2500;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2028
max = 2100;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
2032
data->ro_range_maximum = max;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3479
smu7_ps->performance_levels[i].pcie_gen = data->pcie_gen_performance.max;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3480
smu7_ps->performance_levels[i].pcie_lane = data->pcie_gen_performance.max;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3639
power_state->temperatures.max = 0;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3739
if (data->pcie_gen_performance.max <
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3741
data->pcie_gen_performance.max =
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3749
if (data->pcie_lane_performance.max <
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3751
data->pcie_lane_performance.max =
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3763
if (data->pcie_gen_power_saving.max <
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3765
data->pcie_gen_power_saving.max =
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3773
if (data->pcie_lane_power_saving.max <
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3775
data->pcie_lane_power_saving.max =
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3888
if (data->pcie_gen_performance.max <
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3890
data->pcie_gen_performance.max =
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3898
if (data->pcie_lane_performance.max <
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3900
data->pcie_lane_performance.max =
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3913
if (data->pcie_gen_power_saving.max <
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3915
data->pcie_gen_power_saving.max =
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3923
if (data->pcie_lane_power_saving.max <
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
3925
data->pcie_lane_power_saving.max =
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
5467
thermal_data->max = table_info->cac_dtp_table->usSoftwareShutdownTemp *
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
5470
thermal_data->max = data->thermal_temp_setting.temperature_shutdown;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
5472
thermal_data->sw_ctf_threshold = thermal_data->max;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
5834
uint32_t min = max(clock_insr, (uint32_t)SMU7_MINIMUM_ENGINE_CLOCK);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.h
173
uint16_t max;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_thermal.c
448
ret = smu7_thermal_set_temperature_range(hwmgr, range->min, range->max);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c
1879
thermal_data->max = (data->thermal_auto_throttling_treshold +
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c
346
uint32_t count, int max)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c
352
dpm_table->count = count > max ? max : count;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.h
80
extern int phm_reset_single_dpm_table(void *table, uint32_t count, int max);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
3186
power_state->temperatures.max = 0;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
5157
thermal_data->max = pp_table->TedgeLimit *
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c
1843
bool max)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c
1847
if (max)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c
2802
thermal_data->max = pp_table->TedgeLimit *
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c
62
bool max);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c
2040
bool max)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c
2045
if (max) {
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c
4293
thermal_data->max = pp_table->TedgeLimit *
drivers/gpu/drm/amd/pm/powerplay/inc/power_state.h
126
int max;
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
628
int i, min, max;
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
630
min = max = hi_vid[0];
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
635
if (max < hi_vid[i])
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
636
max = hi_vid[i];
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
642
if (max < lo_vid[i])
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
643
max = lo_vid[i];
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
647
if ((min == 0) || (max == 0))
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c
649
smu_data->power_tune_table.GnbLPMLMaxVid = (u8)max;
drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
1488
uint32_t ro, efuse, volt_without_cks, volt_with_cks, value, max, min;
drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
1504
max = 2500;
drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
1506
ro = efuse * (max - min) / 255 + min;
drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
795
uint32_t min = max(clock_insr, (uint32_t)SMU7_MINIMUM_ENGINE_CLOCK);
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
144
uint32_t max)
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
1452
adev->pm.dpm.thermal.max_temp = range->max;
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
157
max,
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
166
uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
170
if (!min && !max)
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
177
max);
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
1431
int (*get_dpm_ultimate_freq)(struct smu_context *smu, enum smu_clk_type clk_type, uint32_t *min, uint32_t *max);
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
1437
int (*set_soft_freq_limited_range)(struct smu_context *smu, enum smu_clk_type clk_type, uint32_t min, uint32_t max,
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
167
int max;
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
1958
uint32_t *min, uint32_t *max);
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
1961
uint32_t min, uint32_t max);
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
549
uint32_t max;
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0.h
236
uint32_t *min, uint32_t *max);
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0.h
239
uint32_t min, uint32_t max, bool automatic);
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0.h
244
uint32_t max);
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0_7_pptable.h
140
uint32_t max[SMU_11_0_7_MAX_ODSETTING]; //default maximum settings
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0_7_pptable.h
168
uint32_t max[SMU_11_0_7_MAX_PPCLOCK]; //PowerSavingClock Mode Clock Maximum array In MHz
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0_pptable.h
110
uint32_t max[SMU_11_0_MAX_ODSETTING]; //default maximum settings
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0_pptable.h
133
uint32_t max[SMU_11_0_MAX_PPCLOCK]; //PowerSavingClock Mode Clock Maximum array In MHz
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v12_0.h
59
uint32_t min, uint32_t max, bool automatic);
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h
196
uint32_t *min, uint32_t *max);
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h
199
uint32_t min, uint32_t max, bool automatic);
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0_0_pptable.h
149
uint32_t max[SMU_13_0_0_MAX_ODSETTING]; //default maximum settings
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0_7_pptable.h
149
uint32_t max[SMU_13_0_7_MAX_ODSETTING]; //default maximum settings
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0_pptable.h
112
uint32_t max[SMU_13_0_MAX_ODSETTING]; //default maximum settings
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0_pptable.h
135
uint32_t max[SMU_13_0_MAX_PPCLOCK]; //PowerSavingClock Mode Clock Maximum array In MHz
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h
166
uint32_t *min, uint32_t *max);
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h
169
uint32_t min, uint32_t max, bool automatic);
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h
174
uint32_t max);
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0_2_pptable.h
128
int32_t max[SMU_14_0_2_OVERDRIVE_TABLE_COUNT][SMU_14_0_2_MAX_ODSETTING]; // maximum settings
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0_2_pptable.h
186
int32_t max[SMU_14_0_2_CUSTOM_ODSETTING_COUNT];
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v15_0.h
184
uint32_t *min, uint32_t *max);
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v15_0.h
187
uint32_t min, uint32_t max, bool automatic);
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v15_0.h
192
uint32_t max);
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v15_0.h
75
uint32_t max; /* MHz */
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
1013
range->max = pptable->TedgeLimit *
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
883
bool max,
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
896
(max ? SMU_MSG_SetSoftMaxByFreq : SMU_MSG_SetSoftMinByFreq),
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
901
max ? "max" : "min");
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
910
(max ? SMU_MSG_SetSoftMaxByFreq : SMU_MSG_SetSoftMinByFreq),
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
915
max ? "max" : "min");
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
924
(max ? SMU_MSG_SetSoftMaxByFreq : SMU_MSG_SetSoftMinByFreq),
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
929
max ? "max" : "min");
drivers/gpu/drm/amd/pm/swsmu/smu11/cyan_skillfish_ppt.c
544
uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu11/cyan_skillfish_ppt.c
565
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu11/cyan_skillfish_ppt.c
566
*max = high;
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
1235
uint32_t *min, uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
1239
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
1240
*max = od_table->max[setting];
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
2091
range->max = pptable->TedgeLimit *
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
2162
od_percent_upper = le32_to_cpu(powerplay_table->overdrive_table.max[SMU_11_0_ODSETTING_POWERPERCENTAGE]);
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
2246
if (value > od_table->max[setting]) {
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
2247
dev_warn(smu->adev->dev, "OD setting (%d, %d) is greater than the maximum allowed (%d)\n", setting, value, od_table->max[setting]);
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
1262
uint32_t *min, uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
1266
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
1267
*max = od_table->max[setting];
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
2059
range->max = temp_edge * SMU_TEMPERATURE_UNITS_PER_CENTIGRADES;
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
2154
uint32_t *min, uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
2156
return smu_v11_0_get_dpm_ultimate_freq(smu, clk_type, min, max);
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
2226
if (value > od_table->max[setting]) {
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
2228
setting, value, od_table->max[setting]);
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
654
od_percent_upper = le32_to_cpu(powerplay_table->overdrive_table.max[SMU_11_0_7_ODSETTING_POWERPERCENTAGE]);
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
1361
low = max(SMU_THERMAL_MINIMUM_ALERT_TEMP,
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
1715
uint32_t *min, uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
1742
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
1743
*max = clock_limit / 100;
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
1757
if (max) {
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
1758
ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_GetMaxDpmFreq, param, max);
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
1776
uint32_t max,
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
1791
if (max > 0) {
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
1795
param = (uint32_t)((clk_id << 16) | (max & 0xffff));
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
1820
uint32_t max)
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
1825
if (min <= 0 && max <= 0)
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
1837
if (max > 0) {
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
1838
param = (uint32_t)((clk_id << 16) | (max & 0xffff));
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
1085
uint32_t max,
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
1104
max, NULL);
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
1117
max, NULL);
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
1130
max, NULL);
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
1142
max << 16, NULL);
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
1154
max, NULL);
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
240
SMU_TABLE_INIT(tables, SMU_TABLE_SMU_METRICS, max(sizeof(SmuMetrics_t), sizeof(SmuMetrics_legacy_t)),
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
243
smu_table->metrics_table = kzalloc(max(sizeof(SmuMetrics_t), sizeof(SmuMetrics_legacy_t)), GFP_KERNEL);
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
678
uint32_t min, max;
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
767
max = (smu->gfx_actual_soft_max_freq > 0) ? smu->gfx_actual_soft_max_freq : smu->gfx_default_soft_max_freq;
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
768
if (cur_value == max)
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
779
size += sysfs_emit_at(buf, size, "2: %uMhz %s\n", max,
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
894
uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
934
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
935
*max = clock_limit / 100;
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
939
if (max) {
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
953
ret = vangogh_get_dpm_clk_limited(smu, clk_type, mclk_mask, max);
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
958
ret = vangogh_get_dpm_clk_limited(smu, clk_type, soc_mask, max);
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
963
ret = vangogh_get_dpm_clk_limited(smu, clk_type, fclk_mask, max);
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
968
ret = vangogh_get_dpm_clk_limited(smu, clk_type, vclk_mask, max);
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
973
ret = vangogh_get_dpm_clk_limited(smu, clk_type, dclk_mask, max);
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
276
uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
303
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
304
*max = clock_limit / 100;
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
309
if (max) {
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
321
ret = smu_cmn_send_smc_msg(smu, SMU_MSG_GetMaxGfxclkFrequency, max);
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
330
ret = renoir_get_dpm_clk_limited(smu, clk_type, mclk_mask, max);
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
335
ret = renoir_get_dpm_clk_limited(smu, clk_type, soc_mask, max);
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
465
uint32_t min = 0, max = 0;
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
475
0, &max);
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
480
smu->gfx_default_soft_max_freq = max;
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
491
uint32_t cur_value = 0, value = 0, count = 0, min = 0, max = 0;
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
511
0, &max);
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
514
size += sysfs_emit_at(buf, size, "OD_RANGE\nSCLK: %10uMhz %10uMhz\n", min, max);
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
518
max = (smu->gfx_actual_soft_max_freq > 0) ? smu->gfx_actual_soft_max_freq : smu->gfx_default_soft_max_freq;
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
521
size += sysfs_emit_at(buf, size, "1:%10uMhz\n", max);
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
527
ret = renoir_get_dpm_ultimate_freq(smu, SMU_GFXCLK, &min, &max);
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
531
if (cur_value == max)
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
543
size += sysfs_emit_at(buf, size, "2: %uMhz %s\n", max,
drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c
212
uint32_t min, uint32_t max, bool automatic)
drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c
226
ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_SetSoftMaxGfxClk, max, NULL);
drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c
237
ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_SetSoftMaxFclkByFreq, max, NULL);
drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c
246
ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_SetSoftMaxSocclkByFreq, max, NULL);
drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c
255
ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_SetSoftMaxVcn, max, NULL);
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1206
pstate_table->gfxclk_pstate.curr.max =
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1235
uint32_t max,
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1255
if (min >= max) {
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1262
(max == pstate_table->gfxclk_pstate.curr.max))
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1266
min, max, false);
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1269
pstate_table->gfxclk_pstate.curr.max = max;
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1276
if (!max || (max < min_clk) || (max > max_clk)) {
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1278
"Invalid max frequency %d MHz specified for determinism\n", max);
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1288
max, NULL);
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1291
"Failed to enable determinism at GFX clock %d MHz\n", max);
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1294
pstate_table->gfxclk_pstate.curr.max = max;
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1343
pstate_table->gfxclk_pstate.custom.max =
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1344
pstate_table->gfxclk_pstate.curr.max;
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1348
pstate_table->gfxclk_pstate.custom.max = input[1];
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1380
if (!pstate_table->gfxclk_pstate.custom.max)
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1381
pstate_table->gfxclk_pstate.custom.max =
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1382
pstate_table->gfxclk_pstate.curr.max;
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
1385
max_clk = pstate_table->gfxclk_pstate.custom.max;
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
343
uint32_t *min, uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
383
if (max) {
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
386
*max = max_clk;
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
390
return smu_v13_0_get_dpm_ultimate_freq(smu, clk_type, min, max);
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
595
pstate_table->gfxclk_pstate.curr.max = SMU_DPM_TABLE_MAX(gfx_table);
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
600
pstate_table->uclk_pstate.curr.max = SMU_DPM_TABLE_MAX(mem_table);
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
605
pstate_table->socclk_pstate.curr.max = SMU_DPM_TABLE_MAX(soc_table);
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
812
pstate_table->gfxclk_pstate.curr.max);
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
818
pstate_table->uclk_pstate.curr.max);
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
858
bool max,
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
871
(max ? SMU_MSG_SetSoftMaxByFreq : SMU_MSG_SetSoftMinByFreq),
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
876
max ? "max" : "min");
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
885
(max ? SMU_MSG_SetSoftMaxByFreq : SMU_MSG_SetSoftMinByFreq),
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
890
max ? "max" : "min");
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
899
(max ? SMU_MSG_SetSoftMaxByFreq : SMU_MSG_SetSoftMinByFreq),
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
904
max ? "max" : "min");
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1214
low = max(SMU_THERMAL_MINIMUM_ALERT_TEMP,
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1483
uint32_t *min, uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1497
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1498
*max = clock_limit / 100;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1512
if (max) {
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1517
max);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1522
max);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1540
uint32_t max,
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1555
if (max > 0) {
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1556
max = SMU_V13_SOFT_FREQ_ROUND(max);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1560
param = (uint32_t)((clk_id << 16) | (max & 0xffff));
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1690
pstate_table->gfxclk_pstate.curr.max = sclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1703
pstate_table->uclk_pstate.curr.max = mclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1716
pstate_table->socclk_pstate.curr.max = socclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1732
pstate_table->vclk_pstate.curr.max = vclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1748
pstate_table->dclk_pstate.curr.max = dclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
1761
pstate_table->fclk_pstate.curr.max = fclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
2508
pstate_table->uclk_pstate.custom.max = 0;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
2510
pstate_table->gfxclk_pstate.custom.max = 0;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
1084
int32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
1153
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
1154
*max = od_max_setting;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
2042
range->max = pptable->SkuTable.TemperatureLimit[TEMP_EDGE] *
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
2084
gpu_metrics->temperature_vrmem = max(metrics->AvgTemperature[TEMP_VR_MEM0],
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
2089
gpu_metrics->average_mm_activity = max(metrics->Vcn0ActivityPercentage,
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
2419
od_percent_upper = le32_to_cpu(powerplay_table->overdrive_table.max[SMU_13_0_0_ODSETTING_POWERPERCENTAGE]);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
64
int32_t *min, int32_t *max);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
806
*value = max(metrics->Vcn0ActivityPercentage,
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
861
uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
903
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
904
*max = SMU_DPM_TABLE_MAX(dpm_table);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c
248
return max(sizeof(StaticMetricsTable_t), sizeof(MetricsTable_t));
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c
508
uint32_t min, max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c
553
max = (smu->gfx_actual_soft_max_freq > 0) ? smu->gfx_actual_soft_max_freq : smu->gfx_default_soft_max_freq;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c
554
if (cur_value == max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c
565
size += sysfs_emit_at(buf, size, "2: %uMhz %s\n", max,
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c
759
uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c
774
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c
775
*max = clock_limit / 100;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c
780
if (max) {
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c
784
*max = clk_table->MaxGfxClk;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c
805
max);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c
846
uint32_t max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c
850
uint32_t max_clk = max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c
881
max_clk = max << SMU_13_VCLK_SHIFT;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
736
uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
751
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
752
*max = clock_limit / 100;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
757
if (max) {
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
761
*max = clk_table->MaxGfxClk;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
781
ret = smu_v13_0_5_get_dpm_freq_by_index(smu, clk_type, max_dpm_level, max);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
824
uint32_t max,
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
829
uint32_t max_clk = max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
852
max_clk = max << SMU_13_VCLK_SHIFT;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
873
uint32_t min = 0, max = 0;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
916
max = (smu->gfx_actual_soft_max_freq > 0) ? smu->gfx_actual_soft_max_freq : smu->gfx_default_soft_max_freq;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
917
if (cur_value == max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
928
size += sysfs_emit_at(buf, size, "2: %uMhz %s\n", max,
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1021
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1022
*max = max_clk;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1038
if (max) {
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1041
smu, SMU_MSG_GetMaxGfxclkFrequency, max);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1044
smu, SMU_MSG_GetMaxDpmFreq, param, max);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1204
pstate_table->gfxclk_pstate.curr.max = SMU_DPM_TABLE_MAX(gfx_table);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1209
pstate_table->uclk_pstate.curr.max = SMU_DPM_TABLE_MAX(mem_table);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1214
pstate_table->socclk_pstate.curr.max = SMU_DPM_TABLE_MAX(soc_table);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1390
pstate_table->gfxclk_pstate.curr.max);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1399
pstate_table->uclk_pstate.curr.max);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1443
static int smu_v13_0_6_upload_dpm_level(struct smu_context *smu, bool max,
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1455
(max ? SMU_MSG_SetSoftMaxGfxClk :
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1461
max ? "max" : "min");
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1472
(max ? SMU_MSG_SetSoftMaxByFreq :
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1478
max ? "max" : "min");
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1488
(max ? SMU_MSG_SetSoftMaxByFreq :
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1494
max ? "max" : "min");
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1952
uint32_t max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1957
max & 0xffff, NULL);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1981
pstate_table->gfxclk_pstate.curr.max =
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
1993
pstate_table->gfxclk_pstate.curr.max)) {
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2002
pstate_table->gfxclk_pstate.curr.max =
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2007
pstate_table->uclk_pstate.curr.max) {
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2014
pstate_table->uclk_pstate.curr.max =
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2031
uint32_t min, uint32_t max,
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2051
if (min >= max) {
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2059
(max == pstate_table->gfxclk_pstate.curr.max))
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2063
smu, min, max);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2066
pstate_table->gfxclk_pstate.curr.max = max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2071
if (max == pstate_table->uclk_pstate.curr.max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2079
smu, SMU_UCLK, 0, max, false);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2081
pstate_table->uclk_pstate.curr.max = max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2090
if (!max || (max < min_clk) || (max > max_clk)) {
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2094
max);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2104
smu, SMU_MSG_EnableDeterminism, max, NULL);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2108
max);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2111
pstate_table->gfxclk_pstate.curr.max = max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2163
pstate_table->gfxclk_pstate.custom.max =
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2164
pstate_table->gfxclk_pstate.curr.max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2168
pstate_table->gfxclk_pstate.custom.max = input[1];
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2198
pstate_table->uclk_pstate.custom.max =
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2199
pstate_table->uclk_pstate.curr.max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2203
pstate_table->uclk_pstate.custom.max = input[1];
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2226
pstate_table->uclk_pstate.curr.max) {
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2248
if (!pstate_table->gfxclk_pstate.custom.max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2249
pstate_table->gfxclk_pstate.custom.max =
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2250
pstate_table->gfxclk_pstate.curr.max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2253
max_clk = pstate_table->gfxclk_pstate.custom.max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2261
if (!pstate_table->uclk_pstate.custom.max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
2265
max_clk = pstate_table->uclk_pstate.custom.max;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
571
max(gpu_metrcs_size,
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
980
uint32_t *min, uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
1094
int32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
1163
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
1164
*max = od_max_setting;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
2049
range->max = pptable->SkuTable.TemperatureLimit[TEMP_EDGE] *
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
2090
gpu_metrics->temperature_vrmem = max(metrics->AvgTemperature[TEMP_VR_MEM0],
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
2095
gpu_metrics->average_mm_activity = max(metrics->Vcn0ActivityPercentage,
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
2401
od_percent_upper = le32_to_cpu(powerplay_table->overdrive_table.max[SMU_13_0_7_ODSETTING_POWERPERCENTAGE]);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
64
int32_t *min, int32_t *max);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
798
*value = max(metrics->Vcn0ActivityPercentage,
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
871
uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
913
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c
914
*max = SMU_DPM_TABLE_MAX(dpm_table);
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c
1053
uint32_t min, max;
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c
1099
max = (smu->gfx_actual_soft_max_freq > 0) ? smu->gfx_actual_soft_max_freq : smu->gfx_default_soft_max_freq;
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c
1100
if (cur_value == max)
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c
1111
size += sysfs_emit_at(buf, size, "2: %uMhz %s\n", max,
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c
870
uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c
885
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c
886
*max = clock_limit / 100;
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c
891
if (max) {
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c
895
*max = clk_table->MaxGfxClk;
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c
915
ret = yellow_carp_get_dpm_freq_by_index(smu, clk_type, max_dpm_level, max);
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c
958
uint32_t max,
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c
963
uint32_t max_clk = max;
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c
995
max_clk = max << SMU_13_VCLK_SHIFT;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1092
uint32_t *min, uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1119
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1120
*max = clock_limit / 100;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1134
if (max) {
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1139
max);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1144
max);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1162
uint32_t max,
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1177
if (max > 0) {
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1178
max = SMU_V14_SOFT_FREQ_ROUND(max);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1182
param = (uint32_t)((clk_id << 16) | (max & 0xffff));
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1207
uint32_t max)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1212
if (min <= 0 && max <= 0)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1224
if (max > 0) {
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1225
param = (uint32_t)((clk_id << 16) | (max & 0xffff));
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1338
pstate_table->gfxclk_pstate.curr.max = sclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1351
pstate_table->uclk_pstate.curr.max = mclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1364
pstate_table->socclk_pstate.curr.max = socclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1380
pstate_table->vclk_pstate.curr.max = vclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1396
pstate_table->dclk_pstate.curr.max = dclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
1409
pstate_table->fclk_pstate.curr.max = fclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
896
low = max(SMU_THERMAL_MINIMUM_ALERT_TEMP,
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
1017
uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
1020
smu_v14_0_1_get_dpm_ultimate_freq(smu, clk_type, min, max);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
1022
smu_v14_0_0_get_dpm_ultimate_freq(smu, clk_type, min, max);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
1144
uint32_t min, max;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
1191
max = (smu->gfx_actual_soft_max_freq > 0) ? smu->gfx_actual_soft_max_freq : smu->gfx_default_soft_max_freq;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
1192
if (cur_value == max)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
1203
size += sysfs_emit_at(buf, size, "2: %uMhz %s\n", max,
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
1218
u32 max,
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
1265
if (max && msg_set_max != SMU_MSG_MAX_COUNT)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
1266
ret = smu_cmn_send_smc_msg_with_param(smu, msg_set_max, max, NULL);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
195
SMU_TABLE_INIT(tables, SMU_TABLE_DPMCLOCKS, max(sizeof(DpmClocks_t), sizeof(DpmClocks_t_v14_0_1)),
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
205
smu_table->clocks_table = kzalloc(max(sizeof(DpmClocks_t), sizeof(DpmClocks_t_v14_0_1)), GFP_KERNEL);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
781
uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
820
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
821
*max = clock_limit / 100;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
826
if (max) {
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
830
*max = clk_table->MaxGfxClk;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
856
ret = smu_v14_0_common_get_dpm_freq_by_index(smu, clk_type, max_dpm_level, max);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
903
uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
940
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
941
*max = clock_limit / 100;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
946
if (max) {
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
950
*max = clk_table->MaxGfxClk;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c
972
ret = smu_v14_0_common_get_dpm_freq_by_index(smu, clk_type, max_dpm_level, max);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
1025
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
1026
*max = od_max_setting;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
1486
range->max = pptable->CustomSkuTable.TemperatureLimit[TEMP_EDGE] *
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
2144
gpu_metrics->temperature_vrmem = max(metrics->AvgTemperature[TEMP_VR_MEM0],
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
2149
gpu_metrics->average_mm_activity = max(metrics->AverageVcn0ActivityPercentage,
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
61
int32_t *min, int32_t *max);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
692
*value = max(metrics->AverageVcn0ActivityPercentage,
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
747
uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
789
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
790
*max = SMU_DPM_TABLE_MAX(dpm_table);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c
963
int32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1004
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1005
*max = clock_limit / 100;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1019
if (max) {
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1024
max);
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1029
max);
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1047
uint32_t max,
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1062
if (max > 0) {
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1066
param = (uint32_t)((clk_id << 16) | (max & 0xffff));
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1091
uint32_t max)
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1096
if (min <= 0 && max <= 0)
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1108
if (max > 0) {
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1109
param = (uint32_t)((clk_id << 16) | (max & 0xffff));
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1158
sclk_min = sclk_max = gfx_table->max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1159
mclk_min = mclk_max = mem_table->max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1160
socclk_min = socclk_max = soc_table->max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1161
vclk_min = vclk_max = vclk_table->max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1162
dclk_min = dclk_max = dclk_table->max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1163
fclk_min = fclk_max = fclk_table->max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1175
sclk_max = gfx_table->max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1177
mclk_max = mem_table->max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1179
socclk_max = soc_table->max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1181
vclk_max = vclk_table->max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1183
dclk_max = dclk_table->max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1185
fclk_max = fclk_table->max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1228
pstate_table->gfxclk_pstate.curr.max = sclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1241
pstate_table->uclk_pstate.curr.max = mclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1254
pstate_table->socclk_pstate.curr.max = socclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1270
pstate_table->vclk_pstate.curr.max = vclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1286
pstate_table->dclk_pstate.curr.max = dclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1299
pstate_table->fclk_pstate.curr.max = fclk_max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
1445
single_dpm_table->max = clk;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
977
uint32_t *min, uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c
1008
uint32_t min, max;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c
1056
max = (smu->gfx_actual_soft_max_freq > 0) ? smu->gfx_actual_soft_max_freq : smu->gfx_default_soft_max_freq;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c
1057
if (cur_value == max)
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c
1069
size += sysfs_emit_at(buf, size, "2: %uMhz %s\n", max,
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c
1084
uint32_t max)
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c
1120
max, NULL);
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c
802
uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c
839
if (max)
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c
840
*max = clock_limit / 100;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c
845
if (max) {
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c
849
*max = clk_table->MaxGfxClk;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c
871
ret = smu_v15_0_common_get_dpm_freq_by_index(smu, clk_type, max_dpm_level, max);
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c
916
uint32_t *max)
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c
919
smu_v15_0_0_get_dpm_ultimate_freq(smu, clk_type, min, max);
drivers/gpu/drm/amd/pm/swsmu/smu_internal.h
77
#define smu_get_dpm_ultimate_freq(smu, param, min, max) smu_ppt_funcs(get_dpm_ultimate_freq, 0, smu, param, min, max)
drivers/gpu/drm/amd/pm/swsmu/smu_internal.h
85
#define smu_get_asic_power_limits(smu, current, default, max, min) smu_ppt_funcs(get_power_limit, 0, smu, current, default, max, min)
drivers/gpu/drm/arm/display/komeda/komeda_kms.c
209
max(slave_zpos, kcrtc_st->max_slave_zorder);
drivers/gpu/drm/arm/malidp_hw.c
832
numerator = max(se_config->input_w, se_config->output_w) *
drivers/gpu/drm/bridge/adv7511/adv7511_cec.c
315
0x70, max(1, attempts - 1) << 4);
drivers/gpu/drm/bridge/ite-it6505.c
3304
const unsigned int max)
drivers/gpu/drm/bridge/ite-it6505.c
3312
if (ret < min || ret > max)
drivers/gpu/drm/bridge/samsung-dsim.c
1179
hfp = max(hfp - 6, 0);
drivers/gpu/drm/bridge/samsung-dsim.c
1180
hbp = max(hbp - 6, 0);
drivers/gpu/drm/bridge/samsung-dsim.c
1181
hsa = max(hsa - 6, 0);
drivers/gpu/drm/bridge/tc358768.c
376
diff = max(pll, target_pll) - min(pll, target_pll);
drivers/gpu/drm/bridge/ti-tfp410.c
327
timings->hold_time_ps = max(0, 1300 + 350 * ((s32)deskew - 4));
drivers/gpu/drm/display/drm_dp_helper.c
2002
int max_retries = max(7, drm_dp_i2c_retry_count(msg, dp_aux_i2c_speed_khz));
drivers/gpu/drm/display/drm_dp_helper.c
4373
bl->max = (1 << pn) - 1;
drivers/gpu/drm/display/drm_dp_helper.c
4432
bl->max = (1 << pn) - 1;
drivers/gpu/drm/display/drm_dp_helper.c
4502
return bl->max;
drivers/gpu/drm/display/drm_dp_helper.c
4553
bl->max = max_luminance;
drivers/gpu/drm/display/drm_dp_helper.c
4571
aux->name, *current_level, bl->max, bl->pwm_freq_pre_divider,
drivers/gpu/drm/display/drm_dp_helper.c
4668
props.max_brightness = bl->info.max;
drivers/gpu/drm/display/drm_dp_tunnel.c
618
return max(tunnel->allocated_bw, 0);
drivers/gpu/drm/drm_atomic.c
1291
int alloc = max(index + 1, config->num_connector);
drivers/gpu/drm/drm_blend.c
377
unsigned int min, unsigned int max)
drivers/gpu/drm/drm_blend.c
381
prop = drm_property_create_range(plane->dev, 0, "zpos", min, max);
drivers/gpu/drm/drm_buddy.c
640
u64 adjusted_start = max(block_start, start);
drivers/gpu/drm/drm_buddy.c
947
lhs_size = max((size - filled), min_block_size);
drivers/gpu/drm/drm_cache.c
205
max_iomem = max(max_iomem, tmp->end);
drivers/gpu/drm/drm_connector.c
2832
int min, int max)
drivers/gpu/drm/drm_connector.c
2839
prop = drm_property_create_range(dev, 0, "max bpc", min, max);
drivers/gpu/drm/drm_connector.c
2846
drm_object_attach_property(&connector->base, prop, max);
drivers/gpu/drm/drm_connector.c
2847
connector->state->max_requested_bpc = max;
drivers/gpu/drm/drm_connector.c
2848
connector->state->max_bpc = max;
drivers/gpu/drm/drm_damage_helper.c
329
rect->x2 = max(rect->x2, clip.x2);
drivers/gpu/drm/drm_damage_helper.c
330
rect->y2 = max(rect->y2, clip.y2);
drivers/gpu/drm/drm_edid.c
5408
u32 max_avg, min_cll, max, min, q, r;
drivers/gpu/drm/drm_edid.c
5434
max = (1 << q) * pre_computed_values[r];
drivers/gpu/drm/drm_edid.c
5438
min = max * DIV_ROUND_CLOSEST((q * q), 100);
drivers/gpu/drm/drm_edid.c
5441
luminance_range->max_luminance = max;
drivers/gpu/drm/drm_edid.c
5886
return max(v - a, 0);
drivers/gpu/drm/drm_fb_helper.c
560
max_off = max(max_off, end);
drivers/gpu/drm/drm_ioctl.c
415
dev->if_version = max(if_version, dev->if_version);
drivers/gpu/drm/drm_ioctl.c
867
ksize = max(max(in_size, out_size), drv_size);
drivers/gpu/drm/drm_mm.c
560
adj_start = max(col_start, range_start);
drivers/gpu/drm/drm_mm.c
581
if (adj_start < max(col_start, range_start) ||
drivers/gpu/drm/drm_mm.c
778
adj_start = max(col_start, scan->range_start);
drivers/gpu/drm/drm_mm.c
797
if (adj_start < max(col_start, scan->range_start) ||
drivers/gpu/drm/drm_modes.c
1406
p->crtc_vblank_end = max(p->crtc_vsync_end, p->crtc_vtotal);
drivers/gpu/drm/drm_modes.c
1408
p->crtc_hblank_end = max(p->crtc_hsync_end, p->crtc_htotal);
drivers/gpu/drm/drm_modes.c
190
unsigned int min, typ, max;
drivers/gpu/drm/drm_modes.c
194
{ .min = _min, .typ = _typ, .max = _max }
drivers/gpu/drm/drm_modes.c
2476
extra_ptr = max(bpp_end_ptr, refresh_end_ptr);
drivers/gpu/drm/drm_modes.c
355
max_hact = params->hact_ns.max / pixel_duration_ns;
drivers/gpu/drm/drm_modes.c
375
hact_duration_ns > params->hact_ns.max)) {
drivers/gpu/drm/drm_modes.c
377
hact_duration_ns, params->hact_ns.min, params->hact_ns.max);
drivers/gpu/drm/drm_modes.c
387
hblk_duration_ns > params->hblk_ns.max)) {
drivers/gpu/drm/drm_modes.c
389
hblk_duration_ns, params->hblk_ns.min, params->hblk_ns.max);
drivers/gpu/drm/drm_modes.c
399
hslen_duration_ns > params->hslen_ns.max)) {
drivers/gpu/drm/drm_modes.c
401
hslen_duration_ns, params->hslen_ns.min, params->hslen_ns.max);
drivers/gpu/drm/drm_modes.c
410
(porches_duration_ns > (params->hfp_ns.max + params->hbp_ns.max) ||
drivers/gpu/drm/drm_modes.c
434
hfp_duration_ns > params->hfp_ns.max)) {
drivers/gpu/drm/drm_modes.c
436
hfp_duration_ns, params->hfp_ns.min, params->hfp_ns.max);
drivers/gpu/drm/drm_modes.c
446
hbp_duration_ns > params->hbp_ns.max)) {
drivers/gpu/drm/drm_modes.c
448
hbp_duration_ns, params->hbp_ns.min, params->hbp_ns.max);
drivers/gpu/drm/drm_of.c
514
const unsigned int min, const unsigned int max)
drivers/gpu/drm/drm_of.c
522
if (ret < min || ret > max)
drivers/gpu/drm/drm_of.c
548
const unsigned int max)
drivers/gpu/drm/drm_of.c
554
ret = drm_of_get_data_lanes_count(endpoint, min, max);
drivers/gpu/drm/drm_panic.c
411
unsigned int max = 0;
drivers/gpu/drm/drm_panic.c
414
max = max(lines[i].len, max);
drivers/gpu/drm/drm_panic.c
415
return max;
drivers/gpu/drm/drm_print.c
385
namelen = max(namelen, (int)strlen(regset->regs[i].name));
drivers/gpu/drm/drm_property.c
244
uint64_t min, uint64_t max)
drivers/gpu/drm/drm_property.c
253
property->values[1] = max;
drivers/gpu/drm/drm_property.c
279
uint64_t min, uint64_t max)
drivers/gpu/drm/drm_property.c
282
name, min, max);
drivers/gpu/drm/drm_property.c
307
int64_t min, int64_t max)
drivers/gpu/drm/drm_property.c
310
name, I642U64(min), I642U64(max));
drivers/gpu/drm/drm_rect.c
46
r1->x1 = max(r1->x1, r2->x1);
drivers/gpu/drm/drm_rect.c
47
r1->y1 = max(r1->y1, r2->y1);
drivers/gpu/drm/exynos/exynos_drm_ipp.c
447
__limit_set_val(&res->h.max, l->h.max);
drivers/gpu/drm/exynos/exynos_drm_ipp.c
450
__limit_set_val(&res->v.max, l->v.max);
drivers/gpu/drm/exynos/exynos_drm_ipp.c
468
if ((l->min && val < l->min) || (l->max && val > l->max)) {
drivers/gpu/drm/exynos/exynos_drm_ipp.c
470
val, l->min, l->max);
drivers/gpu/drm/exynos/exynos_drm_ipp.c
508
unsigned int min, unsigned int max)
drivers/gpu/drm/exynos/exynos_drm_ipp.c
510
if ((max && (dst << 16) > src * max) ||
drivers/gpu/drm/exynos/exynos_drm_ipp.c
515
max >> 16, 100000 * (max & 0xffff) / (1 << 16));
drivers/gpu/drm/exynos/exynos_drm_ipp.c
542
if (!__scale_limit_check(src->w, dw, lh->min, lh->max) ||
drivers/gpu/drm/exynos/exynos_drm_ipp.c
543
!__scale_limit_check(src->h, dh, lv->min, lv->max))
drivers/gpu/drm/exynos/regs-rotator.h
67
#define ROT_MAX(max, mask) ((max) & (mask))
drivers/gpu/drm/gma500/cdv_device.c
116
u32 max = cdv_get_max_backlight(dev);
drivers/gpu/drm/gma500/cdv_device.c
119
lbpc = level * 0xfe / max + 1;
drivers/gpu/drm/gma500/cdv_device.c
77
u32 max = REG_READ(BLC_PWM_CTL);
drivers/gpu/drm/gma500/cdv_device.c
79
if (max == 0) {
drivers/gpu/drm/gma500/cdv_device.c
86
max >>= 16;
drivers/gpu/drm/gma500/cdv_device.c
88
max *= 0xff;
drivers/gpu/drm/gma500/cdv_device.c
89
return max;
drivers/gpu/drm/gma500/cdv_intel_display.c
101
.dot = {.min = 160000, .max = 272000},
drivers/gpu/drm/gma500/cdv_intel_display.c
102
.vco = {.min = 1800000, .max = 3600000},
drivers/gpu/drm/gma500/cdv_intel_display.c
103
.n = {.min = 2, .max = 6},
drivers/gpu/drm/gma500/cdv_intel_display.c
104
.m = {.min = 60, .max = 164},
drivers/gpu/drm/gma500/cdv_intel_display.c
105
.m1 = {.min = 0, .max = 0},
drivers/gpu/drm/gma500/cdv_intel_display.c
106
.m2 = {.min = 58, .max = 162},
drivers/gpu/drm/gma500/cdv_intel_display.c
107
.p = {.min = 5, .max = 100},
drivers/gpu/drm/gma500/cdv_intel_display.c
108
.p1 = {.min = 1, .max = 10},
drivers/gpu/drm/gma500/cdv_intel_display.c
38
.dot = {.min = 20000, .max = 115500},
drivers/gpu/drm/gma500/cdv_intel_display.c
39
.vco = {.min = 1800000, .max = 3600000},
drivers/gpu/drm/gma500/cdv_intel_display.c
40
.n = {.min = 2, .max = 6},
drivers/gpu/drm/gma500/cdv_intel_display.c
41
.m = {.min = 60, .max = 160},
drivers/gpu/drm/gma500/cdv_intel_display.c
42
.m1 = {.min = 0, .max = 0},
drivers/gpu/drm/gma500/cdv_intel_display.c
43
.m2 = {.min = 58, .max = 158},
drivers/gpu/drm/gma500/cdv_intel_display.c
44
.p = {.min = 28, .max = 140},
drivers/gpu/drm/gma500/cdv_intel_display.c
45
.p1 = {.min = 2, .max = 10},
drivers/gpu/drm/gma500/cdv_intel_display.c
50
.dot = {.min = 20000, .max = 115500},
drivers/gpu/drm/gma500/cdv_intel_display.c
51
.vco = {.min = 1800000, .max = 3600000},
drivers/gpu/drm/gma500/cdv_intel_display.c
52
.n = {.min = 2, .max = 6},
drivers/gpu/drm/gma500/cdv_intel_display.c
53
.m = {.min = 60, .max = 160},
drivers/gpu/drm/gma500/cdv_intel_display.c
54
.m1 = {.min = 0, .max = 0},
drivers/gpu/drm/gma500/cdv_intel_display.c
55
.m2 = {.min = 58, .max = 158},
drivers/gpu/drm/gma500/cdv_intel_display.c
56
.p = {.min = 28, .max = 140},
drivers/gpu/drm/gma500/cdv_intel_display.c
57
.p1 = {.min = 2, .max = 10},
drivers/gpu/drm/gma500/cdv_intel_display.c
65
.dot = {.min = 20000, .max = 400000},
drivers/gpu/drm/gma500/cdv_intel_display.c
66
.vco = {.min = 1809000, .max = 3564000},
drivers/gpu/drm/gma500/cdv_intel_display.c
67
.n = {.min = 1, .max = 1},
drivers/gpu/drm/gma500/cdv_intel_display.c
68
.m = {.min = 67, .max = 132},
drivers/gpu/drm/gma500/cdv_intel_display.c
69
.m1 = {.min = 0, .max = 0},
drivers/gpu/drm/gma500/cdv_intel_display.c
70
.m2 = {.min = 65, .max = 130},
drivers/gpu/drm/gma500/cdv_intel_display.c
71
.p = {.min = 5, .max = 90},
drivers/gpu/drm/gma500/cdv_intel_display.c
72
.p1 = {.min = 1, .max = 9},
drivers/gpu/drm/gma500/cdv_intel_display.c
77
.dot = {.min = 20000, .max = 400000},
drivers/gpu/drm/gma500/cdv_intel_display.c
78
.vco = {.min = 1800000, .max = 3600000},
drivers/gpu/drm/gma500/cdv_intel_display.c
79
.n = {.min = 2, .max = 6},
drivers/gpu/drm/gma500/cdv_intel_display.c
80
.m = {.min = 60, .max = 160},
drivers/gpu/drm/gma500/cdv_intel_display.c
81
.m1 = {.min = 0, .max = 0},
drivers/gpu/drm/gma500/cdv_intel_display.c
82
.m2 = {.min = 58, .max = 158},
drivers/gpu/drm/gma500/cdv_intel_display.c
83
.p = {.min = 5, .max = 100},
drivers/gpu/drm/gma500/cdv_intel_display.c
84
.p1 = {.min = 1, .max = 10},
drivers/gpu/drm/gma500/cdv_intel_display.c
89
.dot = {.min = 160000, .max = 272000},
drivers/gpu/drm/gma500/cdv_intel_display.c
90
.vco = {.min = 1809000, .max = 3564000},
drivers/gpu/drm/gma500/cdv_intel_display.c
91
.n = {.min = 1, .max = 1},
drivers/gpu/drm/gma500/cdv_intel_display.c
92
.m = {.min = 67, .max = 132},
drivers/gpu/drm/gma500/cdv_intel_display.c
93
.m1 = {.min = 0, .max = 0},
drivers/gpu/drm/gma500/cdv_intel_display.c
94
.m2 = {.min = 65, .max = 130},
drivers/gpu/drm/gma500/cdv_intel_display.c
95
.p = {.min = 5, .max = 90},
drivers/gpu/drm/gma500/cdv_intel_display.c
96
.p1 = {.min = 1, .max = 9},
drivers/gpu/drm/gma500/gma_display.c
723
if (clock->p1 < limit->p1.min || limit->p1.max < clock->p1)
drivers/gpu/drm/gma500/gma_display.c
725
if (clock->p < limit->p.min || limit->p.max < clock->p)
drivers/gpu/drm/gma500/gma_display.c
727
if (clock->m2 < limit->m2.min || limit->m2.max < clock->m2)
drivers/gpu/drm/gma500/gma_display.c
729
if (clock->m1 < limit->m1.min || limit->m1.max < clock->m1)
drivers/gpu/drm/gma500/gma_display.c
734
if (clock->m < limit->m.min || limit->m.max < clock->m)
drivers/gpu/drm/gma500/gma_display.c
736
if (clock->n < limit->n.min || limit->n.max < clock->n)
drivers/gpu/drm/gma500/gma_display.c
738
if (clock->vco < limit->vco.min || limit->vco.max < clock->vco)
drivers/gpu/drm/gma500/gma_display.c
744
if (clock->dot < limit->dot.min || limit->dot.max < clock->dot)
drivers/gpu/drm/gma500/gma_display.c
783
for (clock.m1 = limit->m1.min; clock.m1 <= limit->m1.max; clock.m1++) {
drivers/gpu/drm/gma500/gma_display.c
786
clock.m2 <= limit->m2.max; clock.m2++) {
drivers/gpu/drm/gma500/gma_display.c
788
clock.n <= limit->n.max; clock.n++) {
drivers/gpu/drm/gma500/gma_display.c
790
clock.p1 <= limit->p1.max;
drivers/gpu/drm/gma500/gma_display.h
32
int min, max;
drivers/gpu/drm/gma500/oaktrail_crtc.c
138
for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) {
drivers/gpu/drm/gma500/oaktrail_crtc.c
139
for (clock.n = limit->n.min; clock.n <= limit->n.max;
drivers/gpu/drm/gma500/oaktrail_crtc.c
142
clock.p1 <= limit->p1.max; clock.p1++) {
drivers/gpu/drm/gma500/oaktrail_crtc.c
148
if (target_vco > limit->vco.max)
drivers/gpu/drm/gma500/oaktrail_crtc.c
195
for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) {
drivers/gpu/drm/gma500/oaktrail_crtc.c
196
for (clock.p1 = limit->p1.min; clock.p1 <= limit->p1.max;
drivers/gpu/drm/gma500/oaktrail_crtc.c
50
.dot = {.min = MRST_DOT_MIN, .max = MRST_DOT_MAX},
drivers/gpu/drm/gma500/oaktrail_crtc.c
51
.m = {.min = MRST_M_MIN_100L, .max = MRST_M_MAX_100L},
drivers/gpu/drm/gma500/oaktrail_crtc.c
52
.p1 = {.min = MRST_P1_MIN, .max = MRST_P1_MAX_1},
drivers/gpu/drm/gma500/oaktrail_crtc.c
56
.dot = {.min = MRST_DOT_MIN, .max = MRST_DOT_MAX},
drivers/gpu/drm/gma500/oaktrail_crtc.c
57
.m = {.min = MRST_M_MIN_83, .max = MRST_M_MAX_83},
drivers/gpu/drm/gma500/oaktrail_crtc.c
58
.p1 = {.min = MRST_P1_MIN, .max = MRST_P1_MAX_0},
drivers/gpu/drm/gma500/oaktrail_crtc.c
62
.dot = {.min = MRST_DOT_MIN, .max = MRST_DOT_MAX},
drivers/gpu/drm/gma500/oaktrail_crtc.c
63
.m = {.min = MRST_M_MIN_100, .max = MRST_M_MAX_100},
drivers/gpu/drm/gma500/oaktrail_crtc.c
64
.p1 = {.min = MRST_P1_MIN, .max = MRST_P1_MAX_1},
drivers/gpu/drm/gma500/oaktrail_crtc.c
68
.vco = {.min = 1400000, .max = 2800000},
drivers/gpu/drm/gma500/oaktrail_crtc.c
69
.n = {.min = 3, .max = 7},
drivers/gpu/drm/gma500/oaktrail_crtc.c
70
.m = {.min = 80, .max = 137},
drivers/gpu/drm/gma500/oaktrail_crtc.c
71
.p1 = {.min = 1, .max = 2},
drivers/gpu/drm/gma500/oaktrail_hdmi.c
105
int min, max;
drivers/gpu/drm/gma500/oaktrail_hdmi.c
129
.vco = { .min = VCO_MIN, .max = VCO_MAX },
drivers/gpu/drm/gma500/oaktrail_hdmi.c
130
.np = { .min = NP_MIN, .max = NP_MAX },
drivers/gpu/drm/gma500/oaktrail_hdmi.c
131
.nr = { .min = NR_MIN, .max = NR_MAX },
drivers/gpu/drm/gma500/oaktrail_hdmi.c
132
.nf = { .min = NF_MIN, .max = NF_MAX },
drivers/gpu/drm/gma500/oaktrail_hdmi.c
186
np_max = oaktrail_hdmi_limit.vco.max / (target * 10);
drivers/gpu/drm/gma500/oaktrail_hdmi.c
189
if (np_max > oaktrail_hdmi_limit.np.max)
drivers/gpu/drm/gma500/oaktrail_hdmi.c
190
np_max = oaktrail_hdmi_limit.np.max;
drivers/gpu/drm/gma500/oaktrail_hdmi.c
196
if (nr_max > oaktrail_hdmi_limit.nr.max)
drivers/gpu/drm/gma500/oaktrail_hdmi.c
197
nr_max = oaktrail_hdmi_limit.nr.max;
drivers/gpu/drm/gma500/psb_intel_display.c
29
.dot = {.min = 20000, .max = 400000},
drivers/gpu/drm/gma500/psb_intel_display.c
30
.vco = {.min = 1400000, .max = 2800000},
drivers/gpu/drm/gma500/psb_intel_display.c
31
.n = {.min = 1, .max = 6},
drivers/gpu/drm/gma500/psb_intel_display.c
32
.m = {.min = 70, .max = 120},
drivers/gpu/drm/gma500/psb_intel_display.c
33
.m1 = {.min = 8, .max = 18},
drivers/gpu/drm/gma500/psb_intel_display.c
34
.m2 = {.min = 3, .max = 7},
drivers/gpu/drm/gma500/psb_intel_display.c
35
.p = {.min = 5, .max = 80},
drivers/gpu/drm/gma500/psb_intel_display.c
36
.p1 = {.min = 1, .max = 8},
drivers/gpu/drm/gma500/psb_intel_display.c
41
.dot = {.min = 20000, .max = 400000},
drivers/gpu/drm/gma500/psb_intel_display.c
42
.vco = {.min = 1400000, .max = 2800000},
drivers/gpu/drm/gma500/psb_intel_display.c
43
.n = {.min = 1, .max = 6},
drivers/gpu/drm/gma500/psb_intel_display.c
44
.m = {.min = 70, .max = 120},
drivers/gpu/drm/gma500/psb_intel_display.c
45
.m1 = {.min = 8, .max = 18},
drivers/gpu/drm/gma500/psb_intel_display.c
46
.m2 = {.min = 3, .max = 7},
drivers/gpu/drm/gma500/psb_intel_display.c
47
.p = {.min = 7, .max = 98},
drivers/gpu/drm/gma500/psb_intel_display.c
48
.p1 = {.min = 1, .max = 8},
drivers/gpu/drm/gma500/psb_intel_sdvo.c
680
*clock_max = clocks.max * 10;
drivers/gpu/drm/gma500/psb_intel_sdvo_regs.h
96
u16 max; /**< pixel clock, in 10kHz units */
drivers/gpu/drm/gud/gud_drv.c
565
max_buffer_size = max(max_buffer_size, fmt_buf_size);
drivers/gpu/drm/gud/gud_pipe.c
422
gdrm->damage.x2 = max(gdrm->damage.x2, damage->x2);
drivers/gpu/drm/gud/gud_pipe.c
423
gdrm->damage.y2 = max(gdrm->damage.y2, damage->y2);
drivers/gpu/drm/i915/display/i9xx_wm.c
1047
level = max(level, G4X_WM_LEVEL_SR);
drivers/gpu/drm/i915/display/i9xx_wm.c
1318
max(optimal->wm.plane[plane_id],
drivers/gpu/drm/i915/display/i9xx_wm.c
1325
intermediate->sr.plane = max(optimal->sr.plane,
drivers/gpu/drm/i915/display/i9xx_wm.c
1327
intermediate->sr.cursor = max(optimal->sr.cursor,
drivers/gpu/drm/i915/display/i9xx_wm.c
1329
intermediate->sr.fbc = max(optimal->sr.fbc,
drivers/gpu/drm/i915/display/i9xx_wm.c
1332
intermediate->hpll.plane = max(optimal->hpll.plane,
drivers/gpu/drm/i915/display/i9xx_wm.c
1334
intermediate->hpll.cursor = max(optimal->hpll.cursor,
drivers/gpu/drm/i915/display/i9xx_wm.c
1336
intermediate->hpll.fbc = max(optimal->hpll.fbc,
drivers/gpu/drm/i915/display/i9xx_wm.c
2645
struct ilk_wm_maximums *max)
drivers/gpu/drm/i915/display/i9xx_wm.c
2647
max->pri = ilk_plane_wm_max(display, level, config, ddb_partitioning, false);
drivers/gpu/drm/i915/display/i9xx_wm.c
2648
max->spr = ilk_plane_wm_max(display, level, config, ddb_partitioning, true);
drivers/gpu/drm/i915/display/i9xx_wm.c
2649
max->cur = ilk_cursor_wm_max(display, level, config);
drivers/gpu/drm/i915/display/i9xx_wm.c
2650
max->fbc = ilk_fbc_wm_reg_max(display);
drivers/gpu/drm/i915/display/i9xx_wm.c
2655
struct ilk_wm_maximums *max)
drivers/gpu/drm/i915/display/i9xx_wm.c
2657
max->pri = ilk_plane_wm_reg_max(display, level, false);
drivers/gpu/drm/i915/display/i9xx_wm.c
2658
max->spr = ilk_plane_wm_reg_max(display, level, true);
drivers/gpu/drm/i915/display/i9xx_wm.c
2659
max->cur = ilk_cursor_wm_reg_max(display, level);
drivers/gpu/drm/i915/display/i9xx_wm.c
2660
max->fbc = ilk_fbc_wm_reg_max(display);
drivers/gpu/drm/i915/display/i9xx_wm.c
2665
const struct ilk_wm_maximums *max,
drivers/gpu/drm/i915/display/i9xx_wm.c
2674
result->enable = result->pri_val <= max->pri &&
drivers/gpu/drm/i915/display/i9xx_wm.c
2675
result->spr_val <= max->spr &&
drivers/gpu/drm/i915/display/i9xx_wm.c
2676
result->cur_val <= max->cur;
drivers/gpu/drm/i915/display/i9xx_wm.c
2686
if (result->pri_val > max->pri)
drivers/gpu/drm/i915/display/i9xx_wm.c
2689
level, result->pri_val, max->pri);
drivers/gpu/drm/i915/display/i9xx_wm.c
2690
if (result->spr_val > max->spr)
drivers/gpu/drm/i915/display/i9xx_wm.c
2693
level, result->spr_val, max->spr);
drivers/gpu/drm/i915/display/i9xx_wm.c
2694
if (result->cur_val > max->cur)
drivers/gpu/drm/i915/display/i9xx_wm.c
2697
level, result->cur_val, max->cur);
drivers/gpu/drm/i915/display/i9xx_wm.c
2699
result->pri_val = min_t(u32, result->pri_val, max->pri);
drivers/gpu/drm/i915/display/i9xx_wm.c
2700
result->spr_val = min_t(u32, result->spr_val, max->spr);
drivers/gpu/drm/i915/display/i9xx_wm.c
2701
result->cur_val = min_t(u32, result->cur_val, max->cur);
drivers/gpu/drm/i915/display/i9xx_wm.c
2812
wm[0] = max(wm[0], min);
drivers/gpu/drm/i915/display/i9xx_wm.c
2906
struct ilk_wm_maximums max;
drivers/gpu/drm/i915/display/i9xx_wm.c
2909
ilk_compute_wm_maximums(display, 0, &config, INTEL_DDB_PART_1_2, &max);
drivers/gpu/drm/i915/display/i9xx_wm.c
2912
if (!ilk_validate_wm_level(display, 0, &max, &pipe_wm->wm[0])) {
drivers/gpu/drm/i915/display/i9xx_wm.c
2933
struct ilk_wm_maximums max;
drivers/gpu/drm/i915/display/i9xx_wm.c
2968
ilk_compute_wm_reg_maximums(display, 1, &max);
drivers/gpu/drm/i915/display/i9xx_wm.c
2981
if (!ilk_validate_wm_level(display, level, &max, wm)) {
drivers/gpu/drm/i915/display/i9xx_wm.c
3028
intermediate_wm->pri_val = max(intermediate_wm->pri_val,
drivers/gpu/drm/i915/display/i9xx_wm.c
3030
intermediate_wm->spr_val = max(intermediate_wm->spr_val,
drivers/gpu/drm/i915/display/i9xx_wm.c
3032
intermediate_wm->cur_val = max(intermediate_wm->cur_val,
drivers/gpu/drm/i915/display/i9xx_wm.c
3034
intermediate_wm->fbc_val = max(intermediate_wm->fbc_val,
drivers/gpu/drm/i915/display/i9xx_wm.c
3099
ret_wm->pri_val = max(ret_wm->pri_val, wm->pri_val);
drivers/gpu/drm/i915/display/i9xx_wm.c
3100
ret_wm->spr_val = max(ret_wm->spr_val, wm->spr_val);
drivers/gpu/drm/i915/display/i9xx_wm.c
3101
ret_wm->cur_val = max(ret_wm->cur_val, wm->cur_val);
drivers/gpu/drm/i915/display/i9xx_wm.c
3102
ret_wm->fbc_val = max(ret_wm->fbc_val, wm->fbc_val);
drivers/gpu/drm/i915/display/i9xx_wm.c
3111
const struct ilk_wm_maximums *max,
drivers/gpu/drm/i915/display/i9xx_wm.c
3133
else if (!ilk_validate_wm_level(display, level, max, wm))
drivers/gpu/drm/i915/display/i9xx_wm.c
3141
if (wm->fbc_val > max->fbc) {
drivers/gpu/drm/i915/display/i9xx_wm.c
3437
struct ilk_wm_maximums max;
drivers/gpu/drm/i915/display/i9xx_wm.c
3444
ilk_compute_wm_maximums(display, 1, &config, INTEL_DDB_PART_1_2, &max);
drivers/gpu/drm/i915/display/i9xx_wm.c
3445
ilk_wm_merge(display, &config, &max, &lp_wm_1_2);
drivers/gpu/drm/i915/display/i9xx_wm.c
3450
ilk_compute_wm_maximums(display, 1, &config, INTEL_DDB_PART_5_6, &max);
drivers/gpu/drm/i915/display/i9xx_wm.c
3451
ilk_wm_merge(display, &config, &max, &lp_wm_5_6);
drivers/gpu/drm/i915/display/i9xx_wm.c
803
return max(0, tlb_miss);
drivers/gpu/drm/i915/display/i9xx_wm.c
996
cpp = max(cpp, 4u);
drivers/gpu/drm/i915/display/icl_dsi.c
373
act_word_clk = max(3, theo_word_clk + (theo_word_clk + 1) % 2);
drivers/gpu/drm/i915/display/intel_alpm.c
211
io_wake_time = max(precharge, io_buffer_wake_time(crtc_state)) +
drivers/gpu/drm/i915/display/intel_alpm.c
239
crtc_state->alpm_state.io_wake_lines = max(io_wake_lines, 7);
drivers/gpu/drm/i915/display/intel_alpm.c
240
crtc_state->alpm_state.fast_wake_lines = max(fast_wake_lines, 7);
drivers/gpu/drm/i915/display/intel_alpm.c
56
int *min, int *max)
drivers/gpu/drm/i915/display/intel_alpm.c
60
*max = 75 * LFPS_CYCLE_COUNT;
drivers/gpu/drm/i915/display/intel_alpm.c
63
*max = 800;
drivers/gpu/drm/i915/display/intel_audio.c
1014
min_cdclk = max(min_cdclk, 316800);
drivers/gpu/drm/i915/display/intel_audio.c
1017
min_cdclk = max(min_cdclk, 432000);
drivers/gpu/drm/i915/display/intel_audio.c
1026
min_cdclk = max(min_cdclk, 2 * 96000);
drivers/gpu/drm/i915/display/intel_audio.c
1037
min_cdclk = max(min_cdclk, crtc_state->port_clock);
drivers/gpu/drm/i915/display/intel_backlight.c
125
panel->backlight.max == 0 || panel->backlight.pwm_level_max == 0);
drivers/gpu/drm/i915/display/intel_backlight.c
127
val = scale(val, panel->backlight.min, panel->backlight.max,
drivers/gpu/drm/i915/display/intel_backlight.c
139
panel->backlight.max == 0 || panel->backlight.pwm_level_max == 0);
drivers/gpu/drm/i915/display/intel_backlight.c
147
panel->backlight.min, panel->backlight.max);
drivers/gpu/drm/i915/display/intel_backlight.c
1644
panel->backlight.max = panel->backlight.pwm_level_max;
drivers/gpu/drm/i915/display/intel_backlight.c
1711
panel->backlight.level, panel->backlight.max);
drivers/gpu/drm/i915/display/intel_backlight.c
325
drm_WARN_ON(display->drm, panel->backlight.max == 0);
drivers/gpu/drm/i915/display/intel_backlight.c
74
hw_level = scale(user_level, 0, user_max, 0, panel->backlight.max);
drivers/gpu/drm/i915/display/intel_backlight.c
75
hw_level = clamp(hw_level, panel->backlight.min, panel->backlight.max);
drivers/gpu/drm/i915/display/intel_backlight.c
780
WARN_ON(panel->backlight.max == 0);
drivers/gpu/drm/i915/display/intel_backlight.c
842
panel->backlight.min, panel->backlight.max);
drivers/gpu/drm/i915/display/intel_backlight.c
859
drm_WARN_ON(display->drm, panel->backlight.max == 0);
drivers/gpu/drm/i915/display/intel_backlight.c
86
return scale(hw_level, panel->backlight.min, panel->backlight.max,
drivers/gpu/drm/i915/display/intel_backlight.c
945
WARN_ON(panel->backlight.max == 0);
drivers/gpu/drm/i915/display/intel_backlight.c
960
props.max_brightness = panel->backlight.max;
drivers/gpu/drm/i915/display/intel_backlight.h
32
u32 level, u32 max);
drivers/gpu/drm/i915/display/intel_bios.c
217
size = max(size, ptrs->panel_name.offset +
drivers/gpu/drm/i915/display/intel_bios.c
489
entry = kzalloc_flex(*entry, data, max(min_size, block_size) + 3);
drivers/gpu/drm/i915/display/intel_bw.c
1051
unsigned int num_qgv_points = display->bw.max[0].num_qgv_points;
drivers/gpu/drm/i915/display/intel_bw.c
1080
if (bw_index >= ARRAY_SIZE(display->bw.max))
drivers/gpu/drm/i915/display/intel_bw.c
1083
max_data_rate = display->bw.max[bw_index].deratedbw[i];
drivers/gpu/drm/i915/display/intel_bw.c
1090
qgv_peak_bw = display->bw.max[bw_index].peakbw[i];
drivers/gpu/drm/i915/display/intel_bw.c
1122
unsigned int num_psf_gv_points = display->bw.max[0].num_psf_gv_points;
drivers/gpu/drm/i915/display/intel_bw.c
1123
unsigned int num_qgv_points = display->bw.max[0].num_qgv_points;
drivers/gpu/drm/i915/display/intel_bw.c
159
unsigned int num_psf_gv_points = display->bw.max[0].num_psf_gv_points;
drivers/gpu/drm/i915/display/intel_bw.c
160
unsigned int num_qgv_points = display->bw.max[0].num_qgv_points;
drivers/gpu/drm/i915/display/intel_bw.c
375
dclk = max(dclk, qi->points[i].dclk);
drivers/gpu/drm/i915/display/intel_bw.c
463
int num_groups = ARRAY_SIZE(display->bw.max);
drivers/gpu/drm/i915/display/intel_bw.c
479
struct intel_bw_info *bi = &display->bw.max[i];
drivers/gpu/drm/i915/display/intel_bw.c
535
int num_groups = ARRAY_SIZE(display->bw.max);
drivers/gpu/drm/i915/display/intel_bw.c
552
qi.deinterleave = max(DIV_ROUND_UP(qi.deinterleave, 2), 1);
drivers/gpu/drm/i915/display/intel_bw.c
572
struct intel_bw_info *bi = &display->bw.max[i];
drivers/gpu/drm/i915/display/intel_bw.c
580
bi_next = &display->bw.max[i + 1];
drivers/gpu/drm/i915/display/intel_bw.c
645
int num_groups = ARRAY_SIZE(display->bw.max);
drivers/gpu/drm/i915/display/intel_bw.c
656
struct intel_bw_info *bi = &display->bw.max[i];
drivers/gpu/drm/i915/display/intel_bw.c
690
display->bw.max[0].deratedbw[i] =
drivers/gpu/drm/i915/display/intel_bw.c
692
display->bw.max[0].peakbw[i] = bw;
drivers/gpu/drm/i915/display/intel_bw.c
695
i, display->bw.max[0].deratedbw[i],
drivers/gpu/drm/i915/display/intel_bw.c
696
display->bw.max[0].peakbw[i]);
drivers/gpu/drm/i915/display/intel_bw.c
700
display->bw.max[0].num_planes = 1;
drivers/gpu/drm/i915/display/intel_bw.c
701
display->bw.max[0].num_qgv_points = qi.num_points;
drivers/gpu/drm/i915/display/intel_bw.c
702
for (i = 1; i < ARRAY_SIZE(display->bw.max); i++)
drivers/gpu/drm/i915/display/intel_bw.c
703
memcpy(&display->bw.max[i], &display->bw.max[0],
drivers/gpu/drm/i915/display/intel_bw.c
704
sizeof(display->bw.max[0]));
drivers/gpu/drm/i915/display/intel_bw.c
724
num_planes = max(1, num_planes);
drivers/gpu/drm/i915/display/intel_bw.c
726
for (i = 0; i < ARRAY_SIZE(display->bw.max); i++) {
drivers/gpu/drm/i915/display/intel_bw.c
728
&display->bw.max[i];
drivers/gpu/drm/i915/display/intel_bw.c
752
num_planes = max(1, num_planes);
drivers/gpu/drm/i915/display/intel_bw.c
754
for (i = ARRAY_SIZE(display->bw.max) - 1; i >= 0; i--) {
drivers/gpu/drm/i915/display/intel_bw.c
756
&display->bw.max[i];
drivers/gpu/drm/i915/display/intel_bw.c
776
&display->bw.max[0];
drivers/gpu/drm/i915/display/intel_bw.c
791
if (idx >= ARRAY_SIZE(display->bw.max))
drivers/gpu/drm/i915/display/intel_bw.c
794
return display->bw.max[idx].deratedbw[qgv_point];
drivers/gpu/drm/i915/display/intel_bw.c
910
unsigned int num_qgv_points = display->bw.max[0].num_qgv_points;
drivers/gpu/drm/i915/display/intel_bw.c
946
unsigned int num_psf_gv_points = display->bw.max[0].num_psf_gv_points;
drivers/gpu/drm/i915/display/intel_cdclk.c
2708
cdclk = max(new_cdclk_state->actual.cdclk, old_cdclk_state->actual.cdclk);
drivers/gpu/drm/i915/display/intel_cdclk.c
2811
cdclk_config.voltage_level = max(new_cdclk_state->actual.voltage_level,
drivers/gpu/drm/i915/display/intel_cdclk.c
2906
min_cdclk = max(min_cdclk, crtc_state->plane_min_cdclk[plane->id]);
drivers/gpu/drm/i915/display/intel_cdclk.c
2919
min_cdclk = max(min_cdclk, intel_crtc_bw_min_cdclk(crtc_state));
drivers/gpu/drm/i915/display/intel_cdclk.c
2920
min_cdclk = max(min_cdclk, intel_fbc_min_cdclk(crtc_state));
drivers/gpu/drm/i915/display/intel_cdclk.c
2921
min_cdclk = max(min_cdclk, hsw_ips_min_cdclk(crtc_state));
drivers/gpu/drm/i915/display/intel_cdclk.c
2922
min_cdclk = max(min_cdclk, intel_audio_min_cdclk(crtc_state));
drivers/gpu/drm/i915/display/intel_cdclk.c
2923
min_cdclk = max(min_cdclk, vlv_dsi_min_cdclk(crtc_state));
drivers/gpu/drm/i915/display/intel_cdclk.c
2924
min_cdclk = max(min_cdclk, intel_planes_min_cdclk(crtc_state));
drivers/gpu/drm/i915/display/intel_cdclk.c
2925
min_cdclk = max(min_cdclk, intel_vdsc_min_cdclk(crtc_state));
drivers/gpu/drm/i915/display/intel_cdclk.c
3080
min_cdclk = max(min_cdclk, cdclk_state->dbuf_bw_min_cdclk);
drivers/gpu/drm/i915/display/intel_cdclk.c
3082
min_cdclk = max(min_cdclk, cdclk_state->min_cdclk[pipe]);
drivers/gpu/drm/i915/display/intel_cdclk.c
3093
min_cdclk = max(min_cdclk, 2 * 96000);
drivers/gpu/drm/i915/display/intel_cdclk.c
3149
min_voltage_level = max(min_voltage_level,
drivers/gpu/drm/i915/display/intel_color.c
1216
unsigned int max = 235 << 8;
drivers/gpu/drm/i915/display/intel_color.c
1218
return value * (max - min) / 0xffff + min;
drivers/gpu/drm/i915/display/intel_color.c
622
int_bits = max(int_bits, 1);
drivers/gpu/drm/i915/display/intel_crtc.c
593
crtc->debug.max_vbl = evade.max;
drivers/gpu/drm/i915/display/intel_crtc.c
625
if (delta > crtc->debug.vbl.max)
drivers/gpu/drm/i915/display/intel_crtc.c
626
crtc->debug.vbl.max = delta;
drivers/gpu/drm/i915/display/intel_cursor.c
55
y = max(-1 * drm_rect_height(&plane_state->uapi.dst) + 1,
drivers/gpu/drm/i915/display/intel_dbuf_bw.c
112
dbuf_bw->max_bw[slice] = max(dbuf_bw->max_bw[slice], data_rate);
drivers/gpu/drm/i915/display/intel_dbuf_bw.c
167
max_bw = max(dbuf_bw->max_bw[slice], max_bw);
drivers/gpu/drm/i915/display/intel_dbuf_bw.c
172
total_max_bw = max(total_max_bw, max_bw);
drivers/gpu/drm/i915/display/intel_display.c
2432
set_context_latency = max(set_context_latency,
drivers/gpu/drm/i915/display/intel_display_core.h
347
} max[6];
drivers/gpu/drm/i915/display/intel_display_debugfs.c
484
hdr, crtc->debug.vbl.max);
drivers/gpu/drm/i915/display/intel_display_power.c
766
power_domains->async_put_next_delay = max(power_domains->async_put_next_delay,
drivers/gpu/drm/i915/display/intel_display_trace.h
740
__field(u32, max)
drivers/gpu/drm/i915/display/intel_display_trace.h
749
__entry->max = crtc->debug.max_vbl;
drivers/gpu/drm/i915/display/intel_display_trace.h
755
__entry->min, __entry->max)
drivers/gpu/drm/i915/display/intel_display_trace.h
768
__field(u32, max)
drivers/gpu/drm/i915/display/intel_display_trace.h
777
__entry->max = crtc->debug.max_vbl;
drivers/gpu/drm/i915/display/intel_display_trace.h
783
__entry->min, __entry->max)
drivers/gpu/drm/i915/display/intel_display_types.h
1550
u64 max;
drivers/gpu/drm/i915/display/intel_display_types.h
407
u32 max;
drivers/gpu/drm/i915/display/intel_dp.c
1670
bpc = max(bpc, 8);
drivers/gpu/drm/i915/display/intel_dp.c
2487
dsc_min_bpp = max(dsc_src_min_bpp, dsc_sink_min_bpp);
drivers/gpu/drm/i915/display/intel_dp.c
2642
limits->pipe.min_bpp = max(limits->pipe.min_bpp, dsc_min_bpc * 3);
drivers/gpu/drm/i915/display/intel_dp.c
2703
limits->pipe.min_bpp = max(limits->pipe.min_bpp, 30);
drivers/gpu/drm/i915/display/intel_dp.c
3334
min_hblank = max(min_hblank, min_sym_cycles);
drivers/gpu/drm/i915/display/intel_dp.c
450
return max(overhead, intel_dp_bw_fec_overhead(flags & DRM_DP_BW_OVERHEAD_FEC));
drivers/gpu/drm/i915/display/intel_dp.c
7128
sdp_guardband = max(sdp_guardband,
drivers/gpu/drm/i915/display/intel_dp.c
7134
sdp_guardband = max(sdp_guardband,
drivers/gpu/drm/i915/display/intel_dp.c
7139
sdp_guardband = max(sdp_guardband,
drivers/gpu/drm/i915/display/intel_dp.c
981
if (mode_clock > max(connector->dp.dsc_branch_caps.overall_throughput.rgb_yuv444,
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
197
return panel->backlight.max;
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
382
buf[2] = panel->backlight.max & 0xFF;
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
383
buf[3] = (panel->backlight.max & 0xFF00) >> 8;
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
419
panel->backlight.max = luminance_range->max_luminance;
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
422
panel->backlight.max = 512;
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
431
panel->backlight.min, panel->backlight.max);
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
559
panel->backlight.max = panel->backlight.edp.vesa.info.max;
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
562
panel->backlight.max = 512;
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
571
panel->backlight.max = panel->backlight.edp.vesa.info.max;
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
577
panel->backlight.level = panel->backlight.max;
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
581
panel->backlight.max = panel->backlight.pwm_level_max;
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
588
panel->backlight.level = panel->backlight.max;
drivers/gpu/drm/i915/display/intel_dp_link_training.c
403
tx_ffe = max(tx_ffe, drm_dp_get_adjust_tx_ffe_preset(link_status, lane));
drivers/gpu/drm/i915/display/intel_dp_link_training.c
428
v = max(v, drm_dp_get_adjust_request_voltage(link_status, lane));
drivers/gpu/drm/i915/display/intel_dp_link_training.c
429
p = max(p, drm_dp_get_adjust_request_pre_emphasis(link_status, lane));
drivers/gpu/drm/i915/display/intel_dpll.c
100
.vco = { .min = 1400000, .max = 2800000 },
drivers/gpu/drm/i915/display/intel_dpll.c
101
.n = { .min = 1, .max = 6 },
drivers/gpu/drm/i915/display/intel_dpll.c
102
.m = { .min = 70, .max = 120 },
drivers/gpu/drm/i915/display/intel_dpll.c
103
.m1 = { .min = 8, .max = 18 },
drivers/gpu/drm/i915/display/intel_dpll.c
104
.m2 = { .min = 3, .max = 7 },
drivers/gpu/drm/i915/display/intel_dpll.c
105
.p = { .min = 7, .max = 98 },
drivers/gpu/drm/i915/display/intel_dpll.c
106
.p1 = { .min = 1, .max = 8 },
drivers/gpu/drm/i915/display/intel_dpll.c
113
.dot = { .min = 25000, .max = 270000 },
drivers/gpu/drm/i915/display/intel_dpll.c
114
.vco = { .min = 1750000, .max = 3500000},
drivers/gpu/drm/i915/display/intel_dpll.c
115
.n = { .min = 1, .max = 4 },
drivers/gpu/drm/i915/display/intel_dpll.c
116
.m = { .min = 104, .max = 138 },
drivers/gpu/drm/i915/display/intel_dpll.c
117
.m1 = { .min = 17, .max = 23 },
drivers/gpu/drm/i915/display/intel_dpll.c
118
.m2 = { .min = 5, .max = 11 },
drivers/gpu/drm/i915/display/intel_dpll.c
119
.p = { .min = 10, .max = 30 },
drivers/gpu/drm/i915/display/intel_dpll.c
120
.p1 = { .min = 1, .max = 3},
drivers/gpu/drm/i915/display/intel_dpll.c
128
.dot = { .min = 22000, .max = 400000 },
drivers/gpu/drm/i915/display/intel_dpll.c
129
.vco = { .min = 1750000, .max = 3500000},
drivers/gpu/drm/i915/display/intel_dpll.c
130
.n = { .min = 1, .max = 4 },
drivers/gpu/drm/i915/display/intel_dpll.c
131
.m = { .min = 104, .max = 138 },
drivers/gpu/drm/i915/display/intel_dpll.c
132
.m1 = { .min = 16, .max = 23 },
drivers/gpu/drm/i915/display/intel_dpll.c
133
.m2 = { .min = 5, .max = 11 },
drivers/gpu/drm/i915/display/intel_dpll.c
134
.p = { .min = 5, .max = 80 },
drivers/gpu/drm/i915/display/intel_dpll.c
135
.p1 = { .min = 1, .max = 8},
drivers/gpu/drm/i915/display/intel_dpll.c
141
.dot = { .min = 20000, .max = 115000 },
drivers/gpu/drm/i915/display/intel_dpll.c
142
.vco = { .min = 1750000, .max = 3500000 },
drivers/gpu/drm/i915/display/intel_dpll.c
143
.n = { .min = 1, .max = 3 },
drivers/gpu/drm/i915/display/intel_dpll.c
144
.m = { .min = 104, .max = 138 },
drivers/gpu/drm/i915/display/intel_dpll.c
145
.m1 = { .min = 17, .max = 23 },
drivers/gpu/drm/i915/display/intel_dpll.c
146
.m2 = { .min = 5, .max = 11 },
drivers/gpu/drm/i915/display/intel_dpll.c
147
.p = { .min = 28, .max = 112 },
drivers/gpu/drm/i915/display/intel_dpll.c
148
.p1 = { .min = 2, .max = 8 },
drivers/gpu/drm/i915/display/intel_dpll.c
155
.dot = { .min = 80000, .max = 224000 },
drivers/gpu/drm/i915/display/intel_dpll.c
156
.vco = { .min = 1750000, .max = 3500000 },
drivers/gpu/drm/i915/display/intel_dpll.c
157
.n = { .min = 1, .max = 3 },
drivers/gpu/drm/i915/display/intel_dpll.c
158
.m = { .min = 104, .max = 138 },
drivers/gpu/drm/i915/display/intel_dpll.c
159
.m1 = { .min = 17, .max = 23 },
drivers/gpu/drm/i915/display/intel_dpll.c
160
.m2 = { .min = 5, .max = 11 },
drivers/gpu/drm/i915/display/intel_dpll.c
161
.p = { .min = 14, .max = 42 },
drivers/gpu/drm/i915/display/intel_dpll.c
162
.p1 = { .min = 2, .max = 6 },
drivers/gpu/drm/i915/display/intel_dpll.c
169
.dot = { .min = 20000, .max = 400000},
drivers/gpu/drm/i915/display/intel_dpll.c
170
.vco = { .min = 1700000, .max = 3500000 },
drivers/gpu/drm/i915/display/intel_dpll.c
172
.n = { .min = 3, .max = 6 },
drivers/gpu/drm/i915/display/intel_dpll.c
173
.m = { .min = 2, .max = 256 },
drivers/gpu/drm/i915/display/intel_dpll.c
175
.m1 = { .min = 0, .max = 0 },
drivers/gpu/drm/i915/display/intel_dpll.c
176
.m2 = { .min = 0, .max = 254 },
drivers/gpu/drm/i915/display/intel_dpll.c
177
.p = { .min = 5, .max = 80 },
drivers/gpu/drm/i915/display/intel_dpll.c
178
.p1 = { .min = 1, .max = 8 },
drivers/gpu/drm/i915/display/intel_dpll.c
184
.dot = { .min = 20000, .max = 400000 },
drivers/gpu/drm/i915/display/intel_dpll.c
185
.vco = { .min = 1700000, .max = 3500000 },
drivers/gpu/drm/i915/display/intel_dpll.c
186
.n = { .min = 3, .max = 6 },
drivers/gpu/drm/i915/display/intel_dpll.c
187
.m = { .min = 2, .max = 256 },
drivers/gpu/drm/i915/display/intel_dpll.c
188
.m1 = { .min = 0, .max = 0 },
drivers/gpu/drm/i915/display/intel_dpll.c
189
.m2 = { .min = 0, .max = 254 },
drivers/gpu/drm/i915/display/intel_dpll.c
190
.p = { .min = 7, .max = 112 },
drivers/gpu/drm/i915/display/intel_dpll.c
191
.p1 = { .min = 1, .max = 8 },
drivers/gpu/drm/i915/display/intel_dpll.c
202
.dot = { .min = 25000, .max = 350000 },
drivers/gpu/drm/i915/display/intel_dpll.c
203
.vco = { .min = 1760000, .max = 3510000 },
drivers/gpu/drm/i915/display/intel_dpll.c
204
.n = { .min = 1, .max = 5 },
drivers/gpu/drm/i915/display/intel_dpll.c
205
.m = { .min = 79, .max = 127 },
drivers/gpu/drm/i915/display/intel_dpll.c
206
.m1 = { .min = 12, .max = 22 },
drivers/gpu/drm/i915/display/intel_dpll.c
207
.m2 = { .min = 5, .max = 9 },
drivers/gpu/drm/i915/display/intel_dpll.c
208
.p = { .min = 5, .max = 80 },
drivers/gpu/drm/i915/display/intel_dpll.c
209
.p1 = { .min = 1, .max = 8 },
drivers/gpu/drm/i915/display/intel_dpll.c
215
.dot = { .min = 25000, .max = 350000 },
drivers/gpu/drm/i915/display/intel_dpll.c
216
.vco = { .min = 1760000, .max = 3510000 },
drivers/gpu/drm/i915/display/intel_dpll.c
217
.n = { .min = 1, .max = 3 },
drivers/gpu/drm/i915/display/intel_dpll.c
218
.m = { .min = 79, .max = 118 },
drivers/gpu/drm/i915/display/intel_dpll.c
219
.m1 = { .min = 12, .max = 22 },
drivers/gpu/drm/i915/display/intel_dpll.c
220
.m2 = { .min = 5, .max = 9 },
drivers/gpu/drm/i915/display/intel_dpll.c
221
.p = { .min = 28, .max = 112 },
drivers/gpu/drm/i915/display/intel_dpll.c
222
.p1 = { .min = 2, .max = 8 },
drivers/gpu/drm/i915/display/intel_dpll.c
228
.dot = { .min = 25000, .max = 350000 },
drivers/gpu/drm/i915/display/intel_dpll.c
229
.vco = { .min = 1760000, .max = 3510000 },
drivers/gpu/drm/i915/display/intel_dpll.c
230
.n = { .min = 1, .max = 3 },
drivers/gpu/drm/i915/display/intel_dpll.c
231
.m = { .min = 79, .max = 127 },
drivers/gpu/drm/i915/display/intel_dpll.c
232
.m1 = { .min = 12, .max = 22 },
drivers/gpu/drm/i915/display/intel_dpll.c
233
.m2 = { .min = 5, .max = 9 },
drivers/gpu/drm/i915/display/intel_dpll.c
234
.p = { .min = 14, .max = 56 },
drivers/gpu/drm/i915/display/intel_dpll.c
235
.p1 = { .min = 2, .max = 8 },
drivers/gpu/drm/i915/display/intel_dpll.c
242
.dot = { .min = 25000, .max = 350000 },
drivers/gpu/drm/i915/display/intel_dpll.c
243
.vco = { .min = 1760000, .max = 3510000 },
drivers/gpu/drm/i915/display/intel_dpll.c
244
.n = { .min = 1, .max = 2 },
drivers/gpu/drm/i915/display/intel_dpll.c
245
.m = { .min = 79, .max = 126 },
drivers/gpu/drm/i915/display/intel_dpll.c
246
.m1 = { .min = 12, .max = 22 },
drivers/gpu/drm/i915/display/intel_dpll.c
247
.m2 = { .min = 5, .max = 9 },
drivers/gpu/drm/i915/display/intel_dpll.c
248
.p = { .min = 28, .max = 112 },
drivers/gpu/drm/i915/display/intel_dpll.c
249
.p1 = { .min = 2, .max = 8 },
drivers/gpu/drm/i915/display/intel_dpll.c
255
.dot = { .min = 25000, .max = 350000 },
drivers/gpu/drm/i915/display/intel_dpll.c
256
.vco = { .min = 1760000, .max = 3510000 },
drivers/gpu/drm/i915/display/intel_dpll.c
257
.n = { .min = 1, .max = 3 },
drivers/gpu/drm/i915/display/intel_dpll.c
258
.m = { .min = 79, .max = 126 },
drivers/gpu/drm/i915/display/intel_dpll.c
259
.m1 = { .min = 12, .max = 22 },
drivers/gpu/drm/i915/display/intel_dpll.c
260
.m2 = { .min = 5, .max = 9 },
drivers/gpu/drm/i915/display/intel_dpll.c
261
.p = { .min = 14, .max = 42 },
drivers/gpu/drm/i915/display/intel_dpll.c
262
.p1 = { .min = 2, .max = 6 },
drivers/gpu/drm/i915/display/intel_dpll.c
274
.dot = { .min = 25000, .max = 270000 },
drivers/gpu/drm/i915/display/intel_dpll.c
275
.vco = { .min = 4000000, .max = 6000000 },
drivers/gpu/drm/i915/display/intel_dpll.c
276
.n = { .min = 1, .max = 7 },
drivers/gpu/drm/i915/display/intel_dpll.c
277
.m1 = { .min = 2, .max = 3 },
drivers/gpu/drm/i915/display/intel_dpll.c
278
.m2 = { .min = 11, .max = 156 },
drivers/gpu/drm/i915/display/intel_dpll.c
279
.p1 = { .min = 2, .max = 3 },
drivers/gpu/drm/i915/display/intel_dpll.c
290
.dot = { .min = 25000, .max = 540000 },
drivers/gpu/drm/i915/display/intel_dpll.c
291
.vco = { .min = 4800000, .max = 6480000 },
drivers/gpu/drm/i915/display/intel_dpll.c
292
.n = { .min = 1, .max = 1 },
drivers/gpu/drm/i915/display/intel_dpll.c
293
.m1 = { .min = 2, .max = 2 },
drivers/gpu/drm/i915/display/intel_dpll.c
294
.m2 = { .min = 24 << 22, .max = 175 << 22 },
drivers/gpu/drm/i915/display/intel_dpll.c
295
.p1 = { .min = 2, .max = 4 },
drivers/gpu/drm/i915/display/intel_dpll.c
300
.dot = { .min = 25000, .max = 594000 },
drivers/gpu/drm/i915/display/intel_dpll.c
301
.vco = { .min = 4800000, .max = 6700000 },
drivers/gpu/drm/i915/display/intel_dpll.c
302
.n = { .min = 1, .max = 1 },
drivers/gpu/drm/i915/display/intel_dpll.c
303
.m1 = { .min = 2, .max = 2 },
drivers/gpu/drm/i915/display/intel_dpll.c
305
.m2 = { .min = 2 << 22, .max = 255 << 22 },
drivers/gpu/drm/i915/display/intel_dpll.c
306
.p1 = { .min = 2, .max = 4 },
drivers/gpu/drm/i915/display/intel_dpll.c
38
int min, max;
drivers/gpu/drm/i915/display/intel_dpll.c
47
.dot = { .min = 25000, .max = 350000 },
drivers/gpu/drm/i915/display/intel_dpll.c
48
.vco = { .min = 908000, .max = 1512000 },
drivers/gpu/drm/i915/display/intel_dpll.c
49
.n = { .min = 2, .max = 16 },
drivers/gpu/drm/i915/display/intel_dpll.c
50
.m = { .min = 96, .max = 140 },
drivers/gpu/drm/i915/display/intel_dpll.c
51
.m1 = { .min = 18, .max = 26 },
drivers/gpu/drm/i915/display/intel_dpll.c
52
.m2 = { .min = 6, .max = 16 },
drivers/gpu/drm/i915/display/intel_dpll.c
53
.p = { .min = 4, .max = 128 },
drivers/gpu/drm/i915/display/intel_dpll.c
54
.p1 = { .min = 2, .max = 33 },
drivers/gpu/drm/i915/display/intel_dpll.c
586
if (clock->n < limit->n.min || limit->n.max < clock->n)
drivers/gpu/drm/i915/display/intel_dpll.c
588
if (clock->p1 < limit->p1.min || limit->p1.max < clock->p1)
drivers/gpu/drm/i915/display/intel_dpll.c
590
if (clock->m2 < limit->m2.min || limit->m2.max < clock->m2)
drivers/gpu/drm/i915/display/intel_dpll.c
592
if (clock->m1 < limit->m1.min || limit->m1.max < clock->m1)
drivers/gpu/drm/i915/display/intel_dpll.c
60
.dot = { .min = 25000, .max = 350000 },
drivers/gpu/drm/i915/display/intel_dpll.c
603
if (clock->p < limit->p.min || limit->p.max < clock->p)
drivers/gpu/drm/i915/display/intel_dpll.c
605
if (clock->m < limit->m.min || limit->m.max < clock->m)
drivers/gpu/drm/i915/display/intel_dpll.c
609
if (clock->vco < limit->vco.min || limit->vco.max < clock->vco)
drivers/gpu/drm/i915/display/intel_dpll.c
61
.vco = { .min = 908000, .max = 1512000 },
drivers/gpu/drm/i915/display/intel_dpll.c
614
if (clock->dot < limit->dot.min || limit->dot.max < clock->dot)
drivers/gpu/drm/i915/display/intel_dpll.c
62
.n = { .min = 2, .max = 16 },
drivers/gpu/drm/i915/display/intel_dpll.c
63
.m = { .min = 96, .max = 140 },
drivers/gpu/drm/i915/display/intel_dpll.c
64
.m1 = { .min = 18, .max = 26 },
drivers/gpu/drm/i915/display/intel_dpll.c
65
.m2 = { .min = 6, .max = 16 },
drivers/gpu/drm/i915/display/intel_dpll.c
66
.p = { .min = 4, .max = 128 },
drivers/gpu/drm/i915/display/intel_dpll.c
669
for (clock.m1 = limit->m1.min; clock.m1 <= limit->m1.max;
drivers/gpu/drm/i915/display/intel_dpll.c
67
.p1 = { .min = 2, .max = 33 },
drivers/gpu/drm/i915/display/intel_dpll.c
672
clock.m2 <= limit->m2.max; clock.m2++) {
drivers/gpu/drm/i915/display/intel_dpll.c
676
clock.n <= limit->n.max; clock.n++) {
drivers/gpu/drm/i915/display/intel_dpll.c
678
clock.p1 <= limit->p1.max; clock.p1++) {
drivers/gpu/drm/i915/display/intel_dpll.c
727
for (clock.m1 = limit->m1.min; clock.m1 <= limit->m1.max;
drivers/gpu/drm/i915/display/intel_dpll.c
73
.dot = { .min = 25000, .max = 350000 },
drivers/gpu/drm/i915/display/intel_dpll.c
730
clock.m2 <= limit->m2.max; clock.m2++) {
drivers/gpu/drm/i915/display/intel_dpll.c
732
clock.n <= limit->n.max; clock.n++) {
drivers/gpu/drm/i915/display/intel_dpll.c
734
clock.p1 <= limit->p1.max; clock.p1++) {
drivers/gpu/drm/i915/display/intel_dpll.c
74
.vco = { .min = 908000, .max = 1512000 },
drivers/gpu/drm/i915/display/intel_dpll.c
75
.n = { .min = 2, .max = 16 },
drivers/gpu/drm/i915/display/intel_dpll.c
76
.m = { .min = 96, .max = 140 },
drivers/gpu/drm/i915/display/intel_dpll.c
77
.m1 = { .min = 18, .max = 26 },
drivers/gpu/drm/i915/display/intel_dpll.c
78
.m2 = { .min = 6, .max = 16 },
drivers/gpu/drm/i915/display/intel_dpll.c
786
max_n = limit->n.max;
drivers/gpu/drm/i915/display/intel_dpll.c
79
.p = { .min = 4, .max = 128 },
drivers/gpu/drm/i915/display/intel_dpll.c
790
for (clock.m1 = limit->m1.max;
drivers/gpu/drm/i915/display/intel_dpll.c
792
for (clock.m2 = limit->m2.max;
drivers/gpu/drm/i915/display/intel_dpll.c
794
for (clock.p1 = limit->p1.max;
drivers/gpu/drm/i915/display/intel_dpll.c
80
.p1 = { .min = 1, .max = 6 },
drivers/gpu/drm/i915/display/intel_dpll.c
86
.dot = { .min = 20000, .max = 400000 },
drivers/gpu/drm/i915/display/intel_dpll.c
87
.vco = { .min = 1400000, .max = 2800000 },
drivers/gpu/drm/i915/display/intel_dpll.c
873
int max_n = min(limit->n.max, refclk / 19200);
drivers/gpu/drm/i915/display/intel_dpll.c
88
.n = { .min = 1, .max = 6 },
drivers/gpu/drm/i915/display/intel_dpll.c
880
for (clock.p1 = limit->p1.max; clock.p1 >= limit->p1.min; clock.p1--) {
drivers/gpu/drm/i915/display/intel_dpll.c
885
for (clock.m1 = limit->m1.min; clock.m1 <= limit->m1.max; clock.m1++) {
drivers/gpu/drm/i915/display/intel_dpll.c
89
.m = { .min = 70, .max = 120 },
drivers/gpu/drm/i915/display/intel_dpll.c
90
.m1 = { .min = 8, .max = 18 },
drivers/gpu/drm/i915/display/intel_dpll.c
91
.m2 = { .min = 3, .max = 7 },
drivers/gpu/drm/i915/display/intel_dpll.c
92
.p = { .min = 5, .max = 80 },
drivers/gpu/drm/i915/display/intel_dpll.c
93
.p1 = { .min = 1, .max = 8 },
drivers/gpu/drm/i915/display/intel_dpll.c
943
for (clock.p1 = limit->p1.max; clock.p1 >= limit->p1.min; clock.p1--) {
drivers/gpu/drm/i915/display/intel_dpll.c
99
.dot = { .min = 20000, .max = 400000 },
drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c
170
panel->backlight.max = (1 << panel->vbt.backlight.brightness_precision_bits) - 1;
drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c
172
panel->backlight.max = PANEL_PWM_MAX_VALUE;
drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c
174
panel->backlight.level = panel->backlight.max;
drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c
55
size_t len = panel->backlight.max > U8_MAX ? 2 : 1;
drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c
74
size_t len = panel->backlight.max > U8_MAX ? 2 : 1;
drivers/gpu/drm/i915/display/intel_fb.c
1420
return roundup_pow_of_two(max(pitch_tiles, 8u));
drivers/gpu/drm/i915/display/intel_fb.c
1678
min_alignment = max(min_alignment, plane_min_alignment);
drivers/gpu/drm/i915/display/intel_fb.c
1750
max_size = max(max_size, DIV_ROUND_UP(end, tile_size));
drivers/gpu/drm/i915/display/intel_fb.c
1786
max_size = max(max_size, offset + size);
drivers/gpu/drm/i915/display/intel_fb.c
1827
vtd_guard = max(vtd_guard, DIV_ROUND_UP(stride, tile));
drivers/gpu/drm/i915/display/intel_fb_pin.c
100
vma->display_alignment = max(vma->display_alignment, alignment);
drivers/gpu/drm/i915/display/intel_fbc.c
161
return max(cpp, 4);
drivers/gpu/drm/i915/display/intel_fbc.c
211
return max(ALIGN(stride, 512), skl_fbc_min_cfb_stride(display, cpp, width));
drivers/gpu/drm/i915/display/intel_fixed.h
55
uint_fixed_16_16_t max = { .val = max(max1.val, max2.val) };
drivers/gpu/drm/i915/display/intel_fixed.h
57
return max;
drivers/gpu/drm/i915/display/intel_hdmi.c
2142
bpc = max(crtc_state->pipe_bpp / 3, 8);
drivers/gpu/drm/i915/display/intel_overlay.c
871
swidthsw |= max(tmp_U, tmp_V) << 16;
drivers/gpu/drm/i915/display/intel_plane.c
1128
hsub = vsub = max(hsub, vsub);
drivers/gpu/drm/i915/display/intel_pmdemand.c
197
max_ddiclk = max(pmdemand_state->ddi_clocks[i], max_ddiclk);
drivers/gpu/drm/i915/display/intel_pps.c
1533
#define assign_final(field) final->field = (max(cur.field, vbt.field) == 0 ? \
drivers/gpu/drm/i915/display/intel_pps.c
1535
max(cur.field, vbt.field))
drivers/gpu/drm/i915/display/intel_pps.c
682
remaining = max(0, intel_dp->pps.panel_power_cycle_delay - panel_power_off_duration);
drivers/gpu/drm/i915/display/intel_psr.c
916
idle_frames = max(6, connector->panel.vbt.psr.idle_frames);
drivers/gpu/drm/i915/display/intel_psr.c
917
idle_frames = max(idle_frames, connector->dp.psr_caps.sync_latency + 1);
drivers/gpu/drm/i915/display/intel_qp_tables.c
469
PARAM_TABLE(max, 8, buf_i, bpp_i, is_420);
drivers/gpu/drm/i915/display/intel_qp_tables.c
470
PARAM_TABLE(max, 10, buf_i, bpp_i, is_420);
drivers/gpu/drm/i915/display/intel_qp_tables.c
471
PARAM_TABLE(max, 12, buf_i, bpp_i, is_420);
drivers/gpu/drm/i915/display/intel_sdvo.c
738
*clock_max = clocks.max * 10;
drivers/gpu/drm/i915/display/intel_sdvo_regs.h
107
u16 max; /* pixel clock, in 10kHz units */
drivers/gpu/drm/i915/display/intel_sprite.c
933
hscale = max(hscale, 0x10000u);
drivers/gpu/drm/i915/display/intel_vblank.c
720
evade->max = evade->vblank_start - 1;
drivers/gpu/drm/i915/display/intel_vblank.c
745
if (evade->min <= 0 || evade->max <= 0)
drivers/gpu/drm/i915/display/intel_vblank.c
757
if (scanline < evade->min || scanline > evade->max)
drivers/gpu/drm/i915/display/intel_vblank.h
20
int min, max, vblank_start;
drivers/gpu/drm/i915/display/intel_vdsc.c
1141
min_cdclk = max(min_cdclk, min_cdclk_bj);
drivers/gpu/drm/i915/display/intel_vrr.c
513
prefill_latency_us = max(display->sagv.block_time_us,
drivers/gpu/drm/i915/display/intel_vrr.c
521
guardband = max(guardband, intel_psr_min_guardband(crtc_state));
drivers/gpu/drm/i915/display/intel_vrr.c
522
guardband = max(guardband, intel_dp_sdp_min_guardband(crtc_state, true));
drivers/gpu/drm/i915/display/skl_universal_plane.c
1519
y = max(0, plane_state->uapi.dst.y1 - crtc_state->psr2_su_area.y1);
drivers/gpu/drm/i915/display/skl_universal_plane.c
623
return max(mult * 4 * 1024, 16 * 1024);
drivers/gpu/drm/i915/display/skl_watermark.c
1860
blocks = max(blocks,
drivers/gpu/drm/i915/display/skl_watermark.c
1928
result->min_ddb_alloc = max(min_ddb_alloc, blocks) + 1;
drivers/gpu/drm/i915/display/skl_watermark.c
2023
blocks = max(wm0_blocks, trans_y_tile_min) + trans_offset;
drivers/gpu/drm/i915/display/skl_watermark.c
2403
a->end = max(a->end, b->end);
drivers/gpu/drm/i915/display/skl_watermark.c
2855
max_linetime = max(display->pkgc.linetime[crtc->pipe], max_linetime);
drivers/gpu/drm/i915/display/skl_watermark.c
3224
wm[level] = max(wm[level], wm[level-1]);
drivers/gpu/drm/i915/display/skl_watermark.c
667
return max(num_active == 1 ? 32 : 8, min_ddb_alloc);
drivers/gpu/drm/i915/display/vlv_dsi.c
1644
ths_prepare_ns = max(mipi_config->ths_prepare,
drivers/gpu/drm/i915/display/vlv_dsi.c
1689
tclk_trail_ns = max(mipi_config->tclk_trail, mipi_config->ths_trail);
drivers/gpu/drm/i915/display/vlv_dsi.c
1722
intel_dsi->hs_to_lp_count = max(lp_to_hs_switch, hs_to_lp_switch);
drivers/gpu/drm/i915/gem/i915_gem_context.c
1117
const unsigned int max = I915_NUM_ENGINES;
drivers/gpu/drm/i915/gem/i915_gem_context.c
1121
e = alloc_engines(max);
drivers/gpu/drm/i915/gem/i915_gem_context.c
1133
GEM_BUG_ON(engine->legacy_idx >= max);
drivers/gpu/drm/i915/gem/i915_gem_context.c
1143
e->num_engines = max(e->num_engines, engine->legacy_idx + 1);
drivers/gpu/drm/i915/gem/i915_gem_domain.c
475
vma->display_alignment = max(vma->display_alignment, alignment);
drivers/gpu/drm/i915/gem/i915_gem_shrinker.c
310
max((i915->mm.shrinker->batch + avg) >> 1,
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
1204
u64 max;
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
1230
max = U64_MAX;
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
1236
max = min(max, ce->vm->total);
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
1255
max = div_u64(max - size, max_page_size);
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
1264
for_each_prime_number_from(num, 0, max) {
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
1266
u64 offset_high = (max - num) * max_page_size;
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
1379
u32 max;
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
1395
u32 max = backends[i].max;
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
1396
u32 size = max;
drivers/gpu/drm/i915/gem/selftests/i915_gem_client_blt.c
554
t->align = max(t->align,
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
509
unsigned int idx, unsigned int max)
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
527
for (m = 0; m < max; m++) {
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
531
n, real_page_count(obj), m, max,
drivers/gpu/drm/i915/gt/gen2_engine_cs.c
185
#define I830_WA_SIZE max(I830_TLB_ENTRIES * SZ_4K, I830_BATCH_LIMIT)
drivers/gpu/drm/i915/gt/gen6_ppgtt.c
132
if (iter.dma == iter.max) {
drivers/gpu/drm/i915/gt/gen6_ppgtt.c
138
iter.max = iter.dma + sg_dma_len(iter.sg);
drivers/gpu/drm/i915/gt/gen8_ppgtt.c
473
if (iter->dma >= iter->max) {
drivers/gpu/drm/i915/gt/gen8_ppgtt.c
481
iter->max = iter->dma + sg_dma_len(iter->sg);
drivers/gpu/drm/i915/gt/gen8_ppgtt.c
526
u16 index, max, nent, i;
drivers/gpu/drm/i915/gt/gen8_ppgtt.c
528
max = I915_PDES;
drivers/gpu/drm/i915/gt/gen8_ppgtt.c
559
max /= 16;
drivers/gpu/drm/i915/gt/gen8_ppgtt.c
589
if (iter->dma >= iter->max) {
drivers/gpu/drm/i915/gt/gen8_ppgtt.c
599
iter->max = iter->dma + rem;
drivers/gpu/drm/i915/gt/gen8_ppgtt.c
604
} while (rem >= page_size && index < max);
drivers/gpu/drm/i915/gt/gen8_ppgtt.c
667
if (iter->dma >= iter->max) {
drivers/gpu/drm/i915/gt/gen8_ppgtt.c
677
iter->max = iter->dma + rem;
drivers/gpu/drm/i915/gt/intel_engine_user.c
165
u8 base, max;
drivers/gpu/drm/i915/gt/intel_engine_user.c
177
if (GEM_DEBUG_WARN_ON(ring->instance >= map[ring->class].max))
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
329
last_prio = max(effective_prio(rq), I915_PRIORITY_NORMAL - 1);
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
3361
if (prio >= max(I915_PRIORITY_NORMAL, rq_prio(inflight)))
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
351
return max(virtual_prio(&engine->execlists),
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
4079
unsigned int max)
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
4093
if (count++ < max - 1)
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
4099
if (count > max) {
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
4102
count - max);
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
4117
if (count++ < max - 1)
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
4124
if (count > max) {
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
4127
count - max);
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
4140
if (count++ < max - 1)
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
4147
if (count > max) {
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
4150
count - max);
drivers/gpu/drm/i915/gt/intel_execlists_submission.h
33
unsigned int max);
drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c
147
#define INTEL_GT_SYSFS_SHOW_MAX(_name) INTEL_GT_SYSFS_SHOW(_name, max)
drivers/gpu/drm/i915/gt/intel_gtt.h
697
dma_addr_t dma, max;
drivers/gpu/drm/i915/gt/intel_llc.c
90
ring_freq = max(consts->min_ring_freq, gpu_freq);
drivers/gpu/drm/i915/gt/intel_llc.c
93
ring_freq = max(consts->min_ring_freq, ring_freq);
drivers/gpu/drm/i915/gt/intel_migrate.c
281
static int random_index(unsigned int max)
drivers/gpu/drm/i915/gt/intel_migrate.c
283
return upper_32_bits(mul_u32_u32(get_random_u32(), max));
drivers/gpu/drm/i915/gt/intel_migrate.c
458
if (it->dma >= it->max) {
drivers/gpu/drm/i915/gt/intel_migrate.c
464
it->max = it->dma + sg_dma_len(it->sg);
drivers/gpu/drm/i915/gt/intel_migrate.c
663
len = it->max - it->dma;
drivers/gpu/drm/i915/gt/intel_migrate.c
673
it->max = it->dma + sg_dma_len(it->sg);
drivers/gpu/drm/i915/gt/intel_rps.c
1807
c0 = max(render, media);
drivers/gpu/drm/i915/gt/intel_rps.c
1826
int new_freq, adj, min, max;
drivers/gpu/drm/i915/gt/intel_rps.c
1849
max = rps->max_freq_softlimit;
drivers/gpu/drm/i915/gt/intel_rps.c
1851
max = rps->max_freq;
drivers/gpu/drm/i915/gt/intel_rps.c
1856
adj, new_freq, min, max);
drivers/gpu/drm/i915/gt/intel_rps.c
1894
new_freq = clamp_t(int, new_freq, min, max);
drivers/gpu/drm/i915/gt/intel_rps.c
390
return max(vd - 1125, 0);
drivers/gpu/drm/i915/gt/intel_sseu.c
229
32 * max(num_geometry_regs, num_compute_regs),
drivers/gpu/drm/i915/gt/selftest_execlists.c
101
max(0l, (long)(timeout - jiffies)) + 1) < 0) {
drivers/gpu/drm/i915/gt/selftest_execlists.c
3461
static int random_range(struct rnd_state *rnd, int min, int max)
drivers/gpu/drm/i915/gt/selftest_execlists.c
3463
return i915_prandom_u32_max_state(max - min, rnd) + min;
drivers/gpu/drm/i915/gt/selftest_reset.c
122
max = -1;
drivers/gpu/drm/i915/gt/selftest_reset.c
154
max = page;
drivers/gpu/drm/i915/gt/selftest_reset.c
164
msg, count, max);
drivers/gpu/drm/i915/gt/selftest_reset.c
166
if (max >= I915_GEM_STOLEN_BIAS >> PAGE_SHIFT) {
drivers/gpu/drm/i915/gt/selftest_reset.c
29
long max, count;
drivers/gpu/drm/i915/gt/selftest_rps.c
1170
} min, max;
drivers/gpu/drm/i915/gt/selftest_rps.c
1198
max.freq = rps->max_freq;
drivers/gpu/drm/i915/gt/selftest_rps.c
1199
max.power = measure_power_at(rps, &max.freq);
drivers/gpu/drm/i915/gt/selftest_rps.c
1213
max.power, intel_gpu_freq(rps, max.freq));
drivers/gpu/drm/i915/gt/selftest_rps.c
1215
if (10 * min.freq >= 9 * max.freq) {
drivers/gpu/drm/i915/gt/selftest_rps.c
1218
max.freq, intel_gpu_freq(rps, max.freq));
drivers/gpu/drm/i915/gt/selftest_rps.c
1226
if (11 * min.power > 10 * max.power) {
drivers/gpu/drm/i915/gt/selftest_rps.c
1285
} min, max;
drivers/gpu/drm/i915/gt/selftest_rps.c
1308
max.dt = ktime_get();
drivers/gpu/drm/i915/gt/selftest_rps.c
1309
max.freq = wait_for_freq(rps, rps->max_freq, 500);
drivers/gpu/drm/i915/gt/selftest_rps.c
1310
max.dt = ktime_sub(ktime_get(), max.dt);
drivers/gpu/drm/i915/gt/selftest_rps.c
1323
max.freq, intel_gpu_freq(rps, max.freq),
drivers/gpu/drm/i915/gt/selftest_rps.c
1324
ktime_to_ns(max.dt),
drivers/gpu/drm/i915/gt/selftest_rps.c
1327
if (min.freq >= max.freq) {
drivers/gpu/drm/i915/gt/selftest_rps.c
409
int min, max;
drivers/gpu/drm/i915/gt/selftest_rps.c
464
max = rps_set_check(rps, limit);
drivers/gpu/drm/i915/gt/selftest_rps.c
482
min, max, ktime_to_ns(min_dt), ktime_to_ns(max_dt));
drivers/gpu/drm/i915/gt/selftest_rps.c
642
} min, max;
drivers/gpu/drm/i915/gt/selftest_rps.c
680
max.freq = rps->max_freq;
drivers/gpu/drm/i915/gt/selftest_rps.c
681
max.count = measure_cs_frequency_at(rps, engine, &max.freq);
drivers/gpu/drm/i915/gt/selftest_rps.c
686
max.count, intel_gpu_freq(rps, max.freq),
drivers/gpu/drm/i915/gt/selftest_rps.c
687
(int)DIV64_U64_ROUND_CLOSEST(100 * min.freq * max.count,
drivers/gpu/drm/i915/gt/selftest_rps.c
688
max.freq * min.count));
drivers/gpu/drm/i915/gt/selftest_rps.c
690
if (!scaled_within(max.freq * min.count,
drivers/gpu/drm/i915/gt/selftest_rps.c
691
min.freq * max.count,
drivers/gpu/drm/i915/gt/selftest_rps.c
697
max.freq * min.count,
drivers/gpu/drm/i915/gt/selftest_rps.c
698
min.freq * max.count);
drivers/gpu/drm/i915/gt/selftest_rps.c
781
} min, max;
drivers/gpu/drm/i915/gt/selftest_rps.c
818
max.freq = rps->max_freq;
drivers/gpu/drm/i915/gt/selftest_rps.c
819
max.count = measure_frequency_at(rps, cntr, &max.freq);
drivers/gpu/drm/i915/gt/selftest_rps.c
824
max.count, intel_gpu_freq(rps, max.freq),
drivers/gpu/drm/i915/gt/selftest_rps.c
825
(int)DIV64_U64_ROUND_CLOSEST(100 * min.freq * max.count,
drivers/gpu/drm/i915/gt/selftest_rps.c
826
max.freq * min.count));
drivers/gpu/drm/i915/gt/selftest_rps.c
828
if (!scaled_within(max.freq * min.count,
drivers/gpu/drm/i915/gt/selftest_rps.c
829
min.freq * max.count,
drivers/gpu/drm/i915/gt/selftest_rps.c
835
max.freq * min.count,
drivers/gpu/drm/i915/gt/selftest_rps.c
836
min.freq * max.count);
drivers/gpu/drm/i915/gt/selftest_slpc.c
204
} min, max;
drivers/gpu/drm/i915/gt/selftest_slpc.c
221
max.freq = slpc->rp0_freq;
drivers/gpu/drm/i915/gt/selftest_slpc.c
222
err = measure_power_at_freq(gt, &max.freq, &max.power);
drivers/gpu/drm/i915/gt/selftest_slpc.c
230
max.power, max.freq);
drivers/gpu/drm/i915/gt/selftest_slpc.c
232
if (10 * min.freq >= 9 * max.freq) {
drivers/gpu/drm/i915/gt/selftest_slpc.c
234
min.freq, max.freq);
drivers/gpu/drm/i915/gt/selftest_slpc.c
237
if (11 * min.power > 10 * max.power) {
drivers/gpu/drm/i915/gt/selftest_slpc.c
73
static int slpc_restore_freq(struct intel_guc_slpc *slpc, u32 min, u32 max)
drivers/gpu/drm/i915/gt/selftest_slpc.c
77
err = slpc_set_max_freq(slpc, max);
drivers/gpu/drm/i915/gt/selftest_timeline.c
122
idx = state->count++ % state->max;
drivers/gpu/drm/i915/gt/selftest_timeline.c
129
min(state->count, state->max),
drivers/gpu/drm/i915/gt/selftest_timeline.c
132
count = i915_prandom_u32_max_state(min(state->count, state->max),
drivers/gpu/drm/i915/gt/selftest_timeline.c
135
idx = --state->count % state->max;
drivers/gpu/drm/i915/gt/selftest_timeline.c
171
state.max = PAGE_SIZE / sizeof(*state.history);
drivers/gpu/drm/i915/gt/selftest_timeline.c
173
state.history = kzalloc_objs(*state.history, state.max);
drivers/gpu/drm/i915/gt/selftest_timeline.c
189
for (na = 0; na < state.max; na++)
drivers/gpu/drm/i915/gt/selftest_timeline.c
69
unsigned long count, max;
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
101
sections[i].name, log->sizes[i].count + 1, sections[i].max + 1);
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
102
log->sizes[i].count = sections[i].max;
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
36
u32 max;
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
99
if (log->sizes[i].count > sections[i].max) {
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
2426
unsigned int max = min_t(unsigned int, 100,
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
2429
msleep(max_t(unsigned int, max, 1));
drivers/gpu/drm/i915/gvt/aperture_gm.c
250
unsigned long request, avail, max, taken;
drivers/gpu/drm/i915/gvt/aperture_gm.c
259
max = gvt_aperture_sz(gvt) - HOST_LOW_GM_SIZE;
drivers/gpu/drm/i915/gvt/aperture_gm.c
261
avail = max - taken;
drivers/gpu/drm/i915/gvt/aperture_gm.c
270
max = gvt_hidden_sz(gvt) - HOST_HIGH_GM_SIZE;
drivers/gpu/drm/i915/gvt/aperture_gm.c
272
avail = max - taken;
drivers/gpu/drm/i915/gvt/aperture_gm.c
281
max = gvt_fence_sz(gvt) - HOST_FENCE;
drivers/gpu/drm/i915/gvt/aperture_gm.c
283
avail = max - taken;
drivers/gpu/drm/i915/gvt/aperture_gm.c
300
BYTES_TO_MB(max), BYTES_TO_MB(taken));
drivers/gpu/drm/i915/gvt/kvmgt.c
1334
int max = intel_vgpu_get_irq_count(vgpu, hdr.index);
drivers/gpu/drm/i915/gvt/kvmgt.c
1339
ret = vfio_set_irqs_validate_and_prepare(&hdr, max,
drivers/gpu/drm/i915/i915_deps.c
84
new_size = max(new_size, I915_DEPS_MIN_ALLOC_CHUNK);
drivers/gpu/drm/i915/i915_hwmon.c
412
u64 r, min, max;
drivers/gpu/drm/i915/i915_hwmon.c
432
max = REG_FIELD_GET(PKG_MAX_PWR, r);
drivers/gpu/drm/i915/i915_hwmon.c
433
max = mul_u64_u32_shr(max, SF_POWER, hwmon->scl_shift_power);
drivers/gpu/drm/i915/i915_hwmon.c
435
if (min && max)
drivers/gpu/drm/i915/i915_hwmon.c
436
*val = clamp_t(u64, *val, min, max);
drivers/gpu/drm/i915/i915_mm.c
146
while (offset >= r.sgt.max >> PAGE_SHIFT) {
drivers/gpu/drm/i915/i915_mm.c
147
offset -= r.sgt.max >> PAGE_SHIFT;
drivers/gpu/drm/i915/i915_mm.c
64
if (r->sgt.curr >= r->sgt.max)
drivers/gpu/drm/i915/i915_scatterlist.h
102
(((__iter).curr += (__step)) >= (__iter).max) ? \
drivers/gpu/drm/i915/i915_scatterlist.h
115
(((__iter).curr += PAGE_SIZE) >= (__iter).max) ? \
drivers/gpu/drm/i915/i915_scatterlist.h
143
size_t max = min_t(size_t, UINT_MAX, dma_max_mapping_size(dev));
drivers/gpu/drm/i915/i915_scatterlist.h
159
max = PAGE_SIZE;
drivers/gpu/drm/i915/i915_scatterlist.h
160
return round_down(max, PAGE_SIZE);
drivers/gpu/drm/i915/i915_scatterlist.h
30
unsigned int max;
drivers/gpu/drm/i915/i915_scatterlist.h
37
s.max = s.curr = s.sgp->offset;
drivers/gpu/drm/i915/i915_scatterlist.h
40
s.max += sg_dma_len(s.sgp);
drivers/gpu/drm/i915/i915_scatterlist.h
43
s.max += s.sgp->length;
drivers/gpu/drm/i915/i915_scatterlist.h
92
(((__iter).curr += (__step)) >= (__iter).max) ? \
drivers/gpu/drm/i915/i915_scheduler.c
158
const int prio = max(attr->priority, node->attr.priority);
drivers/gpu/drm/i915/i915_vma.c
801
size = max(size, vma->size);
drivers/gpu/drm/i915/i915_vma.c
835
alignment = max(alignment, i915_vm_obj_min_alignment(vma->vm, vma->obj));
drivers/gpu/drm/i915/i915_vma.c
904
alignment = max(alignment, page_alignment);
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
419
const unsigned long max_step = max(int_sqrt(max_pages), 2UL);
drivers/gpu/drm/i915/selftests/i915_syncmap.c
207
unsigned long max = 1;
drivers/gpu/drm/i915/selftests/i915_syncmap.c
224
for (loop = 0; loop <= max; loop++) {
drivers/gpu/drm/i915/selftests/i915_syncmap.c
230
max++;
drivers/gpu/drm/i915/selftests/i915_syncmap.c
233
__func__, max * (max - 1) / 2);
drivers/gpu/drm/i915/selftests/i915_vma.c
603
max_offset = max(plane_info[0].src_stride * plane_info[0].height,
drivers/gpu/drm/i915/selftests/intel_memory_region.c
587
size = max(size, ps);
drivers/gpu/drm/i915/selftests/intel_memory_region.c
626
size = max(size, ps);
drivers/gpu/drm/i915/selftests/scatterlist.c
215
unsigned long count, unsigned long max,
drivers/gpu/drm/i915/selftests/scatterlist.c
224
if (overflows_type(max, unsigned int))
drivers/gpu/drm/i915/selftests/scatterlist.c
227
if (sg_alloc_table(&pt->st, max,
drivers/gpu/drm/i915/selftests/scatterlist.c
328
const unsigned long max = PAGE_SIZE; /* not prime! */
drivers/gpu/drm/i915/selftests/scatterlist.c
333
for_each_prime_number(prime, max) {
drivers/gpu/drm/i915/selftests/scatterlist.c
341
err = alloc_table(&pt, prime, max, *npages, &prng,
drivers/gpu/drm/imagination/pvr_fw_meta.c
346
u32 limit_off = max(seg_limit, ROGUE_FW_SEGMMU_ALIGN);
drivers/gpu/drm/imx/dcss/dcss-dev.h
175
int *min, int *max);
drivers/gpu/drm/imx/dcss/dcss-plane.c
154
int min, max;
drivers/gpu/drm/imx/dcss/dcss-plane.c
177
&min, &max);
drivers/gpu/drm/imx/dcss/dcss-plane.c
180
min, max, !is_primary_plane,
drivers/gpu/drm/imx/dcss/dcss-scaler.c
562
int *min, int *max)
drivers/gpu/drm/imx/dcss/dcss-scaler.c
565
*max = downscale_fp(dcss_scaler_factors[ch_num].downscale, 16);
drivers/gpu/drm/meson/meson_encoder_hdmi.c
105
vclk_freq = max(venc_freq, hdmi_freq);
drivers/gpu/drm/meson/meson_encoder_hdmi.c
179
vclk_freq = max(venc_freq, hdmi_freq);
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
109
mode_clk = max(pstate->plane_clk, mode_clk);
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
156
perf->max_per_pipe_ib = max(perf->max_per_pipe_ib,
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
301
clk_rate = max(dpu_cstate->new_perf.core_clk_rate,
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
1067
max_tile_height = max(max_tile_height, fmt->tile_height);
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
1070
max_tile_height = max(max_tile_height, prev_fmt->tile_height);
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
1519
pstate->plane_clk = max(pstate->plane_clk,
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
155
return max(plane_bw, plane_prefill_bw);
drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c
1062
mdp5_crtc->cursor.x = x = max(x, -(int)mdp5_crtc->cursor.width);
drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c
1063
mdp5_crtc->cursor.y = y = max(y, -(int)mdp5_crtc->cursor.height);
drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c
76
nblks = max(0, nblks - reserved);
drivers/gpu/drm/msm/msm_debugfs.c
281
*val = max(ktime_us_delta(priv->stall_reenable_time, ktime_get()), 0);
drivers/gpu/drm/msm/msm_fence.c
146
max(fctx->next_deadline_fence, (uint32_t)fence->seqno);
drivers/gpu/drm/nouveau/dispnv04/i2c/ch7006_mode.c
357
vpos = max(0, norm->vdisplay - round_fixed(mode->vdisplay*scale)
drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c
331
rs[k] = max((int64_t)rs[k], id2);
drivers/gpu/drm/nouveau/dispnv04/tvnv17.c
546
max((output_mode->hdisplay-600)/40 - 1, 1);
drivers/gpu/drm/nouveau/dispnv50/disp.c
165
return dmac->max - dmac->cur;
drivers/gpu/drm/nouveau/dispnv50/disp.c
198
if (WARN_ON(size > dmac->max))
drivers/gpu/drm/nouveau/dispnv50/disp.c
202
if (dmac->cur + size >= dmac->max) {
drivers/gpu/drm/nouveau/dispnv50/disp.c
264
dmac->max = 0x1000/4 - 1;
drivers/gpu/drm/nouveau/dispnv50/disp.c
270
dmac->max -= 12;
drivers/gpu/drm/nouveau/dispnv50/disp.h
72
u32 max;
drivers/gpu/drm/nouveau/include/nvif/chan.h
36
u32 max;
drivers/gpu/drm/nouveau/include/nvif/if0001.h
34
__u32 max;
drivers/gpu/drm/nouveau/include/nvif/push.h
38
u32 max;
drivers/gpu/drm/nouveau/include/nvkm/core/falcon.h
27
int max;
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/boost.h
22
u32 max;
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/boost.h
9
u32 max;
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h
18
u32 max;
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/volt.h
13
u32 max;
drivers/gpu/drm/nouveau/nouveau_abi16.c
419
chan->chan->chan.gpfifo.max);
drivers/gpu/drm/nouveau/nouveau_backlight.c
279
props->max_brightness = bl->edp_info.max;
drivers/gpu/drm/nouveau/nouveau_bo.c
204
*align = max((1 << nvbo->page), *align);
drivers/gpu/drm/nouveau/nouveau_chan.c
436
chan->dma.max = (0x10000 / 4) - 2;
drivers/gpu/drm/nouveau/nouveau_chan.c
464
chan->dma.free = chan->dma.max - chan->dma.cur;
drivers/gpu/drm/nouveau/nouveau_chan.h
36
int max;
drivers/gpu/drm/nouveau/nouveau_debugfs.c
116
if (attr.min != attr.max)
drivers/gpu/drm/nouveau/nouveau_debugfs.c
117
seq_printf(m, "-%d", attr.max);
drivers/gpu/drm/nouveau/nouveau_dma.c
106
chan->dma.free = chan->dma.max - chan->dma.cur;
drivers/gpu/drm/nouveau/nouveau_dma.c
63
val > chan->push.addr + (chan->dma.max << 2))
drivers/gpu/drm/nouveau/nouveau_dmem.c
829
unsigned long max = npages;
drivers/gpu/drm/nouveau/nouveau_dmem.c
848
if (max > (unsigned long)HPAGE_PMD_NR)
drivers/gpu/drm/nouveau/nouveau_dmem.c
849
max = (unsigned long)HPAGE_PMD_NR;
drivers/gpu/drm/nouveau/nouveau_dmem.c
851
args.src = kcalloc(max, sizeof(*args.src), GFP_KERNEL);
drivers/gpu/drm/nouveau/nouveau_dmem.c
854
args.dst = kcalloc(max, sizeof(*args.dst), GFP_KERNEL);
drivers/gpu/drm/nouveau/nouveau_dmem.c
858
dma_info = kmalloc_objs(*dma_info, max);
drivers/gpu/drm/nouveau/nouveau_dmem.c
862
pfns = nouveau_pfns_alloc(max);
drivers/gpu/drm/nouveau/nouveau_dmem.c
866
for (i = 0; i < npages; i += max) {
drivers/gpu/drm/nouveau/nouveau_dmem.c
867
if (args.start + (max << PAGE_SHIFT) > end)
drivers/gpu/drm/nouveau/nouveau_dmem.c
870
args.end = args.start + (max << PAGE_SHIFT);
drivers/gpu/drm/nouveau/nouveau_exec.c
385
push_max = nouveau_exec_push_max_from_ib_max(chan->chan.gpfifo.max);
drivers/gpu/drm/nouveau/nouveau_svm.c
183
addr = max(addr, vma->vm_start);
drivers/gpu/drm/nouveau/nvif/chan.c
104
chan->gpfifo.max = (gpfifo_size >> 3) - 1;
drivers/gpu/drm/nouveau/nvif/chan.c
105
chan->gpfifo.free = chan->gpfifo.max;
drivers/gpu/drm/nouveau/nvif/chan.c
111
chan->push.hw.max = push_size >> 2;
drivers/gpu/drm/nouveau/nvif/chan.c
128
free = push->hw.max - cur;
drivers/gpu/drm/nouveau/nvif/chan.c
40
const u32 gpptr = (chan->gpfifo.cur + 1) & chan->gpfifo.max;
drivers/gpu/drm/nouveau/nvif/chan.c
83
chan->gpfifo.free += chan->gpfifo.max + 1;
drivers/gpu/drm/nouveau/nvif/chan506f.c
28
chan->gpfifo.cur = (chan->gpfifo.cur + 1) & chan->gpfifo.max;
drivers/gpu/drm/nouveau/nvkm/core/gpuobj.c
181
max(align, 1), &gpuobj->node);
drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c
115
hi = max(hi, cstate->domain[domain->name]);
drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c
120
lo = max(nvkm_clk_read(clk, domain->name), 0);
drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c
127
args->v0.max = hi / domain->mdiv;
drivers/gpu/drm/nouveau/nvkm/engine/disp/base.c
163
i = max(i, head->id + 1);
drivers/gpu/drm/nouveau/nvkm/engine/fifo/ga100.c
561
nr = max(nr, runl->id + 1);
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
2013
gr->tpc_max = max(gr->tpc_max, gr->tpc_nr[i]);
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
525
u32 min = data & 0xffff, max;
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
533
max = min + w;
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
534
max &= 0x3ffff;
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
536
nvkm_wr32(device, 0x400544, max);
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
543
u32 min = data & 0xffff, max;
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
551
max = min + w;
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
552
max &= 0x3ffff;
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
554
nvkm_wr32(device, 0x400548, max);
drivers/gpu/drm/nouveau/nvkm/falcon/base.c
156
xfer_len = min(len, pio->max);
drivers/gpu/drm/nouveau/nvkm/falcon/base.c
191
xfer_len = min(len, pio->max);
drivers/gpu/drm/nouveau/nvkm/falcon/gm200.c
117
.max = 0x100,
drivers/gpu/drm/nouveau/nvkm/falcon/gm200.c
90
.max = 0x100,
drivers/gpu/drm/nouveau/nvkm/falcon/gp102.c
59
.max = 0x100,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
123
info->max = nvbios_rd16(bios, data + 0x04) * 1000;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
83
info->max = nvbios_rd16(bios, data + 0x04) * 1000;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c
102
info->max = nvbios_rd32(bios, vmap + 0x04);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c
111
info->max = nvbios_rd32(bios, vmap + 0x06);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c
100
info->max = max(info->base, info->base + info->step * info->vidmask);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c
104
info->max = nvbios_rd32(bios, volt + 0x0e);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c
98
info->max = nvbios_rd32(bios, volt + 0x0e);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c
99
if (!info->max)
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
318
pstate = max(pstate, clk->dstate);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
368
hi = max(hi, freq);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
538
clk->astate = max(clk->astate, 0);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
55
input = max(boostE.min, input);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
557
clk->dstate = max(clk->dstate, 0);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
56
input = min(boostE.max, input);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
65
input = max(boostS.min, input);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
66
input = min(boostS.max, input);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c
118
max_vco_f = max(clk->params->max_vco, target_vco_f);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c
127
high_pl = max(high_pl, clk->params->min_pl);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c
133
low_pl = max(low_pl, clk->params->min_pl);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c
1003
fmax = max(fmax,
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c
269
info->fb_delay = max(((khz + 7566) / 15133), (u32) 18);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/pllgt215.c
43
lM = max(lM, (int)info->vco1.min_m);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c
52
size = max(size, 0x1000);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv10.c
34
tile->limit = max(1u, addr + size) - 1;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c
34
tile->limit = max(1u, addr + size) - 1;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c
44
tile->limit = max(1u, addr + size) - 1;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv44.c
35
tile->limit = max(1u, addr + size) - 1;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv46.c
39
tile->limit = max(1u, addr + size) - 1;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c
155
u8 page = max(rpage, (u8)NVKM_RAM_MM_SHIFT);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c
157
u32 max = ALIGN(size, 1 << page) >> NVKM_RAM_MM_SHIFT;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c
158
u32 min = contig ? max : align;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c
177
ret = nvkm_mm_tail(mm, heap, type, max, min, align, &r);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c
179
ret = nvkm_mm_head(mm, heap, type, max, min, align, &r);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c
188
max -= r->length;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c
189
} while (max);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c
192
div = max(min((ref * 2) / freq, (u32)65), (u32)2) - 2;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c
140
median[i] = max(median[i], (u8) (bin << 4));
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/tu102.c
272
return max(heap_size, gsp->rm->wpr->heap_size_min);
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c
412
ids = max(ids, aux->id + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c
527
size = max(roundup(size, PAGE_SIZE), PAGE_SIZE);
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c
528
align = max(roundup(align, PAGE_SIZE), PAGE_SIZE);
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c
380
u8 page = max(order_base_2(align), 12);
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c
566
uvmm->vmm->debug = max(uvmm->vmm->debug, oclass->client->debug);
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
101
for (lvl = it->max; lvl >= 0; lvl--) {
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
122
it->flush = min(it->flush, it->max - it->lvl);
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
546
it.max = --it.lvl;
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
547
it.pt[it.max] = vmm->pd;
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
552
it.lvl = it.max;
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
616
addr = it.pte[it.max--];
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
618
addr = addr << desc[it.max].bits;
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
619
addr |= it.pte[it.max];
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
620
} while (it.max--);
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
77
u16 max, lvl;
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk20a.c
82
level = max(0, level);
drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c
101
u8 max = therm->bios_sensor.thrs_fan_boost.temp;
drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c
102
return nvkm_therm_compute_linear_duty(therm, 30, max);
drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c
94
u8 max = therm->fan->bios.linear_max_temp;
drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c
95
return nvkm_therm_compute_linear_duty(therm, min, max);
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c
68
duty = max(duty - 3, target);
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c
49
divs = max(divs, duty);
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c
134
result = (info.min + info.max) / 2;
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c
145
result = clamp(result, (s64)info.min, (s64)info.max);
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c
176
ret = max(min, ret);
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c
199
volt->max_uv = info.max;
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c
202
info.base <= info.max) {
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c
222
volt->max_uv = max(volt->max_uv, ivid.voltage);
drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c
164
volt->base.vid[i].uv = max(
drivers/gpu/drm/omapdrm/dss/dispc.c
2135
val, max(0, ds - 2) * width);
drivers/gpu/drm/omapdrm/dss/dispc.c
2136
if (val < max(0, ds - 2) * width)
drivers/gpu/drm/omapdrm/dss/dispc.c
2146
val, max(0, ds - 1) * width);
drivers/gpu/drm/omapdrm/dss/dispc.c
2147
if (val < max(0, ds - 1) * width)
drivers/gpu/drm/omapdrm/dss/dispc.c
2409
*decim_x = max(*decim_x, decim_x_min);
drivers/gpu/drm/omapdrm/dss/dispc.c
3571
lckd_start = max(DIV_ROUND_UP(dispc_freq, lck_max), 1ul);
drivers/gpu/drm/omapdrm/dss/dispc.c
3577
pckd_start = max(DIV_ROUND_UP(lck, pck_max), pckd_hw_min);
drivers/gpu/drm/omapdrm/dss/dpi.c
273
ctx->pck_min = max(pck - 1000 * i * i * i, 0lu);
drivers/gpu/drm/omapdrm/dss/dsi.c
2596
transition = enter_hs + exit_hs + max(enter_hs, 2) + 1;
drivers/gpu/drm/omapdrm/dss/dsi.c
2599
trans1 = ddr_pre + enter_hs + exit_hs + max(enter_hs, 2) + 1;
drivers/gpu/drm/omapdrm/dss/dsi.c
2602
transition = max(trans1, trans2);
drivers/gpu/drm/omapdrm/dss/dsi.c
2625
trans_lp = exit_hs + max(enter_hs, 2) + 1;
drivers/gpu/drm/omapdrm/dss/dsi.c
2635
return max(lp_inter, 0);
drivers/gpu/drm/omapdrm/dss/dsi.c
3742
pll_min = max(cfg->hs_clk_min * 4, txbyteclk * 4 * 4);
drivers/gpu/drm/omapdrm/dss/dsi.c
3856
hsa = max(hsa - hse, 1);
drivers/gpu/drm/omapdrm/dss/dsi.c
3860
hbp = max(hbp, 1);
drivers/gpu/drm/omapdrm/dss/dsi.c
3868
hbp = max(hbp - t, 1);
drivers/gpu/drm/omapdrm/dss/dsi.c
3874
hsa = max(hsa - t, 1);
drivers/gpu/drm/omapdrm/dss/dsi.c
3912
hsa = max(hsa, 1);
drivers/gpu/drm/omapdrm/dss/dsi.c
3918
hbp = max(hbp, 1);
drivers/gpu/drm/omapdrm/dss/dsi.c
3926
hbp = max(hbp - t, 1);
drivers/gpu/drm/omapdrm/dss/dsi.c
3932
hsa = max(hsa - t, 1);
drivers/gpu/drm/omapdrm/dss/dsi.c
4036
pll_min = max(cfg->hs_clk_min * 4, byteclk_min * 4 * 4);
drivers/gpu/drm/omapdrm/dss/dss.c
631
fckd_stop = max(DIV_ROUND_UP(prate * m, fck_hw_max), 1ul);
drivers/gpu/drm/omapdrm/dss/pll.c
187
m_start = max(DIV_ROUND_UP(clkdco, out_max), 1ul);
drivers/gpu/drm/omapdrm/dss/pll.c
221
n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul);
drivers/gpu/drm/omapdrm/dss/pll.c
238
m_start = max(DIV_ROUND_UP(DIV_ROUND_UP(pll_min, fint), 2),
drivers/gpu/drm/omapdrm/dss/sdi.c
96
ctx.pck_min = max(pclk - 1000 * i * i * i, 0lu);
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
551
min_align = max(min_align, slot_bytes);
drivers/gpu/drm/panel/panel-edp.c
462
delay = max(delay, p->desc->delay.hpd_absent);
drivers/gpu/drm/panel/panel-edp.c
568
delay = max(delay, p->desc->delay.prepare_to_enable);
drivers/gpu/drm/panel/panel-edp.c
693
to_check->field.typ <= bounds->field.max)
drivers/gpu/drm/panel/panel-novatek-nt35560.c
168
pwm_ratio = max(((duty_ns * 256) / period_ns) - 1, 1);
drivers/gpu/drm/panel/panel-novatek-nt35560.c
169
pwm_div = max(1,
drivers/gpu/drm/panel/panel-simple.c
487
to_check->field.typ <= bounds->field.max)
drivers/gpu/drm/panfrost/panfrost_drv.c
65
#define PANFROST_FEATURE_ARRAY(name, member, max) \
drivers/gpu/drm/panfrost/panfrost_drv.c
67
DRM_PANFROST_PARAM_ ## name ## max: \
drivers/gpu/drm/panfrost/panfrost_mmu.c
121
region_width = max(fls64(region_start ^ (region_end - 1)),
drivers/gpu/drm/panfrost/panfrost_mmu.c
444
mapped = max(mapped, pgsize);
drivers/gpu/drm/panthor/panthor_mmu.c
552
region_width = max(fls64(*region_start ^ (region_end - 1)),
drivers/gpu/drm/radeon/ci_dpm.c
3373
pi->pcie_lane_powersaving.max);
drivers/gpu/drm/radeon/ci_dpm.c
3383
pi->pcie_lane_powersaving.max);
drivers/gpu/drm/radeon/ci_dpm.c
3386
pi->pcie_lane_performance.max);
drivers/gpu/drm/radeon/ci_dpm.c
3388
pi->pcie_gen_powersaving.max,
drivers/gpu/drm/radeon/ci_dpm.c
3389
pi->pcie_lane_powersaving.max);
drivers/gpu/drm/radeon/ci_dpm.c
3391
pi->pcie_gen_performance.max,
drivers/gpu/drm/radeon/ci_dpm.c
3392
pi->pcie_lane_performance.max);
drivers/gpu/drm/radeon/ci_dpm.c
358
int i, min, max;
drivers/gpu/drm/radeon/ci_dpm.c
360
min = max = hi_vid[0];
drivers/gpu/drm/radeon/ci_dpm.c
365
if (max < hi_vid[i])
drivers/gpu/drm/radeon/ci_dpm.c
366
max = hi_vid[i];
drivers/gpu/drm/radeon/ci_dpm.c
372
if (max < lo_vid[i])
drivers/gpu/drm/radeon/ci_dpm.c
373
max = lo_vid[i];
drivers/gpu/drm/radeon/ci_dpm.c
377
if ((min == 0) || (max == 0))
drivers/gpu/drm/radeon/ci_dpm.c
379
pi->smc_powertune_table.GnbLPMLMaxVid = (u8)max;
drivers/gpu/drm/radeon/ci_dpm.c
5462
if (pi->pcie_gen_powersaving.max < pl->pcie_gen)
drivers/gpu/drm/radeon/ci_dpm.c
5463
pi->pcie_gen_powersaving.max = pl->pcie_gen;
drivers/gpu/drm/radeon/ci_dpm.c
5466
if (pi->pcie_lane_powersaving.max < pl->pcie_lane)
drivers/gpu/drm/radeon/ci_dpm.c
5467
pi->pcie_lane_powersaving.max = pl->pcie_lane;
drivers/gpu/drm/radeon/ci_dpm.c
5473
if (pi->pcie_gen_performance.max < pl->pcie_gen)
drivers/gpu/drm/radeon/ci_dpm.c
5474
pi->pcie_gen_performance.max = pl->pcie_gen;
drivers/gpu/drm/radeon/ci_dpm.c
5477
if (pi->pcie_lane_performance.max < pl->pcie_lane)
drivers/gpu/drm/radeon/ci_dpm.c
5478
pi->pcie_lane_performance.max = pl->pcie_lane;
drivers/gpu/drm/radeon/ci_dpm.c
5662
pi->pcie_gen_performance.max = RADEON_PCIE_GEN1;
drivers/gpu/drm/radeon/ci_dpm.c
5664
pi->pcie_gen_powersaving.max = RADEON_PCIE_GEN1;
drivers/gpu/drm/radeon/ci_dpm.c
5667
pi->pcie_lane_performance.max = 0;
drivers/gpu/drm/radeon/ci_dpm.c
5669
pi->pcie_lane_powersaving.max = 0;
drivers/gpu/drm/radeon/ci_dpm.h
150
u16 max;
drivers/gpu/drm/radeon/r600_cs.c
1405
val = max(1U, size >> level);
drivers/gpu/drm/radeon/r600_cs.c
270
*pitch_align = max((u32)64, (u32)(values->group_size / values->blocksize));
drivers/gpu/drm/radeon/r600_cs.c
276
*pitch_align = max((u32)tile_width,
drivers/gpu/drm/radeon/r600_cs.c
284
*pitch_align = max((u32)macro_tile_width * tile_width,
drivers/gpu/drm/radeon/r600_cs.c
289
*base_align = max(macro_tile_bytes,
drivers/gpu/drm/radeon/radeon_display.c
1080
fb_div_min = max(fb_div_min, (9 - (fb_div % 10)) * 20 + 50);
drivers/gpu/drm/radeon/radeon_fence.c
743
dst->sync_seq[i] = max(dst->sync_seq[i], src->sync_seq[i]);
drivers/gpu/drm/radeon/radeon_object.c
463
return max(bytes_moved_threshold, 1024*1024ull);
drivers/gpu/drm/radeon/radeon_uvd.c
400
tmp = max(width_in_mb, height_in_mb);
drivers/gpu/drm/radeon/rv740_dpm.c
106
if (data_rate < dll_speed_table[0].max) {
drivers/gpu/drm/radeon/rv740_dpm.c
109
data_rate <= dll_speed_table[i].max)
drivers/gpu/drm/radeon/rv740_dpm.c
69
u16 max;
drivers/gpu/drm/radeon/rv770_dpm.c
1236
u16 min, max, step;
drivers/gpu/drm/radeon/rv770_dpm.c
1242
radeon_atom_get_max_voltage(rdev, SET_VOLTAGE_TYPE_ASIC_VDDC, &max);
drivers/gpu/drm/radeon/rv770_dpm.c
1245
steps = (max - min) / step + 1;
drivers/gpu/drm/radeon/si_dpm.c
2469
u16 *max, u16 *min)
drivers/gpu/drm/radeon/si_dpm.c
2481
*max = 0;
drivers/gpu/drm/radeon/si_dpm.c
2485
if (table->entries[i].vddc > *max)
drivers/gpu/drm/radeon/si_dpm.c
2486
*max = table->entries[i].vddc;
drivers/gpu/drm/radeon/si_dpm.c
2501
if ((*min > *max) || (*max == 0) || (*min == 0))
drivers/gpu/drm/radeon/si_dpm.c
2507
static u16 si_get_cac_std_voltage_step(u16 max, u16 min)
drivers/gpu/drm/radeon/si_dpm.c
2509
return ((max - min) + (SMC_SISLANDS_LKGE_LUT_NUM_OF_VOLT_ENTRIES - 1)) /
drivers/gpu/drm/renesas/rcar-du/rcar_lvds.c
242
div = max(1UL, DIV_ROUND_CLOSEST(fout, target));
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
100
.fvco = { .min = 1050 * MEGA, .max = 2100 * MEGA },
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
101
.m = { .min = 64, .max = 1023 },
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
102
.p = { .min = 1, .max = 4 },
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
103
.s = { .min = 0, .max = 5 },
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
104
.k = { .min = -32768, .max = 32767 },
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
99
.fout = { .min = 80 * MEGA, .max = 1500 * MEGA },
drivers/gpu/drm/sprd/megacores_pll.c
268
range[L] = max(8 * t_ui, 60 * scale + 4 * t_ui);
drivers/gpu/drm/sti/sti_hdmi_tx3g4c28phy.c
46
uint32_t max;
drivers/gpu/drm/sti/sti_hdmi_tx3g4c28phy.c
87
ckpxpll < plldividers[i].max) {
drivers/gpu/drm/sti/sti_hqvdp.c
744
lfw /= max(src_w, dst_w) * mode->clock / 1000;
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
558
hsa = max(HSA_PACKET_OVERHEAD,
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
567
hbp = max(HBP_PACKET_OVERHEAD,
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
577
hfp = max(HFP_PACKET_OVERHEAD,
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
586
hblk = max(HBLK_PACKET_OVERHEAD,
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c
600
bytes = max_t(size_t, max(max(hfp, hblk), max(hsa, hbp)), vblk);
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
144
do_div(ability, mode->vdisplay * fps * max(src_w, dst_w));
drivers/gpu/drm/sysfb/drm_sysfb.c
13
u64 value, u32 max)
drivers/gpu/drm/sysfb/drm_sysfb.c
15
if (value > min(max, INT_MAX)) {
drivers/gpu/drm/sysfb/drm_sysfb.c
16
drm_warn(dev, "%s of %llu exceeds maximum of %u\n", name, value, max);
drivers/gpu/drm/sysfb/drm_sysfb.c
24
u64 value, u32 max)
drivers/gpu/drm/sysfb/drm_sysfb.c
30
return drm_sysfb_get_validated_int(dev, name, value, max);
drivers/gpu/drm/sysfb/drm_sysfb_helper.h
36
u64 value, u32 max);
drivers/gpu/drm/sysfb/drm_sysfb_helper.h
38
u64 value, u32 max);
drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c
14
u64 value, u64 max)
drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c
19
} else if (value > min(max, S64_MAX)) {
drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c
20
drm_warn(dev, "%s of %llu exceeds maximum of %llu\n", name, value, max);
drivers/gpu/drm/tegra/dc.c
134
int max;
drivers/gpu/drm/tegra/dc.c
137
max = 15;
drivers/gpu/drm/tegra/dc.c
141
max = 8;
drivers/gpu/drm/tegra/dc.c
148
max = 4;
drivers/gpu/drm/tegra/dc.c
157
dda_inc = min_t(u32, dda_inc, dfixed_const(max));
drivers/gpu/drm/tegra/dc.c
2080
new_avg_bw = max(old_avg_bw, new_avg_bw);
drivers/gpu/drm/tegra/dc.c
2081
new_peak_bw = max(old_peak_bw, new_peak_bw);
drivers/gpu/drm/tegra/dc.c
2476
overlap_bw = max(overlap_bw, plane_peak_bw[i]);
drivers/gpu/drm/tegra/mipi-phy.c
112
if (timing->hstrail < max(8 * period, 60 + 4 * period))
drivers/gpu/drm/tegra/mipi-phy.c
46
timing->hstrail = max(4 * 8 * period, 60 + 4 * 4 * period);
drivers/gpu/drm/tests/drm_buddy_test.c
140
ps = max(SZ_4K, ps);
drivers/gpu/drm/tests/drm_buddy_test.c
225
size = max(round_up(prandom_u32_state(&prng) % bias_rem, ps), ps);
drivers/gpu/drm/tests/drm_buddy_test.c
247
size = max(round_up(prandom_u32_state(&prng) % bias_rem, ps), ps);
drivers/gpu/drm/tests/drm_buddy_test.c
248
size = max(size, ps);
drivers/gpu/drm/tests/drm_buddy_test.c
286
bias_end = max(bias_end, bias_start + ps);
drivers/gpu/drm/tests/drm_buddy_test.c
290
u32 size = max(round_up(prandom_u32_state(&prng) % bias_rem, ps), ps);
drivers/gpu/drm/tests/drm_buddy_test.c
344
bias_end = max(bias_end, bias_start + ps);
drivers/gpu/drm/tests/drm_buddy_test.c
348
size = max(round_up(prandom_u32_state(&prng) % bias_rem, ps), ps);
drivers/gpu/drm/tests/drm_mm_test.c
242
static void drm_test_mm_align_pot(struct kunit *test, int max)
drivers/gpu/drm/tests/drm_mm_test.c
252
for (bit = max - 1; bit; bit--) {
drivers/gpu/drm/tiny/appletbdrm.c
682
drm->mode_config.max_width = max(adev->height, DRM_SHADOW_PLANE_MAX_WIDTH);
drivers/gpu/drm/tiny/appletbdrm.c
683
drm->mode_config.max_height = max(adev->width, DRM_SHADOW_PLANE_MAX_HEIGHT);
drivers/gpu/drm/tiny/arcpgu.c
150
if ((max(rate, clk_rate) - min(rate, clk_rate) < diff) && (rate > 0))
drivers/gpu/drm/tiny/gm12u320.c
423
rect->x2 = max(rect->x2, dirty->x2);
drivers/gpu/drm/tiny/gm12u320.c
424
rect->y2 = max(rect->y2, dirty->y2);
drivers/gpu/drm/ttm/ttm_execbuf_util.c
102
num_fences = max(entry->num_shared, 1u);
drivers/gpu/drm/v3d/v3d_perfmon.c
201
unsigned int max = 0;
drivers/gpu/drm/v3d/v3d_perfmon.c
205
max = ARRAY_SIZE(v3d_v71_performance_counters);
drivers/gpu/drm/v3d/v3d_perfmon.c
208
max = ARRAY_SIZE(v3d_v42_performance_counters);
drivers/gpu/drm/v3d/v3d_perfmon.c
211
v3d->perfmon_info.max_counters = max;
drivers/gpu/drm/vboxvideo/vbox_mode.c
433
min_t(u32, max(new_state->hotspot_x, 0), width),
drivers/gpu/drm/vboxvideo/vbox_mode.c
434
min_t(u32, max(new_state->hotspot_y, 0), height),
drivers/gpu/drm/vc4/vc4_bo.c
203
uint32_t new_size = max(vc4->bo_cache.size_list_size * 2,
drivers/gpu/drm/vc4/vc4_crtc.c
763
vc4_state->hvs_load = max(mode->clock * mode->hdisplay / mode->htotal + 8000,
drivers/gpu/drm/vc4/vc4_dsi.c
1055
VC4_SET_FIELD(max(dsi_hs_timing(ui_ns, 0, 8),
drivers/gpu/drm/vc4/vc4_kms.c
1062
hvs_new_state->core_clock_rate = max(cob_rate, pixel_rate);
drivers/gpu/drm/vc4/vc4_kms.c
431
unsigned long state_rate = max(old_hvs_state->core_clock_rate,
drivers/gpu/drm/vc4/vc4_plane.c
387
u32 new_size = max(4u, vc4_state->dlist_count * 2);
drivers/gpu/drm/vc4/vc4_plane.c
794
return max(vc4_lbm_channel_size(state, 0),
drivers/gpu/drm/vc4/vc4_validate.c
698
uint32_t level_width = max(width >> i, 1u);
drivers/gpu/drm/vc4/vc4_validate.c
699
uint32_t level_height = max(height >> i, 1u);
drivers/gpu/drm/vc4/vc4_validate_shaders.c
710
max_branch_target = max(max_branch_target, after_delay_ip);
drivers/gpu/drm/vkms/vkms_composer.c
337
*pixel_count = max(0, (int)current_plane->frame_info->fb->width -
drivers/gpu/drm/vkms/vkms_composer.c
348
*pixel_count = max(0, (int)current_plane->frame_info->fb->height -
drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h
683
float max;
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
100
uint32_t max;
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
140
max = vmw_fifo_mem_read(dev_priv, SVGA_FIFO_MAX);
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
146
(unsigned int) max,
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
150
if (unlikely(min >= max)) {
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
189
uint32_t max = vmw_fifo_mem_read(dev_priv, SVGA_FIFO_MAX);
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
194
return ((max - next_cmd) + (stop - min) <= bytes);
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
282
uint32_t max;
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
289
max = vmw_fifo_mem_read(dev_priv, SVGA_FIFO_MAX);
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
293
if (unlikely(bytes >= (max - min)))
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
307
if (likely((next_cmd + bytes < max ||
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
308
(next_cmd + bytes == max && stop > min))))
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
388
uint32_t max, uint32_t min, uint32_t bytes)
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
391
uint32_t chunk_size = max - next_cmd;
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
410
uint32_t max, uint32_t min, uint32_t bytes)
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
418
if (unlikely(next_cmd == max))
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
431
uint32_t max = vmw_fifo_mem_read(dev_priv, SVGA_FIFO_MAX);
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
443
next_cmd, max, min, bytes);
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
446
next_cmd, max, min, bytes);
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
458
if (next_cmd >= max)
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c
459
next_cmd -= max - min;
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
95
w = max(w, crtc->x + crtc->mode.hdisplay);
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
96
h = max(h, crtc->y + crtc->mode.vdisplay);
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c
434
reply_len = max(reply_len - 2, (size_t) 0);
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c
313
cur = max(res_start, dirty->start);
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c
314
res_end = max(res_end, dirty->end);
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c
349
cur = max(res_start, dirty->start);
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c
350
res_end = max(res_end, dirty->end);
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c
391
res_start = max(res_start, dirty->start);
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c
434
dirty->end = max(dirty->end, page_offset + 1);
drivers/gpu/drm/xe/display/xe_fb_pin.c
241
align = max(align, SZ_64K);
drivers/gpu/drm/xe/tests/xe_guc_g2g_test.c
543
u32 max = xe->info.gt_count;
drivers/gpu/drm/xe/tests/xe_guc_g2g_test.c
550
idx = g2g_slot_flat(near_tile, near_dev, far_tile, far_dev, type, max, have_dev);
drivers/gpu/drm/xe/xe_bo.h
416
size_t max = BIT_ULL(sizeof(sg.length) * 8) - 1;
drivers/gpu/drm/xe/xe_bo.h
418
max = min_t(size_t, max, dma_max_mapping_size(dev));
drivers/gpu/drm/xe/xe_bo.h
427
return round_down(max / 2, PAGE_SIZE);
drivers/gpu/drm/xe/xe_exec_queue.c
588
u32 *min, u32 *max)
drivers/gpu/drm/xe/xe_exec_queue.c
593
*max = eclass->sched_props.job_timeout_max;
drivers/gpu/drm/xe/xe_exec_queue.c
597
*max = eclass->sched_props.timeslice_max;
drivers/gpu/drm/xe/xe_exec_queue.c
601
*max = eclass->sched_props.preempt_timeout_max;
drivers/gpu/drm/xe/xe_exec_queue.c
611
*max = XE_HW_ENGINE_JOB_TIMEOUT_MAX;
drivers/gpu/drm/xe/xe_exec_queue.c
615
*max = XE_HW_ENGINE_TIMESLICE_MAX;
drivers/gpu/drm/xe/xe_exec_queue.c
619
*max = XE_HW_ENGINE_PREEMPT_TIMEOUT_MAX;
drivers/gpu/drm/xe/xe_exec_queue.c
631
u32 min = 0, max = 0;
drivers/gpu/drm/xe/xe_exec_queue.c
634
XE_EXEC_QUEUE_TIMESLICE, &min, &max);
drivers/gpu/drm/xe/xe_exec_queue.c
637
!xe_hw_engine_timeout_in_range(value, min, max))
drivers/gpu/drm/xe/xe_ggtt.c
1159
hole_start = max(hole_start, ggtt->start);
drivers/gpu/drm/xe/xe_ggtt.c
981
hole_start = max(hole_start, ggtt->start);
drivers/gpu/drm/xe/xe_ggtt.c
989
max_hole = max(max_hole, hole_size);
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
1249
return max(xe_lrc_reg_size(xe), LRC_WA_BB_SIZE);
drivers/gpu/drm/xe/xe_gt_topology.c
341
dss_per_quad = 32 * max(g_dss_regs, c_dss_regs) / 4;
drivers/gpu/drm/xe/xe_guc.c
412
u32 max = xe->info.gt_count;
drivers/gpu/drm/xe/xe_guc.c
422
slot = g2g_slot(near_tile, near_dev, far_tile, far_dev, type, max, have_dev);
drivers/gpu/drm/xe/xe_guc_buf.c
69
return guc_buf_cache_init(cache, max(XE_GUC_BUF_CACHE_DEFAULT_SIZE, size));
drivers/gpu/drm/xe/xe_guc_pc.c
1105
u32 max = DIV_ROUND_CLOSEST(pc->rp0_freq, GT_FREQUENCY_MULTIPLIER);
drivers/gpu/drm/xe/xe_guc_pc.c
1107
XE_WARN_ON(xe_pcode_init_min_freq_table(gt_to_tile(pc_to_gt(pc)), min, max));
drivers/gpu/drm/xe/xe_guc_pc.c
889
ret = pc_set_min_freq(pc, max(BMG_MIN_FREQ, pc_get_min_freq(pc)));
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c
166
u32 max = eclass->sched_props.job_timeout_max;
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c
174
if (!xe_hw_engine_timeout_in_range(timeout, min, max))
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c
232
u32 max = eclass->sched_props.timeslice_max;
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c
240
if (!xe_hw_engine_timeout_in_range(duration, min, max))
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c
30
bool xe_hw_engine_timeout_in_range(u64 timeout, u64 min, u64 max)
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c
32
return timeout >= min && timeout <= max;
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c
375
u32 max = eclass->sched_props.preempt_timeout_max;
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c
383
if (!xe_hw_engine_timeout_in_range(timeout, min, max))
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.h
15
bool xe_hw_engine_timeout_in_range(u64 timeout, u64 min, u64 max);
drivers/gpu/drm/xe/xe_hwmon.c
359
u64 pkg_pwr, min, max;
drivers/gpu/drm/xe/xe_hwmon.c
363
max = REG_FIELD_GET(PKG_MAX_PWR, pkg_pwr);
drivers/gpu/drm/xe/xe_hwmon.c
365
max = mul_u64_u32_shr(max, SF_POWER, hwmon->scl_shift_power);
drivers/gpu/drm/xe/xe_hwmon.c
366
if (min && max)
drivers/gpu/drm/xe/xe_hwmon.c
367
*value = clamp_t(u64, *value, min, max);
drivers/gpu/drm/xe/xe_hwmon.c
377
u32 reg_val, max;
drivers/gpu/drm/xe/xe_hwmon.c
426
max = (attr == PL1_HWMON_ATTR) ?
drivers/gpu/drm/xe/xe_hwmon.c
428
max = REG_FIELD_PREP(PWR_LIM_VAL, max);
drivers/gpu/drm/xe/xe_hwmon.c
429
if (reg_val > max) {
drivers/gpu/drm/xe/xe_hwmon.c
430
reg_val = max;
drivers/gpu/drm/xe/xe_svm.c
1017
max(start, xe_vma_start(vma)),
drivers/gpu/drm/xe/xe_svm.c
1465
r = drm_gpusvm_range_find_or_insert(&vm->svm.gpusvm, max(addr, xe_vma_start(vma)),
drivers/gpu/drm/xe/xe_svm.c
1524
adj_start = max(start, drm_gpusvm_notifier_start(notifier));
drivers/gpu/drm/xe/xe_svm.c
175
*adj_end = max(xe_svm_range_end(range), mmu_range->end);
drivers/gpu/drm/xe/xe_svm.c
244
adj_start = max(drm_gpusvm_notifier_start(notifier), adj_start);
drivers/gpu/host1x/debug.c
104
if (!show_all && !min && !max && !waiters)
drivers/gpu/host1x/debug.c
109
i, m->syncpt[i].name, min, max, waiters);
drivers/gpu/host1x/debug.c
92
u32 max = host1x_syncpt_read_max(m->syncpt + i);
drivers/gpu/host1x/syncpt.h
76
u32 max;
drivers/gpu/host1x/syncpt.h
79
max = host1x_syncpt_read_max(sp);
drivers/gpu/host1x/syncpt.h
80
return (s32)(max - real) >= 0;
drivers/gpu/host1x/syncpt.h
95
int min, max;
drivers/gpu/host1x/syncpt.h
98
max = atomic_read(&sp->max_val);
drivers/gpu/host1x/syncpt.h
99
return (min == max);
drivers/gpu/ipu-v3/ipu-image-convert.c
1934
unsigned int max, unsigned int align)
drivers/gpu/ipu-v3/ipu-image-convert.c
1940
x = clamp(x, (min + ~mask) & mask, max & mask);
drivers/hid/bpf/hid_bpf_dispatch.c
239
max_report_len = max(max_report_len, hid_report_len(report));
drivers/hid/bpf/progs/XPPen__ArtistPro16Gen2.bpf.c
229
__u16 max = logical_maximum - compensation;
drivers/hid/bpf/progs/XPPen__ArtistPro16Gen2.bpf.c
231
coords = (coords < max) ? coords + compensation : logical_maximum;
drivers/hid/hid-a4tech.c
36
unsigned long **bit, int *max)
drivers/hid/hid-a4tech.c
58
unsigned long **bit, int *max)
drivers/hid/hid-accutouch.c
23
unsigned long **bit, int *max)
drivers/hid/hid-accutouch.c
26
hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_TOUCH);
drivers/hid/hid-alps.c
777
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-apple.c
721
unsigned long **bit, int *max)
drivers/hid/hid-apple.c
730
hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_FN);
drivers/hid/hid-apple.c
742
unsigned long **bit, int *max)
drivers/hid/hid-apple.c
748
hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL);
drivers/hid/hid-apple.c
750
hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_2);
drivers/hid/hid-apple.c
752
hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_1);
drivers/hid/hid-appleir.c
276
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-asus.c
1012
max, EV_KEY, (c))
drivers/hid/hid-asus.c
1016
int *max)
drivers/hid/hid-belkin.c
24
#define belkin_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
drivers/hid/hid-belkin.c
28
unsigned long **bit, int *max)
drivers/hid/hid-cherry.c
36
#define ch_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
drivers/hid/hid-cherry.c
40
unsigned long **bit, int *max)
drivers/hid/hid-chicony.c
57
#define ch_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
drivers/hid/hid-chicony.c
61
unsigned long **bit, int *max)
drivers/hid/hid-cmedia.c
138
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-corsair.c
631
int *max)
drivers/hid/hid-corsair.c
640
hid_map_usage_clear(input, usage, bit, max, EV_KEY,
drivers/hid/hid-corsair.c
648
hid_map_usage_clear(input, usage, bit, max, EV_KEY,
drivers/hid/hid-corsair.c
653
hid_map_usage_clear(input, usage, bit, max, EV_KEY,
drivers/hid/hid-corsair.c
658
hid_map_usage_clear(input, usage, bit, max, EV_KEY,
drivers/hid/hid-corsair.c
663
hid_map_usage_clear(input, usage, bit, max, EV_KEY,
drivers/hid/hid-corsair.c
668
hid_map_usage_clear(input, usage, bit, max, EV_KEY,
drivers/hid/hid-creative-sb0540.c
211
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-cypress.c
85
unsigned long **bit, int *max)
drivers/hid/hid-dr.c
245
#define map_abs(c) hid_map_usage(hi, usage, bit, max, EV_ABS, (c))
drivers/hid/hid-dr.c
246
#define map_rel(c) hid_map_usage(hi, usage, bit, max, EV_REL, (c))
drivers/hid/hid-dr.c
250
unsigned long **bit, int *max)
drivers/hid/hid-elan.c
65
unsigned long **bit, int *max)
drivers/hid/hid-evision.c
19
unsigned long **bit, int *max)
drivers/hid/hid-ezkey.c
22
#define ez_map_rel(c) hid_map_usage(hi, usage, bit, max, EV_REL, (c))
drivers/hid/hid-ezkey.c
23
#define ez_map_key(c) hid_map_usage(hi, usage, bit, max, EV_KEY, (c))
drivers/hid/hid-ezkey.c
27
unsigned long **bit, int *max)
drivers/hid/hid-gfrm.c
29
unsigned long **bit, int *max)
drivers/hid/hid-gfrm.c
36
hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_INFO);
drivers/hid/hid-gfrm.c
42
hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_OK);
drivers/hid/hid-goodix-spi.c
283
unsigned int *max)
drivers/hid/hid-goodix-spi.c
290
if (*max < size)
drivers/hid/hid-goodix-spi.c
291
*max = size;
drivers/hid/hid-google-hammer.c
373
unsigned long **bit, int *max)
drivers/hid/hid-google-hammer.c
62
msg = kzalloc_flex(*msg, data, max(sizeof(u32), sizeof(*params)));
drivers/hid/hid-gyration.c
22
#define gy_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
drivers/hid/hid-gyration.c
26
unsigned long **bit, int *max)
drivers/hid/hid-haptic.c
420
haptic->max_waveform_id = max(2u, haptic->max_waveform_id);
drivers/hid/hid-haptic.c
421
haptic->max_duration_id = max(2u, haptic->max_duration_id);
drivers/hid/hid-haptic.c
69
unsigned long **bit, int *max)
drivers/hid/hid-haptic.h
68
unsigned long **bit, int *max);
drivers/hid/hid-haptic.h
95
unsigned long **bit, int *max)
drivers/hid/hid-icade.c
190
unsigned long **bit, int *max)
drivers/hid/hid-icade.c
200
hid_map_usage(hi, usage, bit, max, EV_KEY, trans->to);
drivers/hid/hid-icade.c
213
unsigned long **bit, int *max)
drivers/hid/hid-input.c
100
#define map_msc(c) hid_map_usage(hidinput, usage, &bit, &max, EV_MSC, (c))
drivers/hid/hid-input.c
103
&max, EV_ABS, (c))
drivers/hid/hid-input.c
105
&max, EV_KEY, (c))
drivers/hid/hid-input.c
1396
&bit, &max) < 0) {
drivers/hid/hid-input.c
1421
while (usage->code <= max && test_and_set_bit(usage->code, bit)) {
drivers/hid/hid-input.c
1424
max + 1,
drivers/hid/hid-input.c
1432
if (usage->code > max)
drivers/hid/hid-input.c
1460
for (i = usage->code; i < usage->code + 2 && i <= max; i++) {
drivers/hid/hid-input.c
520
s32 min, max;
drivers/hid/hid-input.c
553
max = field->logical_maximum;
drivers/hid/hid-input.c
557
max = 100;
drivers/hid/hid-input.c
564
dev->battery_max = max;
drivers/hid/hid-input.c
694
int max = 0, code;
drivers/hid/hid-input.c
738
usage, &bit, &max);
drivers/hid/hid-input.c
96
#define map_abs(c) hid_map_usage(hidinput, usage, &bit, &max, EV_ABS, (c))
drivers/hid/hid-input.c
97
#define map_rel(c) hid_map_usage(hidinput, usage, &bit, &max, EV_REL, (c))
drivers/hid/hid-input.c
98
#define map_key(c) hid_map_usage(hidinput, usage, &bit, &max, EV_KEY, (c))
drivers/hid/hid-input.c
99
#define map_led(c) hid_map_usage(hidinput, usage, &bit, &max, EV_LED, (c))
drivers/hid/hid-ite.c
44
int *max)
drivers/hid/hid-ite.c
53
hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_F22);
drivers/hid/hid-ite.c
58
hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_F23);
drivers/hid/hid-jabra.c
23
unsigned long **bit, int *max)
drivers/hid/hid-kensington.c
18
#define ks_map_key(c) hid_map_usage(hi, usage, bit, max, EV_KEY, (c))
drivers/hid/hid-kensington.c
22
unsigned long **bit, int *max)
drivers/hid/hid-lcpower.c
18
#define ts_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
drivers/hid/hid-lcpower.c
22
unsigned long **bit, int *max)
drivers/hid/hid-lenovo.c
201
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-lenovo.c
214
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-lenovo.c
273
hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL);
drivers/hid/hid-lenovo.c
276
hid_map_usage(hi, usage, bit, max, EV_REL, REL_WHEEL);
drivers/hid/hid-lenovo.c
288
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-lenovo.c
368
hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL);
drivers/hid/hid-lenovo.c
371
hid_map_usage(hi, usage, bit, max, EV_REL, REL_WHEEL);
drivers/hid/hid-lenovo.c
383
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-lenovo.c
386
hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL);
drivers/hid/hid-lenovo.c
394
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-lenovo.c
432
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-lenovo.c
480
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-lenovo.c
485
usage, bit, max);
drivers/hid/hid-lenovo.c
489
usage, bit, max);
drivers/hid/hid-lenovo.c
493
usage, bit, max);
drivers/hid/hid-lenovo.c
501
usage, bit, max);
drivers/hid/hid-lenovo.c
504
usage, bit, max);
drivers/hid/hid-lenovo.c
510
return lenovo_input_mapping_x1_tab_kbd(hdev, hi, field, usage, bit, max);
drivers/hid/hid-lenovo.c
70
#define map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c))
drivers/hid/hid-lg.c
535
#define lg_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
drivers/hid/hid-lg.c
539
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-lg.c
572
unsigned long **bit, int *max)
drivers/hid/hid-lg.c
634
unsigned long **bit, int *max)
drivers/hid/hid-lg.c
652
lg_ultrax_remote_mapping(hi, usage, bit, max))
drivers/hid/hid-lg.c
655
if ((drv_data->quirks & LG_WIRELESS) && lg_wireless_mapping(hi, usage, bit, max))
drivers/hid/hid-lg.c
672
hid_map_usage(hi, usage, bit, max, EV_KEY,
drivers/hid/hid-lg.c
683
unsigned long **bit, int *max)
drivers/hid/hid-logitech-hidpp.c
101
#define lg_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c))
drivers/hid/hid-logitech-hidpp.c
2921
unsigned long **bit, int *max)
drivers/hid/hid-logitech-hidpp.c
3320
unsigned long **bit, int *max)
drivers/hid/hid-logitech-hidpp.c
3491
unsigned long **bit, int *max)
drivers/hid/hid-logitech-hidpp.c
3768
unsigned long **bit, int *max)
drivers/hid/hid-logitech-hidpp.c
3776
return wtp_input_mapping(hdev, hi, field, usage, bit, max);
drivers/hid/hid-logitech-hidpp.c
3779
return m560_input_mapping(hdev, hi, field, usage, bit, max);
drivers/hid/hid-logitech-hidpp.c
3782
return lg_dinovo_input_mapping(hdev, hi, field, usage, bit, max);
drivers/hid/hid-logitech-hidpp.c
3789
unsigned long **bit, int *max)
drivers/hid/hid-magicmouse.c
703
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-microsoft.c
115
hid_map_usage_clear(hi, usage, bit, max, EV_REL, REL_WHEEL);
drivers/hid/hid-microsoft.c
143
unsigned long **bit, int *max)
drivers/hid/hid-microsoft.c
162
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-microsoft.c
184
unsigned long **bit, int *max)
drivers/hid/hid-microsoft.c
190
int ret = ms_ergonomy_kb_quirk(hi, usage, bit, max);
drivers/hid/hid-microsoft.c
196
ms_presenter_8k_quirk(hi, usage, bit, max))
drivers/hid/hid-microsoft.c
200
int ret = ms_surface_dial_quirk(hi, field, usage, bit, max);
drivers/hid/hid-microsoft.c
211
unsigned long **bit, int *max)
drivers/hid/hid-microsoft.c
78
#define ms_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
drivers/hid/hid-microsoft.c
81
unsigned long **bit, int *max)
drivers/hid/hid-monterey.c
31
#define mr_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
drivers/hid/hid-monterey.c
35
unsigned long **bit, int *max)
drivers/hid/hid-multitouch.c
1180
int major = max(*slot->w, *slot->h);
drivers/hid/hid-multitouch.c
1459
max, EV_KEY, (c))
drivers/hid/hid-multitouch.c
1462
unsigned long **bit, int *max)
drivers/hid/hid-multitouch.c
1520
return mt_touch_input_mapping(hdev, hi, field, usage, bit, max,
drivers/hid/hid-multitouch.c
1531
max);
drivers/hid/hid-multitouch.c
1541
unsigned long **bit, int *max)
drivers/hid/hid-multitouch.c
1663
int max;
drivers/hid/hid-multitouch.c
1695
max = min_t(int, field->logical_maximum,
drivers/hid/hid-multitouch.c
1697
if (field->value[index] != max) {
drivers/hid/hid-multitouch.c
1698
field->value[index] = max;
drivers/hid/hid-multitouch.c
796
unsigned long **bit, int *max, struct mt_application *app)
drivers/hid/hid-multitouch.c
992
hid_map_usage(hi, usage, bit, max, EV_KEY, code);
drivers/hid/hid-nintendo.c
1084
cal_x->max = cal_x->center + x_max_above;
drivers/hid/hid-nintendo.c
1086
cal_y->max = cal_y->center + y_max_above;
drivers/hid/hid-nintendo.c
1090
if (cal_x->min >= cal_x->center || cal_x->center >= cal_x->max ||
drivers/hid/hid-nintendo.c
1091
cal_y->min >= cal_y->center || cal_y->center >= cal_y->max)
drivers/hid/hid-nintendo.c
1110
cal_x->max = cal_y->max = DFLT_STICK_CAL_MAX;
drivers/hid/hid-nintendo.c
1166
ctlr->left_stick_cal_x.max,
drivers/hid/hid-nintendo.c
1169
ctlr->left_stick_cal_y.max,
drivers/hid/hid-nintendo.c
1172
ctlr->right_stick_cal_x.max,
drivers/hid/hid-nintendo.c
1175
ctlr->right_stick_cal_y.max,
drivers/hid/hid-nintendo.c
1325
s32 max = cal->max;
drivers/hid/hid-nintendo.c
1330
new_val /= (max - center);
drivers/hid/hid-nintendo.c
327
s32 max;
drivers/hid/hid-ntrig.c
456
unsigned long **bit, int *max)
drivers/hid/hid-ntrig.c
468
hid_map_usage(hi, usage, bit, max,
drivers/hid/hid-ntrig.c
490
hid_map_usage(hi, usage, bit, max,
drivers/hid/hid-ntrig.c
525
hid_map_usage(hi, usage, bit, max,
drivers/hid/hid-ntrig.c
529
hid_map_usage(hi, usage, bit, max,
drivers/hid/hid-ntrig.c
547
unsigned long **bit, int *max)
drivers/hid/hid-nvidia-shield.c
23
#define android_map_key(c) hid_map_usage(hi, usage, bit, max, EV_KEY, (c))
drivers/hid/hid-nvidia-shield.c
936
int *max)
drivers/hid/hid-penmount.c
20
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-penmount.c
24
hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_TOUCH);
drivers/hid/hid-petalynx.c
35
#define pl_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
drivers/hid/hid-petalynx.c
39
unsigned long **bit, int *max)
drivers/hid/hid-plantronics.c
125
hid_map_usage_clear(hi, usage, bit, max, EV_KEY, mapped_key);
drivers/hid/hid-plantronics.c
51
unsigned long **bit, int *max)
drivers/hid/hid-prodikeys.c
751
unsigned long **bit, int *max)
drivers/hid/hid-razer.c
19
#define map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c))
drivers/hid/hid-razer.c
46
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-rmi.c
541
struct hid_usage *usage, unsigned long **bit, int *max)
drivers/hid/hid-samsung.c
144
unsigned long **bit, int *max)
drivers/hid/hid-samsung.c
237
unsigned long **bit, int *max)
drivers/hid/hid-samsung.c
328
unsigned long **bit, int *max)
drivers/hid/hid-samsung.c
351
unsigned long **bit, int *max)
drivers/hid/hid-samsung.c
482
unsigned long **bit, int *max)
drivers/hid/hid-samsung.c
488
hi, field, usage, bit, max);
drivers/hid/hid-samsung.c
491
hi, field, usage, bit, max);
drivers/hid/hid-samsung.c
494
hi, field, usage, bit, max);
drivers/hid/hid-samsung.c
497
hi, field, usage, bit, max);
drivers/hid/hid-samsung.c
500
hi, field, usage, bit, max);
drivers/hid/hid-samsung.c
503
hi, field, usage, bit, max);
drivers/hid/hid-samsung.c
85
hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c))
drivers/hid/hid-samsung.c
89
unsigned long **bit, int *max)
drivers/hid/hid-sony.c
1065
unsigned long **bit, int *max)
drivers/hid/hid-sony.c
1088
hid_map_usage_clear(hi, usage, bit, max, EV_KEY, key);
drivers/hid/hid-sony.c
1093
return ps3remote_mapping(hdev, hi, field, usage, bit, max);
drivers/hid/hid-sony.c
1096
return navigation_mapping(hdev, hi, field, usage, bit, max);
drivers/hid/hid-sony.c
1099
return sixaxis_mapping(hdev, hi, field, usage, bit, max);
drivers/hid/hid-sony.c
1102
return gh_guitar_mapping(hdev, hi, field, usage, bit, max);
drivers/hid/hid-sony.c
1105
return rb4_guitar_mapping(hdev, hi, field, usage, bit, max);
drivers/hid/hid-sony.c
1108
return rb4_guitar_mapping(hdev, hi, field, usage, bit, max);
drivers/hid/hid-sony.c
1243
max(SIXAXIS_REPORT_0xF2_SIZE, SIXAXIS_REPORT_0xF5_SIZE);
drivers/hid/hid-sony.c
1646
report->rumble = max(sc->right, sc->left);
drivers/hid/hid-sony.c
615
unsigned long **bit, int *max)
drivers/hid/hid-sony.c
621
hid_map_usage_clear(hi, usage, bit, max, EV_ABS, ABS_RY);
drivers/hid/hid-sony.c
630
unsigned long **bit, int *max)
drivers/hid/hid-sony.c
639
hid_map_usage_clear(hi, usage, bit, max, EV_KEY, key);
drivers/hid/hid-sony.c
652
hid_map_usage_clear(hi, usage, bit, max, EV_ABS, abs);
drivers/hid/hid-sony.c
675
unsigned long **bit, int *max)
drivers/hid/hid-sony.c
703
hid_map_usage_clear(hi, usage, bit, max, EV_KEY, key);
drivers/hid/hid-sony.c
709
unsigned long **bit, int *max)
drivers/hid/hid-sony.c
721
hid_map_usage_clear(hi, usage, bit, max, EV_KEY, key);
drivers/hid/hid-sony.c
737
hid_map_usage_clear(hi, usage, bit, max, EV_ABS, usage->hid & 0xf);
drivers/hid/hid-sony.c
747
hid_map_usage_clear(hi, usage, bit, max, EV_ABS, abs);
drivers/hid/hid-sony.c
757
unsigned long **bit, int *max)
drivers/hid/hid-sony.c
766
hid_map_usage_clear(hi, usage, bit, max, EV_KEY, key);
drivers/hid/hid-sony.c
786
hid_map_usage_clear(hi, usage, bit, max, EV_ABS, usage->hid & 0xf);
drivers/hid/hid-sony.c
796
hid_map_usage_clear(hi, usage, bit, max, EV_ABS, abs);
drivers/hid/hid-sony.c
947
max(contactx, contacty));
drivers/hid/hid-speedlink.c
27
unsigned long **bit, int *max)
drivers/hid/hid-steam.c
386
buf, max(size, 64) + 1,
drivers/hid/hid-sunplus.c
33
#define sp_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
drivers/hid/hid-sunplus.c
37
unsigned long **bit, int *max)
drivers/hid/hid-tivo.c
19
#define tivo_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
drivers/hid/hid-tivo.c
24
unsigned long **bit, int *max)
drivers/hid/hid-topseed.c
24
#define ts_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
drivers/hid/hid-topseed.c
28
unsigned long **bit, int *max)
drivers/hid/hid-twinhan.c
59
#define th_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
drivers/hid/hid-twinhan.c
63
unsigned long **bit, int *max)
drivers/hid/hid-u2fzero.c
198
size_t max, bool wait)
drivers/hid/hid-u2fzero.c
231
U2F_HID_MSG_LEN(resp), max);
drivers/hid/hid-uclogic-core.c
110
max,
drivers/hid/hid-uclogic-core.c
94
int *max)
drivers/hid/hid-udraw-ps3.c
51
int max;
drivers/hid/hid-udraw-ps3.c
94
accel_limits[offset].max);
drivers/hid/hid-udraw-ps3.c
96
((accel_limits[offset].max -
drivers/hid/hid-universal-pidff.c
27
unsigned long **bit, int *max)
drivers/hid/hid-universal-pidff.c
49
hid_map_usage(hi, usage, bit, max, EV_KEY, code);
drivers/hid/hid-winwing.c
177
unsigned long **bit, int *max)
drivers/hid/hid-winwing.c
199
hid_map_usage(hi, usage, bit, max, EV_KEY, code);
drivers/hid/hid-zydacron.c
43
hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c))
drivers/hid/hid-zydacron.c
47
unsigned long **bit, int *max)
drivers/hid/i2c-hid/i2c-hid-core.c
604
unsigned int *max)
drivers/hid/i2c-hid/i2c-hid-core.c
613
if (*max < size)
drivers/hid/i2c-hid/i2c-hid-core.c
614
*max = size;
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c
515
swdma_max_len = max(le16_to_cpu(qcdev->dev_desc.max_input_len),
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c
591
max_report_len = max(le16_to_cpu(qcdev->dev_desc.max_input_len), SZ_4K);
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c
600
max_report_len = max(le16_to_cpu(qcdev->dev_desc.max_output_len),
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c
548
max_input_len = max(le16_to_cpu(qsdev->dev_desc.rep_desc_len),
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c
555
max_report_len = max(le16_to_cpu(qsdev->dev_desc.max_output_len),
drivers/hid/usbhid/hid-core.c
841
unsigned int *max)
drivers/hid/usbhid/hid-core.c
848
if (*max < size)
drivers/hid/usbhid/hid-core.c
849
*max = size;
drivers/hid/usbhid/hid-pidff.c
326
static int pidff_rescale(int i, int max, struct hid_field *field)
drivers/hid/usbhid/hid-pidff.c
328
return i * (field->logical_maximum - field->logical_minimum) / max +
drivers/hid/wacom_wac.c
1449
input_report_abs(touch_input, ABS_MT_TOUCH_MAJOR, max(w, h));
drivers/hid/wacom_wac.c
2758
input_report_abs(input, ABS_MT_TOUCH_MAJOR, max(hid_data->width, hid_data->height));
drivers/hsi/controllers/omap_ssi_port.c
489
omap_port->channels = max(cl->rx_cfg.num_hw_channels,
drivers/hv/hyperv_vmbus.h
229
max(MAX_NUM_CHANNELS_SUPPORTED, HV_EVENT_FLAGS_COUNT)
drivers/hv/mshv_irq.c
36
nr_rt_entries = max(nr_rt_entries, ue[i].gsi);
drivers/hv/mshv_regions.c
530
mstart = max(range->start, region->start_uaddr);
drivers/hv/vmbus_drv.c
2458
resource_size_t min, resource_size_t max,
drivers/hv/vmbus_drv.c
2476
!(max < fb_mmio->start)) {
drivers/hv/vmbus_drv.c
2491
if ((iter->start >= max) || (iter->end <= min))
drivers/hwmon/asb100.c
267
set_in_reg(MAX, max)
drivers/hwmon/emc6w201.c
138
data->in[max][nr] =
drivers/hwmon/emc6w201.c
150
data->temp[max][nr] =
drivers/hwmon/emc6w201.c
305
static SENSOR_DEVICE_ATTR_2_RW(in0_max, in, 0, max);
drivers/hwmon/emc6w201.c
308
static SENSOR_DEVICE_ATTR_2_RW(in1_max, in, 1, max);
drivers/hwmon/emc6w201.c
311
static SENSOR_DEVICE_ATTR_2_RW(in2_max, in, 2, max);
drivers/hwmon/emc6w201.c
314
static SENSOR_DEVICE_ATTR_2_RW(in3_max, in, 3, max);
drivers/hwmon/emc6w201.c
317
static SENSOR_DEVICE_ATTR_2_RW(in4_max, in, 4, max);
drivers/hwmon/emc6w201.c
320
static SENSOR_DEVICE_ATTR_2_RW(in5_max, in, 5, max);
drivers/hwmon/emc6w201.c
324
static SENSOR_DEVICE_ATTR_2_RW(temp1_max, temp, 0, max);
drivers/hwmon/emc6w201.c
327
static SENSOR_DEVICE_ATTR_2_RW(temp2_max, temp, 1, max);
drivers/hwmon/emc6w201.c
330
static SENSOR_DEVICE_ATTR_2_RW(temp3_max, temp, 2, max);
drivers/hwmon/emc6w201.c
333
static SENSOR_DEVICE_ATTR_2_RW(temp4_max, temp, 3, max);
drivers/hwmon/emc6w201.c
336
static SENSOR_DEVICE_ATTR_2_RW(temp5_max, temp, 4, max);
drivers/hwmon/emc6w201.c
339
static SENSOR_DEVICE_ATTR_2_RW(temp6_max, temp, 5, max);
drivers/hwmon/lm63.c
129
#define UPDATE_INTERVAL(max, rate) \
drivers/hwmon/lm63.c
130
((1000 << (LM63_MAX_CONVRATE - (rate))) / (max))
drivers/hwmon/lm77.c
243
int i, cur, conf, hyst, crit, min, max;
drivers/hwmon/lm77.c
269
max = i2c_smbus_read_word_data(client, 5);
drivers/hwmon/lm77.c
275
|| i2c_smbus_read_word_data(client, i + 5) != max)
drivers/hwmon/lm77.c
284
|| ((max & 0x00f0) != 0xf0 && (max & 0x00f0) != 0x0))
drivers/hwmon/lm90.c
1417
val = max(val, -128000l);
drivers/hwmon/lm93.c
1045
data->block7[i].max =
drivers/hwmon/lm93.c
1204
rc = LM93_IN_FROM_REG(nr, data->block7[nr].max);
drivers/hwmon/lm93.c
1232
data->block7[nr].max = LM93_IN_TO_REG(nr, val);
drivers/hwmon/lm93.c
1234
data->block7[nr].max);
drivers/hwmon/lm93.c
1307
return sprintf(buf, "%d\n", LM93_TEMP_FROM_REG(data->temp_lim[nr].max));
drivers/hwmon/lm93.c
1325
data->temp_lim[nr].max = LM93_TEMP_TO_REG(val);
drivers/hwmon/lm93.c
1326
lm93_write_byte(client, LM93_REG_TEMP_MAX(nr), data->temp_lim[nr].max);
drivers/hwmon/lm93.c
231
u8 max;
drivers/hwmon/lm93.c
237
u8 max;
drivers/hwmon/lm93.c
938
data->temp_lim[i].max =
drivers/hwmon/ltc2992.c
121
u8 max;
drivers/hwmon/ltc2992.c
135
.max = LTC2992_G1_MAX,
drivers/hwmon/ltc2992.c
147
.max = LTC2992_G2_MAX,
drivers/hwmon/ltc2992.c
159
.max = LTC2992_G3_MAX,
drivers/hwmon/ltc2992.c
171
.max = LTC2992_G4_MAX,
drivers/hwmon/ltc2992.c
473
reg = ltc2992_gpio_addr_map[nr_gpio].max;
drivers/hwmon/macsmc-hwmon.c
283
&hwmon->fan.fans[chan].max, 1, val);
drivers/hwmon/macsmc-hwmon.c
296
long min, max;
drivers/hwmon/macsmc-hwmon.c
310
ret = macsmc_hwmon_read_key(hwmon->smc, &hwmon->fan.fans[channel].max,
drivers/hwmon/macsmc-hwmon.c
311
1, &max);
drivers/hwmon/macsmc-hwmon.c
315
if (val >= min && val <= max) {
drivers/hwmon/macsmc-hwmon.c
504
const char *label, *now, *min, *max, *set, *mode;
drivers/hwmon/macsmc-hwmon.c
536
if (!of_property_read_string(fan_node, "apple,fan-maximum", &max)) {
drivers/hwmon/macsmc-hwmon.c
537
ret = macsmc_hwmon_parse_key(dev, smc, &fan->max, max);
drivers/hwmon/macsmc-hwmon.c
57
struct macsmc_hwmon_sensor max;
drivers/hwmon/max6639.c
117
static int max6639_temp_read_max(struct device *dev, int channel, long *max)
drivers/hwmon/max6639.c
127
*max = (long)val * 1000;
drivers/hwmon/menf21bmc_hwmon.c
139
static SENSOR_DEVICE_ATTR_RO(in0_max, max, 0);
drivers/hwmon/menf21bmc_hwmon.c
143
static SENSOR_DEVICE_ATTR_RO(in1_max, max, 1);
drivers/hwmon/menf21bmc_hwmon.c
147
static SENSOR_DEVICE_ATTR_RO(in2_max, max, 2);
drivers/hwmon/menf21bmc_hwmon.c
151
static SENSOR_DEVICE_ATTR_RO(in3_max, max, 3);
drivers/hwmon/menf21bmc_hwmon.c
155
static SENSOR_DEVICE_ATTR_RO(in4_max, max, 4);
drivers/hwmon/mr75203.c
157
u8 max;
drivers/hwmon/mr75203.c
524
val = (BIT(pvt->vm_channels.max) - 1) | VM_CH_INIT |
drivers/hwmon/mr75203.c
645
pvt->vm_channels.max = ch_num;
drivers/hwmon/mr75203.c
657
if (vm_active_ch[i] > pvt->vm_channels.max)
drivers/hwmon/mr75203.c
658
pvt->vm_channels.max = vm_active_ch[i];
drivers/hwmon/nct7802.c
379
int volt, min, max, ret;
drivers/hwmon/nct7802.c
418
max = ret;
drivers/hwmon/nct7802.c
420
if (volt < min || volt > max)
drivers/hwmon/nzxt-smart2.c
218
return max(1L, DIV_ROUND_CLOSEST(min(val, orig_max) * new_max, orig_max));
drivers/hwmon/occ/common.c
106
u16 max;
drivers/hwmon/occ/common.c
116
u16 max;
drivers/hwmon/occ/common.c
615
val = get_unaligned_be16(&caps->max) * 1000000ULL;
drivers/hwmon/occ/common.c
665
val = get_unaligned_be16(&caps->max) * 1000000ULL;
drivers/hwmon/pmbus/pmbus_core.c
199
delay = max(delay, info->write_delay);
drivers/hwmon/pmbus/pmbus_core.c
201
delay = max(delay, info->page_change_delay);
drivers/hwmon/stts751.c
742
static SENSOR_DEVICE_ATTR_RW(temp1_max, max, 0);
drivers/hwmon/tsc1641.c
172
conv_time = max(conv_time, TSC1641_MIN_UPDATE_INTERVAL);
drivers/hwmon/w83627ehf.c
714
store_in_reg(MAX, max)
drivers/hwmon/w83781d.c
279
store_in_reg(MAX, max);
drivers/hwmon/w83781d.c
390
store_temp_reg(OVER, max);
drivers/hwmon/w83791d.c
391
store_in_reg(MAX, max);
drivers/hwmon/w83792d.c
387
store_in_reg(MAX, max);
drivers/hwmon/w83793.c
199
static inline s8 TEMP_TO_REG(long val, s8 min, s8 max)
drivers/hwmon/w83793.c
201
return clamp_val((val + (val < 0 ? -500 : 500)) / 1000, min, max);
drivers/hwmon/w83795.c
271
static inline s8 temp_to_reg(long val, s8 min, s8 max)
drivers/hwmon/w83795.c
273
return clamp_val(val / 1000, min, max);
drivers/hwmon/w83l786ng.c
266
store_in_reg(MAX, max)
drivers/hwtracing/coresight/coresight-etm3x-core.c
342
ts_level = max(ATTR_CFG_GET_FLD(attr, timestamp),
drivers/hwtracing/coresight/coresight-etm4x-core.c
796
ts_level = max(ATTR_CFG_GET_FLD(attr, timestamp),
drivers/i2c/busses/i2c-at91-master.c
77
div = max(0, (int)DIV_ROUND_UP(clk_get_rate(dev->clk),
drivers/i2c/busses/i2c-bcm2835.c
126
fedl = max(divider / 16, 1u);
drivers/i2c/busses/i2c-bcm2835.c
132
redl = max(divider / 4, 1u);
drivers/i2c/busses/i2c-cadence.c
121
#define CDNS_I2C_TRANSFER_SIZE(max) ((max) - 3)
drivers/i2c/busses/i2c-cros-ec-tunnel.c
199
alloc_size = max(request_len, response_len);
drivers/i2c/busses/i2c-designware-common.c
477
t->bus_freq_hz = max(t->bus_freq_hz, acpi_speed);
drivers/i2c/busses/i2c-ls2x.c
106
t->bus_freq_hz = max(t->bus_freq_hz, acpi_speed);
drivers/i2c/busses/i2c-rk3x.c
616
min_high_ns = max(min_high_ns, DIV_ROUND_UP(
drivers/i2c/busses/i2c-rk3x.c
618
min_high_ns = max(min_high_ns, DIV_ROUND_UP(
drivers/i2c/busses/i2c-st.c
440
static void st_i2c_rd_fill_tx_fifo(struct st_i2c_dev *i2c_dev, u32 max)
drivers/i2c/busses/i2c-st.c
453
for (i = min(max, SSC_TXFIFO_SIZE - tx_fstat);
drivers/i2c/busses/i2c-usbio.c
248
i2c->rwbuf = devm_kzalloc(dev, max(i2c->txbuf_len, i2c->rxbuf_len), GFP_KERNEL);
drivers/i3c/master/adi-i3c-master.c
582
max_fscl = max(I3C_CCC_MAX_SDR_FSCL(dev->info.max_read_ds),
drivers/i3c/master/i3c-master-cdns.c
1062
max_fscl = max(I3C_CCC_MAX_SDR_FSCL(dev->info.max_read_ds),
drivers/iio/accel/adxl345_core.c
1018
act_threshold = min(U8_MAX, max(1, act_threshold));
drivers/iio/accel/adxl345_core.c
1023
inact_threshold = min(U8_MAX, max(1, inact_threshold));
drivers/iio/adc/cpcap-adc.c
180
short max;
drivers/iio/adc/cpcap-adc.c
700
else if (req->result > phase_tbl[index].max)
drivers/iio/adc/cpcap-adc.c
701
req->result = phase_tbl[index].max;
drivers/iio/adc/mxs-lradc-adc.c
201
int ret, min, max;
drivers/iio/adc/mxs-lradc-adc.c
207
ret = mxs_lradc_adc_read_single(iio_dev, 9, &max);
drivers/iio/adc/mxs-lradc-adc.c
211
*val = max - min;
drivers/iio/adc/pac1921.c
270
int max = (PAC1921_MAX_VSENSE_MV * MICRO) >> i;
drivers/iio/adc/pac1921.c
271
int vsense_lsb = DIV_ROUND_CLOSEST(max, PAC1921_RES_RESOLUTION);
drivers/iio/adc/stm32-adc.c
2069
smp_ns = max(smp_ns, adc->cfg->ts_int_ch[i]);
drivers/iio/adc/stm32-dfsdm-adc.c
1347
u32 max = flo->max << (flo->lshift - chan->scan_type.shift);
drivers/iio/adc/stm32-dfsdm-adc.c
1352
max = flo->max >> (chan->scan_type.shift - flo->lshift);
drivers/iio/adc/stm32-dfsdm-adc.c
1389
*val = div_u64((u64)*val * (u64)BIT(DFSDM_DATA_RES - 1), max);
drivers/iio/adc/stm32-dfsdm-adc.c
1413
*val = div_u64((u64)max * *val, BIT(*val2 - 1));
drivers/iio/adc/stm32-dfsdm-adc.c
1415
*val += max;
drivers/iio/adc/stm32-dfsdm-adc.c
199
u64 res, max;
drivers/iio/adc/stm32-dfsdm-adc.c
265
max = flo->res << 8;
drivers/iio/adc/stm32-dfsdm-adc.c
271
max--;
drivers/iio/adc/stm32-dfsdm-adc.c
297
max >>= flo->rshift;
drivers/iio/adc/stm32-dfsdm-adc.c
299
flo->max = (s32)max;
drivers/iio/adc/stm32-dfsdm-adc.c
910
if (*ptr > flo->max)
drivers/iio/adc/stm32-dfsdm.h
284
s32 max;
drivers/iio/adc/ti-ads1015.c
717
low_thresh = max(-1 << (chan->scan_type.realbits - 1),
drivers/iio/addac/ad74115.c
1491
else if (prop->max && val > prop->max)
drivers/iio/addac/ad74115.c
238
unsigned int max;
drivers/iio/addac/ad74115.c
248
.max = (_max), \
drivers/iio/buffer/industrialio-buffer-dmaengine.c
240
width = max(src_width, dest_width);
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
254
max((u16)sizeof(struct ec_params_motion_sense),
drivers/iio/dac/ad5421.c
282
unsigned int *min, unsigned int *max)
drivers/iio/dac/ad5421.c
289
*max = 20000;
drivers/iio/dac/ad5421.c
293
*max = 21000;
drivers/iio/dac/ad5421.c
297
*max = 24000;
drivers/iio/dac/ad5421.c
301
*max = 1;
drivers/iio/dac/ad5421.c
308
unsigned int min, max;
drivers/iio/dac/ad5421.c
310
ad5421_get_current_min_max(st, &min, &max);
drivers/iio/dac/ad5421.c
311
return (min * (1 << 16)) / (max - min);
drivers/iio/dac/ad5421.c
318
unsigned int min, max;
drivers/iio/dac/ad5421.c
332
ad5421_get_current_min_max(st, &min, &max);
drivers/iio/dac/ad5421.c
333
*val = max - min;
drivers/iio/dac/ad5755.c
382
struct iio_chan_spec const *chan, int *min, int *max)
drivers/iio/dac/ad5755.c
386
*max = ad5755_min_max_table[mode][1];
drivers/iio/dac/ad5755.c
392
int min, max;
drivers/iio/dac/ad5755.c
394
ad5755_get_min_max(st, chan, &min, &max);
drivers/iio/dac/ad5755.c
395
return (min * (1 << chan->scan_type.realbits)) / (max - min);
drivers/iio/dac/ad5755.c
439
int min, max;
drivers/iio/dac/ad5755.c
444
ad5755_get_min_max(st, chan, &min, &max);
drivers/iio/dac/ad5755.c
445
*val = max - min;
drivers/iio/dac/ad5758.c
523
int max, min, ret;
drivers/iio/dac/ad5758.c
537
max = st->out_range.max;
drivers/iio/dac/ad5758.c
538
*val = (max - min) / 1000;
drivers/iio/dac/ad5758.c
543
max = st->out_range.max;
drivers/iio/dac/ad5758.c
544
*val = ((min * (1 << 16)) / (max - min)) / 1000;
drivers/iio/dac/ad5758.c
678
int min, int max)
drivers/iio/dac/ad5758.c
683
if ((min == range[i].min) && (max == range[i].max)) {
drivers/iio/dac/ad5758.c
686
st->out_range.max = range[i].max;
drivers/iio/dac/ad5758.c
97
int max;
drivers/iio/dac/ad5766.c
131
int max;
drivers/iio/dac/ad5766.c
249
*val = ad5766_span_tbl[st->crt_range].max -
drivers/iio/dac/ad5766.c
496
int i, ret, min, max, tmp[2];
drivers/iio/dac/ad5766.c
505
max = tmp[1] / 1000000;
drivers/iio/dac/ad5766.c
508
ad5766_span_tbl[i].max != max)
drivers/iio/dac/ad5770r.c
155
int max;
drivers/iio/dac/ad5770r.c
249
int ch, int *min, int *max)
drivers/iio/dac/ad5770r.c
261
*max = ad5770r_rng_tbl[i].max;
drivers/iio/dac/ad5770r.c
316
int max, min, ret;
drivers/iio/dac/ad5770r.c
331
ret = ad5770r_get_range(st, chan->channel, &min, &max);
drivers/iio/dac/ad5770r.c
334
*val = max - min;
drivers/iio/dac/ad5770r.c
344
ret = ad5770r_get_range(st, chan->channel, &min, &max);
drivers/iio/dac/ad5770r.c
410
int min, int max, int index)
drivers/iio/dac/ad5770r.c
418
ad5770r_rng_tbl[i].max != max)
drivers/iio/dac/ad5770r.c
515
int ret, tmp[2], min, max;
drivers/iio/dac/ad5770r.c
536
max = tmp[1] / 1000;
drivers/iio/dac/ad5770r.c
537
ret = ad5770r_store_output_range(st, min, max, num);
drivers/iio/dac/dpot-dac.c
139
int max;
drivers/iio/dac/dpot-dac.c
141
ret = iio_read_max_channel_raw(dac->dpot, &max);
drivers/iio/dac/dpot-dac.c
149
return max * val;
drivers/iio/dac/dpot-dac.c
151
tmp = (unsigned long long)max * val;
drivers/iio/dac/dpot-dac.c
155
tmp = val * 1000000000LL * max >> val2;
drivers/iio/dac/ltc2664.c
492
static int ltc2664_set_span(const struct ltc2664_state *st, int min, int max,
drivers/iio/dac/ltc2664.c
500
if (min == span_helper[span][0] && max == span_helper[span][1])
drivers/iio/dac/ltc2688.c
727
static int ltc2688_span_lookup(const struct ltc2688_state *st, int min, int max)
drivers/iio/dac/ltc2688.c
733
max == ltc2688_span_helper[span][1])
drivers/iio/humidity/hdc3020.c
524
s_val = max(s_val, HDC3020_MIN_TEMP_MICRO);
drivers/iio/humidity/hdc3020.c
557
s_clr = max(s_clr, HDC3020_MIN_TEMP_MICRO);
drivers/iio/humidity/hdc3020.c
600
s_clr = max(s_clr, 0);
drivers/iio/imu/bmi270/bmi270_core.c
1015
unsigned int step, max;
drivers/iio/imu/bmi270/bmi270_core.c
1021
max = BMI270_G_MICRO_M_S_2 / uscale;
drivers/iio/imu/bmi270/bmi270_core.c
1022
step = max / BMI270_MOTION_THRES_FULL_SCALE;
drivers/iio/imu/bmi270/bmi270_core.c
1024
return sysfs_emit(buf, "[0 %u %u]\n", step, max);
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
262
sleep = max(sleep_accel, sleep_temp);
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
773
s32 min, max;
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
798
max = inv_icm42600_accel_calibbias[4] * 1000000L +
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
801
if (val64 < min || val64 > max)
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c
424
sleep = max(sleep_sensor, sleep_temp);
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c
441
unsigned int max)
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c
458
if (max == 0)
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c
461
max_count = max * inv_icm42600_get_packet_size(st->fifo.en);
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.h
93
unsigned int max);
drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c
134
sleep = max(sleep_gyro, sleep_temp);
drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c
475
s64 val64, min, max;
drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c
500
max = (s64)inv_icm42600_gyro_calibbias[4] * 1000000000LL +
drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c
503
if (val64 < min || val64 > max)
drivers/iio/imu/inv_icm45600/inv_icm45600_accel.c
464
s32 min, max;
drivers/iio/imu/inv_icm45600/inv_icm45600_accel.c
489
max = inv_icm45600_accel_calibbias[4] * 1000000L +
drivers/iio/imu/inv_icm45600/inv_icm45600_accel.c
496
if (val64 < min || val64 > max)
drivers/iio/imu/inv_icm45600/inv_icm45600_buffer.c
214
watermark = max(latency / period, 1);
drivers/iio/imu/inv_icm45600/inv_icm45600_buffer.c
216
st->fifo.watermark.eff_gyro = max(latency / period_gyro, 1);
drivers/iio/imu/inv_icm45600/inv_icm45600_buffer.c
217
st->fifo.watermark.eff_accel = max(latency / period_accel, 1);
drivers/iio/imu/inv_icm45600/inv_icm45600_buffer.c
394
unsigned int max)
drivers/iio/imu/inv_icm45600/inv_icm45600_buffer.c
422
if (max > 0 && fifo_nb > max)
drivers/iio/imu/inv_icm45600/inv_icm45600_buffer.c
423
fifo_nb = max;
drivers/iio/imu/inv_icm45600/inv_icm45600_buffer.h
94
unsigned int max);
drivers/iio/imu/inv_icm45600/inv_icm45600_core.c
316
sleepval = max(sleepval, INV_ICM45600_ACCEL_STARTUP_TIME_MS);
drivers/iio/imu/inv_icm45600/inv_icm45600_core.c
320
sleepval = max(sleepval, INV_ICM45600_GYRO_STARTUP_TIME_MS);
drivers/iio/imu/inv_icm45600/inv_icm45600_core.c
322
sleepval = max(sleepval, INV_ICM45600_GYRO_STOP_TIME_MS);
drivers/iio/imu/inv_icm45600/inv_icm45600_gyro.c
476
s64 val64, min, max;
drivers/iio/imu/inv_icm45600/inv_icm45600_gyro.c
501
max = (s64)inv_icm45600_gyro_calibbias[4] * 1000000000LL +
drivers/iio/imu/inv_icm45600/inv_icm45600_gyro.c
508
if (val64 < min || val64 > max)
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
973
return min(255, max(1, value));
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c
140
*max_odr = max(*max_odr, sensor->hwfifo_odr_mHz);
drivers/iio/industrialio-buffer.c
2282
ml = max(ml, channels[i].scan_index + 1);
drivers/iio/industrialio-buffer.c
780
largest = max(largest, length);
drivers/iio/industrialio-buffer.c
790
largest = max(largest, length);
drivers/iio/industrialio-gts-helper.c
34
static int iio_gts_get_gain(const u64 max, const u64 scale)
drivers/iio/industrialio-gts-helper.c
36
u64 full = max;
drivers/iio/industrialio-gts-helper.c
60
static int gain_get_scale_fraction(const u64 max, u64 scale, int known,
drivers/iio/industrialio-gts-helper.c
65
tot_gain = iio_gts_get_gain(max, scale);
drivers/iio/light/apds9306.c
495
delay = max(intg_time, apds9306_repeat_rate_period[repeat_rate_idx]);
drivers/iio/light/tsl2563.c
289
if (adc > chip->gainlevel->max || adc < chip->gainlevel->min) {
drivers/iio/light/tsl2563.c
291
(adc > chip->gainlevel->max) ?
drivers/iio/light/tsl2563.c
75
u16 max;
drivers/iio/light/tsl2563.c
82
.max = 65534,
drivers/iio/light/tsl2563.c
86
.max = 65534,
drivers/iio/light/tsl2563.c
90
.max = 37177,
drivers/iio/light/tsl2563.c
94
.max = 65535,
drivers/iio/light/tsl2772.c
484
max_lux = max(max_lux, lux);
drivers/iio/light/tsl2772.c
869
int i, ret, mean, max, sample_sum;
drivers/iio/light/tsl2772.c
885
max = INT_MIN;
drivers/iio/light/tsl2772.c
888
max = max(max, prox_history[i]);
drivers/iio/light/tsl2772.c
892
chip->settings.prox_thres_high = (max << 1) - mean;
drivers/iio/pressure/abp060mg.c
170
state->scale = cfg->max - cfg->min;
drivers/iio/pressure/abp060mg.c
35
int max;
drivers/iio/pressure/abp060mg.c
40
[ABP006KG] = { .min = 0, .max = 6000 },
drivers/iio/pressure/abp060mg.c
41
[ABP010KG] = { .min = 0, .max = 10000 },
drivers/iio/pressure/abp060mg.c
42
[ABP016KG] = { .min = 0, .max = 16000 },
drivers/iio/pressure/abp060mg.c
43
[ABP025KG] = { .min = 0, .max = 25000 },
drivers/iio/pressure/abp060mg.c
44
[ABP040KG] = { .min = 0, .max = 40000 },
drivers/iio/pressure/abp060mg.c
45
[ABP060KG] = { .min = 0, .max = 60000 },
drivers/iio/pressure/abp060mg.c
46
[ABP100KG] = { .min = 0, .max = 100000 },
drivers/iio/pressure/abp060mg.c
47
[ABP160KG] = { .min = 0, .max = 160000 },
drivers/iio/pressure/abp060mg.c
48
[ABP250KG] = { .min = 0, .max = 250000 },
drivers/iio/pressure/abp060mg.c
49
[ABP400KG] = { .min = 0, .max = 400000 },
drivers/iio/pressure/abp060mg.c
50
[ABP600KG] = { .min = 0, .max = 600000 },
drivers/iio/pressure/abp060mg.c
51
[ABP001GG] = { .min = 0, .max = 1000000 },
drivers/iio/pressure/abp060mg.c
52
[ABP006KD] = { .min = -6000, .max = 6000 },
drivers/iio/pressure/abp060mg.c
53
[ABP010KD] = { .min = -10000, .max = 10000 },
drivers/iio/pressure/abp060mg.c
54
[ABP016KD] = { .min = -16000, .max = 16000 },
drivers/iio/pressure/abp060mg.c
55
[ABP025KD] = { .min = -25000, .max = 25000 },
drivers/iio/pressure/abp060mg.c
56
[ABP040KD] = { .min = -40000, .max = 40000 },
drivers/iio/pressure/abp060mg.c
57
[ABP060KD] = { .min = -60000, .max = 60000 },
drivers/iio/pressure/abp060mg.c
58
[ABP100KD] = { .min = -100000, .max = 100000 },
drivers/iio/pressure/abp060mg.c
59
[ABP160KD] = { .min = -160000, .max = 160000 },
drivers/iio/pressure/abp060mg.c
60
[ABP250KD] = { .min = -250000, .max = 250000 },
drivers/iio/pressure/abp060mg.c
61
[ABP400KD] = { .min = -400000, .max = 400000 },
drivers/iio/pressure/abp060mg.c
63
[ABP001PG] = { .min = 0, .max = 6985 },
drivers/iio/pressure/abp060mg.c
64
[ABP005PG] = { .min = 0, .max = 34474 },
drivers/iio/pressure/abp060mg.c
65
[ABP015PG] = { .min = 0, .max = 103421 },
drivers/iio/pressure/abp060mg.c
66
[ABP030PG] = { .min = 0, .max = 206843 },
drivers/iio/pressure/abp060mg.c
67
[ABP060PG] = { .min = 0, .max = 413686 },
drivers/iio/pressure/abp060mg.c
68
[ABP100PG] = { .min = 0, .max = 689476 },
drivers/iio/pressure/abp060mg.c
69
[ABP150PG] = { .min = 0, .max = 1034214 },
drivers/iio/pressure/abp060mg.c
70
[ABP001PD] = { .min = -6895, .max = 6895 },
drivers/iio/pressure/abp060mg.c
71
[ABP005PD] = { .min = -34474, .max = 34474 },
drivers/iio/pressure/abp060mg.c
72
[ABP015PD] = { .min = -103421, .max = 103421 },
drivers/iio/pressure/abp060mg.c
73
[ABP030PD] = { .min = -206843, .max = 206843 },
drivers/iio/pressure/abp060mg.c
74
[ABP060PD] = { .min = -413686, .max = 413686 },
drivers/iio/proximity/isl29501.c
434
max_exp = max(max_exp, corr_exp);
drivers/iio/temperature/ltc2983.c
806
max = st->info->max_channels_nr;
drivers/iio/temperature/ltc2983.c
809
max = st->info->max_channels_nr - 1;
drivers/iio/temperature/ltc2983.c
819
if (sensor->chan < min || sensor->chan > max)
drivers/iio/temperature/mcp9600.c
334
s_val = max(s_val, MCP9600_MIN_TEMP_COLD_JUNCTION_MICRO);
drivers/iio/temperature/mcp9600.c
337
s_val = max(s_val, MCP9600_MIN_TEMP_HOT_JUNCTION_MICRO);
drivers/infiniband/core/cm.c
938
return 1 << max(iba_time - 8, 0);
drivers/infiniband/core/cq.c
394
max(nr_cqes, IB_MAX_SHARED_CQ_SZ));
drivers/infiniband/core/mad.c
3400
mad_recvq_size = max(mad_recvq_size, IB_MAD_QP_MIN_SIZE);
drivers/infiniband/core/mad.c
3403
mad_sendq_size = max(mad_sendq_size, IB_MAD_QP_MIN_SIZE);
drivers/infiniband/core/mad_rmpp.c
396
return max(agent->qp_info->recv_queue.max_active >> 3, 1);
drivers/infiniband/core/uverbs_cmd.c
2615
resources->max = num_specs;
drivers/infiniband/core/uverbs_cmd.c
2649
WARN_ON(uflow_res->num >= uflow_res->max);
drivers/infiniband/core/uverbs_uapi.c
404
max_bkey = max(max_bkey, attr_bkey);
drivers/infiniband/core/uverbs_uapi.c
437
max_write = max(max_write,
drivers/infiniband/core/uverbs_uapi.c
441
max(max_write_ex,
drivers/infiniband/hw/bnxt_re/ib_verbs.c
1061
int rsge, int max)
drivers/infiniband/hw/bnxt_re/ib_verbs.c
1064
rsge = max;
drivers/infiniband/hw/bnxt_re/ib_verbs.c
398
if (ctx->idx >= sgid_tbl->max)
drivers/infiniband/hw/bnxt_re/main.c
1808
if (rdev->qplib_res.dpi_tbl.max) {
drivers/infiniband/hw/bnxt_re/main.c
2062
for (i = 0; i < sgid_tbl->max; i++) {
drivers/infiniband/hw/bnxt_re/qplib_fp.c
1493
for (i = 0; i < res->sgid_tbl.max; i++) {
drivers/infiniband/hw/bnxt_re/qplib_fp.c
1499
if (i == res->sgid_tbl.max)
drivers/infiniband/hw/bnxt_re/qplib_fp.h
659
static inline u16 bnxt_qplib_calc_ilsize(struct bnxt_qplib_swqe *wqe, u16 max)
drivers/infiniband/hw/bnxt_re/qplib_fp.h
666
if (size > max)
drivers/infiniband/hw/bnxt_re/qplib_fp.h
667
size = max;
drivers/infiniband/hw/bnxt_re/qplib_res.c
551
sgid_tbl->max = 0;
drivers/infiniband/hw/bnxt_re/qplib_res.c
557
u16 max)
drivers/infiniband/hw/bnxt_re/qplib_res.c
559
sgid_tbl->tbl = kzalloc_objs(*sgid_tbl->tbl, max);
drivers/infiniband/hw/bnxt_re/qplib_res.c
563
sgid_tbl->hw_id = kcalloc(max, sizeof(u16), GFP_KERNEL);
drivers/infiniband/hw/bnxt_re/qplib_res.c
567
sgid_tbl->ctx = kcalloc(max, sizeof(void *), GFP_KERNEL);
drivers/infiniband/hw/bnxt_re/qplib_res.c
571
sgid_tbl->vlan = kcalloc(max, sizeof(u8), GFP_KERNEL);
drivers/infiniband/hw/bnxt_re/qplib_res.c
575
sgid_tbl->max = max;
drivers/infiniband/hw/bnxt_re/qplib_res.c
594
for (i = 0; i < sgid_tbl->max; i++) {
drivers/infiniband/hw/bnxt_re/qplib_res.c
600
memset(sgid_tbl->tbl, 0, sizeof(*sgid_tbl->tbl) * sgid_tbl->max);
drivers/infiniband/hw/bnxt_re/qplib_res.c
601
memset(sgid_tbl->hw_id, -1, sizeof(u16) * sgid_tbl->max);
drivers/infiniband/hw/bnxt_re/qplib_res.c
602
memset(sgid_tbl->vlan, 0, sizeof(u8) * sgid_tbl->max);
drivers/infiniband/hw/bnxt_re/qplib_res.c
611
for (i = 0; i < sgid_tbl->max; i++)
drivers/infiniband/hw/bnxt_re/qplib_res.c
614
memset(sgid_tbl->hw_id, -1, sizeof(u16) * sgid_tbl->max);
drivers/infiniband/hw/bnxt_re/qplib_res.c
625
bit_num = find_first_bit(pdt->tbl, pdt->max);
drivers/infiniband/hw/bnxt_re/qplib_res.c
626
if (bit_num == pdt->max) {
drivers/infiniband/hw/bnxt_re/qplib_res.c
662
pdt->max = 0;
drivers/infiniband/hw/bnxt_re/qplib_res.c
667
u32 max)
drivers/infiniband/hw/bnxt_re/qplib_res.c
671
bytes = max >> 3;
drivers/infiniband/hw/bnxt_re/qplib_res.c
678
pdt->max = max;
drivers/infiniband/hw/bnxt_re/qplib_res.c
698
bit_num = find_first_bit(dpit->tbl, dpit->max);
drivers/infiniband/hw/bnxt_re/qplib_res.c
699
if (bit_num == dpit->max) {
drivers/infiniband/hw/bnxt_re/qplib_res.c
766
dpit->max = 0;
drivers/infiniband/hw/bnxt_re/qplib_res.c
789
dpit->max = (bar_len - reg->offset) / PAGE_SIZE;
drivers/infiniband/hw/bnxt_re/qplib_res.c
791
dpit->max = min_t(u32, dpit->max, dev_attr->max_dpi);
drivers/infiniband/hw/bnxt_re/qplib_res.c
793
dpit->app_tbl = kcalloc(dpit->max, sizeof(void *), GFP_KERNEL);
drivers/infiniband/hw/bnxt_re/qplib_res.c
797
bytes = dpit->max >> 3;
drivers/infiniband/hw/bnxt_re/qplib_res.h
231
u32 max;
drivers/infiniband/hw/bnxt_re/qplib_res.h
237
u16 max;
drivers/infiniband/hw/bnxt_re/qplib_res.h
260
u16 max;
drivers/infiniband/hw/bnxt_re/qplib_sp.c
245
if (index >= sgid_tbl->max) {
drivers/infiniband/hw/bnxt_re/qplib_sp.c
248
index, sgid_tbl->max);
drivers/infiniband/hw/bnxt_re/qplib_sp.c
269
for (index = 0; index < sgid_tbl->max; index++) {
drivers/infiniband/hw/bnxt_re/qplib_sp.c
274
if (index == sgid_tbl->max) {
drivers/infiniband/hw/bnxt_re/qplib_sp.c
326
if (sgid_tbl->active == sgid_tbl->max) {
drivers/infiniband/hw/bnxt_re/qplib_sp.c
330
free_idx = sgid_tbl->max;
drivers/infiniband/hw/bnxt_re/qplib_sp.c
331
for (i = 0; i < sgid_tbl->max; i++) {
drivers/infiniband/hw/bnxt_re/qplib_sp.c
340
free_idx == sgid_tbl->max) {
drivers/infiniband/hw/bnxt_re/qplib_sp.c
344
if (free_idx == sgid_tbl->max) {
drivers/infiniband/hw/bnxt_re/qplib_sp.h
349
struct bnxt_qplib_mrw *mr, int max);
drivers/infiniband/hw/bnxt_re/qplib_sp.h
351
struct bnxt_qplib_frpl *frpl, int max);
drivers/infiniband/hw/cxgb4/device.c
477
dev->rdev.stats.pd.max, dev->rdev.stats.pd.fail);
drivers/infiniband/hw/cxgb4/device.c
480
dev->rdev.stats.qid.max, dev->rdev.stats.qid.fail);
drivers/infiniband/hw/cxgb4/device.c
483
dev->rdev.stats.srqt.max, dev->rdev.stats.srqt.fail);
drivers/infiniband/hw/cxgb4/device.c
486
dev->rdev.stats.stag.max, dev->rdev.stats.stag.fail);
drivers/infiniband/hw/cxgb4/device.c
489
dev->rdev.stats.pbl.max, dev->rdev.stats.pbl.fail);
drivers/infiniband/hw/cxgb4/device.c
492
dev->rdev.stats.rqt.max, dev->rdev.stats.rqt.fail);
drivers/infiniband/hw/cxgb4/device.c
495
dev->rdev.stats.ocqp.max, dev->rdev.stats.ocqp.fail);
drivers/infiniband/hw/cxgb4/device.c
524
dev->rdev.stats.pd.max = 0;
drivers/infiniband/hw/cxgb4/device.c
526
dev->rdev.stats.qid.max = 0;
drivers/infiniband/hw/cxgb4/device.c
528
dev->rdev.stats.stag.max = 0;
drivers/infiniband/hw/cxgb4/device.c
530
dev->rdev.stats.pbl.max = 0;
drivers/infiniband/hw/cxgb4/device.c
532
dev->rdev.stats.rqt.max = 0;
drivers/infiniband/hw/cxgb4/device.c
534
dev->rdev.stats.rqt.max = 0;
drivers/infiniband/hw/cxgb4/device.c
536
dev->rdev.stats.ocqp.max = 0;
drivers/infiniband/hw/cxgb4/id_table.c
51
obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last);
drivers/infiniband/hw/cxgb4/id_table.c
52
if (obj >= alloc->max)
drivers/infiniband/hw/cxgb4/id_table.c
53
obj = find_first_zero_bit(alloc->table, alloc->max);
drivers/infiniband/hw/cxgb4/id_table.c
55
if (obj < alloc->max) {
drivers/infiniband/hw/cxgb4/id_table.c
60
if (alloc->last >= alloc->max)
drivers/infiniband/hw/cxgb4/id_table.c
91
alloc->max = num;
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
123
u64 max;
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
91
u32 max;
drivers/infiniband/hw/cxgb4/mem.c
303
if (rdev->stats.stag.cur > rdev->stats.stag.max)
drivers/infiniband/hw/cxgb4/mem.c
304
rdev->stats.stag.max = rdev->stats.stag.cur;
drivers/infiniband/hw/cxgb4/provider.c
233
if (rhp->rdev.stats.pd.cur > rhp->rdev.stats.pd.max)
drivers/infiniband/hw/cxgb4/provider.c
234
rhp->rdev.stats.pd.max = rhp->rdev.stats.pd.cur;
drivers/infiniband/hw/cxgb4/qp.c
412
const struct ib_send_wr *wr, int max, u32 *plenp)
drivers/infiniband/hw/cxgb4/qp.c
421
if ((plen + wr->sg_list[i].length) > max)
drivers/infiniband/hw/cxgb4/resource.c
157
if (rdev->stats.qid.cur > rdev->stats.qid.max)
drivers/infiniband/hw/cxgb4/resource.c
158
rdev->stats.qid.max = rdev->stats.qid.cur;
drivers/infiniband/hw/cxgb4/resource.c
231
if (rdev->stats.qid.cur > rdev->stats.qid.max)
drivers/infiniband/hw/cxgb4/resource.c
232
rdev->stats.qid.max = rdev->stats.qid.cur;
drivers/infiniband/hw/cxgb4/resource.c
272
if (rdev->stats.pbl.cur > rdev->stats.pbl.max)
drivers/infiniband/hw/cxgb4/resource.c
273
rdev->stats.pbl.max = rdev->stats.pbl.cur;
drivers/infiniband/hw/cxgb4/resource.c
354
if (rdev->stats.rqt.cur > rdev->stats.rqt.max)
drivers/infiniband/hw/cxgb4/resource.c
355
rdev->stats.rqt.max = rdev->stats.rqt.cur;
drivers/infiniband/hw/cxgb4/resource.c
439
if (rdev->stats.srqt.cur > rdev->stats.srqt.max)
drivers/infiniband/hw/cxgb4/resource.c
440
rdev->stats.srqt.max = rdev->stats.srqt.cur;
drivers/infiniband/hw/cxgb4/resource.c
465
if (rdev->stats.ocqp.cur > rdev->stats.ocqp.max)
drivers/infiniband/hw/cxgb4/resource.c
466
rdev->stats.ocqp.max = rdev->stats.ocqp.cur;
drivers/infiniband/hw/hfi1/init.c
1841
rcd->egrbufs.rcvtid_size = max((unsigned long)round_mtu,
drivers/infiniband/hw/hfi1/pio.c
1195
int max, count = 0;
drivers/infiniband/hw/hfi1/pio.c
1198
max = (dd->icode == ICODE_FPGA_EMULATION) ? 120 : 5;
drivers/infiniband/hw/hfi1/pio.c
1203
if (count >= max)
drivers/infiniband/hw/hns/hns_roce_cq.c
124
id = ida_alloc_range(&bank->ida, bank->min, bank->max, GFP_KERNEL);
drivers/infiniband/hw/hns/hns_roce_cq.c
373
cq_entries = max(cq_entries, hr_dev->caps.min_cqes);
drivers/infiniband/hw/hns/hns_roce_cq.c
584
cq_table->bank[i].max = hr_dev->caps.num_cqs /
drivers/infiniband/hw/hns/hns_roce_device.h
245
unsigned long max;
drivers/infiniband/hw/hns/hns_roce_device.h
255
u32 max; /* Highest ID to allocate. */
drivers/infiniband/hw/hns/hns_roce_device.h
487
u32 max; /* Highest ID to allocate. */
drivers/infiniband/hw/hns/hns_roce_hem.c
1038
int max;
drivers/infiniband/hw/hns/hns_roce_hem.c
1055
max = hopnum - bt_level;
drivers/infiniband/hw/hns/hns_roce_hem.c
1056
for (i = 0; i < max; i++)
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
2797
size = max(size, min_size);
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
4901
lp_msg_len = max(mtu, MIN_LP_MSG_LEN);
drivers/infiniband/hw/hns/hns_roce_mr.c
193
mtpt_ida->max = hr_dev->caps.num_mtpts - 1;
drivers/infiniband/hw/hns/hns_roce_mr.c
61
id = ida_alloc_range(&mtpt_ida->ida, mtpt_ida->min, mtpt_ida->max,
drivers/infiniband/hw/hns/hns_roce_pd.c
116
uar_ida->max = hr_dev->caps.num_uars - 1;
drivers/infiniband/hw/hns/hns_roce_pd.c
125
id = ida_alloc_range(&xrcd_ida->ida, xrcd_ida->min, xrcd_ida->max,
drivers/infiniband/hw/hns/hns_roce_pd.c
141
xrcd_ida->max = hr_dev->caps.num_xrcds - 1;
drivers/infiniband/hw/hns/hns_roce_pd.c
40
pd_ida->max = hr_dev->caps.num_pds - 1;
drivers/infiniband/hw/hns/hns_roce_pd.c
53
id = ida_alloc_range(&pd_ida->ida, pd_ida->min, pd_ida->max,
drivers/infiniband/hw/hns/hns_roce_pd.c
90
id = ida_alloc_range(&uar_ida->ida, uar_ida->min, uar_ida->max,
drivers/infiniband/hw/hns/hns_roce_qp.c
1619
hr_dev->qp_table.bank[i].max = hr_dev->caps.num_qps /
drivers/infiniband/hw/hns/hns_roce_qp.c
227
id = ida_alloc_range(&bank->ida, bank->next, bank->max, GFP_KERNEL);
drivers/infiniband/hw/hns/hns_roce_qp.c
229
id = ida_alloc_range(&bank->ida, bank->min, bank->max,
drivers/infiniband/hw/hns/hns_roce_qp.c
236
bank->next = (id + 1) > bank->max ? bank->min : id + 1;
drivers/infiniband/hw/hns/hns_roce_qp.c
519
cnt = roundup_pow_of_two(max(cap->max_recv_wr, hr_dev->caps.min_wqes));
drivers/infiniband/hw/hns/hns_roce_qp.c
526
hr_qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge) +
drivers/infiniband/hw/hns/hns_roce_qp.c
560
sge_num = max((u32)HNS_ROCE_SGE_IN_WQE, sge_num);
drivers/infiniband/hw/hns/hns_roce_qp.c
562
cap->max_inline_data = max(cap->max_inline_data,
drivers/infiniband/hw/hns/hns_roce_qp.c
619
inline_ext_sge = max(ext_wqe_sge_cnt,
drivers/infiniband/hw/hns/hns_roce_qp.c
625
hr_qp->sq.max_gs = max(1U, (hr_qp->sq.ext_sge_cnt + std_sge_num));
drivers/infiniband/hw/hns/hns_roce_qp.c
630
hr_qp->sq.max_gs = max(1U, cap->max_send_sge);
drivers/infiniband/hw/hns/hns_roce_qp.c
640
hr_qp->sge.sge_cnt = max(total_sge_cnt,
drivers/infiniband/hw/hns/hns_roce_qp.c
760
cnt = roundup_pow_of_two(max(cap->max_send_wr, hr_dev->caps.min_wqes));
drivers/infiniband/hw/hns/hns_roce_srq.c
226
srq->wqe_shift = ilog2(roundup_pow_of_two(max(HNS_ROCE_SGE_SIZE,
drivers/infiniband/hw/hns/hns_roce_srq.c
547
srq_ida->max = hr_dev->caps.num_srqs - 1;
drivers/infiniband/hw/hns/hns_roce_srq.c
67
id = ida_alloc_range(&srq_ida->ida, srq_ida->min, srq_ida->max,
drivers/infiniband/hw/irdma/cm.c
2266
cm_node->tos = max(listener->tos, cm_info->tos);
drivers/infiniband/hw/irdma/ctrl.c
481
srq_size_quanta = max((u32)IRDMA_SRQ_MIN_QUANTA,
drivers/infiniband/hw/irdma/hmc.c
271
pd_idx1 = max(pd_idx, (j * IRDMA_HMC_MAX_BP_COUNT));
drivers/infiniband/hw/irdma/hmc.c
305
pd_idx1 = max(pd_idx, (j - 1) * IRDMA_HMC_MAX_BP_COUNT);
drivers/infiniband/hw/irdma/hw.c
2185
mrdrvbits = 24 - max(get_count_order(rf->max_mr), 14);
drivers/infiniband/hw/irdma/verbs.c
2064
info.cq_size = max(entries, 4);
drivers/infiniband/hw/irdma/verbs.c
2516
ukinfo->cq_size = max(entries, 4);
drivers/infiniband/hw/mlx4/qp.c
360
qp->rq.wqe_cnt = roundup_pow_of_two(max(1U, cap->max_recv_wr));
drivers/infiniband/hw/mlx4/qp.c
361
qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge));
drivers/infiniband/hw/mlx4/qp.c
402
s = max(cap->max_send_sge * sizeof (struct mlx4_wqe_data_seg),
drivers/infiniband/hw/mlx4/srq.c
100
srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1);
drivers/infiniband/hw/mlx4/srq.c
103
desc_size = max(32UL,
drivers/infiniband/hw/mlx4/srq.c
109
buf_size = srq->msrq.max * desc_size;
drivers/infiniband/hw/mlx4/srq.c
149
srq->tail = srq->msrq.max - 1;
drivers/infiniband/hw/mlx4/srq.c
152
for (i = 0; i < srq->msrq.max; ++i) {
drivers/infiniband/hw/mlx4/srq.c
155
cpu_to_be16((i + 1) & (srq->msrq.max - 1));
drivers/infiniband/hw/mlx4/srq.c
172
srq->wrid = kvmalloc_array(srq->msrq.max,
drivers/infiniband/hw/mlx4/srq.c
199
init_attr->attr.max_wr = srq->msrq.max - 1;
drivers/infiniband/hw/mlx4/srq.c
236
if (attr->srq_limit >= srq->msrq.max)
drivers/infiniband/hw/mlx4/srq.c
262
srq_attr->max_wr = srq->msrq.max - 1;
drivers/infiniband/hw/mlx4/srq.c
285
mlx4_buf_free(dev->dev, msrq->msrq.max << msrq->msrq.wqe_shift,
drivers/infiniband/hw/mlx4/sysfs.c
355
static void get_name(struct mlx4_ib_dev *dev, char *name, int i, int max)
drivers/infiniband/hw/mlx4/sysfs.c
361
snprintf(name, max, "%.8s%.2d.%d", pci_name(dev->dev->persist->pdev),
drivers/infiniband/hw/mlx5/mad.c
249
int sz = max(MLX5_ST_SZ_BYTES(query_vport_counter_out),
drivers/infiniband/hw/mlx5/main.c
5315
num_ports = max(MLX5_CAP_GEN(mdev, num_ports),
drivers/infiniband/hw/mlx5/main.c
917
max_overhead_xrc += max(a, b);
drivers/infiniband/hw/mlx5/main.c
925
return max(max_overhead_xrc, overhead_ud_lso);
drivers/infiniband/hw/mlx5/mlx5_ib.h
1792
min_log_size = max(min_log_size, MLX5_ADAPTER_PAGE_SHIFT);
drivers/infiniband/hw/mlx5/qp.c
293
srq->msrq.max, srq->msrq.wqe_shift,
drivers/infiniband/hw/mlx5/qp.c
504
max(sizeof(struct mlx5_wqe_atomic_seg) +
drivers/infiniband/hw/mlx5/qp.c
517
max(sizeof(struct mlx5_wqe_raddr_seg),
drivers/infiniband/hw/mlx5/srq.c
125
mlx5_init_fbc(srq->buf.frags, srq->msrq.wqe_shift, ilog2(srq->msrq.max),
drivers/infiniband/hw/mlx5/srq.c
129
srq->tail = srq->msrq.max - 1;
drivers/infiniband/hw/mlx5/srq.c
132
for (i = 0; i < srq->msrq.max; i++) {
drivers/infiniband/hw/mlx5/srq.c
135
cpu_to_be16((i + 1) & (srq->msrq.max - 1));
drivers/infiniband/hw/mlx5/srq.c
146
srq->wrid = kvmalloc_array(srq->msrq.max, sizeof(u64), GFP_KERNEL);
drivers/infiniband/hw/mlx5/srq.c
225
srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1);
drivers/infiniband/hw/mlx5/srq.c
241
buf_size = srq->msrq.max * desc_size;
drivers/infiniband/hw/mlx5/srq.c
258
in.log_size = ilog2(srq->msrq.max);
drivers/infiniband/hw/mlx5/srq.c
312
init_attr->attr.max_wr = srq->msrq.max - 1;
drivers/infiniband/hw/mlx5/srq.c
340
if (attr->srq_limit >= srq->msrq.max)
drivers/infiniband/hw/mlx5/srq.c
370
srq_attr->max_wr = srq->msrq.max - 1;
drivers/infiniband/hw/mlx5/srq.h
44
int max;
drivers/infiniband/hw/mlx5/umr.c
1016
max_page_shift = min(max(max_page_shift, page_shift), max_log_size);
drivers/infiniband/hw/mthca/mthca_allocator.c
47
obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last);
drivers/infiniband/hw/mthca/mthca_allocator.c
48
if (obj >= alloc->max) {
drivers/infiniband/hw/mthca/mthca_allocator.c
49
alloc->top = (alloc->top + alloc->max) & alloc->mask;
drivers/infiniband/hw/mthca/mthca_allocator.c
50
obj = find_first_zero_bit(alloc->table, alloc->max);
drivers/infiniband/hw/mthca/mthca_allocator.c
53
if (obj < alloc->max) {
drivers/infiniband/hw/mthca/mthca_allocator.c
68
obj &= alloc->max - 1;
drivers/infiniband/hw/mthca/mthca_allocator.c
74
alloc->top = (alloc->top + alloc->max) & alloc->mask;
drivers/infiniband/hw/mthca/mthca_allocator.c
88
alloc->max = num;
drivers/infiniband/hw/mthca/mthca_cmd.c
757
max_off = max(max_off, dev->cmd.dbell_offsets[i]);
drivers/infiniband/hw/mthca/mthca_cq.c
538
(*cur_qp)->rq.max];
drivers/infiniband/hw/mthca/mthca_cq.c
557
wqe_index = wq->max - 1;
drivers/infiniband/hw/mthca/mthca_cq.c
565
wq->tail += wqe_index + wq->max - wq->last_comp;
drivers/infiniband/hw/mthca/mthca_dev.h
180
u32 max;
drivers/infiniband/hw/mthca/mthca_eq.c
479
eq->nent = roundup_pow_of_two(max(nent, 2));
drivers/infiniband/hw/mthca/mthca_profile.c
114
profile[i].log_num = max(ffs(profile[i].num) - 1, 0);
drivers/infiniband/hw/mthca/mthca_profile.c
117
profile[i].size = max(profile[i].size, (u64) PAGE_SIZE);
drivers/infiniband/hw/mthca/mthca_provider.c
544
init_attr->cap.max_send_wr = qp->sq.max;
drivers/infiniband/hw/mthca/mthca_provider.c
545
init_attr->cap.max_recv_wr = qp->rq.max;
drivers/infiniband/hw/mthca/mthca_provider.h
209
int max;
drivers/infiniband/hw/mthca/mthca_provider.h
230
int max;
drivers/infiniband/hw/mthca/mthca_qp.c
1052
qp->send_wqe_offset = ALIGN(qp->rq.max << qp->rq.wqe_shift,
drivers/infiniband/hw/mthca/mthca_qp.c
1064
(qp->sq.max << qp->sq.wqe_shift));
drivers/infiniband/hw/mthca/mthca_qp.c
1066
qp->wrid = kmalloc_array(qp->rq.max + qp->sq.max, sizeof(u64),
drivers/infiniband/hw/mthca/mthca_qp.c
1087
(qp->sq.max << qp->sq.wqe_shift)),
drivers/infiniband/hw/mthca/mthca_qp.c
1219
for (i = 0; i < qp->rq.max; ++i) {
drivers/infiniband/hw/mthca/mthca_qp.c
1221
next->nda_op = cpu_to_be32(((i + 1) & (qp->rq.max - 1)) <<
drivers/infiniband/hw/mthca/mthca_qp.c
1231
for (i = 0; i < qp->sq.max; ++i) {
drivers/infiniband/hw/mthca/mthca_qp.c
1233
next->nda_op = cpu_to_be32((((i + 1) & (qp->sq.max - 1)) <<
drivers/infiniband/hw/mthca/mthca_qp.c
1238
for (i = 0; i < qp->rq.max; ++i) {
drivers/infiniband/hw/mthca/mthca_qp.c
1240
next->nda_op = htonl((((i + 1) % qp->rq.max) <<
drivers/infiniband/hw/mthca/mthca_qp.c
1246
qp->sq.last = get_send_wqe(qp, qp->sq.max - 1);
drivers/infiniband/hw/mthca/mthca_qp.c
1247
qp->rq.last = get_recv_wqe(qp, qp->rq.max - 1);
drivers/infiniband/hw/mthca/mthca_qp.c
1273
qp->rq.max = cap->max_recv_wr ?
drivers/infiniband/hw/mthca/mthca_qp.c
1275
qp->sq.max = cap->max_send_wr ?
drivers/infiniband/hw/mthca/mthca_qp.c
1278
qp->rq.max = cap->max_recv_wr;
drivers/infiniband/hw/mthca/mthca_qp.c
1279
qp->sq.max = cap->max_send_wr;
drivers/infiniband/hw/mthca/mthca_qp.c
1385
qp->sqp->header_buf_size = qp->sq.max * MTHCA_UD_HEADER_SIZE;
drivers/infiniband/hw/mthca/mthca_qp.c
1575
if (likely(cur + nreq < wq->max))
drivers/infiniband/hw/mthca/mthca_qp.c
1583
return cur + nreq >= wq->max;
drivers/infiniband/hw/mthca/mthca_qp.c
1660
qp->sq.max, nreq);
drivers/infiniband/hw/mthca/mthca_qp.c
1774
qp->wrid[ind + qp->rq.max] = wr->wr_id;
drivers/infiniband/hw/mthca/mthca_qp.c
1801
if (unlikely(ind >= qp->sq.max))
drivers/infiniband/hw/mthca/mthca_qp.c
1802
ind -= qp->sq.max;
drivers/infiniband/hw/mthca/mthca_qp.c
1856
qp->rq.max, nreq);
drivers/infiniband/hw/mthca/mthca_qp.c
1894
if (unlikely(ind >= qp->rq.max))
drivers/infiniband/hw/mthca/mthca_qp.c
1895
ind -= qp->rq.max;
drivers/infiniband/hw/mthca/mthca_qp.c
1957
ind = qp->sq.head & (qp->sq.max - 1);
drivers/infiniband/hw/mthca/mthca_qp.c
1990
qp->sq.max, nreq);
drivers/infiniband/hw/mthca/mthca_qp.c
2104
qp->wrid[ind + qp->rq.max] = wr->wr_id;
drivers/infiniband/hw/mthca/mthca_qp.c
2131
if (unlikely(ind >= qp->sq.max))
drivers/infiniband/hw/mthca/mthca_qp.c
2132
ind -= qp->sq.max;
drivers/infiniband/hw/mthca/mthca_qp.c
2178
ind = qp->rq.head & (qp->rq.max - 1);
drivers/infiniband/hw/mthca/mthca_qp.c
2185
qp->rq.max, nreq);
drivers/infiniband/hw/mthca/mthca_qp.c
2214
if (unlikely(ind >= qp->rq.max))
drivers/infiniband/hw/mthca/mthca_qp.c
2215
ind -= qp->rq.max;
drivers/infiniband/hw/mthca/mthca_qp.c
233
wq->last_comp = wq->max - 1;
drivers/infiniband/hw/mthca/mthca_qp.c
505
qp_attr->cap.max_send_wr = qp->sq.max;
drivers/infiniband/hw/mthca/mthca_qp.c
506
qp_attr->cap.max_recv_wr = qp->rq.max;
drivers/infiniband/hw/mthca/mthca_qp.c
615
if (qp->rq.max)
drivers/infiniband/hw/mthca/mthca_qp.c
616
qp_context->rq_size_stride = ilog2(qp->rq.max) << 3;
drivers/infiniband/hw/mthca/mthca_qp.c
619
if (qp->sq.max)
drivers/infiniband/hw/mthca/mthca_qp.c
620
qp_context->sq_size_stride = ilog2(qp->sq.max) << 3;
drivers/infiniband/hw/mthca/mthca_qp.c
841
qp->sq.last = get_send_wqe(qp, qp->sq.max - 1);
drivers/infiniband/hw/mthca/mthca_qp.c
844
qp->rq.last = get_recv_wqe(qp, qp->rq.max - 1);
drivers/infiniband/hw/mthca/mthca_srq.c
126
int logsize, max;
drivers/infiniband/hw/mthca/mthca_srq.c
134
max = srq->max;
drivers/infiniband/hw/mthca/mthca_srq.c
135
logsize = ilog2(max);
drivers/infiniband/hw/mthca/mthca_srq.c
149
mthca_buf_free(dev, srq->max << srq->wqe_shift, &srq->queue,
drivers/infiniband/hw/mthca/mthca_srq.c
165
srq->wrid = kmalloc_array(srq->max, sizeof(u64), GFP_KERNEL);
drivers/infiniband/hw/mthca/mthca_srq.c
169
err = mthca_buf_alloc(dev, srq->max << srq->wqe_shift,
drivers/infiniband/hw/mthca/mthca_srq.c
182
for (i = 0; i < srq->max; ++i) {
drivers/infiniband/hw/mthca/mthca_srq.c
187
if (i < srq->max - 1) {
drivers/infiniband/hw/mthca/mthca_srq.c
201
srq->last = get_wqe(srq, srq->max - 1);
drivers/infiniband/hw/mthca/mthca_srq.c
219
srq->max = attr->max_wr;
drivers/infiniband/hw/mthca/mthca_srq.c
224
srq->max = roundup_pow_of_two(srq->max + 1);
drivers/infiniband/hw/mthca/mthca_srq.c
226
srq->max = srq->max + 1;
drivers/infiniband/hw/mthca/mthca_srq.c
228
ds = max(64UL,
drivers/infiniband/hw/mthca/mthca_srq.c
295
srq->last_free = srq->max - 1;
drivers/infiniband/hw/mthca/mthca_srq.c
297
attr->max_wr = srq->max - 1;
drivers/infiniband/hw/mthca/mthca_srq.c
384
u32 max_wr = mthca_is_memfree(dev) ? srq->max - 1 : srq->max;
drivers/infiniband/hw/mthca/mthca_srq.c
421
srq_attr->max_wr = srq->max - 1;
drivers/infiniband/hw/usnic/usnic_ib_sysfs.c
145
qp_per_vf = max(us_ibdev->vf_res_cnt[USNIC_VNIC_RES_TYPE_WQ],
drivers/infiniband/hw/usnic/usnic_ib_verbs.c
303
qp_per_vf = max(us_ibdev->vf_res_cnt[USNIC_VNIC_RES_TYPE_WQ],
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h
103
u32 max;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_doorbell.c
121
obj = uar->index & (tbl->max - 1);
drivers/infiniband/hw/vmw_pvrdma/pvrdma_doorbell.c
125
tbl->top = (tbl->top + tbl->max) & tbl->mask;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_doorbell.c
63
tbl->max = num;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_doorbell.c
92
obj = find_next_zero_bit(tbl->table, tbl->max, tbl->last);
drivers/infiniband/hw/vmw_pvrdma/pvrdma_doorbell.c
93
if (obj >= tbl->max) {
drivers/infiniband/hw/vmw_pvrdma/pvrdma_doorbell.c
94
tbl->top = (tbl->top + tbl->max) & tbl->mask;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_doorbell.c
95
obj = find_first_zero_bit(tbl->table, tbl->max);
drivers/infiniband/hw/vmw_pvrdma/pvrdma_doorbell.c
98
if (obj >= tbl->max) {
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
140
qp->rq.wqe_cnt = roundup_pow_of_two(max(1U, req_cap->max_recv_wr));
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
141
qp->rq.max_sg = roundup_pow_of_two(max(1U, req_cap->max_recv_sge));
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
165
qp->sq.wqe_cnt = roundup_pow_of_two(max(1U, req_cap->max_send_wr));
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
166
qp->sq.max_sg = roundup_pow_of_two(max(1U, req_cap->max_send_sge));
drivers/infiniband/sw/rdmavt/mr.c
167
r = (r + 1) & (rkt->max - 1);
drivers/infiniband/sw/rdmavt/mr.c
171
rkt->next = (r + 1) & (rkt->max - 1);
drivers/infiniband/sw/rdmavt/mr.c
45
rdi->lkey_table.max = 1 << lkey_table_size;
drivers/infiniband/sw/rdmavt/mr.c
47
lk_tab_size = rdi->lkey_table.max * sizeof(*rdi->lkey_table.table);
drivers/infiniband/sw/rdmavt/mr.c
54
for (i = 0; i < rdi->lkey_table.max; i++)
drivers/infiniband/sw/rdmavt/mr.c
57
rdi->dparms.props.max_mr = rdi->lkey_table.max;
drivers/infiniband/sw/rdmavt/rc.c
101
max = x;
drivers/infiniband/sw/rdmavt/rc.c
63
u32 min, max, x;
drivers/infiniband/sw/rdmavt/rc.c
95
max = 31;
drivers/infiniband/sw/rdmavt/rc.c
97
x = (min + max) / 2;
drivers/infiniband/sw/rxe/rxe_pool.c
111
pool->limit.max = info->max_index;
drivers/infiniband/sw/siw/siw_verbs.c
677
sqe->sge[0].length = max(bytes, 0);
drivers/infiniband/ulp/ipoib/ipoib_ib.c
464
int max = (budget - done);
drivers/infiniband/ulp/ipoib/ipoib_ib.c
466
t = min(IPOIB_NUM_WC, max);
drivers/infiniband/ulp/ipoib/ipoib_main.c
2728
ipoib_recvq_size = max(ipoib_recvq_size, IPOIB_MIN_QUEUE_SIZE);
drivers/infiniband/ulp/ipoib/ipoib_main.c
2735
ipoib_max_conn_qp = max(ipoib_max_conn_qp, 0);
drivers/infiniband/ulp/isert/ib_isert.c
1076
sg_nents = max(1UL, DIV_ROUND_UP(imm_data_len, PAGE_SIZE));
drivers/infiniband/ulp/isert/ib_isert.c
1143
sg_nents = max(1UL, DIV_ROUND_UP(unsol_data_len, PAGE_SIZE));
drivers/infiniband/ulp/rtrs/rtrs-clt.c
1468
mr_page_shift = max(12, ffs(ib_dev->attrs.page_size_cap) - 1);
drivers/infiniband/ulp/srp/ib_srp.c
1312
max_iu_len = max(max_iu_len, SRP_IMM_DATA_OFFSET +
drivers/infiniband/ulp/srp/ib_srp.c
3820
max(4 * num_online_nodes(),
drivers/infiniband/ulp/srp/ib_srp.c
4019
mr_page_shift = max(12, ffs(attr->page_size_cap) - 1);
drivers/infiniband/ulp/srpt/ib_srpt.c
1917
sq_size = max(sq_size / 2, MIN_SRPT_SQ_SIZE);
drivers/input/evdev.c
455
max(dev->hint_events_per_packet * EVDEV_BUF_PACKETS,
drivers/input/gameport/lightning.c
177
static int l4_calibrate(struct gameport *gameport, int *axes, int *max)
drivers/input/gameport/lightning.c
187
t = (max[i] * cal[i]) / 200;
drivers/input/input-compat.c
110
len += snprintf(buf + len, max(buf_size - len, 0),
drivers/input/input-poller.c
190
static DEVICE_ATTR(max, 0444, input_dev_get_poll_max, NULL);
drivers/input/input.c
1064
unsigned long *bitmap, int max)
drivers/input/input.c
1072
for (i = BITS_TO_LONGS(max) - 1; i >= 0; i--) {
drivers/input/input.c
1276
len += snprintf(buf, max(size, 0), "%c", name);
drivers/input/input.c
1278
len += snprintf(buf + len, max(size - len, 0), "%X,", bit);
drivers/input/input.c
1287
len = snprintf(buf, max(size, 0),
drivers/input/input.c
1299
space = max(size - (len + 1), 0);
drivers/input/input.c
1386
int max, int add_cr);
drivers/input/input.c
1478
int max, int add_cr)
drivers/input/input.c
1484
for (i = BITS_TO_LONGS(max) - 1; i >= 0; i--) {
drivers/input/input.c
1485
len += input_bits_to_string(buf + len, max(buf_size - len, 0),
drivers/input/input.c
1490
len += snprintf(buf + len, max(buf_size - len, 0), " ");
drivers/input/input.c
1501
len += snprintf(buf + len, max(buf_size - len, 0), "\n");
drivers/input/input.c
1574
const char *name, const unsigned long *bitmap, int max)
drivers/input/input.c
1583
bitmap, max, false);
drivers/input/input.c
1635
#define INPUT_ADD_HOTPLUG_BM_VAR(name, bm, max) \
drivers/input/input.c
1637
int err = input_add_uevent_bm_var(env, name, bm, max); \
drivers/input/input.c
456
int min, int max, int fuzz, int flat)
drivers/input/input.c
469
absinfo->maximum = max;
drivers/input/input.c
66
unsigned long *bm, unsigned int max)
drivers/input/input.c
68
return code <= max && test_bit(code, bm);
drivers/input/joystick/adc-joystick.c
33
int max = input_abs_get_max(dev, axis);
drivers/input/joystick/adc-joystick.c
35
return (max + min) - val;
drivers/input/joystick/analog.c
459
int max[4];
drivers/input/joystick/analog.c
499
for (i = 0; i < 4; i++) max[i] = port->axes[i] << 1;
drivers/input/joystick/analog.c
501
if ((analog[0].mask & 0x7) == 0x7) max[2] = (max[0] + max[1]) >> 1;
drivers/input/joystick/analog.c
502
if ((analog[0].mask & 0xb) == 0xb) max[3] = (max[0] + max[1]) >> 1;
drivers/input/joystick/analog.c
503
if ((analog[0].mask & ANALOG_BTN_TL) && !(analog[0].mask & ANALOG_BTN_TL2)) max[2] >>= 1;
drivers/input/joystick/analog.c
504
if ((analog[0].mask & ANALOG_BTN_TR) && !(analog[0].mask & ANALOG_BTN_TR2)) max[3] >>= 1;
drivers/input/joystick/analog.c
505
if ((analog[0].mask & ANALOG_HAT_FCS)) max[3] >>= 1;
drivers/input/joystick/analog.c
507
gameport_calibrate(port->gameport, port->axes, max);
drivers/input/joystick/gf2k.c
314
int max = i < 2 ?
drivers/input/joystick/gf2k.c
321
32, max - 32, 8, flat);
drivers/input/joystick/sidewinder.c
751
int min, max, fuzz, flat;
drivers/input/joystick/sidewinder.c
755
max = (1 << bits) - 1;
drivers/input/joystick/sidewinder.c
761
min, max, fuzz, flat);
drivers/input/keyboard/applespi.c
955
applespi->tp_dim_max_x = max(applespi->tp_dim_max_x,
drivers/input/keyboard/applespi.c
959
applespi->tp_dim_max_y = max(applespi->tp_dim_max_y,
drivers/input/keyboard/gpio_keys_polled.c
203
int i, min = 0, max = 0;
drivers/input/keyboard/gpio_keys_polled.c
213
if (button->value > max)
drivers/input/keyboard/gpio_keys_polled.c
214
max = button->value;
drivers/input/keyboard/gpio_keys_polled.c
217
input_set_abs_params(input, code, min, max, 0, 0);
drivers/input/misc/ati_remote2.c
38
unsigned int max)
drivers/input/misc/ati_remote2.c
50
if (mask & ~max)
drivers/input/misc/gpio_decoder.c
64
u32 max;
drivers/input/misc/gpio_decoder.c
85
if (device_property_read_u32(dev, "decoder-max-value", &max))
drivers/input/misc/gpio_decoder.c
86
max = BIT(decoder->input_gpios->ndescs) - 1;
drivers/input/misc/gpio_decoder.c
96
input_set_abs_params(input, decoder->axis, 0, max, 0, 0);
drivers/input/misc/kxtj9.c
324
tj9->last_poll_interval = max(interval, tj9->pdata.min_interval);
drivers/input/misc/uinput.c
401
int min, max, range;
drivers/input/misc/uinput.c
404
max = abs->maximum;
drivers/input/misc/uinput.c
406
if ((min != 0 || max != 0) && max < min) {
drivers/input/misc/uinput.c
409
UINPUT_NAME, code, min, max);
drivers/input/misc/uinput.c
413
if (!check_sub_overflow(max, min, &range) && abs->flat > range) {
drivers/input/misc/uinput.c
416
UINPUT_NAME, code, abs->flat, min, max);
drivers/input/misc/uinput.c
427
if (code == ABS_MT_SLOT && max > 99) {
drivers/input/misc/uinput.c
430
UINPUT_NAME, max);
drivers/input/mouse/alps.c
410
fingers = max(fingers_x, fingers_y);
drivers/input/mouse/alps.c
420
x_high.num_bits = max(i, 1);
drivers/input/mouse/alps.c
426
y_high.num_bits = max(i, 1);
drivers/input/mouse/alps.c
667
f->fingers = max((p[5] & 0x3), ((p[5] >> 2) & 0x3)) + 1;
drivers/input/mouse/appletouch.c
601
fingers = max(x_f, y_f);
drivers/input/mouse/appletouch.c
721
fingers = max(x_f, y_f);
drivers/input/mouse/bcm5974.c
244
int max; /* device maximum reading */
drivers/input/mouse/bcm5974.c
513
int fuzz = p->snratio ? (p->max - p->min) / p->snratio : 0;
drivers/input/mouse/bcm5974.c
514
input_set_abs_params(input, code, p->min, p->max, fuzz, 0);
drivers/input/mouse/bcm5974.c
597
abs_p = clamp_val(256 * p / cfg->p.max, 0, 255);
drivers/input/mouse/bcm5974.c
598
abs_w = clamp_val(16 * w / cfg->w.max, 0, 15);
drivers/input/mouse/bcm5974.c
624
dev->pos[n].y = c->y.min + c->y.max - raw2int(f->abs_y);
drivers/input/mouse/cyapa_gen5.c
1911
*electrodes_rx = max(cyapa->electrodes_x, cyapa->electrodes_y);
drivers/input/mouse/cyapa_gen5.c
2064
*idac_max = max(value, *idac_max);
drivers/input/mouse/cyapa_gen5.c
2077
tmp_max = max(value, tmp_max);
drivers/input/mouse/cyapa_gen5.c
2277
*raw_data_max = max(value, *raw_data_max);
drivers/input/mouse/elan_i2c_core.c
1115
unsigned int max_width = max(data->width_x, data->width_y);
drivers/input/mouse/elan_i2c_core.c
888
static DEVICE_ATTR_RO(max);
drivers/input/mouse/elan_i2c_core.c
967
max(area_x, area_y));
drivers/input/mouse/synaptics.c
473
u32 min, max;
drivers/input/mouse/synaptics.c
550
if (min_max_pnpid_table[i].board_id.max != ANY_BOARD_ID &&
drivers/input/mouse/synaptics.c
551
info->board_id > min_max_pnpid_table[i].board_id.max)
drivers/input/mouse/synaptics.c
946
synaptics_report_semi_mt_slot(dev, 1, true, max(a->x, b->x),
drivers/input/mouse/synaptics.c
947
max(a->y, b->y));
drivers/input/mousedev.c
170
int min, max, size;
drivers/input/mousedev.c
176
max = input_abs_get_max(dev, ABS_X);
drivers/input/mousedev.c
178
size = max - min;
drivers/input/mousedev.c
182
value = clamp(value, min, max);
drivers/input/mousedev.c
190
max = input_abs_get_max(dev, ABS_Y);
drivers/input/mousedev.c
192
size = max - min;
drivers/input/mousedev.c
196
value = clamp(value, min, max);
drivers/input/rmi4/rmi_2d_sensor.c
118
x = min(RMI_2D_REL_POS_MAX, max(RMI_2D_REL_POS_MIN, (int)x));
drivers/input/rmi4/rmi_2d_sensor.c
119
y = min(RMI_2D_REL_POS_MAX, max(RMI_2D_REL_POS_MIN, (int)y));
drivers/input/rmi4/rmi_2d_sensor.c
53
obj->x = max(axis_align->clip_x_low, obj->x);
drivers/input/rmi4/rmi_2d_sensor.c
54
obj->y = max(axis_align->clip_y_low, obj->y);
drivers/input/rmi4/rmi_2d_sensor.c
91
major = max(obj->wx, obj->wy);
drivers/input/rmi4/rmi_2d_sensor.c
95
major = max(1, major);
drivers/input/rmi4/rmi_2d_sensor.c
96
minor = max(1, minor);
drivers/input/rmi4/rmi_spi.c
143
len = max(total_tx_len, rx_len);
drivers/input/touchscreen.c
36
int min, int max, int fuzz)
drivers/input/touchscreen.c
49
absinfo->maximum = max;
drivers/input/touchscreen/auo-pixcir-ts.c
176
point[i].area_major = max(raw_area[2 * i], raw_area[2 * i + 1]);
drivers/input/touchscreen/cyttsp5.c
161
size_t max; /* max value */
drivers/input/touchscreen/cyttsp5.c
219
static int cyttsp5_read(struct cyttsp5 *ts, u8 *buf, u32 max)
drivers/input/touchscreen/cyttsp5.c
234
if (size > max)
drivers/input/touchscreen/cyttsp5.c
266
static void cyttsp5_get_touch_axis(int *axis, int size, int max, u8 *xy_data,
drivers/input/touchscreen/cyttsp5.c
274
*axis &= max - 1;
drivers/input/touchscreen/cyttsp5.c
286
si->tch_abs[abs].max,
drivers/input/touchscreen/cyttsp5.c
353
si->tch_hdr.max,
drivers/input/touchscreen/cyttsp5.c
396
error = input_mt_init_slots(ts->input, si->tch_abs[CY_TCH_T].max,
drivers/input/touchscreen/cyttsp5.c
690
tch_abs->max = 1 << report_size;
drivers/input/touchscreen/iqs7211.c
1790
cycle_stop = max(k, cycle_stop);
drivers/input/touchscreen/raydium_i2c_ts.c
892
input_report_abs(ts->input, ABS_MT_TOUCH_MAJOR, max(wx, wy));
drivers/input/touchscreen/sur40.c
440
major = max(bb_size_x, bb_size_y);
drivers/input/touchscreen/usbtouchscreen.c
1112
ABS_MT_TOUCH_MAJOR, max(w,h));
drivers/input/touchscreen/zforce_ts.c
337
point.area_major = max(p[5], p[6]);
drivers/interconnect/core.c
296
node->avg_bw = max(node->avg_bw, node->init_avg);
drivers/interconnect/core.c
297
node->peak_bw = max(node->peak_bw, node->init_peak);
drivers/interconnect/core.c
336
*agg_peak = max(*agg_peak, peak_bw);
drivers/interconnect/qcom/bcm-voter.c
104
agg_avg[bucket] = max(agg_avg[bucket], temp);
drivers/interconnect/qcom/bcm-voter.c
108
agg_peak[bucket] = max(agg_peak[bucket], temp);
drivers/interconnect/qcom/icc-rpm.c
383
active_rate = max(ICC_BUS_CLK_MIN_RATE, active_rate);
drivers/interconnect/qcom/msm8974.c
615
rate = max(sum_bw, max_peak_bw);
drivers/interconnect/samsung/exynos.c
64
s32 src_freq = max(src->avg_bw, src->peak_bw) / src_priv->bus_clk_ratio;
drivers/interconnect/samsung/exynos.c
65
s32 dst_freq = max(dst->avg_bw, dst->peak_bw) / dst_priv->bus_clk_ratio;
drivers/iommu/amd/init.c
1728
max(roundup_pow_of_two((last_bdf + 1) * DEV_TABLE_ENTRY_SIZE),
drivers/iommu/amd/iommu.c
3269
nid, GFP_KERNEL, max(DTE_INTTAB_ALIGNMENT, size));
drivers/iommu/arm/arm-smmu/qcom_iommu.c
786
max_asid = max(max_asid, get_asid(child));
drivers/iommu/generic_pt/pt_iter.h
505
return max(ffs_t(u64, PT_TOP_PHYS_MASK),
drivers/iommu/intel/perf.c
74
u64 min, max;
drivers/iommu/intel/perf.c
96
max = lstat[type].counter[COUNTS_MAX];
drivers/iommu/intel/perf.c
98
lstat[type].counter[COUNTS_MAX] = max_t(u64, max, latency);
drivers/iommu/io-pgtable-arm.c
264
alloc_size = max(size, 64);
drivers/iommu/iommu.c
903
top->length = max(top_end, iter_end) - top->start + 1;
drivers/iommu/iommufd/driver.c
196
max_pgoff = max(max_pgoff, cur->pgoff + 1);
drivers/iommu/iommufd/pages.c
1681
max(start_index, *unmapped_end_index);
drivers/iommu/iommufd/selftest.c
1719
unsigned long i, max;
drivers/iommu/iommufd/selftest.c
1739
max = length / page_size;
drivers/iommu/iommufd/selftest.c
1740
tmp = kvzalloc(DIV_ROUND_UP(max, BITS_PER_LONG) * sizeof(unsigned long),
drivers/iommu/iommufd/selftest.c
1747
if (copy_from_user(tmp, uptr, DIV_ROUND_UP(max, BITS_PER_BYTE))) {
drivers/iommu/iommufd/selftest.c
1752
for (i = 0; i < max; i++) {
drivers/iommu/iommufd/vfio_compat.c
367
pgsize_bitmap = max(pgsize_bitmap, ioas->iopt.iova_alignment);
drivers/iommu/riscv/iommu.c
1598
max(FIELD_GET(RISCV_IOMMU_ICVEC_PIV, iommu->icvec),
drivers/iommu/riscv/iommu.c
169
iommu, max(queue_size, SZ_4K));
drivers/irqchip/irq-aspeed-scu-ic.c
106
unsigned long bit, enabled, max, status;
drivers/irqchip/irq-aspeed-scu-ic.c
117
max = scu_ic->num_irqs + bit;
drivers/irqchip/irq-aspeed-scu-ic.c
119
for_each_set_bit_from(bit, &status, max) {
drivers/irqchip/irq-aspeed-scu-ic.c
70
unsigned long bit, enabled, max, status;
drivers/irqchip/irq-aspeed-scu-ic.c
91
max = scu_ic->num_irqs + bit;
drivers/irqchip/irq-aspeed-scu-ic.c
93
for_each_set_bit_from(bit, &status, max) {
drivers/irqchip/irq-crossbar.c
197
u32 max = 0, entry, reg_size;
drivers/irqchip/irq-crossbar.c
219
of_property_read_u32(node, "ti,max-irqs", &max);
drivers/irqchip/irq-crossbar.c
220
if (!max) {
drivers/irqchip/irq-crossbar.c
225
cb->irq_map = kcalloc(max, sizeof(int), GFP_KERNEL);
drivers/irqchip/irq-crossbar.c
229
cb->int_max = max;
drivers/irqchip/irq-crossbar.c
231
for (i = 0; i < max; i++)
drivers/irqchip/irq-crossbar.c
243
if (entry >= max) {
drivers/irqchip/irq-crossbar.c
261
if (entry >= max) {
drivers/irqchip/irq-crossbar.c
271
cb->register_offsets = kzalloc_objs(int, max);
drivers/irqchip/irq-crossbar.c
298
for (i = 0; i < max; i++) {
drivers/irqchip/irq-crossbar.c
308
for (i = 0; i < max; i++) {
drivers/irqchip/irq-gic-its-msi-parent.c
101
nvec = max(nvec, alias_count);
drivers/irqchip/irq-gic-its-msi-parent.c
50
msi = max(pci_msi_vec_count(pdev), 0);
drivers/irqchip/irq-gic-its-msi-parent.c
51
msix = max(pci_msix_vec_count(pdev), 0);
drivers/irqchip/irq-gic-its-msi-parent.c
52
*count += max(msi, msix);
drivers/irqchip/irq-gic-v3-its.c
3493
nr_ites = max(2, nvecs);
drivers/irqchip/irq-gic-v3-its.c
3495
sz = max(sz, ITS_ITT_ALIGN);
drivers/irqchip/irq-gic-v5-irs.c
139
n = max(5, lpi_id_bits - ((10 - istsz) + (2 * l2sz)) + 2);
drivers/irqchip/irq-gic-v5-irs.c
324
lpi_id_bits = max(LPI_ID_BITS_LINEAR, idr2_min_lpi_id_bits);
drivers/irqchip/irq-gic-v5-irs.c
390
u32 min, max;
drivers/irqchip/irq-gic-v5-irs.c
397
max = irs_data->spi_min + irs_data->spi_range - 1;
drivers/irqchip/irq-gic-v5-irs.c
398
if (spi_id >= min && spi_id <= max)
drivers/irqchip/irq-gic-v5-irs.c
75
n = max(5, lpi_id_bits + 1 + istsz);
drivers/irqchip/irq-ls-extirq.c
148
priv->nirq = max(priv->nirq, hwirq + 1);
drivers/leds/flash/leds-aat1290.c
363
setting->max = cfg->max_flash_tm;
drivers/leds/flash/leds-aat1290.c
365
setting->val = setting->max;
drivers/leds/flash/leds-aat1290.c
429
s->max = led_cfg->max_mm_current;
drivers/leds/flash/leds-aat1290.c
431
s->val = s->max;
drivers/leds/flash/leds-as3645a.c
285
static unsigned int __as3645a_current_to_reg(unsigned int min, unsigned int max,
drivers/leds/flash/leds-as3645a.c
292
if (val > max)
drivers/leds/flash/leds-as3645a.c
293
val = max;
drivers/leds/flash/leds-as3645a.c
593
cfg->max = flash->cfg.flash_max_ua;
drivers/leds/flash/leds-as3645a.c
599
cfg->max = flash->cfg.flash_timeout_us;
drivers/leds/flash/leds-as3645a.c
638
.max = flash->cfg.assist_max_ua,
drivers/leds/flash/leds-as3645a.c
646
.max = flash->cfg.indicator_max_ua,
drivers/leds/flash/leds-ktd2692.c
179
setting->max = cfg->flash_max_timeout;
drivers/leds/flash/leds-lm3601x.c
332
setting->max = led->max_flash_timeout;
drivers/leds/flash/leds-lm3601x.c
338
setting->max = led->flash_current_max;
drivers/leds/flash/leds-max77693.c
693
static void clamp_align(u32 *v, u32 min, u32 max, u32 step)
drivers/leds/flash/leds-max77693.c
695
*v = clamp_val(*v, min, max);
drivers/leds/flash/leds-max77693.c
701
u32 *iout, u32 min, u32 max, u32 step)
drivers/leds/flash/leds-max77693.c
718
clamp_align(&iout[i], min, max, step);
drivers/leds/flash/leds-max77693.c
798
setting->max = led->iout_joint ?
drivers/leds/flash/leds-max77693.c
803
setting->val = setting->max;
drivers/leds/flash/leds-max77693.c
808
setting->max = led_cfg->flash_timeout_max[fled_id];
drivers/leds/flash/leds-max77693.c
810
setting->val = setting->max;
drivers/leds/flash/leds-max77693.c
853
s->max = sub_led->fled_cdev.led_cdev.max_brightness * TORCH_IOUT_STEP;
drivers/leds/flash/leds-max77693.c
855
s->val = s->max;
drivers/leds/flash/leds-mt6360.c
508
s->val = s->max = s->min + (lcdev->max_brightness - 1) * s->step;
drivers/leds/flash/leds-mt6360.c
612
static u32 clamp_align(u32 val, u32 min, u32 max, u32 step)
drivers/leds/flash/leds-mt6360.c
616
retval = clamp_val(val, min, max);
drivers/leds/flash/leds-mt6360.c
742
s->val = s->max = val;
drivers/leds/flash/leds-mt6360.c
765
s->val = s->max = val;
drivers/leds/flash/leds-mt6370-flash.c
383
s->val = s->max = s->min + (lcdev->max_brightness - 1) * s->step;
drivers/leds/flash/leds-mt6370-flash.c
424
static u32 mt6370_clamp(u32 val, u32 min, u32 max, u32 step)
drivers/leds/flash/leds-mt6370-flash.c
428
retval = clamp_val(val, min, max);
drivers/leds/flash/leds-mt6370-flash.c
485
s->val = s->max = val;
drivers/leds/flash/leds-mt6370-flash.c
501
s->val = s->max = val;
drivers/leds/flash/leds-qcom-flash.c
687
intensity->max = led->max_torch_current_ma * UA_PER_MA;
drivers/leds/flash/leds-qcom-flash.c
688
intensity->val = min_t(u32, intensity->max, TORCH_CURRENT_DEFAULT_UA);
drivers/leds/flash/leds-qcom-flash.c
797
brightness->max = current_ua;
drivers/leds/flash/leds-qcom-flash.c
815
timeout->val = timeout->max = timeout_us;
drivers/leds/flash/leds-rt4505.c
274
s->max = s->val = s->min + (lcdev->max_brightness - 1) * s->step;
drivers/leds/flash/leds-rt4505.c
322
s->max = s->val = val;
drivers/leds/flash/leds-rt4505.c
336
s->max = s->val = val;
drivers/leds/flash/leds-rt8515.c
182
s->max = rt->max_timeout;
drivers/leds/flash/leds-rt8515.c
209
s->max = rt->flash_max_intensity;
drivers/leds/flash/leds-rt8515.c
211
s->val = s->max;
drivers/leds/flash/leds-sgm3140.c
155
s->max = priv->max_timeout;
drivers/leds/flash/leds-sgm3140.c
173
s->max = 1;
drivers/leds/flash/leds-sy7802.c
300
s->max = SY7802_FLASH_BRIGHTNESS_MAX;
drivers/leds/flash/leds-sy7802.c
312
s->max = SY7802_TIMEOUT_MAX_US;
drivers/leds/flash/leds-tps6131x.c
667
setting->max = tps6131x->max_timeout_us;
drivers/leds/flash/leds-tps6131x.c
673
setting->max = tps6131x->max_flash_current_ma;
drivers/leds/flash/leds-tps6131x.c
716
intensity->max = tps6131x->max_torch_current_ma;
drivers/leds/led-class-flash.c
181
return sprintf(buf, "%u\n", fled_cdev->timeout.max);
drivers/leds/led-class-flash.c
382
v = clamp(v, s->min, s->max);
drivers/leds/led-class-flash.c
84
return sprintf(buf, "%u\n", fled_cdev->brightness.max);
drivers/leds/leds-aw200xx.c
399
max_source = max(max_source, source);
drivers/leds/leds-is31fl32xx.c
197
int microamp = max(led_data->max_microamp, IS31FL3293_MAX_MICROAMP);
drivers/leds/leds-pwm.c
47
unsigned int max = led_dat->cdev.max_brightness;
drivers/leds/leds-pwm.c
51
do_div(duty, max);
drivers/leds/leds-sun50i-a100.c
234
next_length = max(priv->next_length, led->addr + 1);
drivers/leds/leds-sun50i-a100.c
416
max_addr = max(max_addr, addr);
drivers/leds/rgb/leds-group-multicolor.c
97
max_brightness = max(max_brightness, led_cdev->max_brightness);
drivers/leds/rgb/leds-qcom-lpg.c
530
unsigned int max;
drivers/leds/rgb/leds-qcom-lpg.c
535
max = BIT(lpg_pwm_resolution_hi_res[chan->pwm_resolution_sel]) - 1;
drivers/leds/rgb/leds-qcom-lpg.c
538
max = BIT(lpg_pwm_resolution[chan->pwm_resolution_sel]) - 1;
drivers/leds/rgb/leds-qcom-lpg.c
545
chan->pwm_value = min(val, max);
drivers/macintosh/macio_asic.c
555
int i, max;
drivers/macintosh/macio_asic.c
557
max = min(dev->n_resources, 32);
drivers/macintosh/macio_asic.c
558
for (i = 0; i < max; i++) {
drivers/macintosh/via-pmu-backlight.c
26
static void pmu_backlight_init_curve(u8 off, u8 min, u8 max)
drivers/macintosh/via-pmu-backlight.c
28
int i, flat, count, range = (max - min);
drivers/macintosh/via-pmu-backlight.c
43
int i, max = 0;
drivers/macintosh/via-pmu-backlight.c
47
max = max((int)bl_curve[i], max);
drivers/macintosh/via-pmu-backlight.c
52
if (diff < max) {
drivers/macintosh/via-pmu-backlight.c
53
max = diff;
drivers/macintosh/via-pmu.c
693
long amperage, voltage, time, max;
drivers/macintosh/via-pmu.c
742
max = 100;
drivers/macintosh/via-pmu.c
745
charge = max = amperage = voltage = time = 0;
drivers/macintosh/via-pmu.c
749
pmu_batteries[pmu_cur_battery].max_charge = max;
drivers/macintosh/via-pmu.c
782
unsigned int capa, max, voltage;
drivers/macintosh/via-pmu.c
790
capa = max = amperage = voltage = 0;
drivers/macintosh/via-pmu.c
797
max = req->reply[3];
drivers/macintosh/via-pmu.c
802
max = (req->reply[4] << 8) | req->reply[5];
drivers/macintosh/via-pmu.c
819
pmu_batteries[pmu_cur_battery].max_charge = max;
drivers/macintosh/via-pmu.c
825
= ((max-capa) * 3600) / amperage;
drivers/macintosh/windfarm_fcu_controls.c
153
if (value > fan->max)
drivers/macintosh/windfarm_fcu_controls.c
154
value = fan->max;
drivers/macintosh/windfarm_fcu_controls.c
210
if (value > fan->max)
drivers/macintosh/windfarm_fcu_controls.c
211
value = fan->max;
drivers/macintosh/windfarm_fcu_controls.c
263
return fan->max;
drivers/macintosh/windfarm_fcu_controls.c
294
pump_min = max(pump_min, tmp[0]);
drivers/macintosh/windfarm_fcu_controls.c
298
pump_min = max(pump_min, tmp[2]);
drivers/macintosh/windfarm_fcu_controls.c
313
fan->max = pump_max;
drivers/macintosh/windfarm_fcu_controls.c
327
fan->max = 56000 >> pv->rpm_shift;
drivers/macintosh/windfarm_fcu_controls.c
331
fan->min = max(fan->min, (s32)mpu0->rminn_intake_fan);
drivers/macintosh/windfarm_fcu_controls.c
332
fan->max = min(fan->max, (s32)mpu0->rmaxn_intake_fan);
drivers/macintosh/windfarm_fcu_controls.c
336
fan->min = max(fan->min, (s32)mpu1->rminn_intake_fan);
drivers/macintosh/windfarm_fcu_controls.c
337
fan->max = min(fan->max, (s32)mpu1->rmaxn_intake_fan);
drivers/macintosh/windfarm_fcu_controls.c
341
fan->min = max(fan->min, (s32)mpu0->rminn_exhaust_fan);
drivers/macintosh/windfarm_fcu_controls.c
342
fan->max = min(fan->max, (s32)mpu0->rmaxn_exhaust_fan);
drivers/macintosh/windfarm_fcu_controls.c
346
fan->min = max(fan->min, (s32)mpu1->rminn_exhaust_fan);
drivers/macintosh/windfarm_fcu_controls.c
347
fan->max = min(fan->max, (s32)mpu1->rmaxn_exhaust_fan);
drivers/macintosh/windfarm_fcu_controls.c
352
fan->min = max(fan->min, (s32)mpu0->rminn_intake_fan);
drivers/macintosh/windfarm_fcu_controls.c
353
fan->max = min(fan->max, (s32)mpu0->rmaxn_intake_fan);
drivers/macintosh/windfarm_fcu_controls.c
358
fan->ctrl.name, fan->min, fan->max);
drivers/macintosh/windfarm_fcu_controls.c
386
fan->max = 100;
drivers/macintosh/windfarm_fcu_controls.c
66
s32 min, max, target;
drivers/macintosh/windfarm_max6690_sensor.c
100
rc = wf_register_sensor(&max->sens);
drivers/macintosh/windfarm_max6690_sensor.c
102
kfree(max);
drivers/macintosh/windfarm_max6690_sensor.c
108
struct wf_6690_sensor *max = i2c_get_clientdata(client);
drivers/macintosh/windfarm_max6690_sensor.c
110
max->i2c = NULL;
drivers/macintosh/windfarm_max6690_sensor.c
111
wf_unregister_sensor(&max->sens);
drivers/macintosh/windfarm_max6690_sensor.c
36
struct wf_6690_sensor *max = wf_to_6690(sr);
drivers/macintosh/windfarm_max6690_sensor.c
39
if (max->i2c == NULL)
drivers/macintosh/windfarm_max6690_sensor.c
43
data = i2c_smbus_read_byte_data(max->i2c, MAX6690_EXTERNAL_TEMP);
drivers/macintosh/windfarm_max6690_sensor.c
52
struct wf_6690_sensor *max = wf_to_6690(sr);
drivers/macintosh/windfarm_max6690_sensor.c
54
kfree(max);
drivers/macintosh/windfarm_max6690_sensor.c
66
struct wf_6690_sensor *max;
drivers/macintosh/windfarm_max6690_sensor.c
88
max = kzalloc_obj(struct wf_6690_sensor);
drivers/macintosh/windfarm_max6690_sensor.c
89
if (max == NULL) {
drivers/macintosh/windfarm_max6690_sensor.c
95
max->i2c = client;
drivers/macintosh/windfarm_max6690_sensor.c
96
max->sens.name = name;
drivers/macintosh/windfarm_max6690_sensor.c
97
max->sens.ops = &wf_max6690_ops;
drivers/macintosh/windfarm_max6690_sensor.c
98
i2c_set_clientdata(client, max);
drivers/macintosh/windfarm_pid.c
138
target = max(target, st->param.min);
drivers/macintosh/windfarm_pid.c
139
target = min(target, st->param.max);
drivers/macintosh/windfarm_pid.c
71
target = max(target, st->param.min);
drivers/macintosh/windfarm_pid.c
72
target = min(target, st->param.max);
drivers/macintosh/windfarm_pid.h
34
s32 min,max; /* min and max target values */
drivers/macintosh/windfarm_pid.h
69
s32 min,max; /* min and max target values */
drivers/macintosh/windfarm_pm112.c
176
pid.max = main_fan->ops->get_max(main_fan);
drivers/macintosh/windfarm_pm112.c
293
t_max = max(t_max, temp);
drivers/macintosh/windfarm_pm112.c
369
backside_param.max = backside_fan->ops->get_max(backside_fan);
drivers/macintosh/windfarm_pm112.c
419
drive_bay_prm.max = drive_bay_fan->ops->get_max(drive_bay_fan);
drivers/macintosh/windfarm_pm112.c
456
.max = 3510,
drivers/macintosh/windfarm_pm121.c
489
new_setpoint = max(setpoint, (new_min >> 16));
drivers/macintosh/windfarm_pm121.c
551
pid_param.max = control->ops->get_max(control);
drivers/macintosh/windfarm_pm121.c
558
pid_param.max = 0;
drivers/macintosh/windfarm_pm121.c
566
pid_param.min, pid_param.max);
drivers/macintosh/windfarm_pm121.c
696
pid_param.max = fan_cpu->ops->get_max(fan_cpu);
drivers/macintosh/windfarm_pm121.c
703
pid_param.min, pid_param.max);
drivers/macintosh/windfarm_pm72.c
274
t_max = max(t_max, temp);
drivers/macintosh/windfarm_pm72.c
337
t_max = max(t_max, max(temp0, temp1));
drivers/macintosh/windfarm_pm72.c
344
temp = max(temp0, temp1);
drivers/macintosh/windfarm_pm72.c
345
power = max(power0, power1);
drivers/macintosh/windfarm_pm72.c
430
pid.max = fmax;
drivers/macintosh/windfarm_pm72.c
448
.max = 100,
drivers/macintosh/windfarm_pm72.c
460
.max = 100,
drivers/macintosh/windfarm_pm72.c
522
param.min = max(param.min, fmin);
drivers/macintosh/windfarm_pm72.c
523
param.max = min(param.max, fmax);
drivers/macintosh/windfarm_pm72.c
540
.max = 4000,
drivers/macintosh/windfarm_pm72.c
588
param.min = max(param.min, fmin);
drivers/macintosh/windfarm_pm72.c
589
param.max = min(param.max, fmax);
drivers/macintosh/windfarm_pm81.c
306
pid_param.max = wf_control_get_max(fan_system);
drivers/macintosh/windfarm_pm81.c
309
max(pid_param.min, wf_control_get_min(fan_hd));
drivers/macintosh/windfarm_pm81.c
310
pid_param.max =
drivers/macintosh/windfarm_pm81.c
311
min(pid_param.max, wf_control_get_max(fan_hd));
drivers/macintosh/windfarm_pm81.c
317
FIX32TOPRINT(pid_param.itarget), pid_param.min, pid_param.max);
drivers/macintosh/windfarm_pm81.c
364
scaled = max(scaled, cputarget);
drivers/macintosh/windfarm_pm81.c
365
scaled = max(scaled, st->pid.param.min);
drivers/macintosh/windfarm_pm81.c
366
scaled = min(scaled, st->pid.param.max);
drivers/macintosh/windfarm_pm81.c
450
pid_param.max = wf_control_get_max(fan_cpu_main);
drivers/macintosh/windfarm_pm81.c
457
pid_param.min, pid_param.max);
drivers/macintosh/windfarm_pm81.c
516
new_setpoint = max(new_setpoint, systarget);
drivers/macintosh/windfarm_pm81.c
517
new_setpoint = max(new_setpoint, st->pid.param.min);
drivers/macintosh/windfarm_pm81.c
518
new_setpoint = min(new_setpoint, st->pid.param.max);
drivers/macintosh/windfarm_pm91.c
197
pid_param.max = wf_control_get_max(fan_cpu_main);
drivers/macintosh/windfarm_pm91.c
204
pid_param.min, pid_param.max);
drivers/macintosh/windfarm_pm91.c
313
param.max = wf_control_get_max(fan_hd);
drivers/macintosh/windfarm_pm91.c
318
FIX32TOPRINT(param.itarget), param.min, param.max);
drivers/macintosh/windfarm_pm91.c
393
param.max = wf_control_get_max(fan_slots);
drivers/macintosh/windfarm_pm91.c
398
FIX32TOPRINT(param.itarget), param.min, param.max);
drivers/macintosh/windfarm_rm31.c
266
t_max = max(t_max, temp);
drivers/macintosh/windfarm_rm31.c
278
speed = max(sp->target, dimms_output_clamp);
drivers/macintosh/windfarm_rm31.c
331
pid.max = fmax;
drivers/macintosh/windfarm_rm31.c
349
.max = 100,
drivers/macintosh/windfarm_rm31.c
362
.max = 14000,
drivers/macintosh/windfarm_rm31.c
409
fan_min = max(fan_min, backside_param.min);
drivers/macintosh/windfarm_rm31.c
410
speed = max(speed, fan_min);
drivers/macintosh/windfarm_rm31.c
427
param.min = max(param.min, fmin);
drivers/macintosh/windfarm_rm31.c
428
param.max = min(param.max, fmax);
drivers/macintosh/windfarm_rm31.c
449
.max = 100,
drivers/macintosh/windfarm_rm31.c
493
param.min = max(param.min, fmin);
drivers/macintosh/windfarm_rm31.c
494
param.max = min(param.max, fmax);
drivers/macintosh/windfarm_smu_controls.c
122
if (value > fct->max)
drivers/macintosh/windfarm_smu_controls.c
123
value = fct->max;
drivers/macintosh/windfarm_smu_controls.c
145
return fct->max;
drivers/macintosh/windfarm_smu_controls.c
239
fct->max = *v;
drivers/macintosh/windfarm_smu_controls.c
49
s32 min, max; /* min/max values */
drivers/mailbox/mailbox-mchp-ipc-sbi.c
277
size_t max_size = max(sizeof(struct mchp_ipc_init), sizeof(struct mchp_ipc_sbi_msg));
drivers/md/bcache/alloc.c
77
ca->set->need_gc = max(ca->set->need_gc, bucket_gc_gen(b));
drivers/md/bcache/btree.c
1251
stale = max(stale, ptr_stale(c, k, i));
drivers/md/bcache/btree.c
1316
stale = max(stale, btree_mark_key(b, k));
drivers/md/bcache/btree.c
1809
c->need_gc = max(c->need_gc, bucket_gc_gen(b));
drivers/md/bcache/btree.c
2192
return max(ret, 0L);
drivers/md/bcache/request.c
453
sectors = max(task->sequential_io,
drivers/md/bcache/super.c
70
unsigned int max, order;
drivers/md/bcache/super.c
72
max = sizeof(unsigned int) * BITS_PER_BYTE - 1;
drivers/md/bcache/super.c
78
if (order > max)
drivers/md/bcache/sysfs.c
704
ret = max(ret, hlist_count_nodes(h));
drivers/md/bcache/sysfs.h
106
#define sysfs_strtoul_clamp(file, var, min, max) \
drivers/md/bcache/sysfs.h
111
ret = strtoul_safe_clamp(buf, v, min, max); \
drivers/md/bcache/util.c
175
stats->max_duration = max(stats->max_duration, duration);
drivers/md/bcache/util.h
333
#define strtoul_safe_clamp(cp, var, min, max) \
drivers/md/bcache/util.h
338
var = clamp_t(typeof(var), _v, min, max); \
drivers/md/dm-bufio.c
1396
align = max(DM_BUFIO_WRITE_ALIGN,
drivers/md/dm-cache-policy-smq.c
1057
threshold_level = max(threshold_level, NR_HOTSPOT_LEVELS);
drivers/md/dm-cache-policy-smq.c
1724
*nr_hotspot_blocks = max(nr_cache_blocks / 4u, 1024u);
drivers/md/dm-cache-policy-smq.c
590
nr_buckets = roundup_pow_of_two(max(nr_entries / 4u, 16u));
drivers/md/dm-clone-target.c
1546
.max = 2,
drivers/md/dm-clone-target.c
1585
.max = 4,
drivers/md/dm-clone-target.c
1638
arg.max = MAX_REGION_SIZE;
drivers/md/dm-core.h
332
unsigned int __dm_get_module_param(unsigned int *module_param, unsigned int def, unsigned int max);
drivers/md/dm-crypt.c
277
sector_align = max(bdev_logical_block_size(cc->dev->bdev),
drivers/md/dm-crypt.c
2799
cc->iv_size = max(cc->iv_size,
drivers/md/dm-delay.c
258
max_delay = max(max_delay, dc->write.delay);
drivers/md/dm-delay.c
271
max_delay = max(max_delay, dc->flush.delay);
drivers/md/dm-raid.c
1542
uint32_t min_stripes = max(mddev->chunk_sectors, mddev->new_chunk_sectors) / 2;
drivers/md/dm-raid.c
1639
return max(reshape_sectors, (sector_t) rs->data_offset);
drivers/md/dm-raid.c
1805
max(near_copies, __raid10_far_copies(mddev->layout)) == mddev->raid_disks)
drivers/md/dm-raid.c
3046
_args[1].max = (as_nrd.argc - 1) / 2;
drivers/md/dm-raid.c
317
static bool __within_range(long v, long min, long max)
drivers/md/dm-raid.c
319
return v >= min && v <= max;
drivers/md/dm-raid.c
3676
max(rs->delta_disks, mddev->delta_disks));
drivers/md/dm-raid.c
596
return max(__raid10_near_copies(layout), __raid10_far_copies(layout));
drivers/md/dm-snap-persistent.c
319
ps->store->chunk_size = max(DM_CHUNK_SIZE_DEFAULT_SECTORS,
drivers/md/dm-table.c
1066
per_io_data_size = max(per_io_data_size, ti->per_io_data_size);
drivers/md/dm-table.c
1067
min_pool_size = max(min_pool_size, ti->num_flush_bios);
drivers/md/dm-table.c
1069
pool_size = max(dm_get_reserved_bio_based_ios(), min_pool_size);
drivers/md/dm-table.c
786
(*value > arg->max) ||
drivers/md/dm-vdo/dedupe.c
2143
end_time = max(start_time + vdo_dedupe_index_timeout_jiffies,
drivers/md/dm-vdo/dm-vdo-target.c
1533
unsigned int new_count = max(instances.bit_count + BIT_COUNT_INCREMENT,
drivers/md/dm-vdo/encodings.c
448
page_count_t leaf_pages = max(vdo_compute_block_map_page_count(entries), 1U);
drivers/md/dm-vdo/errors.c
112
} else if ((errnum >= block->last) && (errnum < block->max)) {
drivers/md/dm-vdo/errors.c
280
.max = next_free_error,
drivers/md/dm-vdo/errors.c
301
if ((first_error < block->max) && (next_free_error > block->base))
drivers/md/dm-vdo/errors.c
74
int max;
drivers/md/dm-vdo/errors.c
91
.max = UDS_ERROR_CODE_BLOCK_END,
drivers/md/dm-vdo/indexer/volume-index.c
224
params->list_count = max(delta_list_records / DELTA_LIST_SIZE, min_delta_lists);
drivers/md/dm-vdo/indexer/volume-index.c
257
invalid_chapters = max(rounded_chapters / 256, 2U);
drivers/md/dm-writecache.c
556
region.count = max(4096U, wc->block_size) >> SECTOR_SHIFT;
drivers/md/dm.c
151
static int __dm_get_module_param_int(int *module_param, int min, int max)
drivers/md/dm.c
159
else if (param > max)
drivers/md/dm.c
160
modified_param = max;
drivers/md/dm.c
172
unsigned int __dm_get_module_param(unsigned int *module_param, unsigned int def, unsigned int max)
drivers/md/dm.c
179
else if (param > max)
drivers/md/dm.c
180
modified_param = max;
drivers/md/md.c
5399
unsigned int max;
drivers/md/md.c
5403
max = 0;
drivers/md/md.c
5405
rv = kstrtouint(buf, 10, &max);
drivers/md/md.c
5408
if (max == 0)
drivers/md/md.c
5411
mddev->sync_speed_max = max;
drivers/md/md.c
5428
unsigned int max;
drivers/md/md.c
5432
max = 0;
drivers/md/md.c
5434
rv = kstrtouint(buf, 10, &max);
drivers/md/md.c
5437
if (max == 0)
drivers/md/md.c
5440
mddev->sync_io_depth = max;
drivers/md/md.c
5577
unsigned long long max;
drivers/md/md.c
5581
if (kstrtoull(buf, 10, &max))
drivers/md/md.c
5583
if (max < mddev->resync_min)
drivers/md/md.c
5587
if (max < mddev->resync_max && md_is_rdwr(mddev) &&
drivers/md/md.c
5594
sector_t temp = max;
drivers/md/md.c
5600
mddev->resync_max = max;
drivers/md/persistent-data/dm-space-map-disk.c
180
static int sm_disk_copy_root(struct dm_space_map *sm, void *where_le, size_t max)
drivers/md/persistent-data/dm-space-map-disk.c
190
if (max < sizeof(root_le))
drivers/md/persistent-data/dm-space-map-metadata.c
543
static int sm_metadata_copy_root(struct dm_space_map *sm, void *where_le, size_t max)
drivers/md/persistent-data/dm-space-map-metadata.c
553
if (max < sizeof(root_le))
drivers/md/persistent-data/dm-space-map-metadata.c
693
size_t max)
drivers/md/raid0.c
93
blksize = max(blksize, queue_logical_block_size(
drivers/md/raid10.c
3861
mddev->raid_disks + max(0, -mddev->delta_disks));
drivers/md/raid10.c
4099
if (max(before_length, after_length) > min_offset_diff) {
drivers/md/raid10.c
4395
if (max(before_length, after_length) > min_offset_diff)
drivers/md/raid5.c
2409
int devs = max(conf->raid_disks, conf->previous_raid_disks);
drivers/md/raid5.c
5780
sector_t max, sector_t reshape_sector)
drivers/md/raid5.c
5782
return mddev->reshape_backwards ? max < reshape_sector :
drivers/md/raid5.c
5798
max_sector = max(max_sector, sh->dev[dd_idx].sector);
drivers/md/raid5.c
5946
*sectors = max(end, prev_end) - *offset;
drivers/md/raid5.c
6284
reshape_sectors = max(conf->chunk_sectors, conf->prev_chunk_sectors);
drivers/md/raid5.c
7341
max(conf->raid_disks,
drivers/md/raid5.c
7343
max(conf->chunk_sectors,
drivers/md/raid5.c
7417
conf->scribble_disks = max(conf->raid_disks,
drivers/md/raid5.c
7419
conf->scribble_sectors = max(conf->chunk_sectors,
drivers/md/raid5.c
7556
max_disks = max(conf->raid_disks, conf->previous_raid_disks);
drivers/md/raid5.c
7661
conf->min_nr_stripes = max(NR_STRIPES, stripes);
drivers/md/raid5.c
7908
chunk_sectors = max(mddev->chunk_sectors, mddev->new_chunk_sectors);
drivers/md/raid5.c
8415
((max(mddev->chunk_sectors, mddev->new_chunk_sectors) << 9)
drivers/md/raid5.c
8454
+ max(0, mddev->delta_disks),
drivers/md/raid5.c
8455
max(mddev->new_chunk_sectors,
drivers/media/cec/platform/s5p/s5p_cec.c
80
s5p_cec_copy_packet(cec, msg->msg, msg->len, max(1, attempts - 1));
drivers/media/common/cx2341x.c
120
s32 *min, s32 *max, s32 *step, s32 *def, u32 *flags)
drivers/media/common/cx2341x.c
138
*max = *step = 1;
drivers/media/common/cx2341x.c
1540
u32 id, s32 min, s32 max, s32 step, s32 def)
drivers/media/common/cx2341x.c
1545
cx2341x_ctrl_fill(id, &cfg.name, &cfg.type, &min, &max, &step, &def, &cfg.flags);
drivers/media/common/cx2341x.c
1549
cfg.max = max;
drivers/media/common/cx2341x.c
1563
u32 id, s32 min, s32 max, s32 step, s32 def)
drivers/media/common/cx2341x.c
1565
return v4l2_ctrl_new_std(hdl, &cx2341x_ops, id, min, max, step, def);
drivers/media/common/cx2341x.c
1569
u32 id, s32 max, s32 mask, s32 def)
drivers/media/common/cx2341x.c
1571
return v4l2_ctrl_new_std_menu(hdl, &cx2341x_ops, id, max, mask, def);
drivers/media/common/cx2341x.c
538
s32 min, s32 max, s32 step, s32 def)
drivers/media/common/cx2341x.c
557
&min, &max, &step, &def, &qctrl->flags);
drivers/media/common/cx2341x.c
559
qctrl->maximum = max;
drivers/media/common/cx2341x.c
567
return v4l2_ctrl_query_fill(qctrl, min, max, step, def);
drivers/media/dvb-core/dvb_frontend.c
905
*freq_min = max(frontend_min, tuner_min);
drivers/media/dvb-core/dvb_frontend.c
947
u32 step = max(fe_step, tuner_step);
drivers/media/dvb-frontends/atbm8830.c
159
u8 min, u8 max, u8 hold_loop)
drivers/media/dvb-frontends/atbm8830.c
162
if (!min && !max)
drivers/media/dvb-frontends/atbm8830.c
166
atbm8830_write_reg(priv, REG_AGC_MAX, max);
drivers/media/dvb-frontends/cx24116.c
555
int i, ret, len, max, remaining;
drivers/media/dvb-frontends/cx24116.c
595
max = state->config->i2c_wr_max;
drivers/media/dvb-frontends/cx24116.c
597
max = INT_MAX; /* enough for 32k firmware */
drivers/media/dvb-frontends/cx24116.c
599
for (remaining = fw->size; remaining > 0; remaining -= max - 1) {
drivers/media/dvb-frontends/cx24116.c
601
if (len > max - 1)
drivers/media/dvb-frontends/cx24116.c
602
len = max - 1;
drivers/media/dvb-frontends/cx24120.c
220
u16 max = state->config->i2c_wr_max > 0 ?
drivers/media/dvb-frontends/cx24120.c
229
msg.buf = kmalloc(max + 1, GFP_KERNEL);
drivers/media/dvb-frontends/cx24120.c
235
msg.len = len > max ? max : len;
drivers/media/dvb-frontends/dib7000m.c
642
if(!state->current_agc || !state->current_agc->perform_agc_softsplit || state->current_agc->split.max == 0)
drivers/media/dvb-frontends/dib7000m.c
651
split_offset = state->current_agc->split.max;
drivers/media/dvb-frontends/dib7000m.c
653
split_offset = state->current_agc->split.max *
drivers/media/dvb-frontends/dib8000.c
1243
if (!state->current_agc || !state->current_agc->perform_agc_softsplit || state->current_agc->split.max == 0)
drivers/media/dvb-frontends/dib8000.c
1252
split_offset = state->current_agc->split.max;
drivers/media/dvb-frontends/dib8000.c
1254
split_offset = state->current_agc->split.max *
drivers/media/dvb-frontends/dibx000_common.h
109
u16 max;
drivers/media/dvb-frontends/dvb-pll.c
121
.max = 900 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
139
.max = 862 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
155
.max = 862 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
177
.max = 858 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
191
.max = 858 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
215
.max = 858 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
249
.max = 858 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
273
.max = 863 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
291
.max = 864 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
308
.max = 860 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
327
.max = 2150 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
393
.max = 2250 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
440
.max = 858 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
460
.max = 863 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
474
.max = 2150 * MHz, /* guesses */
drivers/media/dvb-frontends/dvb-pll.c
495
.max = 2150 * MHz, /* guesses */
drivers/media/dvb-frontends/dvb-pll.c
516
.max = 862 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
532
.max = 770 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
54
u32 max;
drivers/media/dvb-frontends/dvb-pll.c
548
.max = 770 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
75
.max = 858 * MHz,
drivers/media/dvb-frontends/dvb-pll.c
839
fe->ops.tuner_ops.info.frequency_max_hz = desc->max;
drivers/media/dvb-frontends/dvb-pll.c
842
desc->name, desc->min, desc->max);
drivers/media/dvb-frontends/dvb-pll.c
97
.max = 896 * MHz,
drivers/media/dvb-frontends/stb0899_drv.c
922
static int stb0899_table_lookup(const struct stb0899_tab *tab, int max, int val)
drivers/media/dvb-frontends/stb0899_drv.c
929
else if (val >= tab[max].read)
drivers/media/dvb-frontends/stb0899_drv.c
930
res = tab[max].real;
drivers/media/dvb-frontends/stb0899_drv.c
932
while ((max - min) > 1) {
drivers/media/dvb-frontends/stb0899_drv.c
933
med = (max + min) / 2;
drivers/media/dvb-frontends/stb0899_drv.c
935
max = med;
drivers/media/dvb-frontends/stb0899_drv.c
940
(tab[max].real - tab[min].real) /
drivers/media/dvb-frontends/stb0899_drv.c
941
(tab[max].read - tab[min].read)) +
drivers/media/dvb-frontends/stv090x.c
3620
static int stv090x_table_lookup(const struct stv090x_tab *tab, int max, int val)
drivers/media/dvb-frontends/stv090x.c
3625
if ((val >= tab[min].read && val < tab[max].read) ||
drivers/media/dvb-frontends/stv090x.c
3626
(val >= tab[max].read && val < tab[min].read)) {
drivers/media/dvb-frontends/stv090x.c
3627
while ((max - min) > 1) {
drivers/media/dvb-frontends/stv090x.c
3628
med = (max + min) / 2;
drivers/media/dvb-frontends/stv090x.c
3631
max = med;
drivers/media/dvb-frontends/stv090x.c
3636
(tab[max].real - tab[min].real) /
drivers/media/dvb-frontends/stv090x.c
3637
(tab[max].read - tab[min].read)) +
drivers/media/dvb-frontends/stv090x.c
3640
if (tab[min].read < tab[max].read) {
drivers/media/dvb-frontends/stv090x.c
3643
else if (val >= tab[max].read)
drivers/media/dvb-frontends/stv090x.c
3644
res = tab[max].real;
drivers/media/dvb-frontends/stv090x.c
3648
else if (val < tab[max].read)
drivers/media/dvb-frontends/stv090x.c
3649
res = tab[max].real;
drivers/media/i2c/adv7180.c
643
.max = 1,
drivers/media/i2c/adv7511-v4l2.c
816
adv7511_cec_write_and_or(sd, 0x12, ~0x70, max(1, attempts - 1) << 4);
drivers/media/i2c/adv7604.c
2183
cec_write_clr_set(sd, 0x12, 0x70, max(1, attempts - 1) << 4);
drivers/media/i2c/adv7604.c
2823
.max = 0x1f,
drivers/media/i2c/adv7604.c
2834
.max = true,
drivers/media/i2c/adv7604.c
2845
.max = 0xffffff,
drivers/media/i2c/adv7842.c
2346
cec_write_clr_set(sd, 0x12, 0x70, max(1, attempts - 1) << 4);
drivers/media/i2c/adv7842.c
3404
.max = 0x1f,
drivers/media/i2c/adv7842.c
3414
.max = 1,
drivers/media/i2c/adv7842.c
3424
.max = 0xffffff,
drivers/media/i2c/alvium-csi2.c
1761
crop->left = clamp((u32)max(0, crop->left), alvium->min_offx,
drivers/media/i2c/alvium-csi2.c
1763
crop->top = clamp((u32)max(0, crop->top), alvium->min_offy,
drivers/media/i2c/alvium-csi2.c
1949
crop->left = clamp((u32)max(0, sel->r.left), alvium->min_offx,
drivers/media/i2c/alvium-csi2.c
1951
crop->top = clamp((u32)max(0, sel->r.top), alvium->min_offy,
drivers/media/i2c/aptina-pll.c
127
p1_min = max(limits->p1_min, DIV_ROUND_UP(limits->out_clock_min * div,
drivers/media/i2c/aptina-pll.c
139
mf_low = roundup(max(mf_min, DIV_ROUND_UP(pll->ext_clock * p1,
drivers/media/i2c/aptina-pll.c
56
mf_min = max(mf_min, limits->out_clock_min /
drivers/media/i2c/aptina-pll.c
58
mf_min = max(mf_min, limits->n_min * limits->p1_min / div);
drivers/media/i2c/ar0521.c
226
int red = max(green + sensor->ctrls.red_balance->val, 0);
drivers/media/i2c/ar0521.c
227
int blue = max(green + sensor->ctrls.blue_balance->val, 0);
drivers/media/i2c/ccs-pll.c
49
u32 min, u32 max, const char *prefix,
drivers/media/i2c/ccs-pll.c
52
if (val >= min && val <= max)
drivers/media/i2c/ccs-pll.c
56
str, val, min, max);
drivers/media/i2c/ccs-pll.c
664
more_mul_min = max(more_mul_min,
drivers/media/i2c/ccs/ccs-core.c
1010
.max = 1,
drivers/media/i2c/ccs/ccs-core.c
1025
.max = 255,
drivers/media/i2c/ccs/ccs-core.c
1043
max(CCS_LIM(sensor, DIGITAL_GAIN_STEP_SIZE),
drivers/media/i2c/ccs/ccs-core.c
1227
max(ccs_csi_data_formats[i].compressed,
drivers/media/i2c/ccs/ccs-core.c
1297
int min, max;
drivers/media/i2c/ccs/ccs-core.c
1319
max = max_fll - pa_src->height;
drivers/media/i2c/ccs/ccs-core.c
1321
__v4l2_ctrl_modify_range(vblank, min, max, vblank->step, min);
drivers/media/i2c/ccs/ccs-core.c
1324
max = max_llp - pa_src->width;
drivers/media/i2c/ccs/ccs-core.c
1326
__v4l2_ctrl_modify_range(hblank, min, max, hblank->step, min);
drivers/media/i2c/ccs/ccs-core.c
2380
u32 min, max, a, b, max_m;
drivers/media/i2c/ccs/ccs-core.c
2407
max = min(max_m, max(a, b));
drivers/media/i2c/ccs/ccs-core.c
2411
if (min != max) {
drivers/media/i2c/ccs/ccs-core.c
2412
try[ntry] = max;
drivers/media/i2c/ccs/ccs-core.c
2415
if (max != max_m) {
drivers/media/i2c/ccs/ccs-core.c
2418
if (min != max) {
drivers/media/i2c/ccs/ccs-core.c
2419
try[ntry] = max + 1;
drivers/media/i2c/ccs/ccs-core.c
2646
sel->r.left = max(0, sel->r.left & ~1);
drivers/media/i2c/ccs/ccs-core.c
2647
sel->r.top = max(0, sel->r.top & ~1);
drivers/media/i2c/ccs/ccs-core.c
604
int max;
drivers/media/i2c/ccs/ccs-core.c
606
max = pa_src->height + sensor->vblank->val -
drivers/media/i2c/ccs/ccs-core.c
609
__v4l2_ctrl_modify_range(ctrl, ctrl->minimum, max, ctrl->step, max);
drivers/media/i2c/ccs/ccs-core.c
679
if (WARN_ON_ONCE(max(internal_csi_format_idx, csi_format_idx) +
drivers/media/i2c/ccs/ccs-core.c
941
ctrl_cfg.min = ctrl_cfg.max = ctrl_cfg.def =
drivers/media/i2c/ccs/ccs-core.c
952
max(CCS_LIM(sensor, ANALOG_GAIN_CODE_STEP),
drivers/media/i2c/ccs/ccs-core.c
962
u16 min, max, step;
drivers/media/i2c/ccs/ccs-core.c
969
max(CCS_LIM(sensor,
drivers/media/i2c/ccs/ccs-core.c
978
max(CCS_LIM(sensor,
drivers/media/i2c/ccs/ccs-core.c
992
ctrl_cfg.max = gain_ctrls[i].max;
drivers/media/i2c/ds90ub960.c
1702
priv->strobe.max);
drivers/media/i2c/ds90ub960.c
4657
priv->strobe.max = 3;
drivers/media/i2c/ds90ub960.c
593
s8 max;
drivers/media/i2c/et8ek8/et8ek8_driver.c
694
u32 min = 1, max = max_rows;
drivers/media/i2c/et8ek8/et8ek8_driver.c
699
min, max, min, max);
drivers/media/i2c/et8ek8/et8ek8_driver.c
726
u32 min, max, pixel_rate;
drivers/media/i2c/et8ek8/et8ek8_driver.c
732
max = mode->max_exp;
drivers/media/i2c/et8ek8/et8ek8_driver.c
742
__v4l2_ctrl_modify_range(ctrl, min, max, min, max);
drivers/media/i2c/imx111.c
764
s64 max = sensor->cur_mode->height + ctrl->val -
drivers/media/i2c/imx111.c
769
max, sensor->exposure->step,
drivers/media/i2c/imx111.c
770
max);
drivers/media/i2c/imx208.c
498
.max = ARRAY_SIZE(imx208_discrete_digital_gain) - 1,
drivers/media/i2c/imx214.c
932
max(limits.vt_fr.min_pll_op_clk_freq_hz / limits.vt_bk.max_sys_clk_div,
drivers/media/i2c/imx214.c
939
max(limits.vt_fr.min_pll_op_clk_freq_hz / limits.op_bk.max_sys_clk_div,
drivers/media/i2c/imx274.c
1359
int min, max, def;
drivers/media/i2c/imx274.c
1384
max = fi->interval.numerator * 1000000
drivers/media/i2c/imx274.c
1386
def = max;
drivers/media/i2c/imx274.c
1387
ret = __v4l2_ctrl_modify_range(ctrl, min, max, 1, def);
drivers/media/i2c/imx319.c
1885
s64 max;
drivers/media/i2c/imx319.c
1892
max = imx319->cur_mode->height + ctrl->val - 18;
drivers/media/i2c/imx319.c
1895
max, imx319->exposure->step, max);
drivers/media/i2c/imx319.c
2239
u32 max;
drivers/media/i2c/imx319.c
2248
max = ARRAY_SIZE(link_freq_menu_items) - 1;
drivers/media/i2c/imx319.c
2250
V4L2_CID_LINK_FREQ, max, 0,
drivers/media/i2c/imx355.c
1184
s64 max;
drivers/media/i2c/imx355.c
1191
max = imx355->cur_mode->height + ctrl->val - 10;
drivers/media/i2c/imx355.c
1194
max, imx355->exposure->step, max);
drivers/media/i2c/imx355.c
1529
u32 max;
drivers/media/i2c/imx355.c
1538
max = ARRAY_SIZE(link_freq_menu_items) - 1;
drivers/media/i2c/imx355.c
1540
V4L2_CID_LINK_FREQ, max, 0,
drivers/media/i2c/isl7998x.c
1135
.max = ARRAY_SIZE(isl7998x_test_pattern_bars) - 1,
drivers/media/i2c/isl7998x.c
1144
.max = 0xf,
drivers/media/i2c/isl7998x.c
1153
.max = ARRAY_SIZE(isl7998x_test_pattern_colors) - 1,
drivers/media/i2c/max2175.c
1204
.max = 1,
drivers/media/i2c/max2175.c
1220
.max = 1,
drivers/media/i2c/max2175.c
1245
.max = ARRAY_SIZE(max2175_ctrl_eu_rx_modes) - 1,
drivers/media/i2c/max2175.c
1255
.max = ARRAY_SIZE(max2175_ctrl_na_rx_modes) - 1,
drivers/media/i2c/max9286.c
428
chan_amplitude = max(30U, chan_amplitude - 100);
drivers/media/i2c/mt9m001.c
485
s32 min, max;
drivers/media/i2c/mt9m001.c
490
max = mt9m001->exposure->maximum;
drivers/media/i2c/mt9m001.c
492
(524 + (mt9m001->total_h - 1) * (max - min)) / 1048 + min;
drivers/media/i2c/mt9p031.c
922
.max = 1,
drivers/media/i2c/mt9p031.c
932
.max = 4095,
drivers/media/i2c/mt9p031.c
942
.max = 255,
drivers/media/i2c/mt9p031.c
952
.max = 2047,
drivers/media/i2c/mt9v032.c
768
.max = 1023,
drivers/media/i2c/mt9v032.c
781
.max = 64,
drivers/media/i2c/mt9v032.c
791
.max = 2,
drivers/media/i2c/mt9v032.c
801
.max = 2,
drivers/media/i2c/mt9v032.c
811
.max = 16,
drivers/media/i2c/mt9v032.c
821
.max = 16,
drivers/media/i2c/mt9v032.c
834
.max = 2047,
drivers/media/i2c/mt9v032.c
846
.max = 32765,
drivers/media/i2c/os05b10.c
524
s64 max = fmt->height + ctrl->val - OS05B10_EXPOSURE_MARGIN;
drivers/media/i2c/os05b10.c
527
os05b10->exposure->minimum, max,
drivers/media/i2c/ov08x40.c
1675
s64 max;
drivers/media/i2c/ov08x40.c
1689
max = ((ov08x->cur_mode->height + ctrl->val) <<
drivers/media/i2c/ov08x40.c
1695
max, ov08x->exposure->step, max);
drivers/media/i2c/ov13858.c
1215
s64 max;
drivers/media/i2c/ov13858.c
1222
max = ov13858->cur_mode->height + ctrl->val - 8;
drivers/media/i2c/ov13858.c
1225
max, ov13858->exposure->step, max);
drivers/media/i2c/ov13b10.c
1369
u32 max;
drivers/media/i2c/ov13b10.c
1379
max = ARRAY_SIZE(link_freq_menu_items) - 1;
drivers/media/i2c/ov13b10.c
1383
max,
drivers/media/i2c/ov13b10.c
972
s64 max;
drivers/media/i2c/ov13b10.c
979
max = ov13b->cur_mode->height + ctrl->val - 8;
drivers/media/i2c/ov13b10.c
982
max, ov13b->exposure->step, max);
drivers/media/i2c/ov2680.c
1002
OV2680_MIN_VBLANK, max, 1, def);
drivers/media/i2c/ov2680.c
650
int def, max, ret = 0;
drivers/media/i2c/ov2680.c
680
max = OV2680_MAX_VBLANK - height;
drivers/media/i2c/ov2680.c
683
max, 1, def);
drivers/media/i2c/ov2680.c
961
int def, max, ret = 0;
drivers/media/i2c/ov2680.c
986
max = OV2680_LINES_PER_FRAME_30FPS - OV2680_INTEGRATION_TIME_MARGIN;
drivers/media/i2c/ov2680.c
988
0, max, 1, max);
drivers/media/i2c/ov2680.c
999
max = OV2680_MAX_VBLANK - OV2680_DEFAULT_HEIGHT;
drivers/media/i2c/ov2735.c
443
s64 max = fmt->height + ctrl->val - OV2735_EXPOSURE_MARGIN;
drivers/media/i2c/ov2735.c
446
ov2735->exposure->minimum, max,
drivers/media/i2c/ov5670.c
2037
s64 max;
drivers/media/i2c/ov5670.c
2044
max = ov5670->cur_mode->height + ctrl->val - 8;
drivers/media/i2c/ov5670.c
2046
ov5670->exposure->minimum, max,
drivers/media/i2c/ov5670.c
2047
ov5670->exposure->step, max);
drivers/media/i2c/ov5695.c
1088
s64 max;
drivers/media/i2c/ov5695.c
1095
max = ov5695->cur_mode->height + ctrl->val - 4;
drivers/media/i2c/ov5695.c
1097
ov5695->exposure->minimum, max,
drivers/media/i2c/ov64a40.c
2983
delay = max(delay, 150ul);
drivers/media/i2c/ov9650.c
562
int min, max, def;
drivers/media/i2c/ov9650.c
576
max = ov965x->frame_size->max_exp_lines * trow;
drivers/media/i2c/ov9650.c
581
clkrc, fint, trow, max);
drivers/media/i2c/ov9650.c
585
max = (max - 100) / 100;
drivers/media/i2c/ov9650.c
586
def = min + (max - min) / 2;
drivers/media/i2c/ov9650.c
588
if (v4l2_ctrl_modify_range(ctrl, min, max, 1, def))
drivers/media/i2c/rj54n1cb0c.c
650
if (output_w > max(512U, input_w / 2)) {
drivers/media/i2c/rj54n1cb0c.c
662
if (output_h > max(384U, input_h / 2)) {
drivers/media/i2c/rj54n1cb0c.c
706
resize = max(resize_x, resize_y);
drivers/media/i2c/s5k5baf.c
1425
static void s5k5baf_bound_range(u32 *start, u32 *len, u32 max)
drivers/media/i2c/s5k5baf.c
1427
if (*len > max)
drivers/media/i2c/s5k5baf.c
1428
*len = max;
drivers/media/i2c/s5k5baf.c
1429
if (*start + *len > max)
drivers/media/i2c/s5k5baf.c
1430
*start = max - *len;
drivers/media/i2c/tc358743.c
1978
.max = 768000,
drivers/media/i2c/tc358743.c
1989
.max = 1,
drivers/media/i2c/thp7312.c
1167
.max = THP7312_FOCUS_METHOD_CONTRAST,
drivers/media/i2c/thp7312.c
1178
.max = THP7312_FOCUS_METHOD_HYBRID,
drivers/media/i2c/thp7312.c
1190
.max = 1,
drivers/media/i2c/thp7312.c
1199
.max = 1,
drivers/media/i2c/thp7312.c
1208
.max = 10,
drivers/media/i2c/tvaudio.c
1228
static int tda9875_bass(int val) { return (unsigned char)(max(-12, val / 2115 - 15)); }
drivers/media/i2c/vd55g1.c
1276
vblank.max, 1, vblank.def);
drivers/media/i2c/vd55g1.c
1617
vblank.min, vblank.max,
drivers/media/i2c/vd55g1.c
530
u16 max;
drivers/media/i2c/vd55g1.c
680
min_line_length = max(min_line_length, mipi_req_line_length);
drivers/media/i2c/vd55g1.c
691
limits->max = VD55G1_VBLANK_MAX - crop->height;
drivers/media/i2c/vgxy61.c
507
return max(max_write_len, 1);
drivers/media/i2c/vgxy61.c
719
return max(min_vblank, min_vblank_hdr);
drivers/media/i2c/vgxy61.c
916
new_expo_long = max(expo_long_min, new_expo_long);
drivers/media/i2c/vgxy61.c
929
new_expo_long = max(expo_long_min, new_expo_long);
drivers/media/i2c/vgxy61.c
937
new_expo_long = max(expo_long_min, new_expo_long);
drivers/media/i2c/vgxy61.c
983
sensor->vblank = max(sensor->vblank_min, vblank);
drivers/media/mc/mc-device.c
632
max(mdev->entity_internal_idx_max, entity->internal_idx);
drivers/media/pci/bt8xx/bttv-driver.c
1334
.max = 1,
drivers/media/pci/bt8xx/bttv-driver.c
1345
.max = 1,
drivers/media/pci/bt8xx/bttv-driver.c
1356
.max = 1,
drivers/media/pci/bt8xx/bttv-driver.c
1367
.max = 1,
drivers/media/pci/bt8xx/bttv-driver.c
1378
.max = 1,
drivers/media/pci/bt8xx/bttv-driver.c
1389
.max = 255,
drivers/media/pci/bt8xx/bttv-driver.c
1400
.max = 255,
drivers/media/pci/bt8xx/bttv-driver.c
1411
.max = 100,
drivers/media/pci/bt8xx/bttv-driver.c
1422
.max = 1,
drivers/media/pci/bt8xx/bttv-driver.c
1432
.max = 3,
drivers/media/pci/bt8xx/bttv-driver.c
2266
b_top = max(b->top, btv->vbi_end);
drivers/media/pci/bt8xx/bttv-risc.c
522
skip_lines0 = max(0, (btv->vbi_fmt.fmt.start[0] -
drivers/media/pci/bt8xx/bttv-risc.c
525
skip_lines1 = max(0, (btv->vbi_fmt.fmt.start[1] -
drivers/media/pci/bt8xx/bttv-vbi.c
289
end = max(frt->fmt.vbi.start[0], start1) * 2 + 2;
drivers/media/pci/cobalt/cobalt-v4l2.c
770
pix->bytesperline = max(pix->bytesperline & ~0x3,
drivers/media/pci/cobalt/cobalt-v4l2.c
775
pix->bytesperline = max(pix->bytesperline & ~0x3,
drivers/media/pci/cobalt/cobalt-v4l2.c
779
pix->bytesperline = max(pix->bytesperline & ~0x3,
drivers/media/pci/cobalt/cobalt-v4l2.c
849
pix->bytesperline = max(pix->bytesperline & ~0x3,
drivers/media/pci/cobalt/cobalt-v4l2.c
854
pix->bytesperline = max(pix->bytesperline & ~0x3,
drivers/media/pci/cx18/cx18-ioctl.c
86
w = max(w, 720 / 16);
drivers/media/pci/cx18/cx18-ioctl.c
89
h = max(h, (cx->is_50hz ? 576 : 480) / 8);
drivers/media/pci/cx88/cx88-alsa.c
626
info->value.integer.max = 0x3f;
drivers/media/pci/cx88/cx88-dsp.c
202
if ((carrier > max(stereo, dual) * 2) &&
drivers/media/pci/cx88/cx88-dsp.c
203
(carrier < max(stereo, dual) * 6) &&
drivers/media/pci/cx88/cx88-dsp.c
205
(max(stereo, dual) > min(stereo, dual))) {
drivers/media/pci/cx88/cx88-dsp.c
213
if ((carrier > max(stereo, dual) * 2) &&
drivers/media/pci/cx88/cx88-dsp.c
214
(carrier < max(stereo, dual) * 8) &&
drivers/media/pci/cx88/cx88-dsp.c
217
(max(stereo, dual) > min(stereo, dual) * 2)) {
drivers/media/pci/intel/ipu6/ipu6-isys-dwc-phy.c
216
u16 max;
drivers/media/pci/intel/ipu6/ipu6-isys-dwc-phy.c
295
(mbps >= freqranges[i].min && mbps <= freqranges[i].max))
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
270
max(*bytesperline,
drivers/media/pci/ivtv/ivtv-ioctl.c
471
w = max(w, 2);
drivers/media/pci/ivtv/ivtv-ioctl.c
478
h = max(h, min_h);
drivers/media/pci/ivtv/ivtv-ioctl.c
520
w = max(w, 2);
drivers/media/pci/ivtv/ivtv-ioctl.c
537
h = max(h, 2);
drivers/media/pci/mgb4/mgb4_vin.c
412
ival->stepwise.max.denominator = MGB4_HW_FREQ;
drivers/media/pci/mgb4/mgb4_vin.c
413
ival->stepwise.max.numerator = 0xFFFFFFFF;
drivers/media/pci/mgb4/mgb4_vout.c
417
ival->stepwise.max.denominator = MGB4_HW_FREQ;
drivers/media/pci/mgb4/mgb4_vout.c
418
ival->stepwise.max.numerator = 0xFFFFFFFF;
drivers/media/pci/saa7134/saa7134-alsa.c
1008
uinfo->value.integer.max = 1;
drivers/media/pci/saa7134/saa7134-alsa.c
911
uinfo->value.integer.max = 20;
drivers/media/pci/saa7134/saa7134-video.c
1601
.max = 1,
drivers/media/pci/saa7134/saa7134-video.c
1611
.max = 128,
drivers/media/pci/saa7134/saa7134-video.c
1621
.max = 128,
drivers/media/pci/saa7134/saa7134-video.c
1631
.max = 1,
drivers/media/pci/saa7164/saa7164-api.c
477
s16 v, min, max;
drivers/media/pci/saa7164/saa7164-api.c
489
VOLUME_CONTROL, sizeof(u16), &max);
drivers/media/pci/saa7164/saa7164-api.c
499
level, min, max, v);
drivers/media/pci/saa7164/saa7164-api.c
504
if (v > max)
drivers/media/pci/saa7164/saa7164-api.c
505
v = max;
drivers/media/pci/saa7164/saa7164-api.c
525
level, min, max, v);
drivers/media/pci/solo6x10/solo6x10-g723.c
249
info->value.integer.max = 15;
drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c
1002
fintv->stepwise.max.numerator = 15;
drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c
1003
fintv->stepwise.max.denominator = solo_dev->fps;
drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c
1190
.max = OSD_TEXT_MAX,
drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c
1200
.max = 65535,
drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c
146
solo_enc->bw_weight = max(solo_dev->fps / solo_enc->interval, 1);
drivers/media/pci/solo6x10/solo6x10-v4l2.c
631
.max = 1,
drivers/media/pci/tw5864/tw5864-video.c
1147
tw5864_md_thresholds.min, tw5864_md_thresholds.max,
drivers/media/pci/tw5864/tw5864-video.c
773
fintv->stepwise.max = frameinterval;
drivers/media/pci/tw5864/tw5864-video.c
774
fintv->stepwise.max.numerator *= std_max_fps;
drivers/media/pci/tw5864/tw5864-video.c
938
.max = 2 * 0x0f,
drivers/media/platform/allegro-dvt/allegro-core.c
2694
s64 max;
drivers/media/platform/allegro-dvt/allegro-core.c
2717
max = h264_maximum_bitrate(v4l2_ctrl_g_ctrl(channel->mpeg_video_h264_level));
drivers/media/platform/allegro-dvt/allegro-core.c
2719
max = hevc_maximum_bitrate(v4l2_ctrl_g_ctrl(channel->mpeg_video_hevc_level));
drivers/media/platform/allegro-dvt/allegro-core.c
2720
if (ctrl->maximum < max)
drivers/media/platform/allegro-dvt/allegro-core.c
2723
v4l2_ctrl_get_name(ctrl->id), ctrl->maximum, max);
drivers/media/platform/allegro-dvt/allegro-core.c
2725
__v4l2_ctrl_modify_range(ctrl, ctrl->minimum, max,
drivers/media/platform/allegro-dvt/allegro-core.c
2731
__v4l2_ctrl_modify_range(ctrl, ctrl->minimum, max,
drivers/media/platform/allegro-dvt/allegro-core.c
3090
.max = 1,
drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c
225
max(pix_mp->plane_fmt[C3_ISP_PLANE_Y].sizeimage,
drivers/media/platform/amlogic/c3/isp/c3-isp-params.c
140
max_point_num = max(cfg->horiz_zones_num, cfg->vert_zones_num) + 1;
drivers/media/platform/amlogic/c3/isp/c3-isp-params.c
257
max_point_num = max(cfg->horiz_zones_num, cfg->vert_zones_num) + 1;
drivers/media/platform/amlogic/c3/isp/c3-isp-params.c
315
max_point_num = max(cfg->horiz_zones_num, cfg->vert_zones_num) + 1;
drivers/media/platform/amlogic/meson-ge2d/ge2d.c
585
fmt_cap.bytesperline = max(f->fmt.pix.bytesperline,
drivers/media/platform/amlogic/meson-ge2d/ge2d.c
588
fmt_cap.sizeimage = max(f->fmt.pix.sizeimage,
drivers/media/platform/amlogic/meson-ge2d/ge2d.c
657
f->fmt.pix.bytesperline = max(f->fmt.pix.bytesperline,
drivers/media/platform/amlogic/meson-ge2d/ge2d.c
660
f->fmt.pix.sizeimage = max(f->fmt.pix.sizeimage,
drivers/media/platform/amphion/venc.c
167
fival->stepwise.max.numerator = USHRT_MAX;
drivers/media/platform/amphion/venc.c
168
fival->stepwise.max.denominator = 1;
drivers/media/platform/amphion/vpu_helpers.c
159
bytesperline = max(bytesperline, *pbl);
drivers/media/platform/amphion/vpu_helpers.c
187
bytesperline = max(bytesperline, *pbl);
drivers/media/platform/amphion/vpu_helpers.c
209
bytesperline = max(bytesperline, *pbl);
drivers/media/platform/arm/mali-c55/mali-c55-isp.c
555
.max = MALI_C55_GPS_PONG_FITTED |
drivers/media/platform/arm/mali-c55/mali-c55-tpg.c
73
/ max(rounddown(tgt_fps, 15), 5)) - format->height;
drivers/media/platform/aspeed/aspeed-video.c
1652
fival->stepwise.max.denominator = 1;
drivers/media/platform/aspeed/aspeed-video.c
1653
fival->stepwise.max.numerator = 1;
drivers/media/platform/aspeed/aspeed-video.c
1654
fival->stepwise.step = fival->stepwise.max;
drivers/media/platform/aspeed/aspeed-video.c
1827
.max = true,
drivers/media/platform/aspeed/aspeed-video.c
1838
.max = ASPEED_VIDEO_JPEG_NUM_QUALITIES,
drivers/media/platform/aspeed/aspeed-video.c
608
p->duration_max = max(p->duration, p->duration_max);
drivers/media/platform/broadcom/bcm2835-unicam.c
1008
line_int_freq = max(fmt->height >> 2, 128);
drivers/media/platform/chips-media/coda/coda-common.c
1347
f->stepwise.max.numerator = 65536;
drivers/media/platform/chips-media/coda/coda-common.c
1348
f->stepwise.max.denominator = 1;
drivers/media/platform/chips-media/coda/coda-common.c
2427
u8 max;
drivers/media/platform/chips-media/coda/coda-common.c
2441
max = V4L2_MPEG_VIDEO_H264_LEVEL_4_0;
drivers/media/platform/chips-media/coda/coda-common.c
2443
max = V4L2_MPEG_VIDEO_H264_LEVEL_4_1;
drivers/media/platform/chips-media/coda/coda-common.c
2447
&coda_ctrl_ops, V4L2_CID_MPEG_VIDEO_H264_LEVEL, max, 0, max);
drivers/media/platform/chips-media/coda/coda-common.c
2485
.max = 0x7fffffff,
drivers/media/platform/chips-media/coda/coda-common.c
2604
unsigned int max = ~0;
drivers/media/platform/chips-media/coda/coda-common.c
2614
max = CODADX6_MAX_INSTANCES - 1;
drivers/media/platform/chips-media/coda/coda-common.c
2615
idx = ida_alloc_max(&dev->ida, max, GFP_KERNEL);
drivers/media/platform/chips-media/coda/coda-common.c
357
w = max(w, codecs[k].max_w);
drivers/media/platform/chips-media/coda/coda-common.c
358
h = max(h, codecs[k].max_h);
drivers/media/platform/chips-media/coda/coda-jpeg.c
429
s16 *huff_max = huff_tab->max;
drivers/media/platform/chips-media/coda/coda-jpeg.c
51
s16 max[4 * 16];
drivers/media/platform/chips-media/coda/coda-jpeg.c
687
huff_max = ctx->params.jpeg_huff_tab->max + ofs;
drivers/media/platform/chips-media/wave5/wave5-helper.c
262
pix_mp->plane_fmt[0].sizeimage = max(DEFAULT_BS_SIZE(width, height),
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
103
max = max & mask;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
104
if ((unsigned int)min > (unsigned int)max)
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
108
*x = clamp(*x, min, max);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
211
static int mdp_clamp_start(s32 *x, int min, int max, unsigned int align,
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
215
max = *x;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
218
return mdp_clamp_align(x, min, max, align);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
221
static int mdp_clamp_end(s32 *x, int min, int max, unsigned int align,
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
227
max = *x;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
228
return mdp_clamp_align(x, min, max, align);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
92
static int mdp_clamp_align(s32 *x, int min, int max, unsigned int align)
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.c
96
if (min < 0 || max < 0)
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
112
.max = V4L2_MPEG_VIDEO_VP9_PROFILE_2,
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
122
.max = V4L2_MPEG_VIDEO_VP9_LEVEL_4_1,
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
154
.max = V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10,
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
163
.max = V4L2_MPEG_VIDEO_HEVC_LEVEL_4_1,
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
173
.max = V4L2_STATELESS_HEVC_DECODE_MODE_FRAME_BASED,
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
182
.max = V4L2_STATELESS_HEVC_START_CODE_ANNEX_B,
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
213
.max = V4L2_MPEG_VIDEO_AV1_PROFILE_MAIN,
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
222
.max = V4L2_MPEG_VIDEO_AV1_LEVEL_5_1,
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
52
.max = V4L2_MPEG_VIDEO_H264_PROFILE_HIGH,
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
577
cfg->max = V4L2_MPEG_VIDEO_H264_LEVEL_5_2;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
580
cfg->max = V4L2_MPEG_VIDEO_H264_LEVEL_6_0;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
584
cfg->max = V4L2_MPEG_VIDEO_H264_LEVEL_4_2;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
587
cfg->max = V4L2_MPEG_VIDEO_H264_LEVEL_4_1;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
598
cfg->max = V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_10;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
601
cfg->max = V4L2_MPEG_VIDEO_H264_PROFILE_HIGH;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
611
cfg->max = V4L2_MPEG_VIDEO_HEVC_LEVEL_5_1;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
614
cfg->max = V4L2_MPEG_VIDEO_HEVC_LEVEL_5_2;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
617
cfg->max = V4L2_MPEG_VIDEO_HEVC_LEVEL_4;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
628
cfg->max = V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
631
cfg->max = V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_STILL_PICTURE;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
64
.max = V4L2_MPEG_VIDEO_H264_LEVEL_4_2,
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
642
cfg->max = V4L2_MPEG_VIDEO_VP9_LEVEL_5_1;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
645
cfg->max = V4L2_MPEG_VIDEO_VP9_LEVEL_5_2;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
648
cfg->max = V4L2_MPEG_VIDEO_VP9_LEVEL_4_1;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
651
cfg->max = V4L2_MPEG_VIDEO_VP9_LEVEL_4_0;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
662
cfg->max = V4L2_MPEG_VIDEO_VP9_PROFILE_2;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
665
cfg->max = V4L2_MPEG_VIDEO_VP9_PROFILE_1;
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
676
mtk_v4l2_vdec_dbg(3, ctx, "h264 supported level: %lld %lld", cfg->max, cfg->def);
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
680
mtk_v4l2_vdec_dbg(3, ctx, "h265 supported level: %lld %lld", cfg->max, cfg->def);
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
684
mtk_v4l2_vdec_dbg(3, ctx, "vp9 supported level: %lld %lld", cfg->max, cfg->def);
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
688
mtk_v4l2_vdec_dbg(3, ctx, "h264 supported profile: %lld %lld", cfg->max,
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
693
mtk_v4l2_vdec_dbg(3, ctx, "h265 supported profile: %lld %lld", cfg->max,
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
698
mtk_v4l2_vdec_dbg(3, ctx, "vp9 supported profile: %lld %lld", cfg->max,
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
73
.max = V4L2_STATELESS_H264_DECODE_MODE_FRAME_BASED,
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
82
.max = V4L2_STATELESS_H264_START_CODE_ANNEX_B,
drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c
97
.max = V4L2_MPEG_VIDEO_VP8_PROFILE_3,
drivers/media/platform/microchip/microchip-isc-base.c
1220
static void isc_hist_count(struct isc_device *isc, u32 *min, u32 *max)
drivers/media/platform/microchip/microchip-isc-base.c
1229
*max = HIST_ENTRIES;
drivers/media/platform/microchip/microchip-isc-base.c
1243
*max = i;
drivers/media/platform/microchip/microchip-isc-base.c
1351
u32 min, max;
drivers/media/platform/microchip/microchip-isc-base.c
1357
isc_hist_count(isc, &min, &max);
drivers/media/platform/microchip/microchip-isc-base.c
1360
"isc wb mode %d: hist min %u , max %u\n", hist_id, min, max);
drivers/media/platform/microchip/microchip-isc-base.c
1363
ctrls->hist_minmax[hist_id][HIST_MAX_INDEX] = max;
drivers/media/platform/microchip/microchip-isc-base.c
1584
.max = 4095, \
drivers/media/platform/microchip/microchip-isc-base.c
1602
.max = 8191, \
drivers/media/platform/nuvoton/npcm-video.c
1380
.max = V4L2_NPCM_CAPTURE_MODE_DIFF,
drivers/media/platform/nuvoton/npcm-video.c
1394
.max = (MAX_WIDTH / RECT_W) * (MAX_HEIGHT / RECT_H),
drivers/media/platform/nvidia/tegra-vde/v4l2.c
27
.max = V4L2_STATELESS_H264_DECODE_MODE_FRAME_BASED,
drivers/media/platform/nvidia/tegra-vde/v4l2.c
33
.max = V4L2_STATELESS_H264_START_CODE_ANNEX_B,
drivers/media/platform/nvidia/tegra-vde/v4l2.c
39
.max = V4L2_MPEG_VIDEO_H264_PROFILE_MAIN,
drivers/media/platform/nvidia/tegra-vde/v4l2.c
45
.max = V4L2_MPEG_VIDEO_H264_LEVEL_5_1,
drivers/media/platform/nvidia/tegra-vde/v4l2.c
649
pix_mp->plane_fmt[0].sizeimage = max(ALIGN(size, SXE_BUFFER), SZ_2M);
drivers/media/platform/nxp/dw100/dw100.c
1001
x = min(wframe - w, (unsigned int)max(0, x));
drivers/media/platform/nxp/dw100/dw100.c
1002
y = min(hframe - h, (unsigned int)max(0, y));
drivers/media/platform/nxp/dw100/dw100.c
425
.max = 0xffffffff,
drivers/media/platform/nxp/dw100/dw100.c
985
qscale = max(qscaley, qscalex);
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1885
q->bytesperline[0] = max(q->bytesperline[0], bytesperline[0]);
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
1887
q->bytesperline[1] = max(q->bytesperline[1], bytesperline[1]);
drivers/media/platform/qcom/iris/iris_ctrls.c
291
cap[idx].max,
drivers/media/platform/qcom/iris/iris_ctrls.c
299
cap[idx].max,
drivers/media/platform/qcom/iris/iris_ctrls.c
354
core->inst_fw_caps_dec[cap_id].max =
drivers/media/platform/qcom/iris/iris_ctrls.c
358
core->inst_fw_caps_dec[cap_id].max = caps[i].max;
drivers/media/platform/qcom/iris/iris_ctrls.c
373
core->inst_fw_caps_enc[cap_id].max = caps[i].max;
drivers/media/platform/qcom/iris/iris_ctrls.c
753
i_frame_qp = max(inst->fw_caps[I_FRAME_MIN_QP_H264].value,
drivers/media/platform/qcom/iris/iris_ctrls.c
755
p_frame_qp = max(inst->fw_caps[P_FRAME_MIN_QP_H264].value,
drivers/media/platform/qcom/iris/iris_ctrls.c
757
b_frame_qp = max(inst->fw_caps[B_FRAME_MIN_QP_H264].value,
drivers/media/platform/qcom/iris/iris_ctrls.c
760
i_frame_qp = max(inst->fw_caps[I_FRAME_MIN_QP_HEVC].value,
drivers/media/platform/qcom/iris/iris_ctrls.c
762
p_frame_qp = max(inst->fw_caps[P_FRAME_MIN_QP_HEVC].value,
drivers/media/platform/qcom/iris/iris_ctrls.c
764
b_frame_qp = max(inst->fw_caps[B_FRAME_MIN_QP_HEVC].value,
drivers/media/platform/qcom/iris/iris_platform_common.h
178
s64 max;
drivers/media/platform/qcom/iris/iris_platform_gen1.c
122
.max = V4L2_MPEG_VIDEO_HEVC_LEVEL_6_2,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
144
.max = V4L2_MPEG_VIDEO_HEADER_MODE_JOINED_WITH_1ST_FRAME,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
155
.max = BITRATE_MAX,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
166
.max = V4L2_MPEG_VIDEO_BITRATE_MODE_CBR,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
177
.max = V4L2_MPEG_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
186
.max = 1,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
193
.max = (1 << 16) - 1,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
201
.max = V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CABAC,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
212
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
222
.max = MAX_QP_HEVC,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
232
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
242
.max = MAX_QP_HEVC,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
49
.max = STAGE_2,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
61
.max = STAGE_2,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
70
.max = V4L2_MPEG_VIDEO_H264_PROFILE_MULTIVIEW_HIGH,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
85
.max = V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10,
drivers/media/platform/qcom/iris/iris_platform_gen1.c
97
.max = V4L2_MPEG_VIDEO_H264_LEVEL_5_1,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
120
.max = V4L2_MPEG_VIDEO_HEVC_LEVEL_6_2,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
142
.max = V4L2_MPEG_VIDEO_VP9_LEVEL_6_0,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
163
.max = V4L2_MPEG_VIDEO_AV1_LEVEL_6_1,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
190
.max = V4L2_MPEG_VIDEO_HEVC_TIER_HIGH,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
201
.max = 1,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
211
.max = 1,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
221
.max = 1,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
230
.max = 1,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
238
.max = 1,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
248
.max = DEFAULT_MAX_HOST_BURST_BUF_COUNT,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
258
.max = STAGE_2,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
274
.max = 2,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
282
.max = CODED_FRAMES_PROGRESSIVE,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
290
.max = BIT_DEPTH_8,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
298
.max = 1,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
311
.max = V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_HIGH,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
325
.max = V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
337
.max = V4L2_MPEG_VIDEO_H264_LEVEL_6_0,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
364
.max = V4L2_MPEG_VIDEO_HEVC_LEVEL_6_2,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
386
.max = STAGE_2,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
395
.max = V4L2_MPEG_VIDEO_HEADER_MODE_JOINED_WITH_1ST_FRAME,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
406
.max = 1,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
413
.max = BITRATE_MAX,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
424
.max = BITRATE_MAX,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
435
.max = V4L2_MPEG_VIDEO_BITRATE_MODE_CBR,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
446
.max = V4L2_MPEG_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
45
.max = V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_HIGH,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
456
.max = 1,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
463
.max = INT_MAX,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
474
.max = V4L2_MPEG_VIDEO_H264_ENTROPY_MODE_CABAC,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
485
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
495
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
505
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
515
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
525
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
532
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
539
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
546
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
553
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
560
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
567
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
574
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
581
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
588
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
59
.max = V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_STILL_PICTURE,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
595
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
602
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
609
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
620
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
631
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
642
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
653
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
664
.max = MAX_QP,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
675
.max = DEFAULT_MAX_HOST_BURST_BUF_COUNT,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
685
.max = DEFAULT_MAX_HOST_BURST_BUF_COUNT,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
695
.max = 270,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
70
.max = V4L2_MPEG_VIDEO_AV1_PROFILE_MAIN,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
705
.max = 1,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
716
.max = 1,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
727
.max = V4L2_CID_MPEG_VIDEO_INTRA_REFRESH_PERIOD_TYPE_CYCLIC,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
736
.max = INT_MAX,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
80
.max = V4L2_MPEG_VIDEO_VP9_PROFILE_2,
drivers/media/platform/qcom/iris/iris_platform_gen2.c
91
.max = V4L2_MPEG_VIDEO_H264_LEVEL_6_2,
drivers/media/platform/qcom/iris/iris_power.c
110
data_size = max(data_size, buf->data_size);
drivers/media/platform/qcom/iris/iris_utils.c
118
fps = max(instance->frame_rate, instance->operating_rate);
drivers/media/platform/qcom/iris/iris_utils.c
16
u32 max_side = max(ref_width, ref_height);
drivers/media/platform/qcom/iris/iris_utils.c
29
u32 height = max(inp_f->fmt.pix_mp.height, inst->crop.height);
drivers/media/platform/qcom/iris/iris_utils.c
30
u32 width = max(inp_f->fmt.pix_mp.width, inst->crop.width);
drivers/media/platform/qcom/iris/iris_vidc.c
444
fival->stepwise.max.numerator = 1;
drivers/media/platform/qcom/iris/iris_vidc.c
445
fival->stepwise.max.denominator = 1;
drivers/media/platform/qcom/iris/iris_vpu2.c
23
width = max(inp_f->fmt.pix_mp.width, inst->crop.width);
drivers/media/platform/qcom/iris/iris_vpu2.c
24
height = max(inp_f->fmt.pix_mp.height, inst->crop.height);
drivers/media/platform/qcom/iris/iris_vpu2.c
38
return max(vpp_freq, vsp_freq);
drivers/media/platform/qcom/iris/iris_vpu_buffer.c
1557
(((((max(width_coded, height_coded) + 3) >> 2) << 5) + 256) *
drivers/media/platform/qcom/iris/iris_vpu_buffer.c
159
size = 2 * ALIGN(max(num_lcu(frame_width, frame_height, 64) *
drivers/media/platform/qcom/iris/iris_vpu_buffer.c
1948
dma_opb_wr2_tlb_y_size = max(dma_opb_wr2_tlb_y_size, dma_opb_wr_tlb_y_size << 1);
drivers/media/platform/qcom/iris/iris_vpu_buffer.c
1949
dma_opb_wr2_tlb_uv_size = max(dma_opb_wr2_tlb_uv_size, dma_opb_wr_tlb_uv_size << 1);
drivers/media/platform/qcom/iris/iris_vpu_buffer.h
253
return (max(((frame_height + 15) / 16) *
drivers/media/platform/qcom/iris/iris_vpu_buffer.h
255
max(((frame_height + 31) / 32) *
drivers/media/platform/qcom/iris/iris_vpu_buffer.h
263
return (max(((frame_width + 15) / 16) *
drivers/media/platform/qcom/iris/iris_vpu_buffer.h
265
max(((frame_width + 31) / 32) *
drivers/media/platform/qcom/iris/iris_vpu_buffer.h
273
return (max(((frame_width + 63) / 64) * 1280,
drivers/media/platform/qcom/iris/iris_vpu_common.c
421
width = max(inp_f->fmt.pix_mp.width, inst->crop.width);
drivers/media/platform/qcom/iris/iris_vpu_common.c
422
height = max(inp_f->fmt.pix_mp.height, inst->crop.height);
drivers/media/platform/qcom/iris/iris_vpu_common.c
432
vpp_cycles += max(div_u64(vpp_cycles, 20), fw_vpp_cycles);
drivers/media/platform/qcom/venus/helpers.c
1056
size += max(extradata + SZ_8K, y_stride * 48);
drivers/media/platform/qcom/venus/helpers.c
986
max(extradata, y_stride * 48), SZ_4K);
drivers/media/platform/qcom/venus/hfi.c
158
bool max;
drivers/media/platform/qcom/venus/hfi.c
175
max = atomic_add_unless(&core->insts_count, 1,
drivers/media/platform/qcom/venus/hfi.c
177
if (!max) {
drivers/media/platform/qcom/venus/hfi_helper.h
613
u32 max;
drivers/media/platform/qcom/venus/hfi_parser.h
40
return cap->max;
drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c
1218
out_min_count = max(out_min_count, hfi_bufreq_get_count_min(bufreq, version));
drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c
253
max(opb_wr_top_line_luma_buf_size, (32 * ALIGN(height, 16)));
drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c
882
(((((max(width_coded, height_coded) + 3) >> 2) << 5) + 256) *
drivers/media/platform/qcom/venus/pm_helpers.c
1096
return max(vpp_freq, vsp_freq);
drivers/media/platform/qcom/venus/pm_helpers.c
1110
filled_len = max(filled_len, inst->payloads[i]);
drivers/media/platform/qcom/venus/pm_helpers.c
1130
freq = max(freq_core1, freq_core2);
drivers/media/platform/qcom/venus/vdec.c
234
pfmt[0].sizeimage = max(pfmt[0].sizeimage, szimage);
drivers/media/platform/qcom/venus/vdec.c
982
sizes[0] = max(sizes[0], inst->input_buf_size);
drivers/media/platform/qcom/venus/vdec.c
984
*num_buffers = max(*num_buffers, in_num);
drivers/media/platform/qcom/venus/vdec.c
994
*num_buffers = max(*num_buffers, out_num);
drivers/media/platform/qcom/venus/venc.c
1144
num = max(num, min);
drivers/media/platform/qcom/venus/venc.c
1145
*num_buffers = max(*num_buffers, num);
drivers/media/platform/qcom/venus/venc.c
1155
*num_buffers = max(*num_buffers, min);
drivers/media/platform/qcom/venus/venc.c
1160
sizes[0] = max(sizes[0], inst->output_buf_size);
drivers/media/platform/qcom/venus/venc.c
218
pfmt[0].sizeimage = max(ALIGN(pfmt[0].sizeimage, SZ_4K), sizeimage);
drivers/media/platform/qcom/venus/venc.c
507
fival->stepwise.max.numerator = 1;
drivers/media/platform/qcom/venus/venc.c
508
fival->stepwise.max.denominator = frate_min(inst) / framerate_factor;
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
1076
bpl = ALIGN(max(p->bytesperline, bpl), fmt->align);
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
1084
plane_size = max(p->sizeimage, plane_size >> 3);
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
344
max(0x80u, (3u * cfg->ch[0].output.format.height) >> 2);
drivers/media/platform/raspberrypi/rp1-cfe/pisp-fe.c
346
max(0x80u, (3u * cfg->ch[1].output.format.height) >> 2);
drivers/media/platform/renesas/rcar_jpu.c
807
bpl = max(bpl, pix->plane_fmt[i].bytesperline);
drivers/media/platform/renesas/rzv2h-ivc/rzv2h-ivc-video.c
27
#define RZV2H_IVC_MIN_VBLANK(hts) max(0x1b, 15 + (120501 / (hts)))
drivers/media/platform/renesas/vsp1/vsp1_clu.c
110
.max = 1,
drivers/media/platform/renesas/vsp1/vsp1_clu.c
92
.max = 0x00ffffff,
drivers/media/platform/renesas/vsp1/vsp1_entity.c
625
entity->sources = devm_kcalloc(vsp1->dev, max(num_pads - 1, 1U),
drivers/media/platform/renesas/vsp1/vsp1_hgo.c
107
.max = 1,
drivers/media/platform/renesas/vsp1/vsp1_hgo.c
122
.max = 1,
drivers/media/platform/renesas/vsp1/vsp1_hgt.c
118
.max = 255,
drivers/media/platform/renesas/vsp1/vsp1_lut.c
85
.max = 0x00ffffff,
drivers/media/platform/renesas/vsp1/vsp1_sru.c
100
.max = 6,
drivers/media/platform/renesas/vsp1/vsp1_uds.c
80
*minimum = max(uds_output_size(input, UDS_MAX_FACTOR), UDS_MIN_SIZE);
drivers/media/platform/renesas/vsp1/vsp1_wpf.c
495
unsigned int hoffset = max(0, (int)format->width - 16);
drivers/media/platform/rockchip/rkisp1/rkisp1-params.c
2779
ctrl_config.max |= BIT(i);
drivers/media/platform/rockchip/rkvdec/rkvdec.c
212
.cfg.max = V4L2_STATELESS_HEVC_DECODE_MODE_FRAME_BASED,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
219
.cfg.max = V4L2_STATELESS_HEVC_START_CODE_ANNEX_B,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
224
.cfg.max = V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
230
.cfg.max = V4L2_MPEG_VIDEO_HEVC_LEVEL_5_1,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
256
.cfg.max = V4L2_STATELESS_HEVC_DECODE_MODE_FRAME_BASED,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
263
.cfg.max = V4L2_STATELESS_HEVC_START_CODE_ANNEX_B,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
268
.cfg.max = V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
276
.cfg.max = V4L2_MPEG_VIDEO_HEVC_LEVEL_6_1,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
323
.cfg.max = V4L2_STATELESS_H264_DECODE_MODE_FRAME_BASED,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
330
.cfg.max = V4L2_STATELESS_H264_START_CODE_ANNEX_B,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
335
.cfg.max = V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_422_INTRA,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
344
.cfg.max = V4L2_MPEG_VIDEO_H264_LEVEL_5_1,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
370
.cfg.max = V4L2_STATELESS_H264_DECODE_MODE_FRAME_BASED,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
377
.cfg.max = V4L2_STATELESS_H264_START_CODE_ANNEX_B,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
382
.cfg.max = V4L2_MPEG_VIDEO_H264_PROFILE_HIGH_422_INTRA,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
391
.cfg.max = V4L2_MPEG_VIDEO_H264_LEVEL_6_0,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
429
.cfg.max = V4L2_MPEG_VIDEO_VP9_PROFILE_0,
drivers/media/platform/rockchip/rkvdec/rkvdec.c
687
pix_mp->width = max(pix_mp->width, ctx->coded_fmt.fmt.pix_mp.width);
drivers/media/platform/rockchip/rkvdec/rkvdec.c
688
pix_mp->height = max(pix_mp->height, ctx->coded_fmt.fmt.pix_mp.height);
drivers/media/platform/samsung/exynos-gsc/gsc-core.c
467
plane_fmt->sizeimage = max(pix_mp->width * pix_mp->height *
drivers/media/platform/samsung/exynos4-is/fimc-core.c
744
plane_fmt->sizeimage = max(sizeimage, plane_fmt->sizeimage);
drivers/media/platform/samsung/exynos4-is/fimc-lite.c
753
fimc->payload[0] = max((pixm->width * pixm->height * fmt->depth[0]) / 8,
drivers/media/platform/samsung/exynos4-is/media-dev.c
638
id = node ? __of_get_csis_id(node) : max(0, pdev->id);
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
1709
scale_factor = max(w_ratio, h_ratio);
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_dec.c
1205
cfg.max = controls[i].maximum;
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_enc.c
1807
int min, int max)
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_enc.c
1834
__v4l2_ctrl_modify_range(ctrl, min, max, ctrl->step, min);
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_enc.c
2696
cfg.max = controls[i].maximum;
drivers/media/platform/st/sti/bdisp/bdisp-debug.c
31
bdisp->dbg.max_duration = max(time_us, bdisp->dbg.max_duration);
drivers/media/platform/st/sti/bdisp/bdisp-filter.h
19
const u16 max;
drivers/media/platform/st/sti/bdisp/bdisp-filter.h
31
const u16 max;
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
109
.max = 1331,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
123
.max = 1433,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
137
.max = 1536,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
151
.max = 2048,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
165
.max = 3072,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
179
.max = 4096,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
193
.max = 5120,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
207
.max = 65535,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
227
.max = 1024,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
241
.max = 1331,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
255
.max = 1433,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
269
.max = 1536,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
283
.max = 2048,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
297
.max = 3072,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
311
.max = 4096,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
325
.max = 5120,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
339
.max = 65535,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
45
u16 max; /* Filter max scale factor (6.10 fixed point) */
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
521
bdisp_h_filter[i].max = bdisp_h_spec[i].max;
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
53
.max = 921,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
531
bdisp_v_filter[i].max = bdisp_v_spec[i].max;
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
557
(inc <= bdisp_h_filter[i].max))
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
578
(inc <= bdisp_v_filter[i].max))
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
67
.max = 1024,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
81
.max = 1126,
drivers/media/platform/st/sti/bdisp/bdisp-hw.c
95
.max = 1228,
drivers/media/platform/st/sti/hva/hva-debugfs.c
135
dbg->max_period = max(period, dbg->max_period);
drivers/media/platform/st/sti/hva/hva-debugfs.c
158
dbg->max_bitrate = max(bitrate,
drivers/media/platform/st/sti/hva/hva-debugfs.c
205
dbg->max_duration = max(duration, dbg->max_duration);
drivers/media/platform/st/sti/hva/hva-h264.c
614
if ((frame_width > max(H264_MAX_SIZE_W, H264_MAX_SIZE_H)) ||
drivers/media/platform/st/sti/hva/hva-h264.c
615
(frame_height > max(H264_MAX_SIZE_W, H264_MAX_SIZE_H))) {
drivers/media/platform/st/sti/hva/hva-h264.c
813
addr_esram += CTX_MB_BUFFER_MAX_SIZE(max(frame_width, frame_height));
drivers/media/platform/st/sti/hva/hva-h264.c
902
CTX_MB_BUFFER_MAX_SIZE(max(frame_width, frame_height)) +
drivers/media/platform/ti/omap3isp/isph3a_af.c
23
#define IS_OUT_OF_BOUNDS(value, min, max) \
drivers/media/platform/ti/omap3isp/isph3a_af.c
24
((((unsigned int)value) < (min)) || (((unsigned int)value) > (max)))
drivers/media/platform/ti/omap3isp/isppreview.c
1204
value = max(minimum, maximum);
drivers/media/platform/ti/omap3isp/ispresizer.c
596
value = max(minimum, maximum);
drivers/media/platform/ti/vpe/vpe.c
2257
.max = VIDEO_MAX_FRAME,
drivers/media/platform/verisilicon/hantro_drv.c
421
.max = 100,
drivers/media/platform/verisilicon/hantro_drv.c
430
.max = HANTRO_JPEG_ACTIVE_MARKERS,
drivers/media/platform/verisilicon/hantro_drv.c
489
.max = V4L2_STATELESS_H264_DECODE_MODE_FRAME_BASED,
drivers/media/platform/verisilicon/hantro_drv.c
497
.max = V4L2_STATELESS_H264_START_CODE_ANNEX_B,
drivers/media/platform/verisilicon/hantro_drv.c
504
.max = V4L2_MPEG_VIDEO_H264_PROFILE_HIGH,
drivers/media/platform/verisilicon/hantro_drv.c
514
.max = V4L2_STATELESS_HEVC_DECODE_MODE_FRAME_BASED,
drivers/media/platform/verisilicon/hantro_drv.c
522
.max = V4L2_STATELESS_HEVC_START_CODE_ANNEX_B,
drivers/media/platform/verisilicon/hantro_drv.c
530
.max = V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10,
drivers/media/platform/verisilicon/hantro_drv.c
538
.max = V4L2_MPEG_VIDEO_HEVC_LEVEL_5_1,
drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c
896
last_active_seg = max(i, last_active_seg);
drivers/media/platform/video-mux.c
419
num_pads = max(num_pads, endpoint.port + 1);
drivers/media/platform/xilinx/xilinx-tpg.c
518
.max = true,
drivers/media/platform/xilinx/xilinx-tpg.c
527
.max = true,
drivers/media/platform/xilinx/xilinx-tpg.c
536
.max = 0xf,
drivers/media/platform/xilinx/xilinx-tpg.c
544
.max = true,
drivers/media/platform/xilinx/xilinx-tpg.c
553
.max = true,
drivers/media/platform/xilinx/xilinx-tpg.c
562
.max = true,
drivers/media/platform/xilinx/xilinx-tpg.c
571
.max = (1 << 8) - 1,
drivers/media/platform/xilinx/xilinx-tpg.c
581
.max = (1 << 12) - 1,
drivers/media/platform/xilinx/xilinx-tpg.c
591
.max = (1 << 12) - 1,
drivers/media/platform/xilinx/xilinx-tpg.c
601
.max = (1 << 16) - 1,
drivers/media/platform/xilinx/xilinx-tpg.c
611
.max = (1 << 16) - 1,
drivers/media/platform/xilinx/xilinx-tpg.c
621
.max = (1 << 16) - 1,
drivers/media/platform/xilinx/xilinx-tpg.c
631
.max = (1 << 16) - 1,
drivers/media/platform/xilinx/xilinx-tpg.c
641
.max = (1 << 12) - 1,
drivers/media/platform/xilinx/xilinx-tpg.c
651
.max = (1 << 24) - 1,
drivers/media/platform/xilinx/xilinx-tpg.c
660
.max = (1 << 16) - 1,
drivers/media/platform/xilinx/xilinx-tpg.c
670
.max = (1 << 8) - 1,
drivers/media/radio/radio-sf16fmr2.c
170
right = max(0, right + balance);
drivers/media/radio/radio-sf16fmr2.c
172
left = max(0, left - balance);
drivers/media/radio/radio-si476x.c
170
.max = 127,
drivers/media/radio/radio-si476x.c
179
.max = 127,
drivers/media/radio/radio-si476x.c
188
.max = 126 * 2,
drivers/media/radio/radio-si476x.c
204
.max = 20,
drivers/media/radio/radio-si476x.c
229
.max = ARRAY_SIZE(phase_diversity_modes) - 1,
drivers/media/radio/radio-si476x.c
246
.max = 1,
drivers/media/radio/si4713/si4713.c
1419
.max = 107900,
drivers/media/rc/img-ir/img-ir-hw.c
105
if (!range->max)
drivers/media/rc/img-ir/img-ir-hw.c
106
range->max = defaults->max;
drivers/media/rc/img-ir/img-ir-hw.c
181
unsigned int max = in->max;
drivers/media/rc/img-ir/img-ir-hw.c
184
max = max + (max*tolerance >> 7);
drivers/media/rc/img-ir/img-ir-hw.c
187
max = (max*clock_hz + 999999) / 1000000; /* round up */
drivers/media/rc/img-ir/img-ir-hw.c
190
out->max = (max + ((1 << shift) - 1)) >> shift; /* round up */
drivers/media/rc/img-ir/img-ir-hw.c
212
hw_period.max = timing->pulse.max + timing->space.max;
drivers/media/rc/img-ir/img-ir-hw.c
218
return (hw_period.max << IMG_IR_PD_MAX_SHIFT) |
drivers/media/rc/img-ir/img-ir-hw.c
220
(hw_pulse.max << IMG_IR_W_MAX_SHIFT) |
drivers/media/rc/img-ir/img-ir-hw.c
68
if (range->max < range->min)
drivers/media/rc/img-ir/img-ir-hw.c
69
range->max = range->min;
drivers/media/rc/img-ir/img-ir-hw.c
73
range->max = (range->max*unit + 999)/1000; /* round up */
drivers/media/rc/img-ir/img-ir-hw.h
61
u16 max;
drivers/media/rc/ir-imon-decoder.c
191
struct ir_raw_event *events, unsigned int max)
drivers/media/rc/ir-imon-decoder.c
196
if (!max--)
drivers/media/rc/ir-imon-decoder.c
209
if (!max--)
drivers/media/rc/ir-imon-decoder.c
219
if (!max--)
drivers/media/rc/ir-jvc-decoder.c
189
struct ir_raw_event *events, unsigned int max)
drivers/media/rc/ir-jvc-decoder.c
196
ret = ir_raw_gen_pd(&e, max, &ir_jvc_timings, JVC_NBITS, raw);
drivers/media/rc/ir-mce_kbd-decoder.c
401
struct ir_raw_event *events, unsigned int max)
drivers/media/rc/ir-mce_kbd-decoder.c
417
ret = ir_raw_gen_manchester(&e, max, &ir_mce_kbd_timings, len, raw);
drivers/media/rc/ir-nec-decoder.c
233
struct ir_raw_event *events, unsigned int max)
drivers/media/rc/ir-nec-decoder.c
243
ret = ir_raw_gen_pd(&e, max, &ir_nec_timings, NEC_NBITS, raw);
drivers/media/rc/ir-rc5-decoder.c
210
struct ir_raw_event *events, unsigned int max)
drivers/media/rc/ir-rc5-decoder.c
226
ret = ir_raw_gen_manchester(&e, max, &ir_rc5_timings,
drivers/media/rc/ir-rc5-decoder.c
242
ret = ir_raw_gen_manchester(&e, max, &ir_rc5x_timings[0],
drivers/media/rc/ir-rc5-decoder.c
247
ret = ir_raw_gen_manchester(&e, max - (e - events),
drivers/media/rc/ir-rc5-decoder.c
256
ret = ir_raw_gen_manchester(&e, max, &ir_rc5_sz_timings,
drivers/media/rc/ir-rc6-decoder.c
310
struct ir_raw_event *events, unsigned int max)
drivers/media/rc/ir-rc6-decoder.c
317
ret = ir_raw_gen_manchester(&e, max - (e - events),
drivers/media/rc/ir-rc6-decoder.c
324
ret = ir_raw_gen_manchester(&e, max - (e - events),
drivers/media/rc/ir-rc6-decoder.c
330
ret = ir_raw_gen_manchester(&e, max - (e - events),
drivers/media/rc/ir-rc6-decoder.c
355
ret = ir_raw_gen_manchester(&e, max - (e - events),
drivers/media/rc/ir-rc6-decoder.c
362
ret = ir_raw_gen_manchester(&e, max - (e - events),
drivers/media/rc/ir-rc6-decoder.c
368
ret = ir_raw_gen_manchester(&e, max - (e - events),
drivers/media/rc/ir-rcmm-decoder.c
180
static int ir_rcmm_rawencoder(struct ir_raw_event **ev, unsigned int max,
drivers/media/rc/ir-rcmm-decoder.c
186
ret = ir_raw_gen_pulse_space(ev, &max, RCMM_PREFIX_PULSE, RCMM_PULSE_0);
drivers/media/rc/ir-rcmm-decoder.c
193
ret = ir_raw_gen_pulse_space(ev, &max, RCMM_UNIT, space);
drivers/media/rc/ir-rcmm-decoder.c
198
return ir_raw_gen_pulse_space(ev, &max, RCMM_UNIT, RCMM_PULSE_3 * 2);
drivers/media/rc/ir-rcmm-decoder.c
202
struct ir_raw_event *events, unsigned int max)
drivers/media/rc/ir-rcmm-decoder.c
209
ret = ir_rcmm_rawencoder(&e, max, 32, scancode);
drivers/media/rc/ir-rcmm-decoder.c
212
ret = ir_rcmm_rawencoder(&e, max, 24, scancode);
drivers/media/rc/ir-rcmm-decoder.c
215
ret = ir_rcmm_rawencoder(&e, max, 12, scancode);
drivers/media/rc/ir-sanyo-decoder.c
190
struct ir_raw_event *events, unsigned int max)
drivers/media/rc/ir-sanyo-decoder.c
201
ret = ir_raw_gen_pd(&e, max, &ir_sanyo_timings, SANYO_NBITS, raw);
drivers/media/rc/ir-sharp-decoder.c
193
struct ir_raw_event *events, unsigned int max)
drivers/media/rc/ir-sharp-decoder.c
201
ret = ir_raw_gen_pd(&e, max, &ir_sharp_timings, SHARP_NBITS,
drivers/media/rc/ir-sharp-decoder.c
206
max -= ret;
drivers/media/rc/ir-sharp-decoder.c
210
ret = ir_raw_gen_pd(&e, max, &ir_sharp_timings, SHARP_NBITS,
drivers/media/rc/ir-sony-decoder.c
188
struct ir_raw_event *events, unsigned int max)
drivers/media/rc/ir-sony-decoder.c
206
ret = ir_raw_gen_pl(&e, max, &ir_sony_timings, len, raw);
drivers/media/rc/rc-core-priv.h
229
int ir_raw_gen_manchester(struct ir_raw_event **ev, unsigned int max,
drivers/media/rc/rc-core-priv.h
247
unsigned int *max,
drivers/media/rc/rc-core-priv.h
251
if (!*max)
drivers/media/rc/rc-core-priv.h
254
if (!--*max)
drivers/media/rc/rc-core-priv.h
257
--*max;
drivers/media/rc/rc-core-priv.h
281
int ir_raw_gen_pd(struct ir_raw_event **ev, unsigned int max,
drivers/media/rc/rc-core-priv.h
301
int ir_raw_gen_pl(struct ir_raw_event **ev, unsigned int max,
drivers/media/rc/rc-core-priv.h
39
struct ir_raw_event *events, unsigned int max);
drivers/media/rc/rc-ir-raw.c
316
int ir_raw_gen_manchester(struct ir_raw_event **ev, unsigned int max,
drivers/media/rc/rc-ir-raw.c
327
if (!max--)
drivers/media/rc/rc-ir-raw.c
331
if (!max--)
drivers/media/rc/rc-ir-raw.c
349
if (!max--)
drivers/media/rc/rc-ir-raw.c
355
if (!max--)
drivers/media/rc/rc-ir-raw.c
365
else if (!max--)
drivers/media/rc/rc-ir-raw.c
398
int ir_raw_gen_pd(struct ir_raw_event **ev, unsigned int max,
drivers/media/rc/rc-ir-raw.c
407
ret = ir_raw_gen_pulse_space(ev, &max, timings->header_pulse,
drivers/media/rc/rc-ir-raw.c
416
ret = ir_raw_gen_pulse_space(ev, &max,
drivers/media/rc/rc-ir-raw.c
425
ret = ir_raw_gen_pulse_space(ev, &max,
drivers/media/rc/rc-ir-raw.c
433
ret = ir_raw_gen_pulse_space(ev, &max, timings->trailer_pulse,
drivers/media/rc/rc-ir-raw.c
457
int ir_raw_gen_pl(struct ir_raw_event **ev, unsigned int max,
drivers/media/rc/rc-ir-raw.c
465
if (!max--)
drivers/media/rc/rc-ir-raw.c
472
if (!max--)
drivers/media/rc/rc-ir-raw.c
476
if (!max--)
drivers/media/rc/rc-ir-raw.c
483
if (!max--)
drivers/media/rc/rc-ir-raw.c
487
if (!max--)
drivers/media/rc/rc-ir-raw.c
494
if (!max--)
drivers/media/rc/rc-ir-raw.c
520
struct ir_raw_event *events, unsigned int max)
drivers/media/rc/rc-ir-raw.c
531
ret = handler->encode(protocol, scancode, events, max);
drivers/media/rc/rc-loopback.c
178
static const unsigned int max = 512;
drivers/media/rc/rc-loopback.c
188
raw = kmalloc_objs(*raw, max);
drivers/media/rc/rc-loopback.c
192
ret = ir_raw_encode_scancode(dev->wakeup_protocol, sc->data, raw, max);
drivers/media/rc/rc-loopback.c
195
ret = max;
drivers/media/rc/rc-loopback.c
73
static int loop_set_rx_carrier_range(struct rc_dev *dev, u32 min, u32 max)
drivers/media/rc/rc-loopback.c
77
if (min < 1 || min > max) {
drivers/media/rc/rc-loopback.c
78
dev_dbg(&dev->dev, "invalid rx carrier range %u to %u\n", min, max);
drivers/media/rc/rc-loopback.c
82
dev_dbg(&dev->dev, "setting rx carrier range %u to %u\n", min, max);
drivers/media/rc/rc-loopback.c
84
lodev->rxcarriermax = max;
drivers/media/test-drivers/vim2m.c
1341
.max = 10001,
drivers/media/test-drivers/vim2m.c
1352
.max = MEM2MEM_DEF_NUM_BUFS,
drivers/media/test-drivers/vimc/vimc-debayer.c
554
.max = 25,
drivers/media/test-drivers/vimc/vimc-sensor.c
357
.max = TPG_PAT_NOISE,
drivers/media/test-drivers/vimc/vimc-sensor.c
373
.max = ARRAY_SIZE(vimc_ctrl_osd_mode_strings) - 2,
drivers/media/test-drivers/visl/visl-core.c
165
.cfg.max = V4L2_STATELESS_H264_DECODE_MODE_FRAME_BASED,
drivers/media/test-drivers/visl/visl-core.c
171
.cfg.max = V4L2_STATELESS_H264_START_CODE_ANNEX_B,
drivers/media/test-drivers/visl/visl-core.c
208
.cfg.max = V4L2_STATELESS_HEVC_DECODE_MODE_FRAME_BASED,
drivers/media/test-drivers/visl/visl-core.c
214
.cfg.max = V4L2_STATELESS_HEVC_START_CODE_ANNEX_B,
drivers/media/test-drivers/visl/visl-core.c
220
.cfg.max = 0xffffffff,
drivers/media/test-drivers/visl/visl-video.c
446
pix_mp->plane_fmt[0].sizeimage = max(MIN_CODED_SZ,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1005
.max = ARRAY_SIZE(vivid_ctrl_xfer_func_strings) - 2,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1028
.max = ARRAY_SIZE(vivid_ctrl_ycbcr_enc_strings) - 2,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1043
.max = ARRAY_SIZE(vivid_ctrl_hsv_enc_strings) - 2,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1059
.max = ARRAY_SIZE(vivid_ctrl_quantization_strings) - 2,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1068
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1077
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1105
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1165
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1175
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1185
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1258
.max = 100,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1304
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1320
.max = ARRAY_SIZE(vivid_ctrl_time_wrap_strings) - 2,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1368
.max = ARRAY_SIZE(vivid_ctrl_std_signal_mode_strings) - 2,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1378
.max = 14,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1444
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1452
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1468
.max = 2,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1477
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1534
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1563
.max = 200000,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1595
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1605
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
164
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1738
.max = TPG_PAT_NOISE,
drivers/media/test-drivers/vivid/vivid-ctrls.c
175
.max = 0x7fffffff,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1772
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1791
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
185
.max = 0x7fffffffffffffffLL,
drivers/media/test-drivers/vivid/vivid-ctrls.c
1866
vivid_ctrl_dv_timings.max = dev->query_dv_timings_size - 1;
drivers/media/test-drivers/vivid/vivid-ctrls.c
196
.max = 0x20000,
drivers/media/test-drivers/vivid/vivid-ctrls.c
209
.max = 90,
drivers/media/test-drivers/vivid/vivid-ctrls.c
221
.max = 0x2000,
drivers/media/test-drivers/vivid/vivid-ctrls.c
233
.max = 0x20,
drivers/media/test-drivers/vivid/vivid-ctrls.c
245
.max = 0xff,
drivers/media/test-drivers/vivid/vivid-ctrls.c
258
.max = 10,
drivers/media/test-drivers/vivid/vivid-ctrls.c
270
.max = 10,
drivers/media/test-drivers/vivid/vivid-ctrls.c
291
.max = 4,
drivers/media/test-drivers/vivid/vivid-ctrls.c
303
.max = 4,
drivers/media/test-drivers/vivid/vivid-ctrls.c
314
.max = 0x80402010,
drivers/media/test-drivers/vivid/vivid-ctrls.c
328
.max = 8,
drivers/media/test-drivers/vivid/vivid-ctrls.c
361
.max = 255,
drivers/media/test-drivers/vivid/vivid-ctrls.c
744
.max = TPG_MOVE_POS_FAST,
drivers/media/test-drivers/vivid/vivid-ctrls.c
765
.max = TPG_MOVE_POS_FAST,
drivers/media/test-drivers/vivid/vivid-ctrls.c
775
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
784
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
800
.max = ARRAY_SIZE(vivid_ctrl_osd_mode_strings) - 2,
drivers/media/test-drivers/vivid/vivid-ctrls.c
810
.max = 100,
drivers/media/test-drivers/vivid/vivid-ctrls.c
820
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
829
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
838
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
847
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
856
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
865
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
874
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
884
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
894
.max = 1,
drivers/media/test-drivers/vivid/vivid-ctrls.c
910
.max = ARRAY_SIZE(vivid_ctrl_tstamp_src_strings) - 2,
drivers/media/test-drivers/vivid/vivid-ctrls.c
920
.max = 4,
drivers/media/test-drivers/vivid/vivid-ctrls.c
941
.max = 5,
drivers/media/test-drivers/vivid/vivid-ctrls.c
950
.max = 3,
drivers/media/test-drivers/vivid/vivid-ctrls.c
960
.max = 256,
drivers/media/test-drivers/vivid/vivid-ctrls.c
983
.max = ARRAY_SIZE(vivid_ctrl_colorspace_strings) - 2,
drivers/media/tuners/mt2063.c
706
gd_Scale = max((u32) gcd(lo_gcd, d), f_Scale);
drivers/media/tuners/mt2063.c
708
gc_Scale = max((u32) gcd(lo_gcd, c), f_Scale);
drivers/media/tuners/mt2063.c
710
gf_Scale = max((u32) gcd(lo_gcd, f), f_Scale);
drivers/media/tuners/r820t.c
1523
u8 data[2], min = 255, max = 0;
drivers/media/tuners/r820t.c
1537
if (data[1] > max)
drivers/media/tuners/r820t.c
1538
max = data[1];
drivers/media/tuners/r820t.c
1540
rc = sum - max - min;
drivers/media/tuners/tda18271-common.c
186
int i, ret = 1, max;
drivers/media/tuners/tda18271-common.c
192
max = 3;
drivers/media/tuners/tda18271-common.c
195
max = 8;
drivers/media/tuners/tda18271-common.c
198
max = 16;
drivers/media/tuners/tda18271-common.c
202
max = 39;
drivers/media/tuners/tda18271-common.c
219
if (max > len)
drivers/media/tuners/tda18271-common.c
220
max = len;
drivers/media/tuners/tda18271-common.c
223
for (i = 1; i <= max; i++)
drivers/media/tuners/tda18271-common.c
226
msg.len = max + 1;
drivers/media/tuners/tda18271-common.c
233
idx += max;
drivers/media/tuners/tda18271-common.c
234
len -= max;
drivers/media/tuners/tda18271-common.c
243
idx, max, ret);
drivers/media/tuners/tuner-types.c
1676
.max = 16 * 803.00,
drivers/media/tuners/tuner-types.c
1714
.max = 16 * 858.00,
drivers/media/tuners/tuner-types.c
1734
.max = 16 * 958.00,
drivers/media/tuners/tuner-types.c
1778
.max = 16 * 863.00,
drivers/media/tuners/tuner-types.c
1796
.max = 16 * 858.00,
drivers/media/tuners/tuner-types.c
1806
.max = 16 * 863.00,
drivers/media/tuners/tuner-types.c
1825
.max = 16 * 895.00,
drivers/media/tuners/tuner-types.c
1833
.max = 16 * 864.00,
drivers/media/tuners/tuner-types.c
1857
.max = 16 * 858.00,
drivers/media/tuners/tuner-types.c
1892
.max = 16 * 858.00,
drivers/media/usb/dvb-usb-v2/lmedm04.c
146
if (max(wlen, rlen) > sizeof(st->usb_buffer))
drivers/media/usb/dvb-usb/dib0700_devices.c
1629
u32 freq_adc, ratio, rest, max = 0;
drivers/media/usb/dvb-usb/dib0700_devices.c
1640
if ((rest > max) && (rest > 717)) {
drivers/media/usb/dvb-usb/dib0700_devices.c
1642
max = rest;
drivers/media/usb/dvb-usb/vp702x.c
119
int buflen = max(olen + 2, ilen + 1);
drivers/media/usb/em28xx/em28xx-audio.c
404
info->value.integer.max = 0x1f;
drivers/media/usb/go7007/go7007-fw.c
1292
0xbff4, max(f1, f2),
drivers/media/usb/go7007/go7007-v4l2.c
1006
.max = 3,
drivers/media/usb/go7007/go7007-v4l2.c
888
.max = 32767,
drivers/media/usb/go7007/go7007-v4l2.c
898
.max = 32767,
drivers/media/usb/go7007/go7007-v4l2.c
908
.max = 32767,
drivers/media/usb/go7007/go7007-v4l2.c
918
.max = 32767,
drivers/media/usb/go7007/go7007-v4l2.c
928
.max = 32767,
drivers/media/usb/go7007/go7007-v4l2.c
938
.max = 32767,
drivers/media/usb/go7007/go7007-v4l2.c
948
.max = 32767,
drivers/media/usb/go7007/go7007-v4l2.c
958
.max = 32767,
drivers/media/usb/go7007/go7007-v4l2.c
968
.max = 32767,
drivers/media/usb/go7007/go7007-v4l2.c
978
.max = 32767,
drivers/media/usb/go7007/go7007-v4l2.c
988
.max = 32767,
drivers/media/usb/go7007/go7007-v4l2.c
998
.max = 32767,
drivers/media/usb/gspca/cpia1.c
1822
.max = 1,
drivers/media/usb/gspca/jeilinj.c
436
.max = 3,
drivers/media/usb/gspca/m5602/m5602_mt9m111.c
189
.max = 0x7ff,
drivers/media/usb/gspca/m5602/m5602_po1030.c
149
.max = 255,
drivers/media/usb/gspca/mr97310a.c
924
.max = MR97310A_MIN_CLOCKDIV_MAX,
drivers/media/usb/gspca/pac7302.c
373
static const u8 max[10] =
drivers/media/usb/gspca/pac7302.c
382
v = max[i];
drivers/media/usb/gspca/sn9c20x.c
2096
s32 max = sd->exposure->maximum - sd->exposure_step;
drivers/media/usb/gspca/sn9c20x.c
2106
if (cur_exp > max)
drivers/media/usb/gspca/sn9c20x.c
2110
if (new_exp > max)
drivers/media/usb/gspca/sn9c20x.c
2111
new_exp = max;
drivers/media/usb/gspca/sn9c20x.c
2128
if (new_exp > max)
drivers/media/usb/gspca/sn9c20x.c
2129
new_exp = max;
drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c
115
.max = 255,
drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c
124
.max = 1,
drivers/media/usb/pwc/pwc-v4l.c
105
.max = 3,
drivers/media/usb/pwc/pwc-v4l.c
136
.max = 32,
drivers/media/usb/pwc/pwc-v4l.c
146
.max = 63,
drivers/media/usb/pwc/pwc-v4l.c
56
.max = awb_auto,
drivers/media/usb/pwc/pwc-v4l.c
66
.max = 1,
drivers/media/usb/pwc/pwc-v4l.c
77
.max = 63,
drivers/media/usb/pwc/pwc-v4l.c
86
.max = 1,
drivers/media/usb/pwc/pwc-v4l.c
95
.max = 1,
drivers/media/usb/s2255/s2255drv.c
1577
.max = 1,
drivers/media/usb/uvc/uvc_ctrl.c
1079
bits -= 8 - max(offset, 0);
drivers/media/usb/uvc/uvc_ctrl.c
2494
s32 max;
drivers/media/usb/uvc/uvc_ctrl.c
2505
max = uvc_mapping_get_s32(mapping, UVC_GET_MAX,
drivers/media/usb/uvc/uvc_ctrl.c
2518
min = -max;
drivers/media/usb/uvc/uvc_ctrl.c
2530
value = clamp(value, min, max);
drivers/media/usb/uvc/uvc_ctrl.c
2532
value = clamp_t(u32, value, min, max);
drivers/media/usb/uvc/uvc_v4l2.c
1014
fival->stepwise.max.numerator = frame->dwFrameInterval[1];
drivers/media/usb/uvc/uvc_v4l2.c
1015
fival->stepwise.max.denominator = 10000000;
drivers/media/usb/uvc/uvc_v4l2.c
1020
v4l2_simplify_fraction(&fival->stepwise.max.numerator,
drivers/media/usb/uvc/uvc_v4l2.c
1021
&fival->stepwise.max.denominator, 8, 333);
drivers/media/usb/uvc/uvc_v4l2.c
212
const u32 max = frame->dwFrameInterval[1];
drivers/media/usb/uvc/uvc_v4l2.c
216
if (interval > max)
drivers/media/usb/uvc/uvc_v4l2.c
217
interval = max;
drivers/media/v4l2-core/v4l2-common.c
103
x = clamp(x, (min + ~mask) & mask, max & mask);
drivers/media/v4l2-core/v4l2-common.c
113
unsigned int max, unsigned int alignment)
drivers/media/v4l2-core/v4l2-common.c
115
x = clamp(x, min, max);
drivers/media/v4l2-core/v4l2-common.c
72
s64 max = _max;
drivers/media/v4l2-core/v4l2-common.c
77
&min, &max, &step, &def, &qctrl->flags);
drivers/media/v4l2-core/v4l2-common.c
83
qctrl->maximum = max;
drivers/media/v4l2-core/v4l2-common.c
97
unsigned int max, unsigned int align)
drivers/media/v4l2-core/v4l2-ctrls-api.c
965
s64 min, s64 max, u64 step, s64 def)
drivers/media/v4l2-core/v4l2-ctrls-api.c
985
ret = check_range(ctrl->type, min, max, step, def);
drivers/media/v4l2-core/v4l2-ctrls-api.c
992
if (ctrl->minimum != min || ctrl->maximum != max ||
drivers/media/v4l2-core/v4l2-ctrls-api.c
996
ctrl->maximum = max;
drivers/media/v4l2-core/v4l2-ctrls-core.c
1671
s64 min, s64 max, u64 step, s64 def)
drivers/media/v4l2-core/v4l2-ctrls-core.c
1675
if (step != 1 || max > 1 || min < 0)
drivers/media/v4l2-core/v4l2-ctrls-core.c
1683
if (step == 0 || min > max || def < min || def > max)
drivers/media/v4l2-core/v4l2-ctrls-core.c
1687
if (step || min || !max || (def & ~max))
drivers/media/v4l2-core/v4l2-ctrls-core.c
1692
if (min > max || def < min || def > max ||
drivers/media/v4l2-core/v4l2-ctrls-core.c
1693
min < 0 || (step && max >= BITS_PER_LONG_LONG))
drivers/media/v4l2-core/v4l2-ctrls-core.c
1701
if (min > max || min < 0 || step < 1 || def)
drivers/media/v4l2-core/v4l2-ctrls-core.c
1942
s64 min, s64 max, u64 step, s64 def,
drivers/media/v4l2-core/v4l2-ctrls-core.c
1977
elem_size = max + 1;
drivers/media/v4l2-core/v4l2-ctrls-core.c
2093
err = check_range(type, min, max, step, def);
drivers/media/v4l2-core/v4l2-ctrls-core.c
2155
ctrl->maximum = max;
drivers/media/v4l2-core/v4l2-ctrls-core.c
2244
s64 max = cfg->max;
drivers/media/v4l2-core/v4l2-ctrls-core.c
2249
v4l2_ctrl_fill(cfg->id, &name, &type, &min, &max, &step,
drivers/media/v4l2-core/v4l2-ctrls-core.c
2266
type, min, max,
drivers/media/v4l2-core/v4l2-ctrls-core.c
2280
u32 id, s64 min, s64 max, u64 step, s64 def)
drivers/media/v4l2-core/v4l2-ctrls-core.c
2286
v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags);
drivers/media/v4l2-core/v4l2-ctrls-core.c
2294
min, max, step, def, NULL, 0,
drivers/media/v4l2-core/v4l2-ctrls-core.c
2311
s64 max = _max;
drivers/media/v4l2-core/v4l2-ctrls-core.c
2316
v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags);
drivers/media/v4l2-core/v4l2-ctrls-core.c
2323
if ((!qmenu && !qmenu_int) || (qmenu_int && max >= qmenu_int_len)) {
drivers/media/v4l2-core/v4l2-ctrls-core.c
2328
0, max, mask, def, NULL, 0,
drivers/media/v4l2-core/v4l2-ctrls-core.c
2344
s64 max = _max;
drivers/media/v4l2-core/v4l2-ctrls-core.c
2355
v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags);
drivers/media/v4l2-core/v4l2-ctrls-core.c
2361
0, max, mask, def, NULL, 0,
drivers/media/v4l2-core/v4l2-ctrls-core.c
2378
s64 min, max, step, def;
drivers/media/v4l2-core/v4l2-ctrls-core.c
2380
v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags);
drivers/media/v4l2-core/v4l2-ctrls-core.c
2386
min, max, step, def, NULL, 0,
drivers/media/v4l2-core/v4l2-ctrls-core.c
2400
s64 max = _max;
drivers/media/v4l2-core/v4l2-ctrls-core.c
2404
v4l2_ctrl_fill(id, &name, &type, &min, &max, &step, &def, &flags);
drivers/media/v4l2-core/v4l2-ctrls-core.c
2410
0, max, 0, def, NULL, 0,
drivers/media/v4l2-core/v4l2-ctrls-defs.c
1257
s64 *min, s64 *max, u64 *step, s64 *def, u32 *flags)
drivers/media/v4l2-core/v4l2-ctrls-defs.c
1320
*max = *step = 1;
drivers/media/v4l2-core/v4l2-ctrls-defs.c
1354
*min = *max = *step = *def = 0;
drivers/media/v4l2-core/v4l2-ctrls-defs.c
1463
*min = *max = *step = *def = 0;
drivers/media/v4l2-core/v4l2-ctrls-defs.c
1471
*max = 0xffffff;
drivers/media/v4l2-core/v4l2-ctrls-defs.c
1477
*max = 0xffff;
drivers/media/v4l2-core/v4l2-ctrls-defs.c
1498
*max = 0x1ffffffffLL;
drivers/media/v4l2-core/v4l2-ctrls-defs.c
1505
*max = 0x7fffffffffffffffLL;
drivers/media/v4l2-core/v4l2-ctrls-defs.c
1513
*max = 0xffffffffffffLL;
drivers/media/v4l2-core/v4l2-ctrls-priv.h
70
s64 min, s64 max, u64 step, s64 def);
drivers/media/v4l2-core/v4l2-flash-led-class.c
315
c->max = s->max;
drivers/media/v4l2-core/v4l2-flash-led-class.c
350
ctrl_cfg->max = flash_cfg->flash_faults;
drivers/media/v4l2-core/v4l2-flash-led-class.c
364
ctrl_cfg->max = V4L2_FLASH_LED_MODE_TORCH;
drivers/media/v4l2-core/v4l2-flash-led-class.c
395
ctrl_cfg->max = V4L2_FLASH_STROBE_SOURCE_EXTERNAL;
drivers/media/v4l2-core/v4l2-flash-led-class.c
468
ctrl_cfg->max,
drivers/media/v4l2-core/v4l2-flash-led-class.c
476
ctrl_cfg->max,
drivers/media/v4l2-core/v4l2-ioctl.c
777
p->stepwise.max.numerator,
drivers/media/v4l2-core/v4l2-ioctl.c
778
p->stepwise.max.denominator,
drivers/memory/brcmstb_dpfe.c
370
static unsigned int get_msg_chksum(const u32 msg[], unsigned int max)
drivers/memory/brcmstb_dpfe.c
376
for (i = 0; i < max; i++)
drivers/memory/emif.c
471
temperature_level = max(temp, temperature_level);
drivers/memory/omap-gpmc.c
1243
dev_t.t_avdp_w = max(t_avdp, t_cer) * 1000;
drivers/memory/omap-gpmc.c
436
int cs, int reg, int st_bit, int end_bit, int max,
drivers/memory/omap-gpmc.c
452
if (!max)
drivers/memory/omap-gpmc.c
453
max = mask;
drivers/memory/omap-gpmc.c
454
invalid = l > max;
drivers/memory/omap-gpmc.c
484
#define GPMC_GET_RAW_MAX(reg, st, end, max, field) \
drivers/memory/omap-gpmc.c
485
get_gpmc_timing_reg(cs, (reg), (st), (end), (max), field, GPMC_CD_FCLK, 0, 1, 0)
drivers/memory/omap-gpmc.c
488
#define GPMC_GET_RAW_SHIFT_MAX(reg, st, end, shift, max, field) \
drivers/memory/omap-gpmc.c
489
get_gpmc_timing_reg(cs, (reg), (st), (end), (max), field, GPMC_CD_FCLK, (shift), 1, 1)
drivers/memory/omap-gpmc.c
494
#define GPMC_GET_TICKS_CD_MAX(reg, st, end, max, field, cd) \
drivers/memory/omap-gpmc.c
495
get_gpmc_timing_reg(cs, (reg), (st), (end), (max), field, (cd), 0, 0, 0)
drivers/memory/omap-gpmc.c
609
static int set_gpmc_timing_reg(int cs, int reg, int st_bit, int end_bit, int max,
drivers/memory/omap-gpmc.c
622
if (!max)
drivers/memory/omap-gpmc.c
623
max = mask;
drivers/memory/omap-gpmc.c
625
if (ticks > max) {
drivers/memory/omap-gpmc.c
627
__func__, cs, name, time, ticks, max);
drivers/memory/pl172.c
58
u32 reg_offset, u32 max, int start)
drivers/memory/pl172.c
68
} else if (cycles > max) {
drivers/memory/renesas-rpc-if.c
506
u32 smenr, smcr, pos = 0, max = rpc->bus_size == 2 ? 8 : 4;
drivers/memory/renesas-rpc-if.c
529
nbytes = bytes_left >= max ? max : (1 << ilog2(bytes_left));
drivers/memory/renesas-rpc-if.c
585
nbytes = bytes_left >= max ? max : (1 << ilog2(bytes_left));
drivers/memory/renesas-rpc-if.c
627
u32 pos = 0, max = 8;
drivers/memory/renesas-rpc-if.c
657
nbytes = bytes_left >= max ? max : bytes_left;
drivers/memory/renesas-rpc-if.c
702
nbytes = bytes_left >= max ? max : bytes_left;
drivers/memory/samsung/exynos5422-dmc.c
1054
val = max(val, dmc->min_tck->tRFC);
drivers/memory/samsung/exynos5422-dmc.c
1060
val = max(val, dmc->min_tck->tRRD);
drivers/memory/samsung/exynos5422-dmc.c
1066
val = max(val, dmc->min_tck->tRPab);
drivers/memory/samsung/exynos5422-dmc.c
1072
val = max(val, dmc->min_tck->tRCD);
drivers/memory/samsung/exynos5422-dmc.c
1078
val = max(val, dmc->min_tck->tRC);
drivers/memory/samsung/exynos5422-dmc.c
1084
val = max(val, dmc->min_tck->tRAS);
drivers/memory/samsung/exynos5422-dmc.c
1091
val = max(val, dmc->min_tck->tWTR);
drivers/memory/samsung/exynos5422-dmc.c
1097
val = max(val, dmc->min_tck->tWR);
drivers/memory/samsung/exynos5422-dmc.c
1103
val = max(val, dmc->min_tck->tRTP);
drivers/memory/samsung/exynos5422-dmc.c
1109
val = max(val, dmc->min_tck->tW2W_C2C);
drivers/memory/samsung/exynos5422-dmc.c
1115
val = max(val, dmc->min_tck->tR2R_C2C);
drivers/memory/samsung/exynos5422-dmc.c
1121
val = max(val, dmc->min_tck->tWL);
drivers/memory/samsung/exynos5422-dmc.c
1127
val = max(val, dmc->min_tck->tDQSCK);
drivers/memory/samsung/exynos5422-dmc.c
1133
val = max(val, dmc->min_tck->tRL);
drivers/memory/samsung/exynos5422-dmc.c
1140
val = max(val, dmc->min_tck->tFAW);
drivers/memory/samsung/exynos5422-dmc.c
1146
val = max(val, dmc->min_tck->tXSR);
drivers/memory/samsung/exynos5422-dmc.c
1152
val = max(val, dmc->min_tck->tXP);
drivers/memory/samsung/exynos5422-dmc.c
1158
val = max(val, dmc->min_tck->tCKE);
drivers/memory/samsung/exynos5422-dmc.c
1164
val = max(val, dmc->min_tck->tMRD);
drivers/memory/tegra/tegra124-emc.c
1067
min_rate = max(new_min_rate, min_rate);
drivers/memory/tegra/tegra124-emc.c
1070
min_rate = max(req->min_rate, min_rate);
drivers/memory/tegra/tegra124-emc.c
1316
unsigned long long rate = max(avg_bw, peak_bw);
drivers/memory/tegra/tegra124.c
1167
*agg_peak = max(*agg_peak, peak_bw);
drivers/memory/tegra/tegra20-emc.c
691
i = max(i, 1u) - 1;
drivers/memory/tegra/tegra20-emc.c
736
min_rate = max(new_min_rate, min_rate);
drivers/memory/tegra/tegra20-emc.c
739
min_rate = max(req->min_rate, min_rate);
drivers/memory/tegra/tegra20-emc.c
983
unsigned long long rate = max(avg_bw, peak_bw);
drivers/memory/tegra/tegra20.c
387
*agg_peak = max(*agg_peak, peak_bw);
drivers/memory/tegra/tegra20.c
473
clocks = max(clocks / 100 / MC_FX_FRAC_SCALE, 1u);
drivers/memory/tegra/tegra210-emc-cc-r21021.c
618
zq_wait_long = max((u32)1, div_o3(1000000, dst_clk_period));
drivers/memory/tegra/tegra210-emc-cc-r21021.c
620
zq_wait_long = max(next->min_mrs_wait,
drivers/memory/tegra/tegra210-emc-cc-r21021.c
623
zq_wait_long = max((u32)256,
drivers/memory/tegra/tegra210-emc-core.c
592
u32 value, max = 0;
drivers/memory/tegra/tegra210-emc-core.c
606
if (value > max)
drivers/memory/tegra/tegra210-emc-core.c
607
max = value;
drivers/memory/tegra/tegra210-emc-core.c
612
return max;
drivers/memory/tegra/tegra234.c
1115
*agg_peak = max(*agg_peak, peak_bw);
drivers/memory/tegra/tegra264.c
273
*agg_peak = max(*agg_peak, peak_bw);
drivers/memory/tegra/tegra30-emc.c
1209
i = max(i, 1u) - 1;
drivers/memory/tegra/tegra30-emc.c
1254
min_rate = max(new_min_rate, min_rate);
drivers/memory/tegra/tegra30-emc.c
1257
min_rate = max(req->min_rate, min_rate);
drivers/memory/tegra/tegra30-emc.c
1501
unsigned long long rate = max(avg_bw, peak_bw);
drivers/memory/tegra/tegra30.c
1329
*agg_peak = max(*agg_peak, peak_bw);
drivers/message/fusion/mptctl.c
1596
int numBytes, maxEvents, max;
drivers/message/fusion/mptctl.c
1612
max = min(maxEvents, MPTCTL_EVENT_LOG_SIZE);
drivers/message/fusion/mptctl.c
1617
if ((max < 1) || !ioc->events)
drivers/message/fusion/mptctl.c
1625
numBytes = max * sizeof(MPT_IOCTL_EVENTS);
drivers/message/fusion/mptlan.c
1146
u32 curr, buckets, count, max;
drivers/message/fusion/mptlan.c
1158
max = (mpt_dev->req_sz - MPT_LAN_RECEIVE_POST_REQUEST_SIZE) /
drivers/message/fusion/mptlan.c
1175
if (count > max)
drivers/message/fusion/mptlan.c
1176
count = max;
drivers/message/fusion/mptspi.c
190
factor = max(factor, nfactor);
drivers/mfd/arizona-spi.c
121
{ .max = 11, .key = KEY_PLAYPAUSE },
drivers/mfd/arizona-spi.c
122
{ .max = 186, .key = KEY_VOICECOMMAND },
drivers/mfd/arizona-spi.c
123
{ .max = 348, .key = KEY_VOLUMEUP },
drivers/mfd/arizona-spi.c
124
{ .max = 752, .key = KEY_VOLUMEDOWN },
drivers/mfd/db8500-prcmu.c
1535
return clock_rate(PRCMU_TVCLK) / max((u32)1, div);
drivers/mfd/max14577.c
30
.max = MAX14577_CHARGER_CURRENT_LIMIT_MAX,
drivers/mfd/max14577.c
36
.max = MAX77836_CHARGER_CURRENT_LIMIT_MAX,
drivers/mfd/max14577.c
70
if (min_ua > limits->max || max_ua < limits->min)
drivers/mfd/max14577.c
83
max_ua = min(limits->max, max_ua);
drivers/misc/apds990x.c
443
iac = max(iac1, iac2);
drivers/misc/apds990x.c
444
iac = max(iac, 0);
drivers/misc/bcm-vk/bcm_vk.h
328
u32 max; /**< max capacity */
drivers/misc/cs5535-mfgpt.c
151
int max;
drivers/misc/cs5535-mfgpt.c
158
max = 6;
drivers/misc/cs5535-mfgpt.c
160
max = MFGPT_MAX_TIMERS;
drivers/misc/cs5535-mfgpt.c
162
if (timer_nr >= max) {
drivers/misc/cs5535-mfgpt.c
173
t = find_first_bit(mfgpt->avail, max);
drivers/misc/cs5535-mfgpt.c
175
timer_nr = t < max ? (int) t : -1;
drivers/misc/fastrpc.c
1470
memlen = ALIGN(max(INIT_FILELEN_MAX, (int)init.filelen * 4),
drivers/misc/lis3lv02d/lis3lv02d.c
1169
lis3->reg_cache = kzalloc(max(sizeof(lis3_wai8_regs),
drivers/misc/nsm.c
276
void *out, size_t max)
drivers/misc/nsm.c
314
rc = min_t(size_t, rc, max);
drivers/misc/nsm.c
323
static int nsm_rng_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/misc/nsm.c
343
rc = parse_resp_get_random(nsm, &nsm->msg.resp, data, max);
drivers/misc/ntsync.c
400
sum > sem->u.sem.max)
drivers/misc/ntsync.c
58
__u32 max;
drivers/misc/ntsync.c
599
args.max = sem->u.sem.max;
drivers/misc/ntsync.c
741
if (args.count > args.max)
drivers/misc/ntsync.c
748
sem->u.sem.max = args.max;
drivers/misc/sgi-gru/grufile.c
285
cbrs = max(cbrs, n);
drivers/misc/sgi-gru/grufile.c
287
dsrbytes = max(dsrbytes, n);
drivers/misc/sgi-gru/gruhandles.c
31
if (mcs_op_statistics[op].max < nsec)
drivers/misc/sgi-gru/gruhandles.c
32
mcs_op_statistics[op].max = nsec;
drivers/misc/sgi-gru/gruprocfs.c
117
unsigned long total, count, max;
drivers/misc/sgi-gru/gruprocfs.c
126
max = mcs_op_statistics[op].max;
drivers/misc/sgi-gru/gruprocfs.c
128
count ? total / count : 0, max);
drivers/misc/sgi-gru/grutables.h
245
unsigned long max;
drivers/misc/sgi-gru/grutlbpurge.c
309
shift = max(0, fls(n - 1) - fls(MAX_LOCAL_TGH - 1));
drivers/misc/vmw_vmci/vmci_context.c
164
cid = max(cid, VMCI_RESERVED_CID_LIMIT - 1) + 1;
drivers/misc/vmw_vmci/vmci_queue_pair.c
241
((_prod_qsize) + (_cons_qsize) >= max(_prod_qsize, _cons_qsize) && \
drivers/mmc/core/core.c
2315
if (!mmc_rescan_try_freq(host, max(freq, host->f_min)))
drivers/mmc/core/core.c
2343
host->f_init = max(min(freqs[0], host->f_max), host->f_min);
drivers/mmc/core/host.c
503
int max;
drivers/mmc/core/host.c
505
max = of_alias_get_highest_id("mmc");
drivers/mmc/core/host.c
506
if (max < 0)
drivers/mmc/core/host.c
509
return max + 1;
drivers/mmc/core/mmc.c
1882
timeout_ms = max(card->ext_csd.generic_cmd6_time, timeout_ms);
drivers/mmc/core/regulator.c
207
min_uV = max(volt - 300000, 2700000);
drivers/mmc/core/sd_uhs2.c
554
card->uhs2_config.n_lss_sync_set = (max(card->uhs2_config.n_lss_sync,
drivers/mmc/core/sd_uhs2.c
559
card->uhs2_config.n_lss_dir_set = (max(card->uhs2_config.n_lss_dir,
drivers/mmc/core/sd_uhs2.c
608
card->uhs2_config.n_data_gap_set = max(nMinDataGap, card->uhs2_config.n_data_gap);
drivers/mmc/host/au1xmmc.c
380
int sg_len, max, count;
drivers/mmc/host/au1xmmc.c
398
max = (sg_len > host->pio.len) ? host->pio.len : sg_len;
drivers/mmc/host/au1xmmc.c
399
if (max > AU1XMMC_MAX_TRANSFER)
drivers/mmc/host/au1xmmc.c
400
max = AU1XMMC_MAX_TRANSFER;
drivers/mmc/host/au1xmmc.c
402
for (count = 0; count < max; count++) {
drivers/mmc/host/au1xmmc.c
436
int max, count, sg_len = 0;
drivers/mmc/host/au1xmmc.c
446
max = host->pio.len;
drivers/mmc/host/au1xmmc.c
456
if (sg_len < max)
drivers/mmc/host/au1xmmc.c
457
max = sg_len;
drivers/mmc/host/au1xmmc.c
460
if (max > AU1XMMC_MAX_TRANSFER)
drivers/mmc/host/au1xmmc.c
461
max = AU1XMMC_MAX_TRANSFER;
drivers/mmc/host/au1xmmc.c
463
for (count = 0; count < max; count++) {
drivers/mmc/host/cavium.c
909
clock = max(clock, mmc->f_min);
drivers/mmc/host/mmc_spi.c
1138
u16 delay_msec = max(host->pdata->detect_delay, (u16)100);
drivers/mmc/host/mmc_spi.c
1211
mmc->f_min = max(spi->controller->min_speed_hz, 400000);
drivers/mmc/host/mmci_stm32_sdmmc.c
532
dlyb->max = __fls(lng);
drivers/mmc/host/mmci_stm32_sdmmc.c
572
dlyb->max = DLYBSD_TAPSEL_NB;
drivers/mmc/host/mmci_stm32_sdmmc.c
583
for (phase = 0; phase <= dlyb->max; phase++) {
drivers/mmc/host/mmci_stm32_sdmmc.c
617
dlyb->unit, dlyb->max, phase);
drivers/mmc/host/mmci_stm32_sdmmc.c
77
u32 max;
drivers/mmc/host/mtk-sd.c
2357
final_maxlen = max(final_rise_delay.maxlen, final_fall_delay.maxlen);
drivers/mmc/host/mtk-sd.c
2472
final_maxlen = max(final_rise_delay.maxlen, final_fall_delay.maxlen);
drivers/mmc/host/mtk-sd.c
2528
final_maxlen = max(final_rise_delay.maxlen, final_fall_delay.maxlen);
drivers/mmc/host/renesas_sdhi_core.c
119
mmc->f_min = max(clk_round_rate(priv->clk, 1) / 512, 1L);
drivers/mmc/host/sdhci-esdhc-imx.c
1221
int min, max, avg, ret;
drivers/mmc/host/sdhci-esdhc-imx.c
1226
max = target_max = ESDHC_TUNE_CTRL_MIN;
drivers/mmc/host/sdhci-esdhc-imx.c
1228
while (max < ESDHC_TUNE_CTRL_MAX) {
drivers/mmc/host/sdhci-esdhc-imx.c
1238
max = min + ESDHC_TUNE_CTRL_STEP;
drivers/mmc/host/sdhci-esdhc-imx.c
1239
while (max < ESDHC_TUNE_CTRL_MAX) {
drivers/mmc/host/sdhci-esdhc-imx.c
1240
esdhc_prepare_tuning(host, max);
drivers/mmc/host/sdhci-esdhc-imx.c
1242
max -= ESDHC_TUNE_CTRL_STEP;
drivers/mmc/host/sdhci-esdhc-imx.c
1245
max += ESDHC_TUNE_CTRL_STEP;
drivers/mmc/host/sdhci-esdhc-imx.c
1248
win_length = max - min + 1;
drivers/mmc/host/sdhci-esdhc-imx.c
1253
target_max = max;
drivers/mmc/host/sdhci-esdhc-imx.c
1257
min = max + ESDHC_TUNE_CTRL_STEP;
drivers/mmc/host/sdhci-msm.c
1439
load = max(MMC_VMMC_MAX_LOAD_UA, SD_VMMC_MAX_LOAD_UA);
drivers/mmc/host/sdhci-msm.c
1457
load = max(MMC_VQMMC_MAX_LOAD_UA, SD_VQMMC_MAX_LOAD_UA);
drivers/mmc/host/sdhci-of-dwcmshc.c
1116
int min, max, avg, ret;
drivers/mmc/host/sdhci-of-dwcmshc.c
1119
min = max = 0;
drivers/mmc/host/sdhci-of-dwcmshc.c
1124
while (max < CV18XX_TUNE_MAX) {
drivers/mmc/host/sdhci-of-dwcmshc.c
1134
max = min + CV18XX_TUNE_STEP;
drivers/mmc/host/sdhci-of-dwcmshc.c
1135
while (max < CV18XX_TUNE_MAX) {
drivers/mmc/host/sdhci-of-dwcmshc.c
1136
cv18xx_sdhci_set_tap(host, max);
drivers/mmc/host/sdhci-of-dwcmshc.c
1138
max -= CV18XX_TUNE_STEP;
drivers/mmc/host/sdhci-of-dwcmshc.c
1141
max += CV18XX_TUNE_STEP;
drivers/mmc/host/sdhci-of-dwcmshc.c
1144
win_length = max - min + 1;
drivers/mmc/host/sdhci-of-dwcmshc.c
1149
target_max = max;
drivers/mmc/host/sdhci-of-dwcmshc.c
1153
min = max + CV18XX_TUNE_STEP;
drivers/mmc/host/sdhci-s3c.c
159
unsigned long rate, max = 0;
drivers/mmc/host/sdhci-s3c.c
164
if (rate > max)
drivers/mmc/host/sdhci-s3c.c
165
max = rate;
drivers/mmc/host/sdhci-s3c.c
168
return max;
drivers/mmc/host/sdhci-s3c.c
326
unsigned long rate, max = 0;
drivers/mmc/host/sdhci-s3c.c
337
if (rate > max)
drivers/mmc/host/sdhci-s3c.c
338
max = rate;
drivers/mmc/host/sdhci-s3c.c
341
return max;
drivers/mmc/host/sdhci-tegra.c
1071
unsigned int min, max;
drivers/mmc/host/sdhci-tegra.c
1087
max = min + 1;
drivers/mmc/host/sdhci-tegra.c
1088
while (max < 255) {
drivers/mmc/host/sdhci-tegra.c
1089
tegra_sdhci_set_tap(host, max);
drivers/mmc/host/sdhci-tegra.c
1091
max--;
drivers/mmc/host/sdhci-tegra.c
1094
max++;
drivers/mmc/host/sdhci-tegra.c
1098
tegra_sdhci_set_tap(host, min + ((max - min) * 3 / 4));
drivers/mtd/chips/cfi_cmdset_0002.c
749
max(cfi->chips[i].buffer_write_time_max, 2000);
drivers/mtd/devices/block2mtd.c
63
u_long *max;
drivers/mtd/devices/block2mtd.c
70
max = page_address(page) + PAGE_SIZE;
drivers/mtd/devices/block2mtd.c
71
for (p=page_address(page); p<max; p++)
drivers/mtd/devices/docg3.c
1072
return max(plane1_erase_count, plane2_erase_count);
drivers/mtd/devices/docg3.c
954
max_bitflips = max(max_bitflips, ret);
drivers/mtd/mtdchar.c
779
max(req.ecc_stats.max_bitflips, stats.max_bitflips);
drivers/mtd/mtdcore.c
1733
max_bitflips = max(max_bitflips, ret);
drivers/mtd/mtdcore.c
1741
max_bitflips = max(max_bitflips, ret);
drivers/mtd/mtdpart.c
150
int i, max = parent->numeraseregions;
drivers/mtd/mtdpart.c
156
for (i = 0; i < max && regions[i].offset <= child->part.offset;
drivers/mtd/mtdpart.c
164
for (; i < max && regions[i].offset < end; i++) {
drivers/mtd/mtdswap.c
1174
unsigned int max[MTDSWAP_TREE_CNT];
drivers/mtd/mtdswap.c
1189
max[i] = MTDSWAP_ECNT_MAX(root);
drivers/mtd/mtdswap.c
1219
if (min[i] != max[i])
drivers/mtd/mtdswap.c
1222
name[i], count[i], min[i], max[i]);
drivers/mtd/mtdswap.c
803
unsigned int i, idx = -1, wear, max;
drivers/mtd/mtdswap.c
806
max = 0;
drivers/mtd/mtdswap.c
813
if (wear > max) {
drivers/mtd/mtdswap.c
814
max = wear;
drivers/mtd/mtdswap.c
819
if (max > MAX_ERASE_DIFF && pick_cnt >= mtdswap_wlfreq(max) - 1) {
drivers/mtd/nand/onenand/onenand_base.c
3591
ret = flexonenand_check_blocks_erased(mtd, min(old, new) + 1, max(old, new));
drivers/mtd/nand/raw/atmel/nand-controller.c
1290
timeps = max(timeps, conf->timings.sdr.tDS_min);
drivers/mtd/nand/raw/atmel/nand-controller.c
1320
ncycles = max(totalcycles, ncycles);
drivers/mtd/nand/raw/atmel/nand-controller.c
1344
timeps = max(conf->timings.sdr.tREH_min, conf->timings.sdr.tRHOH_min);
drivers/mtd/nand/raw/atmel/nand-controller.c
1377
pulse = max(conf->timings.sdr.tRP_min, conf->timings.sdr.tREA_max);
drivers/mtd/nand/raw/atmel/nand-controller.c
1390
timeps = max(conf->timings.sdr.tAR_min, conf->timings.sdr.tCLR_min);
drivers/mtd/nand/raw/atmel/nand-controller.c
1405
ncycles = max(totalcycles, ncycles);
drivers/mtd/nand/raw/atmel/nand-controller.c
889
max_bitflips = max(ret, max_bitflips);
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1561
tbytes = max(0, tbytes - (int)ctrl->max_oob);
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1586
tbytes = max(0, tbytes - (int)ctrl->max_oob);
drivers/mtd/nand/raw/brcmnand/brcmnand.c
2177
bitflips = max(bitflips, ret);
drivers/mtd/nand/raw/brcmnand/brcmnand.c
2278
return max(mtd->bitflip_threshold, corrected);
drivers/mtd/nand/raw/denali.c
530
max_bitflips = max(max_bitflips, bitflips);
drivers/mtd/nand/raw/denali.c
824
we_2_re = DIV_ROUND_UP(max(timings->tCCS_min, timings->tWHR_min), t_x);
drivers/mtd/nand/raw/denali.c
848
rdwr_en_hi = DIV_ROUND_UP(max(timings->tREH_min, timings->tWH_min),
drivers/mtd/nand/raw/denali.c
874
rdwr_en_lo = DIV_ROUND_UP(max(timings->tRP_min, timings->tWP_min), t_x);
drivers/mtd/nand/raw/denali.c
881
rdwr_en_lo_hi = DIV_ROUND_UP(max(timings->tRC_min, timings->tWC_min),
drivers/mtd/nand/raw/denali.c
883
rdwr_en_lo = max(rdwr_en_lo, rdwr_en_lo_hi - rdwr_en_hi);
drivers/mtd/nand/raw/diskonchip.c
979
offs = max(doc->mh0_page, doc->mh1_page);
drivers/mtd/nand/raw/fsl_ifc_nand.c
659
bitflips = max(res, bitflips);
drivers/mtd/nand/raw/fsmc_nand.c
321
tset = max(sdrt->tCS_min - sdrt->tWP_min,
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
889
busy_timeout_ps = max(sdr->tBERS_max, sdr->tPROG_max);
drivers/mtd/nand/raw/intel-nand-controller.c
214
trecov = DIV_ROUND_UP(max(timings->tREA_max, timings->tREH_min),
drivers/mtd/nand/raw/intel-nand-controller.c
218
thold = DIV_ROUND_UP(max(timings->tDH_min, timings->tDS_min), period);
drivers/mtd/nand/raw/intel-nand-controller.c
221
trdwait = DIV_ROUND_UP(max(timings->tRC_min, timings->tREH_min),
drivers/mtd/nand/raw/intel-nand-controller.c
225
twrwait = DIV_ROUND_UP(max(timings->tWC_min, timings->tWH_min), period);
drivers/mtd/nand/raw/mtk_nand.c
555
tpoecs = max(timings->tALH_min, timings->tCLH_min) / 1000;
drivers/mtd/nand/raw/mtk_nand.c
559
tprecs = max(timings->tCLS_min, timings->tALS_min) / 1000;
drivers/mtd/nand/raw/mtk_nand.c
571
twh = max(timings->tREH_min, timings->tWH_min) / 1000;
drivers/mtd/nand/raw/mtk_nand.c
586
twst = max(timings->tWP_min, twst) / 1000;
drivers/mtd/nand/raw/mtk_nand.c
596
trlt = max(trlt, timings->tRP_min) / 1000;
drivers/mtd/nand/raw/nand_bbt.c
1045
td->version[i] = max(td->version[i], md->version[i]);
drivers/mtd/nand/raw/nand_micron.c
268
max_bitflips = max(nbitflips, max_bitflips);
drivers/mtd/nand/raw/nand_toshiba.c
68
max_bitflips = max(max_bitflips, bitflips);
drivers/mtd/nand/raw/qcom_nandc.c
698
max_bitflips = max(max_bitflips, stat);
drivers/mtd/nand/raw/renesas-nand-controller.c
1185
max_len = max(max_len, mtd->writesize + mtd->oobsize);
drivers/mtd/nand/raw/renesas-nand-controller.c
121
#define TIMINGS_ASYN_TRWP(x) FIELD_PREP(GENMASK(3, 0), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
122
#define TIMINGS_ASYN_TRWH(x) FIELD_PREP(GENMASK(7, 4), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
125
#define TIM_SEQ0_TCCS(x) FIELD_PREP(GENMASK(5, 0), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
126
#define TIM_SEQ0_TADL(x) FIELD_PREP(GENMASK(13, 8), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
127
#define TIM_SEQ0_TRHW(x) FIELD_PREP(GENMASK(21, 16), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
128
#define TIM_SEQ0_TWHR(x) FIELD_PREP(GENMASK(29, 24), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
131
#define TIM_SEQ1_TWB(x) FIELD_PREP(GENMASK(5, 0), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
132
#define TIM_SEQ1_TRR(x) FIELD_PREP(GENMASK(13, 8), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
133
#define TIM_SEQ1_TWW(x) FIELD_PREP(GENMASK(21, 16), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
136
#define TIM_GEN_SEQ0_D0(x) FIELD_PREP(GENMASK(5, 0), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
137
#define TIM_GEN_SEQ0_D1(x) FIELD_PREP(GENMASK(13, 8), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
138
#define TIM_GEN_SEQ0_D2(x) FIELD_PREP(GENMASK(21, 16), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
139
#define TIM_GEN_SEQ0_D3(x) FIELD_PREP(GENMASK(29, 24), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
142
#define TIM_GEN_SEQ1_D4(x) FIELD_PREP(GENMASK(5, 0), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
143
#define TIM_GEN_SEQ1_D5(x) FIELD_PREP(GENMASK(13, 8), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
144
#define TIM_GEN_SEQ1_D6(x) FIELD_PREP(GENMASK(21, 16), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
145
#define TIM_GEN_SEQ1_D7(x) FIELD_PREP(GENMASK(29, 24), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
148
#define TIM_GEN_SEQ2_D8(x) FIELD_PREP(GENMASK(5, 0), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
149
#define TIM_GEN_SEQ2_D9(x) FIELD_PREP(GENMASK(13, 8), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
150
#define TIM_GEN_SEQ2_D10(x) FIELD_PREP(GENMASK(21, 16), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
151
#define TIM_GEN_SEQ2_D11(x) FIELD_PREP(GENMASK(29, 24), max((x), 1U) - 1)
drivers/mtd/nand/raw/renesas-nand-controller.c
184
#define TIM_GEN_SEQ3_D12(x) FIELD_PREP(GENMASK(5, 0), max((x), 1U) - 1)
drivers/mtd/nand/raw/rockchip-nand-controller.c
441
trwpw = max(timings->tWC_min, timings->tRC_min) / 1000;
drivers/mtd/nand/raw/tegra_nand.c
739
max_bitflips = max(ret, max_bitflips);
drivers/mtd/nand/raw/tegra_nand.c
796
val = DIV_ROUND_UP(max(max(timings->tCS_min, timings->tCH_min),
drivers/mtd/nand/raw/tegra_nand.c
797
max(timings->tALS_min, timings->tALH_min)),
drivers/mtd/nand/raw/tegra_nand.c
801
val = DIV_ROUND_UP(max(timings->tRP_min, timings->tREA_max) + 6000,
drivers/mtd/parsers/bcm47xxpart.c
205
trx_size = max(trx->length, last_subpart + blocksize);
drivers/mtd/spi-nor/core.c
1719
timeout = max(CHIP_ERASE_2MB_READY_WAIT_JIFFIES,
drivers/mtd/ubi/build.c
958
ubi->fm_pool.max_size = max(ubi->fm_pool.max_size,
drivers/mtd/ubi/fastmap-wl.c
401
ec = max(ec, e->ec);
drivers/mtd/ubi/wl.c
331
int max;
drivers/mtd/ubi/wl.c
334
max = e->ec + diff;
drivers/mtd/ubi/wl.c
341
if (e1->ec >= max) {
drivers/net/bonding/bond_main.c
1181
max(1, bond->params.peer_notif_delay) != 0 ||
drivers/net/bonding/bond_main.c
1217
max(1, bond->params.peer_notif_delay));
drivers/net/bonding/bond_main.c
4465
int cur = 0, max = 0;
drivers/net/bonding/bond_main.c
4481
if (max <= cur)
drivers/net/bonding/bond_main.c
4482
max = cur;
drivers/net/bonding/bond_main.c
4488
return max;
drivers/net/bonding/bond_main.c
4497
return max;
drivers/net/bonding/bond_netlink.c
95
.max = 300000,
drivers/net/can/at91_can.c
722
new_state = max(tx_state, rx_state);
drivers/net/can/dev/bittiming.c
16
bt->sjw = max(1U, min(bt->phase_seg1, bt->phase_seg2 / 2));
drivers/net/can/dev/calc_bittiming.c
161
bitrate_error = max(bitrate_error, 1U);
drivers/net/can/dev/dev.c
160
enum can_state new_state = max(tx_state, rx_state);
drivers/net/can/flexcan/flexcan-core.c
911
new_state = max(tx_state, rx_state);
drivers/net/can/grcan.c
945
size_t maxs = max(tsize, rsize);
drivers/net/can/m_can/m_can.c
2512
cdev->tx_fifo_size = max(1, min(cdev->mcfg[MRAM_TXB].num,
drivers/net/can/mscan/mscan.c
148
priv->can.state = state_map[max(MSCAN_STATE_RX(canrflg),
drivers/net/can/mscan/mscan.c
281
return state_map[max(MSCAN_STATE_RX(canrflg),
drivers/net/can/rockchip/rockchip_canfd-core.c
573
new_state = max(tx_state, rx_state);
drivers/net/can/rockchip/rockchip_canfd-timestamp.c
56
bitrate = max(bt->bitrate, dbt->bitrate);
drivers/net/can/sja1000/sja1000.c
425
state = max(tx_state, rx_state);
drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c
1086
new_state = max(tx_state, rx_state);
drivers/net/can/spi/mcp251xfd/mcp251xfd-ram.c
116
u8 max;
drivers/net/can/spi/mcp251xfd/mcp251xfd-ram.c
119
max = min_t(u8, num_rx / 2, config->fifo_depth);
drivers/net/can/spi/mcp251xfd/mcp251xfd-ram.c
122
(u32)max);
drivers/net/can/spi/mcp251xfd/mcp251xfd-ram.c
139
u8 max;
drivers/net/can/spi/mcp251xfd/mcp251xfd-ram.c
142
max = min_t(u8, num_tx / 2, config->fifo_depth);
drivers/net/can/spi/mcp251xfd/mcp251xfd-ram.c
145
(u32)max);
drivers/net/can/spi/mcp251xfd/mcp251xfd-ram.c
15
u8 max;
drivers/net/can/spi/mcp251xfd/mcp251xfd-ram.c
17
max = min_t(u8, obj->max, obj->fifo_num * config->fifo_depth);
drivers/net/can/spi/mcp251xfd/mcp251xfd-ram.c
18
return clamp(val, obj->min, max);
drivers/net/can/spi/mcp251xfd/mcp251xfd-ram.h
27
u8 max;
drivers/net/can/spi/mcp251xfd/mcp251xfd-ring.c
446
.max = MCP251XFD_RX_OBJ_NUM_MAX,
drivers/net/can/spi/mcp251xfd/mcp251xfd-ring.c
459
.max = MCP251XFD_TX_OBJ_NUM_MAX,
drivers/net/can/ti_hecc.c
649
priv->can.state = max(tx_state, rx_state);
drivers/net/can/ti_hecc.c
655
if (max(tx_state, rx_state) != CAN_STATE_BUS_OFF) {
drivers/net/can/usb/gs_usb.c
1621
parent->hf_size_rx = max(parent->hf_size_rx, hf_size_rx);
drivers/net/can/usb/nct6694_canfd.c
289
new_state = max(tx_state, rx_state);
drivers/net/dsa/mv88e6xxx/global1_atu.c
49
const unsigned int max = 0xff * coeff;
drivers/net/dsa/mv88e6xxx/global1_atu.c
54
if (msecs < min || msecs > max)
drivers/net/dsa/mxl862xx/mxl862xx-host.c
154
u16 max, i;
drivers/net/dsa/mxl862xx/mxl862xx-host.c
160
max = (size + 1) / 2;
drivers/net/dsa/mxl862xx/mxl862xx-host.c
166
for (i = 0; i < max; i++) {
drivers/net/dsa/mxl862xx/mxl862xx-host.c
191
for (i = 0; i < max; i++) {
drivers/net/dsa/ocelot/felix.c
1534
ocelot->vcap_pol.max = felix->info->vcap_pol_max;
drivers/net/dsa/realtek/rtl8366rb.c
1627
unsigned int max = RTL8366RB_NUM_VLANS - 1;
drivers/net/dsa/realtek/rtl8366rb.c
1630
max = RTL8366RB_NUM_VIDS - 1;
drivers/net/dsa/realtek/rtl8366rb.c
1632
if (vlan > max)
drivers/net/dsa/rzn1_a5psw.c
304
u64 max, tmp;
drivers/net/dsa/rzn1_a5psw.c
308
max = div64_ul(((u64)A5PSW_LK_AGETIME_MASK * A5PSW_TABLE_ENTRIES * 1024),
drivers/net/dsa/rzn1_a5psw.c
310
if (msecs > max)
drivers/net/dsa/sja1105/sja1105_tas.c
403
max_cycle_time = max(offload->cycle_time, admin->cycle_time);
drivers/net/dsa/sja1105/sja1105_tas.c
419
stop_time = max_cycle_time + max(rbt1, rbt2);
drivers/net/ethernet/8390/axnet_cs.c
981
send_length = max(length, ETH_ZLEN);
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
632
q_count = max(pdata->hw_feat.tx_q_cnt, pdata->hw_feat.rx_q_cnt);
drivers/net/ethernet/amd/xgbe/xgbe-pci.c
24
vector_count += max(pdata->rx_ring_count,
drivers/net/ethernet/amd/xgbe/xgbe-platform.c
324
unsigned int i, max = ARRAY_SIZE(pdata->channel_irq);
drivers/net/ethernet/amd/xgbe/xgbe-platform.c
326
for (i = 0; (i < max) && (dma_irqnum < dma_irqend); i++) {
drivers/net/ethernet/amd/xgbe/xgbe-platform.c
334
pdata->channel_irq_count = max;
drivers/net/ethernet/amd/xgbe/xgbe-platform.c
336
pdata->irq_count += max;
drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c
305
for (i = 0; i < max(rx_ring_cnt, tx_ring_cnt); i++) {
drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c
862
cfg->rxds = max(ring->rx_pending, hw_caps->rxds_min);
drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c
866
cfg->txds = max(ring->tx_pending, hw_caps->txds_min);
drivers/net/ethernet/aquantia/atlantic/aq_ring.h
16
#define AQ_XDP_HEADROOM ALIGN(max(NET_SKB_PAD, XDP_PACKET_HEADROOM), 8)
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c
214
u32 num_rss_queues = max(1U, self->aq_nic_cfg->num_rss_queues);
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
240
u32 num_rss_queues = max(1U, self->aq_nic_cfg->num_rss_queues);
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
408
max_credit = max(8 * weight, fixed_max_credit);
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2.c
313
max_credit = max(2 * weight, fixed_max_credit_4b);
drivers/net/ethernet/asix/ax88796c_main.c
276
size_t h = max((TX_OVERHEAD + spi_len) - headroom, 0);
drivers/net/ethernet/asix/ax88796c_main.c
277
size_t t = max((padlen + TX_EOP_SIZE) - tailroom, 0);
drivers/net/ethernet/atheros/alx/main.c
1181
alx->rxbuf_size = max(max_frame, ALX_DEF_RXBUF_SIZE);
drivers/net/ethernet/atheros/atl1e/atl1e_param.c
128
if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) {
drivers/net/ethernet/atheros/atl1e/atl1e_param.c
187
.max = ATL1E_MAX_TX_DESC_CNT} }
drivers/net/ethernet/atheros/atl1e/atl1e_param.c
206
.max = ATL1E_MAX_RX_MEM_SIZE} }
drivers/net/ethernet/atheros/atl1e/atl1e_param.c
226
.max = INT_MOD_MAX_CNT} }
drivers/net/ethernet/atheros/atl1e/atl1e_param.c
245
.max = MEDIA_TYPE_10M_HALF} }
drivers/net/ethernet/atheros/atl1e/atl1e_param.c
97
int max;
drivers/net/ethernet/atheros/atlx/atl1.c
115
int max;
drivers/net/ethernet/atheros/atlx/atl1.c
147
if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) {
drivers/net/ethernet/atheros/atlx/atl1.c
204
.max = MAX_INT_MOD_CNT} }
drivers/net/ethernet/atheros/atlx/atl1.c
3516
rfdr->count = (u16) max(ring->rx_pending, (u32) ATL1_MIN_RFD);
drivers/net/ethernet/atheros/atlx/atl1.c
3522
tpdr->count = (u16) max(ring->tx_pending, (u32) ATL1_MIN_TPD);
drivers/net/ethernet/atheros/atlx/atl2.c
2853
int max;
drivers/net/ethernet/atheros/atlx/atl2.c
2884
if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) {
drivers/net/ethernet/atheros/atlx/atl2.c
2938
opt.arg.r.max = ATL2_MAX_TX_MEMSIZE;
drivers/net/ethernet/atheros/atlx/atl2.c
2960
opt.arg.r.max = ATL2_MAX_RXD_COUNT;
drivers/net/ethernet/atheros/atlx/atl2.c
2985
opt.arg.r.max = INT_MOD_MAX_CNT;
drivers/net/ethernet/atheros/atlx/atl2.c
3002
opt.arg.r.max = FLASH_VENDOR_MAX;
drivers/net/ethernet/atheros/atlx/atl2.c
3019
opt.arg.r.max = MEDIA_TYPE_10M_HALF;
drivers/net/ethernet/broadcom/bnge/bnge_netdev.c
1136
u16 next, max = rxr->rx_agg_bmap_size;
drivers/net/ethernet/broadcom/bnge/bnge_netdev.c
1138
next = find_next_zero_bit(rxr->rx_agg_bmap, max, idx);
drivers/net/ethernet/broadcom/bnge/bnge_netdev.c
1139
if (next >= max)
drivers/net/ethernet/broadcom/bnge/bnge_netdev.c
1140
next = find_first_zero_bit(rxr->rx_agg_bmap, max);
drivers/net/ethernet/broadcom/bnge/bnge_netdev.c
1360
bn->tx_wake_thresh = max(bn->tx_ring_size / 2, BNGE_MIN_TX_DESC_CNT);
drivers/net/ethernet/broadcom/bnge/bnge_netdev.c
2690
bn->netdev->cfg->hds_thresh = max(BNGE_DEFAULT_RX_COPYBREAK, rx_size);
drivers/net/ethernet/broadcom/bnge/bnge_resc.c
137
int bnge_fix_rings_count(u16 *rx, u16 *tx, u16 max, bool shared)
drivers/net/ethernet/broadcom/bnge/bnge_resc.c
142
*rx = min_t(u16, _rx, max);
drivers/net/ethernet/broadcom/bnge/bnge_resc.c
143
*tx = min_t(u16, _tx, max);
drivers/net/ethernet/broadcom/bnge/bnge_resc.c
145
if (max < 2)
drivers/net/ethernet/broadcom/bnge/bnge_resc.c
147
while (_rx + _tx > max) {
drivers/net/ethernet/broadcom/bnge/bnge_resc.c
371
u16 max, min = 1;
drivers/net/ethernet/broadcom/bnge/bnge_resc.c
374
max = bnge_get_max_func_irqs(bd);
drivers/net/ethernet/broadcom/bnge/bnge_resc.c
375
if (irqs_demand > max)
drivers/net/ethernet/broadcom/bnge/bnge_resc.c
376
irqs_demand = max;
drivers/net/ethernet/broadcom/bnge/bnge_resc.c
391
num_entries = max;
drivers/net/ethernet/broadcom/bnge/bnge_resc.h
69
int bnge_fix_rings_count(u16 *rx, u16 *tx, u16 max, bool shared);
drivers/net/ethernet/broadcom/bnx2.c
5352
u32 max, num_rings = 1;
drivers/net/ethernet/broadcom/bnx2.c
5359
max = max_size;
drivers/net/ethernet/broadcom/bnx2.c
5360
while ((max & num_rings) == 0)
drivers/net/ethernet/broadcom/bnx2.c
5361
max >>= 1;
drivers/net/ethernet/broadcom/bnx2.c
5363
if (num_rings != max)
drivers/net/ethernet/broadcom/bnx2.c
5364
max <<= 1;
drivers/net/ethernet/broadcom/bnx2.c
5366
return max;
drivers/net/ethernet/broadcom/bnx2.c
6300
msix_vecs = max(cpus + 1, bp->num_req_tx_rings);
drivers/net/ethernet/broadcom/bnx2.c
6302
msix_vecs = max(cpus, bp->num_req_rx_rings);
drivers/net/ethernet/broadcom/bnx2.c
6304
msix_vecs = max(bp->num_req_rx_rings, bp->num_req_tx_rings);
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
1414
#define BNX2X_RX_ALIGN_SHIFT max(6, min(8, L1_CACHE_SHIFT))
drivers/net/ethernet/broadcom/bnxt/bnxt.c
1022
u16 next, max = rxr->rx_agg_bmap_size;
drivers/net/ethernet/broadcom/bnxt/bnxt.c
1024
next = find_next_zero_bit(rxr->rx_agg_bmap, max, idx);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
1025
if (next >= max)
drivers/net/ethernet/broadcom/bnxt/bnxt.c
1026
next = find_first_zero_bit(rxr->rx_agg_bmap, max);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
11210
static int __bnxt_trim_rings(struct bnxt *bp, int *rx, int *tx, int max,
drivers/net/ethernet/broadcom/bnxt/bnxt.c
11216
*rx = min_t(int, _rx, max);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
11217
*tx = min_t(int, _tx, max);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
11219
if (max < 2)
drivers/net/ethernet/broadcom/bnxt/bnxt.c
11222
while (_rx + _tx > max) {
drivers/net/ethernet/broadcom/bnxt/bnxt.c
11256
static int bnxt_trim_rings(struct bnxt *bp, int *rx, int *tx, int max,
drivers/net/ethernet/broadcom/bnxt/bnxt.c
11264
rc = __bnxt_trim_rings(bp, rx, &tx_cp, max, sh);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
11271
return __bnxt_trim_rings(bp, rx, tx, max, sh);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
11434
int i, total_vecs, max, rc = 0, min = 1, ulp_msix, tx_cp, tbl_size;
drivers/net/ethernet/broadcom/bnxt/bnxt.c
11437
max = bnxt_get_max_func_irqs(bp);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
11438
if (total_vecs > max)
drivers/net/ethernet/broadcom/bnxt/bnxt.c
11439
total_vecs = max;
drivers/net/ethernet/broadcom/bnxt/bnxt.c
11457
tbl_size = max;
drivers/net/ethernet/broadcom/bnxt/bnxt.c
4761
bp->dev->cfg->hds_thresh = max(BNXT_DEFAULT_RX_COPYBREAK, rx_size);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
4775
rx_space = rx_size + ALIGN(max(NET_SKB_PAD, XDP_PACKET_HEADROOM), 8) +
drivers/net/ethernet/broadcom/bnxt/bnxt.c
4819
ALIGN(max(NET_SKB_PAD, XDP_PACKET_HEADROOM), 8) -
drivers/net/ethernet/broadcom/bnxt/bnxt.c
6586
max_ring = max(max_ring, bp->rss_indir_tbl[i]);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
7655
static int __bnxt_trim_rings(struct bnxt *bp, int *rx, int *tx, int max,
drivers/net/ethernet/broadcom/bnxt/bnxt.c
7657
static int bnxt_trim_rings(struct bnxt *bp, int *rx, int *tx, int max,
drivers/net/ethernet/broadcom/bnxt/bnxt.c
8273
u16 val, tmr, max, flags = hw_coal->flags;
drivers/net/ethernet/broadcom/bnxt/bnxt.c
8276
max = hw_coal->bufs_per_record * 128;
drivers/net/ethernet/broadcom/bnxt/bnxt.c
8278
max = hw_coal->bufs_per_record * hw_coal->budget;
drivers/net/ethernet/broadcom/bnxt/bnxt.c
8279
max = min_t(u16, max, coal_cap->num_cmpl_aggr_int_max);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
8281
val = clamp_t(u16, hw_coal->coal_bufs, 1, max);
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
196
int max = bp->max_tc;
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
200
for (i = 0, j = 0; i < max; ) {
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
213
for (i = 0, j = 0; i < max; i++) {
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
216
j = find_next_zero_bit(&qmap, max, j);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
5139
pkt_size = min(bp->dev->mtu + ETH_HLEN, max(BNXT_DEFAULT_RX_COPYBREAK,
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
909
tx_grps = max(tcs, 1);
drivers/net/ethernet/broadcom/cnic.c
661
id_tbl->max = size;
drivers/net/ethernet/broadcom/cnic.c
682
if (id >= id_tbl->max)
drivers/net/ethernet/broadcom/cnic.c
700
id = find_next_zero_bit(id_tbl->table, id_tbl->max, id_tbl->next);
drivers/net/ethernet/broadcom/cnic.c
701
if (id >= id_tbl->max) {
drivers/net/ethernet/broadcom/cnic.c
710
if (id < id_tbl->max) {
drivers/net/ethernet/broadcom/cnic.c
712
id_tbl->next = (id + 1) & (id_tbl->max - 1);
drivers/net/ethernet/broadcom/cnic.c
727
if (id >= id_tbl->max)
drivers/net/ethernet/broadcom/cnic.h
143
u32 max;
drivers/net/ethernet/broadcom/tg3.c
11527
u32 irq_cnt = max(tp->rxq_cnt, tp->txq_cnt);
drivers/net/ethernet/broadcom/tg3.c
11574
tp->rxq_cnt = max(rc - 1, 1);
drivers/net/ethernet/broadcom/tg3.c
13140
int i, max;
drivers/net/ethernet/broadcom/tg3.c
13146
max = TG3_SERDES_TIMEOUT_SEC;
drivers/net/ethernet/broadcom/tg3.c
13148
max = TG3_COPPER_TIMEOUT_SEC;
drivers/net/ethernet/broadcom/tg3.c
13150
for (i = 0; i < max; i++) {
drivers/net/ethernet/cavium/liquidio/liquidio_common.h
120
static inline u32 incr_index(u32 index, u32 count, u32 max)
drivers/net/ethernet/cavium/liquidio/liquidio_common.h
122
if ((index + count) >= max)
drivers/net/ethernet/cavium/liquidio/liquidio_common.h
123
index = index + count - max;
drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
743
cqcount = max(nic->rx_queues, txq_count);
drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
754
nic->qs->cq_cnt = max(nic->qs->rq_cnt, nic->qs->sq_cnt);
drivers/net/ethernet/cavium/thunder/nicvf_main.c
1809
cq_count = max(nic->rx_queues, txq_count);
drivers/net/ethernet/cavium/thunder/nicvf_main.c
457
max(nic->snicvf[sqs]->qs->rq_cnt, nic->snicvf[sqs]->qs->sq_cnt);
drivers/net/ethernet/chelsio/cxgb/sge.c
315
s->max_avail = max(4096U, p->mtu + 16 + 14 + 4);
drivers/net/ethernet/chelsio/cxgb/sge.c
316
max_avail_segs = max(1U, 4096 / (p->mtu - 40));
drivers/net/ethernet/chelsio/cxgb/sge.c
319
max_avail_segs = max(1U, 9000 / (p->mtu - 40));
drivers/net/ethernet/chelsio/cxgb3/cxgb3_ioctl.h
104
uint8_t max;
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
958
req->max = hi;
drivers/net/ethernet/chelsio/cxgb3/sge.c
2928
(max(tbd[TXQ_ETH], tbd[TXQ_OFLD]) /
drivers/net/ethernet/chelsio/cxgb3/sge.c
3000
qs->rspq.holdoff_tmr = max(p->coalesce_usecs * 10, 1U);/* can't be 0 */
drivers/net/ethernet/chelsio/cxgb3/t3_cpl.h
892
__u8 max;
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
2856
inc = max(((mtu - 40) * alpha[w]) / avg_pkts[w],
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
341
hwm = max(MAC_RXFIFO_SIZE - 3 * mtu, (MAC_RXFIFO_SIZE * 38) / 100);
drivers/net/ethernet/chelsio/cxgb3/xgmac.c
412
thres = max(thres, 8U); /* need at least 8 */
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c
2421
max_ctx_size = max(region_info[CTXT_EGRESS].end -
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
5707
q10g = max(8U, ncpus);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
5709
q10g = max(8U, q10g);
drivers/net/ethernet/chelsio/cxgb4/sge.c
2107
static inline void eosw_txq_advance_index(u32 *idx, u32 n, u32 max)
drivers/net/ethernet/chelsio/cxgb4/sge.c
2111
if (val >= max)
drivers/net/ethernet/chelsio/cxgb4/sge.c
2112
val -= max;
drivers/net/ethernet/chelsio/cxgb4/sge.c
3990
if (work_done > max(timer_pkt_quota[timer_index],
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
10397
cmd.u.params.max = cpu_to_be32(maxrate);
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
5873
inc = max(((mtu - 40) * alpha[w]) / avg_pkts[w],
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
7257
fl_align = max(ingpadboundary, ingpackboundary);
drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h
3584
__be32 max;
drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c
736
fl_align = max(ingpadboundary, ingpackboundary);
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
350
unsigned int max = (PCPU_MIN_UNIT_SIZE - sizeof(*pools)) << 3;
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
357
if (ppmax > max)
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
358
ppmax = max;
drivers/net/ethernet/cisco/enic/enic.h
125
u16 max;
drivers/net/ethernet/cisco/enic/enic_clsf.c
80
enic->rfs_h.max = enic->config.num_arfs;
drivers/net/ethernet/cisco/enic/enic_clsf.c
81
enic->rfs_h.free = enic->rfs_h.max;
drivers/net/ethernet/cisco/enic/enic_ethtool.c
475
cmd->data = enic->rfs_h.max - enic->rfs_h.free;
drivers/net/ethernet/cisco/enic/enic_ethtool.c
592
cmd->rule_cnt = enic->rfs_h.max - enic->rfs_h.free;
drivers/net/ethernet/cisco/enic/enic_ethtool.c
593
cmd->data = enic->rfs_h.max;
drivers/net/ethernet/cisco/enic/enic_main.c
2299
rq_default = max(netif_get_num_default_rss_queues(),
drivers/net/ethernet/emulex/benet/be.h
736
return max(be_max_tx_irqs(adapter), be_max_rx_irqs(adapter));
drivers/net/ethernet/emulex/benet/be_cmds.c
3516
int payload_len = max(sizeof(*req), sizeof(*resp));
drivers/net/ethernet/emulex/benet/be_ethtool.c
358
aic->et_eqd = max(aic->et_eqd, aic->min_eqd);
drivers/net/ethernet/emulex/benet/be_main.c
2963
max(adapter->cfg_num_rx_irqs,
drivers/net/ethernet/emulex/benet/be_main.c
3317
max_work = max(work, max_work);
drivers/net/ethernet/emulex/benet/be_main.c
3446
num_vec = max(adapter->cfg_num_rx_irqs,
drivers/net/ethernet/engleder/tsnep_ethtool.c
100
max(adapter->num_tx_queues, adapter->num_rx_queues) - 1;
drivers/net/ethernet/engleder/tsnep_ethtool.c
417
if (queue >= max(adapter->num_tx_queues, adapter->num_rx_queues))
drivers/net/ethernet/engleder/tsnep_ethtool.c
440
if (queue >= max(adapter->num_tx_queues, adapter->num_rx_queues))
drivers/net/ethernet/engleder/tsnep_main.c
1323
sync = max(sync, length);
drivers/net/ethernet/engleder/tsnep_main.c
34
#define TSNEP_RX_OFFSET (max(NET_SKB_PAD, XDP_PACKET_HEADROOM) + NET_IP_ALIGN)
drivers/net/ethernet/engleder/tsnep_tc.c
125
cut = max(cut, tsnep_change_duration(gcl, i));
drivers/net/ethernet/engleder/tsnep_tc.c
130
gcl->change_limit = max(extend, cut);
drivers/net/ethernet/ethoc.c
95
#define PACKETLEN_MAX(max) (((max) & 0xffff) << 0)
drivers/net/ethernet/ethoc.c
96
#define PACKETLEN_MIN_MAX(min, max) (PACKETLEN_MIN(min) | \
drivers/net/ethernet/ethoc.c
97
PACKETLEN_MAX(max))
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
2023
work_done = max(rx_cleaned, 1);
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
2877
work_done = max(cleaned, 1);
drivers/net/ethernet/freescale/enetc/ntmp.c
239
.size = max(req_len, resp_len),
drivers/net/ethernet/freescale/fec_main.c
2092
sync = max(sync, pkt_len);
drivers/net/ethernet/freescale/fec_main.c
2518
max_done = max(rx_done, tx_done);
drivers/net/ethernet/freescale/fman/fman.c
1541
max(fman->state->extra_fifo_pool_size, extra_fifo);
drivers/net/ethernet/freescale/fman/fman.c
1574
max(fman->state->extra_tasks_pool_size, extra_tasks);
drivers/net/ethernet/freescale/fman/fman.c
1624
(u8)max(fman->state->extra_open_dmas_pool_size,
drivers/net/ethernet/freescale/fman/fman.c
1634
(u8)max(fman->state->extra_open_dmas_pool_size,
drivers/net/ethernet/freescale/ucc_geth.c
2051
u32 align = max(UCC_GETH_TX_BD_RING_ALIGNMENT,
drivers/net/ethernet/fungible/funcore/fun_queue.c
282
unsigned int __fun_process_cq(struct fun_queue *funq, unsigned int max)
drivers/net/ethernet/fungible/funcore/fun_queue.c
291
if (!max)
drivers/net/ethernet/fungible/funcore/fun_queue.c
292
max = funq->cq_depth - 1;
drivers/net/ethernet/fungible/funcore/fun_queue.c
294
for (new_cqes = 0; new_cqes < max; new_cqes++) {
drivers/net/ethernet/fungible/funcore/fun_queue.c
331
funq->cqid, new_cqes, max, funq->cq_head, funq->cq_phase);
drivers/net/ethernet/fungible/funcore/fun_queue.c
335
unsigned int fun_process_cq(struct fun_queue *funq, unsigned int max)
drivers/net/ethernet/fungible/funcore/fun_queue.c
340
processed = __fun_process_cq(funq, max);
drivers/net/ethernet/fungible/funcore/fun_queue.h
171
unsigned int __fun_process_cq(struct fun_queue *funq, unsigned int max);
drivers/net/ethernet/fungible/funcore/fun_queue.h
172
unsigned int fun_process_cq(struct fun_queue *funq, unsigned int max);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
4540
rx_budget = max(budget / tqp_vector->num_tqps, 1);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
988
return max(ntc, tx_spare->len - ntu) - 1;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
10719
max_frm_size = max(max_frm_size, HCLGE_MAC_DEFAULT_FRAME);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2089
static bool hclge_rx_buf_calc_all(struct hclge_dev *hdev, bool max,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2110
priv->wl.low = max ? aligned_mps : HCLGE_BUF_SIZE_UNIT;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2115
priv->wl.high = max ? (aligned_mps * HCLGE_BUF_MUL_BY) :
drivers/net/ethernet/huawei/hinic3/hinic3_queue_common.c
18
qpages->num_pages = max(q_depth / elem_per_page, 1);
drivers/net/ethernet/ibm/emac/core.c
3247
int j, max, i = 0;
drivers/net/ethernet/ibm/emac/core.c
3267
max = i;
drivers/net/ethernet/ibm/emac/core.c
3270
for (i = 0; max > 1 && (i < (max - 1)); i++)
drivers/net/ethernet/ibm/emac/core.c
3271
for (j = i; j < max; j++) {
drivers/net/ethernet/ibm/emac/core.h
68
int size = max(mtu + EMAC_MTU_OVERHEAD, emac_rx_size(mtu));
drivers/net/ethernet/intel/e100.c
1037
struct param_range rfds = { .min = 16, .max = 256, .count = 256 };
drivers/net/ethernet/intel/e100.c
1038
struct param_range cbs = { .min = 64, .max = 256, .count = 128 };
drivers/net/ethernet/intel/e100.c
2563
ring->rx_max_pending = rfds->max;
drivers/net/ethernet/intel/e100.c
2564
ring->tx_max_pending = cbs->max;
drivers/net/ethernet/intel/e100.c
2583
rfds->count = max(ring->rx_pending, rfds->min);
drivers/net/ethernet/intel/e100.c
2584
rfds->count = min(rfds->count, rfds->max);
drivers/net/ethernet/intel/e100.c
2585
cbs->count = max(ring->tx_pending, cbs->min);
drivers/net/ethernet/intel/e100.c
2586
cbs->count = min(cbs->count, cbs->max);
drivers/net/ethernet/intel/e100.c
2951
nic->params.cbs.max * sizeof(struct cb),
drivers/net/ethernet/intel/e100.c
527
u32 max;
drivers/net/ethernet/intel/e1000/e1000_ethtool.c
602
rxdr->count = max(ring->rx_pending, (u32)E1000_MIN_RXD);
drivers/net/ethernet/intel/e1000/e1000_ethtool.c
606
txdr->count = max(ring->tx_pending, (u32)E1000_MIN_TXD);
drivers/net/ethernet/intel/e1000/e1000_main.c
2655
current_itr = max(adapter->rx_itr, adapter->tx_itr);
drivers/net/ethernet/intel/e1000/e1000_param.c
172
int max;
drivers/net/ethernet/intel/e1000/e1000_param.c
202
if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) {
drivers/net/ethernet/intel/e1000/e1000_param.c
266
.max = mac_type < e1000_82544 ? E1000_MAX_TXD : E1000_MAX_82544_TXD
drivers/net/ethernet/intel/e1000/e1000_param.c
294
.max = mac_type < e1000_82544 ? E1000_MAX_RXD :
drivers/net/ethernet/intel/e1000/e1000_param.c
360
.max = MAX_TXDELAY }}
drivers/net/ethernet/intel/e1000/e1000_param.c
378
.max = MAX_TXABSDELAY }}
drivers/net/ethernet/intel/e1000/e1000_param.c
396
.max = MAX_RXDELAY }}
drivers/net/ethernet/intel/e1000/e1000_param.c
414
.max = MAX_RXABSDELAY }}
drivers/net/ethernet/intel/e1000/e1000_param.c
432
.max = MAX_ITR }}
drivers/net/ethernet/intel/e1000e/netdev.c
2565
current_itr = max(adapter->rx_itr, adapter->tx_itr);
drivers/net/ethernet/intel/e1000e/param.c
148
int max;
drivers/net/ethernet/intel/e1000e/param.c
184
if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) {
drivers/net/ethernet/intel/e1000e/param.c
245
.max = MAX_TXDELAY } }
drivers/net/ethernet/intel/e1000e/param.c
265
.max = MAX_TXABSDELAY } }
drivers/net/ethernet/intel/e1000e/param.c
285
.max = MAX_RXDELAY } }
drivers/net/ethernet/intel/e1000e/param.c
308
.max = MAX_RXABSDELAY } }
drivers/net/ethernet/intel/e1000e/param.c
331
.max = MAX_ITR } }
drivers/net/ethernet/intel/e1000e/param.c
408
.max = 0 } }
drivers/net/ethernet/intel/e1000e/param.c
417
opt.arg.r.max = E1000E_INT_MODE_MSIX;
drivers/net/ethernet/intel/e1000e/param.c
421
opt.arg.r.max = E1000E_INT_MODE_MSI;
drivers/net/ethernet/intel/fm10k/fm10k_main.c
1441
per_ring_budget = max(budget / q_vector->rx.count, 1);
drivers/net/ethernet/intel/fm10k/fm10k_main.c
1813
v_budget = max(interface->num_rx_queues, interface->num_tx_queues);
drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c
358
pd_idx1 = max(pd_idx, (j * I40E_HMC_MAX_BP_COUNT));
drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c
406
pd_idx1 = max(pd_idx,
drivers/net/ethernet/intel/i40e/i40e_main.c
6116
int max = 0;
drivers/net/ethernet/intel/i40e/i40e_main.c
6121
if (ch->num_queue_pairs > max)
drivers/net/ethernet/intel/i40e/i40e_main.c
6122
max = ch->num_queue_pairs;
drivers/net/ethernet/intel/i40e/i40e_main.c
6125
return max;
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1631
budget_per_ring = max(budget/q_vector->num_ringpairs, 1);
drivers/net/ethernet/intel/ice/devlink/devlink.c
1228
pf->msix.max = val.vu32;
drivers/net/ethernet/intel/ice/devlink/devlink.c
1789
value.vu32 = pf->msix.max;
drivers/net/ethernet/intel/ice/ice.h
551
u32 max;
drivers/net/ethernet/intel/ice/ice_base.c
456
max_fetch_desc = max(fetch, max_fetch_desc);
drivers/net/ethernet/intel/ice/ice_common.c
2340
static u32 ice_get_num_per_func(struct ice_hw *hw, u32 max)
drivers/net/ethernet/intel/ice/ice_common.c
2351
return max / funcs;
drivers/net/ethernet/intel/ice/ice_dpll.c
3799
range->max = phase_adj;
drivers/net/ethernet/intel/ice/ice_dpll.c
4020
phase_adj_max = max(d->input_phase_adj_max, d->output_phase_adj_max);
drivers/net/ethernet/intel/ice/ice_flex_pipe.c
193
static bool ice_bits_max_set(const u8 *mask, u16 size, u16 max)
drivers/net/ethernet/intel/ice/ice_flex_pipe.c
208
if (count == max)
drivers/net/ethernet/intel/ice/ice_flex_pipe.c
213
if (count > max)
drivers/net/ethernet/intel/ice/ice_irq.c
139
if (!pf->msix.max)
drivers/net/ethernet/intel/ice/ice_irq.c
140
pf->msix.max = min(total_vectors,
drivers/net/ethernet/intel/ice/ice_irq.c
144
pf->msix.rest = total_vectors - pf->msix.max;
drivers/net/ethernet/intel/ice/ice_irq.c
149
vectors = pf->msix.max;
drivers/net/ethernet/intel/ice/ice_irq.c
156
ice_init_irq_tracker(pf, pf->msix.max, vectors);
drivers/net/ethernet/intel/ice/ice_irq.c
158
return ice_init_virt_irq_tracker(pf, pf->msix.max, pf->msix.rest);
drivers/net/ethernet/intel/ice/ice_irq.c
77
struct xa_limit limit = { .max = pf->irq_tracker.num_entries - 1,
drivers/net/ethernet/intel/ice/ice_irq.c
90
limit.max = num_static;
drivers/net/ethernet/intel/ice/ice_lib.c
208
vsi->num_q_vectors = max(vsi->alloc_rxq, vsi->alloc_txq);
drivers/net/ethernet/intel/idpf/idpf_lib.c
1244
num_max_q = max(max_q->max_txq, max_q->max_rxq) + IDPF_RESERVED_VECS;
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
1126
budget_per_q = num_rxq ? max(budget / num_rxq, 1) : 0;
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
597
budget_per_q = num_txq ? max(budget / num_txq, 1) : 0;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
4293
budget_per_q = num_rxq ? max(budget / num_rxq, 1) : 0;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
3717
req = max(rsrc->num_txq - vport->num_xdp_txq, rsrc->num_rxq) +
drivers/net/ethernet/intel/igb/e1000_phy.c
1749
len_max = max(len_max, phy->pair_length[1]);
drivers/net/ethernet/intel/igb/e1000_phy.c
1759
len_max = max(len_max, phy->pair_length[2]);
drivers/net/ethernet/intel/igb/e1000_phy.c
1769
len_max = max(len_max, phy->pair_length[3]);
drivers/net/ethernet/intel/igb/igb_main.c
5966
current_itr = max(q_vector->rx.itr, q_vector->tx.itr);
drivers/net/ethernet/intel/igb/igb_main.c
5996
max((new_itr * q_vector->itr_val) /
drivers/net/ethernet/intel/igc/igc_main.c
4544
current_itr = max(q_vector->rx.itr, q_vector->tx.itr);
drivers/net/ethernet/intel/igc/igc_main.c
4574
max((new_itr * q_vector->itr_val) /
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
183
void ixgbe_dcb_unpack_max(struct ixgbe_dcb_config *cfg, u16 *max)
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
189
max[tc] = tc_config[tc].desc_credits_max;
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
22
__u16 *max, int max_frame)
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
258
u16 max[MAX_TRAFFIC_CLASS];
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
263
ixgbe_dcb_unpack_max(dcb_config, max);
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
270
return ixgbe_dcb_hw_config_82598(hw, pfc_en, refill, max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
277
return ixgbe_dcb_hw_config_82599(hw, pfc_en, refill, max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
305
__u16 refill[IEEE_8021QAZ_MAX_TCS], max[IEEE_8021QAZ_MAX_TCS];
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
331
ixgbe_ieee_credits(ets->tc_tx_bw, refill, max, max_frame);
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
332
return ixgbe_dcb_hw_ets_config(hw, refill, max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
337
u16 *refill, u16 *max, u8 *bwg_id,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
342
ixgbe_dcb_config_rx_arbiter_82598(hw, refill, max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
344
ixgbe_dcb_config_tx_desc_arbiter_82598(hw, refill, max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
346
ixgbe_dcb_config_tx_data_arbiter_82598(hw, refill, max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
354
ixgbe_dcb_config_rx_arbiter_82599(hw, refill, max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
356
ixgbe_dcb_config_tx_desc_arbiter_82599(hw, refill, max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
358
ixgbe_dcb_config_tx_data_arbiter_82599(hw, refill, max, bwg_id,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
46
max[i] = bw[i] ? (bw[i] * MAX_CREDIT)/100 : min_credit;
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.h
131
int ixgbe_dcb_hw_ets(struct ixgbe_hw *hw, struct ieee_ets *ets, int max);
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.h
132
int ixgbe_dcb_hw_ets_config(struct ixgbe_hw *hw, u16 *refill, u16 *max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c
123
u16 *max, u8 *bwg_id, u8 *prio_type)
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c
139
reg |= (u32)(max[i]) << IXGBE_TDPT2TCCR_MCL_SHIFT;
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c
19
u16 *max, u8 *prio_type)
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c
256
u16 *max, u8 *bwg_id, u8 *prio_type)
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c
258
ixgbe_dcb_config_rx_arbiter_82598(hw, refill, max, prio_type);
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c
259
ixgbe_dcb_config_tx_desc_arbiter_82598(hw, refill, max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c
261
ixgbe_dcb_config_tx_data_arbiter_82598(hw, refill, max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c
42
credit_max = max[i];
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c
77
u16 *max, u8 *bwg_id, u8 *prio_type)
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c
95
max_credits = max[i];
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.h
53
u16 *max, u8 *prio_type);
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.h
56
u16 *max, u8 *bwg_id, u8 *prio_type);
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.h
59
u16 *max, u8 *bwg_id, u8 *prio_type);
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.h
62
u16 *max, u8 *bwg_id, u8 *prio_type);
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c
133
u16 *max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c
159
reg |= (u32)(max[i]) << IXGBE_RTTPT2C_MCL_SHIFT;
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c
22
u16 *max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c
334
u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc)
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c
336
ixgbe_dcb_config_rx_arbiter_82599(hw, refill, max, bwg_id,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c
338
ixgbe_dcb_config_tx_desc_arbiter_82599(hw, refill, max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c
340
ixgbe_dcb_config_tx_data_arbiter_82599(hw, refill, max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c
48
credit_max = max[i];
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c
81
u16 *max,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c
96
max_credits = max[i];
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.h
77
u16 *max, u8 *bwg_id, u8 *prio_type,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.h
81
u16 *max, u8 *bwg_id, u8 *prio_type);
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.h
84
u16 *max, u8 *bwg_id, u8 *prio_type,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.h
88
u16 *max, u8 *bwg_id, u8 *prio_type,
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
314
u16 refill[MAX_TRAFFIC_CLASS], max[MAX_TRAFFIC_CLASS];
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
322
max_frame = max(max_frame, IXGBE_FCOE_JUMBO_FRAME_SIZE);
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
331
ixgbe_dcb_unpack_max(dcb_cfg, max);
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
336
ixgbe_dcb_hw_ets_config(hw, refill, max, bwg_id,
drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c
779
static u32 ixgbe_get_num_per_func(struct ixgbe_hw *hw, u32 max)
drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c
785
return funcs ? (max / funcs) : 0;
drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c
745
vectors = max(adapter->num_rx_queues, adapter->num_tx_queues);
drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c
746
vectors = max(vectors, adapter->num_xdp_queues);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
3607
per_ring_budget = max(budget/q_vector->rx.count, 1);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
5508
max_frame = max(max_frame, IXGBE_FCOE_JUMBO_FRAME_SIZE);
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
1292
per_ring_budget = max(budget/q_vector->rx.count, 1);
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
1474
current_itr = max(q_vector->rx.itr, q_vector->tx.itr);
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
2715
v_budget = max(adapter->num_rx_queues, adapter->num_tx_queues);
drivers/net/ethernet/intel/libeth/rx.c
119
u32 mtu, max;
drivers/net/ethernet/intel/libeth/rx.c
136
max = min(rounddown_pow_of_two(fq->buf_len ? : U32_MAX),
drivers/net/ethernet/intel/libeth/rx.c
139
fq->buf_len = clamp(mtu, LIBETH_RX_BUF_STRIDE, max);
drivers/net/ethernet/jme.c
1417
int i, j, cnt = 0, max, err, mask;
drivers/net/ethernet/jme.c
1430
max = jme->tx_ring_size - atomic_read(&txring->nr_free);
drivers/net/ethernet/jme.c
1433
for (i = atomic_read(&txring->next_to_clean) ; cnt < max ; ) {
drivers/net/ethernet/marvell/mvmdio.c
110
timeout = max(usecs_to_jiffies(MVMDIO_SMI_TIMEOUT), 2);
drivers/net/ethernet/marvell/mvneta.c
2270
sync = max(sync, len);
drivers/net/ethernet/marvell/mvneta.c
375
#define MVNETA_SKB_HEADROOM ALIGN(max(NET_SKB_PAD, XDP_PACKET_HEADROOM), 8)
drivers/net/ethernet/marvell/mvneta.c
5685
pp->rx_offset_correction = max(0,
drivers/net/ethernet/marvell/mvpp2/mvpp2.h
26
#define MVPP2_SKB_HEADROOM min(max(XDP_PACKET_HEADROOM, NET_SKB_PAD), 224)
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
2555
req = max(MVPP2_CPU_DESC_CHUNK, num - txq_pcpu->reserved_num);
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
3823
sync = max(sync, len);
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
7294
size = max(size_remainder / remaining_ports_count,
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
7297
size = max(size_remainder / remaining_ports_count,
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
1745
lmac->mac_to_index_bmap.max =
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
1749
max_dmac_filters = lmac->mac_to_index_bmap.max;
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
1758
lmac->rx_fc_pfvf_bmap.max = 128;
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
1763
lmac->tx_fc_pfvf_bmap.max = 128;
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
282
index = id * lmac->mac_to_index_bmap.max;
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
343
index = id * lmac->mac_to_index_bmap.max + idx;
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
385
index = id * lmac->mac_to_index_bmap.max + index;
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
415
if (index >= lmac->mac_to_index_bmap.max)
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
424
index = id * lmac->mac_to_index_bmap.max + index;
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
448
if (index >= lmac->mac_to_index_bmap.max)
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
459
index = id * lmac->mac_to_index_bmap.max + index;
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
486
return lmac->mac_to_index_bmap.max;
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
504
index = id * lmac->mac_to_index_bmap.max;
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
599
max_dmac = lmac->mac_to_index_bmap.max;
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
675
if (!bitmap_weight(lmac->rx_fc_pfvf_bmap.bmap, lmac->rx_fc_pfvf_bmap.max))
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
973
if (!rx_pause && bitmap_weight(lmac->rx_fc_pfvf_bmap.bmap, lmac->rx_fc_pfvf_bmap.max)) {
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
979
if (!tx_pause && bitmap_weight(lmac->tx_fc_pfvf_bmap.bmap, lmac->tx_fc_pfvf_bmap.max)) {
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
1109
res->flow_ids.max = hw->tcam_entries - MCS_RSRC_RSVD_CNT;
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
1114
res->secy.max = hw->secy_entries - MCS_RSRC_RSVD_CNT;
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
1119
res->sc.max = hw->sc_entries;
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
1124
res->sa.max = hw->sa_entries;
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
1129
res->ctrlpktrule.max = MCS_MAX_CTRLPKT_RULES;
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
303
for (id = 0; id < map->flow_ids.max; id++) {
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
310
for (id = 0; id < map->secy.max; id++) {
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
317
for (id = 0; id < map->secy.max; id++) {
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
324
for (id = 0; id < map->sa.max; id++) {
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
558
for (flow_id = 0; flow_id < map->flow_ids.max; flow_id++) {
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
572
rsrc_id = bitmap_find_next_zero_area(rsrc->bmap, rsrc->max, offset, 1, 0);
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
573
if (rsrc_id >= rsrc->max)
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
593
for (id = 0; id < map->ctrlpktrule.max; id++) {
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
723
for (id = 0; id < map->flow_ids.max; id++) {
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
732
for (id = 0; id < map->secy.max; id++) {
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
741
for (id = 0; id < map->secy.max; id++) {
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
752
for (id = 0; id < map->sa.max; id++) {
drivers/net/ethernet/marvell/octeontx2/af/rpm.c
181
if (!bitmap_weight(lmac->rx_fc_pfvf_bmap.bmap, lmac->rx_fc_pfvf_bmap.max))
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1012
block->lf.max = (cfg >> 56) & 0xFF;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1038
block->lf.max = cfg & 0xFFFF;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1106
block->fn_map = devm_kcalloc(rvu->dev, block->lf.max,
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
135
id = find_first_zero_bit(rsrc->bmap, rsrc->max);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
136
if (id >= rsrc->max)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
151
start = bitmap_find_next_zero_area(rsrc->bmap, rsrc->max, 0, nrsrc, 0);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
152
if (start >= rsrc->max)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
163
if (start >= rsrc->max)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1635
if (req->sso > block->lf.max) {
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1638
pcifunc, req->sso, block->lf.max);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1651
if (req->ssow > block->lf.max) {
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1654
pcifunc, req->ssow, block->lf.max);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1666
if (req->timlfs > block->lf.max) {
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1669
pcifunc, req->timlfs, block->lf.max);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1685
if (req->cptlfs > block->lf.max) {
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1688
pcifunc, req->cptlfs, block->lf.max);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
176
start = bitmap_find_next_zero_area(rsrc->bmap, rsrc->max, 0, nrsrc, 0);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
177
if (start >= rsrc->max)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1833
for (vec = 0; vec < pfvf->msix.max; vec++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
198
used = bitmap_weight(rsrc->bmap, rsrc->max);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
199
return (rsrc->max - used);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
212
rsrc->bmap = kcalloc(BITS_TO_LONGS(rsrc->max),
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
231
for (lf = 0; lf < block->lf.max; lf++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
3054
return (pfvf->msix.max >= RVU_AF_CN20K_INT_VEC_CNT +
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
3057
return (pfvf->msix.max >= RVU_AF_INT_VEC_CNT + RVU_PF_INT_VEC_CNT) &&
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
349
if (lf >= block->lf.max) {
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
352
__func__, lf, block->name, block->lf.max);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
3577
(rvu->hw->block[BLKADDR_NIX0].lf.max));
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
554
for (lf = 0; lf < block->lf.max; lf++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
620
pfvf->msix.max = ((cfg >> 32) & 0xFFF) + 1;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
621
rvu_check_min_msix_vec(rvu, pfvf->msix.max, pf, 0);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
629
pfvf->msix_lfmap = devm_kcalloc(rvu->dev, pfvf->msix.max,
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
657
pfvf->msix.max = (cfg & 0xFFF) + 1;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
658
rvu_check_min_msix_vec(rvu, pfvf->msix.max, pf, vf + 1);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
666
devm_kcalloc(rvu->dev, pfvf->msix.max,
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
857
block->lf.max = cfg & 0xFFF;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
886
block->lf.max = cfg & 0xFF;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
948
block->lf.max = (cfg >> 16) & 0xFFF;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
987
block->lf.max = cfg & 0xFFFF;
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
125
u16 max; /* Max resource id or count */
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
161
int max;
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
1110
for (lf = 0; lf < block->lf.max; lf++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
1981
for (schq = 0; schq < txsch->schq.max; schq++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2705
for (idx = 0; idx < ipolicer->band_prof.max; idx++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2757
ipolicer->band_prof.max,
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3234
counters - mcam->counters.max);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3879
for (lf = 0; lf < block->lf.max; lf++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
649
int lf = 0, seq = 0, len = 0, prev_lf = block->lf.max;
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
651
for_each_set_bit(lf, block->lf.bmap, block->lf.max) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
652
if (lf >= block->lf.max)
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
946
if (lf < 0 || lf >= block->lf.max) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
948
block->lf.max - 1);
drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c
1209
if (rvu_rsrc_free_count(&txsch->schq) != txsch->schq.max) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c
1433
block->lf.max = ctx->val.vu16;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
121
int blkaddr = 0, max = 0;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
127
max += block->lf.max;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
130
return max;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
169
static void nix_mce_list_init(struct nix_mce_list *list, int max)
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
173
list->max = max;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2123
if (end <= txsch->schq.max && schq < end &&
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2201
txsch->schq.max, start,
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2281
end = txsch->schq.max;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2385
for (tl2 = 0; tl2 < txsch->schq.max; tl2++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2556
for (schq = 0; schq < txsch->schq.max; schq++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2582
for (schq = 0; schq < txsch->schq.max; schq++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2597
for (schq = 0; schq < txsch->schq.max; schq++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2641
if (lvl >= hw->cap.nix_tx_aggr_lvl || schq >= txsch->schq.max)
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2841
for (schq = 0; schq < txsch->schq.max; schq++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3026
for (index = 0; index < vlan->rsrc.max; index++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
307
if (schq >= txsch->schq.max)
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3220
mce_list->max = 0;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3354
mce_list->max = mce_list->count;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3389
mce_list->max += num_entry;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3466
if (idx > (mce_idx + mce_list->max)) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3469
__func__, idx, mce_list->max,
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3676
mcast->mce_counter[NIX_MCAST_INGRESS].max = 256UL << MC_TBL_SIZE;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3682
mcast->mce_counter[NIX_MCAST_EGRESS].max = MC_TX_MAX;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3691
mcast->mce_counter[NIX_MCAST_INGRESS].max, size);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3738
vlan->rsrc.max = NIX_TX_VTAG_DEF_MAX;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3744
vlan->entry2pfvf_map = devm_kcalloc(rvu->dev, vlan->rsrc.max,
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3787
txsch->schq.max = cfg & 0xFFFF;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3795
txsch->pfvf_map = devm_kcalloc(rvu->dev, txsch->schq.max,
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3799
for (schq = 0; schq < txsch->schq.max; schq++)
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
4286
max_key_off = max(max_key_off, field->bytesm1 + 1);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
521
bp->bpids.max = max_bpids - bp->free_pool_base;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
527
bp->fn_map = devm_kcalloc(rvu->dev, bp->bpids.max,
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
532
bp->intf_map = devm_kcalloc(rvu->dev, bp->bpids.max,
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
537
bp->ref_cnt = devm_kcalloc(rvu->dev, bp->bpids.max,
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
561
for (bpid = 0; bpid < bp->bpids.max; bpid++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5742
ipolicer->band_prof.max = cfg & 0XFFFF;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5745
ipolicer->band_prof.max = (cfg >> 16) & 0XFFFF;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5748
ipolicer->band_prof.max = (cfg >> 32) & 0XFFFF;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5752
if (!ipolicer->band_prof.max)
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5760
ipolicer->band_prof.max,
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5766
ipolicer->band_prof.max,
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5772
prof_idx < ipolicer->band_prof.max; prof_idx++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5795
ipolicer->band_prof.max,
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5820
if (!ipolicer->band_prof.max)
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5840
if (prof_idx >= ipolicer->band_prof.max)
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5869
if (prof_idx >= ipolicer->band_prof.max ||
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5937
for (prof_idx = 0; prof_idx < ipolicer->band_prof.max; prof_idx++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5987
if (prof_idx >= ipolicer->band_prof.max ||
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
6085
for (idx = 0; idx < ipolicer->band_prof.max; idx++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
6095
if (idx == ipolicer->band_prof.max)
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
622
for (bpid = 0; bpid < bp->bpids.max; bpid++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
127
int blkaddr = 0, max = 0;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
140
max += block->lf.max;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
144
return mcam->nixlf_offset + (max + nixlf) * RSVD_MCAM_ENTRIES_PER_NIXLF;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
1916
mcam->cntr2pfvf_map = kcalloc(mcam->counters.max, sizeof(u16),
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
1929
mcam->cntr_refcnt = kcalloc(mcam->counters.max, sizeof(u16),
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
1945
for (cntr = 0; cntr < mcam->counters.max; cntr++)
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
1983
pkind->rsrc.max = NPC_UNRESERVED_PKIND_COUNT;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2012
mcam->counters.max = hw->npc_counters;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2027
mcam->counters.max--;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2028
mcam->rx_miss_act_cntr = mcam->counters.max;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2115
pkind->pfchan_map = devm_kcalloc(rvu->dev, pkind->rsrc.max,
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2211
for (cntr = 0; cntr < mcam->counters.max; cntr++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2244
if (cntr >= mcam->counters.max)
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2347
for (cntr = 0; cntr < mcam->counters.max; cntr++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3048
mcam->counters.max, 0,
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
84
for (i = 0; i < pkind->rsrc.max; i++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
391
u32 max = rswitch->used_entries;
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
405
for (entry = 0; entry < max; entry++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_switch.c
275
u32 max = rswitch->used_entries;
drivers/net/ethernet/marvell/octeontx2/af/rvu_switch.c
284
for (entry = 0; entry < max; entry++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_switch.c
289
if (entry >= max)
drivers/net/ethernet/marvell/prestera/prestera_acl.c
170
ruleset->prio.max = 0;
drivers/net/ethernet/marvell/prestera/prestera_acl.c
386
ruleset->prio.max = 0;
drivers/net/ethernet/marvell/prestera/prestera_acl.c
395
ruleset->prio.max = max(ruleset->prio.max, rule->priority);
drivers/net/ethernet/marvell/prestera/prestera_acl.c
427
*prio_max = ruleset->prio.max;
drivers/net/ethernet/marvell/prestera/prestera_acl.c
474
ruleset->prio.max = max(ruleset->prio.max, prio);
drivers/net/ethernet/marvell/prestera/prestera_acl.c
59
u32 max;
drivers/net/ethernet/marvell/prestera/prestera_matchall.c
59
block->mall.prio_max = max(block->mall.prio_max, f->common.prio);
drivers/net/ethernet/marvell/sky2.c
4145
return max(128ul, roundup_pow_of_two(pending+1));
drivers/net/ethernet/mellanox/mlx4/alloc.c
120
bitmap->max, cnt, align, skip_mask);
drivers/net/ethernet/mellanox/mlx4/alloc.c
121
if (obj >= bitmap->max) {
drivers/net/ethernet/mellanox/mlx4/alloc.c
122
bitmap->top = (bitmap->top + bitmap->max + bitmap->reserved_top)
drivers/net/ethernet/mellanox/mlx4/alloc.c
124
obj = find_aligned_range(bitmap->table, 0, bitmap->max,
drivers/net/ethernet/mellanox/mlx4/alloc.c
128
if (obj < bitmap->max) {
drivers/net/ethernet/mellanox/mlx4/alloc.c
132
if (bitmap->last >= bitmap->max)
drivers/net/ethernet/mellanox/mlx4/alloc.c
154
return obj & (bitmap->max + bitmap->reserved_top - 1);
drivers/net/ethernet/mellanox/mlx4/alloc.c
160
obj &= bitmap->max + bitmap->reserved_top - 1;
drivers/net/ethernet/mellanox/mlx4/alloc.c
165
bitmap->top = (bitmap->top + bitmap->max + bitmap->reserved_top)
drivers/net/ethernet/mellanox/mlx4/alloc.c
182
bitmap->max = num - reserved_top;
drivers/net/ethernet/mellanox/mlx4/alloc.c
188
bitmap->table = bitmap_zalloc(bitmap->max, GFP_KERNEL);
drivers/net/ethernet/mellanox/mlx4/alloc.c
494
if (mobj < zone->bitmap->max) {
drivers/net/ethernet/mellanox/mlx4/alloc.c
50
obj = find_next_zero_bit(bitmap->table, bitmap->max, bitmap->last);
drivers/net/ethernet/mellanox/mlx4/alloc.c
51
if (obj >= bitmap->max) {
drivers/net/ethernet/mellanox/mlx4/alloc.c
52
bitmap->top = (bitmap->top + bitmap->max + bitmap->reserved_top)
drivers/net/ethernet/mellanox/mlx4/alloc.c
54
obj = find_first_zero_bit(bitmap->table, bitmap->max);
drivers/net/ethernet/mellanox/mlx4/alloc.c
57
if (obj < bitmap->max) {
drivers/net/ethernet/mellanox/mlx4/alloc.c
60
if (bitmap->last == bitmap->max)
drivers/net/ethernet/mellanox/mlx4/eq.c
984
eq->nent = roundup_pow_of_two(max(nent, 2));
drivers/net/ethernet/mellanox/mlx4/fw.c
1120
dev_cap->reserved_eqs = max(dev_cap->reserved_uars * 4,
drivers/net/ethernet/mellanox/mlx4/mlx4.h
244
u32 max;
drivers/net/ethernet/mellanox/mlx4/mlx4.h
753
int max;
drivers/net/ethernet/mellanox/mlx4/mlx4.h
776
int max;
drivers/net/ethernet/mellanox/mlx4/port.c
105
if (index < 0 || index >= table->max || !table->entries[index]) {
drivers/net/ethernet/mellanox/mlx4/port.c
272
if (table->total == table->max) {
drivers/net/ethernet/mellanox/mlx4/port.c
586
if (table->total == table->max) {
drivers/net/ethernet/mellanox/mlx4/port.c
72
table->max = 1 << dev->caps.log_num_macs;
drivers/net/ethernet/mellanox/mlx4/port.c
86
table->max = (1 << dev->caps.log_num_vlans) - MLX4_VLAN_REGULAR;
drivers/net/ethernet/mellanox/mlx4/profile.c
141
profile[i].size = max(profile[i].size, (u64) PAGE_SIZE);
drivers/net/ethernet/mellanox/mlx4/srq.c
188
srq_context->state_logsize_srqn = cpu_to_be32((ilog2(srq->max) << 24) |
drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
276
dst->range.min, dst->range.max);
drivers/net/ethernet/mellanox/mlx5/core/en/params.c
1134
max_xsk_wqebbs = max(max_xsk_wqebbs,
drivers/net/ethernet/mellanox/mlx5/core/en/params.c
1139
max_xsk_wqebbs = max(max_xsk_wqebbs,
drivers/net/ethernet/mellanox/mlx5/core/en/params.c
1144
max_xsk_wqebbs = max(max_xsk_wqebbs,
drivers/net/ethernet/mellanox/mlx5/core/en/params.c
1149
max_xsk_wqebbs = max(max_xsk_wqebbs,
drivers/net/ethernet/mellanox/mlx5/core/en/params.c
33
return max(req_page_shift, min_page_shift);
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c
25
#define MLX5E_MIN_XSK_CHUNK_SIZE max(2048, XDP_UMEM_MIN_CHUNK_SIZE)
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
67
max(0x7, MLX5E_PARAMS_MINIMUM_LOG_SQ_SIZE)
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c
63
return max(skb_network_offset(skb), MLX5E_MIN_INLINE);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
207
dest[i].range.max = meter->params.mtu;
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
1893
d1->range.max == d2->range.max))
drivers/net/ethernet/mellanox/mlx5/core/irq_affinity.c
100
int end = pool->xa_num_irqs.max;
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
213
s64 max = mlx5_clock_getmaxphase(mdev);
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
215
if (delta < -max || delta > max)
drivers/net/ethernet/mellanox/mlx5/core/lib/nv_param.c
736
u16 max;
drivers/net/ethernet/mellanox/mlx5/core/lib/nv_param.c
748
max = MLX5_GET(nv_global_pci_cap, data, max_vfs_per_pf);
drivers/net/ethernet/mellanox/mlx5/core/lib/nv_param.c
749
if (val.vu16 > max) {
drivers/net/ethernet/mellanox/mlx5/core/lib/nv_param.c
751
"Max allowed by device is %u", max);
drivers/net/ethernet/mellanox/mlx5/core/lib/st.c
74
st->index_limit.max = num_entries - 1;
drivers/net/ethernet/mellanox/mlx5/core/main.c
394
memcpy(dev->caps.hca[cap_type]->max, hca_caps,
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c
82
if (func_id <= max(mlx5_core_max_vfs(dev), mlx5_core_max_ec_vfs(dev))) {
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
240
if (!pool->xa_num_irqs.max) {
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
484
if (!pool->xa_num_irqs.max) {
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
563
if (!pool->xa_num_irqs.max)
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
589
pool->xa_num_irqs.max = start + size - 1;
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
742
if (!table->pcif_pool->xa_num_irqs.max)
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
744
return table->pcif_pool->xa_num_irqs.max - table->pcif_pool->xa_num_irqs.min;
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
77
return max(min(num_vf_msix / num_vfs, max_msix / 2), min_msix);
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
820
table->sf_comp_pool->xa_num_irqs.max -
drivers/net/ethernet/mellanox/mlx5/core/port.c
1224
oper_speed = max(oper_speed, table[i].speed);
drivers/net/ethernet/mellanox/mlx5/core/port.c
1248
max_speed = max(max_speed, table[i].speed);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
1227
max_mh_actions = max(max_mh_actions, new_num_actions);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
1697
struct mlx5hws_definer *range_definer, u32 min, u32 max)
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
1763
wqe_data_arr[MLX5HWS_MATCHER_OFFSET_TAG_DW1] = htonl(max << 16);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
1790
u32 min, u32 max, u32 flags)
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
1802
min > 0xffff || max > 0xffff) {
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
1825
definer, min, max);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
2601
last_setter = max(setter, last_setter);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
926
max_sz = max(hdrs[i].sz, max_sz);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/context.c
38
pool_attr.alloc_log_sz = max(max_log_sz, ctx->caps->stc_alloc_log_gran);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c
468
dest_attr->range.max,
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/matcher.c
650
max_stes = max(max_stes, required_stes);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h
595
u32 min, u32 max, u32 flags);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
1113
u32 max)
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
1124
min > 0xffff || max > 0xffff) {
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
1150
action->range->max = max;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action.c
815
attr.range.max = action->range->max;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v1.c
445
u32 min, u32 max)
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v1.c
462
MLX5_SET(ste_match_ranges_v1, hw_ste_p, max_value_0, max << 16);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v1.c
634
attr->range.max);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v1.c
845
attr->range.max);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_types.h
1085
u32 max;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_types.h
303
u32 max;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/fs_dr.c
225
dst->dest_attr.range.max);
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/mlx5dr.h
148
u32 max);
drivers/net/ethernet/mellanox/mlxsw/reg.h
2452
mlxsw_reg_cwtp_profile_pack(char *payload, u8 profile, u32 min, u32 max,
drivers/net/ethernet/mellanox/mlxsw/reg.h
2458
mlxsw_reg_cwtp_profile_max_set(payload, index, max);
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
3663
u64 max;
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
3668
max = MLXSW_CORE_RES_GET(mlxsw_core, ACL_MAX_L4_PORT_RANGE);
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
3669
devlink_resource_size_params_init(&size_params, max, max, 1,
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
3672
return devl_resource_register(devlink, "port_range_registers", max,
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
1486
u16 max;
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
1586
&cm->occ.cur, &cm->occ.max);
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
1600
&cm->occ.cur, &cm->occ.max);
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
1773
*p_max = mlxsw_sp_cells_bytes(mlxsw_sp, pm->occ.max);
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
1792
*p_max = mlxsw_sp_cells_bytes(mlxsw_sp, cm->occ.max);
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
25
u32 max;
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
294
mlxsw_reg_sbpm_unpack(sbpm_pl, &pm->occ.cur, &pm->occ.max);
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
445
buf->size_cells = max(buf->set_size_cells, buf->thres_cells);
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c
463
.max = ntohs(match.key->tp_max.src),
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c
482
.max = ntohs(match.key->tp_max.dst),
drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c
1103
unsigned int max;
drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c
1108
max = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_NVE_MC_ENTRIES_IPV4);
drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c
1109
mlxsw_sp->nve->num_max_mc_entries[MLXSW_SP_L3_PROTO_IPV4] = max;
drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c
1110
max = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_NVE_MC_ENTRIES_IPV6);
drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c
1111
mlxsw_sp->nve->num_max_mc_entries[MLXSW_SP_L3_PROTO_IPV6] = max;
drivers/net/ethernet/mellanox/mlxsw/spectrum_port_range.c
107
prr->range.max == range->max &&
drivers/net/ethernet/mellanox/mlxsw/spectrum_port_range.c
164
u64 max;
drivers/net/ethernet/mellanox/mlxsw/spectrum_port_range.c
168
max = MLXSW_CORE_RES_GET(core, ACL_MAX_L4_PORT_RANGE);
drivers/net/ethernet/mellanox/mlxsw/spectrum_port_range.c
173
WARN_ON(max > BITS_PER_BYTE * sizeof(u16));
drivers/net/ethernet/mellanox/mlxsw/spectrum_port_range.c
180
pr_core->prr_ids.max = max - 1;
drivers/net/ethernet/mellanox/mlxsw/spectrum_port_range.c
41
mlxsw_reg_pprr_port_range_max_set(pprr_pl, prr->range.max);
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c
600
int tclass_num, u32 min, u32 max,
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c
611
roundup(max, MLXSW_REG_CWTP_MIN_VALUE),
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c
684
if (p->min > p->max) {
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c
687
p->max);
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c
690
if (p->max > MLXSW_CORE_RES_GET(mlxsw_sp->core,
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c
693
"spectrum: RED: max value %u is too big\n", p->max);
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c
696
if (p->min == 0 || p->max == 0) {
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c
720
u32 min, max;
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c
739
max = mlxsw_sp_bytes_cells(mlxsw_sp, p->max);
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c
741
min, max, prob,
drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c
205
for (i = 0; i < max(clone->num_napi, orig->num_napi); i++)
drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c
333
if (ring->rx_pending < max(FBNIC_QUEUE_SIZE_MIN, FBNIC_RX_DESC_MIN) ||
drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c
336
ring->tx_pending < max(FBNIC_QUEUE_SIZE_MIN, FBNIC_TX_DESC_MIN)) {
drivers/net/ethernet/meta/fbnic/fbnic_netdev.c
706
fbn->num_napi = max(tx, rx);
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
2689
hds_thresh = max(fbn->hds_thresh, FBNIC_HDR_BYTES_MIN);
drivers/net/ethernet/micrel/ksz884x.c
1293
int max;
drivers/net/ethernet/micrel/ksz884x.c
3942
info->max = -1;
drivers/net/ethernet/micrel/ksz884x.c
3953
if (info->max) {
drivers/net/ethernet/micrel/ksz884x.c
3954
info->max = 0;
drivers/net/ethernet/micrel/ksz884x.c
3962
info->max = 0;
drivers/net/ethernet/micrel/ksz884x.c
3970
if (info->max > 0) {
drivers/net/ethernet/micrel/ksz884x.c
3971
if (info->cnt < info->max) {
drivers/net/ethernet/micrel/ksz884x.c
3975
info->max = 0;
drivers/net/ethernet/micrel/ksz884x.c
3976
} else if (info->max < 0) {
drivers/net/ethernet/microchip/lan743x_main.c
2003
start_frame_length = max(skb_shinfo(skb)->gso_size,
drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c
282
keysetlist.max = ARRAY_SIZE(keysets);
drivers/net/ethernet/microchip/sparx5/sparx5_mactable.c
482
int value = max(1, msecs / 10); /* unit 10 ms */
drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c
1497
kslist.max = ARRAY_SIZE(keysets);
drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c
415
matches.max = ARRAY_SIZE(keysets);
drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c
420
portkeysetlist.max = ARRAY_SIZE(portkeysets);
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c
758
keysetlist.max = ARRAY_SIZE(keysets);
drivers/net/ethernet/microchip/vcap/vcap_api.c
1495
matches.max = ARRAY_SIZE(keysets);
drivers/net/ethernet/microchip/vcap/vcap_api.c
1782
if (keysetlist->cnt < keysetlist->max) {
drivers/net/ethernet/microchip/vcap/vcap_api.c
1786
return keysetlist->cnt < keysetlist->max;
drivers/net/ethernet/microchip/vcap/vcap_api.c
1789
return keysetlist->cnt < keysetlist->max;
drivers/net/ethernet/microchip/vcap/vcap_api.c
1799
if (actionsetlist->cnt < actionsetlist->max) {
drivers/net/ethernet/microchip/vcap/vcap_api.c
1803
return actionsetlist->cnt < actionsetlist->max;
drivers/net/ethernet/microchip/vcap/vcap_api.c
1806
return actionsetlist->cnt < actionsetlist->max;
drivers/net/ethernet/microchip/vcap/vcap_api.c
2007
matches.max = ARRAY_SIZE(keysets);
drivers/net/ethernet/microchip/vcap/vcap_api.c
2041
matches.max = ARRAY_SIZE(actionsets);
drivers/net/ethernet/microchip/vcap/vcap_api.c
2061
ri->size = max(ri->keyset_sw, ri->actionset_sw);
drivers/net/ethernet/microchip/vcap/vcap_api.c
3550
int max = 100, idx;
drivers/net/ethernet/microchip/vcap/vcap_api.c
3556
if (kset->sw_per_item >= max)
drivers/net/ethernet/microchip/vcap/vcap_api.c
3558
max = kset->sw_per_item;
drivers/net/ethernet/microchip/vcap/vcap_api.h
200
int max; /* size of the keyset list */
drivers/net/ethernet/microchip/vcap/vcap_api.h
207
int max; /* size of the actionset list */
drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.c
168
matches.max = ARRAY_SIZE(keysets);
drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.c
338
kslist.max = ARRAY_SIZE(keysets);
drivers/net/ethernet/microchip/vcap/vcap_api_debugfs_kunit.c
322
matches.max = ARRAY_SIZE(keysets);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
1221
matches.max = ARRAY_SIZE(keysets);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
1268
matches.max = ARRAY_SIZE(keysets);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
1315
matches.max = ARRAY_SIZE(keysets);
drivers/net/ethernet/mscc/ocelot_flower.c
367
pol_max = ocelot->vcap_pol.max;
drivers/net/ethernet/mscc/ocelot_vsc7514.c
350
ocelot->vcap_pol.max = VSC7514_VCAP_POLICER_MAX;
drivers/net/ethernet/netronome/nfp/abm/qdisc.c
559
if (band->min != band->max) {
drivers/net/ethernet/netronome/nfp/abm/qdisc.c
682
if (opt->set.min != opt->set.max) {
drivers/net/ethernet/netronome/nfp/bpf/cmsg.c
421
return max(nfp_bpf_cmsg_map_req_size(bpf, 1),
drivers/net/ethernet/netronome/nfp/bpf/jit.c
877
sz = max(size, 4);
drivers/net/ethernet/netronome/nfp/bpf/jit.c
908
sz = max(size, 4);
drivers/net/ethernet/netronome/nfp/bpf/verifier.c
565
meta->umax_src = max(meta->umax_src, sreg->umax_value);
drivers/net/ethernet/netronome/nfp/bpf/verifier.c
567
meta->umax_dst = max(meta->umax_dst, dreg->umax_value);
drivers/net/ethernet/netronome/nfp/bpf/verifier.c
717
max_depth = max(max_depth, depth);
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
503
max_len = max(max_reply_size, round_up(skb->len, 4));
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
699
max_size = max(req_size, reply_size);
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
1634
dp->num_r_vecs = max(dp->num_rx_rings, dp->num_stack_tx_rings);
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
2535
nn->dp.num_r_vecs = max(nn->dp.num_tx_rings, nn->dp.num_rx_rings);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c
682
max_size = max(arg->in_size, arg->out_size);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c
204
table->max_index = max(table->max_index, table->ports[i].index);
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c
142
int max;
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c
236
if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) {
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c
446
.max = PCH_GBE_MAX_TXD } }
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c
462
.max = PCH_GBE_MAX_RXD } }
drivers/net/ethernet/pensando/ionic/ionic_lif.c
1246
work_done = max(max(n_work, a_work), max(rx_work, tx_work));
drivers/net/ethernet/pensando/ionic/ionic_phc.c
617
mult = U64_MAX / 2 / max(diff / 2, SCALED_PPM);
drivers/net/ethernet/qlogic/netxen/netxen_nic.h
1766
int netxen_process_rcv_ring(struct nx_host_sds_ring *sds_ring, int max);
drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c
418
netxen_validate_ringparam(u32 val, u32 min, u32 max, char *r_name)
drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c
421
num_desc = max(val, min);
drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c
422
num_desc = min(num_desc, max);
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
1643
netxen_process_rcv_ring(struct nx_host_sds_ring *sds_ring, int max)
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
1658
while (count < max) {
drivers/net/ethernet/qlogic/qed/qed_dbg_hsi.h
507
u8 max; /* Maximal event ID to filter on */
drivers/net/ethernet/qlogic/qed/qed_debug.c
328
u32 max;
drivers/net/ethernet/qlogic/qed/qed_debug.c
5277
val > s_grc_param_defs[grc_param].max)
drivers/net/ethernet/qlogic/qed/qed_dev.c
4814
u16 min, max;
drivers/net/ethernet/qlogic/qed/qed_dev.c
4817
max = min + RESC_NUM(p_hwfn, QED_L2_QUEUE);
drivers/net/ethernet/qlogic/qed/qed_dev.c
4820
src_id, min, max);
drivers/net/ethernet/qlogic/qed/qed_dev.c
4833
u8 min, max;
drivers/net/ethernet/qlogic/qed/qed_dev.c
4836
max = min + RESC_NUM(p_hwfn, QED_VPORT);
drivers/net/ethernet/qlogic/qed/qed_dev.c
4839
src_id, min, max);
drivers/net/ethernet/qlogic/qed/qed_dev.c
4852
u8 min, max;
drivers/net/ethernet/qlogic/qed/qed_dev.c
4855
max = min + RESC_NUM(p_hwfn, QED_RSS_ENG);
drivers/net/ethernet/qlogic/qed/qed_dev.c
4858
src_id, min, max);
drivers/net/ethernet/qlogic/qede/qede.h
219
#define QEDE_RX_ALIGN_SHIFT max(6, min(8, L1_CACHE_SHIFT))
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
651
qlcnic_validate_ringparam(u32 val, u32 min, u32 max, char *r_name)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
654
num_desc = max(val, min);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
655
num_desc = min(num_desc, max);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
131
int max);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1356
static int qlcnic_process_rcv_ring(struct qlcnic_host_sds_ring *sds_ring, int max)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1368
while (count < max) {
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1879
int max)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1891
while (count < max) {
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1356
u8 max = QLC_BC_CMD_MAX_RETRY_CNT;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1364
if (++adapter->fw_fail_cnt > max)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
910
u8 i, max = 2, hdr_size, j;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
913
max = (size / sizeof(u32)) + hdr_size;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
917
for (; j < max; i++, j++)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c
120
info->max_rx_ip_addr = res->num_destip / max;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c
121
info->max_rx_status_rings = res->num_rx_status_rings / max;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c
122
info->max_rx_buf_rings = res->num_rx_buf_rings / max;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c
123
info->max_rx_ques = res->num_rx_queues / max;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c
124
info->max_rx_lro_flow = res->num_lro_flows_supported / max;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c
75
u32 num_vfs, max, temp;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c
82
max = num_vfs + 1;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c
84
info->max_tx_ques = res->num_tx_queues / max;
drivers/net/ethernet/realtek/8139too.c
1733
tp->tx_flag | max(len, (unsigned int)ETH_ZLEN));
drivers/net/ethernet/realtek/r8169_main.c
2162
coal_usec_max = max(ec->rx_coalesce_usecs, ec->tx_coalesce_usecs);
drivers/net/ethernet/rocker/rocker_main.c
422
return max(ROCKER_DMA_SIZE_MIN,
drivers/net/ethernet/sfc/bitfield.h
125
#define EFX_EXTRACT_NATIVE(native_element, min, max, low, high) \
drivers/net/ethernet/sfc/bitfield.h
126
((low) > (max) || (high) < (min) ? 0 : \
drivers/net/ethernet/sfc/bitfield.h
135
#define EFX_EXTRACT64(element, min, max, low, high) \
drivers/net/ethernet/sfc/bitfield.h
136
EFX_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high)
drivers/net/ethernet/sfc/bitfield.h
142
#define EFX_EXTRACT32(element, min, max, low, high) \
drivers/net/ethernet/sfc/bitfield.h
143
EFX_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high)
drivers/net/ethernet/sfc/bitfield.h
244
#define EFX_INSERT_NATIVE64(min, max, low, high, value) \
drivers/net/ethernet/sfc/bitfield.h
245
(((low > max) || (high < min)) ? 0 : \
drivers/net/ethernet/sfc/bitfield.h
250
#define EFX_INSERT_NATIVE32(min, max, low, high, value) \
drivers/net/ethernet/sfc/bitfield.h
251
(((low > max) || (high < min)) ? 0 : \
drivers/net/ethernet/sfc/bitfield.h
256
#define EFX_INSERT_NATIVE(min, max, low, high, value) \
drivers/net/ethernet/sfc/bitfield.h
257
((((max - min) >= 32) || ((high - low) >= 32)) ? \
drivers/net/ethernet/sfc/bitfield.h
258
EFX_INSERT_NATIVE64(min, max, low, high, value) : \
drivers/net/ethernet/sfc/bitfield.h
259
EFX_INSERT_NATIVE32(min, max, low, high, value))
drivers/net/ethernet/sfc/bitfield.h
267
#define EFX_INSERT_FIELD_NATIVE(min, max, field, value) \
drivers/net/ethernet/sfc/bitfield.h
268
EFX_INSERT_NATIVE(min, max, EFX_LOW_BIT(field), \
drivers/net/ethernet/sfc/bitfield.h
277
#define EFX_INSERT_FIELDS_NATIVE(min, max, \
drivers/net/ethernet/sfc/bitfield.h
297
(EFX_INSERT_FIELD_NATIVE((min), (max), field1, (value1)) | \
drivers/net/ethernet/sfc/bitfield.h
298
EFX_INSERT_FIELD_NATIVE((min), (max), field2, (value2)) | \
drivers/net/ethernet/sfc/bitfield.h
299
EFX_INSERT_FIELD_NATIVE((min), (max), field3, (value3)) | \
drivers/net/ethernet/sfc/bitfield.h
300
EFX_INSERT_FIELD_NATIVE((min), (max), field4, (value4)) | \
drivers/net/ethernet/sfc/bitfield.h
301
EFX_INSERT_FIELD_NATIVE((min), (max), field5, (value5)) | \
drivers/net/ethernet/sfc/bitfield.h
302
EFX_INSERT_FIELD_NATIVE((min), (max), field6, (value6)) | \
drivers/net/ethernet/sfc/bitfield.h
303
EFX_INSERT_FIELD_NATIVE((min), (max), field7, (value7)) | \
drivers/net/ethernet/sfc/bitfield.h
304
EFX_INSERT_FIELD_NATIVE((min), (max), field8, (value8)) | \
drivers/net/ethernet/sfc/bitfield.h
305
EFX_INSERT_FIELD_NATIVE((min), (max), field9, (value9)) | \
drivers/net/ethernet/sfc/bitfield.h
306
EFX_INSERT_FIELD_NATIVE((min), (max), field10, (value10)) | \
drivers/net/ethernet/sfc/bitfield.h
307
EFX_INSERT_FIELD_NATIVE((min), (max), field11, (value11)) | \
drivers/net/ethernet/sfc/bitfield.h
308
EFX_INSERT_FIELD_NATIVE((min), (max), field12, (value12)) | \
drivers/net/ethernet/sfc/bitfield.h
309
EFX_INSERT_FIELD_NATIVE((min), (max), field13, (value13)) | \
drivers/net/ethernet/sfc/bitfield.h
310
EFX_INSERT_FIELD_NATIVE((min), (max), field14, (value14)) | \
drivers/net/ethernet/sfc/bitfield.h
311
EFX_INSERT_FIELD_NATIVE((min), (max), field15, (value15)) | \
drivers/net/ethernet/sfc/bitfield.h
312
EFX_INSERT_FIELD_NATIVE((min), (max), field16, (value16)) | \
drivers/net/ethernet/sfc/bitfield.h
313
EFX_INSERT_FIELD_NATIVE((min), (max), field17, (value17)) | \
drivers/net/ethernet/sfc/bitfield.h
314
EFX_INSERT_FIELD_NATIVE((min), (max), field18, (value18)) | \
drivers/net/ethernet/sfc/bitfield.h
315
EFX_INSERT_FIELD_NATIVE((min), (max), field19, (value19)))
drivers/net/ethernet/sfc/bitfield.h
516
#define EFX_INSERT64(min, max, low, high, value) \
drivers/net/ethernet/sfc/bitfield.h
517
cpu_to_le64(EFX_INSERT_NATIVE(min, max, low, high, value))
drivers/net/ethernet/sfc/bitfield.h
519
#define EFX_INSERT32(min, max, low, high, value) \
drivers/net/ethernet/sfc/bitfield.h
520
cpu_to_le32(EFX_INSERT_NATIVE(min, max, low, high, value))
drivers/net/ethernet/sfc/bitfield.h
522
#define EFX_INPLACE_MASK64(min, max, low, high) \
drivers/net/ethernet/sfc/bitfield.h
523
EFX_INSERT64(min, max, low, high, EFX_MASK64((high) + 1 - (low)))
drivers/net/ethernet/sfc/bitfield.h
525
#define EFX_INPLACE_MASK32(min, max, low, high) \
drivers/net/ethernet/sfc/bitfield.h
526
EFX_INSERT32(min, max, low, high, EFX_MASK32((high) + 1 - (low)))
drivers/net/ethernet/sfc/ef10.c
1146
channel_vis = max(efx->n_channels,
drivers/net/ethernet/sfc/ef100_netdev.c
50
max_vis = max(rx_vis, tx_vis);
drivers/net/ethernet/sfc/efx_channels.c
224
max(n_channels -
drivers/net/ethernet/sfc/efx_channels.c
437
channel->eventq_mask = max(entries, EFX_MIN_EVQ_SIZE) - 1;
drivers/net/ethernet/sfc/ethtool.c
195
txq_entries = max(ring->tx_pending, EFX_TXQ_MIN_ENT(efx));
drivers/net/ethernet/sfc/falcon/bitfield.h
123
#define EF4_EXTRACT_NATIVE(native_element, min, max, low, high) \
drivers/net/ethernet/sfc/falcon/bitfield.h
124
((low) > (max) || (high) < (min) ? 0 : \
drivers/net/ethernet/sfc/falcon/bitfield.h
133
#define EF4_EXTRACT64(element, min, max, low, high) \
drivers/net/ethernet/sfc/falcon/bitfield.h
134
EF4_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high)
drivers/net/ethernet/sfc/falcon/bitfield.h
140
#define EF4_EXTRACT32(element, min, max, low, high) \
drivers/net/ethernet/sfc/falcon/bitfield.h
141
EF4_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high)
drivers/net/ethernet/sfc/falcon/bitfield.h
242
#define EF4_INSERT_NATIVE64(min, max, low, high, value) \
drivers/net/ethernet/sfc/falcon/bitfield.h
243
(((low > max) || (high < min)) ? 0 : \
drivers/net/ethernet/sfc/falcon/bitfield.h
248
#define EF4_INSERT_NATIVE32(min, max, low, high, value) \
drivers/net/ethernet/sfc/falcon/bitfield.h
249
(((low > max) || (high < min)) ? 0 : \
drivers/net/ethernet/sfc/falcon/bitfield.h
254
#define EF4_INSERT_NATIVE(min, max, low, high, value) \
drivers/net/ethernet/sfc/falcon/bitfield.h
255
((((max - min) >= 32) || ((high - low) >= 32)) ? \
drivers/net/ethernet/sfc/falcon/bitfield.h
256
EF4_INSERT_NATIVE64(min, max, low, high, value) : \
drivers/net/ethernet/sfc/falcon/bitfield.h
257
EF4_INSERT_NATIVE32(min, max, low, high, value))
drivers/net/ethernet/sfc/falcon/bitfield.h
265
#define EF4_INSERT_FIELD_NATIVE(min, max, field, value) \
drivers/net/ethernet/sfc/falcon/bitfield.h
266
EF4_INSERT_NATIVE(min, max, EF4_LOW_BIT(field), \
drivers/net/ethernet/sfc/falcon/bitfield.h
275
#define EF4_INSERT_FIELDS_NATIVE(min, max, \
drivers/net/ethernet/sfc/falcon/bitfield.h
286
(EF4_INSERT_FIELD_NATIVE((min), (max), field1, (value1)) | \
drivers/net/ethernet/sfc/falcon/bitfield.h
287
EF4_INSERT_FIELD_NATIVE((min), (max), field2, (value2)) | \
drivers/net/ethernet/sfc/falcon/bitfield.h
288
EF4_INSERT_FIELD_NATIVE((min), (max), field3, (value3)) | \
drivers/net/ethernet/sfc/falcon/bitfield.h
289
EF4_INSERT_FIELD_NATIVE((min), (max), field4, (value4)) | \
drivers/net/ethernet/sfc/falcon/bitfield.h
290
EF4_INSERT_FIELD_NATIVE((min), (max), field5, (value5)) | \
drivers/net/ethernet/sfc/falcon/bitfield.h
291
EF4_INSERT_FIELD_NATIVE((min), (max), field6, (value6)) | \
drivers/net/ethernet/sfc/falcon/bitfield.h
292
EF4_INSERT_FIELD_NATIVE((min), (max), field7, (value7)) | \
drivers/net/ethernet/sfc/falcon/bitfield.h
293
EF4_INSERT_FIELD_NATIVE((min), (max), field8, (value8)) | \
drivers/net/ethernet/sfc/falcon/bitfield.h
294
EF4_INSERT_FIELD_NATIVE((min), (max), field9, (value9)) | \
drivers/net/ethernet/sfc/falcon/bitfield.h
295
EF4_INSERT_FIELD_NATIVE((min), (max), field10, (value10)))
drivers/net/ethernet/sfc/falcon/bitfield.h
439
#define EF4_INSERT64(min, max, low, high, value) \
drivers/net/ethernet/sfc/falcon/bitfield.h
440
cpu_to_le64(EF4_INSERT_NATIVE(min, max, low, high, value))
drivers/net/ethernet/sfc/falcon/bitfield.h
442
#define EF4_INSERT32(min, max, low, high, value) \
drivers/net/ethernet/sfc/falcon/bitfield.h
443
cpu_to_le32(EF4_INSERT_NATIVE(min, max, low, high, value))
drivers/net/ethernet/sfc/falcon/bitfield.h
445
#define EF4_INPLACE_MASK64(min, max, low, high) \
drivers/net/ethernet/sfc/falcon/bitfield.h
446
EF4_INSERT64(min, max, low, high, EF4_MASK64((high) + 1 - (low)))
drivers/net/ethernet/sfc/falcon/bitfield.h
448
#define EF4_INPLACE_MASK32(min, max, low, high) \
drivers/net/ethernet/sfc/falcon/bitfield.h
449
EF4_INSERT32(min, max, low, high, EF4_MASK32((high) + 1 - (low)))
drivers/net/ethernet/sfc/falcon/efx.c
1399
efx->n_rx_channels = max(n_channels -
drivers/net/ethernet/sfc/falcon/efx.c
2659
efx->interrupt_mode = max(efx->type->max_interrupt_mode,
drivers/net/ethernet/sfc/falcon/efx.c
342
channel->eventq_mask = max(entries, EF4_MIN_EVQ_SIZE) - 1;
drivers/net/ethernet/sfc/falcon/efx.c
778
next_buffer_table = max(next_buffer_table,
drivers/net/ethernet/sfc/falcon/efx.c
782
next_buffer_table = max(next_buffer_table,
drivers/net/ethernet/sfc/falcon/efx.c
786
next_buffer_table = max(next_buffer_table,
drivers/net/ethernet/sfc/falcon/ethtool.c
669
txq_entries = max(ring->tx_pending, EF4_TXQ_MIN_ENT(efx));
drivers/net/ethernet/sfc/falcon/rx.c
694
entries = max(roundup_pow_of_two(efx->rxq_entries), EF4_MIN_DMAQ_SIZE);
drivers/net/ethernet/sfc/falcon/tx.c
106
fill_level = max(txq1->insert_count - txq1->old_read_count,
drivers/net/ethernet/sfc/falcon/tx.c
130
fill_level = max(txq1->insert_count - txq1->old_read_count,
drivers/net/ethernet/sfc/falcon/tx.c
509
fill_level = max(tx_queue->insert_count - tx_queue->read_count,
drivers/net/ethernet/sfc/falcon/tx.c
538
entries = max(roundup_pow_of_two(efx->txq_entries), EF4_MIN_DMAQ_SIZE);
drivers/net/ethernet/sfc/mcdi.c
988
async = kmalloc(sizeof(*async) + ALIGN(max(inlen, outlen), 4),
drivers/net/ethernet/sfc/net_driver.h
1742
fill_level = max(fill_level,
drivers/net/ethernet/sfc/net_driver.h
1756
fill_level = max(fill_level,
drivers/net/ethernet/sfc/rx_common.c
196
entries = max(roundup_pow_of_two(efx->rxq_entries), EFX_MIN_DMAQ_SIZE);
drivers/net/ethernet/sfc/siena/bitfield.h
123
#define EFX_EXTRACT_NATIVE(native_element, min, max, low, high) \
drivers/net/ethernet/sfc/siena/bitfield.h
124
((low) > (max) || (high) < (min) ? 0 : \
drivers/net/ethernet/sfc/siena/bitfield.h
133
#define EFX_EXTRACT64(element, min, max, low, high) \
drivers/net/ethernet/sfc/siena/bitfield.h
134
EFX_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high)
drivers/net/ethernet/sfc/siena/bitfield.h
140
#define EFX_EXTRACT32(element, min, max, low, high) \
drivers/net/ethernet/sfc/siena/bitfield.h
141
EFX_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high)
drivers/net/ethernet/sfc/siena/bitfield.h
242
#define EFX_INSERT_NATIVE64(min, max, low, high, value) \
drivers/net/ethernet/sfc/siena/bitfield.h
243
(((low > max) || (high < min)) ? 0 : \
drivers/net/ethernet/sfc/siena/bitfield.h
248
#define EFX_INSERT_NATIVE32(min, max, low, high, value) \
drivers/net/ethernet/sfc/siena/bitfield.h
249
(((low > max) || (high < min)) ? 0 : \
drivers/net/ethernet/sfc/siena/bitfield.h
254
#define EFX_INSERT_NATIVE(min, max, low, high, value) \
drivers/net/ethernet/sfc/siena/bitfield.h
255
((((max - min) >= 32) || ((high - low) >= 32)) ? \
drivers/net/ethernet/sfc/siena/bitfield.h
256
EFX_INSERT_NATIVE64(min, max, low, high, value) : \
drivers/net/ethernet/sfc/siena/bitfield.h
257
EFX_INSERT_NATIVE32(min, max, low, high, value))
drivers/net/ethernet/sfc/siena/bitfield.h
265
#define EFX_INSERT_FIELD_NATIVE(min, max, field, value) \
drivers/net/ethernet/sfc/siena/bitfield.h
266
EFX_INSERT_NATIVE(min, max, EFX_LOW_BIT(field), \
drivers/net/ethernet/sfc/siena/bitfield.h
275
#define EFX_INSERT_FIELDS_NATIVE(min, max, \
drivers/net/ethernet/sfc/siena/bitfield.h
295
(EFX_INSERT_FIELD_NATIVE((min), (max), field1, (value1)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
296
EFX_INSERT_FIELD_NATIVE((min), (max), field2, (value2)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
297
EFX_INSERT_FIELD_NATIVE((min), (max), field3, (value3)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
298
EFX_INSERT_FIELD_NATIVE((min), (max), field4, (value4)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
299
EFX_INSERT_FIELD_NATIVE((min), (max), field5, (value5)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
300
EFX_INSERT_FIELD_NATIVE((min), (max), field6, (value6)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
301
EFX_INSERT_FIELD_NATIVE((min), (max), field7, (value7)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
302
EFX_INSERT_FIELD_NATIVE((min), (max), field8, (value8)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
303
EFX_INSERT_FIELD_NATIVE((min), (max), field9, (value9)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
304
EFX_INSERT_FIELD_NATIVE((min), (max), field10, (value10)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
305
EFX_INSERT_FIELD_NATIVE((min), (max), field11, (value11)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
306
EFX_INSERT_FIELD_NATIVE((min), (max), field12, (value12)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
307
EFX_INSERT_FIELD_NATIVE((min), (max), field13, (value13)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
308
EFX_INSERT_FIELD_NATIVE((min), (max), field14, (value14)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
309
EFX_INSERT_FIELD_NATIVE((min), (max), field15, (value15)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
310
EFX_INSERT_FIELD_NATIVE((min), (max), field16, (value16)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
311
EFX_INSERT_FIELD_NATIVE((min), (max), field17, (value17)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
312
EFX_INSERT_FIELD_NATIVE((min), (max), field18, (value18)) | \
drivers/net/ethernet/sfc/siena/bitfield.h
313
EFX_INSERT_FIELD_NATIVE((min), (max), field19, (value19)))
drivers/net/ethernet/sfc/siena/bitfield.h
514
#define EFX_INSERT64(min, max, low, high, value) \
drivers/net/ethernet/sfc/siena/bitfield.h
515
cpu_to_le64(EFX_INSERT_NATIVE(min, max, low, high, value))
drivers/net/ethernet/sfc/siena/bitfield.h
517
#define EFX_INSERT32(min, max, low, high, value) \
drivers/net/ethernet/sfc/siena/bitfield.h
518
cpu_to_le32(EFX_INSERT_NATIVE(min, max, low, high, value))
drivers/net/ethernet/sfc/siena/bitfield.h
520
#define EFX_INPLACE_MASK64(min, max, low, high) \
drivers/net/ethernet/sfc/siena/bitfield.h
521
EFX_INSERT64(min, max, low, high, EFX_MASK64((high) + 1 - (low)))
drivers/net/ethernet/sfc/siena/bitfield.h
523
#define EFX_INPLACE_MASK32(min, max, low, high) \
drivers/net/ethernet/sfc/siena/bitfield.h
524
EFX_INSERT32(min, max, low, high, EFX_MASK32((high) + 1 - (low)))
drivers/net/ethernet/sfc/siena/efx_channels.c
225
max(n_channels -
drivers/net/ethernet/sfc/siena/efx_channels.c
438
channel->eventq_mask = max(entries, EFX_MIN_EVQ_SIZE) - 1;
drivers/net/ethernet/sfc/siena/efx_channels.c
876
next_buffer_table = max(next_buffer_table,
drivers/net/ethernet/sfc/siena/efx_channels.c
880
next_buffer_table = max(next_buffer_table,
drivers/net/ethernet/sfc/siena/efx_channels.c
884
next_buffer_table = max(next_buffer_table,
drivers/net/ethernet/sfc/siena/ethtool.c
195
txq_entries = max(ring->tx_pending, EFX_TXQ_MIN_ENT(efx));
drivers/net/ethernet/sfc/siena/farch.c
1680
vi_count = max(efx->n_channels, total_tx_channels * EFX_MAX_TXQ_PER_CHANNEL);
drivers/net/ethernet/sfc/siena/farch.c
1699
vi_count = max(vi_count, EFX_VI_BASE);
drivers/net/ethernet/sfc/siena/mcdi.c
992
async = kmalloc(sizeof(*async) + ALIGN(max(inlen, outlen), 4),
drivers/net/ethernet/sfc/siena/net_driver.h
1635
fill_level = max(fill_level,
drivers/net/ethernet/sfc/siena/net_driver.h
1649
fill_level = max(fill_level,
drivers/net/ethernet/sfc/siena/rx_common.c
199
entries = max(roundup_pow_of_two(efx->rxq_entries), EFX_MIN_DMAQ_SIZE);
drivers/net/ethernet/sfc/siena/tx_common.c
30
entries = max(roundup_pow_of_two(efx->txq_entries), EFX_MIN_DMAQ_SIZE);
drivers/net/ethernet/sfc/tx_common.c
30
entries = max(roundup_pow_of_two(efx->txq_entries), EFX_MIN_DMAQ_SIZE);
drivers/net/ethernet/socionext/netsec.c
243
#define NETSEC_RXBUF_HEADROOM (max(XDP_PACKET_HEADROOM, NET_SKB_PAD) + \
drivers/net/ethernet/socionext/netsec.c
912
sync = max(sync, len);
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
790
max_cnt = max(rx_cnt, tx_cnt);
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
844
max_cnt = max(rx_cnt, tx_cnt);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
2467
u32 dma_csr_ch = max(rx_channels_count, tx_channels_count);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
268
u32 maxq = max(rx_queues_cnt, tx_queues_cnt);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
2974
return max(count, xmits);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
317
u32 maxq = max(rx_queues_cnt, tx_queues_cnt);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
3244
u32 dma_csr_ch = max(rx_channels_count, tx_channels_count);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
5741
sync_len = max(sync_len, pre_len);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
5960
rxtx_done = max(tx_done, rx_done);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
7084
u32 dma_csr_ch = max(rx_cnt, tx_cnt);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
7511
maxq = max(priv->plat->rx_queues_to_use, priv->plat->tx_queues_to_use);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
7540
maxq = max(priv->plat->rx_queues_to_use, priv->plat->tx_queues_to_use);
drivers/net/ethernet/sun/cassini.c
1928
alloclen = max(hlen, RX_COPY_MIN);
drivers/net/ethernet/sun/niu.c
5151
int i, max, err;
drivers/net/ethernet/sun/niu.c
5155
max = ATLAS_P0_P1_CFIFO_ENTRIES;
drivers/net/ethernet/sun/niu.c
5157
max = ATLAS_P2_P3_CFIFO_ENTRIES;
drivers/net/ethernet/sun/niu.c
5159
max = NIU_CFIFO_ENTRIES;
drivers/net/ethernet/sun/niu.c
5167
for (i = 0; i < max; i++) {
drivers/net/ethernet/sun/niu.c
5218
int i, max, err;
drivers/net/ethernet/sun/niu.c
5222
max = ATLAS_P0_P1_DFIFO_ENTRIES;
drivers/net/ethernet/sun/niu.c
5224
max = ATLAS_P2_P3_DFIFO_ENTRIES;
drivers/net/ethernet/sun/niu.c
5226
max = NIU_DFIFO_ENTRIES;
drivers/net/ethernet/sun/niu.c
5234
for (i = 0; i < max; i++) {
drivers/net/ethernet/sun/niu.c
5505
static void niu_init_tx_xmac(struct niu *np, u64 min, u64 max)
drivers/net/ethernet/sun/niu.c
5516
nw64_mac(XMAC_MAX, max);
drivers/net/ethernet/sun/niu.c
5541
static void niu_init_tx_bmac(struct niu *np, u64 min, u64 max)
drivers/net/ethernet/sun/niu.c
5546
nw64_mac(BMAC_MAX_FRAME, max);
drivers/net/ethernet/sun/niu.c
5560
u64 min, max;
drivers/net/ethernet/sun/niu.c
5564
max = 9216;
drivers/net/ethernet/sun/niu.c
5566
max = 1522;
drivers/net/ethernet/sun/niu.c
5574
niu_init_tx_xmac(np, min, max);
drivers/net/ethernet/sun/niu.c
5576
niu_init_tx_bmac(np, min, max);
drivers/net/ethernet/sun/sungem.c
1616
gp->rx_buf_sz = max(dev->mtu + ETH_HLEN + VLAN_HLEN,
drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c
2516
q_count = max(pdata->hw_feat.tx_q_cnt, pdata->hw_feat.rx_q_cnt);
drivers/net/ethernet/tehuti/tehuti.c
1542
if (bdx_tx_db_init(&priv->txdb, max(priv->txd_size, priv->txf_size)))
drivers/net/ethernet/tehuti/tn40.c
665
ret = tn40_tx_db_init(&priv->txdb, max(priv->txd_size, priv->txf_size));
drivers/net/ethernet/ti/am65-cpsw-nuss.c
173
#define AM65_CPSW_HEADROOM_NA (max(NET_SKB_PAD, XDP_PACKET_HEADROOM) + NET_IP_ALIGN)
drivers/net/ethernet/ti/cpsw.c
1636
cpsw->rx_packet_max = max(rx_packet_max, CPSW_MAX_PACKET_SIZE);
drivers/net/ethernet/ti/cpsw_priv.h
421
#define CPSW_HEADROOM_NA (max(XDP_PACKET_HEADROOM, NET_SKB_PAD) + NET_IP_ALIGN)
drivers/net/ethernet/ti/davinci_cpdma.c
686
int min, max, i;
drivers/net/ethernet/ti/davinci_cpdma.c
693
max = rx_chan_num(CPDMA_MAX_CHANNELS);
drivers/net/ethernet/ti/davinci_cpdma.c
696
max = tx_chan_num(CPDMA_MAX_CHANNELS);
drivers/net/ethernet/ti/davinci_cpdma.c
699
for (i = min; i < max; i++) {
drivers/net/ethernet/ti/icssg/icssg_prueth.h
260
#define PRUETH_HEADROOM_NA (max(XDP_PACKET_HEADROOM, NET_SKB_PAD) + NET_IP_ALIGN)
drivers/net/ethernet/ti/tlan.c
1052
txlen = max(skb->len, (unsigned int)TLAN_MIN_FRAME_SIZE);
drivers/net/ethernet/ti/tlan.c
1367
max(skb->len, (unsigned int)TLAN_MIN_FRAME_SIZE),
drivers/net/ethernet/ti/tlan.c
1956
max(skb->len, (unsigned int)TLAN_MIN_FRAME_SIZE),
drivers/net/ethernet/via/via-velocity.c
414
static void velocity_set_int_opt(int *opt, int val, int min, int max, int def,
drivers/net/ethernet/via/via-velocity.c
419
else if (val < min || val > max) {
drivers/net/ethernet/via/via-velocity.c
421
name, min, max);
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1904
nvecs = max(wx->num_rx_queues, wx->num_tx_queues);
drivers/net/ethernet/wangxun/libwx/wx_lib.c
947
per_ring_budget = max(budget / q_vector->rx.count, 1);
drivers/net/hyperv/netvsc_drv.c
957
dev_info->num_chn = max(VRSS_CHANNEL_DEFAULT,
drivers/net/ipa/data/ipa_data-v3.1.c
191
.min = 3, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
194
.min = 3, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
197
.min = 1, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
200
.min = 1, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
203
.min = 2, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
208
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
211
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
214
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
217
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
220
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
225
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
228
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
231
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
234
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
237
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
242
.min = 14, .max = 14,
drivers/net/ipa/data/ipa_data-v3.1.c
245
.min = 16, .max = 16,
drivers/net/ipa/data/ipa_data-v3.1.c
248
.min = 5, .max = 5,
drivers/net/ipa/data/ipa_data-v3.1.c
251
.min = 5, .max = 5,
drivers/net/ipa/data/ipa_data-v3.1.c
254
.min = 8, .max = 8,
drivers/net/ipa/data/ipa_data-v3.1.c
259
.min = 19, .max = 19,
drivers/net/ipa/data/ipa_data-v3.1.c
262
.min = 26, .max = 26,
drivers/net/ipa/data/ipa_data-v3.1.c
265
.min = 5, .max = 5, /* 3 downstream */
drivers/net/ipa/data/ipa_data-v3.1.c
268
.min = 5, .max = 5, /* 7 downstream */
drivers/net/ipa/data/ipa_data-v3.1.c
271
.min = 8, .max = 8,
drivers/net/ipa/data/ipa_data-v3.1.c
276
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
279
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
282
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
285
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
288
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
293
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
296
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
299
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
302
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
305
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
310
.min = 19, .max = 19,
drivers/net/ipa/data/ipa_data-v3.1.c
313
.min = 26, .max = 26,
drivers/net/ipa/data/ipa_data-v3.1.c
316
.min = 5, .max = 5,
drivers/net/ipa/data/ipa_data-v3.1.c
319
.min = 5, .max = 5,
drivers/net/ipa/data/ipa_data-v3.1.c
322
.min = 8, .max = 8,
drivers/net/ipa/data/ipa_data-v3.1.c
331
.min = 3, .max = 3, /* 2 downstream */
drivers/net/ipa/data/ipa_data-v3.1.c
334
.min = 3, .max = 3,
drivers/net/ipa/data/ipa_data-v3.1.c
337
.min = 1, .max = 1, /* 0 downstream */
drivers/net/ipa/data/ipa_data-v3.1.c
341
.min = 3, .max = 3,
drivers/net/ipa/data/ipa_data-v3.1.c
344
.min = 3, .max = 3,
drivers/net/ipa/data/ipa_data-v3.1.c
349
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
352
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
355
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
358
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
361
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
364
.min = 0, .max = 255,
drivers/net/ipa/data/ipa_data-v3.1.c
369
.min = 1, .max = 1,
drivers/net/ipa/data/ipa_data-v3.1.c
372
.min = 1, .max = 1,
drivers/net/ipa/data/ipa_data-v3.1.c
375
.min = 1, .max = 1,
drivers/net/ipa/data/ipa_data-v3.1.c
378
.min = 1, .max = 1,
drivers/net/ipa/data/ipa_data-v3.1.c
381
.min = 1, .max = 1,
drivers/net/ipa/data/ipa_data-v3.5.1.c
183
.min = 1, .max = 63,
drivers/net/ipa/data/ipa_data-v3.5.1.c
186
.min = 1, .max = 63,
drivers/net/ipa/data/ipa_data-v3.5.1.c
189
.min = 1, .max = 63,
drivers/net/ipa/data/ipa_data-v3.5.1.c
194
.min = 10, .max = 10,
drivers/net/ipa/data/ipa_data-v3.5.1.c
197
.min = 10, .max = 10,
drivers/net/ipa/data/ipa_data-v3.5.1.c
200
.min = 8, .max = 8,
drivers/net/ipa/data/ipa_data-v3.5.1.c
205
.min = 12, .max = 12,
drivers/net/ipa/data/ipa_data-v3.5.1.c
208
.min = 14, .max = 14,
drivers/net/ipa/data/ipa_data-v3.5.1.c
211
.min = 8, .max = 8,
drivers/net/ipa/data/ipa_data-v3.5.1.c
216
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v3.5.1.c
219
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v3.5.1.c
222
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v3.5.1.c
225
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v3.5.1.c
230
.min = 14, .max = 14,
drivers/net/ipa/data/ipa_data-v3.5.1.c
233
.min = 20, .max = 20,
drivers/net/ipa/data/ipa_data-v3.5.1.c
236
.min = 14, .max = 14,
drivers/net/ipa/data/ipa_data-v3.5.1.c
245
.min = 4, .max = 4,
drivers/net/ipa/data/ipa_data-v3.5.1.c
248
.min = 4, .max = 4,
drivers/net/ipa/data/ipa_data-v3.5.1.c
251
.min = 3, .max = 3,
drivers/net/ipa/data/ipa_data-v3.5.1.c
256
.min = 2, .max = 63,
drivers/net/ipa/data/ipa_data-v3.5.1.c
259
.min = 1, .max = 63,
drivers/net/ipa/data/ipa_data-v3.5.1.c
262
.min = 1, .max = 2,
drivers/net/ipa/data/ipa_data-v4.11.c
176
.min = 6, .max = 6,
drivers/net/ipa/data/ipa_data-v4.11.c
181
.min = 8, .max = 8,
drivers/net/ipa/data/ipa_data-v4.11.c
186
.min = 18, .max = 18,
drivers/net/ipa/data/ipa_data-v4.11.c
191
.min = 2, .max = 2,
drivers/net/ipa/data/ipa_data-v4.11.c
196
.min = 15, .max = 15,
drivers/net/ipa/data/ipa_data-v4.11.c
205
.min = 3, .max = 3,
drivers/net/ipa/data/ipa_data-v4.11.c
208
.min = 25, .max = 25,
drivers/net/ipa/data/ipa_data-v4.11.c
213
.min = 2, .max = 2,
drivers/net/ipa/data/ipa_data-v4.2.c
176
.min = 3, .max = 63,
drivers/net/ipa/data/ipa_data-v4.2.c
181
.min = 3, .max = 3,
drivers/net/ipa/data/ipa_data-v4.2.c
186
.min = 10, .max = 10,
drivers/net/ipa/data/ipa_data-v4.2.c
191
.min = 1, .max = 1,
drivers/net/ipa/data/ipa_data-v4.2.c
196
.min = 5, .max = 5,
drivers/net/ipa/data/ipa_data-v4.2.c
205
.min = 3, .max = 3,
drivers/net/ipa/data/ipa_data-v4.2.c
210
.min = 1, .max = 63,
drivers/net/ipa/data/ipa_data-v4.5.c
185
.min = 1, .max = 11,
drivers/net/ipa/data/ipa_data-v4.5.c
188
.min = 1, .max = 63,
drivers/net/ipa/data/ipa_data-v4.5.c
193
.min = 14, .max = 14,
drivers/net/ipa/data/ipa_data-v4.5.c
196
.min = 3, .max = 3,
drivers/net/ipa/data/ipa_data-v4.5.c
201
.min = 18, .max = 18,
drivers/net/ipa/data/ipa_data-v4.5.c
204
.min = 8, .max = 8,
drivers/net/ipa/data/ipa_data-v4.5.c
209
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v4.5.c
212
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v4.5.c
215
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v4.5.c
218
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v4.5.c
221
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v4.5.c
226
.min = 24, .max = 24,
drivers/net/ipa/data/ipa_data-v4.5.c
229
.min = 8, .max = 8,
drivers/net/ipa/data/ipa_data-v4.5.c
238
.min = 16, .max = 16,
drivers/net/ipa/data/ipa_data-v4.5.c
241
.min = 2, .max = 2,
drivers/net/ipa/data/ipa_data-v4.5.c
244
.min = 2, .max = 2,
drivers/net/ipa/data/ipa_data-v4.5.c
249
.min = 2, .max = 63,
drivers/net/ipa/data/ipa_data-v4.5.c
252
.min = 1, .max = 2,
drivers/net/ipa/data/ipa_data-v4.5.c
255
.min = 1, .max = 2,
drivers/net/ipa/data/ipa_data-v4.5.c
258
.min = 0, .max = 2,
drivers/net/ipa/data/ipa_data-v4.7.c
172
.min = 8, .max = 8,
drivers/net/ipa/data/ipa_data-v4.7.c
177
.min = 8, .max = 8,
drivers/net/ipa/data/ipa_data-v4.7.c
182
.min = 18, .max = 18,
drivers/net/ipa/data/ipa_data-v4.7.c
187
.min = 2, .max = 2,
drivers/net/ipa/data/ipa_data-v4.7.c
192
.min = 15, .max = 15,
drivers/net/ipa/data/ipa_data-v4.7.c
201
.min = 7, .max = 7,
drivers/net/ipa/data/ipa_data-v4.7.c
206
.min = 2, .max = 2,
drivers/net/ipa/data/ipa_data-v4.9.c
177
.min = 1, .max = 12,
drivers/net/ipa/data/ipa_data-v4.9.c
180
.min = 1, .max = 1,
drivers/net/ipa/data/ipa_data-v4.9.c
183
.min = 1, .max = 12,
drivers/net/ipa/data/ipa_data-v4.9.c
188
.min = 20, .max = 20,
drivers/net/ipa/data/ipa_data-v4.9.c
191
.min = 2, .max = 2,
drivers/net/ipa/data/ipa_data-v4.9.c
194
.min = 3, .max = 3,
drivers/net/ipa/data/ipa_data-v4.9.c
199
.min = 38, .max = 38,
drivers/net/ipa/data/ipa_data-v4.9.c
202
.min = 4, .max = 4,
drivers/net/ipa/data/ipa_data-v4.9.c
205
.min = 8, .max = 8,
drivers/net/ipa/data/ipa_data-v4.9.c
210
.min = 0, .max = 4,
drivers/net/ipa/data/ipa_data-v4.9.c
213
.min = 0, .max = 4,
drivers/net/ipa/data/ipa_data-v4.9.c
216
.min = 0, .max = 4,
drivers/net/ipa/data/ipa_data-v4.9.c
221
.min = 30, .max = 30,
drivers/net/ipa/data/ipa_data-v4.9.c
224
.min = 8, .max = 8,
drivers/net/ipa/data/ipa_data-v4.9.c
227
.min = 8, .max = 8,
drivers/net/ipa/data/ipa_data-v4.9.c
236
.min = 9, .max = 9,
drivers/net/ipa/data/ipa_data-v4.9.c
239
.min = 1, .max = 1,
drivers/net/ipa/data/ipa_data-v4.9.c
242
.min = 1, .max = 1,
drivers/net/ipa/data/ipa_data-v4.9.c
245
.min = 39, .max = 39,
drivers/net/ipa/data/ipa_data-v4.9.c
250
.min = 2, .max = 3,
drivers/net/ipa/data/ipa_data-v4.9.c
253
.min = 1, .max = 2,
drivers/net/ipa/data/ipa_data-v4.9.c
256
.min = 0, .max = 2,
drivers/net/ipa/data/ipa_data-v5.0.c
189
.min = 3, .max = 9,
drivers/net/ipa/data/ipa_data-v5.0.c
192
.min = 4, .max = 10,
drivers/net/ipa/data/ipa_data-v5.0.c
195
.min = 1, .max = 63,
drivers/net/ipa/data/ipa_data-v5.0.c
198
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v5.0.c
203
.min = 9, .max = 9,
drivers/net/ipa/data/ipa_data-v5.0.c
206
.min = 12, .max = 12,
drivers/net/ipa/data/ipa_data-v5.0.c
209
.min = 10, .max = 10,
drivers/net/ipa/data/ipa_data-v5.0.c
214
.min = 9, .max = 9,
drivers/net/ipa/data/ipa_data-v5.0.c
217
.min = 24, .max = 24,
drivers/net/ipa/data/ipa_data-v5.0.c
220
.min = 20, .max = 20,
drivers/net/ipa/data/ipa_data-v5.0.c
225
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v5.0.c
228
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v5.0.c
231
.min = 1, .max = 63,
drivers/net/ipa/data/ipa_data-v5.0.c
234
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v5.0.c
239
.min = 22, .max = 22,
drivers/net/ipa/data/ipa_data-v5.0.c
242
.min = 16, .max = 16,
drivers/net/ipa/data/ipa_data-v5.0.c
245
.min = 16, .max = 16,
drivers/net/ipa/data/ipa_data-v5.0.c
254
.min = 6, .max = 6,
drivers/net/ipa/data/ipa_data-v5.0.c
257
.min = 5, .max = 5,
drivers/net/ipa/data/ipa_data-v5.0.c
260
.min = 39, .max = 39,
drivers/net/ipa/data/ipa_data-v5.0.c
265
.min = 0, .max = 3,
drivers/net/ipa/data/ipa_data-v5.0.c
268
.min = 0, .max = 3,
drivers/net/ipa/data/ipa_data-v5.0.c
273
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v5.0.c
276
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v5.5.c
189
.min = 3, .max = 9,
drivers/net/ipa/data/ipa_data-v5.5.c
192
.min = 4, .max = 10,
drivers/net/ipa/data/ipa_data-v5.5.c
195
.min = 1, .max = 63,
drivers/net/ipa/data/ipa_data-v5.5.c
198
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v5.5.c
203
.min = 9, .max = 9,
drivers/net/ipa/data/ipa_data-v5.5.c
206
.min = 12, .max = 12,
drivers/net/ipa/data/ipa_data-v5.5.c
209
.min = 10, .max = 10,
drivers/net/ipa/data/ipa_data-v5.5.c
214
.min = 9, .max = 9,
drivers/net/ipa/data/ipa_data-v5.5.c
217
.min = 24, .max = 24,
drivers/net/ipa/data/ipa_data-v5.5.c
220
.min = 20, .max = 20,
drivers/net/ipa/data/ipa_data-v5.5.c
225
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v5.5.c
228
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v5.5.c
231
.min = 1, .max = 63,
drivers/net/ipa/data/ipa_data-v5.5.c
234
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v5.5.c
239
.min = 22, .max = 22,
drivers/net/ipa/data/ipa_data-v5.5.c
242
.min = 16, .max = 16,
drivers/net/ipa/data/ipa_data-v5.5.c
245
.min = 16, .max = 16,
drivers/net/ipa/data/ipa_data-v5.5.c
254
.min = 6, .max = 6,
drivers/net/ipa/data/ipa_data-v5.5.c
257
.min = 5, .max = 5,
drivers/net/ipa/data/ipa_data-v5.5.c
260
.min = 39, .max = 39,
drivers/net/ipa/data/ipa_data-v5.5.c
265
.min = 0, .max = 3,
drivers/net/ipa/data/ipa_data-v5.5.c
268
.min = 0, .max = 3,
drivers/net/ipa/data/ipa_data-v5.5.c
273
.min = 0, .max = 63,
drivers/net/ipa/data/ipa_data-v5.5.c
276
.min = 0, .max = 63,
drivers/net/ipa/ipa_data.h
143
u32 max;
drivers/net/ipa/ipa_endpoint.c
1063
u32 max = reg_field_max(reg, TIMER_LIMIT);
drivers/net/ipa/ipa_endpoint.c
1067
ticks = ipa_qtime_val(ipa, microseconds, max, &select);
drivers/net/ipa/ipa_endpoint.c
396
u32 max;
drivers/net/ipa/ipa_endpoint.c
422
max = 0;
drivers/net/ipa/ipa_endpoint.c
426
max = max_t(u32, max, dp->endpoint_id);
drivers/net/ipa/ipa_endpoint.c
429
return max;
drivers/net/ipa/ipa_endpoint.c
940
ipa_qtime_val(struct ipa *ipa, u32 microseconds, u32 max, u32 *select)
drivers/net/ipa/ipa_endpoint.c
947
if (ticks <= max)
drivers/net/ipa/ipa_endpoint.c
953
if (ticks <= max)
drivers/net/ipa/ipa_endpoint.c
961
WARN_ON(ticks > max);
drivers/net/ipa/ipa_endpoint.c
973
u32 max;
drivers/net/ipa/ipa_endpoint.c
978
max = reg_field_max(reg, TIME_LIMIT);
drivers/net/ipa/ipa_endpoint.c
982
ticks = ipa_qtime_val(ipa, microseconds, max, &select);
drivers/net/ipa/ipa_endpoint.c
990
WARN(ticks > max, "aggr_time_limit too large (%u > %u usec)\n",
drivers/net/ipa/ipa_endpoint.c
991
microseconds, max * IPA_AGGR_GRANULARITY);
drivers/net/ipa/ipa_resource.c
50
if (resource->limits[j].min || resource->limits[j].max)
drivers/net/ipa/ipa_resource.c
63
if (resource->limits[j].min || resource->limits[j].max)
drivers/net/ipa/ipa_resource.c
79
val |= reg_encode(reg, X_MAX_LIM, xlimits->max);
drivers/net/ipa/ipa_resource.c
82
val |= reg_encode(reg, Y_MAX_LIM, ylimits->max);
drivers/net/netdevsim/fib.c
1164
data->nexthops.max)) {
drivers/net/netdevsim/fib.c
137
enum nsim_resource_id res_id, bool max)
drivers/net/netdevsim/fib.c
161
return max ? entry->max : atomic64_read(&entry->num);
drivers/net/netdevsim/fib.c
189
entry->max = val;
drivers/net/netdevsim/fib.c
198
if (!atomic64_add_unless(&entry->num, 1, entry->max)) {
drivers/net/netdevsim/fib.c
232
if (!atomic64_add_unless(&entry->num, 1, entry->max))
drivers/net/netdevsim/fib.c
36
u64 max;
drivers/net/netdevsim/netdev.c
240
static int nsim_set_vf_rate(struct net_device *dev, int vf, int min, int max)
drivers/net/netdevsim/netdev.c
254
nsim_dev->vfconfigs[vf].max_tx_rate = max;
drivers/net/netdevsim/netdevsim.h
394
enum nsim_resource_id res_id, bool max);
drivers/net/netkit.c
202
headroom = max(nk->headroom, nk2->headroom);
drivers/net/ovpn/io.h
16
max(sizeof(struct udphdr), sizeof(struct tcphdr)) +\
drivers/net/ovpn/io.h
17
max(sizeof(struct ipv6hdr), sizeof(struct iphdr)))
drivers/net/ovpn/netlink-gen.c
16
.max = 16777215ULL,
drivers/net/ovpn/netlink-gen.c
20
.max = 16777215ULL,
drivers/net/phy/dp83tg720.c
641
return max(next_time_jiffies, 1U);
drivers/net/phy/realtek/realtek_main.c
1724
cable_len = max(cable_len, 0);
drivers/net/pse-pd/pd692x0.c
656
c33_pw_limit_ranges[i].max = pw_table->class_pw +
drivers/net/pse-pd/tps23881.c
531
c33_pw_limit_ranges->max = MAX_PI_PW;
drivers/net/tun_vnet.h
137
hdr_len = max(tun_vnet16_to_cpu(flags, hdr->csum_start) + tun_vnet16_to_cpu(flags, hdr->csum_offset) + 2, hdr_len);
drivers/net/usb/cdc_ncm.c
1080
static void cdc_ncm_align_tail(struct sk_buff *skb, size_t modulus, size_t remainder, size_t max)
drivers/net/usb/cdc_ncm.c
1084
if (skb->len + align > max)
drivers/net/usb/cdc_ncm.c
1085
align = max - skb->len;
drivers/net/usb/cdc_ncm.c
1268
ctx->tx_curr_size = max(skb->len,
drivers/net/usb/cdc_ncm.c
153
u32 val, max, min;
drivers/net/usb/cdc_ncm.c
157
max = min_t(u32, CDC_NCM_NTB_MAX_SIZE_RX, le32_to_cpu(ctx->ncm_parm.dwNtbInMaxSize));
drivers/net/usb/cdc_ncm.c
160
if (max < min) {
drivers/net/usb/cdc_ncm.c
163
max = min;
drivers/net/usb/cdc_ncm.c
166
val = clamp_t(u32, new_rx, min, max);
drivers/net/usb/cdc_ncm.c
168
dev_dbg(&dev->intf->dev, "rx_max must be in the [%u, %u] range\n", min, max);
drivers/net/usb/cdc_ncm.c
176
u32 val, max, min;
drivers/net/usb/cdc_ncm.c
185
max = CDC_NCM_NTB_MAX_SIZE_TX; /* dwNtbOutMaxSize not set */
drivers/net/usb/cdc_ncm.c
187
max = clamp_t(u32, le32_to_cpu(ctx->ncm_parm.dwNtbOutMaxSize),
drivers/net/usb/cdc_ncm.c
192
min = min(min, max);
drivers/net/usb/cdc_ncm.c
194
val = clamp_t(u32, new_tx, min, max);
drivers/net/usb/cdc_ncm.c
196
dev_dbg(&dev->intf->dev, "tx_max must be in the [%u, %u] range\n", min, max);
drivers/net/usb/lan78xx.c
4118
u16 mss = max(skb_shinfo(skb)->gso_size, TX_CMD_B_MSS_MIN_);
drivers/net/usb/lan78xx.c
777
u32 *p, *count, *max;
drivers/net/usb/lan78xx.c
787
max = (u32 *)&dev->stats.rollover_max;
drivers/net/usb/lan78xx.c
796
data[i] = (u64)p[i] + ((u64)count[i] * ((u64)max[i] + 1));
drivers/net/usb/rtl8150.c
689
count = max(skb->len, ETH_ZLEN);
drivers/net/usb/smsc75xx.c
2273
u16 mss = max(skb_shinfo(skb)->gso_size, TX_MSS_MIN);
drivers/net/usb/usbnet.c
241
period = max ((int) dev->status->desc.bInterval,
drivers/net/veth.c
1556
new_hr = max(priv->requested_headroom, peer_priv->requested_headroom);
drivers/net/virtio_net.c
6380
return max(max(min_buf_len, hdr_len) - hdr_len,
drivers/net/vmxnet3/vmxnet3_drv.c
4017
max(num_tx_queues, num_rx_queues));
drivers/net/vxlan/vxlan_mdb.c
323
.max = VXLAN_N_VID - 1,
drivers/net/wireguard/device.c
281
max(sizeof(struct ipv6hdr), sizeof(struct iphdr));
drivers/net/wireguard/messages.h
121
(max(sizeof(struct iphdr), sizeof(struct ipv6hdr)) + \
drivers/net/wireless/admtek/adm8211.c
179
pci_name(priv->pdev), (int)chan_range.min, (int)chan_range.max);
drivers/net/wireless/admtek/adm8211.c
190
if (i < chan_range.min || i > chan_range.max)
drivers/net/wireless/admtek/adm8211.h
590
u8 max;
drivers/net/wireless/ath/ath10k/htt_tx.c
34
factor = max(1, factor);
drivers/net/wireless/ath/ath10k/mac.c
2618
arg->peer_max_mpdu = max(arg->peer_max_mpdu,
drivers/net/wireless/ath/ath10k/mac.c
6788
nss = min(nss, max(ath10k_mac_max_ht_nss(ht_mcs_mask),
drivers/net/wireless/ath/ath10k/mac.c
8506
max(ath10k_mac_max_ht_nss(ht_mcs_mask),
drivers/net/wireless/ath/ath10k/mac.c
9632
.max = 8,
drivers/net/wireless/ath/ath10k/mac.c
9637
.max = 3,
drivers/net/wireless/ath/ath10k/mac.c
9641
.max = 1,
drivers/net/wireless/ath/ath10k/mac.c
9645
.max = 7,
drivers/net/wireless/ath/ath10k/mac.c
9655
.max = 8,
drivers/net/wireless/ath/ath10k/mac.c
9662
.max = 1,
drivers/net/wireless/ath/ath10k/mac.c
9696
.max = 2,
drivers/net/wireless/ath/ath10k/mac.c
9700
.max = 2,
drivers/net/wireless/ath/ath10k/mac.c
9709
.max = 1,
drivers/net/wireless/ath/ath10k/mac.c
9716
.max = 2,
drivers/net/wireless/ath/ath10k/mac.c
9720
.max = 2,
drivers/net/wireless/ath/ath10k/mac.c
9724
.max = 1,
drivers/net/wireless/ath/ath10k/mac.c
9732
.max = 1,
drivers/net/wireless/ath/ath10k/mac.c
9739
.max = 1,
drivers/net/wireless/ath/ath10k/mac.c
9743
.max = 1,
drivers/net/wireless/ath/ath10k/mac.c
9789
.max = 1,
drivers/net/wireless/ath/ath10k/mac.c
9793
.max = 16,
drivers/net/wireless/ath/ath11k/mac.c
10328
limits[0].max = 1;
drivers/net/wireless/ath/ath11k/mac.c
10330
limits[1].max = 16;
drivers/net/wireless/ath/ath11k/mac.c
10350
limits[0].max = 2;
drivers/net/wireless/ath/ath11k/mac.c
10363
limits[2].max = 1;
drivers/net/wireless/ath/ath11k/mac.c
2196
arg->peer_max_mpdu = max(arg->peer_max_mpdu,
drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c
2941
le32_to_cpu(htt_stats_buf->max));
drivers/net/wireless/ath/ath12k/debugfs_htt_stats.h
1398
__le32 max;
drivers/net/wireless/ath/ath12k/debugfs_sta.c
27
u32 i, len = offset, max = max_bw * max_gi * max_mcs;
drivers/net/wireless/ath/ath12k/debugfs_sta.c
82
for (i = 0; i < max; i++) {
drivers/net/wireless/ath/ath12k/mac.c
12005
tpc_info->num_pwr_levels = max(local_psd->count,
drivers/net/wireless/ath/ath12k/mac.c
12023
tpc_info->num_pwr_levels = max(local_non_psd->count,
drivers/net/wireless/ath/ath12k/mac.c
13120
mac_nss = max(max3(ath12k_mac_max_ht_nss(ht_mcs_mask),
drivers/net/wireless/ath/ath12k/mac.c
13811
ar->freq_range.end_freq = max(ar->freq_range.end_freq,
drivers/net/wireless/ath/ath12k/mac.c
13920
freq_low = max(reg_cap->low_2ghz_chan,
drivers/net/wireless/ath/ath12k/mac.c
13965
freq_low = max(reg_cap->low_5ghz_chan,
drivers/net/wireless/ath/ath12k/mac.c
14020
freq_low = max(reg_cap->low_5ghz_chan,
drivers/net/wireless/ath/ath12k/mac.c
14129
limits[0].max = 1;
drivers/net/wireless/ath/ath12k/mac.c
14133
limits[1].max = max_interfaces;
drivers/net/wireless/ath/ath12k/mac.c
14144
limits[2].max = 1;
drivers/net/wireless/ath/ath12k/mac.c
14197
limits[j].max += iter_comb->limits[j].max;
drivers/net/wireless/ath/ath12k/mac.c
2424
arg->peer_max_mpdu = max(arg->peer_max_mpdu,
drivers/net/wireless/ath/ath12k/mac.c
3474
max_nss = max(max_nss, u8_get_bits(bw_20->rx_tx_mcs13_max_nss,
drivers/net/wireless/ath/ath12k/mac.c
3477
max_nss = max(max_nss, u8_get_bits(bw_20->rx_tx_mcs11_max_nss,
drivers/net/wireless/ath/ath12k/mac.c
3480
max_nss = max(max_nss, u8_get_bits(bw_20->rx_tx_mcs9_max_nss,
drivers/net/wireless/ath/ath12k/mac.c
3483
max_nss = max(max_nss, u8_get_bits(bw_20->rx_tx_mcs7_max_nss,
drivers/net/wireless/ath/ath12k/mac.c
3487
max_nss = max(max_nss, u8_get_bits(bw->rx_tx_mcs13_max_nss,
drivers/net/wireless/ath/ath12k/mac.c
3490
max_nss = max(max_nss, u8_get_bits(bw->rx_tx_mcs11_max_nss,
drivers/net/wireless/ath/ath12k/mac.c
3493
max_nss = max(max_nss, u8_get_bits(bw->rx_tx_mcs9_max_nss,
drivers/net/wireless/ath/ath12k/mac.c
562
nss = max(nss, u8_get_bits(eht_mcs[i], IEEE80211_EHT_MCS_NSS_RX));
drivers/net/wireless/ath/ath12k/mac.c
6618
mac_nss = max(mac_nss, ath12k_mac_max_eht_nss(eht_mcs_mask));
drivers/net/wireless/ath/ath12k/reg.c
307
freq_low = max(reg_cap->low_2ghz_chan, ab->reg_freq_2ghz.start_freq);
drivers/net/wireless/ath/ath12k/reg.c
319
freq_low = max(reg_cap->low_5ghz_chan, ab->reg_freq_5ghz.start_freq);
drivers/net/wireless/ath/ath12k/reg.c
326
freq_low = max(reg_cap->low_5ghz_chan, ab->reg_freq_6ghz.start_freq);
drivers/net/wireless/ath/ath5k/base.c
2558
{ .max = 2048, .types = BIT(NL80211_IFTYPE_STATION) },
drivers/net/wireless/ath/ath5k/base.c
2559
{ .max = 4, .types =
drivers/net/wireless/ath/ath5k/base.c
2658
hw->max_rate_tries = max(AR5K_INIT_RETRY_SHORT,
drivers/net/wireless/ath/ath5k/base.c
296
unsigned int mode, unsigned int max)
drivers/net/wireless/ath/ath5k/base.c
318
for (ch = 1; ch <= size && count < max; ch++) {
drivers/net/wireless/ath/ath5k/eeprom.c
510
ath5k_eeprom_read_freq_list(struct ath5k_hw *ah, int *offset, int max,
drivers/net/wireless/ath/ath5k/eeprom.c
520
while (i < max) {
drivers/net/wireless/ath/ath5k/eeprom.c
532
if (!freq2 || i >= max)
drivers/net/wireless/ath/ath5k/eeprom.c
646
ath5k_get_pcdac_intercepts(struct ath5k_hw *ah, u8 min, u8 max, u8 *vp)
drivers/net/wireless/ath/ath5k/eeprom.c
663
vp[i] = (ip[i] * max + (100 - ip[i]) * min) / 100;
drivers/net/wireless/ath/ath5k/phy.c
2462
return max(pwrL[0], pwrR[0]);
drivers/net/wireless/ath/ath5k/phy.c
2493
return max(min_pwrL, min_pwrR);
drivers/net/wireless/ath/ath5k/phy.c
2585
u8 mode, max, i;
drivers/net/wireless/ath/ath5k/phy.c
2606
max = ee->ee_n_piers[mode] - 1;
drivers/net/wireless/ath/ath5k/phy.c
2619
if (target > pcinfo[max].freq) {
drivers/net/wireless/ath/ath5k/phy.c
2620
idx_l = idx_r = max;
drivers/net/wireless/ath/ath5k/phy.c
2628
for (i = 0; i <= max; i++) {
drivers/net/wireless/ath/ath5k/phy.c
2673
u8 mode, max, i;
drivers/net/wireless/ath/ath5k/phy.c
2694
max = ee->ee_rate_target_pwr_num[mode] - 1;
drivers/net/wireless/ath/ath5k/phy.c
2703
if (target > rpinfo[max].freq) {
drivers/net/wireless/ath/ath5k/phy.c
2704
idx_l = idx_r = max;
drivers/net/wireless/ath/ath5k/phy.c
2708
for (i = 0; i <= max; i++) {
drivers/net/wireless/ath/ath5k/phy.c
3119
pwr_step = max(pdadc_tmp[1] - pdadc_tmp[0], 1);
drivers/net/wireless/ath/ath5k/phy.c
3144
pwr_step = max(pdadc_tmp[table_size - 1] -
drivers/net/wireless/ath/ath5k/phy.c
3309
table_max[pdg] = max(pdg_L->pd_pwr[pdg_L->pd_points - 1],
drivers/net/wireless/ath/ath5k/phy.c
3323
max(pdg_L->pd_pwr[pdg_L->pd_points - 1],
drivers/net/wireless/ath/ath5k/qcu.c
309
| AR5K_REG_SM(max(ah->ah_retry_long, ah->ah_retry_short),
drivers/net/wireless/ath/ath6kl/htc_mbox.c
130
count = max(count, cur_ep_dist->cred_per_msg);
drivers/net/wireless/ath/ath9k/ar5008_phy.c
1222
ah->nf_2g.max = AR_PHY_CCA_MAX_GOOD_VAL_5416_2GHZ;
drivers/net/wireless/ath/ath9k/ar5008_phy.c
1225
ah->nf_5g.max = AR_PHY_CCA_MAX_GOOD_VAL_5416_5GHZ;
drivers/net/wireless/ath/ath9k/ar5008_phy.c
1280
#define CCK_DELTA(_ah, x) ((OLC_FOR_AR9280_20_LATER(_ah)) ? max((x) - 2, 0) : (x))
drivers/net/wireless/ath/ath9k/ar9002_phy.c
357
ah->nf_2g.max = AR_PHY_CCA_MAX_GOOD_VAL_9285_2GHZ;
drivers/net/wireless/ath/ath9k/ar9002_phy.c
361
ah->nf_2g.max = AR_PHY_CCA_MAX_GOOD_VAL_9287_2GHZ;
drivers/net/wireless/ath/ath9k/ar9002_phy.c
365
ah->nf_2g.max = AR_PHY_CCA_MAX_GOOD_VAL_9271_2GHZ;
drivers/net/wireless/ath/ath9k/ar9002_phy.c
369
ah->nf_2g.max = AR_PHY_CCA_MAX_GOOD_VAL_9280_2GHZ;
drivers/net/wireless/ath/ath9k/ar9002_phy.c
372
ah->nf_5g.max = AR_PHY_CCA_MAX_GOOD_VAL_9280_5GHZ;
drivers/net/wireless/ath/ath9k/ar9003_phy.c
1366
ah->nf_2g.max = AR_PHY_CCA_MAX_GOOD_VAL_9300_2GHZ;
drivers/net/wireless/ath/ath9k/ar9003_phy.c
1369
ah->nf_5g.max = AR_PHY_CCA_MAX_GOOD_VAL_9300_5GHZ;
drivers/net/wireless/ath/ath9k/calib.c
115
if (h[i].privNF > limit->max) {
drivers/net/wireless/ath/ath9k/calib.c
120
i, h[i].privNF, limit->max,
drivers/net/wireless/ath/ath9k/calib.c
133
h[i].privNF = limit->max;
drivers/net/wireless/ath/ath9k/calib.c
383
if (nf[i] > limit->max) {
drivers/net/wireless/ath/ath9k/calib.c
386
i, nf[i], limit->max);
drivers/net/wireless/ath/ath9k/calib.c
387
nf[i] = limit->max;
drivers/net/wireless/ath/ath9k/common.c
355
int ath9k_cmn_count_streams(unsigned int chainmask, int max)
drivers/net/wireless/ath/ath9k/common.c
360
if (++streams == max)
drivers/net/wireless/ath/ath9k/common.h
87
int ath9k_cmn_count_streams(unsigned int chainmask, int max);
drivers/net/wireless/ath/ath9k/dfs.c
249
rssi = max(ard->rssi, ard->ext_rssi);
drivers/net/wireless/ath/ath9k/eeprom.c
554
minPwrT4[i] = max(pPwrL[0], pPwrR[0]);
drivers/net/wireless/ath/ath9k/htc_drv_init.c
696
{ .max = 2, .types = BIT(NL80211_IFTYPE_STATION) |
drivers/net/wireless/ath/ath9k/htc_drv_init.c
698
{ .max = 2, .types = BIT(NL80211_IFTYPE_AP) |
drivers/net/wireless/ath/ath9k/hw.c
550
ah->nf_2g.max = AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_2GHZ;
drivers/net/wireless/ath/ath9k/hw.c
551
ah->nf_5g.max = AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_5GHZ;
drivers/net/wireless/ath/ath9k/hw.h
756
s16 max;
drivers/net/wireless/ath/ath9k/init.c
831
{ .max = 2048, .types = BIT(NL80211_IFTYPE_STATION) },
drivers/net/wireless/ath/ath9k/init.c
832
{ .max = 8, .types =
drivers/net/wireless/ath/ath9k/init.c
837
{ .max = 1, .types = BIT(NL80211_IFTYPE_P2P_CLIENT) |
drivers/net/wireless/ath/ath9k/init.c
844
{ .max = 2, .types = BIT(NL80211_IFTYPE_STATION) |
drivers/net/wireless/ath/ath9k/init.c
848
{ .max = 1, .types = BIT(NL80211_IFTYPE_ADHOC) },
drivers/net/wireless/ath/ath9k/init.c
849
{ .max = 1, .types = BIT(NL80211_IFTYPE_P2P_DEVICE) },
drivers/net/wireless/ath/ath9k/rng.c
69
static int ath9k_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
drivers/net/wireless/ath/ath9k/rng.c
76
if (max & ~3UL)
drivers/net/wireless/ath/ath9k/rng.c
77
bytes_read = ath9k_rng_data_read(sc, buf, max >> 2);
drivers/net/wireless/ath/ath9k/rng.c
78
if ((max & 3UL) && ath9k_rng_data_read(sc, &word, 1)) {
drivers/net/wireless/ath/ath9k/rng.c
79
memcpy(buf + bytes_read, &word, max & 3UL);
drivers/net/wireless/ath/ath9k/rng.c
80
bytes_read += max & 3UL;
drivers/net/wireless/ath/ath9k/rng.c
83
if (!wait || !max || likely(bytes_read) || fail_stats > 110)
drivers/net/wireless/ath/ath9k/rng.c
90
if (wait && !bytes_read && max)
drivers/net/wireless/ath/ath9k/xmit.c
1237
txpower = max(txpower, 0);
drivers/net/wireless/ath/ath9k/xmit.c
897
ndelim = max(ndelim, FIRST_DESC_NDELIMS);
drivers/net/wireless/ath/ath9k/xmit.c
931
ndelim = max(mindelim, ndelim);
drivers/net/wireless/ath/carl9170/carl9170.h
130
u16 max; /* max. AMPDU size */
drivers/net/wireless/ath/carl9170/debug.c
311
iter->max, iter->state, iter->counter);
drivers/net/wireless/ath/carl9170/debug.c
47
#define ADD(buf, off, max, fmt, args...) \
drivers/net/wireless/ath/carl9170/debug.c
48
off += scnprintf(&buf[off], max - off, fmt, ##args)
drivers/net/wireless/ath/carl9170/fw.c
211
ar->if_comb_limits[0].max = ar->fw.vif_num;
drivers/net/wireless/ath/carl9170/main.c
1422
tid_info->max = sta_info->ampdu_max_len;
drivers/net/wireless/ath/carl9170/tx.c
1188
(tid_info->max - 1)))
drivers/net/wireless/ath/wcn36xx/hal.h
1846
u8 max:4;
drivers/net/wireless/ath/wcn36xx/hal.h
1850
u8 max:4;
drivers/net/wireless/ath/wil6210/cfg80211.c
2769
iface_limit[j].max = le16_to_cpu(limit[j].max);
drivers/net/wireless/ath/wil6210/cfg80211.c
2773
iface_limit[j].max, iface_limit[j].types);
drivers/net/wireless/ath/wil6210/fw.h
73
__le16 max; /* maximum number of interfaces of these types */
drivers/net/wireless/ath/wil6210/txrx.h
660
static inline bool wil_val_in_range(int val, int min, int max)
drivers/net/wireless/ath/wil6210/txrx.h
662
return val >= min && val < max;
drivers/net/wireless/broadcom/b43/main.c
4752
pu_delay = max(pu_delay, (u16)2400);
drivers/net/wireless/broadcom/b43/phy_g.c
2340
m2 = max(b43_tssi2dbm_ad(32768 + index * pab2, 256), 1);
drivers/net/wireless/broadcom/b43/phy_ht.c
722
pwr = max((4 * num + den / 2) / den, -8);
drivers/net/wireless/broadcom/b43/phy_lp.c
1767
static void lpphy_start_tx_tone(struct b43_wldev *dev, s32 freq, u16 max)
drivers/net/wireless/broadcom/b43/phy_lp.c
1791
buf[i] = CORDIC_FLOAT((sample.i * max) & 0xFF) << 8;
drivers/net/wireless/broadcom/b43/phy_lp.c
1792
buf[i] |= CORDIC_FLOAT((sample.q * max) & 0xFF);
drivers/net/wireless/broadcom/b43/phy_n.c
1530
static u16 b43_nphy_gen_load_samples(struct b43_wldev *dev, u32 freq, u16 max,
drivers/net/wireless/broadcom/b43/phy_n.c
1563
samples[i].q = CORDIC_FLOAT(samples[i].q * max);
drivers/net/wireless/broadcom/b43/phy_n.c
1564
samples[i].i = CORDIC_FLOAT(samples[i].i * max);
drivers/net/wireless/broadcom/b43/phy_n.c
4198
pwr = max((4 * num + den / 2) / den, -8);
drivers/net/wireless/broadcom/b43/phy_n.c
4200
pwr = max(pwr, target[c] + 1);
drivers/net/wireless/broadcom/b43/phy_n.c
5333
u16 tmp, core, type, count, max, numb, last = 0, cmd;
drivers/net/wireless/broadcom/b43/phy_n.c
5427
max = B43_NTAB_TX_IQLO_CAL_CMDS_FULLCAL_REV3;
drivers/net/wireless/broadcom/b43/phy_n.c
5429
max = B43_NTAB_TX_IQLO_CAL_CMDS_FULLCAL;
drivers/net/wireless/broadcom/b43/phy_n.c
5432
max = B43_NTAB_TX_IQLO_CAL_CMDS_RECAL_REV3;
drivers/net/wireless/broadcom/b43/phy_n.c
5434
max = B43_NTAB_TX_IQLO_CAL_CMDS_RECAL;
drivers/net/wireless/broadcom/b43/phy_n.c
5439
numb = min(max,
drivers/net/wireless/broadcom/b43/phy_n.c
5443
numb = max;
drivers/net/wireless/broadcom/b43/phy_n.c
5497
nphy->mphase_txcal_cmdidx = (numb >= max) ? 0 : numb;
drivers/net/wireless/broadcom/b43/phy_n.c
5836
u8 max; /* qdBm */
drivers/net/wireless/broadcom/b43/phy_n.c
5849
max = INT_TO_Q52(phy->chandef->chan->max_power);
drivers/net/wireless/broadcom/b43/phy_n.c
5851
max = min_t(u8, max, INT_TO_Q52(phy->desired_txpower));
drivers/net/wireless/broadcom/b43/phy_n.c
5852
b43_ppr_apply_max(dev, ppr, max);
drivers/net/wireless/broadcom/b43/ppr.c
35
void b43_ppr_apply_max(struct b43_wldev *dev, struct b43_ppr *ppr, u8 max)
drivers/net/wireless/broadcom/b43/ppr.c
41
*rate = min(*rate, max);
drivers/net/wireless/broadcom/b43/ppr.c
51
*rate = max(*rate, min);
drivers/net/wireless/broadcom/b43/ppr.c
62
res = max(*rate, res);
drivers/net/wireless/broadcom/b43/ppr.h
39
void b43_ppr_apply_max(struct b43_wldev *dev, struct b43_ppr *ppr, u8 max);
drivers/net/wireless/broadcom/b43/xmit.c
723
max(rxhdr->phy_ht_power0, rxhdr->phy_ht_power1),
drivers/net/wireless/broadcom/b43/xmit.c
729
status.signal = max(rxhdr->power1, rxhdr->power2);
drivers/net/wireless/broadcom/b43/xmit.c
731
status.signal = max(rxhdr->power0, rxhdr->power1);
drivers/net/wireless/broadcom/b43legacy/main.c
3151
pu_delay = max(pu_delay, (u16)2400);
drivers/net/wireless/broadcom/b43legacy/phy.c
1952
m2 = max(b43legacy_tssi2dbm_ad(32768 + index * pab2, 256), 1);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
7511
c0_limits[i].max = 1 + (p2p && mchan);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
7514
c0_limits[i].max = 1;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
7518
c0_limits[i].max = 1;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
7520
c0_limits[i].max = 1 + rsdb;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
7525
c0_limits[i].max = 2;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
7531
c0_limits[i].max = 2;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
7535
c0_limits[i].max = 1;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
7548
p2p_limits[i].max = 1;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
7550
p2p_limits[i].max = 1;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
7552
p2p_limits[i].max = 1;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
7554
p2p_limits[i].max = 1;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
7569
mbss_limits[i].max = 4;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
7572
mbss_limits[i].max = 1;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
7656
max_interfaces = max(max_interfaces, combo->max_interfaces);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c
434
maxpwr = max(maxpwr, 0);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c
473
maxpwr20 = max(maxpwr20, 0);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c
475
maxpwr40 = max(maxpwr40, 0);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c
1378
tx_pwr_target[rate] = max(maxtxpwr, mintxpwr);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c
1386
tx_pwr_max = max(tx_pwr_max, tx_pwr_target[rate]);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h
235
uint max;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c
17746
pwr_est = max(DIV_ROUND_CLOSEST(4 * num, den), -8);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c
17751
max(pwr_est,
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c
27024
lpf_biq1 = (u16) max(fine_gain_idx, 0);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c
27035
hpvga = (u16) max(min(((int)hpvga) + delta_pwr, 10), 0);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c
27421
rxlpf_rccal_hpc = max(min_t(u8, rxlpf_rccal_hpc, 31),
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c
27423
txlpf_rccal_lpc = max(min_t(u8, txlpf_rccal_lpc, 31),
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c
27603
curr_hpf = max(min_t(u16, curr_hpf, 10), 0);
drivers/net/wireless/broadcom/brcm80211/brcmutil/utils.c
176
pq->max = (u16) max_len;
drivers/net/wireless/broadcom/brcm80211/brcmutil/utils.c
179
pq->q[prec].max = pq->max;
drivers/net/wireless/broadcom/brcm80211/include/brcmu_utils.h
139
return (int)pq->max;
drivers/net/wireless/broadcom/brcm80211/include/brcmu_utils.h
144
return (int)(pq->max - pq->len);
drivers/net/wireless/broadcom/brcm80211/include/brcmu_utils.h
149
return pq->len >= pq->max;
drivers/net/wireless/broadcom/brcm80211/include/brcmu_utils.h
58
u16 max; /* maximum number of queued packets */
drivers/net/wireless/broadcom/brcm80211/include/brcmu_utils.h
65
u16 max; /* total max packets */
drivers/net/wireless/broadcom/brcm80211/include/brcmu_utils.h
83
return pq->q[prec].max - pq->q[prec].skblist.qlen;
drivers/net/wireless/broadcom/brcm80211/include/brcmu_utils.h
88
return pq->q[prec].skblist.qlen >= pq->q[prec].max;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
316
size_t max);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
4976
threshold = max(threshold, MIN_FRAG_THRESHOLD);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
8376
size_t max)
drivers/net/wireless/intel/ipw2x00/ipw2100.c
8385
tmp = max;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
8386
if (len >= max)
drivers/net/wireless/intel/ipw2x00/ipw2100.c
8387
len = max - 1;
drivers/net/wireless/intel/iwlegacy/4965-calib.c
136
val = max(silence_rssi_b, silence_rssi_c);
drivers/net/wireless/intel/iwlegacy/4965-calib.c
137
max_silence_rssi = max(silence_rssi_a, (u8) val);
drivers/net/wireless/intel/iwlegacy/4965-calib.c
148
silence_ref = max(silence_ref, val);
drivers/net/wireless/intel/iwlegacy/4965-calib.c
170
max_nrg_cck = (u32) max(max_nrg_cck, (data->nrg_value[i]));
drivers/net/wireless/intel/iwlegacy/4965-calib.c
255
data->nrg_th_cck = max(max_nrg_cck, data->nrg_th_cck);
drivers/net/wireless/intel/iwlegacy/4965-calib.c
282
data->auto_corr_cck = max((u32) ranges->auto_corr_min_cck, val);
drivers/net/wireless/intel/iwlegacy/4965-calib.c
285
max((u32) ranges->auto_corr_min_cck_mrc, val);
drivers/net/wireless/intel/iwlegacy/4965-calib.c
334
max((u32) ranges->auto_corr_min_ofdm, val);
drivers/net/wireless/intel/iwlegacy/4965-calib.c
338
max((u32) ranges->auto_corr_min_ofdm_mrc, val);
drivers/net/wireless/intel/iwlegacy/4965-calib.c
342
max((u32) ranges->auto_corr_min_ofdm_x1, val);
drivers/net/wireless/intel/iwlegacy/4965-calib.c
346
max((u32) ranges->auto_corr_min_ofdm_mrc_x1, val);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
491
max_rssi = max(ncphy->rssi_info[i << 1], max_rssi);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
5055
int max = ARRAY_SIZE(desc_lookup_text);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
5057
if (num < max)
drivers/net/wireless/intel/iwlegacy/4965-mac.c
5060
max = ARRAY_SIZE(advanced_lookup) - 1;
drivers/net/wireless/intel/iwlegacy/4965-mac.c
5061
for (i = 0; i < max; i++) {
drivers/net/wireless/intel/iwlegacy/4965.c
1105
current_temp = max(il->temperature, IL_TX_POWER_TEMPERATURE_MIN);
drivers/net/wireless/intel/iwlwifi/dvm/calib.c
152
val = max(silence_rssi_b, silence_rssi_c);
drivers/net/wireless/intel/iwlwifi/dvm/calib.c
153
max_silence_rssi = max(silence_rssi_a, (u8) val);
drivers/net/wireless/intel/iwlwifi/dvm/calib.c
164
silence_ref = max(silence_ref, val);
drivers/net/wireless/intel/iwlwifi/dvm/calib.c
187
max_nrg_cck = (u32) max(max_nrg_cck, (data->nrg_value[i]));
drivers/net/wireless/intel/iwlwifi/dvm/calib.c
272
data->nrg_th_cck = max(max_nrg_cck, data->nrg_th_cck);
drivers/net/wireless/intel/iwlwifi/dvm/calib.c
300
max((u32)ranges->auto_corr_min_cck, val);
drivers/net/wireless/intel/iwlwifi/dvm/calib.c
303
max((u32)ranges->auto_corr_min_cck_mrc, val);
drivers/net/wireless/intel/iwlwifi/dvm/calib.c
354
max((u32)ranges->auto_corr_min_ofdm, val);
drivers/net/wireless/intel/iwlwifi/dvm/calib.c
358
max((u32)ranges->auto_corr_min_ofdm_mrc, val);
drivers/net/wireless/intel/iwlwifi/dvm/calib.c
362
max((u32)ranges->auto_corr_min_ofdm_x1, val);
drivers/net/wireless/intel/iwlwifi/dvm/calib.c
366
max((u32)ranges->auto_corr_min_ofdm_mrc_x1, val);
drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c
43
.max = 1,
drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c
47
.max = 1,
drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c
54
.max = 2,
drivers/net/wireless/intel/iwlwifi/dvm/main.c
1608
int max = ARRAY_SIZE(desc_lookup_text);
drivers/net/wireless/intel/iwlwifi/dvm/main.c
1610
if (num < max)
drivers/net/wireless/intel/iwlwifi/dvm/main.c
1613
max = ARRAY_SIZE(advanced_lookup) - 1;
drivers/net/wireless/intel/iwlwifi/dvm/main.c
1614
for (i = 0; i < max; i++) {
drivers/net/wireless/intel/iwlwifi/fw/acpi.c
864
fwrt->geo_profiles[i].bands[j].max =
drivers/net/wireless/intel/iwlwifi/fw/acpi.c
865
fwrt->geo_profiles[i].bands[1].max;
drivers/net/wireless/intel/iwlwifi/fw/acpi.c
875
fwrt->geo_profiles[i].bands[j].max =
drivers/net/wireless/intel/iwlwifi/fw/regulatory.c
219
cpu_to_le16(fwrt->geo_profiles[i].bands[j].max);
drivers/net/wireless/intel/iwlwifi/fw/regulatory.c
229
fwrt->geo_profiles[i].bands[j].max);
drivers/net/wireless/intel/iwlwifi/fw/regulatory.h
89
u8 max;
drivers/net/wireless/intel/iwlwifi/iwl-drv.c
320
*api_min = max(cfg->ucode_api_min, base->ucode_api_min);
drivers/net/wireless/intel/iwlwifi/iwl-trans.c
197
return max(min_mode, escalation_list[index]);
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
41
.max = 2, \
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
45
.max = 1, \
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
51
.max = 1, \
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
65
.max = 2,
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
69
.max = 1,
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
74
.max = 1,
drivers/net/wireless/intel/iwlwifi/mld/power.c
245
keep_alive = max(keep_alive, POWER_KEEP_ALIVE_PERIOD_SEC);
drivers/net/wireless/intel/iwlwifi/mld/rx.c
196
max_energy = max(energy_a, energy_b);
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
344
mvm->fwrt.geo_profiles[tbl_idx - 1].bands[0].max);
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
349
mvm->fwrt.geo_profiles[tbl_idx - 1].bands[1].max);
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
36
.max = 1, \
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
40
.max = 1, \
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
46
.max = 1, \
drivers/net/wireless/intel/iwlwifi/mvm/power.c
367
keep_alive = max(keep_alive, POWER_KEEP_ALIVE_PERIOD_SEC);
drivers/net/wireless/intel/iwlwifi/mvm/quota.c
79
data->dbgfs_min[id] = max(data->dbgfs_min[id],
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
117
max_energy = max(energy_a, energy_b);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
308
max_energy = max(energy_a, energy_b);
drivers/net/wireless/intel/iwlwifi/mvm/sf.c
125
max_rx_nss = max(max_rx_nss, link_sta->rx_nss);
drivers/net/wireless/intel/iwlwifi/mvm/sta.c
3458
int i, max = -1, max_offs = -1;
drivers/net/wireless/intel/iwlwifi/mvm/sta.c
3471
if (mvm->fw_key_deleted[i] > max) {
drivers/net/wireless/intel/iwlwifi/mvm/sta.c
3472
max = mvm->fw_key_deleted[i];
drivers/net/wireless/intel/iwlwifi/mvm/tt.c
375
backoff = max(backoff, mvm->thermal_throttle.min_backoff);
drivers/net/wireless/intel/iwlwifi/mvm/tt.c
441
tx_backoff = max(tt->min_backoff,
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
529
unsigned int max;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
539
max = q->n_window;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
541
max = trans->mac_cfg->base->max_tfd_queue_size - 1;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
550
if (WARN_ON(used > max))
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
553
return max - used;
drivers/net/wireless/intersil/p54/eeprom.c
306
rawpower = max(rawpower, pda->val_qpsk);
drivers/net/wireless/intersil/p54/eeprom.c
307
rawpower = max(rawpower, pda->val_bpsk);
drivers/net/wireless/intersil/p54/eeprom.c
308
rawpower = max(rawpower, pda->val_16qam);
drivers/net/wireless/intersil/p54/eeprom.c
309
rawpower = max(rawpower, pda->val_64qam);
drivers/net/wireless/intersil/p54/txrx.c
59
largest_hole = max(largest_hole, free);
drivers/net/wireless/intersil/p54/txrx.c
62
largest_hole = max(largest_hole, free);
drivers/net/wireless/marvell/mwifiex/cfg80211.c
18
.max = MWIFIEX_MAX_BSS_NUM,
drivers/net/wireless/marvell/mwifiex/cfg80211.c
4075
chsw_msec = max(channel_sw->count * priv->bss_cfg.beacon_period, 100);
drivers/net/wireless/marvell/mwifiex/tdls.c
639
max(sizeof(struct ieee80211_mgmt),
drivers/net/wireless/marvell/mwifiex/tdls.c
825
max(sizeof(struct ieee80211_mgmt),
drivers/net/wireless/marvell/mwl8k.c
6144
{ .max = 8, .types = BIT(NL80211_IFTYPE_AP) },
drivers/net/wireless/marvell/mwl8k.c
6145
{ .max = 1, .types = BIT(NL80211_IFTYPE_STATION) },
drivers/net/wireless/mediatek/mt76/eeprom.c
320
*max_power = max(*max_power, pwr[i]);
drivers/net/wireless/mediatek/mt76/mt7603/init.c
317
.max = 1,
drivers/net/wireless/mediatek/mt76/mt7603/init.c
320
.max = MT7603_MAX_INTERFACES,
drivers/net/wireless/mediatek/mt76/mt7603/init.c
474
max_offset = max(max_offset, cur_offset);
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
1669
if (max(rssi0, rssi1) >= -40 &&
drivers/net/wireless/mediatek/mt76/mt7615/init.c
232
.max = 1,
drivers/net/wireless/mediatek/mt76/mt7615/init.c
235
.max = MT7615_MAX_INTERFACES,
drivers/net/wireless/mediatek/mt76/mt7615/init.c
305
target_power = max(target_power, eep[index]);
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
1006
ht->af = max(ht->af, af);
drivers/net/wireless/mediatek/mt76/mt76x02_phy.c
68
ret = max(ret, r->all[i]);
drivers/net/wireless/mediatek/mt76/mt76x02_util.c
35
.max = 1,
drivers/net/wireless/mediatek/mt76/mt76x02_util.c
38
.max = 8,
drivers/net/wireless/mediatek/mt76/mt76x02_util.c
51
.max = 1,
drivers/net/wireless/mediatek/mt76/mt76x02_util.c
54
.max = 2,
drivers/net/wireless/mediatek/mt76/mt76x2/pci_phy.c
273
db_diff = max(db_diff, t.lower_bound);
drivers/net/wireless/mediatek/mt76/mt7915/init.c
17
.max = 1,
drivers/net/wireless/mediatek/mt76/mt7915/init.c
20
.max = 16,
drivers/net/wireless/mediatek/mt76/mt7915/init.c
26
.max = MT7915_MAX_INTERFACES,
drivers/net/wireless/mediatek/mt76/mt7915/init.c
303
target_power = max(target_power, val);
drivers/net/wireless/mediatek/mt76/mt7915/soc.c
444
*result = max(0, min(127, *result));
drivers/net/wireless/mediatek/mt76/mt7921/mac.c
376
status->signal = max(status->signal,
drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.c
240
u8 idx, max;
drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.c
259
max = ARRAY_SIZE(asar->geo->tbl[idx].band);
drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.c
262
max = ARRAY_SIZE(asar->geo_v2->tbl[idx].band);
drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.c
279
if (idx >= max)
drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.c
295
u8 *limit, band, max;
drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.c
302
max = ARRAY_SIZE(asar->dyn->tbl[0].frp);
drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.c
305
max = ARRAY_SIZE(asar->dyn_v2->tbl[0].frp);
drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.c
308
if (idx >= max)
drivers/net/wireless/mediatek/mt76/mt792x_core.c
12
.max = MT792x_MAX_INTERFACES,
drivers/net/wireless/mediatek/mt76/mt792x_core.c
16
.max = 1,
drivers/net/wireless/mediatek/mt76/mt792x_core.c
33
.max = 2,
drivers/net/wireless/mediatek/mt76/mt792x_core.c
38
.max = 1,
drivers/net/wireless/mediatek/mt76/mt792x_core.c
42
.max = 1,
drivers/net/wireless/mediatek/mt76/mt792x_core.c
49
.max = 2,
drivers/net/wireless/mediatek/mt76/mt792x_core.c
54
.max = 1,
drivers/net/wireless/mediatek/mt76/mt792x_core.c
58
.max = 1,
drivers/net/wireless/mediatek/mt76/mt7996/init.c
18
.max = MT7996_MAX_INTERFACES * MT7996_MAX_RADIOS,
drivers/net/wireless/mediatek/mt76/mt7996/init.c
41
.max = 16,
drivers/net/wireless/mediatek/mt76/mt7996/init.c
47
.max = MT7996_MAX_INTERFACES,
drivers/net/wireless/mediatek/mt76/testmode.c
392
mt76_tm_get_u8(struct nlattr *attr, u8 *dest, u8 min, u8 max)
drivers/net/wireless/mediatek/mt76/testmode.c
400
if (val < min || val > max)
drivers/net/wireless/quantenna/qtnfmac/commands.c
1099
limits[i].max = le16_to_cpu(lim->max_num);
drivers/net/wireless/quantenna/qtnfmac/commands.c
1104
limits[i].max, limits[i].types);
drivers/net/wireless/ralink/rt2x00/rt2800lib.c
4795
txpower = max(0, txpower + delta - reg_limit);
drivers/net/wireless/ralink/rt2x00/rt2800lib.c
896
rssi0 = max(rssi0, rssi1);
drivers/net/wireless/ralink/rt2x00/rt2800lib.c
897
return (int)max(rssi0, rssi2);
drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
1338
if_limit->max = rt2x00dev->ops->max_ap_intf;
drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
1350
if_combination->max_interfaces = if_limit->max;
drivers/net/wireless/realtek/rtl8xxxu/core.c
5712
pwdb_max = max(pwdb_max, phy_stats1->pwdb[rx_path]);
drivers/net/wireless/realtek/rtl8xxxu/core.c
5737
pwdb_max = max(pwdb_max, phy_stats2->pwdb[rx_path]);
drivers/net/wireless/realtek/rtl8xxxu/core.c
7678
{ .max = 2, .types = BIT(NL80211_IFTYPE_STATION), },
drivers/net/wireless/realtek/rtl8xxxu/core.c
7679
{ .max = 1, .types = BIT(NL80211_IFTYPE_AP), },
drivers/net/wireless/realtek/rtlwifi/debug.c
122
int max = 0xff;
drivers/net/wireless/realtek/rtlwifi/debug.c
124
for (n = 0; n <= max; ) {
drivers/net/wireless/realtek/rtlwifi/debug.c
126
for (i = 0; i < 4 && n <= max; i++, n += 4)
drivers/net/wireless/realtek/rtlwifi/debug.c
164
int max = 0x40;
drivers/net/wireless/realtek/rtlwifi/debug.c
167
max = 0xff;
drivers/net/wireless/realtek/rtlwifi/debug.c
171
for (n = 0; n <= max; ) {
drivers/net/wireless/realtek/rtlwifi/debug.c
173
for (i = 0; i < 4 && n <= max; n += 1, i++)
drivers/net/wireless/realtek/rtlwifi/debug.c
80
int max = 0xff;
drivers/net/wireless/realtek/rtlwifi/debug.c
82
for (n = 0; n <= max; ) {
drivers/net/wireless/realtek/rtlwifi/debug.c
84
for (i = 0; i < 4 && n <= max; i++, n += 4)
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c
1491
max(rtlefuse->eeprom_chnlarea_txpwr_ht40_1s[rf_path][index] -
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c
167
max(rtlefuse->eeprom_chnlarea_txpwr_ht40_1s[rf_path][index] -
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c
372
long max = 0, min = 0xff;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c
385
if (stat->undec_sm_pwdb > max)
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c
386
max = stat->undec_sm_pwdb;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c
397
if (max != 0) {
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c
398
dm->entry_max_undec_sm_pwdb = max;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c
400
"EntryMaxPWDB = 0x%lx(%ld)\n", max, max);
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c
1453
max(rtlefuse->eeprom_chnlarea_txpwr_ht40_1s[rf_path][index] -
drivers/net/wireless/realtek/rtw88/debug.c
551
int max = 0xff;
drivers/net/wireless/realtek/rtw88/debug.c
554
for (n = 0; n <= max; ) {
drivers/net/wireless/realtek/rtw88/debug.c
556
for (i = 0; i < 4 && n <= max; i++, n += 4)
drivers/net/wireless/realtek/rtw88/debug.c
570
int max = 0xff;
drivers/net/wireless/realtek/rtw88/debug.c
573
for (n = 0; n <= max; ) {
drivers/net/wireless/realtek/rtw88/debug.c
575
for (i = 0; i < 4 && n <= max; i++, n += 4)
drivers/net/wireless/realtek/rtw88/main.c
109
.max = 1,
drivers/net/wireless/realtek/rtw88/main.c
113
.max = 1,
drivers/net/wireless/realtek/rtw88/rtw8723d.c
166
pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A],
drivers/net/wireless/realtek/rtw88/rtw8723d.c
194
pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A],
drivers/net/wireless/realtek/rtw88/rtw8814a.c
1240
middle1 = max(min(gain[RF_PATH_A], gain[RF_PATH_B]),
drivers/net/wireless/realtek/rtw88/rtw8814a.c
1242
middle2 = min(max(gain[RF_PATH_A], gain[RF_PATH_B]),
drivers/net/wireless/realtek/rtw88/rtw8814a.c
1243
max(gain[RF_PATH_C], gain[RF_PATH_D]));
drivers/net/wireless/realtek/rtw88/rtw8821c.c
658
pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A],
drivers/net/wireless/realtek/rtw88/rtw8822b.c
850
pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A],
drivers/net/wireless/realtek/rtw88/rtw8822c.c
157
u32 *min, u32 *max)
drivers/net/wireless/realtek/rtw88/rtw8822c.c
166
if (*max >= 0x200) {
drivers/net/wireless/realtek/rtw88/rtw8822c.c
167
if (*max < value)
drivers/net/wireless/realtek/rtw88/rtw8822c.c
168
*max = value;
drivers/net/wireless/realtek/rtw88/rtw8822c.c
176
if (*max >= 0x200) {
drivers/net/wireless/realtek/rtw88/rtw8822c.c
177
*max = value;
drivers/net/wireless/realtek/rtw88/rtw8822c.c
179
if (*max < value)
drivers/net/wireless/realtek/rtw88/rtw8822c.c
180
*max = value;
drivers/net/wireless/realtek/rtw88/rtw8822c.c
2594
pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A],
drivers/net/wireless/realtek/rtw88/sar.c
46
u8 max = rtwdev->chip->max_power_index;
drivers/net/wireless/realtek/rtw88/sar.c
55
return (s8)clamp_t(s32, tmp, -max - 1, max) - base;
drivers/net/wireless/realtek/rtw89/acpi.c
707
s16 max = rtw89_acpi_sar_normalize_hp_val(ptr->max);
drivers/net/wireless/realtek/rtw89/acpi.c
709
*val = clamp_t(s32, (*val) + delta, MIN_VAL_OF_RTW89_ACPI_SAR, max);
drivers/net/wireless/realtek/rtw89/acpi.c
718
s16 max = rtw89_acpi_sar_normalize_rt_val(ptr->max);
drivers/net/wireless/realtek/rtw89/acpi.c
720
*val = clamp_t(s32, (*val) + delta, MIN_VAL_OF_RTW89_ACPI_SAR, max);
drivers/net/wireless/realtek/rtw89/acpi.h
196
u8 max;
drivers/net/wireless/realtek/rtw89/acpi.h
230
u8 max;
drivers/net/wireless/realtek/rtw89/core.c
169
.max = 1,
drivers/net/wireless/realtek/rtw89/core.c
173
.max = 1,
drivers/net/wireless/realtek/rtw89/core.c
182
.max = 1,
drivers/net/wireless/realtek/rtw89/core.c
186
.max = 1,
drivers/net/wireless/realtek/rtw89/core.c
2610
bcn_stat->tbtt_tu_max = max(bcn_stat->tbtt_tu_max, tbtt_tu[i]);
drivers/net/wireless/realtek/rtw89/core.c
2631
bcn_dist->max = drift[RTW89_BCN_TRACK_STAT_NR - 1];
drivers/net/wireless/realtek/rtw89/core.c
2706
upper = max(upper, tbtt_tu_max);
drivers/net/wireless/realtek/rtw89/core.c
2775
bcn_timeout = bcn_dist->max;
drivers/net/wireless/realtek/rtw89/core.c
2781
bcn_timeout = (bcn_dist->max + bcn_dist->upper_bound) / 2;
drivers/net/wireless/realtek/rtw89/core.h
3983
u16 max;
drivers/net/wireless/realtek/rtw89/core.h
5268
u16 max;
drivers/net/wireless/realtek/rtw89/core.h
65
ALIGN(max(RTW89_RADIOTAP_ROOM_HE, RTW89_RADIOTAP_ROOM_EHT), 64)
drivers/net/wireless/realtek/rtw89/debug.c
4816
upper = max(upper, bcn_stat->tbtt_tu_max);
drivers/net/wireless/realtek/rtw89/efuse_be.c
226
u32 min, max;
drivers/net/wireless/realtek/rtw89/efuse_be.c
234
max = ALIGN(page_offset + size, 2);
drivers/net/wireless/realtek/rtw89/efuse_be.c
285
if (blk_page == page && log_idx >= min && log_idx < max) {
drivers/net/wireless/realtek/rtw89/efuse_be.c
291
} else if (log_idx + 2 == max &&
drivers/net/wireless/realtek/rtw89/efuse_be.c
292
page_offset + size < max) {
drivers/net/wireless/realtek/rtw89/mac.c
926
ch_cfg[ch].max > pub_cfg->pub_max)
drivers/net/wireless/realtek/rtw89/mac.c
982
u32_encode_bits(cfg[ch].max, B_AX_MAX_PG_MASK) |
drivers/net/wireless/realtek/rtw89/mac_be.c
333
u16 max_qt_wcpu = max(max_cfg->wcpu, min_qt_wcpu);
drivers/net/wireless/realtek/rtw89/phy.c
2306
return max(offset_patha, offset_pathb);
drivers/net/wireless/realtek/rtw89/phy.c
5118
max_cfo_lb = max(cfo->cfo_avg[i] - cfo_tol, max_cfo_lb);
drivers/net/wireless/realtek/rtw89/phy.c
5685
th_max = max(th_max, th);
drivers/net/wireless/realtek/rtw89/phy.c
7180
dig->dyn_igi_min = max(igi_min, ABS_IGI_MIN);
drivers/net/wireless/realtek/rtw89/ps.c
549
tsf_end = first ? tmp : max(tsf_end, tmp);
drivers/net/wireless/realtek/rtw89/ps.c
564
tsf_end = max(tsf_end, noa_once->tsf_end);
drivers/net/wireless/realtek/rtw89/rtw8852a.c
1522
val_2t = max(val_1t - 3, -16);
drivers/net/wireless/realtek/rtw89/rtw8852a.c
2169
raw = max(rx_power[RF_PATH_A], rx_power[RF_PATH_B]);
drivers/net/wireless/realtek/rtw89/rtw8852b_common.c
1978
status->signal = RTW89_RSSI_RAW_TO_DBM(max(rx_power[RF_PATH_A],
drivers/net/wireless/realtek/rtw89/rtw8852b_common.c
627
pwrofst = max(DIV_ROUND_CLOSEST(ext_loss_avg, 4) + 16, EDCCA_PWROFST_DEFAULT);
drivers/net/wireless/realtek/rtw89/rtw8852c.c
2025
pw_ofst_2tx = max(pw_ofst - 3, -32);
drivers/net/wireless/realtek/rtw89/rtw8852c.c
2959
status->signal = RTW89_RSSI_RAW_TO_DBM(max(rx_power[RF_PATH_A],
drivers/net/wireless/realtek/rtw89/rtw8922a.c
2757
status->signal = RTW89_RSSI_RAW_TO_DBM(max(rx_power[RF_PATH_A],
drivers/net/wireless/realtek/rtw89/sar.c
171
*cfg = max(cfg_a, cfg_b);
drivers/net/wireless/realtek/rtw89/wow.c
1540
opt.norm_pd = max(interval, 1) * 10; /* in unit of 100ms */
drivers/net/wireless/realtek/rtw89/wow.c
1541
opt.delay = max(rtw_wow->nd_config->delay, 1) * 1000;
drivers/net/wireless/rsi/rsi_91x_mac80211.c
145
.max = 1,
drivers/net/wireless/rsi/rsi_91x_mac80211.c
149
.max = 1,
drivers/net/wireless/rsi/rsi_91x_mac80211.c
155
.max = 1,
drivers/net/wireless/silabs/wfx/main.c
111
{ .max = 1, .types = BIT(NL80211_IFTYPE_STATION) },
drivers/net/wireless/silabs/wfx/main.c
112
{ .max = 1, .types = BIT(NL80211_IFTYPE_AP) },
drivers/net/wireless/ti/wl12xx/main.c
1742
.max = 3,
drivers/net/wireless/ti/wl12xx/main.c
1746
.max = 1,
drivers/net/wireless/ti/wl18xx/main.c
1879
.max = 2,
drivers/net/wireless/ti/wl18xx/main.c
1883
.max = 1,
drivers/net/wireless/ti/wl18xx/main.c
1892
.max = 1,
drivers/net/wireless/ti/wl18xx/main.c
1899
.max = 2,
drivers/net/wireless/ti/wl18xx/main.c
1904
.max = 1,
drivers/net/wireless/ti/wl18xx/main.c
1909
.max = 1,
drivers/net/wireless/ti/wlcore/main.c
543
wl->tx_blocks_available = max((int)wl->tx_blocks_available,
drivers/net/wireless/virtual/mac80211_hwsim.c
5478
data->if_limits[n_limits].max = 1;
drivers/net/wireless/virtual/mac80211_hwsim.c
5484
data->if_limits[n_limits].max = 2048;
drivers/net/wireless/virtual/mac80211_hwsim.c
5496
data->if_limits[n_limits].max = 1;
drivers/net/wireless/virtual/mac80211_hwsim.c
5503
data->if_limits[n_limits].max = 1;
drivers/net/wireless/virtual/mac80211_hwsim.c
5552
data->if_limits[i].max;
drivers/net/wireless/virtual/mac80211_hwsim.c
6239
chans = max(chans, data->channels);
drivers/net/wireless/zydas/zd1211rw/zd_chip.c
188
unsigned int i, j, t, max;
drivers/net/wireless/zydas/zd1211rw/zd_chip.c
195
max = count-i;
drivers/net/wireless/zydas/zd1211rw/zd_chip.c
196
if (max > USB_MAX_IOWRITE16_COUNT)
drivers/net/wireless/zydas/zd1211rw/zd_chip.c
197
max = USB_MAX_IOWRITE16_COUNT;
drivers/net/wireless/zydas/zd1211rw/zd_chip.c
198
for (j = 0; j < max; j++) {
drivers/net/wireless/zydas/zd1211rw/zd_chip.c
226
unsigned int i, j, t, max;
drivers/net/wireless/zydas/zd1211rw/zd_chip.c
232
max = count-i;
drivers/net/wireless/zydas/zd1211rw/zd_chip.c
233
if (max > USB_MAX_IOWRITE32_COUNT)
drivers/net/wireless/zydas/zd1211rw/zd_chip.c
234
max = USB_MAX_IOWRITE32_COUNT;
drivers/net/wireless/zydas/zd1211rw/zd_chip.c
235
for (j = 0; j < max; j++) {
drivers/net/wwan/t7xx/t7xx_port_proxy.c
53
(max(ARRAY_SIZE(t7xx_port_conf), ARRAY_SIZE(t7xx_early_port_conf)))
drivers/net/xen-netback/interface.c
357
int max = vif->can_sg ? ETH_MAX_MTU - VLAN_ETH_HLEN : ETH_DATA_LEN;
drivers/net/xen-netback/interface.c
359
if (mtu > max)
drivers/net/xen-netback/netback.c
188
max_burst = max(131072UL, queue->credit_bytes);
drivers/net/xen-netfront.c
1027
int max = XEN_NETIF_NR_SLOTS_MIN + (rx->status <= RX_COPY_THRESHOLD);
drivers/net/xen-netfront.c
1123
if (unlikely(slots > max)) {
drivers/net/xen-netfront.c
1381
int max = xennet_can_sg(dev) ? XEN_NETIF_MAX_TX_SIZE : ETH_DATA_LEN;
drivers/net/xen-netfront.c
1383
if (mtu > max)
drivers/ntb/msi.c
140
mw_size = max(mw_size, size_max);
drivers/ntb/ntb_transport.c
2474
copy_align = max(rx_chan ? rx_chan->device->copy_align : 0,
drivers/nvdimm/dimm_devs.c
722
resource_size_t max = 0;
drivers/nvdimm/dimm_devs.c
747
if (end - start + 1 > max)
drivers/nvdimm/dimm_devs.c
748
max = end - start + 1;
drivers/nvdimm/dimm_devs.c
751
return max;
drivers/nvdimm/label.c
1009
return max(num_labels, old_num_labels);
drivers/nvdimm/label.c
996
return max(num_labels, old_num_labels);
drivers/nvdimm/pfn_devs.c
761
align = max(nd_pfn->align, memremap_compat_align());
drivers/nvme/host/pci.c
2380
unsigned i, max, rw_queues;
drivers/nvme/host/pci.c
2390
max = min(dev->max_qid, dev->ctrl.queue_count - 1);
drivers/nvme/host/pci.c
2391
if (max != 1 && dev->io_queues[HCTX_TYPE_POLL]) {
drivers/nvme/host/pci.c
2395
rw_queues = max;
drivers/nvme/host/pci.c
2398
for (i = dev->online_queues; i <= max; i++) {
drivers/nvme/host/pci.c
2665
u64 max = (u64)max_host_mem_size_mb * SZ_1M;
drivers/nvme/host/pci.c
2674
preferred = min(preferred, max);
drivers/nvme/host/pci.c
2675
if (min > max) {
drivers/nvme/host/pci.c
3004
result = max(result - 1, 1);
drivers/nvme/target/pci-epf.c
2206
reg_bar_size = ALIGN(reg_size, max(epc_features->align, 4096));
drivers/nvme/target/rdma.c
1215
inline_sge_count = max(cm_id->device->attrs.max_sge_rd,
drivers/nvme/target/rdma.c
1293
qp_attr.cap.max_send_sge = max(ndev->device->attrs.max_sge_rd,
drivers/nvme/target/tcp.c
29
static int param_store_val(const char *str, int *val, int min, int max)
drivers/nvme/target/tcp.c
37
if (new_val < min || new_val > max)
drivers/of/property.c
132
const char *propname, u32 min, u32 max, size_t *len)
drivers/of/property.c
142
if (max && prop->length > max)
drivers/opp/core.c
336
unsigned long max;
drivers/opp/core.c
358
uV[i].max = 0;
drivers/opp/core.c
366
if (opp->supplies[i].u_volt_max > uV[i].max)
drivers/opp/core.c
367
uV[i].max = opp->supplies[i].u_volt_max;
drivers/opp/core.c
378
ret = regulator_set_voltage_time(reg, uV[i].min, uV[i].max);
drivers/parisc/ccio-dma.c
1039
unsigned long avg = 0, min, max;
drivers/parisc/ccio-dma.c
1061
min = max = ioc->avg_search[0];
drivers/parisc/ccio-dma.c
1064
if(ioc->avg_search[j] > max)
drivers/parisc/ccio-dma.c
1065
max = ioc->avg_search[j];
drivers/parisc/ccio-dma.c
1071
min, avg, max);
drivers/parisc/ccio-dma.c
1079
max = ioc->usingle_pages - ioc->usg_pages;
drivers/parisc/ccio-dma.c
1081
min, max, (int)((max * 1000)/min));
drivers/parisc/ccio-dma.c
1395
unsigned long min, unsigned long max, unsigned long align)
drivers/parisc/ccio-dma.c
1397
if (max <= min)
drivers/parisc/ccio-dma.c
1400
res->start = (max - size + 1) &~ (align - 1);
drivers/parisc/ccio-dma.c
1410
return new_ioc_area(res, size, min, max - size, align);
drivers/parisc/ccio-dma.c
1414
unsigned long min, unsigned long max, unsigned long align)
drivers/parisc/ccio-dma.c
1419
return new_ioc_area(res, size, min, max, align);
drivers/parisc/ccio-dma.c
1430
if (start + len <= max) {
drivers/parisc/ccio-dma.c
1447
unsigned long min, unsigned long max, unsigned long align)
drivers/parisc/ccio-dma.c
1456
!allocate_resource(parent, res, size, min, max, align, NULL, NULL))
drivers/parisc/ccio-dma.c
1460
!allocate_resource(parent + 1, res, size, min, max, align,
drivers/parisc/ccio-dma.c
1464
if (!expand_ioc_area(parent, size, min, max, align)) {
drivers/parisc/ccio-dma.c
1469
} else if (!expand_ioc_area(parent + 1, size, min, max, align)) {
drivers/parisc/ccio-dma.c
1480
return allocate_resource(parent, res, size, min, max, align, NULL,NULL);
drivers/parisc/dino.c
1046
max = pci_scan_child_bus(bus);
drivers/parisc/dino.c
1047
pci_bus_update_busn_res_end(bus, max);
drivers/parisc/dino.c
1052
dino_current_bus = max + 1;
drivers/parisc/dino.c
941
int max;
drivers/parisc/iommu.h
44
unsigned long min, unsigned long max, unsigned long align);
drivers/parisc/iommu.h
48
#define ccio_allocate_resource(dev, res, size, min, max, align) \
drivers/parisc/iommu.h
49
allocate_resource(&iomem_resource, res, size, min, max, \
drivers/parisc/lba_pci.c
1480
int max;
drivers/parisc/lba_pci.c
1636
max = pci_scan_child_bus(lba_bus);
drivers/parisc/lba_pci.c
1665
lba_next_bus = max + 1;
drivers/parisc/sba_iommu.c
1791
unsigned long avg = 0, min, max;
drivers/parisc/sba_iommu.c
1823
min = max = ioc->avg_search[0];
drivers/parisc/sba_iommu.c
1826
if (ioc->avg_search[i] > max) max = ioc->avg_search[i];
drivers/parisc/sba_iommu.c
1831
min, avg, max);
drivers/parisc/sba_iommu.c
1839
max = ioc->usingle_pages - ioc->usg_pages;
drivers/parisc/sba_iommu.c
1841
min, max, (int)((max * 1000)/min));
drivers/parport/probe.c
167
idlens[off] = max(belen, lelen);
drivers/pci/bus.c
198
resource_size_t max;
drivers/pci/bus.c
234
max = avail.end;
drivers/pci/bus.c
237
if (size > max - min_used + 1)
drivers/pci/bus.c
241
ret = allocate_resource(r, res, size, min_used, max,
drivers/pci/bus.c
314
start = max(r->start, res->start);
drivers/pci/controller/dwc/pcie-designware.c
1001
pci->region_limit = (max << 32) | (SZ_4G - 1);
drivers/pci/controller/dwc/pcie-designware.c
950
u64 max;
drivers/pci/controller/dwc/pcie-designware.c
993
max = dw_pcie_readl_atu(pci, dir, 0, PCIE_ATU_UPPER_LIMIT);
drivers/pci/controller/dwc/pcie-designware.c
995
max = 0;
drivers/pci/controller/pcie-rzg3s-host.c
1291
size = max(size, SZ_4K);
drivers/pci/endpoint/functions/pci-epf-vntb.c
558
high = max(high, addr);
drivers/pci/hotplug/acpiphp_glue.c
374
unsigned char max, n;
drivers/pci/hotplug/acpiphp_glue.c
384
max = bus->busn_res.start;
drivers/pci/hotplug/acpiphp_glue.c
388
if (n > max)
drivers/pci/hotplug/acpiphp_glue.c
389
max = n;
drivers/pci/hotplug/acpiphp_glue.c
391
return max;
drivers/pci/hotplug/acpiphp_glue.c
448
int max;
drivers/pci/hotplug/acpiphp_glue.c
453
max = bus->busn_res.start;
drivers/pci/hotplug/acpiphp_glue.c
457
max = pci_scan_bridge(bus, dev, max, 0);
drivers/pci/hotplug/acpiphp_glue.c
465
max = pci_scan_bridge(bus, dev, max, 1);
drivers/pci/hotplug/acpiphp_glue.c
502
int max, pass;
drivers/pci/hotplug/acpiphp_glue.c
505
max = acpiphp_max_busnr(bus);
drivers/pci/hotplug/acpiphp_glue.c
511
max = pci_scan_bridge(bus, dev, max, pass);
drivers/pci/hotplug/cpqphp_ctrl.c
625
struct pci_resource *max;
drivers/pci/hotplug/cpqphp_ctrl.c
636
for (max = *head; max; max = max->next) {
drivers/pci/hotplug/cpqphp_ctrl.c
640
if (max->length < size)
drivers/pci/hotplug/cpqphp_ctrl.c
643
if (max->base & (size - 1)) {
drivers/pci/hotplug/cpqphp_ctrl.c
647
temp_dword = (max->base | (size-1)) + 1;
drivers/pci/hotplug/cpqphp_ctrl.c
650
if ((max->length - (temp_dword - max->base)) < size)
drivers/pci/hotplug/cpqphp_ctrl.c
658
split_node->base = max->base;
drivers/pci/hotplug/cpqphp_ctrl.c
659
split_node->length = temp_dword - max->base;
drivers/pci/hotplug/cpqphp_ctrl.c
660
max->base = temp_dword;
drivers/pci/hotplug/cpqphp_ctrl.c
661
max->length -= split_node->length;
drivers/pci/hotplug/cpqphp_ctrl.c
663
split_node->next = max->next;
drivers/pci/hotplug/cpqphp_ctrl.c
664
max->next = split_node;
drivers/pci/hotplug/cpqphp_ctrl.c
667
if ((max->base + max->length) & (size - 1)) {
drivers/pci/hotplug/cpqphp_ctrl.c
675
temp_dword = ((max->base + max->length) & ~(size - 1));
drivers/pci/hotplug/cpqphp_ctrl.c
677
split_node->length = max->length + max->base
drivers/pci/hotplug/cpqphp_ctrl.c
679
max->length -= split_node->length;
drivers/pci/hotplug/cpqphp_ctrl.c
681
split_node->next = max->next;
drivers/pci/hotplug/cpqphp_ctrl.c
682
max->next = split_node;
drivers/pci/hotplug/cpqphp_ctrl.c
686
if (max->length < size)
drivers/pci/hotplug/cpqphp_ctrl.c
691
if (temp == max) {
drivers/pci/hotplug/cpqphp_ctrl.c
692
*head = max->next;
drivers/pci/hotplug/cpqphp_ctrl.c
694
while (temp && temp->next != max)
drivers/pci/hotplug/cpqphp_ctrl.c
698
temp->next = max->next;
drivers/pci/hotplug/cpqphp_ctrl.c
701
max->next = NULL;
drivers/pci/hotplug/cpqphp_ctrl.c
705
return max;
drivers/pci/hotplug/ibmphp_core.c
101
slot_count = max(slot_count, slot_cur->number);
drivers/pci/hotplug/ibmphp_ebda.c
474
opt_rio_ptr->middle_num = max(opt_rio_ptr->middle_num, rio_detail_ptr->first_slot_num);
drivers/pci/hotplug/ibmphp_ebda.c
514
opt_rio_lo_ptr->middle_num = max(opt_rio_lo_ptr->middle_num, rio_detail_ptr->first_slot_num);
drivers/pci/hotplug/ibmphp_ebda.c
760
bus_info_ptr2->slot_max = max(bus_info_ptr2->slot_max, slot_ptr->slot_num);
drivers/pci/hotplug/ibmphp_pci.c
1663
int min, max;
drivers/pci/hotplug/ibmphp_pci.c
1673
max = bus->slot_max;
drivers/pci/hotplug/ibmphp_pci.c
1675
if ((slotno > max) || (slotno < min)) {
drivers/pci/ide.c
207
static struct stream_index *alloc_stream_index(struct ida *ida, u16 max,
drivers/pci/ide.c
212
if (!max)
drivers/pci/ide.c
215
id = ida_alloc_max(ida, max - 1, GFP_KERNEL);
drivers/pci/iov.c
1140
int max = 0;
drivers/pci/iov.c
1146
if (dev->sriov->max_VF_buses > max)
drivers/pci/iov.c
1147
max = dev->sriov->max_VF_buses;
drivers/pci/iov.c
1150
return max ? max - bus->number : 0;
drivers/pci/pci-sysfs.c
170
int max;
drivers/pci/pci-sysfs.c
175
max = DEVICE_COUNT_RESOURCE;
drivers/pci/pci-sysfs.c
177
max = PCI_BRIDGE_RESOURCES;
drivers/pci/pci-sysfs.c
179
for (i = 0; i < max; i++) {
drivers/pci/pci.c
190
unsigned char max, n;
drivers/pci/pci.c
192
max = bus->busn_res.end;
drivers/pci/pci.c
195
if (n > max)
drivers/pci/pci.c
196
max = n;
drivers/pci/pci.c
198
return max;
drivers/pci/pci.c
4676
return max(min_delay, max_delay);
drivers/pci/pci.c
6590
int pci_bus_find_emul_domain_nr(u32 hint, u32 min, u32 max)
drivers/pci/pci.c
6592
return ida_alloc_range(&pci_domain_nr_dynamic_ida, max(hint, min), max,
drivers/pci/pci.c
85
unsigned int delay_ms = max(dev->d3hot_delay, pci_pm_d3hot_delay);
drivers/pci/pci.c
90
upper = max(DIV_ROUND_CLOSEST(delay_ms, 5), 1U);
drivers/pci/pci.h
424
u32 buses, int max,
drivers/pci/pci.h
440
u32 buses, int max,
drivers/pci/pci.h
444
return max;
drivers/pci/pcie/aer.c
751
int i, max = -1;
drivers/pci/pcie/aer.c
762
max = AER_MAX_TYPEOF_COR_ERRS;
drivers/pci/pcie/aer.c
768
max = AER_MAX_TYPEOF_UNCOR_ERRS;
drivers/pci/pcie/aer.c
773
max = AER_MAX_TYPEOF_UNCOR_ERRS;
drivers/pci/pcie/aer.c
777
for_each_set_bit(i, &status, max)
drivers/pci/pcie/aspm.c
650
t_common_mode = max(val1, val2);
drivers/pci/pcie/portdrv.c
86
nvec = max(nvec, *aer + 1);
drivers/pci/pcie/portdrv.c
97
nvec = max(nvec, *dpc + 1);
drivers/pci/probe.c
1396
int max, unsigned int available_buses,
drivers/pci/probe.c
1445
max = pci_cardbus_scan_bridge_extend(bus, dev, buses, max,
drivers/pci/probe.c
1485
if (subordinate > max)
drivers/pci/probe.c
1486
max = subordinate;
drivers/pci/probe.c
1517
next_busnr = max + 1;
drivers/pci/probe.c
1532
max++;
drivers/pci/probe.c
1545
max = pci_scan_child_bus_extend(child, available_buses);
drivers/pci/probe.c
1553
max = fixed_sub;
drivers/pci/probe.c
1554
pci_bus_update_busn_res_end(child, max);
drivers/pci/probe.c
1555
pci_write_config_byte(dev, PCI_SUBORDINATE_BUS, max);
drivers/pci/probe.c
1570
return max;
drivers/pci/probe.c
1592
int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, int pass)
drivers/pci/probe.c
1594
return pci_scan_bridge_extend(bus, dev, max, 0, pass);
drivers/pci/probe.c
3088
unsigned int devnr, cmax, max = start;
drivers/pci/probe.c
3099
max += used_buses;
drivers/pci/probe.c
3129
cmax = max;
drivers/pci/probe.c
3130
max = pci_scan_bridge_extend(bus, dev, max, 0, 0);
drivers/pci/probe.c
3137
if (max - cmax > 1)
drivers/pci/probe.c
3138
used_buses += max - cmax - 1;
drivers/pci/probe.c
3162
cmax = max;
drivers/pci/probe.c
3163
max = pci_scan_bridge_extend(bus, dev, cmax, buses, 1);
drivers/pci/probe.c
3165
if (max - cmax > 1)
drivers/pci/probe.c
3166
used_buses += max - cmax - 1;
drivers/pci/probe.c
3175
used_buses = max(available_buses, pci_hotplug_bus_size - 1);
drivers/pci/probe.c
3176
if (max - start < used_buses) {
drivers/pci/probe.c
3177
max = start + used_buses;
drivers/pci/probe.c
3180
if (max > bus->busn_res.end)
drivers/pci/probe.c
3181
max = bus->busn_res.end;
drivers/pci/probe.c
3184
&bus->busn_res, max - start);
drivers/pci/probe.c
3195
dev_dbg(&bus->dev, "bus scan returning with max=%02x\n", max);
drivers/pci/probe.c
3196
return max;
drivers/pci/probe.c
3373
int max, bus, ret;
drivers/pci/probe.c
3399
max = pci_scan_child_bus(b);
drivers/pci/probe.c
3402
pci_bus_update_busn_res_end(b, max);
drivers/pci/probe.c
3414
int max;
drivers/pci/probe.c
3433
max = pci_scan_child_bus(b);
drivers/pci/probe.c
3436
pci_bus_update_busn_res_end(b, max);
drivers/pci/probe.c
3474
unsigned int max;
drivers/pci/probe.c
3477
max = pci_scan_child_bus(bus);
drivers/pci/probe.c
3483
return max;
drivers/pci/probe.c
3497
unsigned int max;
drivers/pci/probe.c
3499
max = pci_scan_child_bus(bus);
drivers/pci/probe.c
3503
return max;
drivers/pci/probe.c
889
enum pci_bus_speed max;
drivers/pci/probe.c
895
max = PCI_SPEED_133MHz_PCIX_533;
drivers/pci/probe.c
897
max = PCI_SPEED_133MHz_PCIX_266;
drivers/pci/probe.c
900
max = PCI_SPEED_133MHz_PCIX_ECC;
drivers/pci/probe.c
902
max = PCI_SPEED_133MHz_PCIX;
drivers/pci/probe.c
904
max = PCI_SPEED_66MHz_PCIX;
drivers/pci/probe.c
907
bus->max_bus_speed = max;
drivers/pci/rebar.c
36
return max(ilog2(bytes), rebar_minsize) - rebar_minsize;
drivers/pci/setup-bus.c
1015
size = max(size, add_size) + children_add_size;
drivers/pci/setup-bus.c
1016
return ALIGN(max(size, old_size), align);
drivers/pci/setup-bus.c
1024
size = max(size, min_size) + children_add_size;
drivers/pci/setup-bus.c
1056
return max(align, arch_align);
drivers/pci/setup-bus.c
1241
*add_align = max(*add_align, dev_res->min_align);
drivers/pci/setup-bus.c
1256
*add_align = max(align, *add_align);
drivers/pci/setup-bus.c
1334
size += max(r_size, align);
drivers/pci/setup-bus.c
1344
min_align = max(min_align, win_align);
drivers/pci/setup-bus.c
1354
add_align = max(min_align, add_align);
drivers/pci/setup-cardbus.c
196
u32 buses, int max,
drivers/pci/setup-cardbus.c
218
return max;
drivers/pci/setup-cardbus.c
229
next_busnr = max + 1;
drivers/pci/setup-cardbus.c
240
return max;
drivers/pci/setup-cardbus.c
243
max++;
drivers/pci/setup-cardbus.c
269
if (pci_find_bus(pci_domain_nr(bus), max + i + 1))
drivers/pci/setup-cardbus.c
274
(parent->busn_res.end > max) &&
drivers/pci/setup-cardbus.c
275
(parent->busn_res.end <= max + i)) {
drivers/pci/setup-cardbus.c
289
max += i;
drivers/pci/setup-cardbus.c
296
max = fixed_sub;
drivers/pci/setup-cardbus.c
297
pci_bus_update_busn_res_end(child, max);
drivers/pci/setup-cardbus.c
298
pci_write_config_byte(dev, PCI_SUBORDINATE_BUS, max);
drivers/pci/setup-cardbus.c
305
return max;
drivers/pci/slot.c
110
int len, max, dup;
drivers/pci/slot.c
122
max = 1;
drivers/pci/slot.c
131
if (dup == max) {
drivers/pci/slot.c
133
max *= 10;
drivers/pcmcia/cardbus.c
70
unsigned int max, pass;
drivers/pcmcia/cardbus.c
76
max = bus->busn_res.start;
drivers/pcmcia/cardbus.c
79
max = pci_scan_bridge(bus, dev, max, pass);
drivers/pcmcia/cistpl.c
761
static int parse_strings(u_char *p, u_char *q, int max,
drivers/pcmcia/cistpl.c
769
for (i = 0; i < max; i++) {
drivers/pcmcia/cistpl.c
789
return (ns == max) ? 0 : -EINVAL;
drivers/pcmcia/rsrc_nonstatic.c
114
p->num = max(num + base - p->base, p->num);
drivers/pcmcia/rsrc_nonstatic.c
813
unsigned long min, max;
drivers/pcmcia/rsrc_nonstatic.c
827
max = 0x100000UL;
drivers/pcmcia/rsrc_nonstatic.c
828
min = base < max ? base : 0;
drivers/pcmcia/rsrc_nonstatic.c
830
max = ~0UL;
drivers/pcmcia/rsrc_nonstatic.c
844
res, num, min, max, 1,
drivers/peci/controller/peci-aspeed.c
446
u32 min, u32 max, u32 default_val, u32 *propval)
drivers/peci/controller/peci-aspeed.c
454
} else if (val > max || val < min) {
drivers/perf/arm-cci.c
361
ev_code <= cci_pmu->model->event_ranges[if_type].max)
drivers/perf/arm-cci.c
572
ev_code <= cci_pmu->model->event_ranges[if_type].max)
drivers/perf/arm-cci.c
624
ev_code <= cci_pmu->model->event_ranges[if_type].max)
drivers/perf/arm-cci.c
65
u32 max;
drivers/perf/arm-cmn.c
2511
if (max(cmn->mesh_x, cmn->mesh_y) > CMN_MAX_DIMENSION) {
drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c
127
u32 max = hisi_get_tgtid_max(event);
drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c
129
if (tgtid_is_valid(max, min)) {
drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c
130
u32 val = (max << regs->tgtid_max_shift) |
drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c
146
u32 max = hisi_get_tgtid_max(event);
drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c
148
if (tgtid_is_valid(max, min)) {
drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c
87
static bool tgtid_is_valid(u32 max, u32 min)
drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c
89
return max > 0 && max >= min;
drivers/phy/mediatek/phy-mtk-tphy.c
388
u32 max = 0;
drivers/phy/mediatek/phy-mtk-tphy.c
397
max = FIELD_MAX(PA1_RG_VRT_SEL);
drivers/phy/mediatek/phy-mtk-tphy.c
403
max = FIELD_MAX(PA1_RG_TERM_SEL);
drivers/phy/mediatek/phy-mtk-tphy.c
409
max = 1;
drivers/phy/mediatek/phy-mtk-tphy.c
418
max = FIELD_MAX(PA1_RG_INTR_CAL);
drivers/phy/mediatek/phy-mtk-tphy.c
424
max = FIELD_MAX(PA6_RG_U2_DISCTH);
drivers/phy/mediatek/phy-mtk-tphy.c
430
max = FIELD_MAX(PA6_RG_U2_PRE_EMP);
drivers/phy/mediatek/phy-mtk-tphy.c
438
seq_printf(sf, "%s : %d [0, %d]\n", u2_phy_files[ret], val, max);
drivers/phy/mediatek/phy-mtk-tphy.c
520
u32 max = 0;
drivers/phy/mediatek/phy-mtk-tphy.c
528
max = 1;
drivers/phy/mediatek/phy-mtk-tphy.c
534
max = FIELD_MAX(P3A_RG_IEXT_INTR);
drivers/phy/mediatek/phy-mtk-tphy.c
540
max = FIELD_MAX(P3D_RG_TX_IMPEL);
drivers/phy/mediatek/phy-mtk-tphy.c
546
max = FIELD_MAX(P3D_RG_RX_IMPEL);
drivers/phy/mediatek/phy-mtk-tphy.c
554
seq_printf(sf, "%s : %d [0, %d]\n", u3_phy_files[ret], val, max);
drivers/phy/phy-core-mipi-dphy.c
164
if (cfg->hs_trail < max(8 * ui, 60000 + 4 * ui))
drivers/phy/phy-core-mipi-dphy.c
66
cfg->hs_trail = max(4 * 8 * ui, 60000 + 4 * 4 * ui);
drivers/phy/phy-spacemit-k1-pcie.c
554
u32 max;
drivers/phy/phy-spacemit-k1-pcie.c
564
max = port_a ? 1 : 2;
drivers/phy/phy-spacemit-k1-pcie.c
567
count, max);
drivers/phy/phy-spacemit-k1-pcie.c
569
return max;
drivers/phy/qualcomm/phy-qcom-edp.c
309
v_level = max(v_level, dp_opts->voltage[i]);
drivers/phy/qualcomm/phy-qcom-edp.c
310
p_level = max(p_level, dp_opts->pre[i]);
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
3120
v_level = max(v_level, dp_opts->voltage[i]);
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
3121
p_level = max(p_level, dp_opts->pre[i]);
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
4784
u32 *data_lanes, unsigned int max,
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
4799
if (*count > max)
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
4803
min_t(unsigned int, *count, max));
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c
793
v_level = max(v_level, dp_opts->voltage[i]);
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c
794
p_level = max(p_level, dp_opts->pre[i]);
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c
1044
if ((arg >= tb->min && arg <= tb->max) && !(arg % tb->step)) {
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c
1095
if ((arg >= tb->min && arg <= tb->max) && !(arg % tb->step)) {
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c
34
u8 max;
drivers/pinctrl/pinctrl-at91.c
1902
gpio_banks = max(gpio_banks, alias_idx + 1);
drivers/pinctrl/pinctrl-microchip-sgpio.c
976
val = max(2U, div_clock / priv->clock);
drivers/pinctrl/sophgo/pinctrl-cv18xx.c
133
if (mux > pin->mux.max)
drivers/pinctrl/sophgo/pinctrl-cv18xx.c
140
if (mux2 > pin->mux2.max)
drivers/pinctrl/sophgo/pinctrl-cv18xx.h
122
.max = (_mux_func_max), \
drivers/pinctrl/sophgo/pinctrl-cv18xx.h
127
.max = (_mux2_func_max), \
drivers/pinctrl/sophgo/pinctrl-cv18xx.h
28
u8 max;
drivers/pinctrl/sophgo/pinctrl-cv18xx.h
34
u8 max;
drivers/pinctrl/sophgo/pinctrl-cv18xx.h
83
.max = (_mux_func_max), \
drivers/pinctrl/sophgo/pinctrl-cv18xx.h
99
.max = (_mux_func_max), \
drivers/pinctrl/starfive/pinctrl-starfive-jh7110-sys.c
158
u8 max;
drivers/pinctrl/starfive/pinctrl-starfive-jh7110-sys.c
297
if (func > fs->max)
drivers/pinctrl/stm32/pinctrl-stm32.c
1670
npins = max(npins, (int)(args.args[0] + args.args[2]));
drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
794
num_drvctrl = max(num_drvctrl, drvctrl + 1);
drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
797
num_drv2ctrl = max(num_drv2ctrl, drvctrl + 1);
drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
800
num_drv3ctrl = max(num_drv3ctrl, drvctrl + 1);
drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
808
num_pupdctrl = max(num_pupdctrl, pupdctrl + 1);
drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
813
num_iectrl = max(num_iectrl, iectrl + 1);
drivers/platform/chrome/cros_ec_chardev.c
285
s_cmd = kzalloc(sizeof(*s_cmd) + max(u_cmd.outsize, u_cmd.insize),
drivers/platform/chrome/cros_ec_debugfs.c
319
msg = kzalloc(sizeof(*msg) + max(sizeof(*params), sizeof(*response)),
drivers/platform/chrome/cros_ec_debugfs.c
363
max(read_params_size, read_response_size), GFP_KERNEL);
drivers/platform/chrome/cros_ec_lightbar.c
101
int len = max(ec->ec_dev->max_response, ec->ec_dev->max_request);
drivers/platform/chrome/cros_ec_proto.c
1002
msg = kzalloc(sizeof(*msg) + max(sizeof(*params), sizeof(*resp)),
drivers/platform/chrome/cros_ec_proto.c
1072
msg = kzalloc(sizeof(*msg) + max(insize, outsize), GFP_KERNEL);
drivers/platform/chrome/cros_ec_proto.c
428
msg = kzalloc(sizeof(*msg) + max(sizeof(*params), sizeof(*response)), GFP_KERNEL);
drivers/platform/chrome/cros_ec_proto.c
502
msg = kmalloc(sizeof(*msg) + max(sizeof(*rver), sizeof(*pver)),
drivers/platform/chrome/cros_ec_sensorhub.c
149
max((u16)sizeof(struct ec_params_motion_sense),
drivers/platform/chrome/cros_ec_vbc.c
33
const size_t payload = max(para_sz, resp_sz);
drivers/platform/cznic/turris-omnia-mcu-gpio.c
772
return max(omnia_compute_reply_length(rising, true, 0),
drivers/platform/cznic/turris-omnia-mcu-trng.c
32
static int omnia_trng_read(struct hwrng *rng, void *data, size_t max, bool wait)
drivers/platform/cznic/turris-omnia-mcu-trng.c
51
bytes = min3(reply[0], max, OMNIA_CMD_TRNG_MAX_ENTROPY_LEN);
drivers/platform/surface/aggregator/ssh_packet_layer.c
1591
next = max(next, ktime_add(now, SSH_PTL_PACKET_TIMEOUT_RESOLUTION));
drivers/platform/surface/aggregator/ssh_packet_layer.c
209
#define SSH_PTL_PACKET_TIMEOUT_RESOLUTION ms_to_ktime(max(2000 / HZ, 50))
drivers/platform/surface/aggregator/ssh_request_layer.c
44
#define SSH_RTL_REQUEST_TIMEOUT_RESOLUTION ms_to_ktime(max(2000 / HZ, 50))
drivers/platform/surface/aggregator/ssh_request_layer.c
891
next = max(next, ktime_add(now, SSH_RTL_REQUEST_TIMEOUT_RESOLUTION));
drivers/platform/x86/amd/pmf/spc.c
191
u16 max, avg = 0;
drivers/platform/x86/amd/pmf/spc.c
195
max = *core_res;
drivers/platform/x86/amd/pmf/spc.c
198
if (core_res[i] > max)
drivers/platform/x86/amd/pmf/spc.c
199
max = core_res[i];
drivers/platform/x86/amd/pmf/spc.c
203
in->ev_info.max_c0residency = max;
drivers/platform/x86/asus-armoury.c
278
const char *buf, size_t count, u32 min, u32 max,
drivers/platform/x86/asus-armoury.c
288
if (value < min || value > max)
drivers/platform/x86/asus-armoury.h
42
const char *buf, size_t count, u32 min, u32 max,
drivers/platform/x86/asus-wmi.c
4330
int max;
drivers/platform/x86/asus-wmi.c
4333
max = read_brightness_max(asus);
drivers/platform/x86/asus-wmi.c
4334
if (max < 0)
drivers/platform/x86/asus-wmi.c
4335
return max;
drivers/platform/x86/asus-wmi.c
4345
props.max_brightness = max;
drivers/platform/x86/dell/dell-smbios-base.c
244
if (!token_blacklist[i].min || !token_blacklist[i].max)
drivers/platform/x86/dell/dell-smbios-base.c
247
t <= token_blacklist[i].max)
drivers/platform/x86/dell/dell-smbios-base.c
253
if (!token_whitelist[i].min || !token_whitelist[i].max)
drivers/platform/x86/dell/dell-smbios-base.c
256
t > token_whitelist[i].max)
drivers/platform/x86/dell/dell-smbios-base.c
87
u16 max;
drivers/platform/x86/dell/dell-wmi-ddv.c
111
s8 max;
drivers/platform/x86/dell/dell-wmi-ddv.c
366
*val = entry[channel].max * 1000;
drivers/platform/x86/gpd-pocket-fan.c
87
temp = max(t0, t1);
drivers/platform/x86/hp/hp-wmi.c
549
actual_insize = max(insize, 128);
drivers/platform/x86/intel/uncore-frequency/uncore-frequency-tpmi.c
155
unsigned int min, max, v;
drivers/platform/x86/intel/uncore-frequency/uncore-frequency-tpmi.c
159
max = 0;
drivers/platform/x86/intel/uncore-frequency/uncore-frequency-tpmi.c
173
if (v > max)
drivers/platform/x86/intel/uncore-frequency/uncore-frequency-tpmi.c
174
max = v;
drivers/platform/x86/intel/uncore-frequency/uncore-frequency-tpmi.c
181
*value = max;
drivers/platform/x86/lenovo/ideapad-laptop.c
1512
unsigned long max, now, power;
drivers/platform/x86/lenovo/ideapad-laptop.c
1515
err = read_ec_data(priv->adev->handle, VPCCMD_R_BL_MAX, &max);
drivers/platform/x86/lenovo/ideapad-laptop.c
1529
props.max_brightness = max;
drivers/platform/x86/lenovo/thinkpad_acpi.c
1021
unsigned long max, unsigned long *value)
drivers/platform/x86/lenovo/thinkpad_acpi.c
1027
if (*endp || *value > max)
drivers/platform/x86/lenovo/thinkpad_acpi.c
7328
uinfo->value.integer.max = TP_EC_VOLUME_MAX;
drivers/platform/x86/lg-laptop.c
27
#define LED_DEVICE(_name, max, flag) struct led_classdev _name = { \
drivers/platform/x86/lg-laptop.c
29
.max_brightness = max, \
drivers/platform/x86/sony-laptop.c
3038
u8 min = 0xff, max = 0x00;
drivers/platform/x86/sony-laptop.c
3078
if (buffer[i] > max)
drivers/platform/x86/sony-laptop.c
3079
max = buffer[i];
drivers/platform/x86/sony-laptop.c
3084
props->maxlvl = max;
drivers/platform/x86/x86-android-tablets/lenovo.c
939
{ .max = 11, .key = KEY_PLAYPAUSE },
drivers/platform/x86/x86-android-tablets/lenovo.c
940
{ .max = 186, .key = KEY_VOICECOMMAND },
drivers/platform/x86/x86-android-tablets/lenovo.c
941
{ .max = 348, .key = KEY_VOLUMEUP },
drivers/platform/x86/x86-android-tablets/lenovo.c
942
{ .max = 752, .key = KEY_VOLUMEDOWN },
drivers/pmdomain/bcm/bcm-pmb.c
302
max_id = max(max_id, e->id);
drivers/pmdomain/bcm/bcm63xx-power.c
114
max_bit = max(max_bit, entry->bit);
drivers/pmdomain/qcom/cpr.c
1206
corner->max_uV = max(corner->min_uV, fuse->uV);
drivers/pmdomain/qcom/cpr.c
491
error_steps = max(desc->up_threshold,
drivers/pmdomain/qcom/cpr.c
528
error_steps = max(desc->down_threshold,
drivers/pmdomain/qcom/cpr.c
552
new_uV = max(new_uV, corner->min_uV);
drivers/pmdomain/qcom/cpr.c
893
end->max_uV = max(end->max_uV, end->uV);
drivers/pmdomain/qcom/rpmhpd.c
1115
corner = max(pd->corner, pd->enable_corner);
drivers/pmdomain/qcom/rpmhpd.c
888
peer_enabled_corner = max(peer->corner, peer->enable_corner);
drivers/pmdomain/qcom/rpmhpd.c
893
active_corner = max(this_active_corner, peer_active_corner);
drivers/pmdomain/qcom/rpmhpd.c
910
sleep_corner = max(this_sleep_corner, peer_sleep_corner);
drivers/pmdomain/qcom/rpmhpd.c
927
corner = max(pd->corner, pd->enable_corner);
drivers/pmdomain/qcom/rpmpd.c
1012
active_corner = max(this_active_corner, peer_active_corner);
drivers/pmdomain/qcom/rpmpd.c
1018
sleep_corner = max(this_sleep_corner, peer_sleep_corner);
drivers/pnp/base.h
27
resource_size_t max; /* max base number */
drivers/pnp/base.h
48
resource_size_t max; /* max base number */
drivers/pnp/base.h
83
resource_size_t min, resource_size_t max,
drivers/pnp/base.h
87
resource_size_t min, resource_size_t max,
drivers/pnp/interface.c
160
(unsigned long long) mem->max,
drivers/pnp/interface.c
62
(unsigned long long) port->max,
drivers/pnp/isapnp/core.c
452
resource_size_t min, max, align, len;
drivers/pnp/isapnp/core.c
457
max = (tmp[4] << 8) | tmp[3];
drivers/pnp/isapnp/core.c
462
min, max, align, len, flags);
drivers/pnp/isapnp/core.c
490
resource_size_t min, max, align, len;
drivers/pnp/isapnp/core.c
495
max = ((tmp[4] << 8) | tmp[3]) << 8;
drivers/pnp/isapnp/core.c
500
min, max, align, len, flags);
drivers/pnp/isapnp/core.c
511
resource_size_t min, max, align, len;
drivers/pnp/isapnp/core.c
516
max = (tmp[8] << 24) | (tmp[7] << 16) | (tmp[6] << 8) | tmp[5];
drivers/pnp/isapnp/core.c
521
min, max, align, len, flags);
drivers/pnp/manager.c
118
if (res->start > rule->max || !rule->align) {
drivers/pnp/manager.c
122
(unsigned long long) rule->max);
drivers/pnp/manager.c
67
if (res->start > rule->max || !rule->align) {
drivers/pnp/manager.c
71
(unsigned long long) rule->max);
drivers/pnp/pnpbios/rsparser.c
221
resource_size_t min, max, align, len;
drivers/pnp/pnpbios/rsparser.c
225
max = ((p[7] << 8) | p[6]) << 8;
drivers/pnp/pnpbios/rsparser.c
229
pnp_register_mem_resource(dev, option_flags, min, max, align, len,
drivers/pnp/pnpbios/rsparser.c
237
resource_size_t min, max, align, len;
drivers/pnp/pnpbios/rsparser.c
241
max = (p[11] << 24) | (p[10] << 16) | (p[9] << 8) | p[8];
drivers/pnp/pnpbios/rsparser.c
245
pnp_register_mem_resource(dev, option_flags, min, max, align, len,
drivers/pnp/pnpbios/rsparser.c
292
resource_size_t min, max, align, len;
drivers/pnp/pnpbios/rsparser.c
296
max = (p[5] << 8) | p[4];
drivers/pnp/pnpbios/rsparser.c
300
pnp_register_port_resource(dev, option_flags, min, max, align, len,
drivers/pnp/quirks.c
124
if (n == 3 && port->min == port->max) {
drivers/pnp/quirks.c
125
port->max += 0x70;
drivers/pnp/quirks.c
132
(unsigned long long) port->max);
drivers/pnp/quirks.c
41
new_option->u.port.max += offset;
drivers/pnp/quirks.c
46
(unsigned long long) new_option->u.port.max,
drivers/pnp/resource.c
112
port->max = max;
drivers/pnp/resource.c
122
resource_size_t min, resource_size_t max,
drivers/pnp/resource.c
135
mem->max = max;
drivers/pnp/resource.c
99
resource_size_t min, resource_size_t max,
drivers/pnp/support.c
129
(unsigned long long) port->max,
drivers/pnp/support.c
138
(unsigned long long) mem->max,
drivers/power/supply/88pm860x_battery.c
533
int min, int max)
drivers/power/supply/88pm860x_battery.c
545
if (max <= 0)
drivers/power/supply/88pm860x_battery.c
548
data = (max << 8) / 1800;
drivers/power/supply/88pm860x_battery.c
550
dev_dbg(info->dev, "TEMP_LOWTH:max : %d, 0x%x\n", max, data);
drivers/power/supply/88pm860x_battery.c
558
int max;
drivers/power/supply/88pm860x_battery.c
574
max = TBAT_NEG_10D * GPBIAS2_GPADC1_UA / 1000;
drivers/power/supply/88pm860x_battery.c
575
set_temp_threshold(info, 0, max);
drivers/power/supply/88pm860x_battery.c
578
max = TBAT_NEG_10D * GPBIAS2_GPADC1_UA / 1000;
drivers/power/supply/88pm860x_battery.c
579
set_temp_threshold(info, 0, max);
drivers/power/supply/88pm860x_battery.c
583
max = TBAT_40D * GPBIAS2_GPADC1_UA / 1000;
drivers/power/supply/88pm860x_battery.c
584
set_temp_threshold(info, min, max);
drivers/power/supply/88pm860x_battery.c
588
max = TBAT_40D * GPBIAS2_GPADC1_UA / 1000;
drivers/power/supply/88pm860x_battery.c
589
set_temp_threshold(info, min, max);
drivers/power/supply/88pm860x_battery.c
593
max = TBAT_40D * GPBIAS2_GPADC1_UA / 1000;
drivers/power/supply/88pm860x_battery.c
594
set_temp_threshold(info, min, max);
drivers/power/supply/88pm860x_battery.c
598
max = TBAT_40D * GPBIAS2_GPADC1_UA / 1000;
drivers/power/supply/88pm860x_battery.c
599
set_temp_threshold(info, min, max);
drivers/power/supply/88pm860x_battery.c
603
max = TBAT_40D * GPBIAS2_GPADC1_UA / 1000;
drivers/power/supply/88pm860x_battery.c
604
set_temp_threshold(info, min, max);
drivers/power/supply/88pm860x_charger.c
135
int min, int max)
drivers/power/supply/88pm860x_charger.c
147
if (max <= 0)
drivers/power/supply/88pm860x_charger.c
150
data = (max << 5) / 1125;
drivers/power/supply/88pm860x_charger.c
152
dev_dbg(info->dev, "VCHG_HIGHTH:%dmv, 0x%x\n", max, data);
drivers/power/supply/88pm860x_charger.c
157
int min, int max)
drivers/power/supply/88pm860x_charger.c
169
if (max <= 0)
drivers/power/supply/88pm860x_charger.c
172
data = (max << 5) / 675;
drivers/power/supply/88pm860x_charger.c
174
dev_dbg(info->dev, "VBAT Max:%dmv, HIGHTH:0x%x\n", max, data);
drivers/power/supply/ab8500_fg.c
1209
max(capacity, di->bm->fg_params->maint_thres);
drivers/power/supply/ab8500_fg.c
1270
max(di->bat_cap.prev_percent,
drivers/power/supply/axp20x_usb_power.c
449
const unsigned int max = power->axp_data->curr_lim_table_size;
drivers/power/supply/axp20x_usb_power.c
474
for (reg = max - 1; reg > 0; reg--)
drivers/power/supply/bq25890_charger.c
330
u32 max;
drivers/power/supply/bq25890_charger.c
394
rtbl_size = (rtbl->max - rtbl->min) / rtbl->step + 1;
drivers/power/supply/bq25980_charger.c
392
batocp = max(batocp, BQ25980_BATOCP_MIN_uA);
drivers/power/supply/bq27xxx_battery.c
1519
unsigned int min, max;
drivers/power/supply/bq27xxx_battery.c
1537
max = di->dm_regs[BQ27XXX_DM_DESIGN_ENERGY].max;
drivers/power/supply/bq27xxx_battery.c
1538
if (info->energy_full_design_uwh > max * 1000) {
drivers/power/supply/bq27xxx_battery.c
1545
max = di->dm_regs[BQ27XXX_DM_DESIGN_CAPACITY].max;
drivers/power/supply/bq27xxx_battery.c
1546
if (info->charge_full_design_uah > max * 1000) {
drivers/power/supply/bq27xxx_battery.c
1553
max = di->dm_regs[BQ27XXX_DM_TERMINATE_VOLTAGE].max;
drivers/power/supply/bq27xxx_battery.c
1555
info->voltage_min_design_uv > max * 1000) &&
drivers/power/supply/bq27xxx_battery.c
905
u16 min, max;
drivers/power/supply/cros_peripheral_charger.c
67
msg = kzalloc_flex(*msg, data, max(outsize, insize));
drivers/power/supply/cros_usbpd-charger.c
97
msg = kzalloc_flex(*msg, data, max(outsize, insize));
drivers/power/supply/cw2015_battery.c
508
val->intval = max(cw_bat->battery->charge_full_design_uah, 0);
drivers/power/supply/mp2629_charger.c
185
if (val->intval < props[fld].min || val->intval > props[fld].max)
drivers/power/supply/mp2629_charger.c
52
.max = _max, \
drivers/power/supply/mp2629_charger.c
92
int max;
drivers/power/supply/qcom_smbb.c
182
unsigned int max;
drivers/power/supply/qcom_smbb.c
190
.max = 3000000,
drivers/power/supply/qcom_smbb.c
199
.max = 3000000,
drivers/power/supply/qcom_smbb.c
206
.max = 2500000,
drivers/power/supply/qcom_smbb.c
213
.max = 5000000,
drivers/power/supply/qcom_smbb.c
222
.max = 5000000,
drivers/power/supply/qcom_smbb.c
229
.max = 3600000,
drivers/power/supply/qcom_smbb.c
236
.max = 5000000,
drivers/power/supply/qcom_smbb.c
243
.max = 9600000,
drivers/power/supply/qcom_smbb.c
250
.max = 2500000,
drivers/power/supply/qcom_smbb.c
266
if (val > prop->max || val < prop->min) {
drivers/power/supply/qcom_smbb.c
268
prop->name, prop->min, prop->max);
drivers/power/supply/rx51_battery.c
115
while (max - min > 1) {
drivers/power/supply/rx51_battery.c
116
int mid = (max + min) / 2;
drivers/power/supply/rx51_battery.c
120
max = mid;
drivers/power/supply/rx51_battery.c
96
int max = ARRAY_SIZE(rx51_temp_table2) - 1;
drivers/power/supply/sc2731_charger.c
439
unsigned int min, max;
drivers/power/supply/sc2731_charger.c
449
usb_phy_get_charger_current(info->usb_phy, &min, &max);
drivers/powercap/dtpm_cpu.c
73
unsigned long max, sum_util = 0;
drivers/powercap/dtpm_cpu.c
80
max = arch_scale_cpu_capacity(cpumask_first(pd_mask));
drivers/powercap/dtpm_cpu.c
85
return (power * ((sum_util << 10) / max)) >> 10;
drivers/ptp/ptp_sysfs.c
285
u32 max;
drivers/ptp/ptp_sysfs.c
287
if (kstrtou32(buf, 0, &max) || max == 0 || max > PTP_MAX_VCLOCKS_LIMIT)
drivers/ptp/ptp_sysfs.c
290
if (max == ptp->max_vclocks)
drivers/ptp/ptp_sysfs.c
296
if (max < ptp->n_vclocks)
drivers/ptp/ptp_sysfs.c
299
vclock_index = kcalloc(max, sizeof(int), GFP_KERNEL);
drivers/ptp/ptp_sysfs.c
310
ptp->max_vclocks = max;
drivers/pwm/pwm-atmel-tcb.c
271
unsigned long long max;
drivers/pwm/pwm-atmel-tcb.c
286
max = min << tcbpwmc->width;
drivers/pwm/pwm-atmel-tcb.c
287
if (max >= period_ns)
drivers/pwm/pwm-atmel-tcb.c
299
max = min << tcbpwmc->width;
drivers/pwm/pwm-atmel-tcb.c
302
if (max < period_ns)
drivers/pwm/pwm-imx1.c
68
u32 max, p;
drivers/pwm/pwm-imx1.c
87
max = readl(imx->mmio_base + MX1_PWMP);
drivers/pwm/pwm-imx1.c
88
p = mul_u64_u64_div_u64(max, duty_ns, period_ns);
drivers/pwm/pwm-imx1.c
90
writel(max - p, imx->mmio_base + MX1_PWMS);
drivers/pwm/pwm-sti.c
552
chip = devm_pwmchip_alloc(dev, max(pwm_num_devs, cpt_num_devs), sizeof(*pc));
drivers/pwm/pwm-xilinx.c
117
period_cycles = min_t(u64, period_cycles, priv->max + 2);
drivers/pwm/pwm-xilinx.c
124
duty_cycles = min_t(u64, duty_cycles, priv->max + 2);
drivers/pwm/pwm-xilinx.c
257
priv->max = BIT_ULL(width) - 1;
drivers/pwm/pwm-xilinx.c
37
WARN_ON(cycles < 2 || cycles - 2 > priv->max);
drivers/pwm/pwm-xilinx.c
41
return priv->max - cycles + 2;
drivers/pwm/pwm-xilinx.c
52
cycles = (u64)priv->max - tlr + 2;
drivers/rapidio/rio-scan.c
121
destid = find_first_bit(idtab->table, idtab->max);
drivers/rapidio/rio-scan.c
122
if (destid >= idtab->max)
drivers/rapidio/rio-scan.c
141
destid = find_next_bit(idtab->table, idtab->max, from);
drivers/rapidio/rio-scan.c
142
if (destid >= idtab->max)
drivers/rapidio/rio-scan.c
40
u32 max; /* max number of IDs in table */
drivers/rapidio/rio-scan.c
62
destid = find_first_zero_bit(idtab->table, idtab->max);
drivers/rapidio/rio-scan.c
64
if (destid < idtab->max) {
drivers/rapidio/rio-scan.c
864
idtab->max = RIO_MAX_ROUTE_ENTRIES(mport->sys_size);
drivers/ras/cec.c
188
int min = 0, max = ca->n - 1;
drivers/ras/cec.c
191
while (min <= max) {
drivers/ras/cec.c
192
int i = (min + max) >> 1;
drivers/ras/cec.c
199
max = i - 1;
drivers/regulator/axp20x-regulator.c
1314
u32 min, max, def, step;
drivers/regulator/axp20x-regulator.c
1320
max = 1875;
drivers/regulator/axp20x-regulator.c
1345
max = 4050;
drivers/regulator/axp20x-regulator.c
1376
if (dcdcfreq > max) {
drivers/regulator/axp20x-regulator.c
1377
dcdcfreq = max;
drivers/regulator/axp20x-regulator.c
1379
max);
drivers/regulator/bd71815-regulator.c
426
#define BD71815_BUCK_REG(_name, _id, vsel, ereg, min, max, step, _dvs) \
drivers/regulator/bd71815-regulator.c
432
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/bd71815-regulator.c
448
#define BD71815_BUCK12_REG(_name, _id, vsel, ereg, min, max, step, \
drivers/regulator/bd71815-regulator.c
455
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/bd71815-regulator.c
494
#define BD71815_LDO_REG(_name, _id, vsel, ereg, emsk, min, max, step, \
drivers/regulator/bd71815-regulator.c
501
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/core.c
4223
*min_uV = max(*current_uV - constraints->max_uV_step,
drivers/regulator/core.c
4286
highest_min_uV = max(highest_min_uV, tmp_min);
drivers/regulator/core.c
4301
target_uV = max(desired_min_uV, highest_min_uV - max_spread);
drivers/regulator/core.c
4318
max_current_uV = max(tmp_act, max_current_uV);
drivers/regulator/core.c
4329
possible_uV = max(target_uV, max_current_uV - max_spread);
drivers/regulator/da903x-regulator.c
309
#define DA903x_LDO(_pmic, _id, min, max, step, vreg, shift, nbits, ereg, ebit) \
drivers/regulator/da903x-regulator.c
316
.n_voltages = (step) ? ((max - min) / step + 1) : 1, \
drivers/regulator/da903x-regulator.c
321
.max_uV = (max) * 1000, \
drivers/regulator/da903x-regulator.c
329
#define DA903x_DVC(_pmic, _id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
drivers/regulator/da903x-regulator.c
336
.n_voltages = (step) ? ((max - min) / step + 1) : 1, \
drivers/regulator/da903x-regulator.c
341
.max_uV = (max) * 1000, \
drivers/regulator/da903x-regulator.c
351
#define DA9034_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \
drivers/regulator/da903x-regulator.c
352
DA903x_LDO(DA9034, _id, min, max, step, vreg, shift, nbits, ereg, ebit)
drivers/regulator/da903x-regulator.c
354
#define DA9030_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \
drivers/regulator/da903x-regulator.c
355
DA903x_LDO(DA9030, _id, min, max, step, vreg, shift, nbits, ereg, ebit)
drivers/regulator/da903x-regulator.c
357
#define DA9030_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
drivers/regulator/da903x-regulator.c
358
DA903x_DVC(DA9030, _id, min, max, step, vreg, nbits, ureg, ubit, \
drivers/regulator/da903x-regulator.c
361
#define DA9034_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
drivers/regulator/da903x-regulator.c
362
DA903x_DVC(DA9034, _id, min, max, step, vreg, nbits, ureg, ubit, \
drivers/regulator/da903x-regulator.c
365
#define DA9035_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
drivers/regulator/da903x-regulator.c
366
DA903x_DVC(DA9035, _id, min, max, step, vreg, nbits, ureg, ubit, \
drivers/regulator/da9052-regulator.c
286
#define DA9052_LDO(_id, _name, step, min, max, sbits, ebits, abits) \
drivers/regulator/da9052-regulator.c
295
.n_voltages = (max - min) / step + 1, \
drivers/regulator/da9052-regulator.c
303
.max_uV = (max) * 1000,\
drivers/regulator/da9052-regulator.c
308
#define DA9052_DCDC(_id, _name, step, min, max, sbits, ebits, abits) \
drivers/regulator/da9052-regulator.c
317
.n_voltages = (max - min) / step + 1, \
drivers/regulator/da9052-regulator.c
325
.max_uV = (max) * 1000,\
drivers/regulator/da9055-regulator.c
330
#define DA9055_LDO(_id, step, min, max, vbits, voffset) \
drivers/regulator/da9055-regulator.c
339
.n_voltages = (max - min) / step + 1 + (voffset), \
drivers/regulator/da9055-regulator.c
360
#define DA9055_BUCK(_id, step, min, max, vbits, voffset, mbits, sbits) \
drivers/regulator/da9055-regulator.c
369
.n_voltages = (max - min) / step + 1 + (voffset), \
drivers/regulator/da9121-regulator.c
218
int min, int max,
drivers/regulator/da9121-regulator.c
229
if (range->val_min > max || range->val_max < min) {
drivers/regulator/da9121-regulator.c
238
if (level <= max) {
drivers/regulator/da9211-regulator.c
167
int max)
drivers/regulator/da9211-regulator.c
194
max >= current_limits[i]) {
drivers/regulator/helpers.c
941
unsigned int s, tmp, max, maxsel = 0;
drivers/regulator/helpers.c
944
max = table[0];
drivers/regulator/helpers.c
947
if (table[s] > max) {
drivers/regulator/helpers.c
948
max = table[s];
drivers/regulator/max8907-regulator.c
46
#define REG_LDO(ids, supply, base, min, max, step) \
drivers/regulator/max8907-regulator.c
51
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/max8907-regulator.c
89
#define REG_BBAT(ids, supply, base, min, max, step) \
drivers/regulator/max8907-regulator.c
94
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/max8925-regulator.c
155
#define MAX8925_SDV(_id, min, max, step) \
drivers/regulator/max8925-regulator.c
173
#define MAX8925_LDO(_id, min, max, step) \
drivers/regulator/max8973-regulator.c
159
struct max8973_chip *max = rdev_get_drvdata(rdev);
drivers/regulator/max8973-regulator.c
163
ret = regmap_read(max->regmap, max->curr_vout_reg, &data);
drivers/regulator/max8973-regulator.c
165
dev_err(max->dev, "register %d read failed, err = %d\n",
drivers/regulator/max8973-regulator.c
166
max->curr_vout_reg, ret);
drivers/regulator/max8973-regulator.c
175
struct max8973_chip *max = rdev_get_drvdata(rdev);
drivers/regulator/max8973-regulator.c
178
int vout_reg = max->curr_vout_reg;
drivers/regulator/max8973-regulator.c
179
int gpio_val = max->curr_gpio_val;
drivers/regulator/max8973-regulator.c
185
if (max->dvs_gpiod)
drivers/regulator/max8973-regulator.c
186
found = find_voltage_set_register(max, vsel,
drivers/regulator/max8973-regulator.c
190
ret = regmap_update_bits(max->regmap, vout_reg,
drivers/regulator/max8973-regulator.c
193
dev_err(max->dev, "register %d update failed, err %d\n",
drivers/regulator/max8973-regulator.c
197
max->curr_vout_reg = vout_reg;
drivers/regulator/max8973-regulator.c
198
max->curr_vout_val[gpio_val] = vsel;
drivers/regulator/max8973-regulator.c
202
if (max->dvs_gpiod) {
drivers/regulator/max8973-regulator.c
203
gpiod_set_value_cansleep(max->dvs_gpiod, gpio_val & 0x1);
drivers/regulator/max8973-regulator.c
204
max->curr_gpio_val = gpio_val;
drivers/regulator/max8973-regulator.c
211
struct max8973_chip *max = rdev_get_drvdata(rdev);
drivers/regulator/max8973-regulator.c
229
ret = regmap_update_bits(max->regmap, MAX8973_CONTROL1,
drivers/regulator/max8973-regulator.c
232
dev_err(max->dev, "register %d update failed, err %d\n",
drivers/regulator/max8973-regulator.c
239
struct max8973_chip *max = rdev_get_drvdata(rdev);
drivers/regulator/max8973-regulator.c
243
ret = regmap_read(max->regmap, MAX8973_CONTROL1, &data);
drivers/regulator/max8973-regulator.c
245
dev_err(max->dev, "register %d read failed, err %d\n",
drivers/regulator/max8973-regulator.c
256
struct max8973_chip *max = rdev_get_drvdata(rdev);
drivers/regulator/max8973-regulator.c
267
ret = regmap_update_bits(max->regmap, MAX8973_CONTROL2,
drivers/regulator/max8973-regulator.c
270
dev_err(max->dev, "register %d update failed: %d\n",
drivers/regulator/max8973-regulator.c
279
struct max8973_chip *max = rdev_get_drvdata(rdev);
drivers/regulator/max8973-regulator.c
283
ret = regmap_read(max->regmap, MAX8973_CONTROL2, &control2);
drivers/regulator/max8973-regulator.c
285
dev_err(max->dev, "register %d read failed: %d\n",
drivers/regulator/max8973-regulator.c
316
static int max8973_init_dcdc(struct max8973_chip *max,
drivers/regulator/max8973-regulator.c
324
ret = regmap_read(max->regmap, MAX8973_CONTROL1, &data);
drivers/regulator/max8973-regulator.c
326
dev_err(max->dev, "register %d read failed, err = %d",
drivers/regulator/max8973-regulator.c
333
max->desc.ramp_delay = 12000;
drivers/regulator/max8973-regulator.c
336
max->desc.ramp_delay = 25000;
drivers/regulator/max8973-regulator.c
339
max->desc.ramp_delay = 50000;
drivers/regulator/max8973-regulator.c
342
max->desc.ramp_delay = 200000;
drivers/regulator/max8973-regulator.c
357
max->desc.enable_time = 20;
drivers/regulator/max8973-regulator.c
359
max->desc.enable_time = 240;
drivers/regulator/max8973-regulator.c
366
(max->id == MAX77621))
drivers/regulator/max8973-regulator.c
410
ret = regmap_write(max->regmap, MAX8973_CONTROL1, control1);
drivers/regulator/max8973-regulator.c
412
dev_err(max->dev, "register %d write failed, err = %d",
drivers/regulator/max8973-regulator.c
417
ret = regmap_write(max->regmap, MAX8973_CONTROL2, control2);
drivers/regulator/max8973-regulator.c
419
dev_err(max->dev, "register %d write failed, err = %d",
drivers/regulator/max8973-regulator.c
425
if (max->enable_external_control && (max->id == MAX8973)) {
drivers/regulator/max8973-regulator.c
426
ret = regmap_update_bits(max->regmap, MAX8973_VOUT,
drivers/regulator/max8973-regulator.c
429
dev_err(max->dev, "register %d update failed, err = %d",
drivers/regulator/max8973-regulator.c
590
struct max8973_chip *max;
drivers/regulator/max8973-regulator.c
609
max = devm_kzalloc(&client->dev, sizeof(*max), GFP_KERNEL);
drivers/regulator/max8973-regulator.c
610
if (!max)
drivers/regulator/max8973-regulator.c
613
max->dvs_gpiod = devm_gpiod_get_optional(&client->dev, "maxim,dvs",
drivers/regulator/max8973-regulator.c
615
if (IS_ERR(max->dvs_gpiod))
drivers/regulator/max8973-regulator.c
616
return dev_err_probe(&client->dev, PTR_ERR(max->dvs_gpiod),
drivers/regulator/max8973-regulator.c
618
gpiod_set_consumer_name(max->dvs_gpiod, "max8973-dvs");
drivers/regulator/max8973-regulator.c
620
max->regmap = devm_regmap_init_i2c(client, &max8973_regmap_config);
drivers/regulator/max8973-regulator.c
621
if (IS_ERR(max->regmap)) {
drivers/regulator/max8973-regulator.c
622
ret = PTR_ERR(max->regmap);
drivers/regulator/max8973-regulator.c
634
max->id = (u32)((uintptr_t)match->data);
drivers/regulator/max8973-regulator.c
636
max->id = id->driver_data;
drivers/regulator/max8973-regulator.c
639
ret = regmap_read(max->regmap, MAX8973_CHIPID1, &chip_id);
drivers/regulator/max8973-regulator.c
648
i2c_set_clientdata(client, max);
drivers/regulator/max8973-regulator.c
649
max->ops = max8973_dcdc_ops;
drivers/regulator/max8973-regulator.c
650
max->dev = &client->dev;
drivers/regulator/max8973-regulator.c
651
max->desc.name = id->name;
drivers/regulator/max8973-regulator.c
652
max->desc.id = 0;
drivers/regulator/max8973-regulator.c
653
max->desc.ops = &max->ops;
drivers/regulator/max8973-regulator.c
654
max->desc.type = REGULATOR_VOLTAGE;
drivers/regulator/max8973-regulator.c
655
max->desc.owner = THIS_MODULE;
drivers/regulator/max8973-regulator.c
656
max->desc.min_uV = MAX8973_MIN_VOLATGE;
drivers/regulator/max8973-regulator.c
657
max->desc.uV_step = MAX8973_VOLATGE_STEP;
drivers/regulator/max8973-regulator.c
658
max->desc.n_voltages = MAX8973_BUCK_N_VOLTAGE;
drivers/regulator/max8973-regulator.c
659
max->desc.ramp_reg = MAX8973_CONTROL1;
drivers/regulator/max8973-regulator.c
660
max->desc.ramp_mask = MAX8973_RAMP_MASK;
drivers/regulator/max8973-regulator.c
661
max->desc.ramp_delay_table = max8973_buck_ramp_table;
drivers/regulator/max8973-regulator.c
662
max->desc.n_ramp_values = ARRAY_SIZE(max8973_buck_ramp_table);
drivers/regulator/max8973-regulator.c
664
max->enable_external_control = pdata->enable_ext_control;
drivers/regulator/max8973-regulator.c
665
max->curr_gpio_val = pdata->dvs_def_state;
drivers/regulator/max8973-regulator.c
666
max->curr_vout_reg = MAX8973_VOUT + pdata->dvs_def_state;
drivers/regulator/max8973-regulator.c
667
max->junction_temp_warning = pdata->junction_temp_warning;
drivers/regulator/max8973-regulator.c
669
max->lru_index[0] = max->curr_vout_reg;
drivers/regulator/max8973-regulator.c
671
if (max->dvs_gpiod) {
drivers/regulator/max8973-regulator.c
679
max->lru_index[i] = i;
drivers/regulator/max8973-regulator.c
680
max->lru_index[0] = max->curr_vout_reg;
drivers/regulator/max8973-regulator.c
681
max->lru_index[max->curr_vout_reg] = 0;
drivers/regulator/max8973-regulator.c
687
max->ops.set_voltage_sel = regulator_set_voltage_sel_regmap;
drivers/regulator/max8973-regulator.c
688
max->ops.get_voltage_sel = regulator_get_voltage_sel_regmap;
drivers/regulator/max8973-regulator.c
689
max->desc.vsel_reg = max->curr_vout_reg;
drivers/regulator/max8973-regulator.c
690
max->desc.vsel_mask = MAX8973_VOUT_MASK;
drivers/regulator/max8973-regulator.c
695
client->dev.of_node, &max->desc);
drivers/regulator/max8973-regulator.c
698
switch (max->id) {
drivers/regulator/max8973-regulator.c
701
max->desc.enable_reg = MAX8973_VOUT;
drivers/regulator/max8973-regulator.c
702
max->desc.enable_mask = MAX8973_VOUT_ENABLE;
drivers/regulator/max8973-regulator.c
703
max->ops.enable = regulator_enable_regmap;
drivers/regulator/max8973-regulator.c
704
max->ops.disable = regulator_disable_regmap;
drivers/regulator/max8973-regulator.c
705
max->ops.is_enabled = regulator_is_enabled_regmap;
drivers/regulator/max8973-regulator.c
722
max->enable_external_control = true;
drivers/regulator/max8973-regulator.c
738
max->enable_external_control = true;
drivers/regulator/max8973-regulator.c
740
max->desc.enable_reg = MAX8973_VOUT;
drivers/regulator/max8973-regulator.c
741
max->desc.enable_mask = MAX8973_VOUT_ENABLE;
drivers/regulator/max8973-regulator.c
742
max->ops.enable = regulator_enable_regmap;
drivers/regulator/max8973-regulator.c
743
max->ops.disable = regulator_disable_regmap;
drivers/regulator/max8973-regulator.c
744
max->ops.is_enabled = regulator_is_enabled_regmap;
drivers/regulator/max8973-regulator.c
745
max->ops.set_current_limit = max8973_set_current_limit;
drivers/regulator/max8973-regulator.c
746
max->ops.get_current_limit = max8973_get_current_limit;
drivers/regulator/max8973-regulator.c
752
ret = max8973_init_dcdc(max, pdata);
drivers/regulator/max8973-regulator.c
754
dev_err(max->dev, "Max8973 Init failed, err = %d\n", ret);
drivers/regulator/max8973-regulator.c
760
config.driver_data = max;
drivers/regulator/max8973-regulator.c
762
config.regmap = max->regmap;
drivers/regulator/max8973-regulator.c
771
rdev = devm_regulator_register(&client->dev, &max->desc, &config);
drivers/regulator/max8973-regulator.c
774
dev_err(max->dev, "regulator register failed, err %d\n", ret);
drivers/regulator/max8973-regulator.c
778
max8973_thermal_init(max);
drivers/regulator/max8997-regulator.c
1129
(desc->max - desc->min) / desc->step + 1;
drivers/regulator/max8997-regulator.c
162
if (val > desc->max)
drivers/regulator/max8997-regulator.c
382
if (max_vol < desc->min || min_vol > desc->max)
drivers/regulator/max8997-regulator.c
62
int max;
drivers/regulator/max8997-regulator.c
666
} while (desc->min + desc->step * new_val <= desc->max);
drivers/regulator/max8997-regulator.c
68
.min = 800000, .max = 3950000, .step = 50000,
drivers/regulator/max8997-regulator.c
72
.min = 650000, .max = 2225000, .step = 25000,
drivers/regulator/max8997-regulator.c
76
.min = 750000, .max = 3900000, .step = 50000,
drivers/regulator/max8997-regulator.c
81
.min = 200000, .max = 950000, .step = 50000,
drivers/regulator/max8997-regulator.c
85
.min = 50000, .max = 200000, .step = 10000,
drivers/regulator/mt6316-regulator.c
66
#define MT6316_BUCK(match, vreg_id, min, max, step, vs_reg) \
drivers/regulator/mt6316-regulator.c
74
.n_voltages = (max - min) / step + 1, \
drivers/regulator/mt6323-regulator.c
39
#define MT6323_BUCK(match, vreg, min, max, step, volt_ranges, enreg, \
drivers/regulator/mt6323-regulator.c
49
.n_voltages = (max - min)/step + 1, \
drivers/regulator/mt6331-regulator.c
47
#define MT6331_BUCK(match, vreg, min, max, step, volt_ranges, enreg, \
drivers/regulator/mt6331-regulator.c
57
.n_voltages = (max - min)/step + 1, \
drivers/regulator/mt6332-regulator.c
47
#define MT6332_BUCK(match, vreg, min, max, step, volt_ranges, enreg, \
drivers/regulator/mt6332-regulator.c
57
.n_voltages = (max - min)/step + 1, \
drivers/regulator/mt6332-regulator.c
72
#define MT6332_LDO_LINEAR(match, vreg, min, max, step, volt_ranges, \
drivers/regulator/mt6332-regulator.c
83
.n_voltages = (max - min)/step + 1, \
drivers/regulator/mt6357-regulator.c
36
#define MT6357_BUCK(match, vreg, min, max, step, \
drivers/regulator/mt6357-regulator.c
47
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/mt6357-regulator.c
79
#define MT6357_LDO1(match, vreg, min, max, step, volt_ranges, \
drivers/regulator/mt6357-regulator.c
90
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/mt6358-regulator.c
101
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/mt6358-regulator.c
137
#define MT6366_BUCK(match, vreg, min, max, step, \
drivers/regulator/mt6358-regulator.c
149
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/mt6358-regulator.c
191
#define MT6366_LDO1(match, vreg, supply, min, max, step, \
drivers/regulator/mt6358-regulator.c
202
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/mt6358-regulator.c
36
#define MT6358_BUCK(match, vreg, supply, min, max, step, \
drivers/regulator/mt6358-regulator.c
48
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/mt6358-regulator.c
90
#define MT6358_LDO1(match, vreg, supply, min, max, step, \
drivers/regulator/mt6359-regulator.c
41
#define MT6359_BUCK(match, _name, min, max, step, \
drivers/regulator/mt6359-regulator.c
56
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/mt6359-regulator.c
72
#define MT6359_LDO_LINEAR(match, _name, min, max, step, \
drivers/regulator/mt6359-regulator.c
84
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/mt6363-regulator.c
118
#define MT6363_BUCK(match, vreg, min, max, step, en_reg, lp_reg, \
drivers/regulator/mt6363-regulator.c
129
.n_voltages = (max - min) / step + 1, \
drivers/regulator/mt6363-regulator.c
149
#define MT6363_LDO_LINEAR_OPS(match, vreg, in_sup, vops, min, max, \
drivers/regulator/mt6363-regulator.c
160
.n_voltages = (max - min) / step + 1, \
drivers/regulator/mt6363-regulator.c
176
#define MT6363_LDO_L_SC(match, vreg, inp, min, max, step, buck_reg, \
drivers/regulator/mt6363-regulator.c
179
min, max, step, buck_reg, ocp_intn)
drivers/regulator/mt6363-regulator.c
181
#define MT6363_LDO_L(match, vreg, inp, min, max, step, buck_reg, \
drivers/regulator/mt6363-regulator.c
184
min, max, step, buck_reg, ocp_intn)
drivers/regulator/mt6380-regulator.c
102
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/mt6380-regulator.c
91
#define MT6380_BUCK(match, vreg, min, max, step, volt_ranges, enreg, \
drivers/regulator/mt6397-regulator.c
37
#define MT6397_BUCK(match, vreg, min, max, step, volt_ranges, enreg, \
drivers/regulator/mt6397-regulator.c
48
.n_voltages = (max - min)/step + 1, \
drivers/regulator/of_regulator.c
95
n_phandles = max(n_phandles, 0);
drivers/regulator/pf1550-regulator.c
210
#define PF_SW(_chip, match, _name, min, max, mask, step) { \
drivers/regulator/pf1550-regulator.c
215
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/pf1550-regulator.c
254
#define PF_LDO2(_chip, match, _name, mask, min, max, step) { \
drivers/regulator/pf1550-regulator.c
259
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/pf9453-regulator.c
376
unsigned int s, tmp, max, maxsel = 0;
drivers/regulator/pf9453-regulator.c
379
max = table[0];
drivers/regulator/pf9453-regulator.c
382
if (table[s] > max) {
drivers/regulator/pf9453-regulator.c
383
max = table[s];
drivers/regulator/pfuze100-regulator.c
235
#define PFUZE100_SW_REG(_chip, _name, base, min, max, step) \
drivers/regulator/pfuze100-regulator.c
239
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/pfuze100-regulator.c
273
#define PFUZE100_VGEN_REG(_chip, _name, base, min, max, step) \
drivers/regulator/pfuze100-regulator.c
277
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/pfuze100-regulator.c
310
#define PFUZE3000_VCC_REG(_chip, _name, base, min, max, step) { \
drivers/regulator/pfuze100-regulator.c
313
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/pfuze100-regulator.c
352
#define PFUZE3000_SW3_REG(_chip, _name, base, min, max, step) { \
drivers/regulator/pfuze100-regulator.c
355
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/pv88060-regulator.c
145
#define PV88060_BUCK(chip, regl_name, min, step, max, limits_array) \
drivers/regulator/pv88060-regulator.c
157
.n_voltages = ((max) - (min))/(step) + 1,\
drivers/regulator/pv88060-regulator.c
170
#define PV88060_LDO(chip, regl_name, min, step, max) \
drivers/regulator/pv88060-regulator.c
182
.n_voltages = (step) ? ((max - min) / step + 1) : 1, \
drivers/regulator/pv88060-regulator.c
190
#define PV88060_SW(chip, regl_name, max) \
drivers/regulator/pv88060-regulator.c
200
.fixed_uV = max,\
drivers/regulator/pv88080-regulator.c
268
#define PV88080_BUCK(chip, regl_name, min, step, max, limits_array) \
drivers/regulator/pv88080-regulator.c
280
.n_voltages = ((max) - (min))/(step) + 1, \
drivers/regulator/pv88080-regulator.c
286
#define PV88080_HVBUCK(chip, regl_name, min, step, max) \
drivers/regulator/pv88080-regulator.c
298
.n_voltages = ((max) - (min))/(step) + 1, \
drivers/regulator/pv88090-regulator.c
161
#define PV88090_BUCK(chip, regl_name, min, step, max, limits_array) \
drivers/regulator/pv88090-regulator.c
173
.n_voltages = ((max) - (min))/(step) + 1, \
drivers/regulator/pv88090-regulator.c
187
#define PV88090_LDO(chip, regl_name, min, step, max) \
drivers/regulator/pv88090-regulator.c
199
.n_voltages = ((max) - (min))/(step) + 1, \
drivers/regulator/pwm-regulator.c
169
voltage > max(max_uV_duty, min_uV_duty))
drivers/regulator/qcom_spmi-regulator.c
1251
int max = (SPMI_BOOST_CURRENT_LIMIT_MASK + 1) * 500;
drivers/regulator/qcom_spmi-regulator.c
1258
if (ilim_uA > max || ilim_uA <= 0)
drivers/regulator/qcom_spmi-regulator.c
1783
vreg->slew_rate = max(slew_rate, 1);
drivers/regulator/qcom_spmi-regulator.c
1812
vreg->slew_rate = max(slew_rate, 1);
drivers/regulator/rn5t618-regulator.c
25
#define REG(rid, ereg, emask, vreg, vmask, min, max, step) \
drivers/regulator/rn5t618-regulator.c
34
.n_voltages = ((max) - (min)) / (step) + 1, \
drivers/regulator/rtmv20-regulator.c
190
static u32 clamp_to_selector(u32 val, u32 min, u32 max, u32 step)
drivers/regulator/rtmv20-regulator.c
192
u32 retval = clamp_val(val, min, max);
drivers/regulator/rtmv20-regulator.c
203
u32 max;
drivers/regulator/rtmv20-regulator.c
244
if (props[i].max > 1) {
drivers/regulator/rtmv20-regulator.c
251
temp = clamp_to_selector(temp, props[i].min, props[i].max, props[i].step);
drivers/regulator/rtq2208-regulator.c
148
ramp_delay = max(ramp_delay, RTQ2208_RAMP_VALUE_MIN_uV);
drivers/regulator/s5m8767.c
257
if (min_vol > desc->max)
drivers/regulator/s5m8767.c
265
if (desc->min + desc->step * selector > desc->max)
drivers/regulator/s5m8767.c
44
int max;
drivers/regulator/s5m8767.c
50
.max = 2225000,
drivers/regulator/s5m8767.c
56
.max = 1600000,
drivers/regulator/s5m8767.c
62
.max = 3000000,
drivers/regulator/s5m8767.c
68
.max = 3950000,
drivers/regulator/s5m8767.c
74
.max = 2375000,
drivers/regulator/s5m8767.c
857
(desc->max - desc->min) / desc->step + 1;
drivers/remoteproc/remoteproc_core.c
2731
longest = max(longest, d);
drivers/resctrl/mpam_devices.c
2157
class->nrdy_usec = max(class->nrdy_usec,
drivers/reset/reset-uniphier.c
370
nr_resets = max(nr_resets, p->id + 1);
drivers/rtc/rtc-armada38x.c
148
int i, index_max = 0, max = 0;
drivers/rtc/rtc-armada38x.c
172
if (rtc->val_to_freq[j].freq > max) {
drivers/rtc/rtc-armada38x.c
174
max = rtc->val_to_freq[j].freq;
drivers/rtc/rtc-armada38x.c
181
if (max > SAMPLE_NR / 2)
drivers/rtc/rtc-sunxi.c
116
unsigned int max; /* max year allowed */
drivers/rtc/rtc-sunxi.c
124
.max = 2073,
drivers/rtc/rtc-sunxi.c
130
.max = 2225,
drivers/rtc/rtc-sunxi.c
340
if (year < chip->data_year->min || year > chip->data_year->max) {
drivers/rtc/rtc-sunxi.c
342
chip->data_year->min, chip->data_year->max);
drivers/rtc/rtc-x1205.c
377
unsigned char reg, mask, min, max;
drivers/rtc/rtc-x1205.c
479
if (value > probe_limits_pattern[i].max ||
drivers/s390/block/dasd_eckd.c
3330
int max)
drivers/s390/block/dasd_eckd.c
3346
for (i = start; i < max; i++) {
drivers/s390/block/dasd_eckd.c
5640
from = max(from, ++to);
drivers/s390/block/scm_blk.c
99
aidaw_pool = mempool_create_page_pool(max(nrqs/8, 1U), 0);
drivers/s390/char/con3270.c
1535
int max_cx = max(0, cx);
drivers/s390/char/con3270.c
1536
int max_cy = max(0, cy);
drivers/s390/net/qeth_core_main.c
1488
unsigned int max = single ? 1 : card->dev->num_tx_queues;
drivers/s390/net/qeth_core_main.c
1490
if (card->qdio.no_out_queues == max)
drivers/s390/net/qeth_core_main.c
1496
if (max == 1 && card->qdio.do_prio_queueing != QETH_PRIOQ_DEFAULT)
drivers/s390/net/qeth_core_main.c
1499
card->qdio.no_out_queues = max;
drivers/s390/scsi/zfcp_dbf.c
597
return max(FC_CT_HDR_LEN, ZFCP_DBF_SAN_MAX_PAYLOAD);
drivers/s390/scsi/zfcp_def.h
234
u32 max;
drivers/s390/scsi/zfcp_fc.c
65
unsigned long delay = 0, max;
drivers/s390/scsi/zfcp_fc.c
71
max = msecs_to_jiffies(port_scan_ratelimit + port_scan_backoff);
drivers/s390/scsi/zfcp_fc.c
72
delay = min(delay, max);
drivers/s390/scsi/zfcp_fsf.c
2330
lat_rec->max = max(lat_rec->max, lat);
drivers/s390/scsi/zfcp_fsf.c
550
adapter->stat_read_buf_num = max(bottom->status_read_buf_num,
drivers/s390/scsi/zfcp_sysfs.c
558
fmax = lat->_name.fabric.max * adapter->timer_ticks; \
drivers/s390/scsi/zfcp_sysfs.c
561
cmax = lat->_name.channel.max * adapter->timer_ticks; \
drivers/s390/scsi/zfcp_sysfs.c
588
lat->_name.fabric.max = 0; \
drivers/s390/scsi/zfcp_sysfs.c
591
lat->_name.channel.max = 0; \
drivers/scsi/aic7xxx/aic79xx_core.c
3694
maxsync = max(maxsync, (u_int)AHD_SYNCRATE_ULTRA2);
drivers/scsi/aic7xxx/aic79xx_core.c
3701
*period = max(*period, (u_int)transinfo->period);
drivers/scsi/aic7xxx/aic7xxx_core.c
2228
maxsync = max(maxsync, (u_int)AHC_SYNCRATE_ULTRA2);
drivers/scsi/aic7xxx/aic7xxx_core.c
2236
*period = max(*period, (u_int)transinfo->period);
drivers/scsi/arm/arm_scsi.h
33
static inline int copy_SCp_to_sg(struct scatterlist *sg, struct scsi_pointer *SCp, int max)
drivers/scsi/arm/arm_scsi.h
40
BUG_ON(bufs + 1 > max);
drivers/scsi/bfa/bfa_defs_svc.h
1198
u32 max[BFA_IOBUCKET_MAX];
drivers/scsi/bfa/bfa_fcpim.c
401
io_lat->max[idx] = (io_lat->max[idx] > val) ? io_lat->max[idx] : val;
drivers/scsi/cxgbi/libcxgbi.c
2534
unsigned int max = max(max_def, headroom);
drivers/scsi/cxgbi/libcxgbi.c
2536
max = min(cconn->chba->cdev->tx_max_size, max);
drivers/scsi/cxgbi/libcxgbi.c
2538
conn->max_xmit_dlength = min(conn->max_xmit_dlength, max);
drivers/scsi/cxgbi/libcxgbi.c
2540
conn->max_xmit_dlength = max;
drivers/scsi/cxgbi/libcxgbi.c
2550
unsigned int max = cconn->chba->cdev->rx_max_size;
drivers/scsi/cxgbi/libcxgbi.c
2552
cxgbi_align_pdu_size(max);
drivers/scsi/cxgbi/libcxgbi.c
2555
if (conn->max_recv_dlength > max) {
drivers/scsi/cxgbi/libcxgbi.c
2557
conn->max_recv_dlength, max);
drivers/scsi/cxgbi/libcxgbi.c
2560
conn->max_recv_dlength = min(conn->max_recv_dlength, max);
drivers/scsi/cxgbi/libcxgbi.c
2563
conn->max_recv_dlength = max;
drivers/scsi/dc395x.c
414
int max; /* maximum value */
drivers/scsi/dc395x.c
526
|| cfg_data[i].value > cfg_data[i].max)
drivers/scsi/elx/libefc_sli/sli4.c
442
payload_size = max(SLI4_RQST_CMDSZ(rq_create_v2) +
drivers/scsi/elx/libefc_sli/sli4.c
846
payload_size = max(SLI4_RQST_CMDSZ(cmn_create_cq_set_v0) +
drivers/scsi/elx/libefc_sli/sli4.h
586
max(sizeof(struct sli4_rqst_##stype), \
drivers/scsi/fcoe/fcoe_ctlr.c
2038
len = max(len, min_len + sizeof(struct ethhdr));
drivers/scsi/fcoe/fcoe_ctlr.c
2906
len = max(len, sizeof(struct ethhdr));
drivers/scsi/fnic/fdls_disc.c
1341
timeout = max(2 * iport->e_d_tov, iport->plogi_timeout);
drivers/scsi/fnic/fdls_disc.c
1541
timeout = max(2 * iport->e_d_tov, iport->plogi_timeout);
drivers/scsi/fnic/fnic_pci_subsys_devid.c
106
int max = ARRAY_SIZE(fnic_pcie_device_table);
drivers/scsi/fnic/fnic_pci_subsys_devid.c
122
if (index >= max - 1) {
drivers/scsi/hisi_sas/hisi_sas.h
687
extern u8 hisi_sas_get_prog_phy_linkrate_mask(enum sas_linkrate max);
drivers/scsi/hisi_sas/hisi_sas_main.c
1252
enum sas_linkrate min, max;
drivers/scsi/hisi_sas/hisi_sas_main.c
1258
max = sas_phy->phy->maximum_linkrate;
drivers/scsi/hisi_sas/hisi_sas_main.c
1261
max = r->maximum_linkrate;
drivers/scsi/hisi_sas/hisi_sas_main.c
1266
_r.maximum_linkrate = max;
drivers/scsi/hisi_sas/hisi_sas_main.c
1269
sas_phy->phy->maximum_linkrate = max;
drivers/scsi/hisi_sas/hisi_sas_main.c
155
u8 hisi_sas_get_prog_phy_linkrate_mask(enum sas_linkrate max)
drivers/scsi/hisi_sas/hisi_sas_main.c
160
max -= SAS_LINK_RATE_1_5_GBPS;
drivers/scsi/hisi_sas/hisi_sas_main.c
161
for (i = 0; i <= max; i++)
drivers/scsi/hisi_sas/hisi_sas_main.c
2295
s = max(lcm(max_command_entries_ru, sz_slot_buf_ru), PAGE_SIZE);
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
842
enum sas_linkrate max = r->maximum_linkrate;
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
845
prog_phy_link_rate |= hisi_sas_get_prog_phy_linkrate_mask(max);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1237
enum sas_linkrate max = sas_phy->phy->maximum_linkrate;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1240
hisi_sas_get_prog_phy_linkrate_mask(max) |
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1613
enum sas_linkrate max = r->maximum_linkrate;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1616
prog_phy_link_rate |= hisi_sas_get_prog_phy_linkrate_mask(max);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
2704
enum sas_linkrate max = r->maximum_linkrate;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
2709
prog_phy_link_rate |= hisi_sas_get_prog_phy_linkrate_mask(max);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
713
enum sas_linkrate max;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
722
max = SAS_LINK_RATE_12_0_GBPS;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
724
max = sas_phy->phy->maximum_linkrate;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
725
prog_phy_link_rate |= hisi_sas_get_prog_phy_linkrate_mask(max);
drivers/scsi/ibmvscsi_tgt/libsrp.c
24
static int srp_iu_pool_alloc(struct srp_queue *q, size_t max,
drivers/scsi/ibmvscsi_tgt/libsrp.c
30
q->pool = kzalloc_objs(struct iu_entry *, max);
drivers/scsi/ibmvscsi_tgt/libsrp.c
33
q->items = kzalloc_objs(struct iu_entry, max);
drivers/scsi/ibmvscsi_tgt/libsrp.c
38
kfifo_init(&q->queue, (void *)q->pool, max * sizeof(void *));
drivers/scsi/ibmvscsi_tgt/libsrp.c
40
for (i = 0, iue = q->items; i < max; i++) {
drivers/scsi/ibmvscsi_tgt/libsrp.c
59
size_t max, size_t size)
drivers/scsi/ibmvscsi_tgt/libsrp.c
64
ring = kzalloc_objs(struct srp_buf *, max);
drivers/scsi/ibmvscsi_tgt/libsrp.c
68
for (i = 0; i < max; i++) {
drivers/scsi/ibmvscsi_tgt/libsrp.c
80
for (i = 0; i < max && ring[i]; i++) {
drivers/scsi/ibmvscsi_tgt/libsrp.c
93
size_t max, size_t size)
drivers/scsi/ibmvscsi_tgt/libsrp.c
97
for (i = 0; i < max; i++) {
drivers/scsi/isci/host.c
1353
u32 max = 0;
drivers/scsi/isci/host.c
1403
max = INTERRUPT_COALESCE_TIMEOUT_BASE_RANGE_UPPER_BOUND_NS / 10;
drivers/scsi/isci/host.c
1409
if (min <= coalesce_timeout && max > coalesce_timeout)
drivers/scsi/isci/host.c
1411
else if (coalesce_timeout >= max && coalesce_timeout < min * 2
drivers/scsi/isci/host.c
1413
if ((coalesce_timeout - max) < (2 * min - coalesce_timeout))
drivers/scsi/isci/host.c
1420
max = max * 2;
drivers/scsi/libiscsi.c
2771
iscsi_pool_init(struct iscsi_pool *q, int max, void ***items, int item_size)
drivers/scsi/libiscsi.c
2777
q->max = max;
drivers/scsi/libiscsi.c
2783
q->pool = kvcalloc(num_arrays * max, sizeof(void *), GFP_KERNEL);
drivers/scsi/libiscsi.c
2787
kfifo_init(&q->queue, (void*)q->pool, max * sizeof(void*));
drivers/scsi/libiscsi.c
2789
for (i = 0; i < max; i++) {
drivers/scsi/libiscsi.c
2792
q->max = i;
drivers/scsi/libiscsi.c
2799
*items = q->pool + max;
drivers/scsi/libiscsi.c
2800
memcpy(*items, q->pool, max * sizeof(void *));
drivers/scsi/libiscsi.c
2815
for (i = 0; i < q->max; i++)
drivers/scsi/libsas/sas_expander.c
765
child->max_linkrate = max(parent->max_linkrate,
drivers/scsi/libsas/sas_expander.c
943
parent->port->disc.max_level = max(parent->port->disc.max_level,
drivers/scsi/libsas/sas_host_smp.c
182
enum sas_linkrate max, u8 *resp_data)
drivers/scsi/libsas/sas_host_smp.c
211
rates.maximum_linkrate = max;
drivers/scsi/libsas/sas_host_smp.c
247
resp_data = kzalloc(max(job->reply_payload.payload_len, 128U),
drivers/scsi/libsas/sas_port.c
93
port->linkrate = max(port->linkrate, phy->linkrate);
drivers/scsi/lpfc/lpfc.h
116
#define lpfc_rangecheck(val, min, max) \
drivers/scsi/lpfc/lpfc.h
117
((uint)(val) >= (uint)(min) && (val) <= (max))
drivers/scsi/lpfc/lpfc_els.c
12258
lpfc_vmid_set_cs_ctl_range(struct lpfc_vport *vport, u32 min, u32 max)
drivers/scsi/lpfc/lpfc_els.c
12262
if ((min > max) || (max > LPFC_VMID_MAX_PRIORITY_RANGE))
drivers/scsi/lpfc/lpfc_els.c
12265
for (i = min; i <= max; i++)
drivers/scsi/lpfc/lpfc_els.c
68
static void lpfc_vmid_set_cs_ctl_range(struct lpfc_vport *vport, u32 min, u32 max);
drivers/scsi/lpfc/lpfc_init.c
10790
lpfc_sli4_release_queues(struct lpfc_queue ***qs, int max)
drivers/scsi/lpfc/lpfc_init.c
10797
for (idx = 0; idx < max; idx++)
drivers/scsi/lpfc/lpfc_sli.c
1936
u32 atot, wtot, max;
drivers/scsi/lpfc/lpfc_sli.c
1993
max = LPFC_SEC_TO_MSEC / cgn_sig_freq *
drivers/scsi/lpfc/lpfc_sli.c
1995
bf_set(cmf_sync_wsigmax, &wqe->cmf_sync, max);
drivers/scsi/lpfc/lpfc_sli.c
21706
new_watermark = max(watermark_min, new_watermark);
drivers/scsi/lpfc/lpfc_sli.c
21710
multixri_pool->stat_max_hwm = max(multixri_pool->stat_max_hwm,
drivers/scsi/megaraid/megaraid_sas.h
1121
u8 max;
drivers/scsi/megaraid/megaraid_sas_base.c
5163
max(fusion->old_map_sz, fusion->new_map_sz);
drivers/scsi/mpt3sas/mpt3sas_ctl.c
1353
u32 number_bytes, max_events, max;
drivers/scsi/mpt3sas/mpt3sas_ctl.c
1368
max = min_t(u32, MPT3SAS_CTL_EVENT_LOG_SIZE, max_events);
drivers/scsi/mpt3sas/mpt3sas_ctl.c
1373
if (!max || !ioc->event_log)
drivers/scsi/mpt3sas/mpt3sas_ctl.c
1376
number_bytes = max * sizeof(struct MPT3_IOCTL_EVENTS);
drivers/scsi/mvumi.h
399
m1 = max(HSP_SIZE(1), HSP_SIZE(3)); \
drivers/scsi/mvumi.h
400
m2 = max(HSP_SIZE(2), HSP_SIZE(4)); \
drivers/scsi/mvumi.h
401
size = max(m1, m2); \
drivers/scsi/pm8001/pm8001_ctl.c
373
int max = 2;
drivers/scsi/pm8001/pm8001_ctl.c
374
for (i = 0; i < max; i++) {
drivers/scsi/qedi/qedi.h
208
u16 max;
drivers/scsi/qedi/qedi_main.c
536
id_tbl->max = size;
drivers/scsi/qedi/qedi_main.c
557
if (id >= id_tbl->max)
drivers/scsi/qedi/qedi_main.c
574
id = find_next_zero_bit(id_tbl->table, id_tbl->max, id_tbl->next);
drivers/scsi/qedi/qedi_main.c
575
if (id >= id_tbl->max) {
drivers/scsi/qedi/qedi_main.c
584
if (id < id_tbl->max) {
drivers/scsi/qedi/qedi_main.c
586
id_tbl->next = (id + 1) & (id_tbl->max - 1);
drivers/scsi/qedi/qedi_main.c
601
if (id >= id_tbl->max)
drivers/scsi/qla4xxx/ql4_def.h
692
((max(REQUEST_QUEUE_DEPTH, RESPONSE_QUEUE_DEPTH)) * \
drivers/scsi/qla4xxx/ql4_os.c
5162
relogin_timer = max(ddb_entry->default_relogin_timeout,
drivers/scsi/scsi_debug.c
8790
struct xa_limit xal = { .max = 1 << 16, .min = 0 };
drivers/scsi/scsi_ioctl.c
544
bytes = max(in_len, out_len);
drivers/scsi/sd.c
132
lim->discard_granularity = max(sdkp->physical_block_size,
drivers/scsi/sd.c
651
unsigned long max;
drivers/scsi/sd.c
660
err = kstrtoul(buf, 10, &max);
drivers/scsi/sd.c
665
if (max == 0)
drivers/scsi/sd.c
667
else if (max <= SD_MAX_WS16_BLOCKS) {
drivers/scsi/sd.c
669
sdkp->max_ws_blocks = max;
drivers/scsi/sg.c
2454
size_t max;
drivers/scsi/sg.c
2466
it->max = sg_last_dev();
drivers/scsi/sg.c
2467
if (it->index >= it->max)
drivers/scsi/sg.c
2477
return (it->index < it->max) ? it : NULL;
drivers/scsi/sg.c
2606
(int)it->max, sg_big_buff);
drivers/scsi/st.c
3821
retval = do_load_unload(STp, file, max(1, mtc.mt_count));
drivers/sh/clk/core.c
143
.max = clk->nr_freqs - 1,
drivers/sh/clk/core.c
166
.max = div_max,
drivers/sh/clk/core.c
186
.max = mult_max,
drivers/sh/clk/core.c
79
unsigned int min, max;
drivers/sh/clk/core.c
86
pos <= r->max; pos++, freq = r->func(pos, r)) \
drivers/siox/siox-bus-gpio.c
34
size_t cycles = max(setbuf_len, getbuf_len);
drivers/soc/aspeed/aspeed-p2a-ctrl.c
144
if (curr->max < base)
drivers/soc/aspeed/aspeed-p2a-ctrl.c
46
u64 max;
drivers/soc/fsl/dpio/dpio-service.c
229
int max = 0;
drivers/soc/fsl/dpio/dpio-service.c
253
++max;
drivers/soc/fsl/dpio/dpio-service.c
254
if (max > DPAA_POLL_MAX)
drivers/soc/fsl/dpio/dpio-service.c
403
qbman_pull_desc_set_numframes(&pd, (u8)s->max);
drivers/soc/fsl/dpio/dpio-service.c
43
unsigned int max;
drivers/soc/fsl/dpio/dpio-service.c
434
qbman_pull_desc_set_numframes(&pd, (u8)s->max);
drivers/soc/fsl/dpio/dpio-service.c
665
ret->max = max_frames;
drivers/soc/fsl/dpio/dpio-service.c
697
dma_unmap_single(s->dev, s->paddr, sizeof(struct dpaa2_dq) * s->max,
drivers/soc/fsl/qe/qe_common.c
50
resource_size_t max = 0;
drivers/soc/fsl/qe/qe_common.c
82
if (r.end > max)
drivers/soc/fsl/qe/qe_common.c
83
max = r.end;
drivers/soc/fsl/qe/qe_common.c
92
muram_vbase = ioremap(muram_pbase, max - muram_pbase + 1);
drivers/soc/mediatek/mtk-regulator-coupler.c
81
vsram_target_min_uV = max(vsram_min_uV, min_uV + max_spread);
drivers/soc/mediatek/mtk-svs.c
669
svsb_volt = max(svsb->volt[i] + temp_voffset, svsb->vmin);
drivers/soc/qcom/icc-bwmon.c
607
unsigned int status, max;
drivers/soc/qcom/icc-bwmon.c
635
if (regmap_field_read(bwmon->regs[F_ZONE0_MAX + zone], &max))
drivers/soc/qcom/icc-bwmon.c
638
max += 1;
drivers/soc/qcom/icc-bwmon.c
639
max *= bwmon->data->count_unit_kb;
drivers/soc/qcom/icc-bwmon.c
640
bwmon->target_kbps = mult_frac(max, MSEC_PER_SEC, bwmon->data->sample_ms);
drivers/soc/qcom/rpmh-rsc.c
580
unsigned long max = tcs->offset + tcs->num_tcs;
drivers/soc/qcom/rpmh-rsc.c
582
i = find_next_zero_bit(drv->tcs_in_use, max, tcs->offset);
drivers/soc/qcom/rpmh-rsc.c
583
if (i >= max)
drivers/soc/qcom/rpmh-rsc.c
776
unsigned long max;
drivers/soc/qcom/rpmh-rsc.c
787
max = tcs->offset + tcs->num_tcs;
drivers/soc/qcom/rpmh-rsc.c
788
set = find_next_bit(drv->tcs_in_use, max, tcs->offset);
drivers/soc/qcom/rpmh-rsc.c
790
return set < max;
drivers/soc/qcom/spm.c
374
unsigned int min_avs = max(max_avs, 4U) - 4;
drivers/soc/samsung/exynos-regulator-coupler.c
60
highest_min_uV = max(highest_min_uV, tmp_min);
drivers/soc/samsung/exynos-regulator-coupler.c
75
target_uV = max(desired_min_uV, highest_min_uV - max_spread);
drivers/soc/samsung/exynos-regulator-coupler.c
89
max_current_uV = max(tmp_act, max_current_uV);
drivers/soc/samsung/exynos-regulator-coupler.c
96
possible_uV = max(target_uV, max_current_uV - max_spread);
drivers/soc/tegra/cbb/tegra194-cbb.c
1738
const struct tegra194_cbb_aperture *aper, unsigned int max)
drivers/soc/tegra/cbb/tegra194-cbb.c
1743
for (t_f = 0; t_f < max; t_f++) {
drivers/soc/tegra/cbb/tegra194-cbb.c
1753
if (t_sr >= max)
drivers/soc/tegra/cbb/tegra194-cbb.c
1795
const struct tegra194_cbb_aperture *aperture, unsigned int max)
drivers/soc/tegra/cbb/tegra194-cbb.c
1808
addr += get_init_localaddress(info, aperture, max);
drivers/soc/tegra/regulators-tegra20.c
183
core_min_uV = max(cpu_min_uV + 125000, core_min_uV);
drivers/soc/tegra/regulators-tegra20.c
203
rtc_min_uV = max(cpu_min_uV + 125000, core_min_uV - max_spread);
drivers/soc/tegra/regulators-tegra20.c
214
core_target_uV = max(core_uV - max_spread, core_min_uV);
drivers/soc/tegra/regulators-tegra20.c
215
core_target_uV = max(rtc_uV - max_spread, core_target_uV);
drivers/soc/tegra/regulators-tegra20.c
234
rtc_target_uV = max(rtc_uV - max_spread, rtc_min_uV);
drivers/soc/tegra/regulators-tegra20.c
235
rtc_target_uV = max(core_uV - max_spread, rtc_target_uV);
drivers/soc/tegra/regulators-tegra20.c
312
cpu_min_uV = max(cpu_min_uV, tegra->cpu_min_uV);
drivers/soc/tegra/regulators-tegra20.c
74
core_max_uV = max(core_cur_uV, 1200000);
drivers/soc/tegra/regulators-tegra30.c
260
cpu_min_uV = max(cpu_uV, cpu_min_uV);
drivers/soc/tegra/regulators-tegra30.c
271
core_min_uV = max(core_min_uV, tegra30_core_cpu_limit(cpu_min_uV));
drivers/soc/tegra/regulators-tegra30.c
279
cpu_min_uV = max(cpu_min_uV, tegra->cpu_min_uV);
drivers/soc/tegra/regulators-tegra30.c
296
cpu_target_uV = max(cpu_uV - cpu_max_step, cpu_min_uV);
drivers/soc/tegra/regulators-tegra30.c
297
cpu_target_uV = max(core_uV - max_spread, cpu_target_uV);
drivers/soc/tegra/regulators-tegra30.c
316
core_target_uV = max(core_min_limited_uV, core_min_uV);
drivers/soc/tegra/regulators-tegra30.c
322
core_target_uV = max(core_target_uV, core_uV - core_max_step);
drivers/soc/tegra/regulators-tegra30.c
73
core_max_uV = max(core_cur_uV, 1200000);
drivers/soc/ti/knav_qmss_queue.c
1277
start = max(qmgr->start_queue, range->queue_base);
drivers/spi/spi-aspeed-smc.c
1471
int max = 0;
drivers/spi/spi-aspeed-smc.c
1481
if (k - j > max) {
drivers/spi/spi-aspeed-smc.c
1482
max = k - j;
drivers/spi/spi-aspeed-smc.c
1491
return max > 4 ? r * cols + c : 0;
drivers/spi/spi-au1550.c
342
ret = au1550_spi_dma_rxtmp_alloc(hw, max(t->len,
drivers/spi/spi-axi-spi-engine.c
322
max_bits_per_word = max(max_bits_per_word, xfer->bits_per_word);
drivers/spi/spi-dw-core.c
137
u32 max = dw_spi_tx_max(dws);
drivers/spi/spi-dw-core.c
140
while (max--) {
drivers/spi/spi-dw-core.c
158
u32 max = dw_spi_rx_max(dws);
drivers/spi/spi-dw-core.c
161
while (max--) {
drivers/spi/spi-dw-dma.c
643
nents = max(xfer->tx_sg.nents, xfer->rx_sg.nents);
drivers/spi/spi-hisi-kunpeng.c
224
u32 max = min_t(u32, hs->rx_len, hs->fifo_len);
drivers/spi/spi-hisi-kunpeng.c
227
while (hisi_spi_rx_not_empty(hs) && max--) {
drivers/spi/spi-hisi-kunpeng.c
250
u32 max = min_t(u32, hs->tx_len, hs->fifo_len);
drivers/spi/spi-hisi-kunpeng.c
253
while (hisi_spi_tx_not_full(hs) && max--) {
drivers/spi/spi-img-spfi.c
151
unsigned int max)
drivers/spi/spi-img-spfi.c
156
while (count < max / 4) {
drivers/spi/spi-img-spfi.c
169
unsigned int max)
drivers/spi/spi-img-spfi.c
174
while (count < max) {
drivers/spi/spi-img-spfi.c
187
unsigned int max)
drivers/spi/spi-img-spfi.c
192
while (count < max / 4) {
drivers/spi/spi-img-spfi.c
206
unsigned int max)
drivers/spi/spi-img-spfi.c
211
while (count < max) {
drivers/spi/spi-imx.c
1001
unsigned int max = is_imx27_cspi(spi_imx) ? 16 : 18;
drivers/spi/spi-imx.c
1004
reg |= spi_imx_clkdiv_1(spi_imx->spi_clk, spi_imx->spi_bus_clk, max, &clk)
drivers/spi/spi-imx.c
217
unsigned int fspi, unsigned int max, unsigned int *fres)
drivers/spi/spi-imx.c
221
for (i = 2; i < max; i++)
drivers/spi/spi-imx.c
532
post = max(4U, post) - 4;
drivers/spi/spi-mtk-nor.c
396
usecs_to_jiffies(max(timeout, 10000U))))
drivers/spi/spi-qpic-snand.c
692
max_bitflips = max(max_bitflips, stat);
drivers/spi/spi-qup.c
449
static u32 spi_qup_sgl_get_nents_len(struct scatterlist *sgl, u32 max,
drivers/spi/spi-qup.c
459
if (((total + len) < total) || ((total + len) > max))
drivers/spi/spi-rzv2m-csi.c
216
unsigned int bytes_transferred = max(csi->bytes_received, csi->bytes_sent);
drivers/spi/spi-s3c64xx.c
583
ms = max(ms, 100); /* minimum timeout */
drivers/spi/spi-sun4i.c
332
tx_time = max(tfr->len * 8 * 2 / (tfr->speed_hz / 1000), 100U);
drivers/spi/spi-sunplus-sp7021.c
290
div = max(2U, clk_rate / xfer->speed_hz);
drivers/spi/spi-virtio.c
118
th->word_delay_ns = cpu_to_le32(max(cs_word_delay_spi, cs_word_delay_xfer));
drivers/spi/spi.c
1388
max_tx = max(xfer->len, max_tx);
drivers/spi/spi.c
1391
max_rx = max(xfer->len, max_rx);
drivers/spi/spi.c
4816
#define SPI_BUFSIZ max(32, SMP_CACHE_BYTES)
drivers/spi/spi.c
4858
local_buf = kmalloc(max((unsigned)SPI_BUFSIZ, n_tx + n_rx),
drivers/staging/greybus/audio_topology.c
161
unsigned int max;
drivers/staging/greybus/audio_topology.c
187
uinfo->value.integer.max = le32_to_cpu(info->value.integer.max);
drivers/staging/greybus/audio_topology.c
190
max = le32_to_cpu(info->value.enumerated.items);
drivers/staging/greybus/audio_topology.c
191
uinfo->value.enumerated.items = max;
drivers/staging/greybus/audio_topology.c
192
if (uinfo->value.enumerated.item > max - 1)
drivers/staging/greybus/audio_topology.c
193
uinfo->value.enumerated.item = max - 1;
drivers/staging/greybus/audio_topology.c
358
platform_max = le32_to_cpu(info->value.integer.max);
drivers/staging/greybus/audio_topology.c
369
uinfo->value.integer.max = platform_max;
drivers/staging/greybus/audio_topology.c
424
int ret, wi, max, connect;
drivers/staging/greybus/audio_topology.c
450
max = le32_to_cpu(info->value.integer.max);
drivers/staging/greybus/audio_topology.c
451
mask = (1 << fls(max)) - 1;
drivers/staging/greybus/camera.c
256
max_pkt_size = max(pkt_size, max_pkt_size);
drivers/staging/greybus/hid.c
159
unsigned int *max)
drivers/staging/greybus/hid.c
166
if (*max < size)
drivers/staging/greybus/hid.c
167
*max = size;
drivers/staging/greybus/light.c
505
v4l2_s->max = channel_s->max;
drivers/staging/greybus/light.c
508
v4l2_s->val = channel_s->max;
drivers/staging/greybus/light.c
764
fset->max = channel->intensity_uA.max;
drivers/staging/greybus/light.c
766
fset->val = channel->intensity_uA.max;
drivers/staging/greybus/light.c
772
fset->max = channel->timeout_us.max;
drivers/staging/greybus/light.c
774
fset->val = channel->timeout_us.max;
drivers/staging/greybus/light.c
831
fset->max = le32_to_cpu(conf.intensity_max_uA);
drivers/staging/greybus/light.c
838
channel->led->max_brightness = (fset->max - fset->min) / fset->step;
drivers/staging/greybus/light.c
844
fset->max = le32_to_cpu(conf.timeout_max_us);
drivers/staging/greybus/loopback.c
167
gb_loopback_ro_stats_attr(field, max, u); \
drivers/staging/greybus/loopback.c
35
u32 max;
drivers/staging/greybus/loopback.c
726
if (stats->max < val)
drivers/staging/greybus/loopback.c
727
stats->max = val;
drivers/staging/greybus/loopback.c
741
if (stats->max < val)
drivers/staging/greybus/loopback.c
742
stats->max = val;
drivers/staging/media/atomisp/i2c/atomisp-gc2235.c
349
.max = 0xffff,
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
437
.max = 0xffff,
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
448
.max = 1500000 * 1000,
drivers/staging/media/atomisp/pci/atomisp_subdev.c
663
.max = ATOMISP_RUN_MODE_MAX,
drivers/staging/media/atomisp/pci/atomisp_subdev.c
679
.max = 2,
drivers/staging/media/atomisp/pci/atomisp_subdev.c
699
.max = 100, /* depends on CSS version, runtime checked */
drivers/staging/media/atomisp/pci/atomisp_subdev.c
723
.max = 1,
drivers/staging/media/atomisp/pci/atomisp_subdev.c
741
.max = 1,
drivers/staging/media/atomisp/pci/atomisp_subdev.c
759
.max = 1,
drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc1_5/ia_css_ctc1_5.host.c
19
int frc_bits = max(IA_CSS_CTC_COEF_SHIFT, 16);
drivers/staging/media/atomisp/pci/isp/kernels/dvs/dvs_1.0/ia_css_dvs.host.c
125
xmax = max(x01, x11);
drivers/staging/media/atomisp/pci/isp/kernels/dvs/dvs_1.0/ia_css_dvs.host.c
127
ymax = max(y10, y11);
drivers/staging/media/atomisp/pci/isp/kernels/eed1_8/ia_css_eed1_8.host.c
264
min_exp = max(min_exp, from->dew_enhance_seg_exp[i]);
drivers/staging/media/atomisp/pci/isp/kernels/s3a/s3a_1.0/ia_css_s3a.host.c
341
chunk = max(chunk, 1);
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
48
binary_dvs_env->width = max(dvs_env->width, SH_CSS_MIN_DVS_ENVELOPE);
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
49
binary_dvs_env->height = max(dvs_env->height, SH_CSS_MIN_DVS_ENVELOPE);
drivers/staging/media/atomisp/pci/runtime/binary/src/binary.c
578
return max(smallest_factor, spec_factor);
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
305
align = max(min_padded_width, width);
drivers/staging/media/atomisp/pci/sh_css_params.c
846
maxval = max(maxval, val);
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
1269
static void isc_hist_count(struct isc_device *isc, u32 *min, u32 *max)
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
1278
*max = HIST_ENTRIES;
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
1292
*max = i;
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
1403
u32 min, max;
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
1409
isc_hist_count(isc, &min, &max);
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
1412
"isc wb mode %d: hist min %u , max %u\n", hist_id, min, max);
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
1415
ctrls->hist_minmax[hist_id][HIST_MAX_INDEX] = max;
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
1637
.max = 4095, \
drivers/staging/media/deprecated/atmel/atmel-isc-base.c
1655
.max = 8191, \
drivers/staging/media/imx/imx-media-fim.c
256
.max = 1,
drivers/staging/media/imx/imx-media-fim.c
266
.max = 64, /* average 64 frames */
drivers/staging/media/imx/imx-media-fim.c
276
.max = 200,
drivers/staging/media/imx/imx-media-fim.c
286
.max = 500,
drivers/staging/media/imx/imx-media-fim.c
296
.max = 256, /* skip 256 frames */
drivers/staging/media/imx/imx-media-fim.c
309
.max = IRQ_TYPE_EDGE_BOTH,
drivers/staging/media/imx/imx-media-fim.c
319
.max = 1,
drivers/staging/media/ipu3/ipu3-abi.h
479
max(IMGU_VMEM3_HOR_Y_SIZE, IMGU_VMEM3_VER_Y_EXTRA))
drivers/staging/media/ipu3/ipu3-abi.h
482
max(IMGU_VMEM3_HOR_U_SIZE, IMGU_VMEM3_VER_U_EXTRA))
drivers/staging/media/ipu3/ipu3-css-params.c
728
stripe_input_width_uv = max(DIV_ROUND_UP(
drivers/staging/media/ipu3/ipu3-css.c
984
clamp(max(fls(css_pipe->rect[IPU3_CSS_RECT_BDS].width /
drivers/staging/media/ipu3/ipu3-v4l2.c
1039
.max = ARRAY_SIZE(imgu_ctrl_mode_strings) - 1,
drivers/staging/media/ipu7/ipu7-isys-video.c
206
max(*bytesperline,
drivers/staging/media/meson/vdec/vdec.c
187
q->min_queued_buffers = max(fmt_out->min_buffers, sess->num_dst_bufs);
drivers/staging/media/sunxi/cedrus/cedrus.c
148
.max = V4L2_STATELESS_H264_DECODE_MODE_SLICE_BASED,
drivers/staging/media/sunxi/cedrus/cedrus.c
156
.max = V4L2_STATELESS_H264_START_CODE_NONE,
drivers/staging/media/sunxi/cedrus/cedrus.c
173
.max = V4L2_MPEG_VIDEO_H264_PROFILE_HIGH,
drivers/staging/media/sunxi/cedrus/cedrus.c
211
.max = 0xffffffff,
drivers/staging/media/sunxi/cedrus/cedrus.c
219
.max = V4L2_STATELESS_HEVC_DECODE_MODE_SLICE_BASED,
drivers/staging/media/sunxi/cedrus/cedrus.c
227
.max = V4L2_STATELESS_HEVC_START_CODE_NONE,
drivers/staging/media/sunxi/cedrus/cedrus.c
55
bit_depth = max(sps->bit_depth_luma_minus8,
drivers/staging/media/tegra-video/vi.c
947
.max = 10000,
drivers/staging/rtl8723bs/core/rtw_wlan_util.c
947
min_MPDU_spacing = max(pmlmeinfo->HT_caps.u.HT_cap_element.AMPDU_para & 0x1c,
drivers/staging/rtl8723bs/hal/odm_DIG.c
600
RSSI_Lower = max(pDM_Odm->RSSI_Min - 10, DM_DIG_MIN_NIC);
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c
37
uinfo->value.integer.max = CTRL_VOL_MAX; /* 2303 */
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c
42
uinfo->value.integer.max = 1;
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c
47
uinfo->value.integer.max = AUDIO_DEST_MAX - 1;
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c
90
if (val < info.value.integer.min || val > info.value.integer.max)
drivers/target/iscsi/cxgbit/cxgbit_cm.c
1106
len = max(len, flowclen);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1059
sg_nents = max(1UL, DIV_ROUND_UP(skip + data_len, PAGE_SIZE));
drivers/target/iscsi/cxgbit/cxgbit_target.c
895
u32 sg_nents = max(1UL, DIV_ROUND_UP(pdu_cb->dlen, PAGE_SIZE));
drivers/target/iscsi/iscsi_target.c
3125
cmd->r2t_offset = max(cmd->r2t_offset, cmd->write_data_done);
drivers/target/iscsi/iscsi_target.c
981
u32 iov_count = max(1UL, DIV_ROUND_UP(cmd->se_cmd.data_length, PAGE_SIZE));
drivers/target/target_core_device.c
518
alignment = max(1ul, PAGE_SIZE / block_size);
drivers/target/target_core_tpg.c
176
acl = kzalloc(max(sizeof(*acl), tpg->se_tpg_tfo->node_acl_size),
drivers/target/target_core_user.c
896
return max(offsetof(struct tcmu_cmd_entry, req.iov[iov_cnt]),
drivers/tc/tc.c
128
(long)(max(slotsize, extslotsize) >> 20));
drivers/thermal/airoha_thermal.c
244
max_value = max(value, max_value);
drivers/thermal/mediatek/auxadc_thermal.c
820
int i, temp = INT_MIN, max = INT_MIN;
drivers/thermal/mediatek/auxadc_thermal.c
841
if (temp > max)
drivers/thermal/mediatek/auxadc_thermal.c
842
max = temp;
drivers/thermal/mediatek/auxadc_thermal.c
845
return max;
drivers/thermal/mediatek/auxadc_thermal.c
859
tempmax = max(tempmax, mtk_thermal_bank_temperature(bank));
drivers/thermal/thermal_core.c
338
tz->recheck_delay_jiffies += max(tz->recheck_delay_jiffies >> 1, 1ULL);
drivers/thunderbolt/retimer.c
513
int ret, i, max, last_idx = 0;
drivers/thunderbolt/retimer.c
535
for (max = 1, i = 1; i <= TB_MAX_RETIMER_INDEX; i++) {
drivers/thunderbolt/retimer.c
547
max = i;
drivers/thunderbolt/retimer.c
552
max = min(last_idx, max);
drivers/thunderbolt/retimer.c
555
for (i = 1; i <= max; i++) {
drivers/thunderbolt/tunnel.c
2055
*consumed_up = max(*consumed_up, USB4_V2_USB3_MIN_BANDWIDTH);
drivers/thunderbolt/tunnel.c
2056
*consumed_down = max(*consumed_down, USB4_V2_USB3_MIN_BANDWIDTH);
drivers/thunderbolt/tunnel.c
378
credits = max(TB_MIN_PCIE_CREDITS, credits);
drivers/thunderbolt/usb4.c
2372
max_bw = max(upstream_bw, downstream_bw);
drivers/thunderbolt/usb4.c
2436
allocate_up = max(*upstream_bw, consumed_up);
drivers/thunderbolt/usb4.c
2437
allocate_down = max(*downstream_bw, consumed_down);
drivers/tty/moxa.c
1781
speed_t max;
drivers/tty/moxa.c
1783
max = MOXA_IS_320(port->board) ? 460800 : 921600;
drivers/tty/moxa.c
1786
if (baud > max)
drivers/tty/moxa.c
1787
baud = max;
drivers/tty/mxser.c
1457
int max = 256;
drivers/tty/mxser.c
1461
if (max-- < 0)
drivers/tty/mxser.c
1609
unsigned int i, max = brd->nports;
drivers/tty/mxser.c
1611
u8 irqbits, bits, mask = BIT(max) - 1;
drivers/tty/mxser.c
1619
for (i = 0, bits = 1; i < max; i++, irqbits |= bits, bits <<= 1) {
drivers/tty/serial/8250/8250_fintek.c
175
int *max)
drivers/tty/serial/8250/8250_fintek.c
182
*max = F81866_LDN_HIGH;
drivers/tty/serial/8250/8250_fintek.c
190
*max = F81216_LDN_HIGH;
drivers/tty/serial/8250/8250_fintek.c
374
int i, j, k, min, max;
drivers/tty/serial/8250/8250_fintek.c
384
fintek_8250_get_ldn_range(pdata, &min, &max)) {
drivers/tty/serial/8250/8250_fintek.c
389
for (k = min; k < max; k++) {
drivers/tty/serial/8250/8250_pericom.c
58
unsigned int divisor = max(maxrate / baud, 1U);
drivers/tty/serial/8250/8250_port.c
2553
unsigned int max;
drivers/tty/serial/8250/8250_port.c
2562
max = (port->uartclk + tolerance) / 4;
drivers/tty/serial/8250/8250_port.c
2565
max = (port->uartclk + tolerance) / 16;
drivers/tty/serial/8250/8250_port.c
2574
return uart_get_baud_rate(port, termios, old, min, max);
drivers/tty/serial/fsl_lpuart.c
1369
sport->dma_rx_timeout = max(nsecs_to_jiffies(
drivers/tty/serial/max310x.c
1643
client->addr > devtype->slave_addr.max)
drivers/tty/serial/max310x.c
1647
devtype->slave_addr.max);
drivers/tty/serial/max310x.c
269
unsigned short max;
drivers/tty/serial/max310x.c
409
.max = 0x2f,
drivers/tty/serial/max310x.c
423
.max = 0x6f,
drivers/tty/serial/max310x.c
437
.max = 0x6f,
drivers/tty/serial/max310x.c
451
.max = 0x6f,
drivers/tty/serial/pch_uart.c
823
fifo_size = max(priv->fifo_size, 1);
drivers/tty/serial/pch_uart.c
880
fifo_size = max(priv->fifo_size, 1);
drivers/tty/serial/rsci.c
262
max_freq = max(max_freq, s->clk_rates[i]);
drivers/tty/serial/serial_base_bus.c
156
int min = 0, max = -1; /* Use -1 for max to apply IDA defaults */
drivers/tty/serial/serial_base_bus.c
166
max = port->port_id;
drivers/tty/serial/serial_base_bus.c
169
err = ida_alloc_range(&ctrl_dev->port_ida, min, max, GFP_KERNEL);
drivers/tty/serial/serial_core.c
1774
char_time = max(nsecs_to_jiffies(port->frame_time / 5), 1UL);
drivers/tty/serial/serial_core.c
478
const struct ktermios *old, unsigned int min, unsigned int max)
drivers/tty/serial/serial_core.c
522
if (baud >= min && baud <= max)
drivers/tty/serial/serial_core.c
549
max - 1, max - 1);
drivers/tty/serial/sh-sci.c
2718
max_freq = max(max_freq, s->clk_rates[i]);
drivers/tty/tty_buffer.c
399
head->lookahead = max(head->lookahead, head->read);
drivers/tty/tty_buffer.c
98
return max(space, 0);
drivers/tty/vt/vt.c
1620
u8 hue = 0, max = max3(c->r, c->g, c->b);
drivers/tty/vt/vt.c
1622
if (c->r > max / 2)
drivers/tty/vt/vt.c
1624
if (c->g > max / 2)
drivers/tty/vt/vt.c
1626
if (c->b > max / 2)
drivers/tty/vt/vt.c
1629
if (hue == 7 && max <= 0x55) {
drivers/tty/vt/vt.c
1632
} else if (max > 0xaa)
drivers/tty/vt/vt.c
3955
first = max(first, con_driver->first);
drivers/tty/vt/vt.c
4063
first = max(first, con_driver->first);
drivers/ufs/host/ufs-mediatek.c
1128
hba->clk_gating.delay_ms = max(ah_ms, 10U);
drivers/usb/atm/speedtch.c
506
instance->poll_delay = max(instance->poll_delay / 2, MIN_POLL_DELAY);
drivers/usb/atm/usbatm.c
1091
instance->tx_channel.buf_size = max(instance->tx_channel.stride,
drivers/usb/atm/usbatm.c
1104
num_packets = max(1U, (rcv_buf_bytes + maxpacket / 2) / maxpacket); /* round */
drivers/usb/cdns3/cdnsp-mem.c
436
num_segs = max(ring->num_segs, num_segs_needed);
drivers/usb/core/devices.c
448
int max;
drivers/usb/core/devices.c
453
max = 800;
drivers/usb/core/devices.c
455
max = FRAME_TIME_MAX_USECS_ALLOC;
drivers/usb/core/devices.c
462
bus->bandwidth_allocated, max,
drivers/usb/core/devices.c
463
(100 * bus->bandwidth_allocated + max / 2)
drivers/usb/core/devices.c
464
/ max,
drivers/usb/core/hub.c
236
max(udev_exit_latency, hub_exit_latency) * 1000 +
drivers/usb/core/hub.c
282
first_link_pel = max(udev_exit_latency, hub_exit_latency) * 1000;
drivers/usb/core/hub.c
296
udev_lpm_params->pel = max(first_link_pel, hub_pel);
drivers/usb/core/hub.c
5344
len = max(len, old_length);
drivers/usb/core/hub.h
172
return max(delay, 100U);
drivers/usb/core/urb.c
369
int xfertype, max;
drivers/usb/core/urb.c
436
max = usb_endpoint_maxp(&ep->desc);
drivers/usb/core/urb.c
438
if (!max && !is_eusb2_isoch_double) {
drivers/usb/core/urb.c
442
__func__, max);
drivers/usb/core/urb.c
459
max *= burst;
drivers/usb/core/urb.c
460
max *= mult;
drivers/usb/core/urb.c
468
max = le32_to_cpu(isoc_ep_comp->dwBytesPerInterval);
drivers/usb/core/urb.c
474
max = le32_to_cpu(ep->eusb2_isoc_ep_comp.dwBytesPerInterval);
drivers/usb/core/urb.c
476
max *= usb_endpoint_maxp_mult(&ep->desc);
drivers/usb/core/urb.c
483
if (len < 0 || len > max)
drivers/usb/core/urb.c
493
if (sg->length % max)
drivers/usb/core/urb.c
557
max = 1 << 15;
drivers/usb/core/urb.c
563
max = 1024 * 8;
drivers/usb/core/urb.c
571
max = 128;
drivers/usb/core/urb.c
576
max = 1024;
drivers/usb/core/urb.c
583
urb->interval = min(max, 1 << ilog2(urb->interval));
drivers/usb/fotg210/fotg210-hcd.c
4727
allocated_max = max(allocated_max,
drivers/usb/gadget/function/f_midi2.c
1489
uinfo->value.integer.max = MIDI_OP_MODE_MIDI2;
drivers/usb/gadget/function/u_audio.c
1029
uinfo->value.integer.max =
drivers/usb/gadget/function/u_audio.c
1122
uinfo->value.integer.max = get_max_srate(srates);
drivers/usb/gadget/function/u_audio.c
906
uinfo->value.integer.max = pitch_max;
drivers/usb/gadget/function/u_audio.c
956
uinfo->value.integer.max = 1;
drivers/usb/gadget/function/u_uac1_legacy.c
33
t.min = t.max = val;
drivers/usb/gadget/function/u_uac1_legacy.c
72
t.max = val;
drivers/usb/gadget/function/u_uac1_legacy.c
75
t.max = val+1;
drivers/usb/gadget/udc/aspeed-vhub/dev.c
366
unsigned int max, addr, i;
drivers/usb/gadget/udc/aspeed-vhub/dev.c
396
max = 1024;
drivers/usb/gadget/udc/aspeed-vhub/dev.c
398
max = 1023;
drivers/usb/gadget/udc/aspeed-vhub/dev.c
402
max = 512;
drivers/usb/gadget/udc/aspeed-vhub/dev.c
404
max = 64;
drivers/usb/gadget/udc/aspeed-vhub/dev.c
408
max = 1024;
drivers/usb/gadget/udc/aspeed-vhub/dev.c
410
max = 64;
drivers/usb/gadget/udc/aspeed-vhub/dev.c
413
if (usb_endpoint_maxp(desc) > max)
drivers/usb/gadget/udc/bcm63xx_udc.c
709
bcm63xx_fifo_reset_ep(udc, max(0, iudma->ep_num));
drivers/usb/gadget/udc/core.c
1034
u16 max;
drivers/usb/gadget/udc/core.c
1042
max = usb_endpoint_maxp(desc);
drivers/usb/gadget/udc/core.c
1049
if (max > ep->maxpacket_limit)
drivers/usb/gadget/udc/core.c
1064
if (!gadget_is_dualspeed(gadget) && max > 1023)
drivers/usb/gadget/udc/core.c
1087
if (!gadget_is_dualspeed(gadget) && max > 64)
drivers/usb/gadget/udc/dummy_hcd.c
1975
limit = max(limit, periodic_bytes(dum, ep));
drivers/usb/gadget/udc/dummy_hcd.c
1983
limit = max(limit, periodic_bytes(dum, ep));
drivers/usb/gadget/udc/dummy_hcd.c
514
unsigned max;
drivers/usb/gadget/udc/dummy_hcd.c
534
max = usb_endpoint_maxp(desc);
drivers/usb/gadget/udc/dummy_hcd.c
553
if (max == 1024)
drivers/usb/gadget/udc/dummy_hcd.c
557
if (max == 512)
drivers/usb/gadget/udc/dummy_hcd.c
561
if (max == 8 || max == 16 || max == 32 || max == 64)
drivers/usb/gadget/udc/dummy_hcd.c
577
if (max <= 1024)
drivers/usb/gadget/udc/dummy_hcd.c
582
if (max <= 64)
drivers/usb/gadget/udc/dummy_hcd.c
587
if (max <= 8)
drivers/usb/gadget/udc/dummy_hcd.c
600
if (max <= 1024)
drivers/usb/gadget/udc/dummy_hcd.c
605
if (max <= 1023)
drivers/usb/gadget/udc/dummy_hcd.c
618
_ep->maxpacket = max;
drivers/usb/gadget/udc/dummy_hcd.c
634
max, str_enabled_disabled(ep->stream_en));
drivers/usb/gadget/udc/fsl_qe_udc.c
528
u16 max = 0;
drivers/usb/gadget/udc/fsl_qe_udc.c
530
max = usb_endpoint_maxp(desc);
drivers/usb/gadget/udc/fsl_qe_udc.c
543
if ((max == 128) || (max == 256) || (max == 512))
drivers/usb/gadget/udc/fsl_qe_udc.c
547
switch (max) {
drivers/usb/gadget/udc/fsl_qe_udc.c
565
if (max <= 1024)
drivers/usb/gadget/udc/fsl_qe_udc.c
569
if (max <= 64)
drivers/usb/gadget/udc/fsl_qe_udc.c
573
if (max <= 8)
drivers/usb/gadget/udc/fsl_qe_udc.c
584
if (max <= 1024)
drivers/usb/gadget/udc/fsl_qe_udc.c
588
if (max <= 1023)
drivers/usb/gadget/udc/fsl_qe_udc.c
602
switch (max) {
drivers/usb/gadget/udc/fsl_qe_udc.c
616
switch (max) {
drivers/usb/gadget/udc/fsl_qe_udc.c
638
ep->ep.maxpacket = max;
drivers/usb/gadget/udc/fsl_udc_core.c
545
unsigned short max = 0;
drivers/usb/gadget/udc/fsl_udc_core.c
562
max = usb_endpoint_maxp(desc);
drivers/usb/gadget/udc/fsl_udc_core.c
592
ep->ep.maxpacket = max;
drivers/usb/gadget/udc/fsl_udc_core.c
604
max, zlt, mult);
drivers/usb/gadget/udc/fsl_udc_core.c
619
max);
drivers/usb/gadget/udc/goku_udc.c
125
max = get_unaligned_le16(&desc->wMaxPacketSize);
drivers/usb/gadget/udc/goku_udc.c
126
switch (max) {
drivers/usb/gadget/udc/goku_udc.c
179
ep->ep.maxpacket = max;
drivers/usb/gadget/udc/goku_udc.c
187
max);
drivers/usb/gadget/udc/goku_udc.c
335
write_packet(u32 __iomem *fifo, u8 *buf, struct goku_request *req, unsigned max)
drivers/usb/gadget/udc/goku_udc.c
339
length = min(req->req.length - req->req.actual, max);
drivers/usb/gadget/udc/goku_udc.c
96
u16 max;
drivers/usb/gadget/udc/gr_udc.c
1472
u16 max;
drivers/usb/gadget/udc/gr_udc.c
1521
max = usb_endpoint_maxp(desc);
drivers/usb/gadget/udc/gr_udc.c
1533
} else if ((nt + 1) * max > buffer_size) {
drivers/usb/gadget/udc/gr_udc.c
1535
buffer_size, (nt + 1), max);
drivers/usb/gadget/udc/gr_udc.c
1537
} else if (max == 0) {
drivers/usb/gadget/udc/gr_udc.c
1540
} else if (max > ep->ep.maxpacket_limit) {
drivers/usb/gadget/udc/gr_udc.c
1542
max, ep->ep.maxpacket_limit);
drivers/usb/gadget/udc/gr_udc.c
1556
ep->ep.maxpacket = max;
drivers/usb/gadget/udc/gr_udc.c
1565
ep->bytes_per_buffer = (nt + 1) * max;
drivers/usb/gadget/udc/gr_udc.c
1572
ep->bytes_per_buffer = (buffer_size / max) * max;
drivers/usb/gadget/udc/gr_udc.c
1578
ep->bytes_per_buffer = max;
drivers/usb/gadget/udc/gr_udc.c
1581
epctrl = (max << GR_EPCTRL_MAXPL_POS)
drivers/usb/gadget/udc/net2280.c
186
u32 max;
drivers/usb/gadget/udc/net2280.c
224
max = usb_endpoint_maxp(desc);
drivers/usb/gadget/udc/net2280.c
225
if (ep->num > 4 && max > 64 && (dev->quirks & PLX_LEGACY)) {
drivers/usb/gadget/udc/net2280.c
231
_ep->maxpacket = max;
drivers/usb/gadget/udc/net2280.c
240
set_max_speed(ep, max);
drivers/usb/gadget/udc/net2280.c
268
if ((dev->gadget.speed == USB_SPEED_SUPER && max != 1024) ||
drivers/usb/gadget/udc/net2280.c
269
(dev->gadget.speed == USB_SPEED_HIGH && max != 512) ||
drivers/usb/gadget/udc/net2280.c
270
(dev->gadget.speed == USB_SPEED_FULL && max > 64)) {
drivers/usb/gadget/udc/net2280.c
350
ep->dma ? "dma" : "pio", max);
drivers/usb/gadget/udc/net2280.h
362
static inline void set_max_speed(struct net2280_ep *ep, u32 max)
drivers/usb/gadget/udc/net2280.h
387
set_idx_reg(ep->dev->regs, reg, max);
drivers/usb/gadget/udc/omap_udc.c
330
write_packet(u8 *buf, struct omap_req *req, unsigned max)
drivers/usb/gadget/udc/omap_udc.c
335
len = min(req->req.length - req->req.actual, max);
drivers/usb/gadget/udc/omap_udc.c
338
max = len;
drivers/usb/gadget/udc/omap_udc.c
341
while (max >= 2) {
drivers/usb/gadget/udc/omap_udc.c
343
max -= 2;
drivers/usb/gadget/udc/omap_udc.c
347
while (max--)
drivers/usb/gadget/udc/pxa25x_udc.c
567
write_packet(struct pxa25x_ep *ep, struct pxa25x_request *req, unsigned max)
drivers/usb/gadget/udc/pxa25x_udc.c
576
length = min(req->req.length - req->req.actual, max);
drivers/usb/gadget/udc/pxa25x_udc.c
594
unsigned max;
drivers/usb/gadget/udc/pxa25x_udc.c
596
max = usb_endpoint_maxp(ep->ep.desc);
drivers/usb/gadget/udc/pxa25x_udc.c
601
count = write_packet(ep, req, max);
drivers/usb/gadget/udc/pxa25x_udc.c
604
if (unlikely (count != max))
drivers/usb/gadget/udc/pxa25x_udc.c
613
is_short = unlikely (max < ep->fifo_size);
drivers/usb/gadget/udc/pxa27x_udc.c
828
unsigned int max)
drivers/usb/gadget/udc/pxa27x_udc.c
837
length = min(req->req.length - req->req.actual, max);
drivers/usb/gadget/udc/pxa27x_udc.c
906
unsigned max;
drivers/usb/gadget/udc/pxa27x_udc.c
910
max = ep->fifo_size;
drivers/usb/gadget/udc/pxa27x_udc.c
924
count = write_packet(ep, req, max);
drivers/usb/gadget/udc/pxa27x_udc.c
929
if (unlikely(count < max)) {
drivers/usb/gadget/udc/pxa27x_udc.c
939
is_short = unlikely(max < ep->fifo_size);
drivers/usb/gadget/udc/udc-xilinx.c
678
u32 max;
drivers/usb/gadget/udc/udc-xilinx.c
686
max = le16_to_cpu(ep->desc->wMaxPacketSize);
drivers/usb/gadget/udc/udc-xilinx.c
690
length = min(length, max);
drivers/usb/gadget/udc/udc-xilinx.c
696
if (unlikely(length != max)) {
drivers/usb/host/ehci-sched.c
1085
hs_transfers = max(1u, (maxp + 187) / 188);
drivers/usb/host/ehci-sysfs.c
111
allocated_max = max(allocated_max,
drivers/usb/host/xhci.c
5155
mel_us = max(u1_mel_us, u2_mel_us);
drivers/usb/misc/chaoskey.c
28
size_t max, bool wait);
drivers/usb/misc/chaoskey.c
502
size_t max, bool wait)
drivers/usb/misc/chaoskey.c
507
usb_dbg(dev->interface, "rng_read max %zu wait %d", max, wait);
drivers/usb/misc/chaoskey.c
532
if (this_time > max)
drivers/usb/misc/chaoskey.c
533
this_time = max;
drivers/usb/misc/usbtest.c
1018
unsigned max = d->bNumConfigurations;
drivers/usb/misc/usbtest.c
1019
for (i = 0; i < max; i++) {
drivers/usb/misc/usbtest.c
464
int max = urb->transfer_buffer_length;
drivers/usb/misc/usbtest.c
497
len %= max;
drivers/usb/misc/usbtest.c
499
len = (vary < max) ? vary : max;
drivers/usb/misc/usbtest.c
505
urb->transfer_buffer_length = max;
drivers/usb/misc/usbtest.c
536
alloc_sglist(int nents, int max, int vary, struct usbtest_dev *dev, int pipe)
drivers/usb/misc/usbtest.c
541
unsigned size = max;
drivers/usb/misc/usbtest.c
545
if (max == 0)
drivers/usb/misc/usbtest.c
579
size %= max;
drivers/usb/misc/usbtest.c
581
size = (vary < max) ? vary : max;
drivers/usb/mon/mon_bin.c
904
u32 __user *vec, unsigned int max)
drivers/usb/mon/mon_bin.c
929
if (nevents >= max)
drivers/usb/musb/musb_core.c
1523
musb->nr_endpoints = max(epn, musb->nr_endpoints);
drivers/usb/phy/phy.c
126
unsigned int min, max;
drivers/usb/phy/phy.c
130
usb_phy_get_charger_current(usb_phy, &min, &max);
drivers/usb/phy/phy.c
132
atomic_notifier_call_chain(&usb_phy->notifier, max, usb_phy);
drivers/usb/phy/phy.c
281
unsigned int *min, unsigned int *max)
drivers/usb/phy/phy.c
286
*max = usb_phy->chg_cur.sdp_max;
drivers/usb/phy/phy.c
290
*max = usb_phy->chg_cur.dcp_max;
drivers/usb/phy/phy.c
294
*max = usb_phy->chg_cur.cdp_max;
drivers/usb/phy/phy.c
298
*max = usb_phy->chg_cur.aca_max;
drivers/usb/phy/phy.c
302
*max = 0;
drivers/usb/serial/cp210x.c
2034
speed_t max;
drivers/usb/serial/cp210x.c
2038
max = 921600;
drivers/usb/serial/cp210x.c
2042
max = 1000000;
drivers/usb/serial/cp210x.c
2046
max = 2000000;
drivers/usb/serial/cp210x.c
2049
max = 2000000;
drivers/usb/serial/cp210x.c
2054
max = 2000000; /* ECI */
drivers/usb/serial/cp210x.c
2057
max = 921600; /* SCI */
drivers/usb/serial/cp210x.c
2064
max = 3000000;
drivers/usb/serial/cp210x.c
2067
max = 2000000;
drivers/usb/serial/cp210x.c
2072
priv->max_speed = max;
drivers/usb/serial/generic.c
54
num_ports = max(epds->num_bulk_in, epds->num_bulk_out);
drivers/usb/serial/io_ti.c
1867
max(20, ((transaction_timeout * 3) / 2));
drivers/usb/serial/io_usbvend.h
239
#define EDGE_FW_GET_TX_CREDITS_SEND_THRESHOLD(InitialCredit, MaxPacketSize) (max(((InitialCredit) / 4), (MaxPacketSize)))
drivers/usb/serial/keyspan_pda.c
138
priv->tx_room = max(priv->tx_room, result);
drivers/usb/serial/keyspan_pda.c
198
priv->tx_room = max(priv->tx_room, KEYSPAN_TX_THRESHOLD);
drivers/usb/serial/keyspan_pda.c
511
priv->tx_room = max(priv->tx_room, room + count);
drivers/usb/serial/usb-serial.c
1054
max_endpoints = max(epds->num_bulk_in, epds->num_bulk_out);
drivers/usb/serial/usb-serial.c
1055
max_endpoints = max(max_endpoints, epds->num_interrupt_in);
drivers/usb/serial/usb-serial.c
1056
max_endpoints = max(max_endpoints, epds->num_interrupt_out);
drivers/usb/serial/usb-serial.c
1057
max_endpoints = max(max_endpoints, serial->num_ports);
drivers/usb/storage/ene_ub6250.c
560
scsi_set_resid(us->srb, max(scsi_get_resid(us->srb),
drivers/usb/storage/transport.c
1311
scsi_set_resid(srb, max(scsi_get_resid(srb), residue));
drivers/usb/typec/anx7411.c
1245
typecp->sink_voltage = max(5000, ret) / 100;
drivers/usb/typec/tcpm/fusb302.c
155
chip->logbuffer_head = max(chip->logbuffer_head - 1, 0);
drivers/usb/typec/tcpm/tcpm.c
3929
unsigned int max, op, pdo_max, index;
drivers/usb/typec/tcpm/tcpm.c
3941
max = rdo_max_current(rdo);
drivers/usb/typec/tcpm/tcpm.c
3947
if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH))
drivers/usb/typec/tcpm/tcpm.c
3953
pdo_fixed_voltage(pdo), pdo_max, op, max);
drivers/usb/typec/tcpm/tcpm.c
3958
pdo_max, op, max);
drivers/usb/typec/tcpm/tcpm.c
3961
max = rdo_max_power(rdo);
drivers/usb/typec/tcpm/tcpm.c
3967
if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH))
drivers/usb/typec/tcpm/tcpm.c
3972
pdo_max, op, max);
drivers/usb/typec/tcpm/tcpm.c
727
port->logbuffer_head = max(port->logbuffer_head - 1, 0);
drivers/usb/typec/tcpm/tcpm.c
7629
max_src_uw = max(tmp, max_src_uw);
drivers/vdpa/ifcvf/ifcvf_base.c
96
max_size = max(queue_size, max_size);
drivers/vfio/pci/mlx5/main.c
393
inc_state_size = max(state_size, chunk_size);
drivers/vfio/pci/mlx5/main.c
925
u64 size = max(migf->record_size,
drivers/vfio/pci/vfio_pci_config.c
936
readrq = max(readrq, pcie_get_mps(vdev->pdev));
drivers/vfio/pci/vfio_pci_core.c
1194
int max, ret = 0;
drivers/vfio/pci/vfio_pci_core.c
1200
max = vfio_pci_get_irq_count(vdev, hdr.index);
drivers/vfio/pci/vfio_pci_core.c
1202
ret = vfio_set_irqs_validate_and_prepare(&hdr, max, VFIO_PCI_NUM_IRQS,
drivers/vhost/vhost.c
2474
start = max(u->addr, hva);
drivers/video/fbdev/atmel_lcdfb.c
331
info->fix.smem_len = max(smem_len, sinfo->smem_len);
drivers/video/fbdev/au1200fb.c
1070
pixclock = max((u32)(PICOS2KHZ(var->pixclock) * 1000), fbi->monspecs.dclkmin);
drivers/video/fbdev/core/fb_backlight.c
16
void fb_bl_default_curve(struct fb_info *fb_info, u8 off, u8 min, u8 max)
drivers/video/fbdev/core/fb_backlight.c
18
unsigned int i, flat, count, range = (max - min);
drivers/video/fbdev/core/fbcon.h
117
max_len = max(info->var.green.length, info->var.red.length);
drivers/video/fbdev/core/fbcon.h
118
max_len = max(info->var.blue.length, max_len);
drivers/video/fbdev/core/fbsysfs.c
70
if (strncmp(mstr, buf, max(count, i)) == 0) {
drivers/video/fbdev/ep93xx-fb.c
301
var->xres_virtual = max(var->xres_virtual, var->xres);
drivers/video/fbdev/ep93xx-fb.c
305
var->yres_virtual = max(var->yres_virtual, var->yres);
drivers/video/fbdev/geode/lxfb_ops.c
347
unsigned int max, dv, val, size;
drivers/video/fbdev/geode/lxfb_ops.c
408
max = info->fix.line_length * info->var.yres;
drivers/video/fbdev/geode/lxfb_ops.c
409
max = (max + 0x3FF) & 0xFFFFFC00;
drivers/video/fbdev/geode/lxfb_ops.c
411
write_dc(par, DC_DV_TOP, max | DC_DV_TOP_DV_TOP_EN);
drivers/video/fbdev/imxfb.c
399
var->xres_virtual = max(var->xres_virtual, var->xres);
drivers/video/fbdev/imxfb.c
400
var->yres_virtual = max(var->yres_virtual, var->yres);
drivers/video/fbdev/matrox/matroxfb_g450.c
140
*bl = max(b - c, BLMIN);
drivers/video/fbdev/matrox/matroxfb_maven.c
363
*bl = max(b - c, BLMIN);
drivers/video/fbdev/omap/lcdc.c
445
pck = max(1, pck);
drivers/video/fbdev/omap/lcdc.c
449
*pck_div = max(2, *pck_div);
drivers/video/fbdev/omap/lcdc.c
451
*pck_div = max(3, *pck_div);
drivers/video/fbdev/omap2/omapfb/dss/dispc.c
2127
val, max(0, ds - 2) * width);
drivers/video/fbdev/omap2/omapfb/dss/dispc.c
2128
if (val < max(0, ds - 2) * width)
drivers/video/fbdev/omap2/omapfb/dss/dispc.c
2138
val, max(0, ds - 1) * width);
drivers/video/fbdev/omap2/omapfb/dss/dispc.c
2139
if (val < max(0, ds - 1) * width)
drivers/video/fbdev/omap2/omapfb/dss/dispc.c
3604
lckd_start = max(DIV_ROUND_UP(dispc, lck_max), 1ul);
drivers/video/fbdev/omap2/omapfb/dss/dispc.c
3610
pckd_start = max(DIV_ROUND_UP(lck, pck_max), pckd_hw_min);
drivers/video/fbdev/omap2/omapfb/dss/dpi.c
256
ctx->pck_min = max(pck - 1000 * i * i * i, 0lu);
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
3402
transition = enter_hs + exit_hs + max(enter_hs, 2) + 1;
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
3405
trans1 = ddr_pre + enter_hs + exit_hs + max(enter_hs, 2) + 1;
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
3408
transition = max(trans1, trans2);
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
3431
trans_lp = exit_hs + max(enter_hs, 2) + 1;
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
3441
return max(lp_inter, 0);
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4482
pll_min = max(cfg->hs_clk_min * 4, txbyteclk * 4 * 4);
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4595
hsa = max(hsa - hse, 1);
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4599
hbp = max(hbp, 1);
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4607
hbp = max(hbp - t, 1);
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4613
hsa = max(hsa - t, 1);
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4652
hsa = max(hsa, 1);
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4658
hbp = max(hbp, 1);
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4666
hbp = max(hbp - t, 1);
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4672
hsa = max(hsa - t, 1);
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
4774
pll_min = max(cfg->hs_clk_min * 4, byteclk_min * 4 * 4);
drivers/video/fbdev/omap2/omapfb/dss/dss.c
543
fckd_stop = max(DIV_ROUND_UP(prate * m, fck_hw_max), 1ul);
drivers/video/fbdev/omap2/omapfb/dss/dss_features.c
27
int min, max;
drivers/video/fbdev/omap2/omapfb/dss/dss_features.c
821
return omap_current_dss_features->dss_params[param].max;
drivers/video/fbdev/omap2/omapfb/dss/pll.c
132
m_start = max(DIV_ROUND_UP(clkdco, out_max), 1ul);
drivers/video/fbdev/omap2/omapfb/dss/pll.c
162
n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul);
drivers/video/fbdev/omap2/omapfb/dss/pll.c
170
m_start = max(DIV_ROUND_UP(DIV_ROUND_UP(pll_min, fint), 2),
drivers/video/fbdev/omap2/omapfb/dss/sdi.c
88
ctx.pck_min = max(pclk - 1000 * i * i * i, 0lu);
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
1448
size = max(omap_vrfb_min_phys_size(w, h, bytespp),
drivers/video/fbdev/ps3fb.c
283
xres = max(var->xres, 1U);
drivers/video/fbdev/ps3fb.c
284
yres = max(var->yres, 1U);
drivers/video/fbdev/ps3fb.c
287
left_margin = max(var->left_margin, vmode->left_margin);
drivers/video/fbdev/ps3fb.c
288
right_margin = max(var->right_margin, vmode->right_margin);
drivers/video/fbdev/ps3fb.c
289
upper_margin = max(var->upper_margin, vmode->upper_margin);
drivers/video/fbdev/ps3fb.c
290
lower_margin = max(var->lower_margin, vmode->lower_margin);
drivers/video/fbdev/ps3fb.c
626
max(par->ddr_frame_size, par->xdr_frame_size);
drivers/video/fbdev/pxa168fb.c
171
var->xres_virtual = max(var->xres, var->xres_virtual);
drivers/video/fbdev/pxa168fb.c
176
var->yres_virtual = max(var->yres, var->yres_virtual);
drivers/video/fbdev/pxafb.c
1226
t1 = max(mode->a0csrd_set_hld, mode->a0cswr_set_hld);
drivers/video/fbdev/pxafb.c
1227
t2 = max(mode->rd_pulse_width, mode->wr_pulse_width);
drivers/video/fbdev/pxafb.c
441
var->yres_virtual = max(var->yres_virtual, var->yres);
drivers/video/fbdev/pxafb.c
811
var->yres_virtual = max(var->yres, var->yres_virtual);
drivers/video/fbdev/s3c-fb.c
248
var->xres_virtual = max(var->xres_virtual, var->xres);
drivers/video/fbdev/s3c-fb.c
249
var->yres_virtual = max(var->yres_virtual, var->yres);
drivers/video/fbdev/sa1100fb.c
381
var->xres_virtual = max(var->xres_virtual, var->xres);
drivers/video/fbdev/sa1100fb.c
382
var->yres_virtual = max(var->yres_virtual, var->yres);
drivers/video/fbdev/sis/sis_accel.c
196
int mymax = max(src_y, dst_y);
drivers/video/fbdev/sis/sis_main.c
3132
u32 max = ivideo->video_size - ivideo->hwcursor_size - ivideo->cmdQueueSize;
drivers/video/fbdev/sis/sis_main.c
3137
((ivideo->sisfb_parm_mem * 1024) > max) ||
drivers/video/fbdev/sis/sis_main.c
3138
((max - (ivideo->sisfb_parm_mem * 1024)) < ivideo->UMAsize) ) {
drivers/video/fbdev/sis/sis_main.c
3140
max -= ivideo->UMAsize;
drivers/video/fbdev/sis/sis_main.c
3142
ret = max - (ivideo->sisfb_parm_mem * 1024);
drivers/video/fbdev/sis/sis_main.c
3143
max = ivideo->sisfb_parm_mem * 1024;
drivers/video/fbdev/sis/sis_main.c
3146
ivideo->sisfb_mem = max;
drivers/video/fbdev/sis/sis_main.c
3148
ret = max - ivideo->heapstart;
drivers/video/fbdev/smscufx.c
1233
int start = max((int)(off / info->fix.line_length), 0);
drivers/video/fbdev/tdfxfb.c
305
for (n = max(0, n_estimated);
drivers/video/fbdev/udlfb.c
1132
int start = max((int)(off / info->fix.line_length), 0);
drivers/video/fbdev/udlfb.c
712
dlfb->damage_x2 = max(x2, dlfb->damage_x2);
drivers/video/fbdev/udlfb.c
714
dlfb->damage_y2 = max(y2, dlfb->damage_y2);
drivers/video/of_display_timing.c
41
result->max = result->typ;
drivers/video/screen_info_generic.c
175
bits_per_pixel = max(max3(si->red_size + si->red_pos,
drivers/virt/coco/sev-guest/sev-guest.c
553
certs_size = max(certs_size, ent->offset + ent->length);
drivers/virt/vboxguest/vboxguest_linux.c
125
size = max(hdr.size_in, hdr.size_out);
drivers/virtio/virtio_input.c
181
virtio_cread_le(vi->vdev, struct virtio_input_config, u.abs.max, &ma);
drivers/w1/slaves/w1_therm.c
1504
t_conv = max(t_cur, t_conv);
drivers/watchdog/aspeed_wdt.c
534
duration = max(1U, min(max_duration, duration));
drivers/watchdog/at91sam9_wdt.c
268
u32 max = WDT_COUNTER_MAX_SECS;
drivers/watchdog/at91sam9_wdt.c
277
&max)) {
drivers/watchdog/at91sam9_wdt.c
278
if (!max || max > WDT_COUNTER_MAX_SECS)
drivers/watchdog/at91sam9_wdt.c
279
max = WDT_COUNTER_MAX_SECS;
drivers/watchdog/at91sam9_wdt.c
283
if (min >= max)
drivers/watchdog/at91sam9_wdt.c
284
min = max - 1;
drivers/watchdog/at91sam9_wdt.c
289
max = secs_to_ticks(max);
drivers/watchdog/at91sam9_wdt.c
316
wdt->mr |= max | ((max - min) << 16);
drivers/watchdog/hpwdt.c
189
unsigned int val = max((unsigned int)kdumptimeout, hpwdt_dev.timeout);
drivers/watchdog/realtek_otto_wdt.c
120
return max(min_ticks, DIV_ROUND_UP(val, tick_duration));
drivers/xen/gntdev.c
563
mstart = max(range->start, map_start);
drivers/xen/xen-acpi-processor.c
309
max_acpi_id = max(info->acpi_id, max_acpi_id);
fs/affs/file.c
733
max(boff + tmp, be32_to_cpu(AFFS_DATA_HEAD(bh)->size)));
fs/afs/fsclient.c
1463
max(12 * 4, AFSOPAQUEMAX + 1));
fs/afs/inode.c
882
loff_t to = max(size, i_size);
fs/afs/rxrpc.c
486
static int max = 0;
fs/afs/rxrpc.c
504
m = max;
fs/afs/rxrpc.c
506
max = m + 1;
fs/aio.c
753
nr_events = max(nr_events, num_possible_cpus() * 4);
fs/binfmt_elf.c
474
max_addr = max(max_addr, phdr[i].p_vaddr + phdr[i].p_memsz);
fs/binfmt_elf.c
504
alignment = max(alignment, p_align);
fs/btrfs/async-thread.h
45
void btrfs_workqueue_set_max(struct btrfs_workqueue *wq, int max);
fs/btrfs/compression.c
1241
copy_start = max(cur_offset, bvec_offset);
fs/btrfs/defrag.c
1124
*last_scanned_ret = max(cur, *last_scanned_ret);
fs/btrfs/defrag.c
1126
*last_scanned_ret = max(start + len, *last_scanned_ret);
fs/btrfs/defrag.c
1336
*last_scanned_ret = max(*last_scanned_ret, start + len);
fs/btrfs/defrag.c
1466
cur = max(cluster_end + 1, last_scanned);
fs/btrfs/defrag.c
266
cur = max(cur + fs_info->sectorsize, range.start);
fs/btrfs/discard.c
436
delay = max(delay, bps_delay);
fs/btrfs/discard.c
446
delay = max(delay, bg_timeout);
fs/btrfs/disk-io.c
2099
max_global_id = max(max_global_id, key.offset);
fs/btrfs/disk-io.c
3463
sb->s_bdi->ra_pages = max(sb->s_bdi->ra_pages, SZ_4M / PAGE_SIZE);
fs/btrfs/extent-io-tree.c
1721
max(cur_start, state->start);
fs/btrfs/extent-io-tree.c
1725
*start = max(cur_start, state->start);
fs/btrfs/extent-tree.c
4620
ffe_ctl->search_start = max(ffe_ctl->search_start,
fs/btrfs/extent-tree.c
4622
ffe_ctl->search_start = max(ffe_ctl->search_start, ffe_ctl->hint_byte);
fs/btrfs/extent-tree.c
4909
num_bytes = max(num_bytes, min_alloc_size);
fs/btrfs/extent-tree.c
5564
wc->reada_count = max(wc->reada_count, 2);
fs/btrfs/extent-tree.c
6648
start = max(start, cur_start);
fs/btrfs/extent-tree.c
6870
start = max(range->start, cache->start);
fs/btrfs/extent_io.c
1273
u64 cur = max(start, ordered->file_offset);
fs/btrfs/extent_io.c
2127
static inline struct extent_buffer *find_get_eb(struct xa_state *xas, unsigned long max,
fs/btrfs/extent_io.c
2133
eb = xas_find_marked(xas, max, mark);
fs/btrfs/extent_io.c
613
u32 zero_start = max(offset_in_folio(folio, i_size),
fs/btrfs/extent_io.c
828
bio_ctrl->generation = max(bio_ctrl->generation, read_em_generation);
fs/btrfs/extent_map.c
296
new_disk_num_bytes = max(prev->disk_bytenr + prev->disk_num_bytes,
fs/btrfs/extent_map.c
381
em->generation = max(em->generation, merge->generation);
fs/btrfs/extent_map.c
401
em->generation = max(em->generation, merge->generation);
fs/btrfs/file.c
270
search_start = max(key.offset, args->start);
fs/btrfs/file.c
3372
oe_start = max(oe->file_offset, start);
fs/btrfs/file.c
3443
*delalloc_start_ret = max(delalloc_start, start);
fs/btrfs/free-space-cache.c
1226
extent_start = max(extent_start, start);
fs/btrfs/free-space-cache.c
2046
*max_extent_size = max(get_max_extent_size(entry),
fs/btrfs/free-space-cache.c
2074
*max_extent_size = max(get_max_extent_size(entry),
fs/btrfs/free-space-cache.c
2090
max(get_max_extent_size(entry),
fs/btrfs/free-space-cache.c
2665
filter_bytes = max(filter_bytes, info->bytes);
fs/btrfs/free-space-cache.c
3208
*max_extent_size = max(get_max_extent_size(entry),
fs/btrfs/free-space-cache.c
3251
*max_extent_size = max(get_max_extent_size(entry),
fs/btrfs/free-space-cache.c
3585
cont1_bytes = max(bytes, (bytes + empty_size) >> 2);
fs/btrfs/free-space-cache.c
3788
start = max(start, extent_start);
fs/btrfs/inode.c
10226
if (bsi->nr_pages >= sis->max)
fs/btrfs/inode.c
10229
max_pages = sis->max - bsi->nr_pages;
fs/btrfs/inode.c
10579
sis->max = bsi.nr_pages;
fs/btrfs/inode.c
1484
num_bytes = max(blocksize, num_bytes);
fs/btrfs/inode.c
9233
cur_bytes = max(cur_bytes, min_size);
fs/btrfs/ioctl.c
463
range.minlen = max(range.minlen, minlen);
fs/btrfs/qgroup.c
3001
fs_info->qgroup_seq += max(nr_old_roots, nr_new_roots) + 1;
fs/btrfs/qgroup.c
4347
free_start = max(range_start, start);
fs/btrfs/raid56.c
1297
max(BTRFS_STRIPE_LEN >> PAGE_SHIFT, 1),
fs/btrfs/relocation.c
2563
nr_levels = max(btrfs_header_level(root->node) - block->level, 0) + 1;
fs/btrfs/relocation.c
2855
cur = max(folio_start, cluster->boundary[*cluster_nr] - offset);
fs/btrfs/relocation.c
2861
u64 clamped_start = max(folio_start, extent_start);
fs/btrfs/scrub.c
1631
for (u64 cur_logical = max(stripe->logical, extent_start);
fs/btrfs/scrub.c
1705
cur_logical = max(extent_start, cur_logical);
fs/btrfs/send.c
3230
dir_high_seq_ino = max(dir_high_seq_ino, loc.objectid);
fs/btrfs/send.c
3269
odi->dir_high_seq_ino = max(odi->dir_high_seq_ino, dir_high_seq_ino);
fs/btrfs/space-info.c
1357
space_info->clamp = max(1, space_info->clamp - 1);
fs/btrfs/space-info.c
741
to_reclaim = max(to_reclaim, delalloc_bytes >> 3);
fs/btrfs/tree-log.c
4015
last_offset = max(last_offset, curr_end);
fs/btrfs/volumes.c
5486
limit = max(round_down(mult_perc(fs_devices->total_rw_bytes, 10),
fs/btrfs/zlib.c
82
workspacesize = max(zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL),
fs/btrfs/zoned.c
1603
last_alloc = max(last_alloc, alloc);
fs/btrfs/zoned.c
1751
last_alloc = max(last_alloc, alloc);
fs/btrfs/zstd.c
97
return max(0, level - 1);
fs/buffer.c
2021
start = max(from, block_start);
fs/ceph/addr.c
1535
len = max(len, min_len);
fs/ceph/debugfs.c
128
#define CEPH_LAT_METRIC_SHOW(name, total, avg, min, max, sq) { \
fs/ceph/debugfs.c
132
_max = ktime_to_us(max); \
fs/ceph/debugfs.c
141
#define CEPH_SZ_METRIC_SHOW(name, total, avg, min, max, sum) { \
fs/ceph/debugfs.c
144
name, total, avg, _min, max, sum); \
fs/ceph/debugfs.c
176
s64 total, avg, min, max, sq;
fs/ceph/debugfs.c
188
max = m->latency_max;
fs/ceph/debugfs.c
191
CEPH_LAT_METRIC_SHOW(metric_str[i], total, avg, min, max, sq);
fs/ceph/debugfs.c
203
u64 sum, avg, min, max;
fs/ceph/debugfs.c
219
max = m->size_max;
fs/ceph/debugfs.c
221
CEPH_SZ_METRIC_SHOW(metric_str[i], total, avg, min, max, sum);
fs/ceph/file.c
1184
fret = max(fret, 0);
fs/ceph/file.c
2343
loff_t limit = max(i_size_read(inode), fsc->max_file_size);
fs/ceph/inode.c
2903
attr->ia_size > max(i_size_read(inode), fsc->max_file_size))
fs/ceph/mds_client.c
2543
num_entries = max(num_entries, 1U);
fs/ceph/mdsmap.c
170
m->possible_max_rank = max(m->m_num_active_mds, m->m_max_mds);
fs/ceph/metric.c
320
#define METRIC_UPDATE_MIN_MAX(min, max, new) \
fs/ceph/metric.c
324
if (unlikely(new > max)) \
fs/ceph/metric.c
325
max = new; \
fs/ceph/quota.c
334
u64 max, rvalue;
fs/ceph/quota.c
370
max = ci->i_max_files;
fs/ceph/quota.c
373
max = ci->i_max_bytes;
fs/ceph/quota.c
380
exceeded = (max && (rvalue + delta > max));
fs/ceph/quota.c
383
if (max) {
fs/ceph/quota.c
384
if (rvalue >= max)
fs/ceph/quota.c
392
(((max - rvalue) >> 4) < delta);
fs/devpts/inode.c
252
opts->max = result.uint_32;
fs/devpts/inode.c
323
fsi->mount_opts.max = new->mount_opts.max;
fs/devpts/inode.c
349
if (opts->max < NR_UNIX98_PTY_MAX)
fs/devpts/inode.c
350
seq_printf(seq, ",max=%d", opts->max);
fs/devpts/inode.c
432
fsi->mount_opts.max = NR_UNIX98_PTY_MAX;
fs/devpts/inode.c
474
index = ida_alloc_max(&fsi->allocated_ptys, fsi->mount_opts.max - 1,
fs/devpts/inode.c
83
int max;
fs/dlm/dlm_internal.h
743
uint32_t min, uint32_t max)
fs/dlm/dlm_internal.h
747
for_each_set_bit_from(bit, addr, max + 1) {
fs/dlm/dlm_internal.h
787
uint32_t min, uint32_t max)
fs/dlm/dlm_internal.h
791
for (bit = min; bit < (max + 1); bit++) {
fs/dlm/lock.c
1508
limit.max = end;
fs/dlm/member.c
168
int max = 0;
fs/dlm/member.c
200
if (!max || max < memb->slot)
fs/dlm/member.c
201
max = memb->slot;
fs/dlm/member.c
213
array_size = max + need;
fs/dlm/recover.c
313
.max = UINT_MAX,
fs/ecryptfs/crypto.c
951
static int ecryptfs_write_headers_virt(char *page_virt, size_t max,
fs/ecryptfs/crypto.c
971
max - offset);
fs/ecryptfs/ecryptfs_kernel.h
580
size_t *len, size_t max);
fs/ecryptfs/keystore.c
2362
size_t max)
fs/ecryptfs/keystore.c
2396
&max, auth_tok,
fs/ecryptfs/keystore.c
2408
rc = write_tag_11_packet((dest_base + (*len)), &max,
fs/ecryptfs/keystore.c
2418
rc = write_tag_1_packet(dest_base + (*len), &max,
fs/ecryptfs/keystore.c
2436
if (likely(max > 0)) {
fs/erofs/zmap.c
152
lobits = max(lclusterbits, ilog2(Z_EROFS_LI_D0_CBLKCNT) + 1U);
fs/eventpoll.c
2086
result = max(result, ep_loop_check_proc(ep_tovisit, depth + 1) + 1);
fs/eventpoll.c
2116
result = max(result, ep_get_upwards_depth_proc(epi->ep, depth + 1) + 1);
fs/exec.c
326
static int count(struct user_arg_ptr argv, int max)
fs/exec.c
340
if (i >= max)
fs/exec.c
433
if (check_add_overflow(max(bprm->argc, 1), bprm->envc, &ptr_size) ||
fs/exfat/dir.c
633
unsigned int adj_ra_count = max(sbi->sect_per_clus, page_ra_count);
fs/ext2/ialloc.c
310
max_debt = EXT2_BLOCKS_PER_GROUP(sb) / max(blocks_per_dir, BLOCK_COST);
fs/ext4/balloc.c
115
itbl_blk_start = max(itbl_blk_start, start);
fs/ext4/block_validity.c
350
struct inode *inode, __le32 *p, unsigned int max)
fs/ext4/block_validity.c
359
while (bref < p+max) {
fs/ext4/ext4_jbd2.c
179
extend_cred = max(0, extend_cred - jbd2_handle_buffer_credits(handle));
fs/ext4/ext4_jbd2.c
180
revoke_cred = max(0, revoke_cred - handle->h_revoke_credits);
fs/ext4/extents.c
2662
a = max(ex_ee_block, start);
fs/ext4/extents.c
347
int max;
fs/ext4/extents.c
351
max = ext4_ext_space_root(inode, 1);
fs/ext4/extents.c
353
max = ext4_ext_space_root_idx(inode, 1);
fs/ext4/extents.c
356
max = ext4_ext_space_block(inode, 1);
fs/ext4/extents.c
358
max = ext4_ext_space_block_idx(inode, 1);
fs/ext4/extents.c
361
return max;
fs/ext4/extents.c
460
int max = 0, err = -EFSCORRUPTED;
fs/ext4/extents.c
474
max = ext4_ext_max_entries(inode, depth);
fs/ext4/extents.c
475
if (unlikely(le16_to_cpu(eh->eh_max) > max)) {
fs/ext4/extents.c
512
max, le16_to_cpu(eh->eh_depth), depth);
fs/ext4/extents.c
5719
max(ee_start_lblk, start_lblk), len_lblk, SHIFT_RIGHT);
fs/ext4/extents.c
6186
cur = max(cur + 1, le32_to_cpu(ex->ee_block) +
fs/ext4/extents.c
6196
for (i = 0; i <= max(path->p_depth, path2->p_depth); i++) {
fs/ext4/extents_status.c
1793
struct ext4_inode_info *ei, *max = NULL;
fs/ext4/extents_status.c
1803
if (max && max->i_es_all_nr < ei->i_es_all_nr)
fs/ext4/extents_status.c
1804
max = ei;
fs/ext4/extents_status.c
1805
else if (!max)
fs/ext4/extents_status.c
1806
max = ei;
fs/ext4/extents_status.c
1826
max->vfs_inode.i_ino, max->i_es_all_nr, max->i_es_shk_nr,
fs/ext4/fast_commit.c
628
max(oldstart + ei->i_fc_lblk_len - 1, __arg->end) -
fs/ext4/fast_commit.c
942
unsigned int max = (map.m_flags & EXT4_MAP_UNWRITTEN) ?
fs/ext4/fast_commit.c
946
map.m_len = min(max, map.m_len);
fs/ext4/inode.c
1528
start = max(from, block_start);
fs/ext4/inode.c
4123
unsigned int max = blocksize - (from & (blocksize - 1));
fs/ext4/inode.c
4129
if (length > max || length < 0)
fs/ext4/inode.c
4130
length = max;
fs/ext4/mballoc-test.c
218
ext4_grpblk_t max = EXT4_CLUSTERS_PER_GROUP(sb);
fs/ext4/mballoc-test.c
223
mb_set_bits(grp_ctx->bitmap_bh.b_data, max, sb->s_blocksize * 8 - max);
fs/ext4/mballoc-test.c
224
ext4_free_group_clusters_set(sb, &grp_ctx->desc, max);
fs/ext4/mballoc-test.c
468
ext4_grpblk_t start, len, max;
fs/ext4/mballoc-test.c
471
max = EXT4_CLUSTERS_PER_GROUP(sb) / count;
fs/ext4/mballoc-test.c
473
start = get_random_u32() % max;
fs/ext4/mballoc-test.c
474
len = get_random_u32() % max;
fs/ext4/mballoc-test.c
475
len = min(len, max - start);
fs/ext4/mballoc-test.c
477
ranges[i].start = start + i * max;
fs/ext4/mballoc-test.c
488
ext4_grpblk_t bit, max = EXT4_CLUSTERS_PER_GROUP(sb);
fs/ext4/mballoc-test.c
496
bit = mb_find_next_zero_bit_test(bitmap, max, 0);
fs/ext4/mballoc-test.c
497
KUNIT_ASSERT_EQ_MSG(test, bit, max,
fs/ext4/mballoc-test.c
502
bit = mb_find_next_zero_bit_test(bitmap, max, 0);
fs/ext4/mballoc-test.c
505
bit = mb_find_next_bit_test(bitmap, max, bit + 1);
fs/ext4/mballoc-test.c
536
ext4_grpblk_t max = EXT4_CLUSTERS_PER_GROUP(sb);
fs/ext4/mballoc-test.c
541
mbt_ctx_mark_used(sb, i, 0, max);
fs/ext4/mballoc-test.c
558
ext4_grpblk_t i, max;
fs/ext4/mballoc-test.c
573
max = EXT4_CLUSTERS_PER_GROUP(sb);
fs/ext4/mballoc-test.c
574
i = mb_find_next_bit_test(bitmap, max, 0);
fs/ext4/mballoc-test.c
576
i = mb_find_next_zero_bit_test(bitmap, max, i + 1);
fs/ext4/mballoc-test.c
578
i = mb_find_next_bit_test(bitmap, max, i + 1);
fs/ext4/mballoc-test.c
579
KUNIT_ASSERT_EQ(test, max, i);
fs/ext4/mballoc-test.c
611
int max;
fs/ext4/mballoc-test.c
618
max = EXT4_CLUSTERS_PER_GROUP(sb);
fs/ext4/mballoc-test.c
621
off = mb_find_next_zero_bit_test(bb, max, 0);
fs/ext4/mballoc-test.c
623
while (off < max) {
fs/ext4/mballoc-test.c
636
off = mb_find_next_zero_bit_test(bb, max, off + 1);
fs/ext4/mballoc-test.c
642
max = max >> 1;
fs/ext4/mballoc-test.c
643
off = mb_find_next_zero_bit_test(bb, max, 0);
fs/ext4/mballoc-test.c
645
while (off < max) {
fs/ext4/mballoc-test.c
655
off = mb_find_next_zero_bit_test(bb, max, off + 1);
fs/ext4/mballoc-test.c
659
max = EXT4_CLUSTERS_PER_GROUP(sb);
fs/ext4/mballoc-test.c
660
off = mb_find_next_zero_bit_test(bitmap, max, 0);
fs/ext4/mballoc-test.c
661
while (off < max) {
fs/ext4/mballoc-test.c
664
off = mb_find_next_bit_test(bitmap, max, off + 1);
fs/ext4/mballoc-test.c
665
if (off + 1 >= max)
fs/ext4/mballoc-test.c
668
off = mb_find_next_zero_bit_test(bitmap, max, off + 1);
fs/ext4/mballoc.c
1286
ext4_grpblk_t max = EXT4_CLUSTERS_PER_GROUP(sb);
fs/ext4/mballoc.c
1296
i = mb_find_next_zero_bit(bitmap, max, 0);
fs/ext4/mballoc.c
1298
while (i < max) {
fs/ext4/mballoc.c
1301
i = mb_find_next_bit(bitmap, max, i);
fs/ext4/mballoc.c
1308
if (i < max)
fs/ext4/mballoc.c
1309
i = mb_find_next_zero_bit(bitmap, max, i);
fs/ext4/mballoc.c
1848
int order = 1, max;
fs/ext4/mballoc.c
1855
bb = mb_find_buddy(e4b, order, &max);
fs/ext4/mballoc.c
1944
int max;
fs/ext4/mballoc.c
1946
void *buddy = mb_find_buddy(e4b, order, &max);
fs/ext4/mballoc.c
1988
buddy2 = mb_find_buddy(e4b, order, &max);
fs/ext4/mballoc.c
2091
int max, order, next;
fs/ext4/mballoc.c
2097
buddy = mb_find_buddy(e4b, 0, &max);
fs/ext4/mballoc.c
2099
BUG_ON(block >= max);
fs/ext4/mballoc.c
2117
mb_find_buddy(e4b, order, &max)) {
fs/ext4/mballoc.c
2119
if (block + 1 >= max)
fs/ext4/mballoc.c
2151
int max = 0;
fs/ext4/mballoc.c
2174
max = !mb_test_bit(start + len, e4b->bd_bitmap);
fs/ext4/mballoc.c
2175
if (mlen && max)
fs/ext4/mballoc.c
2177
else if (!mlen && !max)
fs/ext4/mballoc.c
2187
buddy = mb_find_buddy(e4b, ord, &max);
fs/ext4/mballoc.c
2188
BUG_ON((start >> ord) >= max);
fs/ext4/mballoc.c
2202
buddy = mb_find_buddy(e4b, ord, &max);
fs/ext4/mballoc.c
2405
int max;
fs/ext4/mballoc.c
2417
max = mb_find_extent(e4b, ex.fe_start, ex.fe_len, &ex);
fs/ext4/mballoc.c
2419
if (max > 0) {
fs/ext4/mballoc.c
2434
int max;
fs/ext4/mballoc.c
2459
max = mb_find_extent(e4b, ac->ac_g_ex.fe_start,
fs/ext4/mballoc.c
2463
if (max >= ac->ac_g_ex.fe_len &&
fs/ext4/mballoc.c
2474
} else if (max >= ac->ac_g_ex.fe_len) {
fs/ext4/mballoc.c
2481
} else if (max > 0 && (ac->ac_flags & EXT4_MB_HINT_MERGE)) {
fs/ext4/mballoc.c
2511
int max;
fs/ext4/mballoc.c
2518
buddy = mb_find_buddy(e4b, i, &max);
fs/ext4/mballoc.c
2523
k = mb_find_next_zero_bit(buddy, max, 0);
fs/ext4/mballoc.c
2524
if (k >= max) {
fs/ext4/mballoc.c
2650
int max;
fs/ext4/mballoc.c
2665
max = mb_find_extent(e4b, i, stripe, &ex);
fs/ext4/mballoc.c
2666
if (max >= stripe) {
fs/ext4/mballoc.c
3721
unsigned max;
fs/ext4/mballoc.c
3750
max = sb->s_blocksize << 2;
fs/ext4/mballoc.c
3753
sbi->s_mb_maxs[i] = max;
fs/ext4/mballoc.c
3756
max = max >> 1;
fs/ext4/mballoc.c
3805
sbi->s_mb_group_prealloc = max(MB_DEFAULT_GROUP_PREALLOC >>
fs/ext4/mballoc.c
433
ext4_grpblk_t max, ext4_grpblk_t minblocks);
fs/ext4/mballoc.c
4523
int bsbits, max;
fs/ext4/mballoc.c
4558
max = 2 << bsbits;
fs/ext4/mballoc.c
4560
#define NRL_CHECK_SIZE(req, size, max, chunk_size) \
fs/ext4/mballoc.c
4561
(req <= (size) || max <= (chunk_size))
fs/ext4/mballoc.c
4580
} else if (NRL_CHECK_SIZE(size, 4 * 1024 * 1024, max, 2 * 1024)) {
fs/ext4/mballoc.c
4584
} else if (NRL_CHECK_SIZE(size, 8 * 1024 * 1024, max, 4 * 1024)) {
fs/ext4/mballoc.c
4589
(8<<20)>>bsbits, max, 8 * 1024)) {
fs/ext4/mballoc.c
4607
start = max(start, rounddown(ac->ac_o_ex.fe_logical,
fs/ext4/mballoc.c
506
static inline int mb_find_next_zero_bit(void *addr, int max, int start)
fs/ext4/mballoc.c
510
tmpmax = max + fix;
fs/ext4/mballoc.c
514
if (ret > max)
fs/ext4/mballoc.c
515
return max;
fs/ext4/mballoc.c
519
static inline int mb_find_next_bit(void *addr, int max, int start)
fs/ext4/mballoc.c
523
tmpmax = max + fix;
fs/ext4/mballoc.c
527
if (ret > max)
fs/ext4/mballoc.c
528
return max;
fs/ext4/mballoc.c
532
static void *mb_find_buddy(struct ext4_buddy *e4b, int order, int *max)
fs/ext4/mballoc.c
537
BUG_ON(max == NULL);
fs/ext4/mballoc.c
540
*max = 0;
fs/ext4/mballoc.c
546
*max = 1 << (e4b->bd_blkbits + 3);
fs/ext4/mballoc.c
551
*max = EXT4_SB(e4b->bd_sb)->s_mb_maxs[order];
fs/ext4/mballoc.c
5860
size = max(size, isize);
fs/ext4/mballoc.c
6175
ext4_grpblk_t max = EXT4_CLUSTERS_PER_GROUP(sb);
fs/ext4/mballoc.c
6196
i = mb_find_next_zero_bit(bitmap_bh->b_data, max,
fs/ext4/mballoc.c
6198
if (i >= max)
fs/ext4/mballoc.c
6208
if (i < max)
fs/ext4/mballoc.c
6217
if (i >= max) {
fs/ext4/mballoc.c
6926
ext4_grpblk_t max, ext4_grpblk_t minblocks)
fs/ext4/mballoc.c
6939
if (start == 0 && max >= last)
fs/ext4/mballoc.c
6942
start = max(e4b->bd_info->bb_first_free, start);
fs/ext4/mballoc.c
6946
while (start <= max) {
fs/ext4/mballoc.c
6947
start = mb_find_next_zero_bit(bitmap, max + 1, start);
fs/ext4/mballoc.c
6948
if (start > max)
fs/ext4/mballoc.c
6999
ext4_grpblk_t start, ext4_grpblk_t max,
fs/ext4/mballoc.c
7005
trace_ext4_trim_all_free(sb, group, start, max);
fs/ext4/mballoc.c
7018
ret = ext4_try_to_trim_range(sb, &e4b, start, max, minblocks);
fs/ext4/mballoc.c
708
int max;
fs/ext4/mballoc.c
7156
start = max(e4b.bd_info->bb_first_free, first);
fs/ext4/mballoc.c
7206
int mb_find_next_zero_bit_test(void *addr, int max, int start)
fs/ext4/mballoc.c
7208
return mb_find_next_zero_bit(addr, max, start);
fs/ext4/mballoc.c
7212
int mb_find_next_bit_test(void *addr, int max, int start)
fs/ext4/mballoc.c
7214
return mb_find_next_bit(addr, max, start);
fs/ext4/mballoc.c
725
buddy = mb_find_buddy(e4b, order, &max);
fs/ext4/mballoc.c
730
MB_CHECK_ASSERT(max * 2 == max2);
fs/ext4/mballoc.c
733
for (i = 0; i < max; i++) {
fs/ext4/mballoc.c
751
buddy = mb_find_buddy(e4b, 0, &max);
fs/ext4/mballoc.c
752
for (i = 0; i < max; i++) {
fs/ext4/mballoc.c
813
ext4_grpblk_t max;
fs/ext4/mballoc.c
823
max = ffs(first | border) - 1;
fs/ext4/mballoc.c
828
if (max < min)
fs/ext4/mballoc.c
829
min = max;
fs/ext4/mballoc.h
283
extern int mb_find_next_zero_bit_test(void *addr, int max, int start);
fs/ext4/mballoc.h
284
extern int mb_find_next_bit_test(void *addr, int max, int start);
fs/ext4/mmp.c
154
mmp_check_interval = max(EXT4_MMP_CHECK_MULT * mmp_update_interval,
fs/ext4/resize.c
257
flex_gd->resize_bg = 1 << max(fls(last_group - o_group),
fs/ext4/super.c
4507
sbi->s_awu_min = max(sb->s_blocksize,
fs/ext4/super.c
4591
unsigned v, max = (sbi->s_inode_size -
fs/ext4/super.c
4595
if (v > max) {
fs/ext4/super.c
4604
if (v > max) {
fs/f2fs/checkpoint.c
608
wbc->nr_to_write = max((long)0, wbc->nr_to_write - written - diff);
fs/f2fs/data.c
4257
while (cur_lblock < last_lblock && cur_lblock < sis->max) {
fs/f2fs/data.c
4292
if (cur_lblock + nr_pblocks > sis->max)
fs/f2fs/data.c
4313
if (cur_lblock + nr_pblocks >= sis->max)
fs/f2fs/data.c
4314
nr_pblocks = sis->max - cur_lblock;
fs/f2fs/data.c
4336
sis->max = cur_lblock;
fs/f2fs/dir.c
1016
if (unlikely(bit_pos > d->max ||
fs/f2fs/dir.c
238
while (bit_pos < d->max) {
fs/f2fs/dir.c
650
bit_pos = f2fs_room_for_filename(d.bitmap, slots, d.max);
fs/f2fs/dir.c
652
return bit_pos < d.max;
fs/f2fs/dir.c
986
bit_pos = ((unsigned long)ctx->pos % d->max);
fs/f2fs/dir.c
991
while (bit_pos < d->max) {
fs/f2fs/dir.c
992
bit_pos = find_next_bit_le(d->bitmap, d->max, bit_pos);
fs/f2fs/dir.c
993
if (bit_pos >= d->max)
fs/f2fs/f2fs.h
4395
int max = atomic_read(&F2FS_I_SB(inode)->max_aw_cnt); \
fs/f2fs/f2fs.h
4396
if (cur > max) \
fs/f2fs/f2fs.h
654
int max;
fs/f2fs/f2fs.h
662
d->max = NR_DENTRY_IN_BLOCK;
fs/f2fs/f2fs.h
677
d->max = entry_cnt;
fs/f2fs/gc.c
566
unsigned int dirty_threshold = max(am->max_candidate_count,
fs/f2fs/gc.c
635
unsigned int dirty_threshold = max(am->max_candidate_count,
fs/f2fs/inline.c
456
memcpy(dst.dentry, src.dentry, SIZE_OF_DIR_ENTRY * src.max);
fs/f2fs/inline.c
457
memcpy(dst.filename, src.filename, src.max * F2FS_SLOT_LEN);
fs/f2fs/inline.c
493
while (bit_pos < d.max) {
fs/f2fs/inline.c
656
bit_pos = f2fs_room_for_filename(d.bitmap, slots, d.max);
fs/f2fs/inline.c
657
if (bit_pos >= d.max) {
fs/f2fs/inline.c
746
bit_pos = find_next_bit_le(d.bitmap, d.max, bit_pos);
fs/f2fs/inline.c
750
if (bit_pos < d.max)
fs/f2fs/inline.c
767
if (ctx->pos == d.max)
fs/f2fs/inline.c
786
ctx->pos = d.max;
fs/f2fs/node.c
2274
wbc->nr_to_write = max((long)0, wbc->nr_to_write - diff);
fs/f2fs/node.c
3048
struct list_head *head, int max)
fs/f2fs/node.c
3052
if (nes->entry_cnt >= max)
fs/f2fs/segment.c
2813
segno = max(sbi->first_seq_zone_segno, *newseg);
fs/f2fs/segment.c
924
unusable = max(holes[DATA], holes[NODE]);
fs/f2fs/segment.h
457
unsigned int max, unsigned int segno)
fs/f2fs/segment.h
461
ret = find_next_bit(free_i->free_segmap, max, segno);
fs/fat/file.c
144
range.minlen = max(range.minlen, bdev_discard_granularity(sb->s_bdev));
fs/fat/misc.c
212
month = max(1, (date >> 5) & 0xf);
fs/fat/misc.c
213
day = max(1, date & 0x1f) - 1;
fs/fuse/dev.c
1279
unsigned int max,
fs/fuse/dev.c
1286
for (count = 0; *newhead != NULL && count < max; count++)
fs/fuse/dev_uring.c
243
max_payload_size = max(FUSE_MIN_READ_BUFFER, fc->max_write);
fs/fuse/dev_uring.c
244
max_payload_size = max(max_payload_size, fc->max_pages * PAGE_SIZE);
fs/fuse/inode.c
1308
timeout = max(FUSE_TIMEOUT_TIMER_FREQ, timeout);
fs/fuse/ioctl.c
303
max_pages = DIV_ROUND_UP(max(in_size, out_size), PAGE_SIZE);
fs/fuse/ioctl.c
78
u32 max = fc->max_pages << PAGE_SHIFT;
fs/fuse/ioctl.c
81
if (iov->iov_len > (size_t) max)
fs/fuse/ioctl.c
83
max -= iov->iov_len;
fs/gfs2/dir.c
1493
f_ra->start = max((pgoff_t)index, f_ra->start);
fs/gfs2/file.c
1234
loff_t max = *len;
fs/gfs2/file.c
1246
if (*len > max) {
fs/gfs2/file.c
1247
*len = max;
fs/gfs2/file.c
1248
gfs2_write_calc_reserv(ip, max, data_blocks, ind_blocks);
fs/gfs2/file.c
801
nr_dirtied = max(current->nr_dirtied_pause -
fs/gfs2/glock.c
534
gl->gl_hold_time = max(gl->gl_hold_time - GL_GLOCK_HOLD_DECR,
fs/hfs/bitmap.c
108
*max = (curr - bitmap) * 32 + i - start;
fs/hfs/bitmap.c
29
static u32 hfs_find_set_zero_bits(__be32 *bitmap, u32 size, u32 offset, u32 *max)
fs/hfs/bitmap.c
36
len = *max;
fs/hfsplus/bitmap.c
155
*max = offset + (curr - pptr) * 32 + i - start;
fs/hfsplus/bitmap.c
156
sbi->free_blocks -= *max;
fs/hfsplus/bitmap.c
158
hfs_dbg("start %u, max %u\n", start, *max);
fs/hfsplus/bitmap.c
20
u32 offset, u32 *max)
fs/hfsplus/bitmap.c
30
len = *max;
fs/hfsplus/btree.c
78
u32 mod = max(node_size, block_size);
fs/hfsplus/hfsplus_fs.h
353
u32 *max);
fs/hfsplus/xattr.c
477
u16 record_len = max(folder_rec_len, file_rec_len);
fs/iomap/buffered-io.c
785
truncate_pagecache_range(inode, max(pos, i_size),
fs/iomap/direct-io.c
300
int nr_vecs = max(1, i_blocksize(inode) / folio_size(zero_folio));
fs/iomap/swapfile.c
188
sis->max = isi.nr_pages;
fs/iomap/swapfile.c
37
if (unlikely(isi->nr_pages >= isi->sis->max))
fs/iomap/swapfile.c
39
max_pages = isi->sis->max - isi->nr_pages;
fs/jbd2/journal.c
1110
int max;
fs/jbd2/recovery.c
70
unsigned int max, nbufs, next;
fs/jbd2/recovery.c
77
max = start + (128 * 1024 / journal->j_blocksize);
fs/jbd2/recovery.c
78
if (max > journal->j_total_len)
fs/jbd2/recovery.c
79
max = journal->j_total_len;
fs/jbd2/recovery.c
86
for (next = start; next < max; next++) {
fs/jbd2/recovery.c
959
int offset, max;
fs/jbd2/recovery.c
972
max = rcount;
fs/jbd2/recovery.c
978
info->nr_revokes += (max - offset) / record_len;
fs/jbd2/recovery.c
982
while (offset + record_len <= max) {
fs/jbd2/transaction.c
2662
jinode->i_dirty_end = max(jinode->i_dirty_end, end_byte);
fs/jffs2/gc.c
1194
uint32_t min, max;
fs/jffs2/gc.c
1197
max = min + PAGE_SIZE;
fs/jffs2/gc.c
1262
while((frag = frag_next(frag)) && frag->ofs+frag->size <= max) {
fs/jffs2/gc.c
1266
if (frag->ofs+frag->size < max) {
fs/jffs2/wbuf.c
1296
c->cleanmarker_size = max(16u, c->mtd->writesize);
fs/jffs2/write.c
382
ri->isize = cpu_to_je32(max(je32_to_cpu(ri->isize), offset + datalen));
fs/jfs/jfs_debug.h
102
#define HIGHWATERMARK(x,y) ((x) = max((x), (y)))
fs/jfs/jfs_dmap.c
2867
int max, size;
fs/jfs/jfs_dmap.c
2905
max = TREEMAX(&tp->dmt_stree[lp]);
fs/jfs/jfs_dmap.c
2910
if (tp->dmt_stree[pp] == max)
fs/jfs/jfs_dmap.c
2915
tp->dmt_stree[pp] = max;
fs/jfs/jfs_dmap.c
3075
tmp1 = max(budtab[cp[2]], budtab[cp[3]]);
fs/jfs/jfs_dmap.c
3076
tmp2 = max(budtab[cp[0]], budtab[cp[1]]);
fs/jfs/jfs_dmap.c
3077
return (max(tmp1, tmp2));
fs/jfs/jfs_dmap.h
55
tmp1 = max(*(cp+2), *(cp+3));
fs/jfs/jfs_dmap.h
56
tmp2 = max(*(cp), *(cp+1));
fs/jfs/jfs_dmap.h
58
return max(tmp1, tmp2);
fs/jfs/jfs_extent.c
313
s64 nb, nblks, daddr, max;
fs/jfs/jfs_extent.c
329
max = (s64) 1 << bmp->db_maxfreebud;
fs/jfs/jfs_extent.c
330
if (*nblocks >= max && *nblocks > nbperpage)
fs/jfs/jfs_extent.c
331
nb = nblks = (max > nbperpage) ? max : nbperpage;
fs/jfs/xattr.c
478
size = max(min_size, ea_size);
fs/lockd/svc.c
481
#define param_set_min_max(name, type, which_strtol, min, max) \
fs/lockd/svc.c
486
if (endp == val || *endp || num < (min) || num > (max)) \
fs/namespace.c
2468
unsigned int max = READ_ONCE(sysctl_mount_max);
fs/namespace.c
2472
if (ns->nr_mounts >= max)
fs/namespace.c
2474
max -= ns->nr_mounts;
fs/namespace.c
2475
if (ns->pending_mounts >= max)
fs/namespace.c
2477
max -= ns->pending_mounts;
fs/namespace.c
2482
if (mounts > max)
fs/nfs/file.c
592
ret = add_swap_extent(sis, 0, sis->max, 0);
fs/nfs/filelayout/filelayout.c
693
max(NFS4_PNFS_MAX_STRIPE_CNT, NFS4_PNFS_MAX_MULTI_CNT))
fs/nfs/filelayout/filelayoutdev.c
116
max_stripe_index = max(max_stripe_index, *indexp);
fs/nfs/internal.h
604
struct nfs_commit_info *cinfo, int max);
fs/nfs/pnfs.h
199
int max);
fs/nfs/pnfs.h
415
int pnfs_generic_scan_commit_lists(struct nfs_commit_info *cinfo, int max);
fs/nfs/pnfs.h
551
int max)
fs/nfs/pnfs.h
557
return fl_cinfo->ops->scan_commit_lists(cinfo, max);
fs/nfs/pnfs.h
858
int max)
fs/nfs/pnfs_nfs.c
245
int max)
fs/nfs/pnfs_nfs.c
252
ret = nfs_scan_commit_list(src, dst, cinfo, max);
fs/nfs/pnfs_nfs.c
263
int max)
fs/nfs/pnfs_nfs.c
268
for (i = 0; i < nbuckets && max != 0; i++) {
fs/nfs/pnfs_nfs.c
269
cnt = pnfs_bucket_scan_ds_commit_list(&buckets[i], cinfo, max);
fs/nfs/pnfs_nfs.c
271
max -= cnt;
fs/nfs/pnfs_nfs.c
279
int pnfs_generic_scan_commit_lists(struct nfs_commit_info *cinfo, int max)
fs/nfs/pnfs_nfs.c
291
array->nbuckets, max);
fs/nfs/pnfs_nfs.c
295
max -= cnt;
fs/nfs/pnfs_nfs.c
296
if (!max)
fs/nfs/write.c
1002
cinfo, max);
fs/nfs/write.c
1003
ret += pnfs_scan_commit_lists(inode, cinfo, max - ret);
fs/nfs/write.c
401
bytes = max(subreq->wb_pgbase + subreq->wb_bytes
fs/nfs/write.c
957
struct nfs_commit_info *cinfo, int max)
fs/nfs/write.c
972
if ((ret == max) && !cinfo->dreq)
fs/nfs/write.c
999
const int max = INT_MAX;
fs/nfsd/nfs4callback.c
1082
return max(((u32)nn->nfsd4_lease)/10, 1u) * HZ;
fs/nfsd/nfs4callback.c
415
idx = max(idx, ses->se_cb_highest_slot);
fs/nfsd/nfs4layouts.c
393
layout_update_len(lo, max(layout_end(lo), layout_end(new)));
fs/nfsd/nfs4state.c
4362
seq->maxslots_response = max(session->se_target_maxslots,
fs/nfsd/nfscache.c
261
unsigned int max, struct list_head *dispose)
fs/nfsd/nfscache.c
278
if (max && ++freed > max)
fs/nfsd/vfs.c
1321
unlikely(total < max(offset_align, mem_align)))
fs/nilfs2/alloc.c
486
unsigned long curr, unsigned long max)
fs/nilfs2/alloc.c
491
max - curr + 1);
fs/nilfs2/cpfile.c
54
__u64 max)
fs/nilfs2/cpfile.c
59
max - curr);
fs/nilfs2/mdt.c
456
mi = kzalloc(max(sizeof(*mi), objsz), GFP_NOFS);
fs/nilfs2/sufile.c
65
__u64 max)
fs/nilfs2/sufile.c
70
max - curr + 1);
fs/ntfs3/attrib.c
1232
err = mi_pack_runs(mi, attr, run, max(end, evcn1) - svcn);
fs/ntfs3/attrib.c
1374
mi_pack_runs(mi, attr, run, max(end, evcn1) - svcn)) {
fs/ntfs3/attrib.c
1842
err = mi_pack_runs(mi, attr, run, max(end, evcn1) - svcn);
fs/ntfs3/attrib.c
2364
vcn1 = max(vcn, svcn);
fs/ntfs3/attrib.c
771
vcn = max(svcn, new_alen);
fs/ntfs3/bitmap.c
1182
zbit = max(wnd->zone_bit, wbit);
fs/ntfs3/bitmap.c
1227
max(wzend, wpos), wbits,
fs/ntfs3/bitmap.c
432
max_new_len = max(len, new_len);
fs/ntfs3/bitmap.c
437
wnd->extent_max = max(e3->count.key, max_new_len);
fs/ntfs3/file.c
491
new_size = max(end, i_size);
fs/ntfs3/frecord.c
2888
return max(vbo, offset);
fs/ntfs3/frecord.c
2903
return max(vbo, offset);
fs/ntfs3/run.c
1144
zone = max(wnd->zone_bit, lcn) < min(wnd->zone_end, lcn + len);
fs/ntfs3/super.c
1111
sbi->bdev_blocksize = max(boot_sector_size, sector_size);
fs/ocfs2/alloc.c
7510
u32 start, u32 max, u32 minbits)
fs/ocfs2/alloc.c
7519
start, max, minbits);
fs/ocfs2/alloc.c
7521
while (start < max) {
fs/ocfs2/alloc.c
7522
start = ocfs2_find_next_zero_bit(bitmap, max, start);
fs/ocfs2/alloc.c
7523
if (start >= max)
fs/ocfs2/alloc.c
7525
next = ocfs2_find_next_bit(bitmap, max, start);
fs/ocfs2/aops.c
1028
last_byte = max(user_pos + user_len, i_size_read(inode));
fs/ocfs2/aops.c
876
start = max(from, block_start);
fs/ocfs2/dlm/dlmdebug.c
372
longest = max(longest, bucket_count);
fs/ocfs2/dlmglue.c
3154
last = max(lockres->l_lock_prmode.ls_last,
fs/ocfs2/ocfs2.h
978
static inline int ocfs2_find_next_zero_bit_unaligned(void *bitmap, int max,
fs/ocfs2/ocfs2.h
983
tmpmax = max + fix;
fs/ocfs2/ocfs2.h
987
if (ret > max)
fs/ocfs2/ocfs2.h
988
return max;
fs/ocfs2/stack_user.c
393
struct ocfs2_protocol_version *max =
fs/ocfs2/stack_user.c
425
if ((major != max->pv_major) ||
fs/ocfs2/stack_user.c
426
(minor > max->pv_minor))
fs/omfs/bitmap.c
27
int addrlen, int bit, int max)
fs/omfs/bitmap.c
36
if (x < nbits || count > max)
fs/omfs/bitmap.c
37
return min(count, max);
fs/omfs/bitmap.c
41
return min(count, max);
fs/overlayfs/params.c
353
nr = min_t(size_t, max(4096 / sizeof(*l), ctx->capacity * 2),
fs/overlayfs/super.c
406
ofs->namelen = max(ofs->namelen, statfs.f_namelen);
fs/overlayfs/super.c
421
*stack_depth = max(*stack_depth, path->mnt->mnt_sb->s_stack_depth);
fs/proc/base.c
541
lr->count, lr->time, lr->max);
fs/pstore/zone.c
437
max(cxt->oops_counter, hdr->counter);
fs/pstore/zone.c
440
max(cxt->panic_counter, hdr->counter);
fs/read_write.c
1305
size_t count, loff_t max)
fs/read_write.c
1347
if (!max)
fs/read_write.c
1348
max = min(in_inode->i_sb->s_maxbytes, out_inode->i_sb->s_maxbytes);
fs/read_write.c
1350
if (unlikely(pos + count > max)) {
fs/read_write.c
1351
if (pos >= max)
fs/read_write.c
1353
count = max - pos;
fs/read_write.c
1395
if (pos > max)
fs/select.c
421
int max;
fs/select.c
429
max = 0;
fs/select.c
446
if (max)
fs/select.c
450
max++;
fs/select.c
453
max += n * BITS_PER_LONG;
fs/select.c
456
return max;
fs/smb/client/compress.c
160
static int collect_sample(const struct iov_iter *source, ssize_t max, u8 *sample)
fs/smb/client/compress.c
166
size_t part = umin(umin(iov_iter_count(&iter), SZ_2K), max);
fs/smb/client/compress.c
174
max -= n;
fs/smb/client/compress.c
196
const size_t read_size = SZ_2K, bkt_size = 256, max = SZ_4M;
fs/smb/client/compress.c
208
if (len - read_size > max)
fs/smb/client/compress.c
209
len = max;
fs/smb/client/file.c
3299
return add_swap_extent(sis, 0, sis->max, 0);
fs/smb/client/smb2pdu.c
3439
cpu_to_le16(DIV_ROUND_UP(max(indatalen, max_response_size),
fs/smb/common/smbdirect/smbdirect_socket.h
333
size_t max;
fs/smb/server/transport_rdma.c
2219
sc->rw_io.credits.max = rdma_rw_mr_factor(sc->ib.dev,
fs/smb/server/transport_rdma.c
2222
sc->rw_io.credits.num_pages = DIV_ROUND_UP(maxpages, sc->rw_io.credits.max);
fs/smb/server/transport_rdma.c
2224
sc->rw_io.credits.max += 1;
fs/smb/server/transport_rdma.c
2228
atomic_set(&sc->rw_io.credits.count, sc->rw_io.credits.max);
fs/smb/server/transport_rdma.c
2358
qp_cap.max_rdma_ctxs = sc->rw_io.credits.max;
fs/ubifs/debug.c
1337
const union ubifs_key *min, *max;
fs/ubifs/debug.c
1379
max = &zp->zbranch[n + 1].key;
fs/ubifs/debug.c
1386
cmp = keys_cmp(c, max,
fs/ufs/balloc.c
420
max(UFS_I(inode)->i_lastfrag, fragment + count);
fs/ufs/balloc.c
435
UFS_I(inode)->i_lastfrag = max(UFS_I(inode)->i_lastfrag,
fs/ufs/balloc.c
468
UFS_I(inode)->i_lastfrag = max(UFS_I(inode)->i_lastfrag,
fs/xfs/libxfs/xfs_alloc.c
2525
if (available < (int)max(args->total, alloc_len))
fs/xfs/libxfs/xfs_alloc.c
3838
start_agno = max(minimum_agno, XFS_FSB_TO_AGNO(mp, target));
fs/xfs/libxfs/xfs_alloc.c
3884
start_agno = max(minimum_agno, XFS_FSB_TO_AGNO(mp, target));
fs/xfs/libxfs/xfs_alloc_btree.c
291
if (level >= max(maxlevel, repair_maxlevel))
fs/xfs/libxfs/xfs_attr_leaf.c
1868
int max;
fs/xfs/libxfs/xfs_attr_leaf.c
1933
max = ichdr2.firstused -
fs/xfs/libxfs/xfs_attr_leaf.c
1935
if (space > max)
fs/xfs/libxfs/xfs_attr_leaf.c
1962
max = ichdr1.firstused -
fs/xfs/libxfs/xfs_attr_leaf.c
1964
if (space > max)
fs/xfs/libxfs/xfs_attr_leaf.c
2057
int max;
fs/xfs/libxfs/xfs_attr_leaf.c
2069
max = ichdr1->count + ichdr2->count;
fs/xfs/libxfs/xfs_attr_leaf.c
2070
half = (max + 1) * sizeof(*entry);
fs/xfs/libxfs/xfs_attr_leaf.c
2076
for (count = index = 0; count < max; entry++, index++, count++) {
fs/xfs/libxfs/xfs_bmap.c
1246
xfs_fileoff_t lowest, max;
fs/xfs/libxfs/xfs_bmap.c
1260
lowest = max = *first_unused;
fs/xfs/libxfs/xfs_bmap.c
1266
got.br_startoff - max >= len)
fs/xfs/libxfs/xfs_bmap.c
1269
max = XFS_FILEOFF_MAX(lastaddr, lowest);
fs/xfs/libxfs/xfs_bmap.c
1272
*first_unused = max;
fs/xfs/libxfs/xfs_bmap.c
6262
a = max(a, b);
fs/xfs/libxfs/xfs_bmap_btree.c
424
if (level > max(mp->m_bm_maxlevels[0], mp->m_bm_maxlevels[1]))
fs/xfs/libxfs/xfs_btree_staging.c
469
return max(1U, npb);
fs/xfs/libxfs/xfs_btree_staging.c
513
*blocks = max(1ULL, *blocks);
fs/xfs/libxfs/xfs_da_btree.c
1693
int max;
fs/xfs/libxfs/xfs_da_btree.c
1790
max = nodehdr.count;
fs/xfs/libxfs/xfs_da_btree.c
1791
blk->hashval = be32_to_cpu(btree[max - 1].hashval);
fs/xfs/libxfs/xfs_da_btree.c
1796
probe = span = max / 2;
fs/xfs/libxfs/xfs_da_btree.c
1808
ASSERT((probe >= 0) && (probe < max));
fs/xfs/libxfs/xfs_da_btree.c
1820
while (probe < max &&
fs/xfs/libxfs/xfs_da_btree.c
1828
if (probe == max) {
fs/xfs/libxfs/xfs_da_btree.c
1829
blk->index = max - 1;
fs/xfs/libxfs/xfs_da_btree.c
1830
blkno = be32_to_cpu(btree[max - 1].before);
fs/xfs/libxfs/xfs_da_btree.c
561
int max;
fs/xfs/libxfs/xfs_da_btree.c
577
max = state->path.active - 1;
fs/xfs/libxfs/xfs_da_btree.c
578
ASSERT((max >= 0) && (max < XFS_DA_NODE_MAXDEPTH));
fs/xfs/libxfs/xfs_da_btree.c
579
ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC ||
fs/xfs/libxfs/xfs_da_btree.c
580
state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC);
fs/xfs/libxfs/xfs_da_btree.c
582
addblk = &state->path.blk[max]; /* initial dummy value */
fs/xfs/libxfs/xfs_da_btree.c
583
for (i = max; (i >= 0) && addblk; state->path.active--, i--) {
fs/xfs/libxfs/xfs_da_btree.c
633
max - i, &action);
fs/xfs/libxfs/xfs_da_btree.c
661
state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC);
fs/xfs/libxfs/xfs_dir2_block.c
539
lfloghigh = max(mid, lfloghigh);
fs/xfs/libxfs/xfs_dir2_block.c
551
lfloghigh = max(highstale, lfloghigh);
fs/xfs/libxfs/xfs_dir2_leaf.c
636
*lfloghigh = max(index - 1, *lfloghigh);
fs/xfs/libxfs/xfs_dir2_leaf.c
656
*lfloghigh = max(highstale, *lfloghigh);
fs/xfs/libxfs/xfs_ialloc_btree.c
629
return max(xfs_inobt_maxlevels_ondisk(),
fs/xfs/libxfs/xfs_inode_fork.h
49
(XFS_DA_NODE_MAXDEPTH + max(1, rmt_blks))
fs/xfs/libxfs/xfs_refcount.c
857
cright->rc_startblock = max(agbno, xfs_refc_next(&tmp));
fs/xfs/libxfs/xfs_rmap_btree.c
746
return max(xfs_btree_space_to_height(minrecs, XFS_MAX_CRC_AG_BLOCKS),
fs/xfs/libxfs/xfs_rmap_btree.c
849
*ask += max(agblocks / 100, xfs_rmapbt_max_size(mp, agblocks));
fs/xfs/libxfs/xfs_trans_resv.c
1119
return max((xfs_calc_inode_res(mp, 1) +
fs/xfs/libxfs/xfs_trans_resv.c
1183
max((xfs_calc_inode_res(mp, 1) +
fs/xfs/libxfs/xfs_trans_resv.c
1450
const unsigned int per_intent = max(max3(tx0, tx1, tx2),
fs/xfs/libxfs/xfs_trans_resv.c
1460
*step_size = max(f4, max3(f1, f2, f3));
fs/xfs/libxfs/xfs_trans_resv.c
250
return max(t1, t2);
fs/xfs/libxfs/xfs_trans_resv.c
330
return max(t1, t2);
fs/xfs/libxfs/xfs_trans_resv.c
405
return XFS_DQUOT_LOGRES + max(t4, max3(t1, t2, t3));
fs/xfs/libxfs/xfs_trans_resv.c
559
return XFS_DQUOT_LOGRES + max(t4, max3(t1, t2, t3));
fs/xfs/libxfs/xfs_trans_resv.c
624
t3 = max(resp->tr_attrsetm.tr_logres,
fs/xfs/libxfs/xfs_trans_resv.c
648
overhead += max(rename_overhead, exchange_overhead);
fs/xfs/libxfs/xfs_trans_resv.c
667
ret += max(resp->tr_attrsetm.tr_logcount,
fs/xfs/libxfs/xfs_types.c
197
unsigned long long *max)
fs/xfs/libxfs/xfs_types.c
207
*max = nr_inos;
fs/xfs/libxfs/xfs_types.c
216
unsigned long long min, max;
fs/xfs/libxfs/xfs_types.c
218
xfs_icount_range(mp, &min, &max);
fs/xfs/libxfs/xfs_types.c
219
return icount >= min && icount <= max;
fs/xfs/libxfs/xfs_types.h
282
unsigned long long *max);
fs/xfs/scrub/alloc_repair.c
622
ra->longest = max(ra->longest, arec->ar_blockcount);
fs/xfs/scrub/fscounters.c
499
max_value = max(old_value, curr_value);
fs/xfs/scrub/iscan.c
551
iscan->__visited_ino = max(iscan->__visited_ino,
fs/xfs/scrub/reap.c
1057
const unsigned int per_intent = max(t1, t2);
fs/xfs/scrub/reap.c
1562
const unsigned int per_intent = max(t1, t2);
fs/xfs/scrub/reap.c
588
const unsigned int per_intent = max(t1, t4);
fs/xfs/scrub/reap.c
597
const unsigned int step_size = max(f1, f2);
fs/xfs/scrub/reap.c
666
const unsigned int per_intent = max(t0, t2);
fs/xfs/scrub/repair.c
386
return max(max(bnobt_sz, inobt_sz), max(rmapbt_sz, refcbt_sz));
fs/xfs/scrub/rtbitmap_repair.c
315
rtb->next_rgbno = max(rtb->next_rgbno,
fs/xfs/scrub/xfarray.c
217
array->nr = max(array->nr, idx + 1);
fs/xfs/xfs_bmap_util.c
188
bmv->bmv_length = max(0LL, bmv_end - bmv->bmv_offset);
fs/xfs/xfs_bmap_util.c
212
bmv->bmv_length = max(0LL, bmv_end - bmv->bmv_offset);
fs/xfs/xfs_bmap_util.c
352
bmv->bmv_length = max(0LL, max_len - bmv->bmv_offset);
fs/xfs/xfs_discard.c
834
granularity = max(granularity,
fs/xfs/xfs_fsmap.c
369
info->next_daddr = max(info->next_daddr,
fs/xfs/xfs_healthmon.c
918
min(XFS_HEALTHMON_MAX_OUTBUF, max(PAGE_SIZE, user_bufsize));
fs/xfs/xfs_iomap.c
581
shift = max(shift, qshift);
fs/xfs/xfs_iwalk.c
531
return max(inobt_records, 2U);
fs/xfs/xfs_iwalk.c
717
inobt_records = max(inobt_records, 2U);
fs/xfs/xfs_mount.c
668
levels = max(mp->m_alloc_maxlevels, M_IGEO(mp)->inobt_maxlevels);
fs/xfs/xfs_mount.c
669
levels = max(levels, mp->m_rmap_maxlevels);
fs/xfs/xfs_mount.c
670
mp->m_agbtree_maxlevels = max(levels, mp->m_refc_maxlevels);
fs/xfs/xfs_mount.c
734
max(mp->m_groups[XG_TYPE_AG].blocks,
fs/xfs/xfs_mount.c
737
max(xfs_calc_group_awu_max(mp, XG_TYPE_AG),
fs/xfs/xfs_mount.c
824
mp->m_rtbtree_maxlevels = max(mp->m_rtrmap_maxlevels,
fs/xfs/xfs_notify_failure.c
64
start_cross = max(rec->rm_startblock, notify->startblock);
fs/xfs/xfs_pnfs.c
157
limit = max(limit, round_up(i_size_read(inode),
fs/xfs/xfs_super.c
869
st->f_bfree = max(0LL,
fs/xfs/xfs_sysctl.c
105
.extra2 = &xfs_params.inherit_sync.max
fs/xfs/xfs_sysctl.c
114
.extra2 = &xfs_params.inherit_nodump.max
fs/xfs/xfs_sysctl.c
123
.extra2 = &xfs_params.inherit_noatim.max
fs/xfs/xfs_sysctl.c
132
.extra2 = &xfs_params.inherit_nosym.max
fs/xfs/xfs_sysctl.c
141
.extra2 = &xfs_params.rotorstep.max
fs/xfs/xfs_sysctl.c
150
.extra2 = &xfs_params.inherit_nodfrg.max
fs/xfs/xfs_sysctl.c
159
.extra2 = &xfs_params.fstrm_timer.max,
fs/xfs/xfs_sysctl.c
168
.extra2 = &xfs_params.blockgc_timer.max,
fs/xfs/xfs_sysctl.c
179
.extra2 = &xfs_params.stats_clear.max
fs/xfs/xfs_sysctl.c
77
.extra2 = &xfs_params.panic_mask.max
fs/xfs/xfs_sysctl.c
87
.extra2 = &xfs_params.error_level.max
fs/xfs/xfs_sysctl.c
96
.extra2 = &xfs_params.syncd_timer.max
fs/xfs/xfs_sysctl.h
18
int max;
fs/xfs/xfs_trace.h
4873
TP_PROTO(struct xfs_mount *mp, time64_t min, time64_t max),
fs/xfs/xfs_trace.h
4874
TP_ARGS(mp, min, max),
fs/xfs/xfs_trace.h
4878
__field(long long, max)
fs/xfs/xfs_trace.h
4883
__entry->max = max;
fs/xfs/xfs_trace.h
4888
__entry->max)
fs/xfs/xfs_trace.h
4893
TP_PROTO(struct xfs_mount *mp, long long min, long long max), \
fs/xfs/xfs_trace.h
4894
TP_ARGS(mp, min, max))
fs/xfs/xfs_zone_alloc.c
1131
return max(XFS_MIN_OPEN_ZONES, max_open);
fs/zonefs/super.c
1021
sb->s_maxbytes = max(z->z_capacity, sb->s_maxbytes);
include/asm-generic/pci_iomap.h
13
extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max);
include/asm-generic/pci_iomap.h
14
extern void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long max);
include/asm-generic/pci_iomap.h
35
static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max)
include/asm-generic/pci_iomap.h
40
static inline void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long max)
include/asm-generic/tlb.h
275
unsigned int max;
include/asm-generic/tlb.h
401
tlb->end = max(tlb->end, address + range_size);
include/clocksource/timer-xilinx.h
44
u64 max;
include/drm/display/drm_dp_helper.h
896
u32 max;
include/drm/drm_blend.h
54
unsigned int min, unsigned int max);
include/drm/drm_color_mgmt.h
63
u64 max = (bit_precision >= 64) ? ~0ULL : (1ULL << bit_precision) - 1;
include/drm/drm_color_mgmt.h
65
return DIV_ROUND_CLOSEST_ULL((u64)user_input * max,
include/drm/drm_connector.h
2529
int min, int max);
include/drm/drm_mipi_dsi.h
307
#define mipi_dsi_usleep_range(ctx, min, max) \
include/drm/drm_mipi_dsi.h
310
usleep_range(min, max); \
include/drm/drm_of.h
130
const unsigned int min, const unsigned int max)
include/drm/drm_of.h
139
const unsigned int max)
include/drm/drm_of.h
60
const unsigned int min, const unsigned int max);
include/drm/drm_of.h
64
const unsigned int max);
include/drm/drm_property.h
264
uint64_t min, uint64_t max);
include/drm/drm_property.h
267
int64_t min, int64_t max);
include/hyperv/hvhdk.h
881
#define HV_GENERIC_SET_QWORD_COUNT(max) (((((max) - 1) >> 6) + 1) + 2)
include/linux/blk_types.h
516
u64 max;
include/linux/blkdev.h
1836
unsigned int alignment = max(limits->atomic_write_hw_unit_min,
include/linux/clk.h
1132
unsigned long max)
include/linux/clk.h
921
int clk_set_rate_range(struct clk *clk, unsigned long min, unsigned long max);
include/linux/clk/renesas.h
103
u8 max;
include/linux/clk/renesas.h
108
s16 max;
include/linux/clk/renesas.h
159
.fout = { .min = 25 * MEGA, .max = 375 * MEGA }, \
include/linux/clk/renesas.h
160
.fvco = { .min = 1600 * MEGA, .max = 3200 * MEGA }, \
include/linux/clk/renesas.h
161
.m = { .min = 64, .max = 533 }, \
include/linux/clk/renesas.h
162
.p = { .min = 1, .max = 4 }, \
include/linux/clk/renesas.h
163
.s = { .min = 0, .max = 6 }, \
include/linux/clk/renesas.h
164
.k = { .min = -32768, .max = 32767 }, \
include/linux/clk/renesas.h
83
u32 max;
include/linux/clk/renesas.h
88
u32 max;
include/linux/clk/renesas.h
93
u16 max;
include/linux/clk/renesas.h
98
u8 max;
include/linux/cpufreq.h
1028
unsigned int min, unsigned int max,
include/linux/cpufreq.h
1031
target_freq = clamp_val(target_freq, min, max);
include/linux/cpufreq.h
1046
return find_index_c(policy, target_freq, policy->min, policy->max, efficiencies);
include/linux/cpufreq.h
1050
unsigned int min, unsigned int max,
include/linux/cpufreq.h
1060
return freq == clamp_val(freq, min, max);
include/linux/cpufreq.h
1066
unsigned int max,
include/linux/cpufreq.h
1078
max, relation);
include/linux/cpufreq.h
1082
idx = find_index_l(policy, target_freq, min, max, efficiencies);
include/linux/cpufreq.h
1085
idx = find_index_h(policy, target_freq, min, max, efficiencies);
include/linux/cpufreq.h
1088
idx = find_index_c(policy, target_freq, min, max, efficiencies);
include/linux/cpufreq.h
1096
if (!cpufreq_is_in_limits(policy, min, max, idx) && efficiencies) {
include/linux/cpufreq.h
188
unsigned int max; /* in kHz */
include/linux/cpufreq.h
495
unsigned int max)
include/linux/cpufreq.h
497
policy->max = clamp(policy->max, min, max);
include/linux/cpufreq.h
498
policy->min = clamp(policy->min, min, policy->max);
include/linux/cpufreq.h
667
if (policy->max < policy->cur)
include/linux/cpufreq.h
668
__cpufreq_driver_target(policy, policy->max,
include/linux/cpufreq.h
67
unsigned int max; /* in kHz */
include/linux/cpufreq.h
794
unsigned int max, unsigned int relation);
include/linux/cpufreq.h
859
unsigned int min, unsigned int max,
include/linux/cpufreq.h
862
target_freq = clamp_val(target_freq, min, max);
include/linux/cpufreq.h
877
return find_index_l(policy, target_freq, policy->min, policy->max, efficiencies);
include/linux/cpufreq.h
935
unsigned int min, unsigned int max,
include/linux/cpufreq.h
938
target_freq = clamp_val(target_freq, min, max);
include/linux/cpufreq.h
953
return find_index_h(policy, target_freq, policy->min, policy->max, efficiencies);
include/linux/damon.h
45
unsigned long max;
include/linux/delay.h
63
void usleep_range_state(unsigned long min, unsigned long max,
include/linux/delay.h
75
static inline void usleep_range(unsigned long min, unsigned long max)
include/linux/delay.h
77
usleep_range_state(min, max, TASK_UNINTERRUPTIBLE);
include/linux/delay.h
90
static inline void usleep_range_idle(unsigned long min, unsigned long max)
include/linux/delay.h
92
usleep_range_state(min, max, TASK_IDLE);
include/linux/device-mapper.h
456
unsigned int max;
include/linux/dma-direct.h
71
ret = max(ret, map->dma_start + map->size - 1);
include/linux/dpll.h
134
u64 max;
include/linux/dpll.h
140
.max = _max, \
include/linux/dpll.h
155
s32 max;
include/linux/edac.h
696
int (*get_max_cycle)(struct device *dev, void *drv_data, u32 *max);
include/linux/fb.h
756
extern void fb_bl_default_curve(struct fb_info *fb_info, u8 off, u8 min, u8 max);
include/linux/filter.h
1027
return max(sizeof(struct bpf_prog),
include/linux/firmware/cirrus/cs_dsp.h
296
u8 *max;
include/linux/firmware/cirrus/cs_dsp.h
314
.max = data + size,
include/linux/firmware/cirrus/cs_dsp.h
328
return ch->data == ch->max;
include/linux/firmware/cirrus/cs_dsp.h
350
return (u8 *)addr >= ch->data && (u8 *)addr < ch->max;
include/linux/gameport.h
183
static inline int gameport_calibrate(struct gameport *gameport, int *axes, int *max)
include/linux/gameport.h
186
return gameport->calibrate(gameport, axes, max);
include/linux/greybus/greybus_protocols.h
1979
__le32 max;
include/linux/greybus/greybus_protocols.h
1985
__le64 max;
include/linux/hid.h
1096
struct hid_usage *usage, unsigned long **bit, int *max,
include/linux/hid.h
1135
*max = limit;
include/linux/hid.h
1153
struct hid_usage *usage, unsigned long **bit, int *max,
include/linux/hid.h
1156
hid_map_usage(hidinput, usage, bit, max, type, c);
include/linux/hid.h
880
struct hid_usage *usage, unsigned long **bit, int *max);
include/linux/hid.h
883
struct hid_usage *usage, unsigned long **bit, int *max);
include/linux/highmem.h
645
size_t max = PAGE_SIZE - offset_in_page(offset);
include/linux/highmem.h
647
while (len > max) {
include/linux/highmem.h
648
memset(kaddr, 0, max);
include/linux/highmem.h
650
len -= max;
include/linux/highmem.h
651
offset += max;
include/linux/highmem.h
652
max = PAGE_SIZE;
include/linux/highmem.h
683
size_t max = PAGE_SIZE - offset_in_page(offset);
include/linux/highmem.h
685
while (len > max) {
include/linux/highmem.h
686
memcpy(to, from, max);
include/linux/highmem.h
688
len -= max;
include/linux/highmem.h
689
from += max;
include/linux/highmem.h
690
offset += max;
include/linux/highmem.h
691
max = PAGE_SIZE;
include/linux/hw_random.h
45
int (*read)(struct hwrng *rng, void *data, size_t max, bool wait);
include/linux/hyperv.h
1332
resource_size_t min, resource_size_t max,
include/linux/idr.h
117
unsigned long max, gfp_t);
include/linux/idr.h
274
int ida_alloc_range(struct ida *, unsigned int min, unsigned int max, gfp_t);
include/linux/idr.h
277
int ida_find_first_range(struct ida *ida, unsigned int min, unsigned int max);
include/linux/idr.h
327
static inline int ida_alloc_max(struct ida *ida, unsigned int max, gfp_t gfp)
include/linux/idr.h
329
return ida_alloc_range(ida, 0, max, gfp);
include/linux/inetdevice.h
97
(max(IPV4_DEVCONF_ALL_RO(dev_net(in_dev->dev), attr), \
include/linux/input.h
491
int min, int max, int fuzz, int flat);
include/linux/input.h
512
INPUT_GENERATE_ABS_ACCESSORS(max, maximum)
include/linux/ioport.h
232
resource_size_t min, max, align;
include/linux/ioport.h
256
resource_size_t max, resource_size_t align,
include/linux/ioport.h
328
r->start = max(r1->start, r2->start);
include/linux/ioport.h
339
r->end = max(r1->end, r2->end);
include/linux/irqchip/arm-gic-v5.h
398
void gicv5_init_lpis(u32 max);
include/linux/jiffies.h
634
return jiffies_to_clock_t(max(0L, delta));
include/linux/jiffies.h
639
return jiffies_to_msecs(max(0L, delta));
include/linux/latencytop.h
25
unsigned long max;
include/linux/led-class-flash.h
60
u32 max;
include/linux/libata.h
2132
unsigned int max)
include/linux/libata.h
2139
max--;
include/linux/libata.h
2140
} while (status != 0xff && (status & bits) && (max > 0));
include/linux/lockdep_types.h
152
s64 max;
include/linux/maple_tree.h
326
unsigned long max, gfp_t gfp);
include/linux/maple_tree.h
332
unsigned long max, gfp_t gfp);
include/linux/maple_tree.h
436
unsigned long max; /* The maximum index of this node - implied pivot max */
include/linux/maple_tree.h
489
.max = ULONG_MAX, \
include/linux/maple_tree.h
518
void *mas_find(struct ma_state *mas, unsigned long max);
include/linux/maple_tree.h
519
void *mas_find_range(struct ma_state *mas, unsigned long max);
include/linux/maple_tree.h
521
void *mas_find_range_rev(struct ma_state *mas, unsigned long max);
include/linux/maple_tree.h
533
void *mas_prev_range(struct ma_state *mas, unsigned long max);
include/linux/maple_tree.h
534
void *mas_next(struct ma_state *mas, unsigned long max);
include/linux/maple_tree.h
535
void *mas_next_range(struct ma_state *mas, unsigned long max);
include/linux/maple_tree.h
537
int mas_empty_area(struct ma_state *mas, unsigned long min, unsigned long max,
include/linux/maple_tree.h
544
unsigned long max, unsigned long size);
include/linux/maple_tree.h
552
mas->max = ULONG_MAX;
include/linux/maple_tree.h
874
void *mt_find(struct maple_tree *mt, unsigned long *index, unsigned long max);
include/linux/maple_tree.h
876
unsigned long max);
include/linux/maple_tree.h
878
void *mt_next(struct maple_tree *mt, unsigned long index, unsigned long max);
include/linux/memblock.h
92
unsigned long max;
include/linux/mfd/arizona/pdata.h
73
int max; /** Ohms */
include/linux/mfd/max14577.h
91
unsigned int max;
include/linux/minmax.h
112
#define max(x, y) __careful_cmp(max, x, y)
include/linux/minmax.h
129
__careful_cmp(max, (x) + 0u + 0ul + 0ull, (y) + 0u + 0ul + 0ull)
include/linux/minmax.h
153
__careful_op3(max, x, y, z, __UNIQUE_ID(x_), __UNIQUE_ID(y_), __UNIQUE_ID(z_))
include/linux/minmax.h
169
#define max_t(type, x, y) __cmp_once(max, type, x, y)
include/linux/minmax.h
274
#define max_array(array, len) __minmax_array(max, array, len)
include/linux/minmax.h
315
#define MAX(a, b) __cmp(max, a, b)
include/linux/minmax.h
317
#define MAX_T(type, a, b) __cmp(max, (type)(a), (type)(b))
include/linux/misc_cgroup.h
43
u64 max;
include/linux/mlx4/device.h
768
int max;
include/linux/mlx5/device.h
1301
MLX5_GET(cmd_hca_cap, mdev->caps.hca[MLX5_CAP_GENERAL]->max, cap)
include/linux/mlx5/device.h
1310
MLX5_GET(cmd_hca_cap_2, mdev->caps.hca[MLX5_CAP_GENERAL_2]->max, cap)
include/linux/mlx5/device.h
1324
MLX5_GET(roce_cap, mdev->caps.hca[MLX5_CAP_ROCE]->max, cap)
include/linux/mlx5/device.h
1330
MLX5_GET(atomic_caps, mdev->caps.hca[MLX5_CAP_ATOMIC]->max, cap)
include/linux/mlx5/device.h
1395
mdev->caps.hca[MLX5_CAP_PORT_SELECTION]->max, cap)
include/linux/mlx5/device.h
1423
MLX5_GET(odp_cap, mdev->caps.hca[MLX5_CAP_ODP]->max, cap)
include/linux/mlx5/driver.h
729
u32 max[MLX5_UN_SZ_DW(hca_cap_union)];
include/linux/mlx5/fs.h
203
u32 max;
include/linux/mm.h
1312
struct vm_area_struct *vma_find(struct vma_iterator *vmi, unsigned long max)
include/linux/mm.h
1314
return mas_find(&vmi->mas, max - 1);
include/linux/mm.h
3127
return max(mm->hiwater_rss, get_mm_rss(mm));
include/linux/mm.h
3132
return max(mm->hiwater_vm, mm->total_vm);
include/linux/mm_inline.h
251
return max(READ_ONCE(lrugen->max_seq) - gen + 1, READ_ONCE(lrugen->min_seq[type]));
include/linux/moduleparam.h
107
unsigned int max;
include/linux/moduleparam.h
468
unsigned int min, unsigned int max);
include/linux/moduleparam.h
550
= { .max = ARRAY_SIZE(array), .num = nump, \
include/linux/moduleparam.h
609
= { .max = ARRAY_SIZE(name), .num = nump, \
include/linux/nfsacl.h
29
w += max(acl_access ? (int)acl_access->a_count : 3, 4) * 12;
include/linux/nfsacl.h
31
w += max((int)acl_default->a_count, 4) * 12;
include/linux/overflow.h
247
#define range_overflows(start, size, max) ({ \
include/linux/overflow.h
250
typeof(max) max__ = (max); \
include/linux/overflow.h
267
#define range_overflows_t(type, start, size, max) \
include/linux/overflow.h
268
range_overflows((type)(start), (type)(size), (type)(max))
include/linux/overflow.h
282
#define range_end_overflows(start, size, max) ({ \
include/linux/overflow.h
285
typeof(max) max__ = (max); \
include/linux/overflow.h
302
#define range_end_overflows_t(type, start, size, max) \
include/linux/overflow.h
303
range_end_overflows((type)(start), (type)(size), (type)(max))
include/linux/packing.h
51
BUILD_BUG_ON_MSG(max(_f1.endbit, _f2.endbit) <= \
include/linux/page_counter.h
42
unsigned long max;
include/linux/page_counter.h
60
counter->max = PAGE_COUNTER_MAX;
include/linux/page_counter.h
87
int page_counter_memparse(const char *buf, const char *max,
include/linux/pagemap.h
420
unsigned int max)
include/linux/pagemap.h
428
if (max > MAX_PAGECACHE_ORDER)
include/linux/pagemap.h
429
max = MAX_PAGECACHE_ORDER;
include/linux/pagemap.h
431
if (max < min)
include/linux/pagemap.h
432
max = min;
include/linux/pagemap.h
435
(min << AS_FOLIO_ORDER_MIN) | (max << AS_FOLIO_ORDER_MAX);
include/linux/pci.h
1708
int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max,
include/linux/pci.h
2017
int pci_bus_find_emul_domain_nr(u32 hint, u32 min, u32 max);
include/linux/pci.h
2023
static inline int pci_bus_find_emul_domain_nr(u32 hint, u32 min, u32 max)
include/linux/pid_namespace.h
74
scope = max(scope, READ_ONCE(ns->memfd_noexec_scope));
include/linux/prime_numbers.h
21
#define for_each_prime_number(prime, max) \
include/linux/prime_numbers.h
22
for_each_prime_number_from((prime), 2, (max))
include/linux/prime_numbers.h
35
#define for_each_prime_number_from(prime, from, max) \
include/linux/prime_numbers.h
36
for (prime = (from); prime <= (max); prime = next_prime_number(prime))
include/linux/pse-pd/pse.h
42
u32 max;
include/linux/quota.h
197
#define DQUOT_INIT_ALLOC max(V1_INIT_ALLOC, V2_INIT_ALLOC)
include/linux/quota.h
198
#define DQUOT_INIT_REWRITE max(V1_INIT_REWRITE, V2_INIT_REWRITE)
include/linux/quota.h
199
#define DQUOT_DEL_ALLOC max(V1_DEL_ALLOC, V2_DEL_ALLOC)
include/linux/quota.h
200
#define DQUOT_DEL_REWRITE max(V1_DEL_REWRITE, V2_DEL_REWRITE)
include/linux/radix-tree.h
265
unsigned long max);
include/linux/rbtree_augmented.h
151
RBTYPE max = RBCOMPUTE(node); \
include/linux/rbtree_augmented.h
154
if (child->RBAUGMENTED > max) \
include/linux/rbtree_augmented.h
155
max = child->RBAUGMENTED; \
include/linux/rbtree_augmented.h
159
if (child->RBAUGMENTED > max) \
include/linux/rbtree_augmented.h
160
max = child->RBAUGMENTED; \
include/linux/rbtree_augmented.h
162
if (exit && node->RBAUGMENTED == max) \
include/linux/rbtree_augmented.h
164
node->RBAUGMENTED = max; \
include/linux/regmap.h
1378
unsigned int max);
include/linux/regmap.h
1380
unsigned int max);
include/linux/regmap.h
2083
unsigned int max)
include/linux/regmap.h
2090
unsigned int max)
include/linux/serial_core.h
1035
unsigned int max);
include/linux/serial_core.h
1048
return max(nsecs_to_jiffies(fifo_timeout), 1UL);
include/linux/shmem_fs.h
219
return max(eof, SHMEM_I(inode)->fallocend);
include/linux/skbuff.h
3303
#define NET_SKB_PAD max(32, L1_CACHE_BYTES)
include/linux/sockptr.h
91
size_t rest = max(ksize, usize) - size;
include/linux/spi/spi.h
1416
return max(xfer->len * 8 * 2 / (xfer->speed_hz / 1000), 500U);
include/linux/spi/spi.h
610
#define SPI_BPW_RANGE_MASK(min, max) GENMASK((max) - 1, (min) - 1)
include/linux/swap.h
267
unsigned int max; /* extent of the swap_map */
include/linux/tnum.h
30
struct tnum tnum_range(u64 min, u64 max);
include/linux/tpm.h
477
extern int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max);
include/linux/tpm.h
508
static inline int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max)
include/linux/uaccess.h
399
size_t rest = max(ksize, usize) - size;
include/linux/uaccess.h
496
size_t rest = max(ksize, usize) - size;
include/linux/usb/phy.h
230
unsigned int *min, unsigned int *max);
include/linux/usb/phy.h
272
unsigned int *max)
include/linux/user_namespace.h
156
bool is_rlimit_overlimit(struct ucounts *ucounts, enum rlimit_type type, unsigned long max);
include/linux/user_namespace.h
164
enum rlimit_type type, unsigned long max)
include/linux/user_namespace.h
166
ns->rlimit_max[type] = max <= LONG_MAX ? max : LONG_MAX;
include/linux/xarray.h
1544
void *xas_find(struct xa_state *, unsigned long max);
include/linux/xarray.h
1550
void *xas_find_marked(struct xa_state *, unsigned long max, xa_mark_t);
include/linux/xarray.h
1717
static inline void *xas_next_entry(struct xa_state *xas, unsigned long max)
include/linux/xarray.h
1724
return xas_find(xas, max);
include/linux/xarray.h
1727
if (unlikely(xas->xa_index >= max))
include/linux/xarray.h
1728
return xas_find(xas, max);
include/linux/xarray.h
1730
return xas_find(xas, max);
include/linux/xarray.h
1733
return xas_find(xas, max);
include/linux/xarray.h
1774
static inline void *xas_next_marked(struct xa_state *xas, unsigned long max,
include/linux/xarray.h
1782
return xas_find_marked(xas, max, mark);
include/linux/xarray.h
1786
if (xas->xa_index > max)
include/linux/xarray.h
1789
return xas_find_marked(xas, max, mark);
include/linux/xarray.h
1792
return xas_find_marked(xas, max, mark);
include/linux/xarray.h
1817
#define xas_for_each(xas, entry, max) \
include/linux/xarray.h
1818
for (entry = xas_find(xas, max); entry; \
include/linux/xarray.h
1819
entry = xas_next_entry(xas, max))
include/linux/xarray.h
1835
#define xas_for_each_marked(xas, entry, max, mark) \
include/linux/xarray.h
1836
for (entry = xas_find_marked(xas, max, mark); entry; \
include/linux/xarray.h
1837
entry = xas_next_marked(xas, max, mark))
include/linux/xarray.h
244
u32 max;
include/linux/xarray.h
248
#define XA_LIMIT(_min, _max) (struct xa_limit) { .min = _min, .max = _max }
include/linux/xarray.h
364
unsigned long max, xa_mark_t) __attribute__((nonnull(2)));
include/linux/xarray.h
366
unsigned long max, xa_mark_t) __attribute__((nonnull(2)));
include/linux/xarray.h
368
unsigned long max, unsigned int n, xa_mark_t);
include/media/rc-core.h
210
int (*s_rx_carrier_range)(struct rc_dev *dev, u32 min, u32 max);
include/media/rc-core.h
319
struct ir_raw_event *events, unsigned int max);
include/media/tuner-types.h
195
u16 max;
include/media/v4l2-common.h
96
s32 min, s32 max, s32 step, s32 def);
include/media/v4l2-ctrls.h
469
s64 max;
include/media/v4l2-ctrls.h
511
s64 *min, s64 *max, u64 *step, s64 *def, u32 *flags);
include/media/v4l2-ctrls.h
683
u32 id, s64 min, s64 max, u64 step,
include/media/v4l2-ctrls.h
709
u32 id, u8 max, u64 mask, u8 def);
include/media/v4l2-ctrls.h
734
u32 id, u8 max,
include/media/v4l2-ctrls.h
784
u32 id, u8 max, u8 def,
include/media/v4l2-ctrls.h
963
s64 min, s64 max, u64 step, s64 def);
include/media/v4l2-ctrls.h
985
s64 min, s64 max, u64 step, s64 def)
include/media/v4l2-ctrls.h
990
rval = __v4l2_ctrl_modify_range(ctrl, min, max, step, def);
include/media/v4l2-rect.h
123
r->top = max(r1->top, r2->top);
include/media/v4l2-rect.h
124
r->left = max(r1->left, r2->left);
include/media/v4l2-rect.h
127
r->height = max(0, bottom - r->top);
include/media/v4l2-rect.h
128
r->width = max(0, right - r->left);
include/net/bluetooth/hci_core.h
2280
static inline int hci_check_conn_params(u16 min, u16 max, u16 latency,
include/net/bluetooth/hci_core.h
2285
if (min > max) {
include/net/bluetooth/hci_core.h
2286
BT_WARN("min %d > max %d", min, max);
include/net/bluetooth/hci_core.h
2295
if (max > 3200) {
include/net/bluetooth/hci_core.h
2296
BT_WARN("max %d > 3200", max);
include/net/bluetooth/hci_core.h
2310
if (max >= to_multiplier * 8) {
include/net/bluetooth/hci_core.h
2311
BT_WARN("max %d >= to_multiplier %d * 8", max, to_multiplier);
include/net/bluetooth/hci_core.h
2315
max_latency = (to_multiplier * 4 / max) - 1;
include/net/bluetooth/hci_core.h
2498
u8 hci_le_conn_update(struct hci_conn *conn, u16 min, u16 max, u16 latency,
include/net/bluetooth/l2cap.h
427
__le16 max;
include/net/cfg80211.h
5368
u16 max;
include/net/cfg802154.h
596
unsigned int max);
include/net/ip_vs.h
1625
return max(1U, limit);
include/net/libeth/rx.h
23
#define LIBETH_MAX_HEAD roundup_pow_of_two(max(MAX_HEADER, 256))
include/net/libeth/xdp.h
116
static inline u32 libeth_xdpsq_num(u32 rxq, u32 txq, u32 max)
include/net/libeth/xdp.h
118
return min(max(nr_cpu_ids, rxq), max - txq);
include/net/mctp.h
240
mctp_eid_t min, max;
include/net/netfilter/nf_conntrack.h
297
return max(timeout, 0);
include/net/netfilter/nf_tables.h
255
int nft_parse_u32_check(const struct nlattr *attr, int max, u32 *dest);
include/net/netlink.h
206
u64 min, max;
include/net/netlink.h
210
s64 min, max;
include/net/netlink.h
382
s16 min, max;
include/net/netlink.h
435
.max = _max \
include/net/netlink.h
459
.max = _max, \
include/net/netlink.h
480
.max = _len \
include/net/phonet/phonet.h
44
void phonet_get_local_port_range(int *min, int *max);
include/net/pkt_cls.h
897
u32 max;
include/net/pkt_cls.h
929
u32 max;
include/net/proto_memory.h
47
return max(0L, atomic_long_read(prot->memory_allocated));
include/net/red.h
249
max_p_delta = max(max_p_delta, 1U);
include/net/red.h
462
max_p_delta = max(max_p_delta, 1U);
include/net/scm.h
33
short max;
include/net/tcp.h
1498
return max(tp->snd_ssthresh,
include/net/udp.h
347
int min, int max, bool use_eth)
include/net/udp.h
351
if (min >= max) {
include/net/udp.h
353
inet_get_local_port_range(net, &min, &max);
include/net/udp.h
379
return htons((((u64) hash * (max - min)) >> 32) + min);
include/net/xdp_sock_drv.h
131
static inline u32 xsk_buff_alloc_batch(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 max)
include/net/xdp_sock_drv.h
133
return xp_alloc_batch(pool, xdp, max);
include/net/xdp_sock_drv.h
29
u32 xsk_tx_peek_release_desc_batch(struct xsk_buff_pool *pool, u32 max);
include/net/xdp_sock_drv.h
315
static inline u32 xsk_tx_peek_release_desc_batch(struct xsk_buff_pool *pool, u32 max)
include/net/xdp_sock_drv.h
412
static inline u32 xsk_buff_alloc_batch(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 max)
include/net/xfrm.h
1881
int verify_spi_info(u8 proto, u32 min, u32 max, struct netlink_ext_ack *extack);
include/net/xsk_buff_pool.h
142
u32 xp_alloc_batch(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 max);
include/rdma/rdmavt_mr.h
53
u32 max; /* size of the table */
include/rdma/uverbs_std_types.h
127
size_t max;
include/scsi/libiscsi.h
264
int max; /* Max number of elements */
include/soc/mscc/ocelot.h
673
u16 max;
include/sound/emu10k1.h
1568
int max; /* maximum range */
include/sound/pcm.h
1085
unsigned int min, unsigned int max);
include/sound/pcm.h
1309
size_t size, size_t max);
include/sound/pcm.h
1312
size_t size, size_t max);
include/sound/pcm.h
1317
struct device *data, size_t size, size_t max);
include/sound/pcm.h
1320
size_t size, size_t max);
include/sound/pcm.h
1412
static inline void snd_pcm_limit_isa_dma_size(int dma, size_t *max)
include/sound/pcm.h
1414
*max = dma < 4 ? 64 * 1024 : 128 * 1024;
include/sound/pcm_params.h
219
i->max = UINT_MAX;
include/sound/pcm_params.h
232
return (i->min > i->max ||
include/sound/pcm_params.h
233
(i->min == i->max && (i->openmin || i->openmax)));
include/sound/pcm_params.h
243
return (i->min == i->max ||
include/sound/pcm_params.h
244
(i->min + 1 == i->max && (i->openmin || i->openmax)));
include/sound/pcm_params.h
250
return i->max;
include/sound/pcm_params.h
262
v = i->max;
include/sound/pcm_params.h
271
i->max < val || (i->max == val && i->openmax)));
include/sound/pcm_params.h
283
if (i->openmin && i->openmax && i->min == i->max)
include/sound/pcm_params.h
296
i1->max == i2->max && i1->openmax == i2->openmax;
include/sound/soc-dapm.h
330
#define SOC_DAPM_DOUBLE(xname, reg, lshift, rshift, max, invert) \
include/sound/soc-dapm.h
331
SOC_DOUBLE_EXT(xname, reg, lshift, rshift, max, invert, \
include/sound/soc-dapm.h
333
#define SOC_DAPM_DOUBLE_R(xname, lreg, rreg, shift, max, invert) \
include/sound/soc-dapm.h
334
SOC_DOUBLE_R_EXT(xname, lreg, rreg, shift, max, invert, \
include/sound/soc-dapm.h
336
#define SOC_DAPM_SINGLE(xname, reg, shift, max, invert) \
include/sound/soc-dapm.h
337
SOC_SINGLE_EXT(xname, reg, shift, max, invert, \
include/sound/soc-dapm.h
339
#define SOC_DAPM_SINGLE_VIRT(xname, max) \
include/sound/soc-dapm.h
340
SOC_DAPM_SINGLE(xname, SND_SOC_NOPM, 0, max, 0)
include/sound/soc-dapm.h
341
#define SOC_DAPM_DOUBLE_R_TLV(xname, lreg, rreg, shift, max, invert, tlv_array) \
include/sound/soc-dapm.h
342
SOC_DOUBLE_R_EXT_TLV(xname, lreg, rreg, shift, max, invert, \
include/sound/soc-dapm.h
345
#define SOC_DAPM_SINGLE_TLV(xname, reg, shift, max, invert, tlv_array) \
include/sound/soc-dapm.h
346
SOC_SINGLE_EXT_TLV(xname, reg, shift, max, invert, \
include/sound/soc-dapm.h
349
#define SOC_DAPM_SINGLE_TLV_VIRT(xname, max, tlv_array) \
include/sound/soc-dapm.h
350
SOC_DAPM_SINGLE(xname, SND_SOC_NOPM, 0, max, 0, tlv_array)
include/sound/soc-dapm.h
357
#define SOC_DAPM_SINGLE_AUTODISABLE(xname, reg, shift, max, invert) \
include/sound/soc-dapm.h
361
.private_value = SOC_SINGLE_VALUE(reg, shift, 0, max, invert, 1) }
include/sound/soc-dapm.h
362
#define SOC_DAPM_SINGLE_TLV_AUTODISABLE(xname, reg, shift, max, invert, tlv_array) \
include/sound/soc-dapm.h
368
.private_value = SOC_SINGLE_VALUE(reg, shift, 0, max, invert, 1) }
include/sound/soc.h
101
0, max, invert, 0) }
include/sound/soc.h
102
#define SOC_DOUBLE_STS(xname, reg, shift_left, shift_right, max, invert) \
include/sound/soc.h
109
0, max, invert, 0) }
include/sound/soc.h
123
#define SOC_DOUBLE_TLV(xname, reg, shift_left, shift_right, max, invert, tlv_array) \
include/sound/soc.h
1233
int min, max;
include/sound/soc.h
1255
int max;
include/sound/soc.h
1268
long min, max;
include/sound/soc.h
131
0, max, invert, 0) }
include/sound/soc.h
200
.min = xmin, .max = xmax, \
include/sound/soc.h
240
#define SOC_DOUBLE_EXT(xname, reg, shift_left, shift_right, max, invert,\
include/sound/soc.h
246
SOC_DOUBLE_VALUE(reg, shift_left, shift_right, 0, max, invert, 0) }
include/sound/soc.h
365
{.max = xcount} }
include/sound/soc.h
373
{.max = xcount, .get = xhandler_get, .put = xhandler_put, } }
include/sound/soc.h
381
.invert = xinvert, .min = xmin, .max = xmax} }
include/sound/soc.h
46
.rshift = shift_right, .min = xmin, .max = xmax, \
include/sound/soc.h
56
.max = xmax, .min = xmin, .sign_bit = xsign_bit, \
include/sound/soc.h
579
const char *name, int max);
include/sound/soc.h
61
#define SOC_SINGLE(xname, reg, shift, max, invert) \
include/sound/soc.h
65
.private_value = SOC_SINGLE_VALUE(reg, shift, 0, max, invert, 0) }
include/sound/soc.h
71
#define SOC_SINGLE_TLV(xname, reg, shift, max, invert, tlv_array) \
include/sound/soc.h
78
.private_value = SOC_SINGLE_VALUE(reg, shift, 0, max, invert, 0) }
include/sound/soc.h
817
return max(link->num_cpus, link->num_codecs);
include/sound/soc.h
96
#define SOC_DOUBLE(xname, reg, shift_left, shift_right, max, invert) \
include/trace/events/clk.h
137
TP_PROTO(struct clk_core *core, unsigned long min, unsigned long max),
include/trace/events/clk.h
139
TP_ARGS(core, min, max),
include/trace/events/clk.h
144
__field(unsigned long, max )
include/trace/events/clk.h
150
__entry->max = max;
include/trace/events/clk.h
155
(unsigned long)__entry->max)
include/trace/events/clk.h
160
TP_PROTO(struct clk_core *core, unsigned long min, unsigned long max),
include/trace/events/clk.h
162
TP_ARGS(core, min, max)
include/trace/events/clk.h
277
__field(unsigned long, max )
include/trace/events/clk.h
285
__entry->max = req->max_rate;
include/trace/events/clk.h
291
(unsigned long)__entry->max,
include/trace/events/maple_tree.h
101
__entry->max = mas->max;
include/trace/events/maple_tree.h
113
(unsigned long) __entry->max,
include/trace/events/maple_tree.h
22
__field(unsigned long, max)
include/trace/events/maple_tree.h
31
__entry->max = mas->max;
include/trace/events/maple_tree.h
41
(unsigned long) __entry->max,
include/trace/events/maple_tree.h
55
__field(unsigned long, max)
include/trace/events/maple_tree.h
64
__entry->max = mas->max;
include/trace/events/maple_tree.h
74
(unsigned long) __entry->max,
include/trace/events/maple_tree.h
90
__field(unsigned long, max)
include/trace/events/power.h
206
__entry->max_freq = policy->max;
include/trace/events/regulator.h
111
TP_PROTO(const char *name, int min, int max),
include/trace/events/regulator.h
113
TP_ARGS(name, min, max),
include/trace/events/regulator.h
118
__field( int, max )
include/trace/events/regulator.h
124
__entry->max = max;
include/trace/events/regulator.h
128
(int)__entry->min, (int)__entry->max)
include/trace/events/regulator.h
133
TP_PROTO(const char *name, int min, int max),
include/trace/events/regulator.h
135
TP_ARGS(name, min, max)
include/trace/events/rpcgss.h
527
u32 max
include/trace/events/rpcgss.h
530
TP_ARGS(rqstp, seqno, min, max),
include/trace/events/rpcgss.h
536
__field(u32, max)
include/trace/events/rpcgss.h
543
__entry->max = max;
include/trace/events/rpcgss.h
547
__entry->xid, __entry->seqno, __entry->min, __entry->max)
include/trace/events/rpcrdma.h
1292
__be32 *max
include/trace/events/rpcrdma.h
1295
TP_ARGS(rqst, min, max),
include/trace/events/rpcrdma.h
1302
__field(u32, max)
include/trace/events/rpcrdma.h
1310
__entry->max = be32_to_cpup(max);
include/trace/events/rpcrdma.h
1315
__entry->min, __entry->max
include/trace/events/wbt.h
104
__field(unsigned int, max)
include/trace/events/wbt.h
115
__entry->max = max;
include/trace/events/wbt.h
120
__entry->bg, __entry->normal, __entry->max)
include/trace/events/wbt.h
40
__entry->rmax = stat[0].max;
include/trace/events/wbt.h
44
__entry->wmax = stat[1].max;
include/trace/events/wbt.h
93
unsigned int normal, unsigned int max),
include/trace/events/wbt.h
95
TP_ARGS(bdi, msg, step, window, bg, normal, max),
include/uapi/drm/amdxdna_accel.h
375
__u32 max;
include/uapi/drm/exynos_drm.h
208
__u32 max;
include/uapi/linux/atm_nicstar.h
36
unsigned max;
include/uapi/linux/comedi.h
687
int max;
include/uapi/linux/idxd.h
386
__u32 max;
include/uapi/linux/ioprio.h
105
#define IOPRIO_BAD_VALUE(val, max) ((val) < 0 || (val) >= (max))
include/uapi/linux/media/raspberrypi/pisp_be_config.h
155
__u16 max;
include/uapi/linux/netfilter/nf_nat.h
30
union nf_conntrack_man_proto max;
include/uapi/linux/netfilter/xt_hashlimit.h
39
__u32 max; /* max number of entries */
include/uapi/linux/netfilter/xt_hashlimit.h
63
__u32 max; /* max number of entries */
include/uapi/linux/netfilter/xt_hashlimit.h
77
__u32 max; /* max number of entries */
include/uapi/linux/netfilter/xt_hashlimit.h
91
__u32 max; /* max number of entries */
include/uapi/linux/netfilter/xt_length.h
8
__u16 min, max;
include/uapi/linux/netfilter/xt_u32.h
21
__u32 max;
include/uapi/linux/ntsync.h
15
__u32 max;
include/uapi/linux/pkt_sched.h
670
__u32 max; /* max len of qlen_min */
include/uapi/linux/videodev2.h
989
struct v4l2_fract max; /* Maximum frame interval [s] */
include/uapi/linux/virtio_input.h
44
__le32 max;
include/uapi/linux/virtio_snd.h
417
__le32 max;
include/uapi/linux/virtio_snd.h
426
__le64 max;
include/uapi/linux/xfrm.h
431
__u32 max;
include/uapi/sound/asoc.h
396
__le32 max;
include/uapi/sound/asoc.h
440
__le32 max;
include/uapi/sound/asound.h
1148
long max; /* R: maximum value */
include/uapi/sound/asound.h
1153
long long max; /* R: maximum value */
include/uapi/sound/asound.h
395
unsigned int min, max;
include/uapi/sound/emu10k1.h
335
int max; /* maximum range */
include/uapi/sound/emu10k1.h
348
unsigned int max;
include/uapi/sound/skl-tplg-interface.h
154
__u32 max;
include/video/display_timing.h
43
u32 max;
include/xen/interface/io/sndif.h
880
uint32_t max;
include/xen/interface/io/sndif.h
884
uint32_t max;
include/xen/interface/io/sndif.h
888
uint32_t max;
include/xen/interface/io/sndif.h
892
uint32_t max;
init/calibrate.c
111
if (max < 0 || timer_rate_max > measured_times[max])
init/calibrate.c
112
max = i;
init/calibrate.c
133
if ((measured_times[max] - measured_times[min]) < maxdiff)
init/calibrate.c
139
if ((measured_times[max] - estimate) <
init/calibrate.c
145
min = max;
init/calibrate.c
149
max, measured_times[max]);
init/calibrate.c
150
measured_times[max] = 0;
init/calibrate.c
151
max = min;
init/calibrate.c
161
if (measured_times[i] > measured_times[max])
init/calibrate.c
162
max = i;
init/calibrate.c
47
int max = -1; /* index of measured_times with max/min values or not set */
io_uring/rsrc.c
1186
ret = io_rsrc_data_alloc(&data, max(nbufs, ctx->buf_table.nr));
io_uring/sqpoll.c
98
sq_thread_idle = max(sq_thread_idle, ctx->sq_thread_idle);
io_uring/tw.c
361
max(IO_LOCAL_TW_DEFAULT_MAX, min_events));
io_uring/wait.c
202
max(IO_LOCAL_TW_DEFAULT_MAX, min_events));
ipc/sem.c
1991
int max, locknum;
ipc/sem.c
2012
max = 0;
ipc/sem.c
2016
if (sop->sem_num >= max)
ipc/sem.c
2017
max = sop->sem_num;
ipc/sem.c
2055
if (max >= sma->sem_nsems) {
ipc/util.c
226
max_idx = max(ids->in_use*3/2, ipc_min_cycle);
kernel/bpf/devmap.c
607
static int get_upper_ifindexes(struct net_device *dev, int *indexes, int max)
kernel/bpf/devmap.c
614
if (n >= max)
kernel/bpf/log.c
850
return round_up(max(pos + BPF_LOG_MIN_ALIGNMENT / 2, BPF_LOG_ALIGNMENT),
kernel/bpf/memalloc.c
486
c->low_watermark = max(32 * 256 / c->unit_size, 1);
kernel/bpf/memalloc.c
487
c->high_watermark = max(96 * 256 / c->unit_size, 3);
kernel/bpf/memalloc.c
489
c->batch = max((c->high_watermark - c->low_watermark) / 4 * 3, 1);
kernel/bpf/ringbuf.c
324
return prod_pos - max(cons_pos, over_pos);
kernel/bpf/tnum.c
22
struct tnum tnum_range(u64 min, u64 max)
kernel/bpf/tnum.c
24
u64 chi = min ^ max, delta;
kernel/bpf/verifier.c
11419
u64 val, max;
kernel/bpf/verifier.c
11431
max = map->max_entries;
kernel/bpf/verifier.c
11433
if (!(is_reg_const(reg, false) && val < max)) {
kernel/bpf/verifier.c
1406
alloc_bytes = max(ksize(orig), kmalloc_size_roundup(bytes));
kernel/bpf/verifier.c
14551
u32 max = 0, ptr_limit = 0;
kernel/bpf/verifier.c
14560
max = MAX_BPF_STACK + mask_to_left;
kernel/bpf/verifier.c
14564
max = ptr_reg->map_ptr->value_size;
kernel/bpf/verifier.c
14573
if (ptr_limit >= max)
kernel/bpf/verifier.c
15348
*dst_smax = max(res1, res2);
kernel/bpf/verifier.c
15385
*dst_smax = max(res1, res2);
kernel/bpf/verifier.c
15476
*dst_smin = max(*dst_smin, -res_max_abs);
kernel/bpf/verifier.c
15522
*dst_smin = max(*dst_smin, -res_max_abs);
kernel/bpf/verifier.c
15613
dst_reg->u32_min_value = max(dst_reg->u32_min_value, umin_val);
kernel/bpf/verifier.c
15643
dst_reg->umin_value = max(dst_reg->umin_value, umin_val);
kernel/bpf/verifier.c
16679
reg->range = max(reg->range, new_range);
kernel/bpf/verifier.c
1677
env->peak_states = max(env->peak_states, cur_states);
kernel/bpf/verifier.c
17000
reg1->u32_min_value = max(reg1->u32_min_value, reg2->u32_min_value);
kernel/bpf/verifier.c
17002
reg1->s32_min_value = max(reg1->s32_min_value, reg2->s32_min_value);
kernel/bpf/verifier.c
17013
reg1->umin_value = max(reg1->umin_value, reg2->umin_value);
kernel/bpf/verifier.c
17015
reg1->smin_value = max(reg1->smin_value, reg2->smin_value);
kernel/bpf/verifier.c
17110
reg2->u32_min_value = max(reg1->u32_min_value, reg2->u32_min_value);
kernel/bpf/verifier.c
17113
reg2->umin_value = max(reg1->umin_value, reg2->umin_value);
kernel/bpf/verifier.c
17119
reg2->u32_min_value = max(reg1->u32_min_value + 1, reg2->u32_min_value);
kernel/bpf/verifier.c
17122
reg2->umin_value = max(reg1->umin_value + 1, reg2->umin_value);
kernel/bpf/verifier.c
17128
reg2->s32_min_value = max(reg1->s32_min_value, reg2->s32_min_value);
kernel/bpf/verifier.c
17131
reg2->smin_value = max(reg1->smin_value, reg2->smin_value);
kernel/bpf/verifier.c
17137
reg2->s32_min_value = max(reg1->s32_min_value + 1, reg2->s32_min_value);
kernel/bpf/verifier.c
17140
reg2->smin_value = max(reg1->smin_value + 1, reg2->smin_value);
kernel/bpf/verifier.c
2398
reg->umin_value = max(reg->umin_value, reg->var_off.value);
kernel/bpf/verifier.c
7117
s64_max = max(init_s64_max, init_s64_min);
kernel/bpf/verifier.c
7183
s32_max = max(init_s32_max, init_s32_min);
kernel/cgroup/dmem.c
177
return pool ? READ_ONCE(pool->cnt.max) : PAGE_COUNTER_MAX;
kernel/cgroup/misc.c
169
if (new_usage > READ_ONCE(res->max) ||
kernel/cgroup/misc.c
220
u64 max;
kernel/cgroup/misc.c
224
max = READ_ONCE(cg->res[i].max);
kernel/cgroup/misc.c
225
if (max == MAX_NUM)
kernel/cgroup/misc.c
229
max);
kernel/cgroup/misc.c
258
u64 max;
kernel/cgroup/misc.c
280
max = MAX_NUM;
kernel/cgroup/misc.c
282
ret = kstrtou64(buf, 0, &max);
kernel/cgroup/misc.c
290
WRITE_ONCE(cg->res[type].max, max);
kernel/cgroup/misc.c
454
WRITE_ONCE(cg->res[i].max, MAX_NUM);
kernel/cgroup/rdma.c
287
if (new > rpool->resources[index].max) {
kernel/cgroup/rdma.c
44
int max;
kernel/cgroup/rdma.c
508
value = rpool->resources[i].max;
kernel/cgroup/rdma.c
86
if (rpool->resources[index].max != S32_MAX)
kernel/cgroup/rdma.c
89
if (rpool->resources[index].max == S32_MAX)
kernel/cgroup/rdma.c
92
rpool->resources[index].max = new_max;
kernel/cpu.c
1278
enum cpuhp_state target = max((int)st->target, CPUHP_AP_OFFLINE);
kernel/cpu.c
1435
st->target = max((int)target, CPUHP_TEARDOWN_CPU);
kernel/delayacct.c
110
u64 *max, u64 *min, struct timespec64 *ts)
kernel/delayacct.c
119
if (ns > *max) {
kernel/delayacct.c
120
*max = ns;
kernel/dma/contiguous.c
250
selected_size = max(size_bytes, cma_early_percent_memory());
kernel/dma/pool.c
75
return end <= max(DMA_BIT_MASK(32), zone_dma_limit);
kernel/dma/swiotlb.c
1074
stride = get_max_slots(max(alloc_align_mask, iotlb_align_mask));
kernel/dma/swiotlb.c
454
io_tlb_default_mem.phys_limit = max(DMA_BIT_MASK(32), zone_dma_limit);
kernel/events/core.c
12764
int cpu, max = PERF_TYPE_MAX;
kernel/events/core.c
12779
max = type;
kernel/events/core.c
12781
CLASS(idr_alloc, pmu_type)(&pmu_idr, NULL, max, 0, GFP_KERNEL);
kernel/events/core.c
646
u32 max;
kernel/events/core.c
673
max = (TICK_NSEC / 100) * sysctl_perf_cpu_time_max_percent;
kernel/events/core.c
674
if (avg_len < max)
kernel/events/core.c
675
max /= (u32)avg_len;
kernel/events/core.c
677
max = 1;
kernel/events/core.c
680
WRITE_ONCE(max_samples_per_tick, max);
kernel/events/core.c
682
sysctl_perf_event_sample_rate = max * HZ;
kernel/events/hw_breakpoint.c
400
pinned_slots = max(nr, pinned_slots);
kernel/events/uprobes.c
1499
find_node_in_range(struct inode *inode, loff_t min, loff_t max)
kernel/events/uprobes.c
1511
if (max < u->offset)
kernel/events/uprobes.c
1531
loff_t min, max;
kernel/events/uprobes.c
1537
max = min + (end - start) - 1;
kernel/events/uprobes.c
1540
n = find_node_in_range(inode, min, max);
kernel/events/uprobes.c
1552
if (u->inode != inode || u->offset > max)
kernel/events/uprobes.c
1641
loff_t min, max;
kernel/events/uprobes.c
1648
max = min + (end - start) - 1;
kernel/events/uprobes.c
1651
n = find_node_in_range(inode, min, max);
kernel/exit.c
1253
maxrss = max(sig->maxrss, sig->cmaxrss);
kernel/fork.c
3278
int max = MAX_THREADS;
kernel/fork.c
3283
t.extra2 = &max;
kernel/futex/core.c
1983
hashsize = max(4, hashsize);
kernel/futex/futex.h
100
u64 max = ~0ULL;
kernel/futex/futex.h
102
max >>= 64 - bits;
kernel/futex/futex.h
103
if (nr_node_ids >= max)
kernel/irq/msi.c
113
struct xa_limit limit = { .min = 0, .max = hwsize - 1 };
kernel/irq/msi.c
927
info->hwirq_max = max(info->hwirq_max, info->size);
kernel/kallsyms_selftest.c
169
if (t > stat->max)
kernel/kallsyms_selftest.c
170
stat->max = t;
kernel/kallsyms_selftest.c
187
stat.min, stat.max, div_u64(stat.sum, stat.real_cnt));
kernel/kallsyms_selftest.c
203
if (stat->real_cnt == stat->max)
kernel/kallsyms_selftest.c
216
stat.max = INT_MAX;
kernel/kallsyms_selftest.c
237
if (stat->real_cnt == stat->max)
kernel/kallsyms_selftest.c
249
stat.max = INT_MAX;
kernel/kallsyms_selftest.c
28
int max;
kernel/kallsyms_selftest.c
285
stat->max = INT_MAX;
kernel/kallsyms_selftest.c
299
stat->max = INT_MAX;
kernel/kallsyms_selftest.c
330
stat->max = INT_MAX;
kernel/kallsyms_selftest.c
339
stat2->max = INT_MAX;
kernel/kcsan/report.c
534
int timeout = max(kcsan_udelay_task, kcsan_udelay_interrupt);
kernel/kexec_file.c
523
temp_start = max(start, kbuf->buf_min);
kernel/kexec_file.c
782
kbuf->buf_align = max(kbuf->buf_align, PAGE_SIZE);
kernel/latencytop.c
145
if (lat->time > latency_record[i].max)
kernel/latencytop.c
146
latency_record[i].max = lat->time;
kernel/latencytop.c
194
lat.max = usecs;
kernel/latencytop.c
222
if (lat.time > mylat->max)
kernel/latencytop.c
223
mylat->max = lat.time;
kernel/latencytop.c
254
lr->count, lr->time, lr->max);
kernel/locking/lockdep.c
275
if (time > lt->max)
kernel/locking/lockdep.c
276
lt->max = time;
kernel/locking/lockdep.c
290
if (src->max > dst->max)
kernel/locking/lockdep.c
291
dst->max = src->max;
kernel/locking/lockdep.c
3510
req = max(req, 2);
kernel/locking/lockdep.c
3556
add_chain_block(base, max(size, 2));
kernel/locking/lockdep.c
879
count = max(count, class->name_version);
kernel/locking/lockdep_proc.c
455
seq_time(m, lt->max);
kernel/locking/locktorture.c
1006
long max = 0, min = statp ? data_race(statp[0].n_lock_acquired) : 0;
kernel/locking/locktorture.c
1015
if (max < cur)
kernel/locking/locktorture.c
1016
max = cur;
kernel/locking/locktorture.c
1023
sum, max, min,
kernel/locking/locktorture.c
1024
!onoff_interval && max / 2 > min ? "???" : "",
kernel/module/main.c
101
unsigned long max = min + size;
kernel/module/main.c
107
if (max > tree->data_addr_max)
kernel/module/main.c
108
tree->data_addr_max = max;
kernel/module/main.c
114
if (max > tree->addr_max)
kernel/module/main.c
115
tree->addr_max = max;
kernel/padata.c
458
nworks = max(job->size / max(job->min_chunk, job->align), 1ul);
kernel/padata.c
482
ps.chunk_size = max(ps.chunk_size, job->min_chunk);
kernel/padata.c
483
ps.chunk_size = max(ps.chunk_size, 1ul);
kernel/params.c
245
unsigned int min, unsigned int max)
kernel/params.c
255
if (num < min || num > max)
kernel/params.c
419
unsigned int min, unsigned int max,
kernel/params.c
439
if (*num == max) {
kernel/params.c
440
pr_err("%s: can only take %i arguments\n", name, max);
kernel/params.c
470
return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem,
kernel/params.c
481
for (i = off = 0; i < (arr->num ? *arr->num : arr->max); i++) {
kernel/params.c
502
for (i = 0; i < (arr->num ? *arr->num : arr->max); i++)
kernel/pid_sysctl.h
23
scope = max(READ_ONCE(ns->memfd_noexec_scope), parent_scope);
kernel/power/snapshot.c
854
bit = max(bm->cur.node_bit - 1, 0);
kernel/range.c
44
common_start = max(range[i].start, start);
kernel/range.c
51
end = max(range[i].end, end);
kernel/rcu/tree.c
2581
bl = max(rdp->blimit, pending >> div);
kernel/resource.c
1979
return ALIGN(max(base->start, align), align);
kernel/resource.c
390
.start = max(start, p->start),
kernel/resource.c
647
o.start = max(o.start, dp->end + 1);
kernel/resource.c
713
resource_size_t max)
kernel/resource.c
717
if (res->end > max)
kernel/resource.c
718
res->end = max;
kernel/resource.c
751
resource_clip(&tmp, constraint->min, constraint->max);
kernel/resource.c
870
resource_size_t max, resource_size_t align,
kernel/resource.c
878
constraint.max = max;
kernel/sched/core.c
10480
return max(min(opt_cids - opt_cids / 4, num_possible_cpus() / 2), 1);
kernel/sched/core.c
3637
u64 max = 2*rq->max_idle_balance_cost;
kernel/sched/core.c
3641
if (rq->avg_idle > max)
kernel/sched/core.c
3642
rq->avg_idle = max;
kernel/sched/core.c
6013
struct task_struct *next, *p, *max;
kernel/sched/core.c
6122
max = NULL;
kernel/sched/core.c
6141
if (!max || prio_less(max, p, fi_before))
kernel/sched/core.c
6142
max = p;
kernel/sched/core.c
6145
cookie = rq->core->core_cookie = max->core_cookie;
kernel/sched/cpufreq_schedutil.c
194
unsigned long util, unsigned long max)
kernel/sched/cpufreq_schedutil.c
200
freq = map_util_freq(util, freq, max);
kernel/sched/cpufreq_schedutil.c
211
unsigned long max)
kernel/sched/cpufreq_schedutil.c
216
if (actual < max)
kernel/sched/cpufreq_schedutil.c
217
max = actual;
kernel/sched/cpufreq_schedutil.c
223
return max(min, max);
kernel/sched/cpufreq_schedutil.c
228
unsigned long min, max, util = scx_cpuperf_target(sg_cpu->cpu);
kernel/sched/cpufreq_schedutil.c
232
util = effective_cpu_util(sg_cpu->cpu, util, &min, &max);
kernel/sched/cpufreq_schedutil.c
233
util = max(util, boost);
kernel/sched/cpufreq_schedutil.c
235
sg_cpu->util = sugov_effective_cpu_perf(sg_cpu->cpu, util, min, max);
kernel/sched/cpufreq_schedutil.c
507
util = max(j_sg_cpu->util, util);
kernel/sched/cputime.c
289
static inline u64 account_other_time(u64 max)
kernel/sched/cputime.c
295
accounted = steal_account_process_time(max);
kernel/sched/cputime.c
297
if (accounted < max)
kernel/sched/cputime.c
298
accounted += irqtime_tick_accounted(max - accounted);
kernel/sched/deadline.c
3640
u64 period, max, min;
kernel/sched/deadline.c
3674
max = (u64)READ_ONCE(sysctl_sched_dl_period_max) * NSEC_PER_USEC;
kernel/sched/deadline.c
3677
if (period < min || period > max)
kernel/sched/ext.c
4083
before_max = max(nr, before_max);
kernel/sched/ext.c
4127
after_max = max(nr, after_max);
kernel/sched/fair.c
10090
unsigned long max = get_actual_cpu_capacity(cpu);
kernel/sched/fair.c
10097
if (unlikely(irq >= max))
kernel/sched/fair.c
10107
if (unlikely(used >= max))
kernel/sched/fair.c
10110
free = max - used;
kernel/sched/fair.c
10112
return scale_irq_capacity(free, irq, max);
kernel/sched/fair.c
10162
max_capacity = max(cpu_cap, max_capacity);
kernel/sched/fair.c
10176
max_capacity = max(sgc->max_capacity, max_capacity);
kernel/sched/fair.c
104
#define fits_capacity(cap, max) ((cap) * 1280 < (max) * 1024)
kernel/sched/fair.c
11275
env->imbalance = max(local->group_capacity, local->group_util) -
kernel/sched/fair.c
12389
max((u64)sysctl_sched_migration_cost, max_cost);
kernel/sched/fair.c
1267
max(delta_exec, stats->exec_max));
kernel/sched/fair.c
1620
return max(smin, period);
kernel/sched/fair.c
1643
smax = max(smax, period);
kernel/sched/fair.c
1646
return max(smin, smax);
kernel/sched/fair.c
1892
enough_wmark = max(1UL * 1024 * 1024 * 1024 >> PAGE_SHIFT,
kernel/sched/fair.c
1974
th = max(th - unit_th, unit_th);
kernel/sched/fair.c
2529
imbalance = max(0, dst_running - src_running);
kernel/sched/fair.c
2823
int ratio = max(lr_ratio, ps_ratio);
kernel/sched/fair.c
3550
start = max(start, vma->vm_start);
kernel/sched/fair.c
3996
load = max(scale_load_down(cfs_rq->load.weight), cfs_rq->avg.load_avg);
kernel/sched/fair.c
4433
runnable_sum = max(runnable_sum, running_sum);
kernel/sched/fair.c
4865
return max(task_util(p), _task_util_est(p));
kernel/sched/fair.c
4986
capacity -= max(hw_load_avg(cpu_rq(cpu)), cpufreq_get_pressure(cpu));
kernel/sched/fair.c
5526
max((u64)stats->slice_max,
kernel/sched/fair.c
8013
util = max(util, runnable);
kernel/sched/fair.c
8063
util = max(util, util_est);
kernel/sched/fair.c
8123
unsigned long *max)
kernel/sched/fair.c
8139
if (max)
kernel/sched/fair.c
8140
*max = scale;
kernel/sched/fair.c
8151
*min = max(irq + cpu_bw_dl(rq), uclamp_rq_get(rq, UCLAMP_MIN));
kernel/sched/fair.c
8158
*min = max(*min, scale);
kernel/sched/fair.c
8174
if (max)
kernel/sched/fair.c
8175
*max = min(scale, uclamp_rq_get(rq, UCLAMP_MAX));
kernel/sched/fair.c
8290
unsigned long eff_util, min, max;
kernel/sched/fair.c
8299
eff_util = effective_cpu_util(cpu, util, &min, &max);
kernel/sched/fair.c
8303
min = max(min, uclamp_eff_value(p, UCLAMP_MIN));
kernel/sched/fair.c
8310
max = uclamp_eff_value(p, UCLAMP_MAX);
kernel/sched/fair.c
8312
max = max(max, uclamp_eff_value(p, UCLAMP_MAX));
kernel/sched/fair.c
8315
eff_util = sugov_effective_cpu_perf(cpu, eff_util, min, max);
kernel/sched/fair.c
8316
max_util = max(max_util, eff_util);
kernel/sched/fair.c
843
max_slice = max(max_slice, root->max_slice);
kernel/sched/fair.c
8473
util_min = max(rq_util_min, p_util_min);
kernel/sched/fair.c
8474
util_max = max(rq_util_max, p_util_max);
kernel/sched/psi.c
411
div_u64(deltas[s], max(nonidle_total, 1UL));
kernel/sched/sched.h
157
__w = max(2UL, __w >> SCHED_FIXEDPOINT_SHIFT); \
kernel/sched/sched.h
3493
unsigned long *max);
kernel/sched/sched.h
3497
unsigned long max);
kernel/sched/sched.h
3673
unsigned long scale_irq_capacity(unsigned long util, unsigned long irq, unsigned long max)
kernel/sched/sched.h
3675
util *= (max - irq);
kernel/sched/sched.h
3676
util /= max;
kernel/sched/sched.h
3690
unsigned long scale_irq_capacity(unsigned long util, unsigned long irq, unsigned long max)
kernel/sched/stats.c
42
max(schedstat_val(stats->wait_max), delta));
kernel/sched/topology.c
2474
sched_domain_level_max = max(sched_domain_level_max, sd->level);
kernel/sched/topology.c
2649
imb = max(1U, imb);
kernel/sched/topology.c
2659
int factor = max(1U, (sd->span_weight / imb_span));
kernel/sysctl.c
1017
if ((min && val < *min) || (max && val > *max)) {
kernel/sysctl.c
939
unsigned int min = 0, max = 255U, val;
kernel/sysctl.c
954
tmp.extra2 = (unsigned int *) &max;
kernel/sysctl.c
972
unsigned long *i, *min, *max;
kernel/sysctl.c
985
max = table->extra2;
kernel/time/clockevents.c
331
delta = max(delta, (int64_t) dev->min_delta_ns);
kernel/time/clocksource.c
1450
max((ssize_t)PAGE_SIZE - count, (ssize_t)0),
kernel/time/clocksource.c
1456
max((ssize_t)PAGE_SIZE - count, (ssize_t)0), "\n");
kernel/time/clocksource.c
503
interval = max(cs_nsec, wd_nsec);
kernel/time/ntp.c
329
ntpdata->time_freq = max(freq_adj, -MAXFREQ_SCALED);
kernel/time/ntp.c
735
ntpdata->time_freq = max(ntpdata->time_freq, -MAXFREQ_SCALED);
kernel/time/sleep_timeout.c
362
void __sched usleep_range_state(unsigned long min, unsigned long max, unsigned int state)
kernel/time/sleep_timeout.c
365
u64 delta = (u64)(max - min) * NSEC_PER_USEC;
kernel/time/sleep_timeout.c
367
if (WARN_ON_ONCE(max < min))
kernel/time/test_udelay.c
29
int min = 0, max = 0, fail_count = 0;
kernel/time/test_udelay.c
47
if (i == 0 || time_passed > max)
kernel/time/test_udelay.c
48
max = time_passed;
kernel/time/test_udelay.c
59
(usecs * 1000) - allowed_error_ns, min, avg, max);
kernel/time/timekeeping.c
2350
shift = max(0, shift);
kernel/time/timekeeping.c
776
u64 max = tk->tkr_mono.clock->max_cycles;
kernel/time/timekeeping.c
777
u64 incr = delta < max ? delta : max;
kernel/trace/bpf_trace.c
2657
arr->mods_cap = max(16, arr->mods_cap * 3 / 2);
kernel/trace/ftrace.c
3480
size_bits = max(ops_hash->filter_hash->size_bits,
kernel/trace/ftrace.c
3514
size_bits = max(ops_hash->notrace_hash->size_bits,
kernel/trace/trace.c
1294
trace_buf_size = max(4096UL, buf_size);
kernel/trace/trace.c
7486
if (param->max && val > *param->max)
kernel/trace/trace.h
2346
u64 *max;
kernel/trace/trace_events_hist.c
5574
static inline const char *__fill_bar_str(char *buf, int size, u64 val, u64 max)
kernel/trace/trace_events_hist.c
5576
unsigned int len = __get_percentage(val, max);
kernel/trace/trace_events_hist.c
5595
u64 max;
kernel/trace/trace_events_hist.c
5617
__fill_bar_str(bar, 20, val, stats[idx].max));
kernel/trace/trace_events_hist.c
5686
if (stats[j].max < val)
kernel/trace/trace_events_hist.c
5687
stats[j].max = val;
kernel/trace/trace_hwlat.c
296
latency = max(sample, outer_sample);
kernel/trace/trace_hwlat.c
734
.max = &hwlat_data.sample_window,
kernel/trace/trace_hwlat.c
746
.max = NULL,
kernel/trace/trace_kdb.c
128
skip_entries = max(cnt + skip_entries, 0);
kernel/trace/trace_osnoise.c
2595
.max = &osnoise_data.sample_period,
kernel/trace/trace_osnoise.c
2605
.max = NULL,
kernel/trace/trace_osnoise.c
2615
.max = NULL,
kernel/trace/trace_osnoise.c
2625
.max = NULL,
kernel/trace/trace_osnoise.c
2637
.max = NULL,
kernel/trace/trace_osnoise.c
2649
.max = &timerlat_max_period,
kernel/ucount.c
221
long max;
kernel/ucount.c
223
max = READ_ONCE(tns->ucount_max[type]);
kernel/ucount.c
224
if (!atomic_long_inc_below(&iter->ucount[type], max))
kernel/ucount.c
250
long max = LONG_MAX;
kernel/ucount.c
255
if (new < 0 || new > max)
kernel/ucount.c
259
max = get_userns_rlimit_max(iter->ns, type);
kernel/ucount.c
300
long max = LONG_MAX;
kernel/ucount.c
305
if (new < 0 || new > max)
kernel/ucount.c
310
max = get_userns_rlimit_max(iter->ns, type);
kernel/ucount.c
331
long max = rlimit;
kernel/ucount.c
333
max = LONG_MAX;
kernel/ucount.c
336
if (val < 0 || val > max)
kernel/ucount.c
338
max = get_userns_rlimit_max(iter->ns, type);
kernel/workqueue.c
1614
wq_node_nr_active(wq, node)->max = min_active;
kernel/workqueue.c
1616
wq_node_nr_active(wq, NUMA_NO_NODE)->max = max_active;
kernel/workqueue.c
1627
wq_node_nr_active(wq, node)->max =
kernel/workqueue.c
1632
wq_node_nr_active(wq, NUMA_NO_NODE)->max = max_active;
kernel/workqueue.c
1707
int max = READ_ONCE(nna->max);
kernel/workqueue.c
1711
if (old >= max)
kernel/workqueue.c
1982
if (atomic_dec_return(&nna->nr) >= READ_ONCE(nna->max))
kernel/workqueue.c
330
int max; /* per-node max_active */
kernel/workqueue.c
4397
const unsigned long max = (1lu << WORK_OFFQ_DISABLE_BITS) - 1;
kernel/workqueue.c
4399
if (likely(offqd->disable < max))
kernel/workqueue.c
4943
nna->max = WQ_DFL_MIN_ACTIVE;
kernel/workqueue.c
7727
max_stall_time = max(max_stall_time, stall_time);
lib/dynamic_queue_limits.c
159
slack = max(slack, slack_last_objs);
lib/idr.c
122
int err, max = end > 0 ? end - 1 : INT_MAX;
lib/idr.c
127
err = idr_alloc_u32(idr, ptr, &id, max, gfp);
lib/idr.c
130
err = idr_alloc_u32(idr, ptr, &id, max, gfp);
lib/idr.c
34
unsigned long max, gfp_t gfp)
lib/idr.c
382
int ida_alloc_range(struct ida *ida, unsigned int min, unsigned int max,
lib/idr.c
393
if ((int)max < 0)
lib/idr.c
394
max = INT_MAX;
lib/idr.c
399
bitmap = xas_find_marked(&xas, max / IDA_BITMAP_BITS, XA_FREE_MARK);
lib/idr.c
402
if (xas.xa_index * IDA_BITMAP_BITS + bit > max)
lib/idr.c
410
if (xas.xa_index * IDA_BITMAP_BITS + bit > max)
lib/idr.c
43
if (max < base)
lib/idr.c
433
if (xas.xa_index * IDA_BITMAP_BITS + bit > max)
lib/idr.c
48
slot = idr_get_free(&idr->idr_rt, &iter, gfp, max - base);
lib/idr.c
493
int ida_find_first_range(struct ida *ida, unsigned int min, unsigned int max)
lib/idr.c
505
if ((int)max < 0)
lib/idr.c
506
max = INT_MAX;
lib/idr.c
510
entry = xa_find(&ida->xa, &index, max / IDA_BITMAP_BITS, XA_PRESENT);
lib/idr.c
518
if (index * IDA_BITMAP_BITS + offset > max) {
lib/idr.c
537
index * IDA_BITMAP_BITS + bit > max)
lib/kfifo.c
380
unsigned int max = (1 << (recsize << 3)) - 1;
lib/kfifo.c
382
if (len > max)
lib/kfifo.c
383
return max;
lib/kunit/attributes.c
115
const char * const str_list[], int max)
lib/kunit/attributes.c
134
for (j = 0; j <= max; j++) {
lib/kunit/executor.c
180
const size_t max = suite_set->end - suite_set->start;
lib/kunit/executor.c
182
copy = kzalloc_objs(*copy, max);
lib/maple_tree.c
1012
mas->max = ULONG_MAX;
lib/maple_tree.c
1018
max = ULONG_MAX;
lib/maple_tree.c
1030
if (mas->max == ULONG_MAX)
lib/maple_tree.c
1051
max = pivots[a_slot];
lib/maple_tree.c
1062
mas->max = max;
lib/maple_tree.c
1196
mas->max = ULONG_MAX;
lib/maple_tree.c
1246
enum maple_type type, unsigned long *pivots, unsigned long max)
lib/maple_tree.c
1260
if (likely(pivots[offset] == max))
lib/maple_tree.c
1295
if (likely(pivots[offset] == mas->max))
lib/maple_tree.c
1350
max_piv = ma_data_end(mn, mt, pivots, mas->max) - 1;
lib/maple_tree.c
1355
if (unlikely(mas->max == ULONG_MAX) && !slots[max_piv + 1]) {
lib/maple_tree.c
1532
offset = ma_data_end(node, type, pivots, mas->max);
lib/maple_tree.c
1604
end = ma_data_end(node, mt, pivots, mas->max);
lib/maple_tree.c
1764
if (unlikely(mas->max == b_node->pivot[j]))
lib/maple_tree.c
1829
mas->max = b_node->pivot[i - 1];
lib/maple_tree.c
1894
if (mas->last >= mas->max)
lib/maple_tree.c
2008
wr_mas->pivots, mas->max);
lib/maple_tree.c
2014
wr_mas->r_max = offset < count ? wr_mas->pivots[offset] : mas->max;
lib/maple_tree.c
2029
mast->orig_r->last = mast->orig_r->max;
lib/maple_tree.c
2110
mast->orig_r->index = mast->r->max;
lib/maple_tree.c
2199
b_node->pivot[b_node->b_end++] = mas->max;
lib/maple_tree.c
2394
(tmp_next[n].max <= tmp_next->last)) {
lib/maple_tree.c
2462
mast->l->max = mast->orig_r->max;
lib/maple_tree.c
2474
mast->r->max = mast->orig_r->max;
lib/maple_tree.c
2503
if (mast->bn->pivot[mast->bn->b_end - 1] >= mast->orig_r->max)
lib/maple_tree.c
2509
mast->orig_r->last = mast->orig_r->max;
lib/maple_tree.c
2547
unsigned long max, min;
lib/maple_tree.c
2552
max = mas->max;
lib/maple_tree.c
2558
end = ma_data_end(node, type, pivots, max);
lib/maple_tree.c
2560
prev_max = max;
lib/maple_tree.c
2563
max = pivots[0];
lib/maple_tree.c
2570
max = pivots[offset];
lib/maple_tree.c
2587
mas->last = max;
lib/maple_tree.c
2589
mas->max = prev_max;
lib/maple_tree.c
2637
if (((mast->orig_l->min != 0) || (mast->orig_r->max != ULONG_MAX)) &&
lib/maple_tree.c
2682
mast->orig_l->last = mast->orig_l->max;
lib/maple_tree.c
2736
mas->max = l_mas.max;
lib/maple_tree.c
2782
r_mas.last = r_mas.index = r_mas.max;
lib/maple_tree.c
2855
if (mast->bn->pivot[mast->bn->b_end - 1] == mas->max)
lib/maple_tree.c
2879
mte_set_pivot(mast->r->node, 0, mast->r->max);
lib/maple_tree.c
2882
mast->l->max = mast->bn->pivot[split];
lib/maple_tree.c
2883
mast->r->min = mast->l->max + 1;
lib/maple_tree.c
2927
if (mas->max == ULONG_MAX)
lib/maple_tree.c
3043
mast.r->max = mas->max;
lib/maple_tree.c
3153
unsigned long max = wr_mas->r_max;
lib/maple_tree.c
3159
if (last < max)
lib/maple_tree.c
3163
max = wr_mas->mas->max;
lib/maple_tree.c
3164
if (last < max)
lib/maple_tree.c
3168
if (last == max) {
lib/maple_tree.c
3190
wr_mas->mas->max = wr_mas->r_max;
lib/maple_tree.c
3279
(r_mas->last < r_mas->max) &&
lib/maple_tree.c
3466
if (r_mas.max > r_mas.last)
lib/maple_tree.c
3545
dst_pivots[new_end] = mas->max;
lib/maple_tree.c
3626
mas->last = mas->max;
lib/maple_tree.c
3657
wr_mas->end_piv = wr_mas->mas->max;
lib/maple_tree.c
3812
if (mas->last > mas->max)
lib/maple_tree.c
3818
if (mte_is_leaf(mas->node) && mas->last == mas->max)
lib/maple_tree.c
389
return !mas->min && mas->max == ULONG_MAX;
lib/maple_tree.c
4032
range_lo = max(min, *next);
lib/maple_tree.c
4100
unsigned long max;
lib/maple_tree.c
4106
max = mas->min - 1;
lib/maple_tree.c
4107
if (max < min)
lib/maple_tree.c
4135
offset = ma_data_end(node, mt, pivots, max);
lib/maple_tree.c
4148
mas->max = max;
lib/maple_tree.c
4217
mas->last = mas->max;
lib/maple_tree.c
4257
unsigned long max)
lib/maple_tree.c
4268
if (mas->max >= max)
lib/maple_tree.c
4271
min = mas->max + 1;
lib/maple_tree.c
4285
node_end = ma_data_end(node, mt, pivots, mas->max);
lib/maple_tree.c
4314
mas->max = mas_safe_pivot(mas, pivots, mas->offset, mt);
lib/maple_tree.c
4318
mas->end = ma_data_end(tmp, mt, pivots, mas->max);
lib/maple_tree.c
4343
static void *mas_next_slot(struct ma_state *mas, unsigned long max, bool empty)
lib/maple_tree.c
4360
if (mas->max >= max) {
lib/maple_tree.c
4364
pivot = mas->max;
lib/maple_tree.c
4369
if (pivot >= max) { /* Was at the limit, next will extend beyond */
lib/maple_tree.c
4382
mas->last = mas->max;
lib/maple_tree.c
4384
if (mas->last >= max) {
lib/maple_tree.c
4389
if (mas_next_node(mas, node, max)) {
lib/maple_tree.c
4415
if (mas->last >= max) {
lib/maple_tree.c
4444
unsigned long max, min;
lib/maple_tree.c
4465
max = mas_safe_pivot(mas, pivots, offset, type);
lib/maple_tree.c
4466
while (mas->index <= max) {
lib/maple_tree.c
4471
gap = max - min + 1;
lib/maple_tree.c
4483
max = pivots[offset];
lib/maple_tree.c
4493
max = min - 1;
lib/maple_tree.c
4497
if (unlikely((mas->index > max) || (size - 1 > max - mas->index)))
lib/maple_tree.c
4510
mas->max = max;
lib/maple_tree.c
4544
data_end = ma_data_end(node, type, pivots, mas->max);
lib/maple_tree.c
4555
gap = min(pivot, mas->last) - max(mas->index, min) + 1;
lib/maple_tree.c
4567
mas->max = pivot;
lib/maple_tree.c
4703
unsigned long max, unsigned long size, bool fwd)
lib/maple_tree.c
4711
if (min > max || max - min + 1 < size)
lib/maple_tree.c
4720
mas->last = max;
lib/maple_tree.c
4721
mas->index = max - size + 1;
lib/maple_tree.c
4735
unsigned long max, unsigned long size)
lib/maple_tree.c
4742
if (min > max)
lib/maple_tree.c
4745
if (size == 0 || max - min < size - 1)
lib/maple_tree.c
4757
return mas_sparse_area(mas, min, max, size, true);
lib/maple_tree.c
4761
mas->last = max;
lib/maple_tree.c
4775
mas->end = ma_data_end(node, mt, pivots, mas->max);
lib/maple_tree.c
4789
unsigned long max, unsigned long size)
lib/maple_tree.c
4793
if (min > max)
lib/maple_tree.c
4796
if (size == 0 || max - min < size - 1)
lib/maple_tree.c
4805
return mas_sparse_area(mas, min, max, size, false);
lib/maple_tree.c
4814
mas->last = max;
lib/maple_tree.c
4816
while (!mas_rev_awalk(mas, size, &min, &max)) {
lib/maple_tree.c
4832
if (max < mas->last)
lib/maple_tree.c
4833
mas->last = max;
lib/maple_tree.c
5229
} else if (mas->index > mas->max || mas->index < mas->min) {
lib/maple_tree.c
5236
static bool mas_next_setup(struct ma_state *mas, unsigned long max,
lib/maple_tree.c
5241
if (unlikely(mas->last >= max)) {
lib/maple_tree.c
5306
void *mas_next(struct ma_state *mas, unsigned long max)
lib/maple_tree.c
5310
if (mas_next_setup(mas, max, &entry))
lib/maple_tree.c
5314
return mas_next_slot(mas, max, false);
lib/maple_tree.c
5329
void *mas_next_range(struct ma_state *mas, unsigned long max)
lib/maple_tree.c
5333
if (mas_next_setup(mas, max, &entry))
lib/maple_tree.c
5337
return mas_next_slot(mas, max, true);
lib/maple_tree.c
5353
void *mt_next(struct maple_tree *mt, unsigned long index, unsigned long max)
lib/maple_tree.c
5359
entry = mas_next(&mas, max);
lib/maple_tree.c
5523
static __always_inline bool mas_find_setup(struct ma_state *mas, unsigned long max, void **entry)
lib/maple_tree.c
5527
if (mas->last < max)
lib/maple_tree.c
5533
if (unlikely(mas->last >= max))
lib/maple_tree.c
5540
if (unlikely(mas->last >= max))
lib/maple_tree.c
5548
if (unlikely(mas->index >= max)) {
lib/maple_tree.c
5559
if (unlikely(mas->last >= max))
lib/maple_tree.c
5575
if (mas->index > max)
lib/maple_tree.c
5590
if (mas->index == max)
lib/maple_tree.c
5614
void *mas_find(struct ma_state *mas, unsigned long max)
lib/maple_tree.c
5618
if (mas_find_setup(mas, max, &entry))
lib/maple_tree.c
5622
entry = mas_next_slot(mas, max, false);
lib/maple_tree.c
5641
void *mas_find_range(struct ma_state *mas, unsigned long max)
lib/maple_tree.c
5645
if (mas_find_setup(mas, max, &entry))
lib/maple_tree.c
5649
return mas_next_slot(mas, max, true);
lib/maple_tree.c
6019
unsigned long max, gfp_t gfp)
lib/maple_tree.c
6032
ret = mas_empty_area(&mas, min, max, size);
lib/maple_tree.c
6101
unsigned long max, gfp_t gfp)
lib/maple_tree.c
6114
ret = mas_empty_area_rev(&mas, min, max, size);
lib/maple_tree.c
6310
new_mas->max = ULONG_MAX;
lib/maple_tree.c
6324
if (mas->max == ULONG_MAX)
lib/maple_tree.c
6482
void *mt_find(struct maple_tree *mt, unsigned long *index, unsigned long max)
lib/maple_tree.c
6492
if ((*index) > max)
lib/maple_tree.c
650
return mas->max;
lib/maple_tree.c
6507
while (mas_is_active(&mas) && (mas.last < max)) {
lib/maple_tree.c
6508
entry = mas_next_slot(&mas, max, false);
lib/maple_tree.c
6543
unsigned long max)
lib/maple_tree.c
6548
return mt_find(mt, index, max);
lib/maple_tree.c
6637
static void mas_dfs_postorder(struct ma_state *mas, unsigned long max)
lib/maple_tree.c
6643
mas_next_node(mas, mas_mn(mas), max);
lib/maple_tree.c
6655
p_max = mas->max;
lib/maple_tree.c
6660
mas->max = p_max;
lib/maple_tree.c
6666
unsigned long min, unsigned long max, unsigned int depth,
lib/maple_tree.c
6668
static void mt_dump_range(unsigned long min, unsigned long max,
lib/maple_tree.c
6675
if (min == max)
lib/maple_tree.c
6678
pr_info("%.*s%lx-%lx: ", depth * 2, spaces, min, max);
lib/maple_tree.c
6681
if (min == max)
lib/maple_tree.c
6684
pr_info("%.*s%lu-%lu: ", depth * 2, spaces, min, max);
lib/maple_tree.c
6688
static void mt_dump_entry(void *entry, unsigned long min, unsigned long max,
lib/maple_tree.c
6691
mt_dump_range(min, max, depth, format);
lib/maple_tree.c
6705
unsigned long min, unsigned long max, unsigned int depth,
lib/maple_tree.c
6725
unsigned long last = max;
lib/maple_tree.c
6729
else if (!node->slot[i] && max != mt_node_max(entry))
lib/maple_tree.c
6740
if (last == max)
lib/maple_tree.c
6742
if (last > max) {
lib/maple_tree.c
6746
node, last, max, i);
lib/maple_tree.c
6750
node, last, max, i);
lib/maple_tree.c
6758
unsigned long min, unsigned long max, unsigned int depth,
lib/maple_tree.c
6787
unsigned long last = max;
lib/maple_tree.c
6799
if (last == max)
lib/maple_tree.c
6801
if (last > max) {
lib/maple_tree.c
6805
node, last, max, i);
lib/maple_tree.c
6809
node, last, max, i);
lib/maple_tree.c
6817
unsigned long min, unsigned long max, unsigned int depth,
lib/maple_tree.c
6824
mt_dump_range(min, max, depth, format);
lib/maple_tree.c
6832
if (min + i > max)
lib/maple_tree.c
6840
mt_dump_range64(mt, entry, min, max, depth, format);
lib/maple_tree.c
6843
mt_dump_arange64(mt, entry, min, max, depth, format);
lib/maple_tree.c
6920
if (p_end >= mas->max)
lib/maple_tree.c
6953
MT_BUG_ON(mas->tree, max_gap > mas->max);
lib/maple_tree.c
7030
if (i < mt_pivots[type] && pivots[i] == mas->max)
lib/maple_tree.c
7070
if (piv > mas->max) {
lib/maple_tree.c
7072
piv, mas->max);
lib/maple_tree.c
7073
MAS_WARN_ON(mas, piv > mas->max);
lib/maple_tree.c
7076
if (piv == mas->max)
lib/maple_tree.c
7251
mas->min, mas->max, mas->sheaf, mas->node_request, mas->depth,
lib/maple_tree.c
966
mas->max = mas_safe_pivot(mas, pivots, mas->offset, type);
lib/maple_tree.c
987
unsigned long min, max;
lib/math/reciprocal_div.c
29
R.sh2 = max(l - 1, 0);
lib/math/tests/prime_numbers_kunit.c
21
const unsigned long max = 65536;
lib/math/tests/prime_numbers_kunit.c
24
for (last = 0, x = 2; x < max; x++) {
lib/nlattr.c
123
(pt->min < 0 || pt->max < 0));
lib/nlattr.c
129
range->max = U8_MAX;
lib/nlattr.c
134
range->max = U16_MAX;
lib/nlattr.c
138
range->max = U32_MAX;
lib/nlattr.c
143
range->max = U64_MAX;
lib/nlattr.c
154
range->max = pt->max;
lib/nlattr.c
163
range->max = pt->max;
lib/nlattr.c
213
pt->type == NLA_BINARY && value > range.max) {
lib/nlattr.c
226
if (value < range.min || value > range.max) {
lib/nlattr.c
248
range->max = S8_MAX;
lib/nlattr.c
252
range->max = S16_MAX;
lib/nlattr.c
256
range->max = S32_MAX;
lib/nlattr.c
261
range->max = S64_MAX;
lib/nlattr.c
271
range->max = pt->max;
lib/nlattr.c
280
range->max = pt->max;
lib/nlattr.c
316
if (value < range.min || value > range.max) {
lib/objagg.c
228
unsigned int min, max;
lib/objagg.c
239
max = hnode->root_id;
lib/objagg.c
245
max = ~0;
lib/objagg.c
248
root_id = ida_alloc_range(&objagg->root_ida, min, max, GFP_KERNEL);
lib/percpu_counter.c
262
percpu_counter_batch = max(32, nr*2);
lib/radix-tree.c
1478
unsigned long max)
lib/radix-tree.c
1488
start = max(start, maxindex + 1);
lib/radix-tree.c
1489
if (start > max)
lib/radix-tree.c
1523
if (start > max || start == 0)
lib/radix-tree.c
1539
iter->next_index = 1 + min(max, (start | node_maxindex(node)));
lib/radix-tree.c
606
unsigned long max = index;
lib/radix-tree.c
612
if (max > maxindex) {
lib/radix-tree.c
613
int error = radix_tree_extend(root, gfp, max, shift);
lib/rbtree_test.c
226
u32 subtree, max = node->val;
lib/rbtree_test.c
230
if (max < subtree)
lib/rbtree_test.c
231
max = subtree;
lib/rbtree_test.c
236
if (max < subtree)
lib/rbtree_test.c
237
max = subtree;
lib/rbtree_test.c
239
WARN_ON_ONCE(node->augmented != max);
lib/rhashtable.c
972
retsize = max(roundup_pow_of_two(params->nelem_hint * 4 / 3),
lib/rhashtable.c
975
retsize = max(HASH_DEFAULT_SIZE,
lib/string.c
116
size_t max = count;
lib/string.c
130
if (limit < max)
lib/string.c
131
max = limit;
lib/string.c
136
max = 0;
lib/string.c
147
max = 0;
lib/string.c
149
while (max >= sizeof(unsigned long)) {
lib/string.c
171
max -= sizeof(unsigned long);
lib/strncpy_from_user.c
138
unsigned long max = max_addr - src_addr;
lib/strncpy_from_user.c
145
if (max > count)
lib/strncpy_from_user.c
146
max = count;
lib/strncpy_from_user.c
148
if (user_read_access_begin(src, max)) {
lib/strncpy_from_user.c
149
retval = do_strncpy_from_user(dst, src, count, max);
lib/strncpy_from_user.c
29
unsigned long count, unsigned long max)
lib/strncpy_from_user.c
37
while (max >= sizeof(unsigned long)) {
lib/strncpy_from_user.c
65
max -= sizeof(unsigned long);
lib/strncpy_from_user.c
69
while (max) {
lib/strncpy_from_user.c
77
max--;
lib/strnlen_user.c
111
unsigned long max = max_addr - src_addr;
lib/strnlen_user.c
118
if (max > count)
lib/strnlen_user.c
119
max = count;
lib/strnlen_user.c
121
if (user_read_access_begin(str, max)) {
lib/strnlen_user.c
122
retval = do_strnlen_user(str, count, max);
lib/strnlen_user.c
23
static __always_inline long do_strnlen_user(const char __user *src, unsigned long count, unsigned long max)
lib/strnlen_user.c
35
max += align;
lib/strnlen_user.c
49
if (unlikely(max <= sizeof(unsigned long)))
lib/strnlen_user.c
51
max -= sizeof(unsigned long);
lib/test_bpf.c
855
count += (max(dbits, sbits) - 1) * block2 * block2 * ARRAY_SIZE(sgn);
lib/test_bpf.c
890
for (bt = 0; bt < max(dbits, sbits) - 1; bt++) /* Magnitude */
lib/test_kmod.c
910
unsigned int max)
lib/test_kmod.c
919
if (val < min || val > max)
lib/test_maple_tree.c
1789
int i, max = 4000;
lib/test_maple_tree.c
1791
for (i = 0; i < max; i++)
lib/test_maple_tree.c
1802
int i, brk = 105, max = 1040, brk_start = 100, count = 20000000;
lib/test_maple_tree.c
1804
for (i = 0; i < max; i += 10)
lib/test_maple_tree.c
1818
int i, overwrite = 76, max = 240, count = 20000000;
lib/test_maple_tree.c
1820
for (i = 0; i < max; i += 10)
lib/test_maple_tree.c
1837
int i, max = 2500, count = 50000000;
lib/test_maple_tree.c
1840
for (i = 0; i < max; i += 10)
lib/test_maple_tree.c
1854
int i, max = 2500, count = 550000000;
lib/test_maple_tree.c
1857
for (i = 0; i < max; i += 10)
lib/test_maple_tree.c
1871
int i, max = 2500, count = 550000000;
lib/test_maple_tree.c
1873
for (i = 0; i < max; i += 10)
lib/test_maple_tree.c
1885
unsigned long max = 2500, index = 0;
lib/test_maple_tree.c
1888
for (i = 0; i < max; i += 5)
lib/test_maple_tree.c
1894
mt_for_each(mt, entry, index, max) {
lib/test_maple_tree.c
1909
unsigned long max = 2500;
lib/test_maple_tree.c
1913
for (i = 0; i < max; i += 5) {
lib/test_maple_tree.c
1925
mas_for_each(&mas, entry, max) {
lib/test_maple_tree.c
1939
unsigned long max = 2500;
lib/test_maple_tree.c
1943
for (i = 0; i < max; i += 5) {
lib/test_maple_tree.c
228
unsigned long max, bool verbose)
lib/test_maple_tree.c
230
unsigned long i = max, j;
lib/test_maple_tree.c
237
for (j = i; j <= max; j++)
lib/test_maple_tree.c
247
check_load(mt, max + 1, NULL);
lib/test_maple_tree.c
254
__func__, max, mt_get_alloc_size()/1024, mt_nr_allocated(),
lib/test_maple_tree.c
260
static noinline void __init check_seq(struct maple_tree *mt, unsigned long max,
lib/test_maple_tree.c
268
for (i = 0; i <= max; i++) {
lib/test_maple_tree.c
283
max, mt_get_alloc_size()/1024, mt_nr_allocated(),
lib/test_maple_tree.c
2855
const unsigned long max = 0x25D78000;
lib/test_maple_tree.c
2867
MT_BUG_ON(mt, mas_empty_area(&mas, 0, max, size) != 0);
lib/test_maple_tree.c
2878
MT_BUG_ON(mt, mas_empty_area(&mas, 0, max, size) != -EBUSY);
lib/test_maple_tree.c
391
unsigned long max;
lib/test_maple_tree.c
475
max = 300; /* A value big enough to include XA_ZERO_ENTRY at 64. */
lib/test_maple_tree.c
476
mt_for_each(mt, entry, index, max) {
lib/test_maple_tree.c
487
max = 0;
lib/test_maple_tree.c
507
max++;
lib/test_maple_tree.c
508
MT_BUG_ON(mt, max > 25);
lib/test_objpool.c
287
int max = num_possible_cpus() << 3;
lib/test_objpool.c
297
if (objpool_init(&sop->pool, max, test->objsz,
lib/test_objpool.c
302
WARN_ON(max != sop->pool.nr_objs);
lib/test_objpool.c
453
int max = num_possible_cpus() << 3;
lib/test_objpool.c
463
if (objpool_init(&sop->pool, max, test->objsz, gfp, sop,
lib/test_objpool.c
468
WARN_ON(max != sop->pool.nr_objs);
lib/test_xarray.c
1149
unsigned int max = (2 << i) - 1;
lib/test_xarray.c
1158
xa_store_index(xa, max, GFP_KERNEL);
lib/test_xarray.c
354
unsigned long max = (1UL << order) - 1;
lib/test_xarray.c
356
XA_BUG_ON(xa, xa_load(xa, max) != xa_mk_value(0));
lib/test_xarray.c
357
XA_BUG_ON(xa, xa_load(xa, max + 1) != NULL);
lib/test_xarray.c
366
XA_BUG_ON(xa, xa_load(xa, max + 1) != NULL);
lib/test_xarray.c
589
unsigned long max = min + (1UL << order);
lib/test_xarray.c
593
XA_BUG_ON(xa, xa_load(xa, max - 1) != xa_mk_index(index));
lib/test_xarray.c
594
XA_BUG_ON(xa, xa_load(xa, max) != NULL);
lib/test_xarray.c
601
XA_BUG_ON(xa, xa_load(xa, max - 1) != xa_mk_index(min));
lib/test_xarray.c
602
XA_BUG_ON(xa, xa_load(xa, max) != NULL);
lib/tests/memcpy_kunit.c
482
int s_start = max(d_off - bytes, 0);
lib/xarray.c
1393
void *xas_find(struct xa_state *xas, unsigned long max)
lib/xarray.c
1399
if (xas->xa_index > max)
lib/xarray.c
1416
while (xas->xa_node && (xas->xa_index <= max)) {
lib/xarray.c
1462
void *xas_find_marked(struct xa_state *xas, unsigned long max, xa_mark_t mark)
lib/xarray.c
1470
if (xas->xa_index > max)
lib/xarray.c
1471
goto max;
lib/xarray.c
1492
while (xas->xa_index <= max) {
lib/xarray.c
1515
if ((xas->xa_index - 1) >= max)
lib/xarray.c
1516
goto max;
lib/xarray.c
1534
if (xas->xa_index > max)
lib/xarray.c
1535
goto max;
lib/xarray.c
1537
max:
lib/xarray.c
2000
xas_find_marked(&xas, limit.max, XA_FREE_MARK);
lib/xarray.c
2043
limit.min = max(min, *next);
lib/xarray.c
2190
unsigned long max, xa_mark_t filter)
lib/xarray.c
2198
entry = xas_find_marked(&xas, max, filter);
lib/xarray.c
2200
entry = xas_find(&xas, max);
lib/xarray.c
2240
unsigned long max, xa_mark_t filter)
lib/xarray.c
2251
entry = xas_find_marked(&xas, max, filter);
lib/xarray.c
2253
entry = xas_find(&xas, max);
lib/xarray.c
2271
unsigned long max, unsigned int n)
lib/xarray.c
2277
xas_for_each(xas, entry, max) {
lib/xarray.c
2290
unsigned long max, unsigned int n, xa_mark_t mark)
lib/xarray.c
2296
xas_for_each_marked(xas, entry, max, mark) {
lib/xarray.c
2337
unsigned long max, unsigned int n, xa_mark_t filter)
lib/xarray.c
2345
return xas_extract_marked(&xas, dst, max, n, filter);
lib/xarray.c
2346
return xas_extract_present(&xas, dst, max, n);
lib/xarray.c
418
unsigned long max = xas->xa_index;
lib/xarray.c
423
max |= mask;
lib/xarray.c
424
if (mask == max)
lib/xarray.c
425
max++;
lib/xarray.c
429
return max;
lib/xarray.c
572
unsigned long max = xas_max(xas);
lib/xarray.c
575
if (max == 0)
lib/xarray.c
577
while ((max >> shift) >= XA_CHUNK_SIZE)
lib/xarray.c
586
while (max > max_index(head)) {
lib/xarray.c
787
unsigned int offset, max;
lib/xarray.c
810
max = xas->xa_offset + xas->xa_sibs;
lib/xarray.c
835
if (offset == max)
lib/xarray.c
845
if (!entry && (offset > max))
lib/zlib_deflate/deftree.c
543
s->depth[node] = (uch) (max(s->depth[n], s->depth[m]) + 1);
lib/zlib_inflate/inftrees.c
100
for (max = MAXBITS; max >= 1; max--)
lib/zlib_inflate/inftrees.c
101
if (count[max] != 0) break;
lib/zlib_inflate/inftrees.c
102
if (root > max) root = max;
lib/zlib_inflate/inftrees.c
103
if (max == 0) { /* no symbols to code at all */
lib/zlib_inflate/inftrees.c
123
if (left > 0 && (type == CODES || max != 1))
lib/zlib_inflate/inftrees.c
241
if (len == max) break;
lib/zlib_inflate/inftrees.c
257
while (curr + drop < max) {
lib/zlib_inflate/inftrees.c
28
unsigned min, max; /* minimum and maximum code lengths */
lib/zstd/common/entropy_common.c
133
int const max = (2*threshold-1) - remaining;
lib/zstd/common/entropy_common.c
136
if ((bitStream & (threshold-1)) < (U32)max) {
lib/zstd/common/entropy_common.c
141
if (count >= threshold) count -= max;
lib/zstd/common/zstd_internal.h
50
#define BOUNDED(min,val,max) (MAX(min,MIN(val,max)))
lib/zstd/compress/fse_compress.c
293
int const max = (2*threshold-1) - remaining;
lib/zstd/compress/fse_compress.c
297
count += max; /* [0..max[ [max..threshold[ (...) [threshold+max 2*threshold[ */
lib/zstd/compress/fse_compress.c
300
bitCount -= (count<max);
lib/zstd/compress/hist.c
134
if (Counting1[s] > max) max = Counting1[s];
lib/zstd/compress/hist.c
143
return (size_t)max;
lib/zstd/compress/hist.c
86
unsigned max=0;
lib/zstd/compress/zstd_compress.c
2701
{ unsigned max = MaxLL;
lib/zstd/compress/zstd_compress.c
2702
size_t const mostFrequent = HIST_countFast_wksp(countWorkspace, &max, llCodeTable, nbSeq, entropyWorkspace, entropyWkspSize); /* can't fail */
lib/zstd/compress/zstd_compress.c
2706
countWorkspace, max, mostFrequent, nbSeq,
lib/zstd/compress/zstd_compress.c
2715
countWorkspace, max, llCodeTable, nbSeq,
lib/zstd/compress/zstd_compress.c
2731
{ unsigned max = MaxOff;
lib/zstd/compress/zstd_compress.c
2733
countWorkspace, &max, ofCodeTable, nbSeq, entropyWorkspace, entropyWkspSize); /* can't fail */
lib/zstd/compress/zstd_compress.c
2735
ZSTD_DefaultPolicy_e const defaultPolicy = (max <= DefaultMaxOff) ? ZSTD_defaultAllowed : ZSTD_defaultDisallowed;
lib/zstd/compress/zstd_compress.c
2739
countWorkspace, max, mostFrequent, nbSeq,
lib/zstd/compress/zstd_compress.c
2747
countWorkspace, max, ofCodeTable, nbSeq,
lib/zstd/compress/zstd_compress.c
2763
{ unsigned max = MaxML;
lib/zstd/compress/zstd_compress.c
2765
countWorkspace, &max, mlCodeTable, nbSeq, entropyWorkspace, entropyWkspSize); /* can't fail */
lib/zstd/compress/zstd_compress.c
2769
countWorkspace, max, mostFrequent, nbSeq,
lib/zstd/compress/zstd_compress.c
2777
countWorkspace, max, mlCodeTable, nbSeq,
lib/zstd/compress/zstd_compress.c
3783
unsigned max = maxCode;
lib/zstd/compress/zstd_compress.c
3785
HIST_countFast_wksp(countWksp, &max, codeTable, nbSeq, workspace, wkspSize); /* can't fail */
lib/zstd/compress/zstd_compress.c
3788
assert(max <= defaultMax);
lib/zstd/compress/zstd_compress.c
3790
cSymbolTypeSizeEstimateInBits = ZSTD_crossEntropyCost(defaultNorm, defaultNormLog, countWksp, max);
lib/zstd/compress/zstd_compress.c
3794
cSymbolTypeSizeEstimateInBits = ZSTD_fseBitCost(fseCTable, countWksp, max);
lib/zstd/compress/zstd_compress_internal.h
1444
MEM_STATIC void ZSTD_debugTable(const U32* table, U32 max)
lib/zstd/compress/zstd_compress_internal.h
1447
for (u=0, sum=0; u<=max; u++) sum += table[u];
lib/zstd/compress/zstd_compress_internal.h
1449
for (u=0; u<=max; u++) {
lib/zstd/compress/zstd_compress_sequences.c
108
unsigned const max)
lib/zstd/compress/zstd_compress_sequences.c
115
if (ZSTD_getFSEMaxSymbolValue(ctable) < max) {
lib/zstd/compress/zstd_compress_sequences.c
117
ZSTD_getFSEMaxSymbolValue(ctable), max);
lib/zstd/compress/zstd_compress_sequences.c
120
for (s = 0; s <= max; ++s) {
lib/zstd/compress/zstd_compress_sequences.c
141
unsigned const* count, unsigned const max)
lib/zstd/compress/zstd_compress_sequences.c
147
for (s = 0; s <= max; ++s) {
lib/zstd/compress/zstd_compress_sequences.c
159
FSE_repeat* repeatMode, unsigned const* count, unsigned const max,
lib/zstd/compress/zstd_compress_sequences.c
207
size_t const basicCost = isDefaultAllowed ? ZSTD_crossEntropyCost(defaultNorm, defaultNormLog, count, max) : ERROR(GENERIC);
lib/zstd/compress/zstd_compress_sequences.c
208
size_t const repeatCost = *repeatMode != FSE_repeat_none ? ZSTD_fseBitCost(prevCTable, count, max) : ERROR(GENERIC);
lib/zstd/compress/zstd_compress_sequences.c
209
size_t const NCountCost = ZSTD_NCountCost(count, max, nbSeq, FSELog);
lib/zstd/compress/zstd_compress_sequences.c
210
size_t const compressedCost = (NCountCost << 3) + ZSTD_entropyCost(count, max, nbSeq);
lib/zstd/compress/zstd_compress_sequences.c
246
unsigned* count, U32 max,
lib/zstd/compress/zstd_compress_sequences.c
258
FORWARD_IF_ERROR(FSE_buildCTable_rle(nextCTable, (BYTE)max), "");
lib/zstd/compress/zstd_compress_sequences.c
271
const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max);
lib/zstd/compress/zstd_compress_sequences.c
279
FORWARD_IF_ERROR(FSE_normalizeCount(wksp->norm, tableLog, count, nbSeq_1, max, ZSTD_useLowProbCount(nbSeq_1)), "FSE_normalizeCount failed");
lib/zstd/compress/zstd_compress_sequences.c
281
{ size_t const NCountSize = FSE_writeNCount(op, (size_t)(oend - op), wksp->norm, max, tableLog); /* overflow protected */
lib/zstd/compress/zstd_compress_sequences.c
283
FORWARD_IF_ERROR(FSE_buildCTable_wksp(nextCTable, wksp->norm, max, tableLog, wksp->wksp, sizeof(wksp->wksp)), "FSE_buildCTable_wksp failed");
lib/zstd/compress/zstd_compress_sequences.c
71
static size_t ZSTD_NCountCost(unsigned const* count, unsigned const max,
lib/zstd/compress/zstd_compress_sequences.c
76
const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max);
lib/zstd/compress/zstd_compress_sequences.c
77
FORWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq, max, ZSTD_useLowProbCount(nbSeq)), "");
lib/zstd/compress/zstd_compress_sequences.c
78
return FSE_writeNCount(wksp, sizeof(wksp), norm, max, tableLog);
lib/zstd/compress/zstd_compress_sequences.c
85
static size_t ZSTD_entropyCost(unsigned const* count, unsigned const max, size_t const total)
lib/zstd/compress/zstd_compress_sequences.c
91
for (s = 0; s <= max; ++s) {
lib/zstd/compress/zstd_compress_sequences.h
26
FSE_repeat* repeatMode, unsigned const* count, unsigned const max,
lib/zstd/compress/zstd_compress_sequences.h
36
unsigned* count, U32 max,
lib/zstd/compress/zstd_compress_sequences.h
52
unsigned const max);
lib/zstd/compress/zstd_compress_sequences.h
55
unsigned const* count, unsigned const max);
lib/zstd/compress/zstd_compress_superblock.c
343
unsigned max = maxCode;
lib/zstd/compress/zstd_compress_superblock.c
345
HIST_countFast_wksp(countWksp, &max, codeTable, nbSeq, workspace, wkspSize); /* can't fail */
lib/zstd/compress/zstd_compress_superblock.c
348
assert(max <= defaultMax);
lib/zstd/compress/zstd_compress_superblock.c
349
cSymbolTypeSizeEstimateInBits = max <= defaultMax
lib/zstd/compress/zstd_compress_superblock.c
350
? ZSTD_crossEntropyCost(defaultNorm, defaultNormLog, countWksp, max)
lib/zstd/compress/zstd_compress_superblock.c
355
cSymbolTypeSizeEstimateInBits = ZSTD_fseBitCost(fseCTable, countWksp, max);
lib/zstd/decompress/zstd_decompress.c
1731
size_t const max = (size_t)1 << bounds.upperBound;
lib/zstd/decompress/zstd_decompress.c
1734
RETURN_ERROR_IF(maxWindowSize > max, parameter_outOfBound, "");
lib/zstd/decompress/zstd_decompress_block.c
2024
U32 const max = 1 << tableLog;
lib/zstd/decompress/zstd_decompress_block.c
2028
assert(max <= (1 << OffFSELog)); /* max not too large */
lib/zstd/decompress/zstd_decompress_block.c
2029
for (u=0; u<max; u++) {
lib/zstd/decompress/zstd_decompress_block.c
649
SymbolEncodingType_e type, unsigned max, U32 maxLog,
lib/zstd/decompress/zstd_decompress_block.c
660
RETURN_ERROR_IF((*(const BYTE*)src) > max, corruption_detected, "");
lib/zstd/decompress/zstd_decompress_block.c
683
size_t const headerSize = FSE_readNCount(norm, &max, &tableLog, src, srcSize);
lib/zstd/decompress/zstd_decompress_block.c
686
ZSTD_buildFSETable(DTableSpace, norm, max, baseValue, nbAdditionalBits, tableLog, wksp, wkspSize, bmi2);
mm/cma_debug.c
60
maxchunk = max(end - start, maxchunk);
mm/compaction.c
1472
start_pfn = max(pageblock_start_pfn(pfn), cc->zone->zone_start_pfn);
mm/compaction.c
1506
unsigned int limit = max(1U, freelist_scan_limit(cc) >> 1);
mm/compaction.c
1568
highest = max(pageblock_start_pfn(pfn),
mm/compaction.c
1628
limit = max(1U, limit >> 1);
mm/compaction.c
1735
block_start_pfn = max(next_pfn, low_pfn);
mm/compaction.c
2637
last_migrated_pfn = max(cc->zone->zone_start_pfn,
mm/compaction.c
2845
rc = max(status, rc);
mm/compaction.c
308
block_pfn = max(block_pfn, zone->zone_start_pfn);
mm/damon/core.c
1667
new_attrs.sample_interval = max(goal->min_sample_us,
mm/damon/core.c
2077
return max(last_input - compensation, min_input);
mm/damon/core.c
2220
highest_score = max(highest_score,
mm/damon/core.c
2245
max(quota->esz_bp, 10000UL),
mm/damon/core.c
2478
threshold = max(1, threshold * 2);
mm/damon/lru_sort.c
301
param_ctx->min_region_sz = max(DAMON_MIN_REGION_SZ / addr_unit, 1);
mm/damon/ops-common.c
288
folio_sz <= filter->sz_range.max;
mm/damon/paddr.c
116
max_nr_accesses = max(r->nr_accesses, max_nr_accesses);
mm/damon/reclaim.c
211
param_ctx->min_region_sz = max(DAMON_MIN_REGION_SZ / addr_unit, 1);
mm/damon/sysfs-common.c
20
unsigned long max)
mm/damon/sysfs-common.c
28
range->max = max;
mm/damon/sysfs-common.c
64
return sysfs_emit(buf, "%lu\n", range->max);
mm/damon/sysfs-common.c
72
unsigned long max;
mm/damon/sysfs-common.c
75
err = kstrtoul(buf, 0, &max);
mm/damon/sysfs-common.c
79
range->max = max;
mm/damon/sysfs-common.c
92
__ATTR_RW_MODE(max, 0600);
mm/damon/sysfs-common.h
16
unsigned long max;
mm/damon/sysfs-common.h
21
unsigned long max);
mm/damon/sysfs-schemes.c
2563
sysfs_filter->sz_range.max) {
mm/damon/sysfs-schemes.c
2708
.max_sz_region = access_pattern->sz->max,
mm/damon/sysfs-schemes.c
2710
.max_nr_accesses = access_pattern->nr_accesses->max,
mm/damon/sysfs-schemes.c
2712
.max_age_region = access_pattern->age->max,
mm/damon/sysfs-schemes.c
621
return sysfs_emit(buf, "%lu\n", filter->sz_range.max);
mm/damon/sysfs-schemes.c
629
int err = kstrtoul(buf, 0, &filter->sz_range.max);
mm/damon/sysfs-schemes.c
684
__ATTR_RW_MODE(max, 0600);
mm/damon/sysfs.c
1358
.max_nr_regions = sys_nr_regions->max,
mm/damon/sysfs.c
1471
ctx->min_region_sz = max(
mm/damon/tests/core-kunit.h
838
KUNIT_EXPECT_EQ(test, dst->sz_range.max, src->sz_range.max);
mm/damon/tests/core-kunit.h
877
.sz_range = {.min = 234, .max = 345},
mm/damon/tests/sysfs-kunit.h
26
static int __damon_sysfs_test_get_any_pid(int min, int max)
mm/damon/tests/sysfs-kunit.h
31
for (i = min; i <= max; i++) {
mm/damon/vaddr.c
579
max_nr_accesses = max(r->nr_accesses, max_nr_accesses);
mm/filemap.c
1984
unsigned int order = max(min_order, FGF_GET_ORDER(fgp_flags));
mm/filemap.c
2060
static inline struct folio *find_get_entry(struct xa_state *xas, pgoff_t max,
mm/filemap.c
2067
folio = xas_find(xas, max);
mm/filemap.c
2069
folio = xas_find_marked(xas, max, mark);
mm/filemap.c
2456
pgoff_t index, pgoff_t max, struct folio_batch *fbatch)
mm/filemap.c
2465
if (xas.xa_index > max || xa_is_value(folio))
mm/filemap.c
3208
pgoff_t max = (end - 1) >> PAGE_SHIFT;
mm/filemap.c
3216
while ((folio = find_get_entry(&xas, max, XA_PRESENT))) {
mm/filemap.c
3388
ra->start = max(ra->start, start);
mm/filemap.c
4348
iov_iter_revert(i, copied - max(status, 0L));
mm/filemap.c
484
pgoff_t max = end_byte >> PAGE_SHIFT;
mm/filemap.c
491
folio = xas_find(&xas, max);
mm/filemap.c
641
pgoff_t max = end_byte >> PAGE_SHIFT;
mm/filemap.c
648
xas_for_each(&xas, folio, max) {
mm/filemap.c
892
unsigned int split_order = max(forder,
mm/filemap.c
905
max(xas_try_split_min_order(
mm/huge_memory.c
4644
target_order = max(new_order,
mm/huge_memory.c
4722
target_order = max(new_order, min_order);
mm/hugetlb.c
3568
hugepage_allocation_threads = max(hugepage_allocation_threads, 1);
mm/hugetlb.c
3936
min_count = max(count, min_count);
mm/hugetlb.c
999
seg_from = max(rg->from, f);
mm/hugetlb_cgroup.c
525
return (u64)counter->max * PAGE_SIZE;
mm/hugetlb_cgroup.c
527
return (u64)rsvd_counter->max * PAGE_SIZE;
mm/hugetlb_cgroup.c
568
val = (u64)counter->max;
mm/hugetlb_cgroup.c
585
const char *max)
mm/hugetlb_cgroup.c
596
ret = page_counter_memparse(buf, max, &nr_pages);
mm/hugetlb_cgroup.c
677
long max;
mm/hugetlb_cgroup.c
684
max = atomic_long_read(&h_cg->events_local[idx][HUGETLB_MAX]);
mm/hugetlb_cgroup.c
686
max = atomic_long_read(&h_cg->events[idx][HUGETLB_MAX]);
mm/hugetlb_cgroup.c
688
seq_printf(seq, "max %lu\n", max);
mm/kasan/quarantine.c
273
WRITE_ONCE(quarantine_batch_size, max((size_t)QUARANTINE_PERCPU_SIZE,
mm/kmemleak.c
729
max_percpu_addr = max(max_percpu_addr, untagged_ptr + size);
mm/kmemleak.c
732
max_addr = max(max_addr, untagged_ptr + size);
mm/kmsan/init.c
57
start_end_pairs[i].end = max(nend, cend);
mm/ksm.c
451
pages = max(pages, per_page_cost * KSM_ADVISOR_MIN_CPU);
mm/madvise.c
814
range.start = max(vma->vm_start, start_addr);
mm/mapping_dirty_helpers.c
106
wpwalk->tlbflush_end = max(wpwalk->tlbflush_end,
mm/mapping_dirty_helpers.c
111
cwalk->end = max(cwalk->end, pgoff + 1);
mm/mapping_dirty_helpers.c
47
wpwalk->tlbflush_end = max(wpwalk->tlbflush_end,
mm/memblock.c
1266
max(m_start, r_start);
mm/memblock.c
131
.memory.max = INIT_MEMBLOCK_MEMORY_REGIONS,
mm/memblock.c
135
.reserved.max = INIT_MEMBLOCK_RESERVED_REGIONS,
mm/memblock.c
1366
*out_start = max(m_start, r_start);
mm/memblock.c
145
.max = INIT_PHYSMEM_REGIONS,
mm/memblock.c
2255
max_reserved = memblock.reserved.max;
mm/memblock.c
2271
if (max_reserved != memblock.reserved.max)
mm/memblock.c
320
end = max(start, end);
mm/memblock.c
392
memblock.reserved.max);
mm/memblock.c
402
memblock.memory.max);
mm/memblock.c
445
old_size = type->max * sizeof(struct memblock_region);
mm/memblock.c
488
type->name, type->max, type->max * 2);
mm/memblock.c
494
type->name, type->max * 2, &addr, &new_end);
mm/memblock.c
502
memset(new_array + type->max, 0, old_size);
mm/memblock.c
505
type->max <<= 1;
mm/memblock.c
583
BUG_ON(type->cnt >= type->max);
mm/memblock.c
641
if (type->cnt * 2 + 1 <= type->max)
mm/memblock.c
704
while (type->cnt + nr_new > type->max)
mm/memblock.c
825
while (type->cnt + 2 > type->max)
mm/memcontrol-v1.c
1462
unsigned long max, bool memsw)
mm/memcontrol-v1.c
1481
limits_invariant = memsw ? max >= READ_ONCE(memcg->memory.max) :
mm/memcontrol-v1.c
1482
max <= memcg->memsw.max;
mm/memcontrol-v1.c
1488
if (max > counter->max)
mm/memcontrol-v1.c
1490
ret = page_counter_set_max(counter, max);
mm/memcontrol-v1.c
1603
return (u64)counter->max * PAGE_SIZE;
mm/memcontrol-v1.c
1625
static int memcg_update_tcp_max(struct mem_cgroup *memcg, unsigned long max)
mm/memcontrol-v1.c
1631
ret = page_counter_set_max(&memcg->tcpmem, max);
mm/memcontrol-v1.c
1919
memory = min(memory, READ_ONCE(mi->memory.max));
mm/memcontrol-v1.c
1920
memsw = min(memsw, READ_ONCE(mi->memsw.max));
mm/memcontrol.c
1332
limit = READ_ONCE(memcg->memory.max);
mm/memcontrol.c
1338
limit = READ_ONCE(memcg->memsw.max);
mm/memcontrol.c
1595
K((u64)READ_ONCE(memcg->memory.max)), memory_failcnt);
mm/memcontrol.c
1599
K((u64)READ_ONCE(memcg->swap.max)),
mm/memcontrol.c
1605
K((u64)memcg->memsw.max), memcg->memsw.failcnt);
mm/memcontrol.c
1608
K((u64)memcg->kmem.max), memcg->kmem.failcnt);
mm/memcontrol.c
1625
unsigned long max = READ_ONCE(memcg->memory.max);
mm/memcontrol.c
1630
unsigned long swap = READ_ONCE(memcg->memsw.max) - max;
mm/memcontrol.c
1632
max += min(swap, (unsigned long)total_swap_pages);
mm/memcontrol.c
1636
max += min(READ_ONCE(memcg->swap.max),
mm/memcontrol.c
1639
return max;
mm/memcontrol.c
2187
high = max(high, 1UL);
mm/memcontrol.c
2201
max_overage = max(overage, max_overage);
mm/memcontrol.c
2217
max_overage = max(overage, max_overage);
mm/memcontrol.c
2358
unsigned int batch = max(MEMCG_CHARGE_BATCH, nr_pages);
mm/memcontrol.c
3430
unsigned long ceiling = min(READ_ONCE(memcg->memory.max),
mm/memcontrol.c
4264
peak = max(fd_peak, READ_ONCE(pc->local_watermark));
mm/memcontrol.c
4439
READ_ONCE(mem_cgroup_from_seq(m)->memory.max));
mm/memcontrol.c
4448
unsigned long max;
mm/memcontrol.c
4452
err = page_counter_memparse(buf, "max", &max);
mm/memcontrol.c
4456
xchg(&memcg->memory.max, max);
mm/memcontrol.c
4464
if (nr_pages <= max)
mm/memcontrol.c
4477
if (!try_to_free_mem_cgroup_pages(memcg, nr_pages - max,
mm/memcontrol.c
5282
READ_ONCE(memcg->swap.max) -
mm/memcontrol.c
5306
usage * 2 >= READ_ONCE(memcg->swap.max))
mm/memcontrol.c
5376
READ_ONCE(mem_cgroup_from_seq(m)->swap.max));
mm/memcontrol.c
5383
unsigned long max;
mm/memcontrol.c
5387
err = page_counter_memparse(buf, "max", &max);
mm/memcontrol.c
5391
xchg(&memcg->swap.max, max);
mm/memcontrol.c
5469
unsigned long max = READ_ONCE(memcg->zswap_max);
mm/memcontrol.c
5472
if (max == PAGE_COUNTER_MAX)
mm/memcontrol.c
5474
if (max == 0) {
mm/memcontrol.c
5482
if (pages < max)
mm/memcontrol.c
5574
unsigned long max;
mm/memcontrol.c
5578
err = page_counter_memparse(buf, "max", &max);
mm/memcontrol.c
5582
xchg(&memcg->zswap_max, max);
mm/memcontrol.c
689
return max(val * unit / PAGE_SIZE, 1UL);
mm/memory-failure.c
1692
size = max(size, 1UL << tk->size_shift);
mm/memory.c
2101
unsigned long start = max(vma->vm_start, start_addr);
mm/memory.c
4262
zba = max(first_index, vba);
mm/memory.c
4903
if (unlikely(folio_start < max(address & PMD_MASK, vma->vm_start)))
mm/memory.c
5696
val = max(val, PAGE_SIZE);
mm/memory.c
5743
from_pte = max(ALIGN_DOWN(pte_off, nr_pages),
mm/memory_hotplug.c
711
zone->spanned_pages = max(start_pfn + nr_pages, old_end_pfn) - zone->zone_start_pfn;
mm/memory_hotplug.c
722
pgdat->node_spanned_pages = max(start_pfn + nr_pages, old_end_pfn) - pgdat->node_start_pfn;
mm/mempool.c
247
pool->elements = kmalloc_array_node(max(1, min_nr), sizeof(void *),
mm/mempool.c
256
while (pool->curr_nr < max(1, pool->min_nr)) {
mm/mm_init.c
1288
*zone_start_pfn = max(*zone_start_pfn, node_start_pfn);
mm/mm_init.c
1707
*end_pfn = max(*end_pfn, this_end_pfn);
mm/mm_init.c
1842
end_pfn = max(max_zone_pfn[zone], start_pfn);
mm/mm_init.c
2074
spfn = max(spfn, start_pfn);
mm/mm_init.c
2108
return max(cpumask_weight(node_cpumask), 1U);
mm/mm_init.c
2389
unsigned long long max = high_limit;
mm/mm_init.c
2427
if (max == 0) {
mm/mm_init.c
2428
max = ((unsigned long long)nr_all_pages << PAGE_SHIFT) >> 4;
mm/mm_init.c
2429
do_div(max, bucketsize);
mm/mm_init.c
2431
max = min(max, 0x80000000ULL);
mm/mm_init.c
2435
if (numentries > max)
mm/mm_init.c
2436
numentries = max;
mm/mm_init.c
462
required_kernelcore = max(required_kernelcore, corepages);
mm/mm_init.c
500
start_pfn = max(start_pfn, zone_movable_pfn[nid]);
mm/mmu_gather.c
197
if (batch->nr >= batch->max - 1) {
mm/mmu_gather.c
202
VM_BUG_ON_PAGE(batch->nr > batch->max - 1, page);
mm/mmu_gather.c
418
tlb->local.max = ARRAY_SIZE(tlb->__pages);
mm/mmu_gather.c
44
batch->max = MAX_GATHER_BATCH;
mm/mremap.c
1846
unsigned long addr = max(vma->vm_start, start);
mm/numa_emulation.c
264
min_size = ALIGN(max(min_size, FAKE_NODE_MIN_SIZE), FAKE_NODE_MIN_SIZE);
mm/numa_memblks.c
255
bi->start = max(bi->start, low);
mm/numa_memblks.c
302
end = max(bi->end, bj->end);
mm/numa_memblks.c
538
blk[count - 1]->end = max(blk[count - 1]->end, end);
mm/page-writeback.c
1266
avg = max(avg, 1LU);
mm/page-writeback.c
1295
thresh = max(thresh, dtc->dirty);
mm/page-writeback.c
1475
WRITE_ONCE(wb->dirty_ratelimit, max(dirty_ratelimit, 1UL));
mm/page-writeback.c
1499
elapsed = max(now - wb->bw_time_stamp, 1UL);
mm/page-writeback.c
1598
t = max(1, HZ / 100);
mm/page-writeback.c
162
unsigned long long max = wb->bdi->max_ratio;
mm/page-writeback.c
173
if (max < 100 * BDI_RATIO_SCALE) {
mm/page-writeback.c
174
max *= this_bw;
mm/page-writeback.c
175
max = div64_ul(max, tot_bw);
mm/page-writeback.c
180
*maxp = max;
mm/page-writeback.c
49
#define MAX_PAUSE max(HZ/5, 1)
mm/page-writeback.c
60
#define BANDWIDTH_INTERVAL max(HZ/5, 1)
mm/page-writeback.c
822
return max(thresh, dom->dirty_limit);
mm/page-writeback.c
925
wb_thresh = max(wb_thresh, (thresh - dtc->dirty) / 100);
mm/page-writeback.c
927
wb_thresh = max(wb_thresh, (thresh - dtc->dirty) / 8);
mm/page_alloc.c
2222
max_boost = max(pageblock_nr_pages, max_boost);
mm/page_alloc.c
2817
pcp->high = max(high - (batch << CONFIG_PCP_BATCH_SCALE_MAX),
mm/page_alloc.c
2829
pcp->high = max(high - free_count, high_min);
mm/page_alloc.c
2839
pcp->high = max(high - free_count, high_min);
mm/page_alloc.c
2840
high = max(pcp->count, high_min);
mm/page_alloc.c
3311
max_nr_alloc = max(high - pcp->count - base_batch, base_batch);
mm/page_alloc.c
3329
batch = max(batch >> order, 2);
mm/page_alloc.c
3526
size = max(pageblock_nr_pages, 1UL << order);
mm/page_alloc.c
4480
reclaim_order = max(order, pageblock_order);
mm/page_alloc.c
6011
high = max(high, batch << 2);
mm/page_alloc.c
6350
long max = 0;
mm/page_alloc.c
6365
max = zone->lowmem_reserve[j];
mm/page_alloc.c
6369
max += high_wmark_pages(zone);
mm/page_alloc.c
6371
max = min_t(unsigned long, max, managed_pages);
mm/page_alloc.c
6373
pgdat->totalreserve_pages += max;
mm/page_alloc.c
6375
reserve_pages += max;
mm/page_counter.c
143
if (new > c->max) {
mm/page_counter.c
219
old = xchg(&counter->max, nr_pages);
mm/page_counter.c
224
counter->max = old;
mm/page_counter.c
272
int page_counter_memparse(const char *buf, const char *max,
mm/page_counter.c
278
if (!strcmp(buf, max)) {
mm/page_io.c
105
page_no < sis->max) {
mm/page_io.c
164
sis->max = page_no;
mm/page_isolation.c
195
check_unmovable_start = max(page_to_pfn(page), start_pfn);
mm/page_isolation.c
348
start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES),
mm/pagewalk.c
820
cba = max(cba, vba);
mm/percpu-internal.h
209
max(pcpu_stats.nr_max_alloc, pcpu_stats.nr_cur_alloc);
mm/percpu-internal.h
213
max(pcpu_stats.max_alloc_size, size);
mm/percpu-internal.h
216
chunk->max_alloc_size = max(chunk->max_alloc_size, size);
mm/percpu-internal.h
246
max(pcpu_stats.nr_max_chunks, pcpu_stats.nr_chunks);
mm/percpu-stats.c
112
max_frag = max(max_frag, -1 * (*p));
mm/percpu-stats.c
40
max_nr_alloc = max(max_nr_alloc, chunk->nr_alloc);
mm/percpu.c
2164
freed_page_end = max(freed_page_end, end + 1);
mm/percpu.c
232
return max(highbit - PCPU_SLOT_BASE_SHIFT + 2, 1);
mm/percpu.c
2480
apl = rounddown_pow_of_two(max(60 / width, 1));
mm/process_vm_access.c
178
nr_pages = max(nr_pages, nr_pages_iov);
mm/readahead.c
376
static unsigned long get_init_ra_size(unsigned long size, unsigned long max)
mm/readahead.c
380
if (newsize <= max / 32)
mm/readahead.c
382
else if (newsize <= max / 4)
mm/readahead.c
385
newsize = max;
mm/readahead.c
395
unsigned long max)
mm/readahead.c
399
if (cur < max / 16)
mm/readahead.c
401
if (cur <= max / 2)
mm/readahead.c
403
return max;
mm/readahead.c
491
new_order = max(new_order, min_order);
mm/readahead.c
670
ra->size = max(ra->size, get_next_ra_size(ra, max_pages));
mm/shmem.c
1003
unsigned long max = end - 1;
mm/shmem.c
1006
xas_for_each(&xas, folio, max) {
mm/shmem.c
1011
if (xas.xa_index == max)
mm/shmem.c
5014
sbinfo = kzalloc(max((int)sizeof(struct shmem_sb_info),
mm/shmem.c
615
i_size = max(write_end, i_size_read(inode));
mm/slab_common.c
144
align = max(align, ralign);
mm/slab_common.c
147
align = max(align, arch_slab_minalign());
mm/slab_common.c
284
s->object_size = max(s->object_size, size);
mm/slab_common.c
285
s->inuse = max(s->inuse, ALIGN(size, sizeof(void *)));
mm/slab_common.c
709
align = max(align, 1U << (ffs(size) - 1));
mm/slab_common.c
941
return max(minalign, arch_slab_minalign());
mm/slub.c
2801
unsigned int max);
mm/slub.c
7014
unsigned int max, struct kmem_cache_node *n,
mm/slub.c
7025
pc.max_objects = max;
mm/slub.c
7036
while (object && refilled < max) {
mm/slub.c
7062
if (refilled >= max)
mm/slub.c
7094
unsigned int max)
mm/slub.c
7121
r = __refill_objects_node(s, p, gfp, min, max, n,
mm/slub.c
7136
max -= r;
mm/slub.c
7145
unsigned int max)
mm/slub.c
7153
unsigned int max)
mm/slub.c
7162
refilled = __refill_objects_node(s, p, gfp, min, max,
mm/slub.c
7169
max - refilled);
mm/slub.c
7185
refilled += alloc_from_new_slab(s, slab, p + refilled, max - refilled,
mm/slub.c
7390
max_objects = max(order_objects(slub_max_order, size), 1U);
mm/slub.c
7654
return max(capacity, args->sheaf_capacity);
mm/slub.c
8645
unsigned long max;
mm/slub.c
8655
if (t->max)
mm/slub.c
8657
get_order(sizeof(struct location) * t->max));
mm/slub.c
8660
static int alloc_loc_track(struct loc_track *t, unsigned long max, gfp_t flags)
mm/slub.c
8665
order = get_order(sizeof(struct location) * max);
mm/slub.c
8675
t->max = max;
mm/slub.c
8748
if (t->count >= t->max && !alloc_loc_track(t, 2 * t->max, GFP_ATOMIC))
mm/swap.h
87
VM_WARN_ON_ONCE(offset >= si->max);
mm/swap_state.c
742
if (end_offset >= si->max)
mm/swap_state.c
743
end_offset = si->max - 1;
mm/swapfile.c
1000
end = min(si->max, offset + SWAPFILE_CLUSTER);
mm/swapfile.c
1674
if (offset >= si->max)
mm/swapfile.c
1911
if (WARN_ON_ONCE(end_offset > si->max))
mm/swapfile.c
2381
for (i = prev + 1; i < si->max; i++) {
mm/swapfile.c
2393
if (i == si->max)
mm/swapfile.c
2626
ret = add_swap_extent(sis, 0, sis->max, 0);
mm/swapfile.c
2715
unsigned long end = ALIGN(si->max, SWAPFILE_CLUSTER);
mm/swapfile.c
2867
maxpages = p->max;
mm/swapfile.c
2869
p->max = 0;
mm/swapfile.c
3416
si->max = maxpages;
mm/swapfile.c
3423
if (si->pages != si->max - 1) {
mm/swapfile.c
3424
pr_err("swap:%u != (max:%u - 1)\n", si->pages, si->max);
mm/swapfile.c
3429
maxpages = si->max;
mm/swapfile.c
3894
for (offset = 0; offset < si->max; offset += PAGE_SIZE) {
mm/swapfile.c
920
unsigned long end = min(start + SWAPFILE_CLUSTER, si->max);
mm/truncate.c
27
unsigned long start, unsigned long max)
mm/truncate.c
42
xas_for_each(&xas, folio, max) {
mm/userfaultfd.c
983
_start = max(dst_vma->vm_start, start);
mm/util.c
118
char *kstrndup(const char *s, size_t max, gfp_t gfp)
mm/util.c
120
return s ? __kmemdup_nul(s, strnlen(s, max), gfp) : NULL;
mm/vma.h
545
struct vm_area_struct *vma_iter_next_range_limit(struct vma_iterator *vmi, unsigned long max)
mm/vma.h
547
return mas_next_range(&vmi->mas, max);
mm/vma.h
551
unsigned long max, unsigned long size)
mm/vma.h
553
return mas_empty_area(&vmi->mas, min, max - 1, size);
mm/vma.h
557
unsigned long max, unsigned long size)
mm/vma.h
559
return mas_empty_area_rev(&vmi->mas, min, max - 1, size);
mm/vmalloc.c
2374
end = max(end, list_last_entry(&vn->purge_list,
mm/vmalloc.c
2938
vb->dirty_max = max(vb->dirty_max, offset + (1UL << order));
mm/vmalloc.c
2982
end = max(e, end);
mm/vmalloc.c
3377
end = max(addr + page_size, end);
mm/vmalloc.c
4020
align = max(original_align, 1UL << shift);
mm/vmscan.c
2506
usage = max(usage, protection);
mm/vmscan.c
2515
scan = max(scan, SWAP_CLUSTER_MAX);
mm/vmscan.c
3388
*vm_start = max(start, args->vma->vm_start);
mm/vmscan.c
3770
walk->next_addr = max(end, args->vma->vm_start);
mm/vmscan.c
4122
total += max(READ_ONCE(lrugen->nr_pages[gen][type][zone]), 0L);
mm/vmscan.c
4237
start = max(addr & PMD_MASK, vma->vm_start);
mm/vmscan.c
4590
if (!--remaining || max(isolated, skipped_zone) >= MIN_LRU_BATCH)
mm/vmscan.c
4797
size += max(READ_ONCE(lrugen->nr_pages[gen][type][zone]), 0L);
mm/vmscan.c
4846
if (sc->nr_reclaimed >= max(sc->nr_to_reclaim, compact_gap(sc->order)))
mm/vmscan.c
5451
size += max(READ_ONCE(lrugen->nr_pages[gen][type][zone]), 0L);
mm/vmscan.c
6660
.nr_to_reclaim = max(nr_pages, SWAP_CLUSTER_MAX),
mm/vmscan.c
6887
sc->nr_to_reclaim += max(high_wmark_pages(zone), SWAP_CLUSTER_MAX);
mm/vmscan.c
6907
return max(sc->nr_scanned, sc->nr_reclaimed - nr_reclaimed) >= sc->nr_to_reclaim;
mm/vmscan.c
7671
.nr_to_reclaim = max(nr_pages, SWAP_CLUSTER_MAX),
mm/vmscan.c
7819
.nr_to_reclaim = max(batch_size, SWAP_CLUSTER_MAX),
mm/vmstat.c
215
threshold = max(1, (int)(watermark_distance / num_online_cpus()));
mm/vmstat.c
304
= max(threshold, pgdat_threshold);
mm/workingset.c
252
token = (min_seq << LRU_REFS_WIDTH) | max(refs - 1, 0);
net/ax25/ax25_timer.c
116
return max(0L, delta);
net/batman-adv/bat_v_ogm.c
163
unsigned int max = min_t(unsigned int, hard_iface->net_dev->mtu,
net/batman-adv/bat_v_ogm.c
169
return hard_iface->bat_v.aggr_len + ogm_len <= max;
net/batman-adv/distributed-arp-table.c
511
batadv_dat_addr_t max,
net/batman-adv/distributed-arp-table.c
536
if (tmp_max < max)
net/batman-adv/distributed-arp-table.c
541
if (tmp_max == max && max_orig_node &&
net/batman-adv/distributed-arp-table.c
563
batadv_dat_addr_t max = 0;
net/batman-adv/distributed-arp-table.c
588
tmp_max, max,
net/batman-adv/distributed-arp-table.c
596
max = tmp_max;
net/batman-adv/distributed-arp-table.c
608
max);
net/batman-adv/distributed-arp-table.c
610
*last_max = max;
net/bluetooth/hci_conn.c
483
u8 hci_le_conn_update(struct hci_conn *conn, u16 min, u16 max, u16 latency,
net/bluetooth/hci_conn.c
495
params->conn_max_interval = max;
net/bluetooth/hci_conn.c
505
cp.conn_interval_max = cpu_to_le16(max);
net/bluetooth/hci_core.c
1923
int min, max, handle;
net/bluetooth/hci_core.c
1932
max = HCI_MIN_ADV_MONITOR_HANDLE + HCI_MAX_ADV_MONITOR_NUM_HANDLES;
net/bluetooth/hci_core.c
1933
handle = idr_alloc(&hdev->adv_monitors_idr, monitor, min, max,
net/bluetooth/hci_event.c
6777
u16 handle, min, max, latency, timeout;
net/bluetooth/hci_event.c
6783
max = le16_to_cpu(ev->interval_max);
net/bluetooth/hci_event.c
6796
if (max > hcon->le_conn_max_interval) {
net/bluetooth/hci_event.c
6802
if (hci_check_conn_params(min, max, latency, timeout)) {
net/bluetooth/hci_event.c
6816
params->conn_max_interval = max;
net/bluetooth/hci_event.c
6825
store_hint, min, max, latency, timeout);
net/bluetooth/l2cap_core.c
1618
req.max = cpu_to_le16(hcon->le_conn_max_interval);
net/bluetooth/l2cap_core.c
4680
u16 min, max, latency, to_multiplier;
net/bluetooth/l2cap_core.c
4691
max = __le16_to_cpu(req->max);
net/bluetooth/l2cap_core.c
4696
min, max, latency, to_multiplier);
net/bluetooth/l2cap_core.c
4700
err = hci_check_conn_params(min, max, latency, to_multiplier);
net/bluetooth/l2cap_core.c
4712
store_hint = hci_le_conn_update(hcon, min, max, latency,
net/bluetooth/l2cap_core.c
4715
store_hint, min, max, latency,
net/bluetooth/l2cap_core.c
929
u8 max;
net/bluetooth/l2cap_core.c
934
max = 255;
net/bluetooth/l2cap_core.c
941
max = 128;
net/bluetooth/l2cap_core.c
945
max, GFP_ATOMIC);
net/bluetooth/l2cap_core.c
948
ident = ida_alloc_range(&conn->tx_ida, 1, max, GFP_ATOMIC);
net/bluetooth/mgmt.c
7987
u16 min, max, latency, timeout;
net/bluetooth/mgmt.c
8004
max = le16_to_cpu(param->max_interval);
net/bluetooth/mgmt.c
8009
min, max, latency, timeout);
net/bluetooth/mgmt.c
8011
if (hci_check_conn_params(min, max, latency, timeout) < 0) {
net/bluetooth/mgmt.c
8037
hci_param->conn_max_interval = max;
net/bluetooth/mgmt.c
8053
conn->le_conn_max_interval != max ||
net/bluetooth/rfcomm/tty.c
359
return max(0, pending) * dlc->mtu;
net/bpf/test_run.c
1043
linear_sz = max(ETH_HLEN, ctx->data_end);
net/bridge/br_cfm.c
372
u32 mdlevel, interval, size, index, max;
net/bridge/br_cfm.c
477
max = 0;
net/bridge/br_cfm.c
481
max += 1;
net/bridge/br_cfm.c
482
} while (size != 0 && max < 4); /* Max four TLVs possible */
net/bridge/br_mdb.c
112
max(ip4_timer, ip6_timer)) ||
net/bridge/br_multicast.c
3609
max_delay = max(msecs_to_jiffies(mldv2_mrc(mld2q)), 1UL);
net/bridge/br_multicast.c
698
u32 max = READ_ONCE(pmctx->mdb_max_entries);
net/bridge/br_multicast.c
704
if (!br_multicast_port_ctx_vlan_disabled(pmctx) && max && n >= max) {
net/bridge/br_multicast.c
706
what, n, max);
net/bridge/br_multicast.c
779
void br_multicast_ngroups_set_max(struct net_bridge_mcast_port *pmctx, u32 max)
net/bridge/br_multicast.c
781
WRITE_ONCE(pmctx->mdb_max_entries, max);
net/bridge/br_private.h
1030
void br_multicast_ngroups_set_max(struct net_bridge_mcast_port *pmctx, u32 max);
net/caif/cfpkt_skbuff.c
302
neededtailspace = max(expectlen, addlen);
net/can/af_can.c
482
rcv_lists_stats->rcv_entries_max = max(rcv_lists_stats->rcv_entries_max,
net/ceph/mon_client.c
214
int max = monc->monmap->num_mon;
net/ceph/mon_client.c
222
max--;
net/ceph/mon_client.c
225
n = get_random_u32_below(max);
net/ceph/osdmap.c
1188
static int osdmap_set_max_osd(struct ceph_osdmap *map, u32 max)
net/ceph/osdmap.c
1196
dout("%s old %u new %u\n", __func__, map->max_osd, max);
net/ceph/osdmap.c
1197
if (max == map->max_osd)
net/ceph/osdmap.c
1200
state = kvmalloc(array_size(max, sizeof(*state)), GFP_NOFS);
net/ceph/osdmap.c
1201
weight = kvmalloc(array_size(max, sizeof(*weight)), GFP_NOFS);
net/ceph/osdmap.c
1202
addr = kvmalloc(array_size(max, sizeof(*addr)), GFP_NOFS);
net/ceph/osdmap.c
1210
to_copy = min(map->max_osd, max);
net/ceph/osdmap.c
1223
for (i = map->max_osd; i < max; i++) {
net/ceph/osdmap.c
1232
affinity = kvmalloc(array_size(max, sizeof(*affinity)),
net/ceph/osdmap.c
1242
for (i = map->max_osd; i < max; i++)
net/ceph/osdmap.c
1247
map->max_osd = max;
net/ceph/osdmap.c
1661
u32 max;
net/ceph/osdmap.c
1694
ceph_decode_32_safe(p, end, max, e_inval);
net/ceph/osdmap.c
1697
err = osdmap_set_max_osd(map, max);
net/ceph/osdmap.c
1969
__s32 new_flags, max;
net/ceph/osdmap.c
2017
ceph_decode_32_safe(p, end, max, e_inval);
net/ceph/osdmap.c
2018
if (max >= 0) {
net/ceph/osdmap.c
2019
err = osdmap_set_max_osd(map, max);
net/core/dev.c
12045
maxqs = max(txqs, rxqs);
net/core/dev.c
12848
max_header_len = max(max_header_len, lower_dev->hard_header_len);
net/core/dev.c
12849
max_headroom = max(max_headroom, lower_dev->needed_headroom);
net/core/dev.c
12850
max_tailroom = max(max_tailroom, lower_dev->needed_tailroom);
net/core/dev.c
7386
maxqs = max(dev->num_tx_queues, dev->num_rx_queues);
net/core/dev.h
238
unsigned int count = max(netdev->num_rx_queues,
net/core/dev.h
284
unsigned int count = max(netdev->num_rx_queues,
net/core/filter.c
171
err = pkt_len ? pskb_trim(skb, max(cap, pkt_len)) : -EPERM;
net/core/neighbour.c
1157
next = now + max(NEIGH_VAR(neigh->parms, RETRANS_TIME),
net/core/neighbour.c
1162
next = now + max(NEIGH_VAR(neigh->parms, RETRANS_TIME), HZ/100);
net/core/neighbour.c
1234
next = now + max(NEIGH_VAR(neigh->parms,
net/core/neighbour.c
1562
jiffies + max(NEIGH_VAR(neigh->parms, RETRANS_TIME),
net/core/net_namespace.c
1395
WRITE_ONCE(max_gen_ptrs, max(max_gen_ptrs, *ops->id + 1));
net/core/net_namespace.c
272
int min = 0, max = 0;
net/core/net_namespace.c
276
max = reqid + 1;
net/core/net_namespace.c
279
return idr_alloc(&net->netns_ids, peer, min, max, GFP_ATOMIC);
net/core/netdev-genl-gen.c
18
.max = U32_MAX,
net/core/netdev-genl-gen.c
23
.max = S32_MAX,
net/core/netdev-genl-gen.c
27
.max = S32_MAX,
net/core/page_pool.c
697
inflight = max(0, inflight);
net/core/pktgen.c
1004
max = count;
net/core/pktgen.c
1005
len = count_trail_chars(user_buffer, max);
net/core/pktgen.c
1013
max = min(sizeof(name) - 1, count - i);
net/core/pktgen.c
1014
len = strn_len(&user_buffer[i], max);
net/core/pktgen.c
1023
max = count - i;
net/core/pktgen.c
1024
len = count_trail_chars(&user_buffer[i], max);
net/core/pktgen.c
1042
max = min(10, count - i);
net/core/pktgen.c
1043
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1059
max = min(10, count - i);
net/core/pktgen.c
1060
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1078
max = min(10, count - i);
net/core/pktgen.c
1079
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1098
max = count - i;
net/core/pktgen.c
1099
len = get_imix_entries(&user_buffer[i], max, pkt_dev);
net/core/pktgen.c
1109
max = min(10, count - i);
net/core/pktgen.c
1110
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1120
max = min(10, count - i);
net/core/pktgen.c
1121
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1130
max = min(10, count - i);
net/core/pktgen.c
1131
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1145
max = min(10, count - i);
net/core/pktgen.c
1146
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1160
max = min(10, count - i);
net/core/pktgen.c
1161
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1175
max = min(10, count - i);
net/core/pktgen.c
1176
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1188
max = min(10, count - i);
net/core/pktgen.c
1189
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1201
max = min(10, count - i);
net/core/pktgen.c
1202
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1214
max = min(10, count - i);
net/core/pktgen.c
1215
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1227
max = min(10, count - i);
net/core/pktgen.c
1228
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1248
max = min(10, count - i);
net/core/pktgen.c
1249
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1259
max = min(10, count - i);
net/core/pktgen.c
1260
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1273
max = min(10, count - i);
net/core/pktgen.c
1274
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1287
max = min(10, count - i);
net/core/pktgen.c
1288
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1306
max = min(10, count - i);
net/core/pktgen.c
1307
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1326
max = min(sizeof(f) - 1, count - i);
net/core/pktgen.c
1327
len = strn_len(&user_buffer[i], max);
net/core/pktgen.c
1366
max = min(sizeof(f) - 1, count - i);
net/core/pktgen.c
1367
len = strn_len(&user_buffer[i], max);
net/core/pktgen.c
1415
max = min(sizeof(pkt_dev->dst_min) - 1, count - i);
net/core/pktgen.c
1416
len = strn_len(&user_buffer[i], max);
net/core/pktgen.c
1435
max = min(sizeof(pkt_dev->dst_max) - 1, count - i);
net/core/pktgen.c
1436
len = strn_len(&user_buffer[i], max);
net/core/pktgen.c
1455
max = min(sizeof(buf) - 1, count - i);
net/core/pktgen.c
1456
len = strn_len(&user_buffer[i], max);
net/core/pktgen.c
1478
max = min(sizeof(buf) - 1, count - i);
net/core/pktgen.c
1479
len = strn_len(&user_buffer[i], max);
net/core/pktgen.c
1500
max = min(sizeof(buf) - 1, count - i);
net/core/pktgen.c
1501
len = strn_len(&user_buffer[i], max);
net/core/pktgen.c
1521
max = min(sizeof(buf) - 1, count - i);
net/core/pktgen.c
1522
len = strn_len(&user_buffer[i], max);
net/core/pktgen.c
1544
max = min(sizeof(pkt_dev->src_min) - 1, count - i);
net/core/pktgen.c
1545
len = strn_len(&user_buffer[i], max);
net/core/pktgen.c
1564
max = min(sizeof(pkt_dev->src_max) - 1, count - i);
net/core/pktgen.c
1565
len = strn_len(&user_buffer[i], max);
net/core/pktgen.c
1584
max = min(sizeof(valstr) - 1, count - i);
net/core/pktgen.c
1585
len = strn_len(&user_buffer[i], max);
net/core/pktgen.c
1602
max = min(sizeof(valstr) - 1, count - i);
net/core/pktgen.c
1603
len = strn_len(&user_buffer[i], max);
net/core/pktgen.c
1627
max = min(10, count - i);
net/core/pktgen.c
1628
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1641
max = min(10, count - i);
net/core/pktgen.c
1642
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1652
max = min(10, count - i);
net/core/pktgen.c
1653
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1663
max = min(5, count - i);
net/core/pktgen.c
1664
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1674
max = min(5, count - i);
net/core/pktgen.c
1675
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1687
max = count - i;
net/core/pktgen.c
1688
len = get_labels(&user_buffer[i], max, pkt_dev);
net/core/pktgen.c
1709
max = min(4, count - i);
net/core/pktgen.c
1710
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1736
max = min(1, count - i);
net/core/pktgen.c
1737
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1751
max = min(1, count - i);
net/core/pktgen.c
1752
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1766
max = min(4, count - i);
net/core/pktgen.c
1767
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1793
max = min(1, count - i);
net/core/pktgen.c
1794
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1808
max = min(1, count - i);
net/core/pktgen.c
1809
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1825
max = min(2, count - i);
net/core/pktgen.c
1826
len = hex32_arg(&user_buffer[i], max, &tmp_value);
net/core/pktgen.c
1842
max = min(2, count - i);
net/core/pktgen.c
1843
len = hex32_arg(&user_buffer[i], max, &tmp_value);
net/core/pktgen.c
1857
max = min(9, count - i);
net/core/pktgen.c
1858
len = num_arg(&user_buffer[i], max, &value);
net/core/pktgen.c
1921
size_t i, max;
net/core/pktgen.c
1931
max = count;
net/core/pktgen.c
1932
len = count_trail_chars(user_buffer, max);
net/core/pktgen.c
1939
max = min(sizeof(name) - 1, count - i);
net/core/pktgen.c
1940
len = strn_len(&user_buffer[i], max);
net/core/pktgen.c
1949
max = count - i;
net/core/pktgen.c
1950
len = count_trail_chars(&user_buffer[i], max);
net/core/pktgen.c
1971
max = min(sizeof(f) - 1, count - i);
net/core/pktgen.c
1972
len = strn_len(&user_buffer[i], max);
net/core/pktgen.c
523
size_t max;
net/core/pktgen.c
532
max = min(count, sizeof(data) - 1);
net/core/pktgen.c
533
if (copy_from_user(data, buf, max))
net/core/pktgen.c
536
if (data[max - 1] == '\n')
net/core/pktgen.c
537
data[max - 1] = 0; /* strip trailing '\n', terminate string */
net/core/pktgen.c
539
data[max] = 0; /* terminate string */
net/core/pktgen.c
854
size_t i = 0, max;
net/core/pktgen.c
870
max = min(10, maxlen - i);
net/core/pktgen.c
871
len = num_arg(&buffer[i], max, &size);
net/core/pktgen.c
889
max = min(10, maxlen - i);
net/core/pktgen.c
890
len = num_arg(&buffer[i], max, &weight);
net/core/pktgen.c
916
size_t i = 0, max;
net/core/pktgen.c
930
max = min(8, maxlen - i);
net/core/pktgen.c
931
len = hex32_arg(&buffer[i], max, &tmp);
net/core/pktgen.c
990
size_t i, max;
net/core/rtnetlink.c
4377
min_ifinfo_dump_size = max(min_ifinfo_dump_size,
net/core/scm.c
103
if (fpl->count + num > fpl->max)
net/core/scm.c
416
new_fpl->max = new_fpl->count;
net/core/scm.c
92
fpl->max = SCM_MAX_FD;
net/core/skbuff.c
105
#define SKB_SMALL_HEAD_SIZE SKB_HEAD_ALIGN(max(MAX_TCP_HEADER, \
net/core/skbuff.c
5817
unsigned int max)
net/core/skbuff.c
5825
if (max > skb->len)
net/core/skbuff.c
5826
max = skb->len;
net/core/skbuff.c
5828
if (__pskb_pull_tail(skb, max - skb_headlen(skb)) == NULL)
net/core/sock.c
1385
__sock_set_rcvbuf(sk, max(val, 0));
net/core/sysctl_net_core.c
351
int max = *(int *)table->extra2;
net/core/sysctl_net_core.c
370
if (write && ret && min == max)
net/devlink/sb.c
482
u32 max;
net/devlink/sb.c
485
pool_index, &cur, &max);
net/devlink/sb.c
491
if (nla_put_u32(msg, DEVLINK_ATTR_SB_OCC_MAX, max))
net/devlink/sb.c
692
u32 max;
net/devlink/sb.c
697
&cur, &max);
net/devlink/sb.c
703
if (nla_put_u32(msg, DEVLINK_ATTR_SB_OCC_MAX, max))
net/dsa/dsa.c
144
unsigned int dsa_bridge_num_get(const struct net_device *bridge_dev, int max)
net/dsa/dsa.c
151
if (!max)
net/dsa/dsa.c
161
if (bridge_num > max)
net/dsa/dsa.h
34
unsigned int dsa_bridge_num_get(const struct net_device *bridge_dev, int max);
net/ethtool/channels.c
122
max(channels.rx_count, channels.tx_count);
net/ethtool/common.c
672
max_ring = max(max_ring, tbl[i]);
net/ethtool/common.c
676
static int ethtool_get_max_rxnfc_channel(struct net_device *dev, u64 *max)
net/ethtool/common.c
727
*max = max_ring;
net/ethtool/common.c
744
max_ring = max(max_ring, ethtool_get_rss_ctx_max_channel(ctx));
net/ethtool/common.c
786
current_max = max(current_max, rxfh.indir[dev_size]);
net/ethtool/common.c
885
key_max = max(key_size, ops->rxfh_key_space);
net/ethtool/common.c
886
indir_max = max(indir_size, ops->rxfh_indir_space);
net/ethtool/ioctl.c
2207
struct ethtool_ringparam ringparam, max;
net/ethtool/ioctl.c
2216
ethtool_ringparam_get_cfg(dev, &max, &kernel_ringparam, NULL);
net/ethtool/ioctl.c
2219
if (ringparam.rx_pending > max.rx_max_pending ||
net/ethtool/ioctl.c
2220
ringparam.rx_mini_pending > max.rx_mini_max_pending ||
net/ethtool/ioctl.c
2221
ringparam.rx_jumbo_pending > max.rx_jumbo_max_pending ||
net/ethtool/ioctl.c
2222
ringparam.tx_pending > max.tx_max_pending)
net/ethtool/ioctl.c
2288
to_channel = curr.combined_count + max(curr.rx_count, curr.tx_count);
net/ethtool/pse-pd.c
139
pw_limit_ranges->max)) {
net/ieee802154/pan.c
105
wpan_dev->max_associations = max;
net/ieee802154/pan.c
98
unsigned int max)
net/ipv4/fib_trie.c
2531
unsigned int i, max, pointers, bytes, avdepth;
net/ipv4/fib_trie.c
2551
max = MAX_STAT_DEPTH;
net/ipv4/fib_trie.c
2552
while (max > 0 && stat->nodesizes[max-1] == 0)
net/ipv4/fib_trie.c
2553
max--;
net/ipv4/fib_trie.c
2556
for (i = 1; i < max; i++)
net/ipv4/inet_connection_sock.c
1084
if ((qlen << 1) > max(8U, READ_ONCE(sk_listener->sk_max_ack_backlog))) {
net/ipv4/inet_hashtables.c
1309
nblocks = max(2U * L1_CACHE_BYTES / locksz, 1U) * num_possible_cpus();
net/ipv4/inet_hashtables.c
1312
nblocks = max(nblocks, num_online_nodes() * PAGE_SIZE / locksz);
net/ipv4/ip_fragment.c
223
unsigned int max = qp->q.fqdir->max_dist;
net/ipv4/ip_fragment.c
228
if (!peer || !max)
net/ipv4/ip_fragment.c
235
rc = qp->q.fragments_tail && (end - start) > max;
net/ipv4/ip_fragment.c
432
IPCB(skb)->frag_max_size = max(qp->max_df_size, qp->q.max_size);
net/ipv4/ip_tunnel.c
1224
unsigned int max = IP_MAX_MTU - (nt->hlen + sizeof(struct iphdr));
net/ipv4/ip_tunnel.c
1227
max -= dev->hard_header_len;
net/ipv4/ip_tunnel.c
1229
mtu = clamp(dev->mtu, (unsigned int)ETH_MIN_MTU, max);
net/ipv4/ipconfig.c
897
static int __init ic_bootp_string(char *dest, char *src, int len, int max)
net/ipv4/ipconfig.c
901
if (len > max-1)
net/ipv4/ipconfig.c
902
len = max-1;
net/ipv4/netfilter/ipt_ah.c
20
spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert)
net/ipv4/netfilter/ipt_ah.c
24
invert ? '!' : ' ', min, spi, max);
net/ipv4/netfilter/ipt_ah.c
25
r = (spi >= min && spi <= max) ^ invert;
net/ipv4/nexthop.c
3691
size_t max = ARRAY_SIZE(rtm_nh_res_bucket_policy_dump) - 1;
net/ipv4/nexthop.c
3693
err = nla_parse_nested(res_tb, max,
net/ipv4/proc.c
495
buff = kzalloc(max(tcp_cnt * sizeof(long), ip_cnt * sizeof(u64)),
net/ipv4/route.c
687
fnhe->fnhe_expires = max(1UL, expires);
net/ipv4/route.c
716
fnhe->fnhe_expires = max(1UL, expires);
net/ipv4/tcp.c
2468
u8 max; /* max <= MAX_SKB_FRAGS */
net/ipv4/tcp.c
2483
for (; i < p->max; i++)
net/ipv4/tcp.c
2486
p->max = 0;
net/ipv4/tcp.c
2492
if (!p->max)
net/ipv4/tcp.c
2507
if (p->idx < p->max)
net/ipv4/tcp.c
2523
p->max = k;
net/ipv4/tcp.c
2542
tcp_xa_pool.max = 0;
net/ipv4/tcp.c
2733
peek_offset = max(sk_peek_offset(sk, flags), 0);
net/ipv4/tcp.c
3134
return max(total, 0);
net/ipv4/tcp.c
3855
tp->rcv_ssthresh = max(new_rcv_ssthresh, tp->rcv_ssthresh);
net/ipv4/tcp.c
5165
limit = max(limit, 128UL);
net/ipv4/tcp.c
5349
init_net.ipv4.sysctl_tcp_wmem[2] = max(64*1024, max_wshare);
net/ipv4/tcp.c
5353
init_net.ipv4.sysctl_tcp_rmem[2] = max(131072, max_rshare);
net/ipv4/tcp.c
992
return max(size_goal, mss_now);
net/ipv4/tcp_bbr.c
237
return max(bbr->extra_acked[0], bbr->extra_acked[1]);
net/ipv4/tcp_bbr.c
274
rtt_us = max(tp->srtt_us >> 3, 1U);
net/ipv4/tcp_bbr.c
329
bbr->prior_cwnd = max(bbr->prior_cwnd, tcp_snd_cwnd(tp));
net/ipv4/tcp_bbr.c
445
edt_ns = max(tp->tcp_wstamp_ns, now_ns);
net/ipv4/tcp_bbr.c
503
cwnd = max(cwnd, bbr->prior_cwnd);
net/ipv4/tcp_bbr.c
509
*new_cwnd = max(cwnd, tcp_packets_in_flight(tp) + acked);
net/ipv4/tcp_bbr.c
545
cwnd = max(cwnd, bbr_cwnd_min_target);
net/ipv4/tcp_bbr.c
918
tcp_snd_cwnd_set(tp, max(tcp_snd_cwnd(tp), bbr->prior_cwnd));
net/ipv4/tcp_bic.c
176
return max(tcp_snd_cwnd(tp) >> 1U, 2U);
net/ipv4/tcp_bic.c
178
return max((tcp_snd_cwnd(tp) * beta) / BICTCP_BETA_SCALE, 2U);
net/ipv4/tcp_cdg.c
156
u32 base_owd = max(ca->delay_min / 2U, 125U);
net/ipv4/tcp_cdg.c
175
s32 thresh = max(ca->delay_min + ca->delay_min / 8U,
net/ipv4/tcp_cdg.c
193
s32 gmax = ca->rtt.max - ca->rtt_prev.max;
net/ipv4/tcp_cdg.c
198
ca->gsum.max += gmax - ca->gradients[ca->tail].max;
net/ipv4/tcp_cdg.c
200
ca->gradients[ca->tail].max = gmax;
net/ipv4/tcp_cdg.c
203
gmax = ca->gsum.max;
net/ipv4/tcp_cdg.c
255
ca->shadow_wnd = max(ca->shadow_wnd, tcp_snd_cwnd(tp));
net/ipv4/tcp_cdg.c
296
ca->shadow_wnd = max(ca->shadow_wnd, ca->shadow_wnd + incr);
net/ipv4/tcp_cdg.c
325
ca->rtt.max = max(ca->rtt.max, sample->rtt_us);
net/ipv4/tcp_cdg.c
334
return max(2U, (tcp_snd_cwnd(tp) * min(1024U, backoff_beta)) >> 10);
net/ipv4/tcp_cdg.c
342
return max(2U, tcp_snd_cwnd(tp) >> 1);
net/ipv4/tcp_cdg.c
66
s32 max;
net/ipv4/tcp_cong.c
519
return max(tcp_snd_cwnd(tp) >> 1U, 2U);
net/ipv4/tcp_cong.c
527
return max(tcp_snd_cwnd(tp), tp->prior_cwnd);
net/ipv4/tcp_cubic.c
321
ca->cnt = max(ca->cnt, 2U);
net/ipv4/tcp_cubic.c
355
return max((tcp_snd_cwnd(tp) * beta) / BICTCP_BETA_SCALE, 2U);
net/ipv4/tcp_dctcp.c
124
return max(tcp_snd_cwnd(tp) - ((tcp_snd_cwnd(tp) * ca->dctcp_alpha) >> 11U), 2U);
net/ipv4/tcp_dctcp.c
161
delivered_ce /= max(1U, delivered);
net/ipv4/tcp_dctcp.c
180
tp->snd_ssthresh = max(tcp_snd_cwnd(tp) >> 1U, 2U);
net/ipv4/tcp_dctcp.c
248
return max(tcp_snd_cwnd(tp), ca->loss_cwnd);
net/ipv4/tcp_highspeed.c
157
return max(tcp_snd_cwnd(tp) - ((tcp_snd_cwnd(tp) * hstcp_aimd_vals[ca->ai].md) >> 8), 2U);
net/ipv4/tcp_htcp.c
228
return max((tcp_snd_cwnd(tp) * ca->beta) >> 7, 2U);
net/ipv4/tcp_illinois.c
303
return max(tcp_snd_cwnd(tp) - decr, 2U);
net/ipv4/tcp_input.c
1130
tp->rttvar_us = max(tp->mdev_us, tcp_rto_min_us(sk));
net/ipv4/tcp_input.c
1136
tp->srtt_us = max(1U, srtt);
net/ipv4/tcp_input.c
1160
rate *= max(tcp_snd_cwnd(tp), tp->packets_out);
net/ipv4/tcp_input.c
1767
rs->interval_us = max(snd_us, ack_us);
net/ipv4/tcp_input.c
2422
holes = max(tp->lost_out, 1U);
net/ipv4/tcp_input.c
2615
unsigned long delay = max(usecs_to_jiffies(tp->srtt_us >> 4),
net/ipv4/tcp_input.c
3008
sndcnt = max(sndcnt, (tp->prr_out ? 0 : 1));
net/ipv4/tcp_input.c
760
max(maxwin - (maxwin >> tcp_app_win),
net/ipv4/tcp_input.c
769
max(2 * tp->advmss, maxwin - tp->advmss));
net/ipv4/tcp_input.c
813
hint = max(hint, TCP_MIN_MSS);
net/ipv4/tcp_ipv4.c
2072
shinfo->gso_size = max(gso_size, tail_gso_size);
net/ipv4/tcp_ipv4.c
3503
net->ipv4.sysctl_max_syn_backlog = max(128U, ehash_entries / 128);
net/ipv4/tcp_lp.c
324
tcp_snd_cwnd_set(tp, max(tcp_snd_cwnd(tp) >> 1U, 1U));
net/ipv4/tcp_metrics.c
427
max(tcp_snd_cwnd(tp) >> 1, tp->snd_ssthresh));
net/ipv4/tcp_metrics.c
527
inet_csk(sk)->icsk_rto = crtt + max(2 * crtt, tcp_rto_min(sk));
net/ipv4/tcp_metrics.c
692
val = max(val / 1000, 1U);
net/ipv4/tcp_metrics.c
699
val = max(val / 1000, 1U);
net/ipv4/tcp_nv.c
203
cnt = max(4U, tcp_snd_cwnd(tp) >> ca->cwnd_growth_factor);
net/ipv4/tcp_nv.c
212
return max((tcp_snd_cwnd(tp) * nv_loss_dec_factor) >> 10, 2U);
net/ipv4/tcp_nv.c
333
ca->nv_min_cwnd = max(ca->nv_min_cwnd / 2, NV_MIN_CWND);
net/ipv4/tcp_nv.c
405
dec = max(2U, ((tcp_snd_cwnd(tp) - max_win) *
net/ipv4/tcp_output.c
1530
tp->tcp_wstamp_ns = max(tp->tcp_wstamp_ns, tp->tcp_clock_cache);
net/ipv4/tcp_output.c
1688
memset(skb->cb, 0, max(sizeof(struct inet_skb_parm),
net/ipv4/tcp_output.c
179
tcp_snd_cwnd_set(tp, max(cwnd, restart_cwnd));
net/ipv4/tcp_output.c
1992
mss_now = max(mss_now,
net/ipv4/tcp_output.c
2125
u32 win_used = max(tp->snd_cwnd_used, init_win);
net/ipv4/tcp_output.c
2315
halfcwnd = max(cwnd >> 1, 1U);
net/ipv4/tcp_output.c
4402
u32 delack_from_rto_min = max(tcp_rto_min(sk), 2) - 1;
net/ipv4/tcp_scalable.c
38
return max(tcp_snd_cwnd(tp) - (tcp_snd_cwnd(tp)>>TCP_SCALABLE_MD_SCALE), 2U);
net/ipv4/tcp_sigpool.c
71
size = max(size, __scratch_size);
net/ipv4/tcp_timer.c
180
mss = max(mss, READ_ONCE(net->ipv4.sysctl_tcp_mtu_probe_floor));
net/ipv4/tcp_timer.c
181
mss = max(mss, READ_ONCE(net->ipv4.sysctl_tcp_min_snd_mss));
net/ipv4/tcp_veno.c
202
return max(tcp_snd_cwnd(tp) * 4 / 5, 2U);
net/ipv4/tcp_veno.c
205
return max(tcp_snd_cwnd(tp) >> 1U, 2U);
net/ipv4/tcp_yeah.c
147
tcp_snd_cwnd_set(tp, max(tcp_snd_cwnd(tp),
net/ipv4/tcp_yeah.c
154
yeah->reno_count = max(tcp_snd_cwnd(tp)>>1, 2U);
net/ipv4/tcp_yeah.c
196
reduction = min(reduction, max(tcp_snd_cwnd(tp)>>1, 2U));
net/ipv4/tcp_yeah.c
198
reduction = max(reduction, tcp_snd_cwnd(tp) >> TCP_YEAH_DELTA);
net/ipv4/tcp_yeah.c
200
reduction = max(tcp_snd_cwnd(tp)>>1, 2U);
net/ipv4/tcp_yeah.c
203
yeah->reno_count = max(yeah->reno_count>>1, 2U);
net/ipv4/udp.c
4055
limit = max(limit, 128UL);
net/ipv6/addrconf.c
1356
max(NEIGH_VAR(idev->nd_parms, RETRANS_TIME), HZ/100) / HZ;
net/ipv6/addrconf.c
2747
valid_lft = max(valid_lft, minimum_lft);
net/ipv6/addrconf.c
4279
max(NEIGH_VAR(ifp->idev->nd_parms, RETRANS_TIME),
net/ipv6/ioam6_iptunnel.c
51
.max = IOAM6_IPTUNNEL_FREQ_MAX,
net/ipv6/ip6_tunnel.c
1200
mtu = max(mtu, skb->protocol == htons(ETH_P_IPV6) ?
net/ipv6/mcast.c
1370
*max_delay = max(msecs_to_jiffies(mldv1_md), 1UL);
net/ipv6/mcast.c
1393
*max_delay = max(msecs_to_jiffies(mldv2_mrc(mld)), 1UL);
net/ipv6/netfilter/ip6t_NPT.c
47
pfx_len = max(npt->src_pfx_len, npt->dst_pfx_len);
net/ipv6/netfilter/ip6t_ah.c
25
spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert)
net/ipv6/netfilter/ip6t_ah.c
30
invert ? '!' : ' ', min, spi, max);
net/ipv6/netfilter/ip6t_ah.c
31
r = (spi >= min && spi <= max) ^ invert;
net/ipv6/netfilter/ip6t_frag.c
24
id_match(u_int32_t min, u_int32_t max, u_int32_t id, bool invert)
net/ipv6/netfilter/ip6t_frag.c
28
min, id, max);
net/ipv6/netfilter/ip6t_frag.c
29
r = (id >= min && id <= max) ^ invert;
net/ipv6/netfilter/ip6t_mh.c
26
type_match(u_int8_t min, u_int8_t max, u_int8_t type, bool invert)
net/ipv6/netfilter/ip6t_mh.c
28
return (type >= min && type <= max) ^ invert;
net/ipv6/netfilter/ip6t_rt.c
26
segsleft_match(u_int32_t min, u_int32_t max, u_int32_t id, bool invert)
net/ipv6/netfilter/ip6t_rt.c
28
return (id >= min && id <= max) ^ invert;
net/ipv6/route.c
6364
sz = max(rt6_nlmsg_size(rt), sz << 1);
net/mac80211/chan.c
1148
rx_chains_static = max(rx_chains_static, needed_static);
net/mac80211/chan.c
1149
rx_chains_dynamic = max(rx_chains_dynamic, needed_dynamic);
net/mac80211/chan.c
423
max_bw = max(max_bw, ieee80211_get_sta_bw(sta, link_id));
net/mac80211/chan.c
494
max_bw = max(max_bw, width);
net/mac80211/chan.c
501
max_bw = max(max_bw, ctx->conf.def.width);
net/mac80211/main.c
1113
c->limits[j].max > 1)
net/mac80211/main.c
1339
max(ieee80211_mcs_to_chains(&sband->ht_cap.mcs),
net/mac80211/mesh.c
1003
skb = __dev_alloc_skb(max(head_len, tail_len), GFP_KERNEL);
net/mac80211/mlme.c
4480
u8 unicast_limit = max(1, max_probe_tries - 3);
net/mac80211/mlme.c
5845
chains = max(chains, nss);
net/mac80211/offchannel.c
316
max_dur = max(tmp->duration, max_dur);
net/mac80211/offchannel.c
318
type = max(tmp->type, type);
net/mac80211/rc80211_minstrel_ht.c
1014
u32 slow_rate_dur = max(max(tp_dur, tp2_dur), prob_dur);
net/mac80211/rc80211_minstrel_ht.c
1132
last_prob = max(last_prob, mrs->prob_avg);
net/mac80211/rc80211_minstrel_ht.c
1134
mrs->prob_avg = max(last_prob, mrs->prob_avg);
net/mac80211/rc80211_minstrel_ht_debugfs.c
173
max(0, (int) mi->total_packets - (int) mi->sample_packets),
net/mac80211/rc80211_minstrel_ht_debugfs.c
282
max(0, (int) mi->total_packets -
net/mac80211/scan.c
1049
*next_delay = max(msecs_to_jiffies(scan_req->duration),
net/mac80211/tdls.c
930
max(sizeof(struct ieee80211_mgmt),
net/mac80211/tdls.c
935
2 + max(sizeof(struct ieee80211_ht_cap),
net/mac80211/tdls.c
937
2 + max(sizeof(struct ieee80211_vht_cap),
net/mac80211/util.c
4271
*max_num_different_channels = max(*max_num_different_channels,
net/mac80211/vht.c
633
rx_nss = max(vht_rx_nss, ht_rx_nss);
net/mac80211/vht.c
634
rx_nss = max(he_rx_nss, rx_nss);
net/mac80211/vht.c
635
rx_nss = max(eht_rx_nss, rx_nss);
net/mctp/route.c
1206
if (!mctp_address_unicast(rt->min) || !mctp_address_unicast(rt->max))
net/mctp/route.c
1258
rt->min == daddr_start && rt->max == daddr_end &&
net/mctp/route.c
1280
rt->max = addr;
net/mctp/route.c
1569
rt->max = daddr_start + daddr_extent;
net/mctp/route.c
1655
hdr->rtm_dst_len = rt->max - rt->min;
net/mctp/route.c
870
rt->min <= eid && rt->max >= eid;
net/mctp/route.c
880
rt1->max == rt2->max;
net/mctp/test/utils.c
132
rt->rt.max = eid;
net/mctp/test/utils.c
158
rt->rt.max = eid;
net/mptcp/pm.c
308
unsigned int max = 0;
net/mptcp/pm.c
314
if (icsk->icsk_rto > max)
net/mptcp/pm.c
315
max = icsk->icsk_rto;
net/mptcp/pm.c
318
if (max && max < rto)
net/mptcp/pm.c
319
rto = max;
net/mptcp/protocol.c
1480
tout = max(tout, mptcp_timeout_from_subflow(subflow));
net/mptcp/protocol.c
2129
rtt_us = max(sf_rtt_us, rtt_us);
net/mptcp/protocol.c
2130
advmss = max(sf_advmss, advmss);
net/mptcp/protocol.c
2818
len = max(copied, len);
net/mptcp/protocol.c
2830
dfrag->already_sent = max(dfrag->already_sent, len);
net/mptcp/protocol.c
525
tout = max(tout, mptcp_timeout_from_subflow(subflow));
net/mptcp/sockopt.c
625
static int __mptcp_setsockopt_set_val(struct mptcp_sock *msk, int max,
net/ncsi/ncsi-cmd.c
228
len += max(payload, padding_bytes);
net/ncsi/ncsi-cmd.c
301
len += max(payload, padding_bytes);
net/netfilter/core.c
763
__netfilter_net_init(struct nf_hook_entries __rcu **e, int max)
net/netfilter/core.c
767
for (h = 0; h < max; h++)
net/netfilter/ipset/ip_set_core.c
1569
ip_set_id_t index = IPSET_INVALID_ID, max;
net/netfilter/ipset/ip_set_core.c
1586
max = dump_type == DUMP_ONE ? cb->args[IPSET_CB_INDEX] + 1
net/netfilter/ipset/ip_set_core.c
1591
for (; cb->args[IPSET_CB_INDEX] < max; cb->args[IPSET_CB_INDEX]++) {
net/netfilter/ipset/ip_set_core.c
165
#define find_set_type_minmax(name, family, min, max) \
net/netfilter/ipset/ip_set_core.c
166
__find_set_type_minmax(name, family, min, max, false)
net/netfilter/ipset/ip_set_core.c
169
__find_set_type_minmax(const char *name, u8 family, u8 *min, u8 *max,
net/netfilter/ipset/ip_set_core.c
178
*min = 255; *max = 0;
net/netfilter/ipset/ip_set_core.c
187
if (type->revision_max > *max)
net/netfilter/ipset/ip_set_core.c
188
*max = type->revision_max;
net/netfilter/ipset/ip_set_core.c
195
__find_set_type_minmax(name, family, min, max, true);
net/netfilter/ipset/ip_set_core.c
1965
u8 family, min, max;
net/netfilter/ipset/ip_set_core.c
1976
ret = find_set_type_minmax(typename, family, &min, &max);
net/netfilter/ipset/ip_set_core.c
1991
nla_put_u8(skb2, IPSET_ATTR_REVISION, max) ||
net/netfilter/ipvs/ip_vs_conn.c
1492
int max = 27;
net/netfilter/ipvs/ip_vs_conn.c
1494
int max = 20;
net/netfilter/ipvs/ip_vs_conn.c
1503
max = clamp(max_avail, min, max);
net/netfilter/ipvs/ip_vs_conn.c
1504
ip_vs_conn_tab_bits = clamp(ip_vs_conn_tab_bits, min, max);
net/netfilter/ipvs/ip_vs_ctl.c
108
amemthresh = max(READ_ONCE(ipvs->sysctl_amemthresh), 0);
net/netfilter/ipvs/ip_vs_ctl.c
1347
dest->idle_start = max(1UL, now);
net/netfilter/ipvs/ip_vs_est.c
603
int max = 16;
net/netfilter/ipvs/ip_vs_est.c
607
while (max-- > 0) {
net/netfilter/ipvs/ip_vs_est.c
644
int max = 8;
net/netfilter/ipvs/ip_vs_est.c
703
max = (int)val;
net/netfilter/ipvs/ip_vs_est.c
705
max = 1;
net/netfilter/ipvs/ip_vs_est.c
713
*chain_max = max;
net/netfilter/ipvs/ip_vs_sync.c
371
max(IPVS_SYNC_SEND_DELAY, 1));
net/netfilter/ipvs/ip_vs_sync.c
504
long min_diff = max(cp->timeout >> 1, 10UL * HZ);
net/netfilter/nf_conntrack_extend.c
116
alloc = max(newlen, NF_CT_EXT_PREALLOC);
net/netfilter/nf_flow_table_ip.c
680
mtu = max(mtu, IPV6_MIN_MTU);
net/netfilter/nf_nat_core.c
406
const union nf_conntrack_man_proto *max)
net/netfilter/nf_nat_core.c
414
ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id);
net/netfilter/nf_nat_core.c
426
ntohs(port) <= ntohs(max->all);
net/netfilter/nf_nat_core.c
505
unsigned int i, max;
net/netfilter/nf_nat_core.c
526
max = sizeof(var_ipp->ip) / sizeof(u32) - 1;
net/netfilter/nf_nat_core.c
528
max = sizeof(var_ipp->ip6) / sizeof(u32) - 1;
net/netfilter/nf_nat_core.c
539
0 : (__force u32)tuple->dst.u3.all[max] ^ zone->id);
net/netfilter/nf_nat_core.c
542
for (i = 0; i <= max; i++) {
net/netfilter/nf_nat_core.c
575
unsigned int range_size, min, max, i, attempts;
net/netfilter/nf_nat_core.c
649
max = ntohs(range->max_proto.all);
net/netfilter/nf_nat_core.c
650
if (unlikely(max < min))
net/netfilter/nf_nat_core.c
651
swap(max, min);
net/netfilter/nf_nat_core.c
652
range_size = max - min + 1;
net/netfilter/nf_tables_api.c
11479
int nft_parse_u32_check(const struct nlattr *attr, int max, u32 *dest)
net/netfilter/nf_tables_api.c
11484
if (val > max)
net/netfilter/nf_tables_api.c
4814
u64 max = (u64)(~((u64)0));
net/netfilter/nf_tables_api.c
4816
max = div_u64(max, NSEC_PER_MSEC);
net/netfilter/nf_tables_api.c
4817
if (ms >= max)
net/netfilter/nf_tables_api.c
7463
unsigned int max = nft_set_maxsize(set), nelems;
net/netfilter/nf_tables_api.c
7466
if (nelems > max)
net/netfilter/nfnetlink_log.c
346
n = max(inst_size, pkt_size);
net/netfilter/nfnetlink_queue.c
1355
static int nfq_id_after(unsigned int id, unsigned int max)
net/netfilter/nfnetlink_queue.c
1357
return (int)(id - max) > 0;
net/netfilter/nft_payload.c
922
if (skb_ensure_writable(skb, max(offset + priv->len, 0)) ||
net/netfilter/x_tables.c
427
unsigned int i, max;
net/netfilter/x_tables.c
433
max = (nfproto == NFPROTO_ARP) ? ARRAY_SIZE(arp_names) :
net/netfilter/x_tables.c
436
for (i = 0; i < max; ++i) {
net/netfilter/xt_MASQUERADE.c
43
range.max_proto = mr->range[0].max;
net/netfilter/xt_NETMAP.c
98
newrange.max_proto = mr->range[0].max;
net/netfilter/xt_REDIRECT.c
71
.max_proto = mr->range[0].max,
net/netfilter/xt_conntrack.c
114
port_match(u16 min, u16 max, u16 port, bool invert)
net/netfilter/xt_conntrack.c
116
return (port >= min && port <= max) ^ invert;
net/netfilter/xt_esp.c
26
spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert)
net/netfilter/xt_esp.c
30
invert ? '!' : ' ', min, spi, max);
net/netfilter/xt_esp.c
31
r = (spi >= min && spi <= max) ^ invert;
net/netfilter/xt_hashlimit.c
147
to->max = cfg->max;
net/netfilter/xt_hashlimit.c
159
to->max = cfg->max;
net/netfilter/xt_hashlimit.c
240
if (ht->cfg.max && ht->count >= ht->cfg.max) {
net/netfilter/xt_hashlimit.c
242
net_err_ratelimited("max count of %u reached\n", ht->cfg.max);
net/netfilter/xt_hashlimit.c
309
if (hinfo->cfg.max == 0)
net/netfilter/xt_hashlimit.c
310
hinfo->cfg.max = 8 * hinfo->cfg.size;
net/netfilter/xt_hashlimit.c
311
else if (hinfo->cfg.max < hinfo->cfg.size)
net/netfilter/xt_hashlimit.c
312
hinfo->cfg.max = hinfo->cfg.size;
net/netfilter/xt_hashlimit.c
854
if (cfg->max > HASHLIMIT_MAX_SIZE) {
net/netfilter/xt_hashlimit.c
855
cfg->max = HASHLIMIT_MAX_SIZE;
net/netfilter/xt_hashlimit.c
856
pr_info_ratelimited("max too large, truncated to %u\n", cfg->max);
net/netfilter/xt_ipcomp.c
30
spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert)
net/netfilter/xt_ipcomp.c
34
invert ? '!' : ' ', min, spi, max);
net/netfilter/xt_ipcomp.c
35
r = (spi >= min && spi <= max) ^ invert;
net/netfilter/xt_length.c
26
return (pktlen >= info->min && pktlen <= info->max) ^ info->invert;
net/netfilter/xt_length.c
35
return (pktlen >= info->min && pktlen <= info->max) ^ info->invert;
net/netfilter/xt_nat.c
48
dst->max_proto = src->max;
net/netfilter/xt_tcpudp.c
29
port_match(u_int16_t min, u_int16_t max, u_int16_t port, bool invert)
net/netfilter/xt_tcpudp.c
31
return (port >= min && port <= max) ^ invert;
net/netfilter/xt_u32.c
80
if (ct->value[i].min <= val && val <= ct->value[i].max)
net/netlink/af_netlink.c
1940
max_recvmsg_len = max(READ_ONCE(nlk->max_recvmsg_len), len);
net/netlink/policy.c
322
range.max, NL_POLICY_TYPE_ATTR_PAD))
net/netlink/policy.c
352
range.max, NL_POLICY_TYPE_ATTR_PAD))
net/netlink/policy.c
383
if (range.max < U16_MAX &&
net/netlink/policy.c
385
range.max))
net/openvswitch/flow_netlink.c
2440
new_acts_size = max(next_offset + req_size, ksize(*sfa) * 2);
net/openvswitch/flow_table.c
1112
masks_and_count = kmalloc_objs(*masks_and_count, ma->max);
net/openvswitch/flow_table.c
1116
for (i = 0; i < ma->max; i++) {
net/openvswitch/flow_table.c
1167
new = tbl_mask_array_alloc(ma->max);
net/openvswitch/flow_table.c
197
for (i = 0; i < ma->max; i++) {
net/openvswitch/flow_table.c
220
size = max(MASK_ARRAY_SIZE_MIN, size);
net/openvswitch/flow_table.c
238
new->max = size;
net/openvswitch/flow_table.c
256
for (i = 0; i < old->max; i++) {
net/openvswitch/flow_table.c
274
if (ma_count >= ma->max) {
net/openvswitch/flow_table.c
275
err = tbl_mask_array_realloc(tbl, ma->max +
net/openvswitch/flow_table.c
320
if (ma->max >= (MASK_ARRAY_SIZE_MIN * 2) &&
net/openvswitch/flow_table.c
321
ma_count <= (ma->max / 3))
net/openvswitch/flow_table.c
322
tbl_mask_array_realloc(tbl, ma->max / 2);
net/openvswitch/flow_table.c
738
if (likely(*index < ma->max)) {
net/openvswitch/flow_table.c
752
for (i = 0; i < ma->max; i++) {
net/openvswitch/flow_table.c
872
for (i = 0; i < ma->max; i++) {
net/openvswitch/flow_table.c
992
for (i = 0; i < ma->max; i++) {
net/openvswitch/flow_table.h
48
int count, max;
net/openvswitch/flow_table.h
51
struct sw_flow_mask __rcu *masks[] __counted_by(max);
net/packet/af_packet.c
3018
linear = max(linear, min_t(int, len, dev->hard_header_len));
net/phonet/sysctl.c
38
void phonet_get_local_port_range(int *min, int *max)
net/phonet/sysctl.c
46
if (max)
net/phonet/sysctl.c
47
*max = local_port_range[1];
net/psp/psp_main.c
192
int min, max;
net/psp/psp_main.c
197
inet_get_local_port_range(net, &min, &max);
net/psp/psp_main.c
205
uh->source = htons((((u64)hash * (max - min)) >> 32) + min);
net/rxrpc/af_rxrpc.c
214
unsigned int max, old;
net/rxrpc/af_rxrpc.c
228
max = READ_ONCE(rxrpc_max_backlog);
net/rxrpc/af_rxrpc.c
231
backlog = max;
net/rxrpc/af_rxrpc.c
232
else if (backlog < 0 || backlog > max)
net/rxrpc/ar-internal.h
1575
return max(winsize - transmitted, 0);
net/rxrpc/call_accept.c
43
int max, tmp;
net/rxrpc/call_accept.c
47
max = rx->sk.sk_max_ack_backlog;
net/rxrpc/call_accept.c
49
if (tmp >= max) {
net/rxrpc/call_accept.c
50
_leave(" = -ENOBUFS [full %u]", max);
net/rxrpc/call_accept.c
53
max -= tmp;
net/rxrpc/call_accept.c
62
if (tmp >= max) {
net/rxrpc/call_accept.c
66
max = tmp + 1;
net/rxrpc/call_accept.c
70
if (CIRC_CNT(head, tail, size) < max) {
net/rxrpc/call_accept.c
83
if (CIRC_CNT(head, tail, size) < max) {
net/rxrpc/call_event.c
215
int limit = min(space, max(call->peer->pmtud_jumbo, 1));
net/rxrpc/input_rack.c
232
timeout = max(remaining, timeout);
net/rxrpc/rxperf.c
252
static int max = 0;
net/rxrpc/rxperf.c
270
m = max;
net/rxrpc/rxperf.c
272
max = m + 1;
net/sched/act_api.c
1864
skb = alloc_skb(max(attr_size, NLMSG_GOODSIZE), GFP_KERNEL);
net/sched/act_api.c
1966
skb = alloc_skb(max(attr_size, NLMSG_GOODSIZE), GFP_KERNEL);
net/sched/act_api.c
2063
skb = alloc_skb(max(attr_size, NLMSG_GOODSIZE), GFP_KERNEL);
net/sched/act_api.c
874
u32 max;
net/sched/act_api.c
890
max = *index;
net/sched/act_api.c
911
max = UINT_MAX;
net/sched/act_api.c
918
ret = idr_alloc_u32(&idrinfo->action_idr, ERR_PTR(-EBUSY), index, max,
net/sched/act_api.c
925
if (ret == -ENOSPC && *index == max)
net/sched/act_pedit.c
278
max(nparms->tcfp_off_max_hint, cur + 4);
net/sched/cls_api.c
2123
unsigned int size = oskb ? max(NLMSG_GOODSIZE, oskb->len) : NLMSG_GOODSIZE;
net/sched/cls_u32.c
701
u32 max = htid | 0xFFF;
net/sched/cls_u32.c
703
if (idr_alloc_u32(&ht->handle_idr, NULL, &index, max, GFP_KERNEL)) {
net/sched/cls_u32.c
705
if (idr_alloc_u32(&ht->handle_idr, NULL, &index, max,
net/sched/cls_u32.c
707
index = max;
net/sched/sch_cake.c
2334
b->flow_quantum = max(min(rate >> 12, 1514ULL), 300ULL);
net/sched/sch_cake.c
2337
rate_ns = div64_u64(rate_ns, max(MIN_RATE, rate));
net/sched/sch_cake.c
2353
b->cparams.target = max((byte_target_ns * 3) / 2, target_ns);
net/sched/sch_cake.c
2354
b->cparams.interval = max(rtt_est_ns +
net/sched/sch_cake.c
2631
max(sch->limit * psched_mtu(qdisc_dev(sch)),
net/sched/sch_cake.c
2716
WRITE_ONCE(q->interval, max(interval, 1U));
net/sched/sch_cake.c
2722
WRITE_ONCE(q->target, max(target, 1U));
net/sched/sch_cake.c
689
host_load = max(host_load,
net/sched/sch_cake.c
693
host_load = max(host_load,
net/sched/sch_dualpi2.c
650
qdelay = max(qdelay_l, qdelay_c);
net/sched/sch_dualpi2.c
730
.max = ALPHA_BETA_MAX,
net/sched/sch_fq.c
754
plen = max(plen, q->quantum);
net/sched/sch_fq.c
924
.max = INT_MAX,
net/sched/sch_fq_codel.c
388
quantum = max(256U, nla_get_u32(tb[TCA_FQ_CODEL_QUANTUM]));
net/sched/sch_fq_codel.c
437
max(1U, nla_get_u32(tb[TCA_FQ_CODEL_DROP_BATCH_SIZE])));
net/sched/sch_fq_pie.c
210
.max = 1 << 20,
net/sched/sch_gred.c
342
opt->set.tab[i].max = q->parms.qth_max >> q->parms.Wlog;
net/sched/sch_hfsc.c
741
f = max(cl->cl_myf, cl->cl_cfmin);
net/sched/sch_hfsc.c
829
f = max(cl->cl_myf, cl->cl_cfmin);
net/sched/sch_mqprio_lib.c
14
int left = max(a, c), right = min(b, d);
net/sched/sch_netem.c
773
max(time_to_send,
net/sched/sch_qfq.c
223
.max = QFQ_MAX_LMAX,
net/sched/sch_red.c
201
opt.set.max = q->parms.qth_max >> q->parms.Wlog;
net/sched/sch_sfb.c
349
if (unlikely(minqlen >= q->max)) {
net/sched/sch_sfb.c
484
.max = 25,
net/sched/sch_sfb.c
536
q->max = ctl->max;
net/sched/sch_sfb.c
577
.max = q->max,
net/sched/sch_sfb.c
58
u32 max;
net/sched/sch_taprio.c
1016
.max = INT_MAX,
net/sctp/output.c
537
memset(head->cb, 0, max(sizeof(struct inet_skb_parm),
net/sctp/protocol.c
1500
limit = max(limit, 128UL);
net/sctp/protocol.c
1511
sysctl_sctp_rmem[2] = max(sysctl_sctp_rmem[1], max_share);
net/sctp/protocol.c
1515
sysctl_sctp_wmem[2] = max(64*1024, max_share);
net/sctp/sysctl.c
427
unsigned int max = *(unsigned int *) ctl->extra2;
net/sctp/sysctl.c
441
if (new_value > max || new_value < min)
net/sctp/sysctl.c
455
unsigned int max = *(unsigned int *) ctl->extra2;
net/sctp/sysctl.c
469
if (new_value > max || new_value < min)
net/sctp/sysctl.c
524
unsigned int max = *(unsigned int *)ctl->extra2;
net/sctp/sysctl.c
540
if (new_value > max || new_value < min)
net/sctp/transport.c
665
transport->ssthresh = max(transport->cwnd/2,
net/sctp/transport.c
693
transport->ssthresh = max(transport->cwnd/2,
net/sctp/transport.c
713
transport->ssthresh = max(transport->cwnd/2,
net/sctp/transport.c
729
transport->cwnd = max(transport->cwnd/2,
net/shaper/shaper.c
349
u32 min, max;
net/shaper/shaper.c
352
max = net_shaper_handle_to_index(handle);
net/shaper/shaper.c
357
XA_LIMIT(min, max), GFP_KERNEL);
net/smc/smc_clc.c
635
int i, max;
net/smc/smc_clc.c
641
max = min_t(u8, prop->ipv6_prefixes_cnt, SMC_CLC_MAX_V6_PREFIX);
net/smc/smc_clc.c
645
for (i = 0; i < max; i++) {
net/smc/smc_llc.c
1005
int max, i;
net/smc/smc_llc.c
1009
max = min_t(u8, ext->num_rkeys, SMC_LLC_RKEYS_PER_MSG_V2);
net/smc/smc_llc.c
1011
for (i = 0; i < max; i++) {
net/smc/smc_llc.c
1327
u8 max, num_rkeys_send, num_rkeys_recv;
net/smc/smc_llc.c
1348
max = min_t(u8, num_rkeys_recv, SMC_LLC_RKEYS_PER_CONT_MSG);
net/smc/smc_llc.c
1349
for (i = 0; i < max; i++) {
net/smc/smc_llc.c
1806
int i, max;
net/smc/smc_llc.c
1823
max = min_t(u8, llcv2->num_rkeys, SMC_LLC_RKEYS_PER_MSG_V2);
net/smc/smc_llc.c
1824
for (i = 0; i < max; i++) {
net/smc/smc_llc.c
1838
max = min_t(u8, llc->num_rkeys, SMC_LLC_DEL_RKEY_MAX);
net/smc/smc_llc.c
1839
for (i = 0; i < max; i++) {
net/smc/smc_llc.c
892
u8 max, num_rkeys_send, num_rkeys_recv;
net/smc/smc_llc.c
911
max = min_t(u8, num_rkeys_recv, SMC_LLC_RKEYS_PER_CONT_MSG);
net/smc/smc_llc.c
912
for (i = 0; i < max; i++) {
net/sunrpc/stats.c
168
op_metrics->om_ntrans += max(req->rq_ntrans, 1);
net/sunrpc/svc.c
1724
u32 max = rqstp->rq_xprt->xpt_class->xcl_max_payload;
net/sunrpc/svc.c
1726
if (rqstp->rq_server->sv_max_payload < max)
net/sunrpc/svc.c
1727
max = rqstp->rq_server->sv_max_payload;
net/sunrpc/svc.c
1728
return max;
net/sunrpc/xdr.c
840
unsigned int shift, buflen = max(buf->len, len);
net/sunrpc/xprtsock.c
1717
unsigned short min = xprt_min_resvport, max = xprt_max_resvport;
net/sunrpc/xprtsock.c
1721
if (max < min)
net/sunrpc/xprtsock.c
1723
range = max - min + 1;
net/tipc/core.h
200
static inline int tipc_in_range(u16 val, u16 min, u16 max)
net/tipc/core.h
202
return !less(val, min) && !more(val, max);
net/tipc/group.c
130
max_active = max(max_active, 16);
net/tipc/msg.c
485
u32 max)
net/tipc/msg.c
497
if (unlikely(max < (offset + msz)))
net/tipc/name_table.c
135
if (!n || service_range_entry(n)->max < start)
net/tipc/name_table.c
140
if (l && service_range_entry(l)->max >= start) {
net/tipc/name_table.c
159
r && service_range_entry(r)->max >= start) {
net/tipc/name_table.c
186
if (r && service_range_entry(r)->max >= start)
net/tipc/name_table.c
310
if (sr->max < upper)
net/tipc/name_table.c
311
sr->max = upper;
net/tipc/name_table.c
322
sr->max = upper;
net/tipc/name_table.c
66
u32 max;
net/tipc/name_table.c
93
struct service_range, tree_node, u32, max,
net/tls/tls_sw.c
2255
decrypted += max(err, 0) - async_copy_bytes;
net/unix/af_unix.c
2935
skip = max(sk_peek_offset(sk, flags), 0);
net/wireless/chan.c
1076
return max(t1, t2);
net/wireless/chan.c
196
max_contiguous = max(contiguous, max_contiguous);
net/wireless/core.c
650
if (WARN_ON(!c->limits[j].max))
net/wireless/core.c
663
c->limits[j].max > 1))
net/wireless/core.c
668
c->limits[j].max > 1))
net/wireless/core.c
686
cnt += c->limits[j].max;
net/wireless/nl80211.c
1775
if (nla_put_u32(msg, NL80211_IFACE_LIMIT_MAX, c->limits[i].max))
net/wireless/nl80211.c
565
.max = 0xffff,
net/wireless/nl80211.c
569
.max = INT_MAX,
net/wireless/reg.c
1360
freq_range->start_freq_khz = max(freq_range1->start_freq_khz,
net/wireless/reg.c
1400
intersected_rule->dfs_cac_ms = max(rule1->dfs_cac_ms,
net/wireless/util.c
2512
if (limits[j].max < params->iftype_num[iftype])
net/wireless/util.c
2514
limits[j].max -= params->iftype_num[iftype];
net/wireless/wext-priv.c
68
int max = args & IW_PRIV_SIZE_MASK;
net/wireless/wext-priv.c
72
if (max < num)
net/wireless/wext-priv.c
73
num = max;
net/xdp/xsk.c
735
hr = max(NET_SKB_PAD, L1_CACHE_ALIGN(xs->dev->needed_headroom));
net/xdp/xsk.c
824
hr = max(NET_SKB_PAD, L1_CACHE_ALIGN(dev->needed_headroom));
net/xdp/xsk_buff_pool.c
601
static u32 xp_alloc_new_from_fq(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 max)
net/xdp/xsk_buff_pool.c
605
if (max > pool->free_heads_cnt)
net/xdp/xsk_buff_pool.c
606
max = pool->free_heads_cnt;
net/xdp/xsk_buff_pool.c
607
max = xskq_cons_nb_entries(pool->fq, max);
net/xdp/xsk_buff_pool.c
610
nb_entries = max;
net/xdp/xsk_buff_pool.c
611
i = max;
net/xdp/xsk_buff_pool.c
633
xskq_cons_release_n(pool->fq, max);
net/xdp/xsk_buff_pool.c
658
u32 max)
net/xdp/xsk_buff_pool.c
662
for (i = 0; i < max; i++) {
net/xdp/xsk_buff_pool.c
672
return max;
net/xdp/xsk_buff_pool.c
675
u32 xp_alloc_batch(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 max)
net/xdp/xsk_buff_pool.c
680
return xp_alloc_slow(pool, xdp, max);
net/xdp/xsk_buff_pool.c
683
nb_entries1 = xp_alloc_reused(pool, xdp, max);
net/xdp/xsk_buff_pool.c
684
if (nb_entries1 == max)
net/xdp/xsk_buff_pool.c
687
max -= nb_entries1;
net/xdp/xsk_buff_pool.c
691
nb_entries2 = xp_alloc_new_from_fq(pool, xdp, max);
net/xdp/xsk_queue.h
268
u32 max)
net/xdp/xsk_queue.h
277
while (cached_cons != q->cached_prod && nb_entries < max) {
net/xdp/xsk_queue.h
326
static inline u32 xskq_cons_nb_entries(struct xsk_queue *q, u32 max)
net/xdp/xsk_queue.h
330
if (entries >= max)
net/xdp/xsk_queue.h
331
return max;
net/xdp/xsk_queue.h
336
return entries >= max ? max : entries;
net/xdp/xsk_queue.h
382
static inline u32 xskq_prod_nb_free(struct xsk_queue *q, u32 max)
net/xdp/xsk_queue.h
386
if (free_entries >= max)
net/xdp/xsk_queue.h
387
return max;
net/xdp/xsk_queue.h
393
return free_entries >= max ? max : free_entries;
net/xfrm/xfrm_compat.c
215
dst_usi->max = src_usi->max;
net/xfrm/xfrm_compat.c
551
dst_usi->max = src_usi->max;
net/xfrm/xfrm_compat.c
57
__u32 min, max;
net/xfrm/xfrm_iptfs.c
1467
xtfs->w_savedlen = max(savedlen, index + 1);
net/xfrm/xfrm_iptfs.c
270
resv = max(resv, XFRM_IPTFS_MIN_L3HEADROOM);
net/xfrm/xfrm_nat_keepalive.c
117
const int nat_ka_hdrs_len = max(sizeof(struct iphdr),
net/xfrm/xfrm_state.c
2544
int verify_spi_info(u8 proto, u32 min, u32 max, struct netlink_ext_ack *extack)
net/xfrm/xfrm_state.c
2553
if (max >= 0x10000) {
net/xfrm/xfrm_state.c
2564
if (min > max) {
net/xfrm/xfrm_user.c
1844
err = verify_spi_info(p->info.id.proto, p->min, p->max, extack);
net/xfrm/xfrm_user.c
1886
err = xfrm_alloc_spi(x, p->min, p->max, extack);
samples/bpf/lathist_user.c
18
long max;
samples/bpf/lathist_user.c
23
static void stars(char *str, long val, long max, int width)
samples/bpf/lathist_user.c
27
for (i = 0; i < (width * val / max) - 1 && i < width - 1; i++)
samples/bpf/lathist_user.c
29
if (val > max)
samples/bpf/lathist_user.c
47
if (hist->max == 0)
samples/bpf/lathist_user.c
53
stars(starstr, hist->data[i - 1], hist->max, MAX_STARS);
samples/bpf/lathist_user.c
67
cpu_hist[i].max = 0;
samples/bpf/lathist_user.c
75
if (value > cpu_hist[c].max)
samples/bpf/lathist_user.c
76
cpu_hist[c].max = value;
samples/bpf/lwt_len_hist_user.c
18
static void stars(char *str, long val, long max, int width)
samples/bpf/lwt_len_hist_user.c
22
for (i = 0; i < (width * val / max) - 1 && i < width - 1; i++)
samples/bpf/lwt_len_hist_user.c
24
if (val > max)
samples/bpf/sampleip_user.c
106
max = i;
samples/bpf/sampleip_user.c
109
qsort(counts, max, sizeof(struct ipcount), count_cmp);
samples/bpf/sampleip_user.c
110
for (i = 0; i < max; i++) {
samples/bpf/sampleip_user.c
126
if (max == MAX_IPS) {
samples/bpf/sampleip_user.c
127
printf("WARNING: IP hash was full (max %d entries); ", max);
samples/bpf/sampleip_user.c
94
int i, max;
samples/bpf/xdp_adjust_tail_kern.c
128
if (pckt_size > max(max_pcktsz, ICMP_TOOBIG_SIZE)) {
samples/cgroup/memcg_event_listener.c
125
.new = &new_counters.max,
samples/cgroup/memcg_event_listener.c
126
.old = &counters->max,
samples/cgroup/memcg_event_listener.c
36
long max;
samples/cgroup/memcg_event_listener.c
54
printf("\tmax: %ld\n", counters->max);
scripts/dtc/libfdt/fdt_ro.c
116
uint32_t max = 0;
scripts/dtc/libfdt/fdt_ro.c
132
if (value > max)
scripts/dtc/libfdt/fdt_ro.c
133
max = value;
scripts/dtc/libfdt/fdt_ro.c
137
*phandle = max;
scripts/dtc/libfdt/fdt_ro.c
144
uint32_t max;
scripts/dtc/libfdt/fdt_ro.c
147
err = fdt_find_max_phandle(fdt, &max);
scripts/dtc/libfdt/fdt_ro.c
151
if (max == FDT_MAX_PHANDLE)
scripts/dtc/libfdt/fdt_ro.c
155
*phandle = max + 1;
scripts/kconfig/nconf.c
922
toprow = max(selected_index-mwin_max_lines/2, 0);
scripts/kconfig/nconf.gui.c
227
total_width = max(msg_width, btns_width);
scripts/kconfig/nconf.gui.c
344
prompt_width = max(prompt_width, len);
scripts/kconfig/nconf.gui.c
348
prompt_width = max(prompt_width, strlen(title));
scripts/kconfig/nconf.gui.c
352
prompt_lines = max(win_lines-6, 0);
scripts/kconfig/nconf.gui.c
353
prompt_width = max(win_cols-7, 0);
scripts/kconfig/nconf.gui.c
547
total_cols = max(total_cols, len+2);
scripts/kconfig/nconf.gui.c
557
text_lines = max(win_lines-4, 0);
scripts/kconfig/nconf.gui.c
558
text_cols = max(win_cols-2, 0);
scripts/mod/file2alias.c
186
unsigned char max, struct module *mod)
scripts/mod/file2alias.c
213
else if (range_lo > 0 || range_hi < max) {
scripts/mod/file2alias.c
253
unsigned char max,
scripts/mod/file2alias.c
260
if (max > 0x9) {
scripts/mod/file2alias.c
291
unsigned char chi, clo, max;
scripts/mod/file2alias.c
308
max = 0x9; /* Default to decimal format */
scripts/mod/file2alias.c
312
if (clo > max || chi > max) {
scripts/mod/file2alias.c
313
max = 0xf;
scripts/mod/file2alias.c
329
if (chi > max) /* If we are in bcd mode, truncate if necessary */
scripts/mod/file2alias.c
330
chi = max;
scripts/mod/file2alias.c
335
do_usb_entry(symval, devlo, ndigits, clo, chi, max, mod);
scripts/mod/file2alias.c
341
incbcd(&devlo, 1, max,
scripts/mod/file2alias.c
343
ndigits, clo, max, max, mod);
scripts/mod/file2alias.c
345
if (chi < max)
scripts/mod/file2alias.c
347
incbcd(&devhi, -1, max,
scripts/mod/file2alias.c
349
ndigits, 0x0, chi, max, mod);
scripts/mod/file2alias.c
655
kernel_ulong_t *arr, unsigned int min, unsigned int max)
scripts/mod/file2alias.c
659
for (i = min; i <= max; i++)
security/apparmor/domain.c
475
candidate_len = max(count, attach->xmatch_len);
security/apparmor/include/audit.h
135
unsigned long max;
security/apparmor/resource.c
36
rlim_names[ad->rlim.rlim], ad->rlim.max);
security/apparmor/resource.c
66
ad.rlim.max = value;
security/landlock/id.c
125
return max(1, get_random_u8());
security/selinux/ss/context.h
116
dr->level[0].sens = max(r1->level[0].sens, r2->level[0].sens);
security/smack/smackfs.c
566
static void smk_rule_show(struct seq_file *s, struct smack_rule *srp, int max)
security/smack/smackfs.c
575
if (strlen(srp->smk_subject->smk_known) >= max ||
security/smack/smackfs.c
576
strlen(srp->smk_object->smk_known) >= max)
security/tomoyo/common.c
430
const unsigned long max = ptr->values[1];
security/tomoyo/common.c
451
if (min == max && min_type == max_type)
security/tomoyo/common.c
455
min = max;
security/tomoyo/common.h
973
const unsigned long max,
security/tomoyo/group.c
159
const unsigned long max,
security/tomoyo/group.c
170
max < member->number.values[0])
security/tomoyo/network.c
54
u8 * const max = ptr->ip[1].in6_u.u6_addr8;
security/tomoyo/network.c
64
in4_pton(end, -1, max, '\0', &end) <= 0 || *end)
security/tomoyo/network.c
71
memmove(max, min, sizeof(u16) * 8);
security/tomoyo/network.c
73
in6_pton(end, -1, max, '\0', &end) <= 0 || *end)
sound/aoa/codecs/onyx.c
115
uinfo->value.integer.max = -1 + VOLUME_RANGE_SHIFT;
sound/aoa/codecs/onyx.c
187
uinfo->value.integer.max = 28 + INPUTGAIN_RANGE_SHIFT;
sound/aoa/codecs/tas.c
229
uinfo->value.integer.max = 177;
sound/aoa/codecs/tas.c
322
uinfo->value.integer.max = 177;
sound/aoa/codecs/tas.c
378
uinfo->value.integer.max = TAS3004_DRC_MAX;
sound/aoa/codecs/tas.c
527
uinfo->value.integer.max = TAS3004_TREBLE_MAX;
sound/aoa/codecs/tas.c
574
uinfo->value.integer.max = TAS3004_BASS_MAX;
sound/core/control.c
1027
lmax = info->value.integer.max;
sound/core/control.c
1033
lmax = info->value.integer64.max;
sound/core/control.c
2396
uinfo->value.integer.max = 1;
sound/core/control.c
2418
uinfo->value.integer.max = 1;
sound/core/control_compat.c
117
put_user(data->value.integer.max, &data32->value.integer.max) ||
sound/core/control_compat.c
398
get_user(data->value.integer.max, &data32->value.integer.max) ||
sound/core/control_compat.c
59
s32 max;
sound/core/control_compat.c
64
u64 max;
sound/core/oss/mixer_oss.c
433
static long snd_mixer_oss_conv1(long val, long min, long max, int *old)
sound/core/oss/mixer_oss.c
435
if (val == snd_mixer_oss_conv(*old, 0, 100, min, max))
sound/core/oss/mixer_oss.c
437
return snd_mixer_oss_conv(val, min, max, 0, 100);
sound/core/oss/mixer_oss.c
441
static long snd_mixer_oss_conv2(long val, long min, long max)
sound/core/oss/mixer_oss.c
443
return snd_mixer_oss_conv(val, 0, 100, min, max);
sound/core/oss/mixer_oss.c
543
uinfo->value.integer.min == 0 && uinfo->value.integer.max == 1)
sound/core/oss/mixer_oss.c
545
*left = snd_mixer_oss_conv1(uctl->value.integer.value[0], uinfo->value.integer.min, uinfo->value.integer.max, &pslot->volume[0]);
sound/core/oss/mixer_oss.c
547
*right = snd_mixer_oss_conv1(uctl->value.integer.value[1], uinfo->value.integer.min, uinfo->value.integer.max, &pslot->volume[1]);
sound/core/oss/mixer_oss.c
640
uinfo->value.integer.min == 0 && uinfo->value.integer.max == 1)
sound/core/oss/mixer_oss.c
642
uctl->value.integer.value[0] = snd_mixer_oss_conv2(left, uinfo->value.integer.min, uinfo->value.integer.max);
sound/core/oss/mixer_oss.c
644
uctl->value.integer.value[1] = snd_mixer_oss_conv2(right, uinfo->value.integer.min, uinfo->value.integer.max);
sound/core/oss/pcm_oss.c
110
t.min = t.max = val;
sound/core/oss/pcm_oss.c
352
int max, int maxdir)
sound/core/oss/pcm_oss.c
357
boundary_sub(max, maxdir, best, bestdir, &dmax, &dmaxdir);
sound/core/oss/pcm_oss.c
383
int min, max;
sound/core/oss/pcm_oss.c
389
min = max = best;
sound/core/oss/pcm_oss.c
397
max--;
sound/core/oss/pcm_oss.c
408
if (max < 0)
sound/core/oss/pcm_oss.c
418
max = snd_pcm_hw_param_max(pcm, params1, var, max, &maxdir);
sound/core/oss/pcm_oss.c
419
if (max < 0)
sound/core/oss/pcm_oss.c
421
if (boundary_nearer(max, maxdir, best, valdir, min, mindir)) {
sound/core/oss/pcm_oss.c
427
max = snd_pcm_hw_param_max(pcm, params, var, max, &maxdir);
sound/core/oss/pcm_oss.c
428
if (max < 0)
sound/core/oss/pcm_oss.c
429
return max;
sound/core/oss/pcm_oss.c
472
t.max = val;
sound/core/oss/pcm_oss.c
475
t.max = val+1;
sound/core/oss/pcm_oss.c
798
if (it->max < rate || (it->max == rate && it->openmax))
sound/core/oss/pcm_oss.c
82
static int snd_interval_refine_max(struct snd_interval *i, unsigned int max, int openmax)
sound/core/oss/pcm_oss.c
85
if (i->max > max) {
sound/core/oss/pcm_oss.c
86
i->max = max;
sound/core/oss/pcm_oss.c
89
} else if (i->max == max && !i->openmax && openmax) {
sound/core/oss/pcm_oss.c
95
i->max--;
sound/core/pcm_drm_eld.c
128
struct snd_interval t = { .min = 1, .max = 2, .integer = 1, };
sound/core/pcm_drm_eld.c
139
if (r->min <= eld_rates[i] && r->max >= eld_rates[i])
sound/core/pcm_drm_eld.c
144
t.max = max(t.max, sad_max_channels(sad));
sound/core/pcm_lib.c
1020
t.max = div_up(best_num, best_den);
sound/core/pcm_lib.c
1062
list_range.max = 0;
sound/core/pcm_lib.c
1069
list_range.max = max(list_range.max, list[k]);
sound/core/pcm_lib.c
1102
range_union.max = 0;
sound/core/pcm_lib.c
1118
if (range.max > range_union.max) {
sound/core/pcm_lib.c
1119
range_union.max = range.max;
sound/core/pcm_lib.c
1122
if (range.max == range_union.max && !range.openmax)
sound/core/pcm_lib.c
1139
n = i->max % step;
sound/core/pcm_lib.c
1141
i->max -= n;
sound/core/pcm_lib.c
1285
unsigned int min, unsigned int max)
sound/core/pcm_lib.c
1290
t.max = max;
sound/core/pcm_lib.c
1974
wait_time = max(t, wait_time);
sound/core/pcm_lib.c
2482
uinfo->value.integer.max = SNDRV_CHMAP_LAST;
sound/core/pcm_lib.c
639
if (i->max > v->max) {
sound/core/pcm_lib.c
640
i->max = v->max;
sound/core/pcm_lib.c
643
} else if (i->max == v->max && !i->openmax && v->openmax) {
sound/core/pcm_lib.c
657
i->max--;
sound/core/pcm_lib.c
660
} else if (!i->openmin && !i->openmax && i->min == i->max)
sound/core/pcm_lib.c
672
const unsigned int last_max = i->max;
sound/core/pcm_lib.c
678
i->max = i->min;
sound/core/pcm_lib.c
680
i->max++;
sound/core/pcm_lib.c
682
i->openmax = (i->openmax && i->max >= last_max);
sound/core/pcm_lib.c
694
i->min = i->max;
sound/core/pcm_lib.c
711
c->max = mul(a->max, b->max);
sound/core/pcm_lib.c
734
c->min = div32(a->min, b->max, &r);
sound/core/pcm_lib.c
737
c->max = div32(a->max, b->min, &r);
sound/core/pcm_lib.c
739
c->max++;
sound/core/pcm_lib.c
744
c->max = UINT_MAX;
sound/core/pcm_lib.c
772
c->max = muldiv32(a->max, b->max, k, &r);
sound/core/pcm_lib.c
774
c->max++;
sound/core/pcm_lib.c
801
c->min = muldiv32(a->min, k, b->max, &r);
sound/core/pcm_lib.c
804
c->max = muldiv32(a->max, k, b->min, &r);
sound/core/pcm_lib.c
806
c->max++;
sound/core/pcm_lib.c
811
c->max = UINT_MAX;
sound/core/pcm_lib.c
886
unsigned int q = i->max;
sound/core/pcm_lib.c
917
t.max = div_up(best_num, best_den);
sound/core/pcm_lib.c
995
unsigned int q = i->max;
sound/core/pcm_memory.c
263
size_t size, size_t max, bool managed)
sound/core/pcm_memory.c
274
if (!max) {
sound/core/pcm_memory.c
289
substream->dma_max = max;
sound/core/pcm_memory.c
290
if (max > 0)
sound/core/pcm_memory.c
298
void *data, size_t size, size_t max,
sound/core/pcm_memory.c
305
err = preallocate_pages(substream, type, data, size, max, managed);
sound/core/pcm_memory.c
324
size_t size, size_t max)
sound/core/pcm_memory.c
326
preallocate_pages(substream, type, data, size, max, false);
sound/core/pcm_memory.c
343
size_t size, size_t max)
sound/core/pcm_memory.c
345
preallocate_pages_for_all(pcm, type, data, size, max, false);
sound/core/pcm_memory.c
381
struct device *data, size_t size, size_t max)
sound/core/pcm_memory.c
383
return preallocate_pages(substream, type, data, size, max, true);
sound/core/pcm_memory.c
403
size_t size, size_t max)
sound/core/pcm_memory.c
405
return preallocate_pages_for_all(pcm, type, data, size, max, true);
sound/core/pcm_misc.c
489
rmax = max(rmax, snd_pcm_known_rates.list[i]);
sound/core/pcm_native.c
2189
tout = max(t, tout);
sound/core/pcm_native.c
2424
if ((unsigned)bits < i->min || (unsigned)bits > i->max)
sound/core/pcm_native.c
2437
t.max = 0;
sound/core/pcm_native.c
2449
if (t.max < (unsigned)bits)
sound/core/pcm_native.c
2450
t.max = bits;
sound/core/pcm_native.c
2489
t.max = substream->buffer_bytes_max;
sound/core/pcm_param_trace.h
101
__entry->prev_max = prev->max;
sound/core/pcm_param_trace.h
107
__entry->curr_max = curr->max;
sound/core/seq/seq_ports.c
144
num = max(port, 0);
sound/core/vmaster.c
103
follower->info.max_val = uinfo->value.integer.max;
sound/core/vmaster.c
325
uinfo->value.integer.max = master->info.max_val;
sound/drivers/aloop.c
1007
t.max = cable->hw.rate_max;
sound/drivers/aloop.c
1023
t.max = cable->hw.channels_max;
sound/drivers/aloop.c
1039
t.max = cable->hw.period_bytes_max;
sound/drivers/aloop.c
1387
uinfo->value.integer.max = 120000;
sound/drivers/aloop.c
1481
uinfo->value.integer.max = (__force int)SNDRV_PCM_FORMAT_LAST;
sound/drivers/aloop.c
1503
uinfo->value.integer.max = 192000;
sound/drivers/aloop.c
1526
uinfo->value.integer.max = 1024;
sound/drivers/dummy.c
713
uinfo->value.integer.max = mixer_volume_level_max;
sound/drivers/mpu401/mpu401_uart.c
347
int max = 64;
sound/drivers/mpu401/mpu401_uart.c
354
while (max-- > 0)
sound/drivers/mpu401/mpu401_uart.c
377
int max = 128;
sound/drivers/mpu401/mpu401_uart.c
380
while (max-- > 0) {
sound/drivers/mpu401/mpu401_uart.c
404
int max = 256;
sound/drivers/mpu401/mpu401_uart.c
422
} while (--max > 0);
sound/drivers/mts64.c
483
uinfo->value.integer.max = 23;
sound/drivers/mts64.c
493
uinfo->value.integer.max = 99;
sound/drivers/mts64.c
503
uinfo->value.integer.max = 59;
sound/drivers/opl3/opl3_midi.c
193
voice_time = max(voice_time, vp2->time);
sound/drivers/opl4/opl4_mixer.c
15
uinfo->value.integer.max = 7;
sound/drivers/pcsp/pcsp_mixer.c
20
uinfo->value.integer.max = 1;
sound/drivers/pcsp/pcsp_mixer.c
89
uinfo->value.integer.max = 1;
sound/drivers/vx/vx_mixer.c
404
uinfo->value.integer.max = chip->hw->output_level_max;
sound/drivers/vx/vx_mixer.c
556
uinfo->value.integer.max = CVAL_MAX;
sound/drivers/vx/vx_mixer.c
801
uinfo->value.integer.max = METER_MAX;
sound/firewire/amdtp-am824.c
282
used = max(used, 0);
sound/firewire/amdtp-stream.c
172
step = max(step, amdtp_syt_intervals[i]);
sound/firewire/amdtp-stream.c
179
t.max = rounddown(s->max, step);
sound/firewire/bebob/bebob_maudio.c
239
unsigned int i, max;
sound/firewire/bebob/bebob_maudio.c
241
max = SND_BEBOB_STRM_FMT_ENTRIES - 1;
sound/firewire/bebob/bebob_maudio.c
243
max -= 2;
sound/firewire/bebob/bebob_maudio.c
245
for (i = 0; i < max; i++) {
sound/firewire/bebob/bebob_maudio.c
411
einf->value.integer.max = 1;
sound/firewire/bebob/bebob_pcm.c
19
.min = UINT_MAX, .max = 0, .integer = 1
sound/firewire/bebob/bebob_pcm.c
32
t.max = max(t.max, snd_bebob_rate_table[i]);
sound/firewire/bebob/bebob_pcm.c
47
.min = UINT_MAX, .max = 0, .integer = 1
sound/firewire/bebob/bebob_pcm.c
61
t.max = max(t.max, formations[i].pcm);
sound/firewire/bebob/bebob_pcm.c
86
hw->channels_max = max(hw->channels_max, formations[i].pcm);
sound/firewire/bebob/bebob_pcm.c
89
hw->rate_max = max(hw->rate_max, snd_bebob_rate_table[i]);
sound/firewire/dice/dice-extension.c
78
midi_ports[i] = max(midi_ports[i], be32_to_cpu(reg[1]));
sound/firewire/dice/dice-midi.c
107
midi_in_ports = max(midi_in_ports, dice->tx_midi_ports[i]);
sound/firewire/dice/dice-midi.c
108
midi_out_ports = max(midi_out_ports, dice->rx_midi_ports[i]);
sound/firewire/dice/dice-pcm.c
117
hw->channels_max = max(hw->channels_max, channels);
sound/firewire/dice/dice-pcm.c
23
.min = UINT_MAX, .max = 0, .integer = 1
sound/firewire/dice/dice-pcm.c
43
rates.max = max(rates.max, rate);
sound/firewire/dice/dice-pcm.c
61
.min = UINT_MAX, .max = 0, .integer = 1
sound/firewire/dice/dice-pcm.c
81
channels.max = max(channels.max, pcm_channels[mode]);
sound/firewire/digi00x/amdtp-dot.c
234
used = max(used, 0);
sound/firewire/digi00x/digi00x-pcm.c
18
.min = UINT_MAX, .max = 0, .integer = 1,
sound/firewire/digi00x/digi00x-pcm.c
28
t.max = max(t.max, snd_dg00x_stream_rates[i]);
sound/firewire/digi00x/digi00x-pcm.c
42
.min = UINT_MAX, .max = 0, .integer = 1,
sound/firewire/digi00x/digi00x-pcm.c
51
t.max = max(t.max, snd_dg00x_stream_pcm_channels[i]);
sound/firewire/fireface/ff-pcm.c
100
hw->rate_max = max(hw->rate_max, rate);
sound/firewire/fireface/ff-pcm.c
19
.min = UINT_MAX, .max = 0, .integer = 1
sound/firewire/fireface/ff-pcm.c
35
t.max = max(t.max, amdtp_rate_table[i]);
sound/firewire/fireface/ff-pcm.c
50
.min = UINT_MAX, .max = 0, .integer = 1
sound/firewire/fireface/ff-pcm.c
66
t.max = max(t.max, pcm_channels[mode]);
sound/firewire/fireface/ff-pcm.c
95
hw->channels_max = max(hw->channels_max, channels);
sound/firewire/fireface/ff-protocol-former.c
96
count = max(count, ff->spec->pcm_playback_channels[i]);
sound/firewire/fireworks/fireworks_command.c
114
max(param_bytes, resp_bytes);
sound/firewire/fireworks/fireworks_pcm.c
107
t.max = max(t.max, pcm_channels[mode]);
sound/firewire/fireworks/fireworks_pcm.c
127
hw->channels_max = max(hw->channels_max, pcm_channels[mode]);
sound/firewire/fireworks/fireworks_pcm.c
72
.min = UINT_MAX, .max = 0, .integer = 1
sound/firewire/fireworks/fireworks_pcm.c
82
t.max = max(t.max, freq_table[i]);
sound/firewire/fireworks/fireworks_pcm.c
97
.min = UINT_MAX, .max = 0, .integer = 1
sound/firewire/fireworks/fireworks_proc.c
132
unsigned int g, c, m, max, size;
sound/firewire/fireworks/fireworks_proc.c
150
max = min(efw->phys_out, meters->out_meters);
sound/firewire/fireworks/fireworks_proc.c
152
snd_iprintf(buffer, " %d Outputs:\n", max);
sound/firewire/fireworks/fireworks_proc.c
156
if (m < max)
sound/firewire/fireworks/fireworks_proc.c
163
max = min(efw->phys_in, meters->in_meters);
sound/firewire/fireworks/fireworks_proc.c
165
snd_iprintf(buffer, " %d Inputs:\n", max);
sound/firewire/fireworks/fireworks_proc.c
169
if (m < max)
sound/firewire/isight.c
469
info->value.integer.max = isight->gain_max;
sound/firewire/motu/motu-pcm.c
21
.min = UINT_MAX, .max = 0, .integer = 1
sound/firewire/motu/motu-pcm.c
34
rates.max = max(rates.max, rate);
sound/firewire/motu/motu-pcm.c
50
.min = UINT_MAX, .max = 0, .integer = 1
sound/firewire/motu/motu-pcm.c
63
channels.max = max(channels.max, pcm_channels);
sound/firewire/motu/motu-pcm.c
89
hw->channels_max = max(hw->channels_max, pcm_channels);
sound/firewire/oxfw/oxfw-pcm.c
101
hw->channels_max = max(hw->channels_max, formation.pcm);
sound/firewire/oxfw/oxfw-pcm.c
104
hw->rate_max = max(hw->rate_max, formation.rate);
sound/firewire/oxfw/oxfw-pcm.c
19
.min = UINT_MAX, .max = 0, .integer = 1
sound/firewire/oxfw/oxfw-pcm.c
35
t.max = max(t.max, formation.rate);
sound/firewire/oxfw/oxfw-spkr.c
187
info->value.integer.max = spkr->volume_max;
sound/hda/codecs/ca0132.c
4249
uinfo->value.integer.max = 180;
sound/hda/codecs/ca0132.c
4284
uinfo->value.integer.max = 100;
sound/hda/codecs/ca0132.c
4319
uinfo->value.integer.max = 48;
sound/hda/codecs/ca0132.c
5668
uinfo->value.integer.max = 100;
sound/hda/codecs/ca0132.c
5682
uinfo->value.integer.max = 100;
sound/hda/codecs/cirrus/cs421x.c
314
uinfo->value.integer.max = 3;
sound/hda/codecs/cirrus/cs8409.c
469
uinfo->value.integer.max = CS42L42_HP_VOL_REAL_MAX;
sound/hda/codecs/cirrus/cs8409.c
473
uinfo->value.integer.max = CS42L42_AMIC_VOL_REAL_MAX;
sound/hda/codecs/generic.c
2410
spec->multiout.max_channels = max(spec->ext_channel_count,
sound/hda/codecs/generic.c
5103
spec->const_channel_count = max(spec->const_channel_count,
sound/hda/codecs/generic.c
5106
spec->const_channel_count = max(spec->const_channel_count,
sound/hda/codecs/generic.c
5108
spec->multiout.max_channels = max(spec->ext_channel_count,
sound/hda/codecs/hdmi/atihdmi.c
565
per_cvt->channels_max = max(per_cvt->channels_max, 8u);
sound/hda/codecs/hdmi/atihdmi.c
568
per_cvt->maxbps = max(per_cvt->maxbps, 24u);
sound/hda/codecs/hdmi/atihdmi.c
571
spec->chmap.channels_max = max(spec->chmap.channels_max, 8u);
sound/hda/codecs/side-codecs/cs35l56_hda.c
225
uinfo->value.integer.max = CS35L56_MAIN_POSTURE_MAX;
sound/hda/codecs/side-codecs/cs35l56_hda.c
289
uinfo->value.integer.max = CS35L56_MAIN_RENDER_USER_VOLUME_MAX -
sound/hda/codecs/side-codecs/tas2781_hda.c
268
uinfo->value.integer.max = tas_priv->rcabin.ncfgs - 1;
sound/hda/codecs/side-codecs/tas2781_hda.c
282
uinfo->value.integer.max = tas_priv->fmw->nr_programs - 1;
sound/hda/codecs/side-codecs/tas2781_hda.c
297
uinfo->value.integer.max = tas_fw->nr_configurations - 1;
sound/hda/codecs/side-codecs/tas2781_hda.c
322
int max = tas_priv->rcabin.ncfgs - 1;
sound/hda/codecs/side-codecs/tas2781_hda.c
325
val = clamp(profile_id, 0, max);
sound/hda/codecs/side-codecs/tas2781_hda.c
361
int max = tas_fw->nr_programs - 1;
sound/hda/codecs/side-codecs/tas2781_hda.c
364
val = clamp(nr_program, 0, max);
sound/hda/codecs/side-codecs/tas2781_hda.c
400
int max = tas_fw->nr_configurations - 1;
sound/hda/codecs/side-codecs/tas2781_hda.c
403
val = clamp(nr_config, 0, max);
sound/hda/codecs/side-codecs/tas2781_hda.h
35
.min = xmin, .max = xmax, .invert = xinvert, \
sound/hda/codecs/side-codecs/tas2781_hda_spi.c
244
int max = mc->max;
sound/hda/codecs/side-codecs/tas2781_hda_spi.c
247
mask = rounddown_pow_of_two(max);
sound/hda/codecs/side-codecs/tas2781_hda_spi.c
249
val = clamp(invert ? max - ucontrol->value.integer.value[0] :
sound/hda/codecs/side-codecs/tas2781_hda_spi.c
250
ucontrol->value.integer.value[0], 0, max);
sound/hda/codecs/side-codecs/tas2781_hda_spi.c
266
int max = mc->max;
sound/hda/codecs/side-codecs/tas2781_hda_spi.c
275
mask = rounddown_pow_of_two(max);
sound/hda/codecs/side-codecs/tas2781_hda_spi.c
278
val = clamp(invert ? max - val : val, 0, max);
sound/hda/codecs/side-codecs/tas2781_hda_spi.c
288
int max = mc->max;
sound/hda/codecs/side-codecs/tas2781_hda_spi.c
291
val = clamp(invert ? max - ucontrol->value.integer.value[0] :
sound/hda/codecs/side-codecs/tas2781_hda_spi.c
292
ucontrol->value.integer.value[0], 0, max);
sound/hda/codecs/side-codecs/tas2781_hda_spi.c
304
int max = mc->max;
sound/hda/codecs/side-codecs/tas2781_hda_spi.c
313
val = clamp(invert ? max - val : val, 0, max);
sound/hda/codecs/via.c
784
uinfo->value.integer.max = 1;
sound/hda/common/codec.c
1452
uinfo->value.integer.max = get_amp_max_value(codec, nid, dir, ofs);
sound/hda/common/codec.c
1453
if (!uinfo->value.integer.max) {
sound/hda/common/codec.c
2063
uinfo->value.integer.max = 1;
sound/hda/common/proc.c
644
int i, max;
sound/hda/common/proc.c
652
max = gpio & AC_GPIO_IO_COUNT;
sound/hda/common/proc.c
653
if (!max || max > 8)
sound/hda/common/proc.c
667
for (i = 0; i < max; ++i)
sound/hda/core/hdmi_chmap.c
617
uinfo->value.integer.max = SNDRV_CHMAP_LAST;
sound/i2c/cs8427.c
361
uinfo->value.integer.max = 255;
sound/i2c/other/ak4113.c
179
uinfo->value.integer.max = LONG_MAX;
sound/i2c/other/ak4113.c
216
uinfo->value.integer.max = 5;
sound/i2c/other/ak4113.c
253
uinfo->value.integer.max = 192000;
sound/i2c/other/ak4113.c
307
uinfo->value.integer.max = 0xffff;
sound/i2c/other/ak4114.c
164
uinfo->value.integer.max = LONG_MAX;
sound/i2c/other/ak4114.c
200
uinfo->value.integer.max = 192000;
sound/i2c/other/ak4114.c
271
uinfo->value.integer.max = 0xffff;
sound/i2c/other/ak4117.c
138
uinfo->value.integer.max = LONG_MAX;
sound/i2c/other/ak4117.c
174
uinfo->value.integer.max = 1;
sound/i2c/other/ak4117.c
208
uinfo->value.integer.max = 192000;
sound/i2c/other/ak4117.c
257
uinfo->value.integer.max = 0xffff;
sound/i2c/other/ak4xxx-adda.c
360
uinfo->value.integer.max = mask;
sound/i2c/other/ak4xxx-adda.c
416
uinfo->value.integer.max = mask;
sound/i2c/other/pt2258.c
76
uinfo->value.integer.max = 79;
sound/i2c/tea6330t.c
181
uinfo->value.integer.max = tea->max_bass;
sound/i2c/tea6330t.c
229
uinfo->value.integer.max = tea->max_treble;
sound/i2c/tea6330t.c
74
uinfo->value.integer.max = 43;
sound/isa/ad1816a/ad1816a_lib.c
696
uinfo->value.integer.max = mask;
sound/isa/ad1816a/ad1816a_lib.c
757
uinfo->value.integer.max = mask;
sound/isa/cs423x/cs4236_lib.c
392
uinfo->value.integer.max = mask;
sound/isa/cs423x/cs4236_lib.c
497
uinfo->value.integer.max = mask;
sound/isa/es1688/es1688_lib.c
758
uinfo->value.integer.max = mask;
sound/isa/es1688/es1688_lib.c
813
uinfo->value.integer.max = mask;
sound/isa/es18xx.c
1033
uinfo->value.integer.max = 63;
sound/isa/es18xx.c
1097
uinfo->value.integer.max = mask;
sound/isa/es18xx.c
1161
uinfo->value.integer.max = mask;
sound/isa/gus/gus_main.c
30
uinfo->value.integer.max = 31;
sound/isa/gus/gus_mixer.c
137
unsigned int idx, max;
sound/isa/gus/gus_mixer.c
157
max = gus->ess_flag ? 1 : ARRAY_SIZE(snd_gf1_controls);
sound/isa/gus/gus_mixer.c
158
for (idx = 0; idx < max; idx++) {
sound/isa/gus/gus_mixer.c
69
uinfo->value.integer.max = 127;
sound/isa/gus/gus_pcm.c
711
uinfo->value.integer.max = 127;
sound/isa/gus/gusmax.c
107
} while (loop && --max > 0);
sound/isa/gus/gusmax.c
92
int loop, max = 5;
sound/isa/gus/interwave.c
288
int loop, max = 5;
sound/isa/gus/interwave.c
303
} while (loop && --max > 0);
sound/isa/msnd/msnd_pinnacle_mixer.c
130
uinfo->value.integer.max = 100;
sound/isa/opti9xx/miro.c
302
uinfo->value.integer.max = 3;
sound/isa/opti9xx/miro.c
413
uinfo->value.integer.max = 0x7f;
sound/isa/opti9xx/miro.c
419
uinfo->value.integer.max = 0x20;
sound/isa/sb/emu8000.c
813
uinfo->value.integer.max = 11;
sound/isa/sb/emu8000.c
873
uinfo->value.integer.max = kcontrol->private_value ? (SNDRV_EMU8000_CHORUS_NUMBERS-1) : (SNDRV_EMU8000_REVERB_NUMBERS-1);
sound/isa/sb/emu8000.c
939
uinfo->value.integer.max = 255;
sound/isa/sb/sb16_csp.c
967
uinfo->value.integer.max = SNDRV_SB_CSP_QSOUND_MAX_RIGHT;
sound/isa/sb/sb8_main.c
83
if (r->min > SB8_RATE(22050) || r->max <= SB8_RATE(11025)) {
sound/isa/sb/sb8_main.c
84
struct snd_interval t = { .min = 1, .max = 1 };
sound/isa/sb/sb8_midi.c
150
int max = 32;
sound/isa/sb/sb8_midi.c
154
while (max-- > 0) {
sound/isa/sb/sb8_midi.c
26
int max = 64;
sound/isa/sb/sb8_midi.c
39
while (max-- > 0) {
sound/isa/sb/sb_mixer.c
101
uinfo->value.integer.max = mask;
sound/isa/sb/sb_mixer.c
362
uinfo->value.integer.max = 1;
sound/isa/sb/sb_mixer.c
53
uinfo->value.integer.max = mask;
sound/isa/sscape.c
572
uinfo->value.integer.max = 127;
sound/isa/wavefront/wavefront_midi.c
117
int max = 256, mask = 1;
sound/isa/wavefront/wavefront_midi.c
135
while (max > 0) {
sound/isa/wavefront/wavefront_midi.c
153
max--;
sound/isa/wavefront/wavefront_midi.c
173
while (max > 0) {
sound/isa/wavefront/wavefront_midi.c
202
max--;
sound/isa/wavefront/wavefront_midi.c
390
int max = 128;
sound/isa/wavefront/wavefront_midi.c
401
while (--max) {
sound/isa/wss/wss_lib.c
1937
uinfo->value.integer.max = mask;
sound/isa/wss/wss_lib.c
1990
uinfo->value.integer.max = mask;
sound/mips/hal2.c
177
uinfo->value.integer.max = 31;
sound/mips/hal2.c
180
uinfo->value.integer.max = 15;
sound/mips/sgio2audio.c
148
uinfo->value.integer.max = ad1843_get_gain_max(&chip->ad1843,
sound/mips/snd-n64.c
169
if (is_power_of_2(c->max)) {
sound/mips/snd-n64.c
170
c->max -= 2;
sound/parisc/harmony.c
648
uinfo->value.integer.max = mask;
sound/pci/ac97/ac97_codec.c
1065
unsigned char max[3] = { 63, 31, 15 };
sound/pci/ac97/ac97_codec.c
1094
*lo_max = max[i];
sound/pci/ac97/ac97_codec.c
1096
*hi_max = max[i];
sound/pci/ac97/ac97_codec.c
1116
static void snd_ac97_change_volume_params2(struct snd_ac97 * ac97, int reg, int shift, unsigned char *max)
sound/pci/ac97/ac97_codec.c
1120
*max = 63;
sound/pci/ac97/ac97_codec.c
1125
*max = 31;
sound/pci/ac97/ac97_codec.c
1305
unsigned char max;
sound/pci/ac97/ac97_codec.c
1331
snd_ac97_change_volume_params2(ac97, AC97_CENTER_LFE_MASTER, 0, &max);
sound/pci/ac97/ac97_codec.c
1333
kctl->private_value |= (int)max << 16;
sound/pci/ac97/ac97_codec.c
1334
set_tlv_db_scale(kctl, find_db_scale(max));
sound/pci/ac97/ac97_codec.c
1335
snd_ac97_write_cache(ac97, AC97_CENTER_LFE_MASTER, ac97->regs[AC97_CENTER_LFE_MASTER] | max);
sound/pci/ac97/ac97_codec.c
1347
snd_ac97_change_volume_params2(ac97, AC97_CENTER_LFE_MASTER, 8, &max);
sound/pci/ac97/ac97_codec.c
1349
kctl->private_value |= (int)max << 16;
sound/pci/ac97/ac97_codec.c
1350
set_tlv_db_scale(kctl, find_db_scale(max));
sound/pci/ac97/ac97_codec.c
1351
snd_ac97_write_cache(ac97, AC97_CENTER_LFE_MASTER, ac97->regs[AC97_CENTER_LFE_MASTER] | max << 8);
sound/pci/ac97/ac97_codec.c
521
uinfo->value.integer.max = mask;
sound/pci/ac97/ac97_codec.c
873
uinfo->value.integer.max = mask;
sound/pci/ac97/ac97_codec.c
919
uinfo->value.integer.max = 31;
sound/pci/ac97/ac97_pcm.c
686
.max = 48000,
sound/pci/ac97/ac97_pcm.c
701
.max = 2,
sound/pci/ak4531_codec.c
132
uinfo->value.integer.max = mask;
sound/pci/ak4531_codec.c
205
uinfo->value.integer.max = 1;
sound/pci/ak4531_codec.c
67
uinfo->value.integer.max = mask;
sound/pci/asihpi/asihpi.c
1436
uinfo->value.integer.max = max_gain_mB / VOL_STEP_mB;
sound/pci/asihpi/asihpi.c
1554
uinfo->value.integer.max = max_gain_mB / HPI_UNITS_PER_dB;
sound/pci/asihpi/asihpi.c
1688
uinfo->value.integer.max = 0X1F;
sound/pci/asihpi/asihpi.c
1783
uinfo->value.integer.max = ((int)gain_range[1]) / HPI_UNITS_PER_dB;
sound/pci/asihpi/asihpi.c
1946
uinfo->value.integer.max = ((int)freq_range[1]);
sound/pci/asihpi/asihpi.c
2027
uinfo->value.integer.max = 0x7FFFFFFF;
sound/pci/asihpi/asihpi.c
2378
uinfo->value.integer.max = 192000;
sound/pci/asihpi/asihpi.c
2420
uinfo->value.integer.max = 192000;
sound/pci/asihpi/asihpi.c
370
rate_max = max(rate_max, sample_rate);
sound/pci/asihpi/asihpi.c
510
expiry = max(expiry, 1); /* don't let it be zero! */
sound/pci/asihpi/asihpi.c
816
next_jiffies = max(next_jiffies, 1U);
sound/pci/au88x0/au88x0_a3d.c
722
uinfo->value.integer.max = 0xffffffff;
sound/pci/au88x0/au88x0_a3d.c
731
uinfo->value.integer.max = 0xffffffff;
sound/pci/au88x0/au88x0_a3d.c
740
uinfo->value.integer.max = 0xffffffff;
sound/pci/au88x0/au88x0_a3d.c
750
uinfo->value.integer.max = 0xffffffff;
sound/pci/au88x0/au88x0_eq.c
765
uinfo->value.integer.max = 0x7fff;
sound/pci/au88x0/au88x0_eq.c
823
uinfo->value.integer.max = 0x7fff;
sound/pci/au88x0/au88x0_pcm.c
526
uinfo->value.integer.max = 32;
sound/pci/azt3328.c
918
uinfo->value.integer.max = reg.mask;
sound/pci/bt87x.c
540
info->value.integer.max = 15;
sound/pci/ca0106/ca0106_mixer.c
407
uinfo->value.integer.max = 255;
sound/pci/ca0106/ca0106_mixer.c
454
uinfo->value.integer.max = 255;
sound/pci/ca0106/ca_midi.c
195
int max = 4;
sound/pci/ca0106/ca_midi.c
201
while (max > 0) {
sound/pci/ca0106/ca_midi.c
209
max--;
sound/pci/cmipci.c
1979
uinfo->value.integer.max = reg.mask;
sound/pci/cmipci.c
2059
uinfo->value.integer.max = 1;
sound/pci/cmipci.c
2146
uinfo->value.integer.max = reg.mask;
sound/pci/cs4281.c
970
uinfo->value.integer.max = CS_VOL_MASK;
sound/pci/cs46xx/cs46xx_dsp_scb_types.h
938
max,
sound/pci/cs46xx/cs46xx_dsp_scb_types.h
989
max,
sound/pci/cs46xx/cs46xx_lib.c
1848
uinfo->value.integer.max = 0x7fff;
sound/pci/cs5535audio/cs5535audio_olpc.c
67
uinfo->value.integer.max = 1;
sound/pci/cs5535audio/cs5535audio_olpc.c
91
uinfo->value.integer.max = 1;
sound/pci/ctxfi/ctmixer.c
336
uinfo->value.integer.max = VOL_MAX;
sound/pci/ctxfi/ctmixer.c
578
uinfo->value.integer.max = 1;
sound/pci/echoaudio/echoaudio.c
1064
uinfo->value.integer.max = ECHOGAIN_MAXINP;
sound/pci/echoaudio/echoaudio.c
1132
uinfo->value.integer.max = 1;
sound/pci/echoaudio/echoaudio.c
1193
uinfo->value.integer.max = 1;
sound/pci/echoaudio/echoaudio.c
1255
uinfo->value.integer.max = ECHOGAIN_MAXOUT;
sound/pci/echoaudio/echoaudio.c
1321
uinfo->value.integer.max = ECHOGAIN_MAXOUT;
sound/pci/echoaudio/echoaudio.c
138
ch.max = 2;
sound/pci/echoaudio/echoaudio.c
140
ch.max = 1;
sound/pci/echoaudio/echoaudio.c
148
ch.max = 2;
sound/pci/echoaudio/echoaudio.c
1696
uinfo->value.integer.max = 0;
sound/pci/echoaudio/echoaudio.c
1730
uinfo->value.integer.max = 1 << ECHO_CLOCK_NUMBER;
sound/pci/echoaudio/echoaudio.c
176
} else if (c->max == 1)
sound/pci/echoaudio/echoaudio.c
180
else if (c->min == 2 && c->max == 2)
sound/pci/echoaudio/echoaudio.c
210
ch.max = 2;
sound/pci/echoaudio/echoaudio.c
212
ch.max = 1;
sound/pci/echoaudio/echoaudio.c
216
ch.min = ch.max = 2;
sound/pci/echoaudio/echoaudio.c
246
fixed.min = fixed.max = chip->sample_rate;
sound/pci/echoaudio/echoaudio.c
984
uinfo->value.integer.max = ECHOGAIN_MAXOUT;
sound/pci/emu10k1/emu10k1x.c
1356
int max = 4;
sound/pci/emu10k1/emu10k1x.c
1361
while (max > 0) {
sound/pci/emu10k1/emu10k1x.c
1369
max--;
sound/pci/emu10k1/emufx.c
1005
gctl->max = ctl->max;
sound/pci/emu10k1/emufx.c
1164
ctl->max = 0x7fffffff;
sound/pci/emu10k1/emufx.c
1170
ctl->max = 100;
sound/pci/emu10k1/emufx.c
1188
ctl->max = 0x7fffffff;
sound/pci/emu10k1/emufx.c
1194
ctl->max = 100;
sound/pci/emu10k1/emufx.c
1213
ctl->max = 1;
sound/pci/emu10k1/emufx.c
1227
ctl->max = 1;
sound/pci/emu10k1/emufx.c
1550
ctl->max = 40;
sound/pci/emu10k1/emufx.c
1559
ctl->max = 40;
sound/pci/emu10k1/emufx.c
2145
ctl->max = 40;
sound/pci/emu10k1/emufx.c
2155
ctl->max = 40;
sound/pci/emu10k1/emufx.c
339
if (ctl->min == 0 && ctl->max == 1)
sound/pci/emu10k1/emufx.c
345
uinfo->value.integer.max = ctl->max;
sound/pci/emu10k1/emufx.c
373
if (nval > ctl->max)
sound/pci/emu10k1/emufx.c
374
nval = ctl->max;
sound/pci/emu10k1/emufx.c
807
if (gctl->min != 0 || gctl->max != 100) {
sound/pci/emu10k1/emufx.c
814
if (gctl->min != 0 || gctl->max != 40) {
sound/pci/emu10k1/emufx.c
820
if (gctl->min != 0 || gctl->max != 1) {
sound/pci/emu10k1/emufx.c
914
nctl->max = gctl->max;
sound/pci/emu10k1/emumixer.c
1246
uinfo->value.integer.max = 255;
sound/pci/emu10k1/emumixer.c
1473
uinfo->value.integer.max = emu->audigy ? 0x3f : 0x0f;
sound/pci/emu10k1/emumixer.c
1544
uinfo->value.integer.max = 255;
sound/pci/emu10k1/emumixer.c
1609
uinfo->value.integer.max = 0x1fffd;
sound/pci/emu10k1/emumixer.c
1673
uinfo->value.integer.max = emu->audigy ? 0x3f : 0x0f;
sound/pci/emu10k1/emumixer.c
1738
uinfo->value.integer.max = 255;
sound/pci/emu10k1/emumixer.c
1799
uinfo->value.integer.max = 0x1fffd;
sound/pci/emu10k1/emumpu401.c
242
int max = 4;
sound/pci/emu10k1/emumpu401.c
247
while (max > 0) {
sound/pci/emu10k1/emumpu401.c
255
max--;
sound/pci/emu10k1/emupcm.c
1500
uinfo->value.integer.max = 1;
sound/pci/emu10k1/p16v.c
610
uinfo->value.integer.max = 255;
sound/pci/es1938.c
1054
uinfo->value.integer.max = 63;
sound/pci/es1938.c
1126
uinfo->value.integer.max = mask;
sound/pci/es1938.c
1187
uinfo->value.integer.max = mask;
sound/pci/fm801.c
846
uinfo->value.integer.max = mask;
sound/pci/fm801.c
902
uinfo->value.integer.max = mask;
sound/pci/ice1712/aureon.c
1017
uinfo->value.integer.max = 0x1f; /* 19dB */
sound/pci/ice1712/aureon.c
1173
uinfo->value.integer.max = 192000;
sound/pci/ice1712/aureon.c
352
uinfo->value.integer.max = 31;
sound/pci/ice1712/aureon.c
733
uinfo->value.integer.max = WM_VOL_MAX;
sound/pci/ice1712/aureon.c
783
uinfo->value.integer.max = WM_VOL_MAX; /* 0dB */
sound/pci/ice1712/aureon.c
836
uinfo->value.integer.max = 1;
sound/pci/ice1712/aureon.c
933
uinfo->value.integer.max = PCM_RES; /* 0dB */
sound/pci/ice1712/ice1712.c
1275
uinfo->value.integer.max = 96;
sound/pci/ice1712/ice1712.c
2117
uinfo->value.integer.max = 255;
sound/pci/ice1712/ice1712.c
2156
uinfo->value.integer.max = 255;
sound/pci/ice1712/ice1724.c
2114
uinfo->value.integer.max = 255;
sound/pci/ice1712/maya44.c
166
uinfo->value.integer.max = vol->maxval;
sound/pci/ice1712/phase.c
323
uinfo->value.integer.max = WM_VOL_MAX;
sound/pci/ice1712/phase.c
470
uinfo->value.integer.max = 0x7F; /* 0dB */
sound/pci/ice1712/phase.c
526
uinfo->value.integer.max = 1;
sound/pci/ice1712/phase.c
630
uinfo->value.integer.max = PCM_RES; /* 0dB */
sound/pci/ice1712/pontis.c
105
uinfo->value.integer.max = DAC_RES; /* 0dB, 0.5dB step */
sound/pci/ice1712/pontis.c
158
uinfo->value.integer.max = ADC_RES; /* 0dB, 0.5dB step */
sound/pci/ice1712/pontis.c
433
uinfo->value.integer.max = 0xffff; /* 16bit */
sound/pci/ice1712/prodigy192.c
136
uinfo->value.integer.max = 0x7f; /* 0dB */
sound/pci/ice1712/prodigy192.c
223
uinfo->value.integer.max = 0x0f; /* 22.5dB */
sound/pci/ice1712/prodigy_hifi.c
247
uinfo->value.integer.max = 0xFF; /* linear */
sound/pci/ice1712/prodigy_hifi.c
355
uinfo->value.integer.max = DAC_RES; /* 0dB, 0.5dB step */
sound/pci/ice1712/prodigy_hifi.c
402
uinfo->value.integer.max = DAC_RES; /* 0dB */
sound/pci/ice1712/prodigy_hifi.c
452
uinfo->value.integer.max = DAC_RES;
sound/pci/ice1712/prodigy_hifi.c
572
uinfo->value.integer.max = ADC_RES; /* 0dB, 0.5dB step */
sound/pci/ice1712/se.c
426
uinfo->value.integer.max = 0xff; /* 0dB */
sound/pci/ice1712/wm8766.c
190
uinfo->value.integer.max = wm->ctl[n].max;
sound/pci/ice1712/wm8766.c
201
return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max,
sound/pci/ice1712/wm8766.c
225
val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min);
sound/pci/ice1712/wm8766.c
227
val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min);
sound/pci/ice1712/wm8766.c
247
regval1 = wm->ctl[n].max - (regval1 - wm->ctl[n].min);
sound/pci/ice1712/wm8766.c
248
regval2 = wm->ctl[n].max - (regval2 - wm->ctl[n].min);
sound/pci/ice1712/wm8766.c
300
wm->ctl[num].max = 1;
sound/pci/ice1712/wm8766.c
38
.max = 0xff,
sound/pci/ice1712/wm8766.c
49
.max = 0xff,
sound/pci/ice1712/wm8766.c
60
.max = 0xff,
sound/pci/ice1712/wm8766.h
124
u16 reg1, reg2, mask1, mask2, min, max, flags;
sound/pci/ice1712/wm8776.c
137
.max = 0xff,
sound/pci/ice1712/wm8776.c
164
.max = 0x7f,
sound/pci/ice1712/wm8776.c
224
.max = 0xff,
sound/pci/ice1712/wm8776.c
271
.max = 5, /* .enum_names item count */
sound/pci/ice1712/wm8776.c
281
.max = 15,
sound/pci/ice1712/wm8776.c
289
.max = 11, /* .enum_names item count */
sound/pci/ice1712/wm8776.c
300
.max = 11, /* .enum_names item count */
sound/pci/ice1712/wm8776.c
310
.max = 8, /* .enum_names item count */
sound/pci/ice1712/wm8776.c
322
.max = 12,
sound/pci/ice1712/wm8776.c
331
.max = 15,
sound/pci/ice1712/wm8776.c
340
.max = 11, /* .enum_names item count */
sound/pci/ice1712/wm8776.c
351
.max = 11, /* .enum_names item count */
sound/pci/ice1712/wm8776.c
363
.max = 7,
sound/pci/ice1712/wm8776.c
373
.max = 15,
sound/pci/ice1712/wm8776.c
383
.max = 16, /* .enum_names item count */
sound/pci/ice1712/wm8776.c
401
.max = 7,
sound/pci/ice1712/wm8776.c
460
uinfo->value.integer.max = wm->ctl[n].max;
sound/pci/ice1712/wm8776.c
471
return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max,
sound/pci/ice1712/wm8776.c
495
val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min);
sound/pci/ice1712/wm8776.c
497
val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min);
sound/pci/ice1712/wm8776.c
517
regval1 = wm->ctl[n].max - (regval1 - wm->ctl[n].min);
sound/pci/ice1712/wm8776.c
518
regval2 = wm->ctl[n].max - (regval2 - wm->ctl[n].min);
sound/pci/ice1712/wm8776.c
570
wm->ctl[num].max = 1;
sound/pci/ice1712/wm8776.h
180
u16 reg1, reg2, mask1, mask2, min, max, flags;
sound/pci/ice1712/wtm.c
186
uinfo->value.integer.max = 0x7f; /* 0dB */
sound/pci/ice1712/wtm.c
321
uinfo->value.integer.max = 0x0f; /* 22.5dB */
sound/pci/korg1212/korg1212.c
1682
uinfo->value.integer.max = k1212MaxVolume;
sound/pci/korg1212/korg1212.c
1800
uinfo->value.integer.max = k1212MinADCSens;
sound/pci/lola/lola_mixer.c
467
uinfo->value.integer.max = chip->pin[dir].pins[0].amp_num_steps;
sound/pci/lola/lola_mixer.c
564
uinfo->value.integer.max = 1;
sound/pci/lola/lola_mixer.c
626
uinfo->value.integer.max = 409;
sound/pci/lola/lola_mixer.c
707
uinfo->value.integer.max = 433;
sound/pci/lx6464es/lx6464es.c
821
uinfo->value.integer.max = 1;
sound/pci/maestro3.c
2142
chip->mixer_list.max = MAX_VIRTUAL_MIXER_CHANNELS;
sound/pci/maestro3.c
2145
chip->adc1_list.max = MAX_VIRTUAL_ADC1_CHANNELS;
sound/pci/maestro3.c
2148
chip->dma_list.max = MAX_VIRTUAL_DMA_CHANNELS;
sound/pci/maestro3.c
2151
chip->msrc_list.max = MAX_INSTANCE_MINISRC;
sound/pci/maestro3.c
689
int max;
sound/pci/mixart/mixart_mixer.c
336
uinfo->value.integer.max = MIXART_ANALOG_PLAYBACK_LEVEL_MAX; /* 0 dB */
sound/pci/mixart/mixart_mixer.c
339
uinfo->value.integer.max = MIXART_ANALOG_CAPTURE_LEVEL_MAX; /* 31.5 dB */
sound/pci/mixart/mixart_mixer.c
812
uinfo->value.integer.max = MIXART_DIGITAL_LEVEL_MAX; /* 18.0 dB */
sound/pci/oxygen/oxygen_mixer.c
24
info->value.integer.max = chip->model.dac_volume_max;
sound/pci/oxygen/oxygen_mixer.c
453
info->value.integer.max = 1;
sound/pci/oxygen/oxygen_mixer.c
578
info->value.integer.max = 0x1f;
sound/pci/oxygen/oxygen_mixer.c
672
info->value.integer.max = 7;
sound/pci/oxygen/xonar_dg_mixer.c
198
info->value.integer.max = 2 * 12;
sound/pci/oxygen/xonar_dg_mixer.c
98
info->value.integer.max = 255;
sound/pci/oxygen/xonar_wm87x6.c
565
u8 max;
sound/pci/oxygen/xonar_wm87x6.c
568
max = (ctl->private_value >> 12) & 0xf;
sound/pci/oxygen/xonar_wm87x6.c
592
return snd_ctl_enum_info(info, 1, max + 1, names);
sound/pci/oxygen/xonar_wm87x6.c
601
info->value.integer.max = (ctl->private_value >> 12) & 0xf;
sound/pci/oxygen/xonar_wm87x6.c
610
u8 min, max, shift;
sound/pci/oxygen/xonar_wm87x6.c
624
max = (ctl->private_value >> 12) & 0xf;
sound/pci/oxygen/xonar_wm87x6.c
631
value = max - (value - min);
sound/pci/oxygen/xonar_wm87x6.c
641
u8 min, max;
sound/pci/oxygen/xonar_wm87x6.c
645
max = (ctl->private_value >> 12) & 0xf;
sound/pci/oxygen/xonar_wm87x6.c
646
if (value < min || value > max)
sound/pci/oxygen/xonar_wm87x6.c
689
info->value.integer.max = 0x7f;
sound/pci/oxygen/xonar_wm87x6.c
800
info->value.integer.max = 0xff;
sound/pci/oxygen/xonar_wm87x6.c
967
#define _WM8776_FIELD_CTL(xname, reg, shift, initval, min, max, mask, flags) \
sound/pci/oxygen/xonar_wm87x6.c
970
.private_value = (initval) | ((min) << 8) | ((max) << 12) | \
sound/pci/oxygen/xonar_wm87x6.c
972
#define WM8776_FIELD_CTL_ENUM(xname, reg, shift, init, min, max, mask, flags) {\
sound/pci/oxygen/xonar_wm87x6.c
974
reg, shift, init, min, max, mask, flags), \
sound/pci/pcxhr/pcxhr.c
1569
if (i >= max(mgr->playback_chips, mgr->capture_chips))
sound/pci/pcxhr/pcxhr_mix22.c
705
uinfo->value.integer.max = HR222_MICRO_CAPTURE_LEVEL_MAX; /* +7 dB */
sound/pci/pcxhr/pcxhr_mix22.c
755
uinfo->value.integer.max = 3; /* 54 dB */
sound/pci/pcxhr/pcxhr_mixer.c
102
uinfo->value.integer.max =
sound/pci/pcxhr/pcxhr_mixer.c
340
uinfo->value.integer.max = PCXHR_DIGITAL_LEVEL_MAX; /* 18.0 dB */
sound/pci/pcxhr/pcxhr_mixer.c
796
uinfo->value.integer.max = 192000; /* max sample rate 192 kHz */
sound/pci/pcxhr/pcxhr_mixer.c
85
uinfo->value.integer.max =
sound/pci/pcxhr/pcxhr_mixer.c
90
uinfo->value.integer.max =
sound/pci/pcxhr/pcxhr_mixer.c
97
uinfo->value.integer.max =
sound/pci/rme96.c
2135
uinfo->value.integer.max = RME96_185X_MAX_OUT(rme96);
sound/pci/rme9652/hdsp.c
2387
int change, max;
sound/pci/rme9652/hdsp.c
2396
max = 6;
sound/pci/rme9652/hdsp.c
2399
max = 4;
sound/pci/rme9652/hdsp.c
2402
max = 3;
sound/pci/rme9652/hdsp.c
2408
val = ucontrol->value.enumerated.item[0] % max;
sound/pci/rme9652/hdsp.c
2572
uinfo->value.integer.max = 65536;
sound/pci/rme9652/hdsp.c
2814
uinfo->value.integer.max = 5000;
sound/pci/rme9652/hdsp.c
4297
.max = hdsp->qs_in_channels,
sound/pci/rme9652/hdsp.c
4301
} else if (r->min > 48000 && r->max <= 96000) {
sound/pci/rme9652/hdsp.c
4304
.max = hdsp->ds_in_channels,
sound/pci/rme9652/hdsp.c
4308
} else if (r->max < 64000) {
sound/pci/rme9652/hdsp.c
4311
.max = hdsp->ss_in_channels,
sound/pci/rme9652/hdsp.c
4328
.max = hdsp->qs_out_channels,
sound/pci/rme9652/hdsp.c
4332
} else if (r->min > 48000 && r->max <= 96000) {
sound/pci/rme9652/hdsp.c
4335
.max = hdsp->ds_out_channels,
sound/pci/rme9652/hdsp.c
4339
} else if (r->max < 64000) {
sound/pci/rme9652/hdsp.c
4342
.max = hdsp->ss_out_channels,
sound/pci/rme9652/hdsp.c
4359
.max = 48000,
sound/pci/rme9652/hdsp.c
4363
} else if (c->max <= hdsp->qs_out_channels && hdsp->io_type == H9632) {
sound/pci/rme9652/hdsp.c
4366
.max = 192000,
sound/pci/rme9652/hdsp.c
4370
} else if (c->max <= hdsp->ds_out_channels) {
sound/pci/rme9652/hdsp.c
4373
.max = 96000,
sound/pci/rme9652/hdsp.c
4390
.max = 48000,
sound/pci/rme9652/hdsp.c
4394
} else if (c->max <= hdsp->qs_in_channels && hdsp->io_type == H9632) {
sound/pci/rme9652/hdsp.c
4397
.max = 192000,
sound/pci/rme9652/hdsp.c
4401
} else if (c->max <= hdsp->ds_in_channels) {
sound/pci/rme9652/hdsp.c
4404
.max = 96000,
sound/pci/rme9652/hdspm.c
2228
uinfo->value.integer.max = 207000;
sound/pci/rme9652/hdspm.c
3604
uinfo->value.integer.max = 65535;
sound/pci/rme9652/hdspm.c
3705
uinfo->value.integer.max = 64;
sound/pci/rme9652/hdspm.c
4403
uinfo->value.integer.max = 1;
sound/pci/rme9652/hdspm.c
5830
if (r->min > 96000 && r->max <= 192000) {
sound/pci/rme9652/hdspm.c
5833
.max = hdspm->qs_in_channels,
sound/pci/rme9652/hdspm.c
5837
} else if (r->min > 48000 && r->max <= 96000) {
sound/pci/rme9652/hdspm.c
5840
.max = hdspm->ds_in_channels,
sound/pci/rme9652/hdspm.c
5844
} else if (r->max < 64000) {
sound/pci/rme9652/hdspm.c
5847
.max = hdspm->ss_in_channels,
sound/pci/rme9652/hdspm.c
5865
if (r->min > 96000 && r->max <= 192000) {
sound/pci/rme9652/hdspm.c
5868
.max = hdspm->qs_out_channels,
sound/pci/rme9652/hdspm.c
5872
} else if (r->min > 48000 && r->max <= 96000) {
sound/pci/rme9652/hdspm.c
5875
.max = hdspm->ds_out_channels,
sound/pci/rme9652/hdspm.c
5879
} else if (r->max < 64000) {
sound/pci/rme9652/hdspm.c
5882
.max = hdspm->ss_out_channels,
sound/pci/rme9652/hdspm.c
5903
.max = 48000,
sound/pci/rme9652/hdspm.c
5907
} else if (c->max <= hdspm->qs_in_channels) {
sound/pci/rme9652/hdspm.c
5910
.max = 192000,
sound/pci/rme9652/hdspm.c
5914
} else if (c->max <= hdspm->ds_in_channels) {
sound/pci/rme9652/hdspm.c
5917
.max = 96000,
sound/pci/rme9652/hdspm.c
5937
.max = 48000,
sound/pci/rme9652/hdspm.c
5941
} else if (c->max <= hdspm->qs_out_channels) {
sound/pci/rme9652/hdspm.c
5944
.max = 192000,
sound/pci/rme9652/hdspm.c
5948
} else if (c->max <= hdspm->ds_out_channels) {
sound/pci/rme9652/hdspm.c
5951
.max = 96000,
sound/pci/rme9652/rme9652.c
1183
int change, max;
sound/pci/rme9652/rme9652.c
1188
max = rme9652->ss_channels == RME9652_NCHANNELS ? 4 : 3;
sound/pci/rme9652/rme9652.c
1189
val = ucontrol->value.enumerated.item[0] % max;
sound/pci/rme9652/rme9652.c
1202
uinfo->value.integer.max = 1;
sound/pci/rme9652/rme9652.c
1293
uinfo->value.integer.max = 96000;
sound/pci/rme9652/rme9652.c
2149
.max = rme9652->ds_channels,
sound/pci/rme9652/rme9652.c
2153
} else if (r->max < 88200) {
sound/pci/rme9652/rme9652.c
2156
.max = rme9652->ss_channels,
sound/pci/rme9652/rme9652.c
2173
.max = 48000,
sound/pci/rme9652/rme9652.c
2177
} else if (c->max <= rme9652->ds_channels) {
sound/pci/rme9652/rme9652.c
2180
.max = 96000,
sound/pci/sonicvibes.c
536
hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE)->max) {
sound/pci/sonicvibes.c
919
uinfo->value.integer.max = mask;
sound/pci/sonicvibes.c
973
uinfo->value.integer.max = mask;
sound/pci/trident/trident_main.c
2513
uinfo->value.integer.max = 255;
sound/pci/trident/trident_main.c
2584
uinfo->value.integer.max = 255;
sound/pci/trident/trident_main.c
2586
uinfo->value.integer.max = 1023;
sound/pci/trident/trident_main.c
2649
uinfo->value.integer.max = 127;
sound/pci/trident/trident_main.c
2711
uinfo->value.integer.max = 127;
sound/pci/trident/trident_main.c
2768
uinfo->value.integer.max = 127;
sound/pci/via82xx.c
1666
uinfo->value.integer.max = VIA_DXS_MAX_VOLUME;
sound/pci/vx222/vx222_ops.c
863
uinfo->value.integer.max = MIC_LEVEL_MAX;
sound/pci/vx222/vx222_ops.c
905
uinfo->value.integer.max = MIC_LEVEL_MAX;
sound/pci/ymfpci/ymfpci_main.c
1468
uinfo->value.integer.max = 16383;
sound/pci/ymfpci/ymfpci_main.c
1669
uinfo->value.integer.max = 0x8000;
sound/pcmcia/vx/vxp_mixer.c
26
uinfo->value.integer.max = MIC_LEVEL_MAX;
sound/ppc/awacs.c
129
uinfo->value.integer.max = 15;
sound/ppc/awacs.c
319
uinfo->value.integer.max = 31;
sound/ppc/awacs.c
385
uinfo->value.integer.max = 14;
sound/ppc/awacs.c
425
uinfo->value.integer.max = 99;
sound/ppc/awacs.c
527
uinfo->value.integer.max = 3;
sound/ppc/beep.c
165
uinfo->value.integer.max = 100;
sound/ppc/burgundy.c
162
uinfo->value.integer.max = 100;
sound/ppc/burgundy.c
238
uinfo->value.integer.max = 100;
sound/ppc/burgundy.c
285
uinfo->value.integer.max = 15;
sound/ppc/burgundy.c
347
uinfo->value.integer.max = 1;
sound/ppc/burgundy.c
403
uinfo->value.integer.max = 1;
sound/ppc/daca.c
119
uinfo->value.integer.max = DACA_VOL_MAX;
sound/ppc/tumbler.c
248
uinfo->value.integer.max = ARRAY_SIZE(master_volume_table) - 1;
sound/ppc/tumbler.c
395
uinfo->value.integer.max =
sound/ppc/tumbler.c
484
unsigned int max;
sound/ppc/tumbler.c
499
if (vol >= info->max)
sound/ppc/tumbler.c
500
vol = info->max - 1;
sound/ppc/tumbler.c
521
uinfo->value.integer.max = info->max - 1;
sound/ppc/tumbler.c
551
if (vol >= info->max)
sound/ppc/tumbler.c
566
.max = ARRAY_SIZE(mixer_volume_table),
sound/ppc/tumbler.c
574
.max = ARRAY_SIZE(bass_volume_table),
sound/ppc/tumbler.c
582
.max = ARRAY_SIZE(treble_volume_table),
sound/ppc/tumbler.c
591
.max = ARRAY_SIZE(snapper_bass_volume_table),
sound/ppc/tumbler.c
599
.max = ARRAY_SIZE(snapper_treble_volume_table),
sound/ppc/tumbler.c
669
uinfo->value.integer.max = ARRAY_SIZE(mixer_volume_table) - 1;
sound/sh/aica.c
465
uinfo->value.integer.max = 0xFF;
sound/soc/amd/acp3x-rt5682-max9836.c
294
SND_SOC_DAILINK_DEF(max,
sound/soc/amd/acp3x-rt5682-max9836.c
497
links[1].codecs = max;
sound/soc/amd/acp3x-rt5682-max9836.c
498
links[1].num_codecs = ARRAY_SIZE(max);
sound/soc/apple/mca.c
401
serdes_conf = FIELD_PREP(SERDES_CONF_NCHANS, max(slots, 1) - 1);
sound/soc/atmel/atmel-pdmic.c
308
int max = mc->max;
sound/soc/atmel/atmel-pdmic.c
314
if (val > max)
sound/soc/atmel/atmel_ssc_dai.c
249
t.max = ssc_p->mck_rate / mck_div / frame_size;
sound/soc/atmel/mchp-pdmc.c
219
uinfo->value.integer.max = SNDRV_CHMAP_RR; /* maxmimum 4 channels */
sound/soc/atmel/mchp-spdifrx.c
692
uinfo->value.integer.max = 1;
sound/soc/atmel/mchp-spdifrx.c
830
uinfo->value.integer.max = 192000;
sound/soc/codecs/88pm860x-codec.c
333
int max = mc->max, val, val2;
sound/soc/codecs/88pm860x-codec.c
334
unsigned int mask = (1 << fls(max)) - 1;
sound/soc/codecs/88pm860x-codec.c
338
ucontrol->value.integer.value[0] = (max - val) & mask;
sound/soc/codecs/88pm860x-codec.c
339
ucontrol->value.integer.value[1] = (max - val2) & mask;
sound/soc/codecs/88pm860x-codec.c
353
int max = mc->max;
sound/soc/codecs/88pm860x-codec.c
354
unsigned int mask = (1 << fls(max)) - 1;
sound/soc/codecs/88pm860x-codec.c
359
val = ((max - ucontrol->value.integer.value[0]) & mask);
sound/soc/codecs/88pm860x-codec.c
360
val2 = ((max - ucontrol->value.integer.value[1]) & mask);
sound/soc/codecs/ab8500-codec.c
1274
uinfo->value.integer.max = fc->max;
sound/soc/codecs/ab8500-codec.c
68
{.count = xcount, .min = xmin, .max = xmax} }
sound/soc/codecs/ab8500-codec.c
71
long min, max;
sound/soc/codecs/ak4458.c
349
int pcm_width = max(params_physical_width(params), ak4458->slot_width);
sound/soc/codecs/ak5558.c
178
int pcm_width = max(params_physical_width(params), ak5558->slot_width);
sound/soc/codecs/arizona-jack.c
1447
if (info->micd_ranges[i - 1].max >
sound/soc/codecs/arizona-jack.c
1448
info->micd_ranges[i].max) {
sound/soc/codecs/arizona-jack.c
1462
if (arizona_micd_levels[j] >= info->micd_ranges[i].max)
sound/soc/codecs/arizona-jack.c
1467
info->micd_ranges[i].max);
sound/soc/codecs/arizona-jack.c
338
int max;
sound/soc/codecs/arizona-jack.c
429
(val >= arizona_hpdet_c_ranges[range].max)) {
sound/soc/codecs/arizona-jack.c
433
arizona_hpdet_c_ranges[range].max);
sound/soc/codecs/arizona-jack.c
76
{ .max = 11, .key = BTN_0 },
sound/soc/codecs/arizona-jack.c
77
{ .max = 28, .key = BTN_1 },
sound/soc/codecs/arizona-jack.c
78
{ .max = 54, .key = BTN_2 },
sound/soc/codecs/arizona-jack.c
79
{ .max = 100, .key = BTN_3 },
sound/soc/codecs/arizona-jack.c
80
{ .max = 186, .key = BTN_4 },
sound/soc/codecs/arizona-jack.c
81
{ .max = 430, .key = BTN_5 },
sound/soc/codecs/arizona.c
2053
unsigned int max;
sound/soc/codecs/arizona.c
2085
unsigned int max;
sound/soc/codecs/arizona.c
2138
if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) {
sound/soc/codecs/arizona.c
2306
if (fll_gains[i].min <= Fref && Fref <= fll_gains[i].max) {
sound/soc/codecs/audio-iio-aux.c
177
ret = iio_read_max_channel_raw(chan->iio_chan, &chan->max);
sound/soc/codecs/audio-iio-aux.c
189
if (chan->min > chan->max) {
sound/soc/codecs/audio-iio-aux.c
197
swap(chan->min, chan->max);
sound/soc/codecs/audio-iio-aux.c
202
chan->is_invert_range ? chan->max : chan->min);
sound/soc/codecs/audio-iio-aux.c
217
i, chan->name, chan->min, chan->max,
sound/soc/codecs/audio-iio-aux.c
23
int max;
sound/soc/codecs/audio-iio-aux.c
41
uinfo->value.integer.max = chan->max - chan->min;
sound/soc/codecs/audio-iio-aux.c
42
uinfo->type = (uinfo->value.integer.max == 1) ?
sound/soc/codecs/audio-iio-aux.c
51
int max = chan->max;
sound/soc/codecs/audio-iio-aux.c
63
ucontrol->value.integer.value[0] = max - ucontrol->value.integer.value[0];
sound/soc/codecs/audio-iio-aux.c
72
int max = chan->max;
sound/soc/codecs/audio-iio-aux.c
82
if (val > max - min)
sound/soc/codecs/audio-iio-aux.c
87
val = max - val;
sound/soc/codecs/aw88081.c
1024
if (value < mc->min || value > mc->max)
sound/soc/codecs/aw88081.c
832
if (time < mc->min || time > mc->max)
sound/soc/codecs/aw88081.c
866
if (time < mc->min || time > mc->max)
sound/soc/codecs/aw88081.c
987
if (value < mc->min || value > mc->max)
sound/soc/codecs/aw88166.c
1302
if (time < mc->min || time > mc->max)
sound/soc/codecs/aw88166.c
1336
if (time < mc->min || time > mc->max)
sound/soc/codecs/aw88166.c
1457
if (value < mc->min || value > mc->max)
sound/soc/codecs/aw88166.c
1491
if (value < mc->min || value > mc->max)
sound/soc/codecs/aw88166.c
1525
if (value < mc->min || value > mc->max)
sound/soc/codecs/aw88261.c
760
if (time < mc->min || time > mc->max)
sound/soc/codecs/aw88261.c
794
if (time < mc->min || time > mc->max)
sound/soc/codecs/aw88261.c
915
if (value < mc->min || value > mc->max)
sound/soc/codecs/aw88261.c
949
if (value < mc->min || value > mc->max)
sound/soc/codecs/aw88395/aw88395.c
128
if (time < mc->min || time > mc->max)
sound/soc/codecs/aw88395/aw88395.c
162
if (time < mc->min || time > mc->max)
sound/soc/codecs/aw88395/aw88395.c
268
if (value < mc->min || value > mc->max)
sound/soc/codecs/aw88395/aw88395.c
302
if (value < mc->min || value > mc->max)
sound/soc/codecs/aw88395/aw88395.c
336
if (value < mc->min || value > mc->max)
sound/soc/codecs/aw88399.c
1591
if (time < mc->min || time > mc->max)
sound/soc/codecs/aw88399.c
1625
if (time < mc->min || time > mc->max)
sound/soc/codecs/aw88399.c
1746
if (value < mc->min || value > mc->max)
sound/soc/codecs/aw88399.c
1780
if (value < mc->min || value > mc->max)
sound/soc/codecs/aw88399.c
1814
if (value < mc->min || value > mc->max)
sound/soc/codecs/cros_ec_codec.c
147
int max_dmic_gain = control->max;
sound/soc/codecs/cros_ec_codec.c
213
control->max = r.max_gain;
sound/soc/codecs/cros_ec_codec.c
83
msg = kmalloc(sizeof(*msg) + max(outsize, insize), GFP_KERNEL);
sound/soc/codecs/cs-amp-lib.c
541
num_entries = max(num_amps, amp_index + 1);
sound/soc/codecs/cs4234.c
453
.max = mclk / clamp(mclk / 50000, 256, 512),
sound/soc/codecs/cs4234.c
457
.max = mclk / clamp(mclk / 100000, 128, 256),
sound/soc/codecs/cs42l42-sdw.c
479
dbnce = max(cs42l42->ts_dbnc_rise, cs42l42->ts_dbnc_fall);
sound/soc/codecs/cs42l84.c
95
if (vola < mc->min || vola > mc->max || volb < mc->min || volb > mc->max)
sound/soc/codecs/cs48l32.c
995
uinfo->value.integer.max = ctl->max;
sound/soc/codecs/cs48l32.h
182
.shift = xshift, .block_base = xbase, .max = 65535 } }
sound/soc/codecs/cs48l32.h
308
unsigned int max;
sound/soc/codecs/da7218.c
455
unsigned int mask = (mc->max << lshift) | (mc->max << rshift);
sound/soc/codecs/da7218.c
524
unsigned int mask = (mixer_ctrl->max << lshift) |
sound/soc/codecs/da7218.c
525
(mixer_ctrl->max << rshift);
sound/soc/codecs/da7218.c
549
unsigned int lmask = (mixer_ctrl->max << lshift);
sound/soc/codecs/da7218.c
550
unsigned int rmask = (mixer_ctrl->max << rshift);
sound/soc/codecs/da7218.c
569
switch (bytes_ext->max) {
sound/soc/codecs/da7218.c
572
bytes_ext->max);
sound/soc/codecs/da7218.c
576
bytes_ext->max);
sound/soc/codecs/da7218.c
600
switch (bytes_ext->max) {
sound/soc/codecs/da7218.c
604
bytes_ext->max);
sound/soc/codecs/da7218.c
609
bytes_ext->max);
sound/soc/codecs/da7218.c
620
for (i = 0; i < bytes_ext->max; ++i) {
sound/soc/codecs/framer-codec.c
80
ch.max = nb_ts * 8 / width;
sound/soc/codecs/framer-codec.c
86
ch.min = ch.max ? 1 : 0;
sound/soc/codecs/idt821034.c
408
int max = mc->max;
sound/soc/codecs/idt821034.c
409
unsigned int mask = (1 << fls(max)) - 1;
sound/soc/codecs/idt821034.c
425
ucontrol->value.integer.value[0] = max - ucontrol->value.integer.value[0];
sound/soc/codecs/idt821034.c
440
int max = mc->max;
sound/soc/codecs/idt821034.c
441
unsigned int mask = (1 << fls(max)) - 1;
sound/soc/codecs/idt821034.c
449
if (val > max - min)
sound/soc/codecs/idt821034.c
453
val = (max - val) & mask;
sound/soc/codecs/inno_rk3036.c
42
uinfo->value.integer.max = 1;
sound/soc/codecs/lochnagar-sc.c
62
.max = 24576000 / hw_param_interval(params, rule->deps[0])->max,
sound/soc/codecs/lpass-rx-macro.c
2937
memcpy(&coeff[0], ucontrol->value.bytes.data, params->max);
sound/soc/codecs/lpass-rx-macro.c
2970
memcpy(ucontrol->value.bytes.data, &coeff[0], params->max);
sound/soc/codecs/lpass-rx-macro.c
2983
ucontrol->count = params->max;
sound/soc/codecs/lpass-rx-macro.c
606
.bytes_ext = {.max = RX_MACRO_IIR_FILTER_SIZE, }, \
sound/soc/codecs/madera.c
3378
unsigned int max;
sound/soc/codecs/madera.c
3410
unsigned int max;
sound/soc/codecs/madera.c
3436
fref <= fll_sync_fratios[i].max) {
sound/soc/codecs/madera.c
3596
if (gains[i].min <= fref && fref <= gains[i].max) {
sound/soc/codecs/max98090.c
354
unsigned int mask = (1 << fls(mc->max)) - 1;
sound/soc/codecs/max98090.c
394
unsigned int mask = (1 << fls(mc->max)) - 1;
sound/soc/codecs/max98090.c
417
if (sel_unchecked < 0 || sel_unchecked > mc->max)
sound/soc/codecs/msm8916-wcd-digital.c
217
.bytes_ext = {.max = WCD_IIR_FILTER_SIZE, }, \
sound/soc/codecs/msm8916-wcd-digital.c
440
memcpy(ucontrol->value.bytes.data, &coeff[0], params->max);
sound/soc/codecs/msm8916-wcd-digital.c
479
memcpy(&coeff[0], ucontrol->value.bytes.data, params->max);
sound/soc/codecs/msm8916-wcd-digital.c
504
ucontrol->count = params->max;
sound/soc/codecs/nau8325.c
306
(srate_table->max ? NAU8325_REG_DIV_MAX : 0));
sound/soc/codecs/nau8325.c
442
(*srate_table)->max ? "MAX" : "MIN",
sound/soc/codecs/nau8325.h
382
bool max;
sound/soc/codecs/nau8810.c
176
for (i = 0; i < params->max / sizeof(u16); i++) {
sound/soc/codecs/nau8810.c
208
params->max, GFP_KERNEL | GFP_DMA);
sound/soc/codecs/nau8810.c
214
for (i = 0; i < params->max / sizeof(u16); i++) {
sound/soc/codecs/nau8821.c
293
ucontrol->value.bytes.data, params->max);
sound/soc/codecs/nau8821.c
308
params->max, GFP_KERNEL | GFP_DMA);
sound/soc/codecs/nau8821.c
313
data, params->max);
sound/soc/codecs/nau8822.c
191
for (i = 0; i < params->max / sizeof(u16); i++) {
sound/soc/codecs/nau8822.c
222
params->max, GFP_KERNEL | GFP_DMA);
sound/soc/codecs/nau8822.c
228
for (i = 0; i < params->max / sizeof(u16); i++) {
sound/soc/codecs/nau8825.c
1005
ucontrol->value.bytes.data, params->max);
sound/soc/codecs/nau8825.c
1020
params->max, GFP_KERNEL | GFP_DMA);
sound/soc/codecs/nau8825.c
1027
data, params->max);
sound/soc/codecs/ntp8835.c
86
uinfo->value.integer.max = 1;
sound/soc/codecs/pcm512x.c
573
ranges[0].max = pcm512x_sck_max(pcm512x) / frame_size / 2;
sound/soc/codecs/pcm512x.c
575
ranges[1].max = 384000;
sound/soc/codecs/pcm6240.c
101
.max = 0xff,
sound/soc/codecs/pcm6240.c
107
.max = 0xff,
sound/soc/codecs/pcm6240.c
113
.max = 0xff,
sound/soc/codecs/pcm6240.c
1149
uinfo->value.integer.max = max(0, pcm_dev->regbin.ncfgs - 1);
sound/soc/codecs/pcm6240.c
1175
int max = pcm_dev->regbin.ncfgs - 1;
sound/soc/codecs/pcm6240.c
1178
nr_profile = clamp(nr_profile, 0, max);
sound/soc/codecs/pcm6240.c
119
.max = 0xff,
sound/soc/codecs/pcm6240.c
1197
uinfo->value.integer.max = mc->max;
sound/soc/codecs/pcm6240.c
125
.max = 0xff,
sound/soc/codecs/pcm6240.c
131
.max = 0xff,
sound/soc/codecs/pcm6240.c
137
.max = 0xff,
sound/soc/codecs/pcm6240.c
146
.max = 0x42,
sound/soc/codecs/pcm6240.c
152
.max = 0x42,
sound/soc/codecs/pcm6240.c
158
.max = 0x42,
sound/soc/codecs/pcm6240.c
164
.max = 0x42,
sound/soc/codecs/pcm6240.c
173
.max = 0xff,
sound/soc/codecs/pcm6240.c
179
.max = 0xff,
sound/soc/codecs/pcm6240.c
185
.max = 0xff,
sound/soc/codecs/pcm6240.c
191
.max = 0xff,
sound/soc/codecs/pcm6240.c
200
.max = 0x42,
sound/soc/codecs/pcm6240.c
206
.max = 0x42,
sound/soc/codecs/pcm6240.c
212
.max = 0x42,
sound/soc/codecs/pcm6240.c
218
.max = 0x42,
sound/soc/codecs/pcm6240.c
224
.max = 0x42,
sound/soc/codecs/pcm6240.c
230
.max = 0x42,
sound/soc/codecs/pcm6240.c
239
.max = 0xff,
sound/soc/codecs/pcm6240.c
245
.max = 0xff,
sound/soc/codecs/pcm6240.c
251
.max = 0xff,
sound/soc/codecs/pcm6240.c
257
.max = 0xff,
sound/soc/codecs/pcm6240.c
263
.max = 0xff,
sound/soc/codecs/pcm6240.c
269
.max = 0xff,
sound/soc/codecs/pcm6240.c
278
.max = 0xff,
sound/soc/codecs/pcm6240.c
284
.max = 0xff,
sound/soc/codecs/pcm6240.c
293
.max = 0xff,
sound/soc/codecs/pcm6240.c
299
.max = 0xff,
sound/soc/codecs/pcm6240.c
305
.max = 0xff,
sound/soc/codecs/pcm6240.c
311
.max = 0xff,
sound/soc/codecs/pcm6240.c
320
.max = 0xf,
sound/soc/codecs/pcm6240.c
326
.max = 0xf,
sound/soc/codecs/pcm6240.c
332
.max = 0xf,
sound/soc/codecs/pcm6240.c
338
.max = 0xf,
sound/soc/codecs/pcm6240.c
347
.max = 0xff,
sound/soc/codecs/pcm6240.c
353
.max = 0xff,
sound/soc/codecs/pcm6240.c
359
.max = 0xff,
sound/soc/codecs/pcm6240.c
365
.max = 0xff,
sound/soc/codecs/pcm6240.c
371
.max = 0xff,
sound/soc/codecs/pcm6240.c
377
.max = 0xff,
sound/soc/codecs/pcm6240.c
383
.max = 0xff,
sound/soc/codecs/pcm6240.c
389
.max = 0xff,
sound/soc/codecs/pcm6240.c
398
.max = 0xf,
sound/soc/codecs/pcm6240.c
404
.max = 0xf,
sound/soc/codecs/pcm6240.c
410
.max = 0xf,
sound/soc/codecs/pcm6240.c
416
.max = 0xf,
sound/soc/codecs/pcm6240.c
422
.max = 0xf,
sound/soc/codecs/pcm6240.c
428
.max = 0xf,
sound/soc/codecs/pcm6240.c
434
.max = 0xf,
sound/soc/codecs/pcm6240.c
440
.max = 0xf,
sound/soc/codecs/pcm6240.c
449
.max = 0xff,
sound/soc/codecs/pcm6240.c
455
.max = 0xff,
sound/soc/codecs/pcm6240.c
461
.max = 0xff,
sound/soc/codecs/pcm6240.c
467
.max = 0xff,
sound/soc/codecs/pcm6240.c
476
.max = 0xf,
sound/soc/codecs/pcm6240.c
482
.max = 0xf,
sound/soc/codecs/pcm6240.c
488
.max = 0xf,
sound/soc/codecs/pcm6240.c
494
.max = 0xf,
sound/soc/codecs/pcm6240.c
601
int max = mc->max, ret;
sound/soc/codecs/pcm6240.c
602
unsigned int mask = BIT(fls(max)) - 1;
sound/soc/codecs/pcm6240.c
639
val = (val > max) ? max : val;
sound/soc/codecs/pcm6240.c
640
val = mc->invert ? max - val : val;
sound/soc/codecs/pcm6240.c
65
.max = 0x54,
sound/soc/codecs/pcm6240.c
674
int max = mc->max, rc;
sound/soc/codecs/pcm6240.c
675
unsigned int mask = BIT(fls(max)) - 1;
sound/soc/codecs/pcm6240.c
683
val = (val > max) ? max : val;
sound/soc/codecs/pcm6240.c
684
val = mc->invert ? max - val : val;
sound/soc/codecs/pcm6240.c
71
.max = 0x54,
sound/soc/codecs/pcm6240.c
80
.max = 0xff,
sound/soc/codecs/pcm6240.c
86
.max = 0xff,
sound/soc/codecs/pcm6240.c
95
.max = 0xff,
sound/soc/codecs/pcm6240.h
233
int max;
sound/soc/codecs/peb2466.c
260
uinfo->value.integer.max = lkup_ctrl->lookup->count - 1;
sound/soc/codecs/rl6231.c
112
unsigned int max, unsigned int div)
sound/soc/codecs/rl6231.c
116
if (in <= max)
sound/soc/codecs/rl6231.c
119
d = in / max;
sound/soc/codecs/rl6231.c
120
if (in % max)
sound/soc/codecs/rt-sdw-common.h
27
unsigned int max;
sound/soc/codecs/rt-sdw-common.h
33
{.reg_base = xreg_base, .count = xcount, .max = xmax, \
sound/soc/codecs/rt1011.c
1197
uinfo->value.integer.max = 0x17ffffff;
sound/soc/codecs/rt1011.c
1299
uinfo->value.integer.max = 0x1ffffff;
sound/soc/codecs/rt1320-sdw.c
2041
if (gain_l_val > mc->max)
sound/soc/codecs/rt1320-sdw.c
2042
gain_l_val = mc->max;
sound/soc/codecs/rt1320-sdw.c
2043
gain_l_val = 0 - ((mc->max - gain_l_val) * interval_offset);
sound/soc/codecs/rt1320-sdw.c
2048
if (gain_r_val > mc->max)
sound/soc/codecs/rt1320-sdw.c
2049
gain_r_val = mc->max;
sound/soc/codecs/rt1320-sdw.c
2050
gain_r_val = 0 - ((mc->max - gain_r_val) * interval_offset);
sound/soc/codecs/rt1320-sdw.c
2084
if (gain_val[i] > p->max)
sound/soc/codecs/rt1320-sdw.c
2085
gain_val[i] = p->max;
sound/soc/codecs/rt1320-sdw.c
2087
gain_val[i] = 0x1e00 - ((p->max - gain_val[i]) * interval_offset);
sound/soc/codecs/rt1320-sdw.c
2139
ctl_l = mc->max - (((0 - read_l) & 0xffff) / interval_offset);
sound/soc/codecs/rt1320-sdw.c
2142
ctl_r = mc->max - (((0 - read_r) & 0xffff) / interval_offset);
sound/soc/codecs/rt1320-sdw.c
2171
ctl = p->max - (((0x1e00 - regvalue) & 0xffff) / interval_offset);
sound/soc/codecs/rt1320-sdw.c
2256
if (p->max == 1)
sound/soc/codecs/rt1320-sdw.c
2262
uinfo->value.integer.max = p->max;
sound/soc/codecs/rt1320-sdw.c
2406
uinfo->value.integer.max = kcontrol->private_value;
sound/soc/codecs/rt700.c
385
val_ll = (mc->max - ucontrol->value.integer.value[0]) << 7;
sound/soc/codecs/rt700.c
392
if (val_ll > mc->max)
sound/soc/codecs/rt700.c
393
val_ll = mc->max;
sound/soc/codecs/rt700.c
406
val_lr = (mc->max - ucontrol->value.integer.value[1]) << 7;
sound/soc/codecs/rt700.c
413
if (val_lr > mc->max)
sound/soc/codecs/rt700.c
414
val_lr = mc->max;
sound/soc/codecs/rt711-sdca.c
575
if (gain_l_val > mc->max)
sound/soc/codecs/rt711-sdca.c
576
gain_l_val = mc->max;
sound/soc/codecs/rt711-sdca.c
597
if (gain_r_val > mc->max)
sound/soc/codecs/rt711-sdca.c
598
gain_r_val = mc->max;
sound/soc/codecs/rt711-sdca.c
672
ctl_l = mc->max - (ctl_l / 75);
sound/soc/codecs/rt711-sdca.c
693
ctl_r = mc->max - (ctl_r / 75);
sound/soc/codecs/rt711.c
529
val_ll = (mc->max - ucontrol->value.integer.value[0])
sound/soc/codecs/rt711.c
537
if (val_ll > mc->max)
sound/soc/codecs/rt711.c
538
val_ll = mc->max;
sound/soc/codecs/rt711.c
551
val_lr = (mc->max - ucontrol->value.integer.value[1])
sound/soc/codecs/rt711.c
559
if (val_lr > mc->max)
sound/soc/codecs/rt711.c
560
val_lr = mc->max;
sound/soc/codecs/rt712-sdca-dmic.c
266
ctl = p->max - (((0x1e00 - regvalue) & 0xffff) / interval_offset);
sound/soc/codecs/rt712-sdca-dmic.c
295
if (gain_val[i] > p->max)
sound/soc/codecs/rt712-sdca-dmic.c
296
gain_val[i] = p->max;
sound/soc/codecs/rt712-sdca-dmic.c
301
gain_val[i] = 0x1e00 - ((p->max - gain_val[i]) * interval_offset);
sound/soc/codecs/rt712-sdca-dmic.c
382
if (p->max == 1)
sound/soc/codecs/rt712-sdca-dmic.c
388
uinfo->value.integer.max = p->max;
sound/soc/codecs/rt712-sdca-dmic.c
394
{.reg_base = xreg_base, .count = xcount, .max = xmax, \
sound/soc/codecs/rt712-sdca-dmic.h
29
unsigned int max;
sound/soc/codecs/rt712-sdca.c
1065
ctl = p->max - (((0x1e00 - regvalue) & 0xffff) / interval_offset);
sound/soc/codecs/rt712-sdca.c
1094
if (gain_val[i] > p->max)
sound/soc/codecs/rt712-sdca.c
1095
gain_val[i] = p->max;
sound/soc/codecs/rt712-sdca.c
1100
gain_val[i] = 0x1e00 - ((p->max - gain_val[i]) * interval_offset);
sound/soc/codecs/rt712-sdca.c
1180
if (p->max == 1)
sound/soc/codecs/rt712-sdca.c
1186
uinfo->value.integer.max = p->max;
sound/soc/codecs/rt712-sdca.c
1192
{.reg_base = xreg_base, .count = xcount, .max = xmax, \
sound/soc/codecs/rt712-sdca.c
509
if (gain_l_val > mc->max)
sound/soc/codecs/rt712-sdca.c
510
gain_l_val = mc->max;
sound/soc/codecs/rt712-sdca.c
517
gain_l_val = 0x1e00 - ((mc->max - gain_l_val) * interval_offset);
sound/soc/codecs/rt712-sdca.c
519
gain_l_val = 0 - ((mc->max - gain_l_val) * interval_offset);
sound/soc/codecs/rt712-sdca.c
525
if (gain_r_val > mc->max)
sound/soc/codecs/rt712-sdca.c
526
gain_r_val = mc->max;
sound/soc/codecs/rt712-sdca.c
533
gain_r_val = 0x1e00 - ((mc->max - gain_r_val) * interval_offset);
sound/soc/codecs/rt712-sdca.c
535
gain_r_val = 0 - ((mc->max - gain_r_val) * interval_offset);
sound/soc/codecs/rt712-sdca.c
577
ctl_l = mc->max - (((0x1e00 - read_l) & 0xffff) / interval_offset);
sound/soc/codecs/rt712-sdca.c
579
ctl_l = mc->max - (((0 - read_l) & 0xffff) / interval_offset);
sound/soc/codecs/rt712-sdca.c
587
ctl_r = mc->max - (((0x1e00 - read_r) & 0xffff) / interval_offset);
sound/soc/codecs/rt712-sdca.c
589
ctl_r = mc->max - (((0 - read_r) & 0xffff) / interval_offset);
sound/soc/codecs/rt712-sdca.h
53
unsigned int max;
sound/soc/codecs/rt715-sdca.c
151
rt715_sdca_vol_gain(ucontrol->value.integer.value[i], mc->max,
sound/soc/codecs/rt715-sdca.c
186
rt715_sdca_vol_gain(ucontrol->value.integer.value[i], p->max,
sound/soc/codecs/rt715-sdca.c
222
rt715_sdca_boost_gain(ucontrol->value.integer.value[i], p->max,
sound/soc/codecs/rt715-sdca.c
336
ucontrol->value.integer.value[i] = invert ? p->max - val : val;
sound/soc/codecs/rt715-sdca.c
342
invert ? p->max - val : val;
sound/soc/codecs/rt715-sdca.c
358
unsigned int max = p->max;
sound/soc/codecs/rt715-sdca.c
359
unsigned int mask = (1 << fls(max)) - 1;
sound/soc/codecs/rt715-sdca.c
374
val[i * 2] = max - val[i * 2];
sound/soc/codecs/rt715-sdca.c
383
val[i * 2 + 1] = max - val[i * 2 + 1];
sound/soc/codecs/rt715-sdca.c
407
if (p->max == 1)
sound/soc/codecs/rt715-sdca.c
413
uinfo->value.integer.max = p->max;
sound/soc/codecs/rt715-sdca.c
419
{.reg_base = xreg_base, .count = xcount, .max = xmax, \
sound/soc/codecs/rt715-sdca.h
42
unsigned int max;
sound/soc/codecs/rt715.c
162
if (val_ll > mc->max)
sound/soc/codecs/rt715.c
163
val_ll = mc->max;
sound/soc/codecs/rt715.c
171
if (val_lr > mc->max)
sound/soc/codecs/rt715.c
172
val_lr = mc->max;
sound/soc/codecs/rt715.c
472
uinfo->value.integer.max = 1;
sound/soc/codecs/rt715.c
482
uinfo->value.integer.max = 0x3f;
sound/soc/codecs/rt721-sdca.c
365
if (gain_l_val > mc->max)
sound/soc/codecs/rt721-sdca.c
366
gain_l_val = mc->max;
sound/soc/codecs/rt721-sdca.c
380
gain_l_val = 0x1e00 - ((mc->max - gain_l_val) * interval_offset);
sound/soc/codecs/rt721-sdca.c
382
gain_l_val = 0 - ((mc->max - gain_l_val) * interval_offset);
sound/soc/codecs/rt721-sdca.c
388
if (gain_r_val > mc->max)
sound/soc/codecs/rt721-sdca.c
389
gain_r_val = mc->max;
sound/soc/codecs/rt721-sdca.c
403
gain_r_val = 0x1e00 - ((mc->max - gain_r_val) * interval_offset);
sound/soc/codecs/rt721-sdca.c
405
gain_r_val = 0 - ((mc->max - gain_r_val) * interval_offset);
sound/soc/codecs/rt721-sdca.c
459
ctl_l = mc->max - (((0x1e00 - read_l) & 0xffff) / interval_offset);
sound/soc/codecs/rt721-sdca.c
461
ctl_l = mc->max - (((0 - read_l) & 0xffff) / interval_offset);
sound/soc/codecs/rt721-sdca.c
476
ctl_r = mc->max - (((0x1e00 - read_r) & 0xffff) / interval_offset);
sound/soc/codecs/rt721-sdca.c
478
ctl_r = mc->max - (((0 - read_r) & 0xffff) / interval_offset);
sound/soc/codecs/rt721-sdca.c
604
if (p->max == 1)
sound/soc/codecs/rt721-sdca.c
610
uinfo->value.integer.max = p->max;
sound/soc/codecs/rt721-sdca.c
637
ctl = p->max - (((vol_max - regvalue) & 0xffff) / interval_offset);
sound/soc/codecs/rt721-sdca.c
668
if (gain_val[i] > p->max)
sound/soc/codecs/rt721-sdca.c
669
gain_val[i] = p->max;
sound/soc/codecs/rt721-sdca.c
674
gain_val[i] = vol_max - ((p->max - gain_val[i]) * interval_offset);
sound/soc/codecs/rt721-sdca.h
48
unsigned int max;
sound/soc/codecs/rt722-sdca.c
370
if (gain_l_val > mc->max)
sound/soc/codecs/rt722-sdca.c
371
gain_l_val = mc->max;
sound/soc/codecs/rt722-sdca.c
378
gain_l_val = 0x1e00 - ((mc->max - gain_l_val) * interval_offset);
sound/soc/codecs/rt722-sdca.c
380
gain_l_val = 0 - ((mc->max - gain_l_val) * interval_offset);
sound/soc/codecs/rt722-sdca.c
386
if (gain_r_val > mc->max)
sound/soc/codecs/rt722-sdca.c
387
gain_r_val = mc->max;
sound/soc/codecs/rt722-sdca.c
394
gain_r_val = 0x1e00 - ((mc->max - gain_r_val) * interval_offset);
sound/soc/codecs/rt722-sdca.c
396
gain_r_val = 0 - ((mc->max - gain_r_val) * interval_offset);
sound/soc/codecs/rt722-sdca.c
442
ctl_l = mc->max - (((0x1e00 - read_l) & 0xffff) / interval_offset);
sound/soc/codecs/rt722-sdca.c
444
ctl_l = mc->max - (((0 - read_l) & 0xffff) / interval_offset);
sound/soc/codecs/rt722-sdca.c
452
ctl_r = mc->max - (((0x1e00 - read_r) & 0xffff) / interval_offset);
sound/soc/codecs/rt722-sdca.c
454
ctl_r = mc->max - (((0 - read_r) & 0xffff) / interval_offset);
sound/soc/codecs/rt722-sdca.c
580
if (p->max == 1)
sound/soc/codecs/rt722-sdca.c
586
uinfo->value.integer.max = p->max;
sound/soc/codecs/rt722-sdca.c
613
ctl = p->max - (((vol_max - regvalue) & 0xffff) / interval_offset);
sound/soc/codecs/rt722-sdca.c
644
if (gain_val[i] > p->max)
sound/soc/codecs/rt722-sdca.c
645
gain_val[i] = p->max;
sound/soc/codecs/rt722-sdca.c
650
gain_val[i] = vol_max - ((p->max - gain_val[i]) * interval_offset);
sound/soc/codecs/rt722-sdca.c
673
{.reg_base = xreg_base, .count = xcount, .max = xmax, \
sound/soc/codecs/rt722-sdca.h
48
unsigned int max;
sound/soc/codecs/sgtl5000.c
513
uinfo->value.integer.max = 0xfc - 0x3c;
sound/soc/codecs/sma1307.c
494
if (val < mc->min || val > mc->max)
sound/soc/codecs/tas2781-comlib-i2c.c
195
static int tasdevice_clamp(int val, int max, unsigned int invert)
sound/soc/codecs/tas2781-comlib-i2c.c
197
if (val > max)
sound/soc/codecs/tas2781-comlib-i2c.c
198
val = max;
sound/soc/codecs/tas2781-comlib-i2c.c
200
val = max - val;
sound/soc/codecs/tas2781-comlib-i2c.c
211
int max = mc->max;
sound/soc/codecs/tas2781-comlib-i2c.c
215
mask = (1 << fls(max)) - 1;
sound/soc/codecs/tas2781-comlib-i2c.c
217
val = tasdevice_clamp(ucontrol->value.integer.value[0], max, invert);
sound/soc/codecs/tas2781-comlib-i2c.c
237
int max = mc->max;
sound/soc/codecs/tas2781-comlib-i2c.c
248
mask = (1 << fls(max)) - 1;
sound/soc/codecs/tas2781-comlib-i2c.c
251
val = tasdevice_clamp(val, max, invert);
sound/soc/codecs/tas2781-comlib-i2c.c
264
int max = mc->max;
sound/soc/codecs/tas2781-comlib-i2c.c
275
val = tasdevice_clamp(val, max, invert);
sound/soc/codecs/tas2781-comlib-i2c.c
288
int max = mc->max;
sound/soc/codecs/tas2781-comlib-i2c.c
293
val = tasdevice_clamp(ucontrol->value.integer.value[0], max, invert);
sound/soc/codecs/tas2781-i2c.c
1006
uinfo->value.integer.max = tas_priv->ndev - 1;
sound/soc/codecs/tas2781-i2c.c
1017
uinfo->value.integer.max = TAS_OTHERS;
sound/soc/codecs/tas2781-i2c.c
1032
uinfo->value.integer.max = (int)tas_fw->nr_programs;
sound/soc/codecs/tas2781-i2c.c
1047
uinfo->value.integer.max = (int)tas_fw->nr_configurations - 1;
sound/soc/codecs/tas2781-i2c.c
1061
uinfo->value.integer.max = tas_priv->rcabin.ncfgs - 1;
sound/soc/codecs/tas2781-i2c.c
1204
int max = tas_priv->ndev - 1;
sound/soc/codecs/tas2781-i2c.c
1206
dev_id = clamp(dev_id, 0, max);
sound/soc/codecs/tas2781-i2c.c
1428
ext_cali_data->max = priv->ndev *
sound/soc/codecs/tas2781-i2c.c
1473
ext_cali_start->max = 14 + priv->ndev * 9;
sound/soc/codecs/tas2781-i2c.c
262
dst[i++] = bytes_ext->max;
sound/soc/codecs/tas2781-i2c.c
489
if (priv->chip_id != TAS2781 || bytes_ext->max != dat[0] ||
sound/soc/codecs/tas2781-i2c.c
644
if (src[0] != bytes_ext->max || src[1] != 'r') {
sound/soc/codecs/tas2781-i2c.c
687
dst[0] = bytes_ext->max;
sound/soc/codecs/tas2781-i2c.c
731
dst[0] = bytes_ext->max;
sound/soc/codecs/tas2781-i2c.c
757
dst[0] = bytes_ext->max;
sound/soc/codecs/tas2781-i2c.c
780
dst[0] = bytes_ext->max;
sound/soc/codecs/tas2781-i2c.c
800
dst[0] = bytes_ext->max;
sound/soc/codecs/tas2781-i2c.c
820
dst[0] = bytes_ext->max;
sound/soc/codecs/tas2781-i2c.c
839
unsigned int l = 0, r = mc->max;
sound/soc/codecs/tas2781-i2c.c
884
int status = 0, max = mc->max, rc = 1;
sound/soc/codecs/tas2781-i2c.c
890
vol = clamp(vol, 0, max);
sound/soc/codecs/tas571x.c
237
uinfo->value.integer.max = 0xffffffff;
sound/soc/codecs/tas5805m.c
222
uinfo->value.integer.max = TAS5805M_VOLUME_MAX;
sound/soc/codecs/tda7419.c
129
int min, max;
sound/soc/codecs/tda7419.c
151
uinfo->value.integer.max = tvc->max;
sound/soc/codecs/tda7419.c
254
.max = xmax, .thresh = xthresh, .invert = xinvert})
sound/soc/codecs/tda7419.c
260
.max = xmax, .thresh = xthresh, .invert = xinvert})
sound/soc/codecs/tlv320adc3xxx.c
561
uinfo->value.integer.max = 0xffff; /* all coefficients are 16 bit */
sound/soc/codecs/tlv320adcx140.c
651
uinfo->value.integer.max = 1;
sound/soc/codecs/tlv320aic3x.c
172
int max = mc->max;
sound/soc/codecs/tlv320aic3x.c
173
unsigned int mask = (1 << fls(max)) - 1;
sound/soc/codecs/tscs42xx.c
275
&tscs42xx->coeff_ram[ctl->addr * COEFF_SIZE], params->max);
sound/soc/codecs/tscs42xx.c
290
unsigned int coeff_cnt = params->max / COEFF_SIZE;
sound/soc/codecs/tscs42xx.c
298
ucontrol->value.bytes.data, params->max);
sound/soc/codecs/tscs42xx.c
609
ucontrol->count = params->max;
sound/soc/codecs/tscs42xx.c
620
.bytes_ext = {.max = xcount, }, \
sound/soc/codecs/tscs454.c
1485
ucontrol->count = params->max;
sound/soc/codecs/tscs454.c
1526
.bytes_ext = {.max = xcount, }, \
sound/soc/codecs/tscs454.c
335
&coeff_ram[ctl->addr * COEFF_SIZE], params->max);
sound/soc/codecs/tscs454.c
396
unsigned int coeff_cnt = params->max / COEFF_SIZE;
sound/soc/codecs/tscs454.c
436
ucontrol->value.bytes.data, params->max);
sound/soc/codecs/twl4030.c
837
int max = mc->max;
sound/soc/codecs/twl4030.c
838
int mask = (1 << fls(max)) - 1;
sound/soc/codecs/twl4030.c
844
max + 1 - ucontrol->value.integer.value[0];
sound/soc/codecs/twl4030.c
851
max + 1 - ucontrol->value.integer.value[1];
sound/soc/codecs/twl4030.c
866
int max = mc->max;
sound/soc/codecs/twl4030.c
867
int mask = (1 << fls(max)) - 1;
sound/soc/codecs/twl4030.c
874
val = max + 1 - val;
sound/soc/codecs/twl4030.c
880
val2 = max + 1 - val2;
sound/soc/codecs/twl4030.c
895
int max = mc->max;
sound/soc/codecs/twl4030.c
896
int mask = (1<<fls(max))-1;
sound/soc/codecs/twl4030.c
905
max + 1 - ucontrol->value.integer.value[0];
sound/soc/codecs/twl4030.c
908
max + 1 - ucontrol->value.integer.value[1];
sound/soc/codecs/twl4030.c
922
int max = mc->max;
sound/soc/codecs/twl4030.c
923
int mask = (1 << fls(max)) - 1;
sound/soc/codecs/twl4030.c
932
val = max + 1 - val;
sound/soc/codecs/twl4030.c
934
val2 = max + 1 - val2;
sound/soc/codecs/wcd934x.c
131
.bytes_ext = {.max = WCD_IIR_FILTER_SIZE, }, \
sound/soc/codecs/wcd934x.c
3114
memcpy(&coeff[0], ucontrol->value.bytes.data, params->max);
sound/soc/codecs/wcd934x.c
3147
memcpy(ucontrol->value.bytes.data, &coeff[0], params->max);
sound/soc/codecs/wcd934x.c
3160
ucontrol->count = params->max;
sound/soc/codecs/wcd938x.c
75
#define WCD938X_EAR_PA_GAIN_TLV(xname, reg, shift, max, invert, tlv_array) \
sound/soc/codecs/wcd938x.c
76
SOC_SINGLE_EXT_TLV(xname, reg, shift, max, invert, snd_soc_get_volsw, \
sound/soc/codecs/wm2200.c
1836
unsigned int max;
sound/soc/codecs/wm2200.c
1891
if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) {
sound/soc/codecs/wm5100.c
1669
unsigned int max;
sound/soc/codecs/wm5100.c
1724
if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) {
sound/soc/codecs/wm5102.c
717
if (ucontrol->value.integer.value[0] > mc->max)
sound/soc/codecs/wm8400.c
101
#define WM8400_OUTPGA_SINGLE_R_TLV(xname, reg, shift, max, invert, tlv_array) \
sound/soc/codecs/wm8400.c
102
SOC_SINGLE_EXT_TLV(xname, reg, shift, max, invert, \
sound/soc/codecs/wm8903.c
408
#define SOC_DAPM_SINGLE_W(xname, reg, shift, max, invert) \
sound/soc/codecs/wm8903.c
409
SOC_SINGLE_EXT(xname, reg, shift, max, invert, \
sound/soc/codecs/wm8904.c
1635
unsigned int max;
sound/soc/codecs/wm8904.c
1690
if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) {
sound/soc/codecs/wm8958-dsp2.c
492
uinfo->value.integer.max = 1;
sound/soc/codecs/wm8958-dsp2.c
615
uinfo->value.integer.max = 1;
sound/soc/codecs/wm8958-dsp2.c
676
uinfo->value.integer.max = 1;
sound/soc/codecs/wm8958-dsp2.c
782
uinfo->value.integer.max = 1;
sound/soc/codecs/wm8962.c
1543
uinfo->value.integer.max = 1;
sound/soc/codecs/wm8962.c
2832
unsigned int max;
sound/soc/codecs/wm8962.c
2887
if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) {
sound/soc/codecs/wm8990.c
68
#define SOC_WM899X_OUTPGA_SINGLE_R_TLV(xname, reg, shift, max, invert,\
sound/soc/codecs/wm8990.c
70
SOC_SINGLE_EXT_TLV(xname, reg, shift, max, invert, \
sound/soc/codecs/wm8991.h
810
#define SOC_WM899X_OUTPGA_SINGLE_R_TLV(xname, reg, shift, max, invert,\
sound/soc/codecs/wm8991.h
812
SOC_SINGLE_EXT_TLV(xname, reg, shift, max, invert, \
sound/soc/codecs/wm8993.c
371
unsigned int max;
sound/soc/codecs/wm8993.c
427
if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) {
sound/soc/codecs/wm8994.c
1511
#define WM8994_CLASS_W_SWITCH(xname, reg, shift, max, invert) \
sound/soc/codecs/wm8994.c
1512
SOC_SINGLE_EXT(xname, reg, shift, max, invert, \
sound/soc/codecs/wm8994.c
2443
if (max(wm8994->aifclk[0], wm8994->aifclk[1]) < 50000) {
sound/soc/codecs/wm8994.c
2587
if (max(wm8994->aifclk[0], wm8994->aifclk[1]) < 50000) {
sound/soc/codecs/wm8995.h
4236
#define WM8995_CLASS_W_SWITCH(xname, reg, shift, max, invert) \
sound/soc/codecs/wm8995.h
4237
SOC_SINGLE_EXT(xname, reg, shift, max, invert, \
sound/soc/codecs/wm8996.c
1904
unsigned int max;
sound/soc/codecs/wm8996.c
1969
if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) {
sound/soc/codecs/wm9081.c
451
unsigned int max;
sound/soc/codecs/wm9081.c
506
if (fll_fratios[i].min <= Fref && Fref <= fll_fratios[i].max) {
sound/soc/codecs/wm_adsp.c
387
uinfo->value.integer.max = CS_DSP_ACKED_CTL_MAX_VALUE;
sound/soc/codecs/wm_adsp.c
563
ctl->bytes_ext.max = cs_ctl->len;
sound/soc/codecs/wm_hubs.c
690
#define WM_HUBS_SINGLE_W(xname, reg, shift, max, invert) \
sound/soc/codecs/wm_hubs.c
691
SOC_SINGLE_EXT(xname, reg, shift, max, invert, \
sound/soc/codecs/wsa881x.c
201
#define WSA881X_PA_GAIN_TLV(xname, reg, shift, max, invert, tlv_array) \
sound/soc/codecs/wsa881x.c
202
SOC_SINGLE_EXT_TLV(xname, reg, shift, max, invert, \
sound/soc/codecs/wsa881x.c
750
int max = mc->max;
sound/soc/codecs/wsa881x.c
751
unsigned int mask = (1 << fls(max)) - 1;
sound/soc/codecs/wsa881x.c
758
max_gain = (max - ucontrol->value.integer.value[0]) & mask;
sound/soc/fsl/fsl-asoc-card.c
307
rate->max = rate->min = priv->asrc_rate;
sound/soc/fsl/fsl_easrc.c
119
.invert = 0, .min = 0, .max = 0xffffffff, } }
sound/soc/fsl/fsl_easrc.c
128
.invert = 0, .min = 0, .max = 2, } }
sound/soc/fsl/fsl_qmc_audio.c
380
ch.max = nb_ts;
sound/soc/fsl/fsl_qmc_audio.c
383
ch.max = nb_ts / 2;
sound/soc/fsl/fsl_qmc_audio.c
386
ch.max = nb_ts / 4;
sound/soc/fsl/fsl_qmc_audio.c
389
ch.max = nb_ts / 8;
sound/soc/fsl/fsl_qmc_audio.c
397
ch.min = ch.max ? 1 : 0;
sound/soc/fsl/fsl_spdif.c
1051
uinfo->value.integer.max = 192000;
sound/soc/fsl/imx-card.c
148
{ .min = 128, .max = 128, .mul = 256 }, /* TDM128 */
sound/soc/fsl/imx-card.c
149
{ .min = 256, .max = 256, .mul = 512 }, /* TDM256 */
sound/soc/fsl/imx-card.c
150
{ .min = 512, .max = 512, .mul = 1024 }, /* TDM512 */
sound/soc/fsl/imx-card.c
185
{ .min = 128, .max = 128, .mul = 256 },
sound/soc/fsl/imx-card.c
186
{ .min = 256, .max = 256, .mul = 512 },
sound/soc/fsl/imx-card.c
187
{ .min = 512, .max = 512, .mul = 1024 },
sound/soc/fsl/imx-card.c
197
{ .min = 256, .max = 256, .mul = 256 },
sound/soc/fsl/imx-card.c
307
width = max(width, plat_data->fs_mul[i].wmin);
sound/soc/fsl/imx-card.c
419
struct snd_interval t = { .min = 8000, .max = 8000, };
sound/soc/fsl/imx-card.c
437
if (t.max < akcodec_rates[i])
sound/soc/fsl/imx-card.c
438
t.max = akcodec_rates[i];
sound/soc/fsl/imx-card.c
51
unsigned int max;
sound/soc/fsl/imx-card.c
525
rate->max = data->asrc_rate;
sound/soc/generic/audio-graph-card2.c
544
int nm_max = max(dai_link->num_cpus, dai_link->num_codecs);
sound/soc/generic/audio-graph-card2.c
602
int nm_max = max(dai_link->num_cpus, dai_link->num_codecs);
sound/soc/generic/simple-card-utils.c
549
rate->max = data->convert_rate;
sound/soc/generic/simple-card-utils.c
553
channels->max = data->convert_channels;
sound/soc/img/img-spdif-in.c
316
uinfo->value.integer.max = LONG_MAX;
sound/soc/img/img-spdif-in.c
390
uinfo->value.integer.max = LONG_MAX;
sound/soc/img/img-spdif-in.c
430
uinfo->value.integer.max = 255;
sound/soc/img/img-spdif-in.c
488
uinfo->value.integer.max = 127;
sound/soc/intel/atom/sst-atom-controls.c
1295
bc->params = devm_kzalloc(dev, bc->max, GFP_KERNEL);
sound/soc/intel/atom/sst-atom-controls.c
141
uinfo->value.enumerated.items = e->max;
sound/soc/intel/atom/sst-atom-controls.c
143
if (uinfo->value.enumerated.item > e->max - 1)
sound/soc/intel/atom/sst-atom-controls.c
144
uinfo->value.enumerated.item = e->max - 1;
sound/soc/intel/atom/sst-atom-controls.c
173
for (mux = e->max; mux > 0; mux--)
sound/soc/intel/atom/sst-atom-controls.c
235
if (mux > e->max - 1)
sound/soc/intel/atom/sst-atom-controls.c
240
for (i = 0; i < e->max; i++)
sound/soc/intel/atom/sst-atom-controls.c
272
len = sizeof(cmd->dst) + sizeof(cmd->command_id) + bc->max;
sound/soc/intel/atom/sst-atom-controls.c
280
memcpy(cmd->params, bc->params, bc->max);
sound/soc/intel/atom/sst-atom-controls.c
324
uinfo->count = bc->max;
sound/soc/intel/atom/sst-atom-controls.c
337
memcpy(ucontrol->value.bytes.data, bc->params, bc->max);
sound/soc/intel/atom/sst-atom-controls.c
360
memcpy(bc->params, ucontrol->value.bytes.data, bc->max);
sound/soc/intel/atom/sst-atom-controls.c
384
uinfo->value.integer.max = mc->max;
sound/soc/intel/atom/sst-atom-controls.h
692
int max;
sound/soc/intel/atom/sst-atom-controls.h
722
{ .stereo = true, .max = xmax, .min = xmin, .type = SST_GAIN_TLV, \
sound/soc/intel/atom/sst-atom-controls.h
733
{ .stereo = false, .max = xmax, .min = xmin, .type = xtype, \
sound/soc/intel/atom/sst-atom-controls.h
783
int max;
sound/soc/intel/atom/sst-atom-controls.h
796
.max = xcount + sizeof(u16), .type = xtype, .module_id = xmod, \
sound/soc/intel/atom/sst-atom-controls.h
840
unsigned int max;
sound/soc/intel/atom/sst-atom-controls.h
847
(struct sst_enum){ .reg = s_ch_no, .tx = is_tx, .max = 4+1, .texts = xtexts, }
sound/soc/intel/avs/boards/da7219.c
158
rate->min = rate->max = 48000;
sound/soc/intel/avs/boards/da7219.c
159
channels->min = channels->max = 2;
sound/soc/intel/avs/boards/es8336.c
190
rate->min = rate->max = 48000;
sound/soc/intel/avs/boards/es8336.c
191
channels->min = channels->max = 2;
sound/soc/intel/avs/boards/max98357a.c
40
rate->min = rate->max = 48000;
sound/soc/intel/avs/boards/max98357a.c
41
channels->min = channels->max = 2;
sound/soc/intel/avs/boards/max98373.c
58
rate->min = rate->max = 48000;
sound/soc/intel/avs/boards/max98373.c
59
channels->min = channels->max = 2;
sound/soc/intel/avs/boards/max98927.c
58
rate->min = rate->max = 48000;
sound/soc/intel/avs/boards/max98927.c
59
channels->min = channels->max = 2;
sound/soc/intel/avs/boards/nau8825.c
129
rate->min = rate->max = 48000;
sound/soc/intel/avs/boards/nau8825.c
130
channels->min = channels->max = 2;
sound/soc/intel/avs/boards/rt274.c
140
rate->min = rate->max = AVS_RT274_BE_FIXUP_RATE;
sound/soc/intel/avs/boards/rt274.c
141
channels->min = channels->max = 2;
sound/soc/intel/avs/boards/rt286.c
90
rate->min = rate->max = 48000;
sound/soc/intel/avs/boards/rt286.c
91
channels->min = channels->max = 2;
sound/soc/intel/avs/boards/rt298.c
101
rate->min = rate->max = 48000;
sound/soc/intel/avs/boards/rt298.c
102
channels->min = channels->max = 2;
sound/soc/intel/avs/boards/rt5514.c
55
rate->min = rate->max = 48000;
sound/soc/intel/avs/boards/rt5514.c
56
channels->min = channels->max = 4;
sound/soc/intel/avs/boards/rt5663.c
105
rate->min = rate->max = 48000;
sound/soc/intel/avs/boards/rt5663.c
106
channels->min = channels->max = 2;
sound/soc/intel/avs/boards/rt5682.c
197
rate->min = rate->max = 48000;
sound/soc/intel/avs/boards/rt5682.c
198
channels->min = channels->max = 2;
sound/soc/intel/avs/boards/ssm4567.c
75
rate->min = rate->max = 48000;
sound/soc/intel/avs/boards/ssm4567.c
76
channels->min = channels->max = 2;
sound/soc/intel/avs/control.c
101
if (input[i] < mc->min || input[i] > mc->max)
sound/soc/intel/avs/control.c
129
uinfo->value.integer.max = mc->max;
sound/soc/intel/avs/control.c
184
if (input[i] < mc->min || input[i] > mc->max)
sound/soc/intel/avs/control.c
212
uinfo->value.integer.max = mc->max;
sound/soc/intel/avs/pcm.c
577
to.max = interval->max;
sound/soc/intel/avs/topology.c
2189
ctl_data->values[0] = mc->max;
sound/soc/intel/avs/topology.c
2191
ctl_data->values[i] = mc->max;
sound/soc/intel/boards/bdw-rt5650.c
92
rate->min = rate->max = 48000;
sound/soc/intel/boards/bdw-rt5650.c
94
chan->max = 4;
sound/soc/intel/boards/bdw-rt5677.c
144
rate->min = rate->max = 48000;
sound/soc/intel/boards/bdw-rt5677.c
145
chan->min = chan->max = 2;
sound/soc/intel/boards/bdw_rt286.c
90
rate->min = rate->max = 48000;
sound/soc/intel/boards/bdw_rt286.c
91
channels->min = channels->max = 2;
sound/soc/intel/boards/bytcht_cx2072x.c
116
rate->min = rate->max = 48000;
sound/soc/intel/boards/bytcht_cx2072x.c
117
channels->min = channels->max = 2;
sound/soc/intel/boards/bytcht_da7213.c
70
rate->min = rate->max = 48000;
sound/soc/intel/boards/bytcht_da7213.c
71
channels->min = channels->max = 2;
sound/soc/intel/boards/bytcht_es8316.c
263
rate->min = rate->max = 48000;
sound/soc/intel/boards/bytcht_es8316.c
264
channels->min = channels->max = 2;
sound/soc/intel/boards/bytcht_nocodec.c
50
rate->min = rate->max = 48000;
sound/soc/intel/boards/bytcht_nocodec.c
51
channels->min = channels->max = 2;
sound/soc/intel/boards/bytcr_rt5640.c
1522
rate->min = rate->max = 48000;
sound/soc/intel/boards/bytcr_rt5640.c
1523
channels->min = channels->max = 2;
sound/soc/intel/boards/bytcr_rt5651.c
703
rate->min = rate->max = 48000;
sound/soc/intel/boards/bytcr_rt5651.c
704
channels->min = channels->max = 2;
sound/soc/intel/boards/bytcr_wm5102.c
388
rate->max = 48000;
sound/soc/intel/boards/bytcr_wm5102.c
390
channels->max = 2;
sound/soc/intel/boards/cht_bsw_max98090_ti.c
275
rate->min = rate->max = 48000;
sound/soc/intel/boards/cht_bsw_max98090_ti.c
276
channels->min = channels->max = 2;
sound/soc/intel/boards/cht_bsw_nau8824.c
140
rate->min = rate->max = 48000;
sound/soc/intel/boards/cht_bsw_nau8824.c
141
channels->min = channels->max = 2;
sound/soc/intel/boards/cht_bsw_rt5645.c
347
rate->min = rate->max = 48000;
sound/soc/intel/boards/cht_bsw_rt5645.c
348
channels->min = channels->max = 2;
sound/soc/intel/boards/cht_bsw_rt5672.c
279
rate->min = rate->max = 48000;
sound/soc/intel/boards/cht_bsw_rt5672.c
280
channels->min = channels->max = 2;
sound/soc/intel/boards/hsw_rt5640.c
39
rate->min = rate->max = 48000;
sound/soc/intel/boards/hsw_rt5640.c
40
channels->min = channels->max = 2;
sound/soc/intel/catpt/pcm.c
855
uinfo->value.integer.max = DSP_VOLUME_STEP_MAX;
sound/soc/mediatek/mt8186/mt8186-mt6366.c
386
channels->max = 2;
sound/soc/meson/axg-card.c
175
tx = max(tx, be->tx_mask[i]);
sound/soc/meson/axg-card.c
185
rx = max(rx, be->rx_mask[i]);
sound/soc/meson/axg-card.c
204
be->slots = fls(max(tx, rx));
sound/soc/meson/axg-card.c
205
} else if (be->slots < fls(max(tx, rx)) || be->slots > 32) {
sound/soc/meson/axg-spdifin.c
342
uinfo->value.integer.max = 192000;
sound/soc/qcom/apq8016_sbc.c
248
rate->min = rate->max = 48000;
sound/soc/qcom/apq8016_sbc.c
249
channels->min = channels->max = 2;
sound/soc/qcom/apq8096.c
24
rate->min = rate->max = 48000;
sound/soc/qcom/apq8096.c
25
channels->min = channels->max = 2;
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
103
int channels = hw_param_interval_c(params, SNDRV_PCM_HW_PARAM_CHANNELS)->max;
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
134
int channels = hw_param_interval_c(params, SNDRV_PCM_HW_PARAM_CHANNELS)->max;
sound/soc/qcom/sc7180.c
429
rate->min = rate->max = 48000;
sound/soc/qcom/sc7180.c
430
channels->min = channels->max = 2;
sound/soc/qcom/sc7280.c
338
rate->min = rate->max = 48000;
sound/soc/qcom/sc7280.c
339
channels->min = channels->max = 2;
sound/soc/qcom/sc8280xp.c
80
rate->min = rate->max = 48000;
sound/soc/qcom/sc8280xp.c
83
channels->max = 2;
sound/soc/qcom/sdm845.c
505
rate->min = rate->max = DEFAULT_SAMPLE_RATE_48K;
sound/soc/qcom/sdm845.c
506
channels->min = channels->max = 2;
sound/soc/qcom/sm8250.c
67
rate->min = rate->max = 48000;
sound/soc/qcom/sm8250.c
68
channels->min = channels->max = 2;
sound/soc/qcom/x1e80100.c
61
rate->min = rate->max = 48000;
sound/soc/renesas/rcar/core.c
1639
hw_param_interval(hw_params, SNDRV_PCM_HW_PARAM_RATE)->max =
sound/soc/renesas/rcar/core.c
1645
hw_param_interval(hw_params, SNDRV_PCM_HW_PARAM_RATE)->max =
sound/soc/renesas/rcar/core.c
1694
uinfo->value.enumerated.items = cfg->max;
sound/soc/renesas/rcar/core.c
1695
if (uinfo->value.enumerated.item >= cfg->max)
sound/soc/renesas/rcar/core.c
1696
uinfo->value.enumerated.item = cfg->max - 1;
sound/soc/renesas/rcar/core.c
1703
uinfo->value.integer.max = cfg->max;
sound/soc/renesas/rcar/core.c
1704
uinfo->type = (cfg->max == 1) ?
sound/soc/renesas/rcar/core.c
1808
u32 max)
sound/soc/renesas/rcar/core.c
1846
cfg->max = max;
sound/soc/renesas/rcar/core.c
484
int max = array ? array_size : RSND_MOD_MAX;
sound/soc/renesas/rcar/core.c
486
for (; *iterator < max; (*iterator)++) {
sound/soc/renesas/rcar/core.c
866
p.max = 0;
sound/soc/renesas/rcar/core.c
877
p.max = max(p.max, list[i]);
sound/soc/renesas/rcar/core.c
881
baseline->max, list[i], NULL);
sound/soc/renesas/rcar/core.c
884
p.max = max(p.max, list[i]);
sound/soc/renesas/rcar/core.c
889
if (!rsnd_flags_has(io, RSND_HW_RULE_ERR) && (p.min > p.max)) {
sound/soc/renesas/rcar/core.c
894
baseline->min, unit, baseline->max, unit);
sound/soc/renesas/rcar/core.c
917
ic.max = rsnd_runtime_channel_for_ssi_with_params(io, params);
sound/soc/renesas/rcar/core.c
940
ic.max = rsnd_runtime_channel_for_ssi_with_params(io, params);
sound/soc/renesas/rcar/rsnd.h
717
unsigned int max;
sound/soc/renesas/rcar/rsnd.h
740
#define rsnd_kctrl_max(x) ((x).cfg.max)
sound/soc/renesas/rcar/rsnd.h
757
u32 max);
sound/soc/renesas/rcar/rsnd.h
759
#define rsnd_kctrl_new_m(mod, io, rtd, name, accept, update, cfg, size, max) \
sound/soc/renesas/rcar/rsnd.h
761
NULL, size, max)
sound/soc/renesas/rcar/rsnd.h
763
#define rsnd_kctrl_new_s(mod, io, rtd, name, accept, update, cfg, max) \
sound/soc/renesas/rcar/rsnd.h
765
NULL, 1, max)
sound/soc/renesas/siu_dai.c
347
uinfo->value.integer.max = SIU_MAX_VOLUME;
sound/soc/rockchip/rockchip_sai.c
1221
uinfo->value.integer.max = WAIT_TIME_MS_MAX;
sound/soc/sdca/sdca_asoc.c
626
mc->max = 1;
sound/soc/sdca/sdca_asoc.c
788
int min, max, step;
sound/soc/sdca/sdca_asoc.c
802
max = sdca_range(range, SDCA_VOLUME_LINEAR_MAX, 0);
sound/soc/sdca/sdca_asoc.c
806
max = sign_extend32(max, control->nbits - 1);
sound/soc/sdca/sdca_asoc.c
815
tlv[3] = (max * 100) >> 8;
sound/soc/sdca/sdca_asoc.c
820
mc->max = ((int)tlv[3] / step);
sound/soc/sdca/sdca_asoc.c
921
mc->max = clamp((0x1ull << control->nbits) - 1, 0, type_max(mc->max));
sound/soc/soc-component.c
934
*codec_delay = max(*codec_delay, delay);
sound/soc/soc-component.c
936
*cpu_delay = max(*cpu_delay, delay);
sound/soc/soc-dai.c
126
int i, max = 0;
sound/soc/soc-dai.c
134
max = max(max, dai->driver->ops->num_auto_selectable_formats);
sound/soc/soc-dai.c
139
return max;
sound/soc/soc-dai.c
159
int i, max = 0, until = priority;
sound/soc/soc-dai.c
175
max = ops->num_auto_selectable_formats;
sound/soc/soc-dai.c
177
if (max < until)
sound/soc/soc-dai.c
178
until = max;
sound/soc/soc-dai.c
679
*cpu_delay = max(*cpu_delay, dai->driver->ops->delay(substream, dai));
sound/soc/soc-dai.c
685
*codec_delay = max(*codec_delay, dai->driver->ops->delay(substream, dai));
sound/soc/soc-dapm.c
3403
int max = mc->max;
sound/soc/soc-dapm.c
3404
unsigned int width = fls(max);
sound/soc/soc-dapm.c
3405
unsigned int mask = (1 << fls(max)) - 1;
sound/soc/soc-dapm.c
3429
ucontrol->value.integer.value[0] = max - val;
sound/soc/soc-dapm.c
3435
ucontrol->value.integer.value[1] = max - rval;
sound/soc/soc-dapm.c
3463
int max = mc->max;
sound/soc/soc-dapm.c
3464
unsigned int width = fls(max);
sound/soc/soc-dapm.c
3477
val = max - val;
sound/soc/soc-dapm.c
3483
rval = max - rval;
sound/soc/soc-dapm.c
3644
uinfo->value.integer.max = 1;
sound/soc/soc-dapm.c
4031
hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE)->max =
sound/soc/soc-dapm.c
4035
hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS)->max
sound/soc/soc-dapm.c
408
unsigned int max = mc->max;
sound/soc/soc-dapm.c
409
unsigned int mask = (1 << fls(max)) - 1;
sound/soc/soc-dapm.c
432
val = max - val;
sound/soc/soc-dapm.c
745
template.mask = (1 << fls(mc->max)) - 1;
sound/soc/soc-dapm.c
748
template.off_val = mc->max;
sound/soc/soc-ops-test.c
23
.min = xmin, .max = xmax, .platform_max = xpmax, \
sound/soc/soc-ops-test.c
34
.value.integer.max = cmax, \
sound/soc/soc-ops-test.c
427
param->uinfo.value.integer.min, param->uinfo.value.integer.max,
sound/soc/soc-ops-test.c
428
param->mc.min, param->mc.max, param->mc.platform_max,
sound/soc/soc-ops-test.c
452
KUNIT_EXPECT_EQ(test, result.value.integer.max, target->value.integer.max);
sound/soc/soc-ops-test.c
462
param->mc.min, param->mc.max, param->mc.platform_max,
sound/soc/soc-ops-test.c
470
param->mc.min, param->mc.max, param->mc.platform_max,
sound/soc/soc-ops.c
114
unsigned int mask, unsigned int shift, int max,
sound/soc/soc-ops.c
130
unsigned int mask, unsigned int shift, int max)
sound/soc/soc-ops.c
145
unsigned int mask, unsigned int shift, int max,
sound/soc/soc-ops.c
155
val = min_t(unsigned int, val & mask, max);
sound/soc/soc-ops.c
157
val = clamp(val, mc->min, mc->max);
sound/soc/soc-ops.c
162
val = max - val;
sound/soc/soc-ops.c
169
int max)
sound/soc/soc-ops.c
174
val = max - val;
sound/soc/soc-ops.c
181
static int soc_mixer_valid_ctl(struct soc_mixer_control *mc, long val, int max)
sound/soc/soc-ops.c
189
if (val > max)
sound/soc/soc-ops.c
200
return GENMASK(fls(mc->max) - 1, 0);
sound/soc/soc-ops.c
206
return GENMASK(fls(mc->min + mc->max) - 2, 0);
sound/soc/soc-ops.c
211
struct soc_mixer_control *mc, int max)
sound/soc/soc-ops.c
215
if (max == 1) {
sound/soc/soc-ops.c
223
if (mc->platform_max && mc->platform_max < max)
sound/soc/soc-ops.c
224
max = mc->platform_max;
sound/soc/soc-ops.c
228
uinfo->value.integer.max = max;
sound/soc/soc-ops.c
235
struct soc_mixer_control *mc, int mask, int max)
sound/soc/soc-ops.c
252
ret = soc_mixer_valid_ctl(mc, ucontrol->value.integer.value[0], max);
sound/soc/soc-ops.c
257
mask, mc->shift, max);
sound/soc/soc-ops.c
260
ret = soc_mixer_valid_ctl(mc, ucontrol->value.integer.value[1], max);
sound/soc/soc-ops.c
265
val1 |= ctl_to_reg(mc, ucontrol->value.integer.value[1], mask, mc->rshift, max);
sound/soc/soc-ops.c
268
val2 = ctl_to_reg(mc, ucontrol->value.integer.value[1], mask, mc->shift, max);
sound/soc/soc-ops.c
290
struct soc_mixer_control *mc, int mask, int max, bool sx)
sound/soc/soc-ops.c
304
val = reg_to_ctl(mc, reg_val, mask, mc->shift, max, sx);
sound/soc/soc-ops.c
310
val = reg_to_ctl(mc, reg_val, mask, mc->rshift, max, sx);
sound/soc/soc-ops.c
313
val = reg_to_ctl(mc, reg_val, mask, mc->shift, max, sx);
sound/soc/soc-ops.c
338
return soc_info_volsw(kcontrol, uinfo, mc, mc->max - mc->min);
sound/soc/soc-ops.c
361
return soc_info_volsw(kcontrol, uinfo, mc, mc->max);
sound/soc/soc-ops.c
382
return soc_get_volsw(kcontrol, ucontrol, mc, mask, mc->max - mc->min, false);
sound/soc/soc-ops.c
403
return soc_put_volsw(kcontrol, ucontrol, mc, mask, mc->max - mc->min);
sound/soc/soc-ops.c
424
return soc_get_volsw(kcontrol, ucontrol, mc, mask, mc->max, true);
sound/soc/soc-ops.c
444
return soc_put_volsw(kcontrol, ucontrol, mc, mask, mc->max);
sound/soc/soc-ops.c
488
int snd_soc_limit_volume(struct snd_soc_card *card, const char *name, int max)
sound/soc/soc-ops.c
494
if (unlikely(!name || max <= 0))
sound/soc/soc-ops.c
502
if (max <= mc->max - mc->min) {
sound/soc/soc-ops.c
503
mc->platform_max = max;
sound/soc/soc-ops.c
640
ucontrol->count = params->max;
sound/soc/soc-ops.c
650
unsigned int count = size < params->max ? size : params->max;
sound/soc/soc-ops.c
689
uinfo->value.integer.max = mc->max;
sound/soc/soc-ops.c
729
if (mc->min < 0 && val > mc->max)
sound/soc/soc-ops.c
732
val = mc->max - val;
sound/soc/soc-ops.c
768
if (val < mc->min || val > mc->max)
sound/soc/soc-ops.c
771
val = mc->max - val;
sound/soc/soc-pcm.c
1005
interval->max = channels;
sound/soc/soc-pcm.c
556
bits = max(pcm_codec->sig_bits, bits);
sound/soc/soc-pcm.c
566
cpu_bits = max(pcm_cpu->sig_bits, cpu_bits);
sound/soc/soc-pcm.c
604
hw->rate_min = max(hw->rate_min, p->rate_min);
sound/soc/soc-pcm.c
611
hw->channels_min = max(hw->channels_min, p->channels_min);
sound/soc/soc-topology.c
492
if (sbe->max > 512)
sound/soc/soc-topology.c
671
sm->max = le32_to_cpu(mc->max);
sound/soc/soc-topology.c
858
sbe->max = le32_to_cpu(be->max);
sound/soc/soc-utils-test.c
131
hw_param_interval(&params, SNDRV_PCM_HW_PARAM_RATE)->max = rate;
sound/soc/soc-utils-test.c
133
hw_param_interval(&params, SNDRV_PCM_HW_PARAM_CHANNELS)->max = channels;
sound/soc/soc-utils-test.c
184
hw_param_interval(&params, SNDRV_PCM_HW_PARAM_RATE)->max = rate;
sound/soc/soc-utils-test.c
186
hw_param_interval(&params, SNDRV_PCM_HW_PARAM_CHANNELS)->max = channels;
sound/soc/sof/control.c
56
sm->platform_max = sm->max;
sound/soc/sof/control.c
66
uinfo->value.integer.max = platform_max - sm->min;
sound/soc/sof/ipc3-control.c
167
scontrol->max + 1);
sound/soc/sof/ipc3-control.c
184
scontrol->volume_table, scontrol->max + 1);
sound/soc/sof/ipc3-pcm.c
260
rate->max = private->dai_config[dai->current_config].ssp.fsync_rate;
sound/soc/sof/ipc3-pcm.c
262
channels->max = private->dai_config[dai->current_config].ssp.tdm_slots;
sound/soc/sof/ipc3-pcm.c
264
dev_dbg(component->dev, "rate_min: %d rate_max: %d\n", rate->min, rate->max);
sound/soc/sof/ipc3-pcm.c
266
channels->min, channels->max);
sound/soc/sof/ipc3-pcm.c
295
channels->max = private->dai_config->alh.channels;
sound/soc/sof/ipc3-pcm.c
299
rate->max = private->dai_config->esai.fsync_rate;
sound/soc/sof/ipc3-pcm.c
301
channels->max = private->dai_config->esai.tdm_slots;
sound/soc/sof/ipc3-pcm.c
303
dev_dbg(component->dev, "rate_min: %d rate_max: %d\n", rate->min, rate->max);
sound/soc/sof/ipc3-pcm.c
305
channels->min, channels->max);
sound/soc/sof/ipc3-pcm.c
309
rate->max = private->dai_config->afe.rate;
sound/soc/sof/ipc3-pcm.c
311
channels->max = private->dai_config->afe.channels;
sound/soc/sof/ipc3-pcm.c
330
dev_dbg(component->dev, "rate_min: %d rate_max: %d\n", rate->min, rate->max);
sound/soc/sof/ipc3-pcm.c
332
channels->min, channels->max);
sound/soc/sof/ipc3-pcm.c
336
rate->max = private->dai_config->sai.fsync_rate;
sound/soc/sof/ipc3-pcm.c
338
channels->max = private->dai_config->sai.tdm_slots;
sound/soc/sof/ipc3-pcm.c
340
dev_dbg(component->dev, "rate_min: %d rate_max: %d\n", rate->min, rate->max);
sound/soc/sof/ipc3-pcm.c
342
channels->min, channels->max);
sound/soc/sof/ipc3-pcm.c
346
rate->max = private->dai_config->acpbt.fsync_rate;
sound/soc/sof/ipc3-pcm.c
348
channels->max = private->dai_config->acpbt.tdm_slots;
sound/soc/sof/ipc3-pcm.c
351
"AMD_BT rate_min: %d rate_max: %d\n", rate->min, rate->max);
sound/soc/sof/ipc3-pcm.c
353
channels->min, channels->max);
sound/soc/sof/ipc3-pcm.c
358
rate->max = private->dai_config->acpsp.fsync_rate;
sound/soc/sof/ipc3-pcm.c
360
channels->max = private->dai_config->acpsp.tdm_slots;
sound/soc/sof/ipc3-pcm.c
363
"AMD_SP rate_min: %d rate_max: %d\n", rate->min, rate->max);
sound/soc/sof/ipc3-pcm.c
365
channels->min, channels->max);
sound/soc/sof/ipc3-pcm.c
370
rate->max = private->dai_config->acphs.fsync_rate;
sound/soc/sof/ipc3-pcm.c
372
channels->max = private->dai_config->acphs.tdm_slots;
sound/soc/sof/ipc3-pcm.c
375
"AMD_HS channel_max: %d rate_max: %d\n", channels->max, rate->max);
sound/soc/sof/ipc3-pcm.c
379
rate->max = private->dai_config->acpdmic.pdm_rate;
sound/soc/sof/ipc3-pcm.c
381
channels->max = private->dai_config->acpdmic.pdm_ch;
sound/soc/sof/ipc3-pcm.c
384
"AMD_DMIC rate_min: %d rate_max: %d\n", rate->min, rate->max);
sound/soc/sof/ipc3-pcm.c
386
channels->min, channels->max);
sound/soc/sof/ipc3-pcm.c
390
rate->max = private->dai_config->micfil.pdm_rate;
sound/soc/sof/ipc3-pcm.c
392
channels->max = private->dai_config->micfil.pdm_ch;
sound/soc/sof/ipc3-pcm.c
395
"MICFIL PDM rate_min: %d rate_max: %d\n", rate->min, rate->max);
sound/soc/sof/ipc3-pcm.c
397
channels->min, channels->max);
sound/soc/sof/ipc3-pcm.c
415
rate->max = private->dai_config->acp_sdw.rate;
sound/soc/sof/ipc3-pcm.c
417
channels->max = private->dai_config->acp_sdw.channels;
sound/soc/sof/ipc3-pcm.c
420
"AMD_SDW rate_min: %d rate_max: %d\n", rate->min, rate->max);
sound/soc/sof/ipc3-pcm.c
422
channels->min, channels->max);
sound/soc/sof/ipc3-topology.c
1837
if (scontrol->max == 1) {
sound/soc/sof/ipc4-control.c
159
scontrol->volume_table, scontrol->max + 1);
sound/soc/sof/ipc4-control.c
199
scontrol->max + 1);
sound/soc/sof/ipc4-control.c
789
if (scontrol->max == 1)
sound/soc/sof/ipc4-pcm.c
736
rate->max = rate->min;
sound/soc/sof/ipc4-pcm.c
788
channels->max = be_channels;
sound/soc/sof/ipc4-topology.c
1435
i->max = rate;
sound/soc/sof/ipc4-topology.c
1443
i->max = channels;
sound/soc/sof/ipc4-topology.c
2423
max((u32)SOF_IPC4_MIN_DMA_BUFFER_SIZE, deep_buffer_dma_ms) *
sound/soc/sof/ipc4-topology.c
2428
max((u32)SOF_IPC4_MIN_DMA_BUFFER_SIZE, deep_buffer_dma_ms),
sound/soc/sof/ipc4-topology.c
2878
if (scontrol->max == 1)
sound/soc/sof/ipc4-topology.c
2891
if (scontrol->max > 1)
sound/soc/sof/pcm.c
741
rate->max = 48000;
sound/soc/sof/pcm.c
744
channels->max = 2;
sound/soc/sof/sof-audio.h
388
int max; /* applicable to volume controls */
sound/soc/sof/sof-client-ipc-flood-test.c
95
max_response_time = max(max_response_time, ipc_response_time);
sound/soc/sof/topology.c
1679
if (sm->max > 1)
sound/soc/sof/topology.c
857
scontrol->max_volume_step = le32_to_cpu(mc->max);
sound/soc/sof/topology.c
860
scontrol->max = le32_to_cpu(mc->max);
sound/soc/sof/topology.c
861
if (le32_to_cpu(mc->max) == 1)
sound/soc/sof/topology.c
871
ret = set_up_volume_table(scontrol, tlv, le32_to_cpu(mc->max) + 1);
sound/soc/sof/topology.c
904
if (le32_to_cpu(mc->max) > 1)
sound/soc/sof/topology.c
943
scontrol->max_size = sbe->max;
sound/soc/sprd/sprd-pcm-dma.c
416
max(pointer[i], pointer[i - 1]) << 1;
sound/soc/starfive/jh7110_tdm.c
191
sl = max(tdm->rx.sl, tdm->tx.sl);
sound/soc/starfive/jh7110_tdm.c
192
sscale = max(tdm->rx.sscale, tdm->tx.sscale);
sound/soc/sti/sti_uniperif.c
171
t.max = uni->tdm_slot.avail_slots;
sound/soc/sti/uniperif_player.c
632
uinfo->value.integer.max = UNIPERIF_PLAYER_CLK_ADJ_MAX;
sound/soc/sunxi/sun8i-codec.c
324
max_rate = max(max_rate, aif->sample_rate);
sound/soc/tegra/tegra186_asrc.c
670
.max = xmax \
sound/soc/tegra/tegra210_mbdrc.c
244
ucontrol->value.integer.value[0] = (val >> mc->shift) & mc->max;
sound/soc/tegra/tegra210_mbdrc.c
262
(mc->max << mc->shift), val, &change);
sound/soc/tegra/tegra210_mbdrc.c
480
mc->max << mc->shift, val << mc->shift,
sound/soc/tegra/tegra210_peq.c
105
unsigned int mask = (1 << fls(mc->max)) - 1;
sound/soc/tegra/tegra210_peq.c
116
mc->max - ucontrol->value.integer.value[0];
sound/soc/tegra/tegra210_peq.c
128
unsigned int mask = (1 << fls(mc->max)) - 1;
sound/soc/tegra/tegra210_peq.c
135
val = mc->max - val;
sound/soc/tegra/tegra210_peq.c
198
uinfo->value.integer.max = INT_MAX;
sound/soc/ti/davinci-mcasp.c
1647
range.max = davinci_mcasp_dai_rates[i];
sound/soc/ti/davinci-mcasp.c
1654
ri->min, ri->max, range.min, range.max, sbits, slots);
sound/soc/ti/j721e-evm.c
611
priv->rate_range.max = max_rate;
sound/soc/ti/omap-mcbsp-st.c
375
int max = mc->max;
sound/soc/ti/omap-mcbsp-st.c
381
uinfo->value.integer.max = max;
sound/soc/ti/omap-mcbsp-st.c
394
int max = mc->max; \
sound/soc/ti/omap-mcbsp-st.c
398
if (val < min || val > max) \
sound/soc/ti/omap-mcbsp-st.c
457
{.min = xmin, .max = xmax} }
sound/soc/uniphier/aio-core.c
756
slope = max(1, slope);
sound/soc/uniphier/aio-cpu.c
618
uinfo->value.integer.max = AUD_VOL_MAX;
sound/sparc/amd7930.c
758
uinfo->value.integer.max = 255;
sound/sparc/cs4231.c
1283
uinfo->value.integer.max = mask;
sound/sparc/cs4231.c
1342
uinfo->value.integer.max = mask;
sound/sparc/dbri.c
2026
ch.max = 1;
sound/sparc/dbri.c
2247
uinfo->value.integer.max = DBRI_MAX_VOLUME;
sound/sparc/dbri.c
2249
uinfo->value.integer.max = DBRI_MAX_GAIN;
sound/sparc/dbri.c
2315
uinfo->value.integer.max = mask;
sound/spi/at73c213.c
452
uinfo->value.integer.max = mask;
sound/spi/at73c213.c
584
uinfo->value.integer.max = ((kcontrol->private_value >> 16) & 0xff) - 1;
sound/spi/at73c213.c
597
uinfo->value.integer.max = 31;
sound/spi/at73c213.c
610
uinfo->value.integer.max = 31;
sound/usb/6fire/control.c
181
uinfo->value.integer.max = 180;
sound/usb/6fire/control.c
285
uinfo->value.integer.max = 30;
sound/usb/6fire/firmware.c
152
record->max_len = max(record->len, record->max_len);
sound/usb/caiaq/audio.c
752
cdev->n_audio_in = max(cdev->spec.num_analog_audio_in,
sound/usb/caiaq/audio.c
755
cdev->n_audio_out = max(cdev->spec.num_analog_audio_out,
sound/usb/caiaq/audio.c
758
cdev->n_streams = max(cdev->n_audio_in, cdev->n_audio_out);
sound/usb/caiaq/control.c
39
uinfo->value.integer.max = 2;
sound/usb/caiaq/control.c
56
uinfo->value.integer.max = maxval;
sound/usb/caiaq/control.c
60
uinfo->value.integer.max = 1;
sound/usb/endpoint.c
1186
max_packs_per_urb = max(1u, max_packs_per_urb >> ep->datainterval);
sound/usb/endpoint.c
1217
minsize = max(minsize, 1u);
sound/usb/fcp.c
375
uinfo->value.integer.max = 4095;
sound/usb/fcp.c
573
buf_size = max(cmd.req_size, cmd.resp_size);
sound/usb/format.c
191
fp->rate_max = max(fp->rate_max, rate);
sound/usb/format.c
429
int max = combine_quad(&data[6 + 12 * i]);
sound/usb/format.c
433
if ((max < 0) || (min < 0) || (res < 0) || (max < min))
sound/usb/format.c
443
fp->rate_max = max;
sound/usb/format.c
448
for (rate = min; rate <= max; rate += res) {
sound/usb/line6/pcm.c
26
uinfo->value.integer.max = 255;
sound/usb/line6/pcm.c
386
uinfo->value.integer.max = 256;
sound/usb/line6/pcm.c
69
uinfo->value.integer.max = 2000;
sound/usb/line6/pod.c
321
uinfo->value.integer.max = 65535;
sound/usb/line6/podhd.c
322
uinfo->value.integer.max = 100;
sound/usb/line6/toneport.c
149
uinfo->value.integer.max = 256;
sound/usb/misc/ua101.c
1006
stream->queue_length = max(stream->queue_length,
sound/usb/mixer.c
1098
cval->max = 0xffff;
sound/usb/mixer.c
1105
cval->max = 0xff;
sound/usb/mixer.c
1110
cval->max = 0xff7b;
sound/usb/mixer.c
1117
cval->max = 0xfcfe;
sound/usb/mixer.c
1128
cval->max = 0x7f00;
sound/usb/mixer.c
1137
cval->max = 0x7f;
sound/usb/mixer.c
1171
cval->max = -256;
sound/usb/mixer.c
1180
cval->max = 8768;
sound/usb/mixer.c
1189
cval->max = 0;
sound/usb/mixer.c
1238
cval->max = cval->min + 1;
sound/usb/mixer.c
1254
if (get_ctl_value(cval, UAC_GET_MAX, (cval->control << 8) | minchn, &cval->max) < 0 ||
sound/usb/mixer.c
1289
if (cval->min + cval->res < cval->max) {
sound/usb/mixer.c
1296
if (test < cval->max)
sound/usb/mixer.c
1300
if (test < cval->min || test > cval->max ||
sound/usb/mixer.c
1324
cval->dBmax = (convert_signed_value(cval, cval->max) * 100) / 256;
sound/usb/mixer.c
1372
DIV_ROUND_UP(cval->max - cval->min, cval->res);
sound/usb/mixer.c
1374
cval->max_exposed = cval->max - cval->min;
sound/usb/mixer.c
1407
uinfo->value.integer.max = get_max_exposed(cval);
sound/usb/mixer.c
147
cval->dBmax = p->dB->max;
sound/usb/mixer.c
1793
if (cval->max <= cval->min) {
sound/usb/mixer.c
1814
range = (cval->max - cval->min) / cval->res;
sound/usb/mixer.c
1826
cval->min, cval->max, cval->res);
sound/usb/mixer.c
1831
cval->min, cval->max, cval->res);
sound/usb/mixer.c
1923
cval->max = 1;
sound/usb/mixer.c
1966
cval->max = 1;
sound/usb/mixer.c
2217
cval->head.id, kctl->id.name, cval->channels, cval->min, cval->max);
sound/usb/mixer.c
2563
cval->max = control_spec[0];
sound/usb/mixer.c
2578
cval->max = 5;
sound/usb/mixer.c
2624
cval->min, cval->max);
sound/usb/mixer.c
263
else if (val >= cval->max)
sound/usb/mixer.c
264
return DIV_ROUND_UP(cval->max - cval->min, cval->res);
sound/usb/mixer.c
2674
return snd_ctl_enum_info(uinfo, 1, cval->max, itemlist);
sound/usb/mixer.c
2705
if (val < 0 || val >= cval->max) /* here cval->max = # elements */
sound/usb/mixer.c
2734
num_ins = cval->max;
sound/usb/mixer.c
277
if (val > cval->max)
sound/usb/mixer.c
278
return cval->max;
sound/usb/mixer.c
2781
cval->max = desc->bNrInPins;
sound/usb/mixer.c
3406
cval->min, cval->max, cval->dBmin, cval->dBmax);
sound/usb/mixer.h
90
int min, max, res;
sound/usb/mixer_maps.c
10
int max;
sound/usb/mixer_maps.c
97
static const struct usbmix_dB_map mp3plus_dB_1 = {.min = -4781, .max = 0};
sound/usb/mixer_maps.c
99
static const struct usbmix_dB_map mp3plus_dB_2 = {.min = -1781, .max = 618};
sound/usb/mixer_quirks.c
2289
cval->max = 1;
sound/usb/mixer_quirks.c
2687
uinfo->value.integer.max = 800000;
sound/usb/mixer_quirks.c
2693
uinfo->value.integer.max = 200000;
sound/usb/mixer_quirks.c
2963
uinfo->value.integer.max = 1;
sound/usb/mixer_quirks.c
3067
uinfo->value.integer.max = SND_BBFPRO_GAIN_VAL_MIC_MAX;
sound/usb/mixer_quirks.c
3069
uinfo->value.integer.max = SND_BBFPRO_GAIN_VAL_LINE_MAX;
sound/usb/mixer_quirks.c
3164
uinfo->value.integer.max = SND_BBFPRO_MIXER_VAL_MAX;
sound/usb/mixer_quirks.c
3598
uinfo->value.integer.max = 200000;
sound/usb/mixer_quirks.c
4576
if (cval->min == 0 && cval->max == 50) {
sound/usb/mixer_quirks.c
4582
} else if (cval->min == 0 && cval->max <= 1000) {
sound/usb/mixer_quirks.c
728
mei->info.max = 1;
sound/usb/mixer_quirks.c
85
cval->max = 1;
sound/usb/mixer_scarlett.c
319
uinfo->value.integer.max = FORTE_INPUT_GAIN_MAX;
sound/usb/mixer_scarlett.c
481
uinfo->value.integer.max = 1;
sound/usb/mixer_scarlett.c
549
uinfo->value.integer.max = (int)kctl->private_value +
sound/usb/mixer_scarlett2.c
273
s32 max;
sound/usb/mixer_scarlett2.c
3741
uinfo->value.integer.max = 0;
sound/usb/mixer_scarlett2.c
4086
uinfo->value.integer.max = SCARLETT2_MAX_GAIN_VALUE;
sound/usb/mixer_scarlett2.c
4379
uinfo->value.integer.max = SCARLETT2_VOLUME_BIAS;
sound/usb/mixer_scarlett2.c
5163
val = clamp(val, param->min, param->max);
sound/usb/mixer_scarlett2.c
5239
uinfo->value.integer.max = compressor_params[control].max;
sound/usb/mixer_scarlett2.c
5555
uinfo->value.integer.max = INT_MAX;
sound/usb/mixer_scarlett2.c
6777
uinfo->value.integer.max = SCARLETT2_MIXER_MAX_VALUE;
sound/usb/mixer_scarlett2.c
7256
uinfo->value.integer.max = 4095;
sound/usb/mixer_scarlett2.c
7602
uinfo->value.integer.max = SCARLETT2_MAX_BLUETOOTH_VOLUME;
sound/usb/mixer_us16x08.c
242
uinfo->value.integer.max = SND_US16X08_KCMAX(kcontrol);
sound/usb/mixer_us16x08.c
410
uinfo->value.integer.max = SND_US16X08_KCMAX(kcontrol);
sound/usb/mixer_us16x08.c
611
uinfo->value.integer.max = 0x7FFF;
sound/usb/mixer_us16x08.h
23
#define SND_US16X08_KCSET(bias, step, min, max) \
sound/usb/mixer_us16x08.h
24
(((bias) << 24) | ((step) << 16) | ((min) << 8) | (max))
sound/usb/pcm.c
1000
hwc_debug("hw_rule_period_time: (%u,%u)\n", it->min, it->max);
sound/usb/pcm.c
1029
hwc_debug("hw_rule_period_size: (%u,%u)\n", it->min, it->max);
sound/usb/pcm.c
1041
rmax = max(rmax, ep->cur_period_frames);
sound/usb/pcm.c
1052
rmax = max(rmax, ep->cur_period_frames);
sound/usb/pcm.c
1074
hwc_debug("hw_rule_periods: (%u,%u)\n", it->min, it->max);
sound/usb/pcm.c
1086
rmax = max(rmax, ep->cur_buffer_periods);
sound/usb/pcm.c
1097
rmax = max(rmax, ep->cur_buffer_periods);
sound/usb/pcm.c
775
if (fp->channels < ct->min || fp->channels > ct->max) {
sound/usb/pcm.c
776
hwc_debug(" > check: no valid channels %d (%d/%d)\n", fp->channels, ct->min, ct->max);
sound/usb/pcm.c
780
if (fp->rate_min > it->max || (fp->rate_min == it->max && it->openmax)) {
sound/usb/pcm.c
781
hwc_debug(" > check: rate_min %d > max %d\n", fp->rate_min, it->max);
sound/usb/pcm.c
791
if (ptime > pt->max || (ptime == pt->max && pt->openmax)) {
sound/usb/pcm.c
792
hwc_debug(" > check: ptime %u > max %u\n", ptime, pt->max);
sound/usb/pcm.c
816
if (it->max > rmax) {
sound/usb/pcm.c
817
it->max = rmax;
sound/usb/pcm.c
825
hwc_debug(" --> (%d, %d) (changed = %d)\n", it->min, it->max, changed);
sound/usb/pcm.c
855
hwc_debug("hw_rule_rate: (%d,%d)\n", it->min, it->max);
sound/usb/pcm.c
868
rmax = max(rmax, ep->cur_rate);
sound/usb/pcm.c
879
rmax = max(rmax, ep->cur_rate);
sound/usb/pcm.c
889
rmax = max(rmax, r);
sound/usb/pcm.c
898
rmax = max(rmax, r);
sound/usb/pcm.c
902
rmax = max(rmax, fp->rate_max);
sound/usb/pcm.c
918
hwc_debug("hw_rule_channels: (%d,%d)\n", it->min, it->max);
sound/usb/pcm.c
925
rmax = max(rmax, fp->channels);
sound/usb/qcom/mixer_usb_offload.c
49
uinfo->value.integer.max = SNDRV_CARDS;
sound/usb/qcom/mixer_usb_offload.c
89
uinfo->value.integer.max = 0xff;
sound/usb/qcom/qc_audio_offload.c
956
i->max = channels;
sound/usb/qcom/qc_audio_offload.c
961
i->max = cur_rate;
sound/usb/stream.c
128
uinfo->value.integer.max = SNDRV_CHMAP_LAST;
sound/usb/usx2y/us144mkii_controls.c
355
uinfo->value.integer.max = 96000;
sound/virtio/virtio_kctl.c
63
uinfo->value.integer.max =
sound/virtio/virtio_kctl.c
64
le32_to_cpu(kinfo->value.integer.max);
sound/virtio/virtio_kctl.c
72
uinfo->value.integer64.max =
sound/virtio/virtio_kctl.c
73
le64_to_cpu(kinfo->value.integer64.max);
sound/x86/intel_hdmi_audio.c
538
uinfo->value.integer.max = SNDRV_CHMAP_LAST;
sound/x86/intel_hdmi_audio.c
904
intelhaddata->num_bds = max(intelhaddata->num_bds, 2U);
sound/xen/xen_snd_front_alsa.c
281
req.rates.max = rates->max;
sound/xen/xen_snd_front_alsa.c
284
req.channels.max = channels->max;
sound/xen/xen_snd_front_alsa.c
287
req.buffer.max = buffer->max;
sound/xen/xen_snd_front_alsa.c
290
req.period.max = period->max;
sound/xen/xen_snd_front_alsa.c
318
interval.max = resp.rates.max;
sound/xen/xen_snd_front_alsa.c
325
interval.max = resp.channels.max;
sound/xen/xen_snd_front_alsa.c
332
interval.max = resp.buffer.max;
sound/xen/xen_snd_front_alsa.c
339
interval.max = resp.period.max;
tools/accounting/getdelays.c
285
#define PRINT_FILED_DELAY(name, version, t, count, total, max, min) \
tools/accounting/getdelays.c
295
delay_ms((double)(t)->max), \
tools/accounting/getdelays.c
307
#define PRINT_FILED_DELAY_WITH_TS(name, version, t, count, total, max, min, max_ts) \
tools/accounting/getdelays.c
317
delay_ms((double)(t)->max), \
tools/accounting/getdelays.c
328
delay_ms((double)(t)->max), \
tools/bpf/bpf_exp.y
514
int i, max = curr_instr, ret = -ENOENT;
tools/bpf/bpf_exp.y
516
for (i = 0; i < max; i++) {
tools/bpf/bpftool/prog.c
1936
int ctx_sz = sizeof(*ctx) + 64 * max(sizeof(struct bpf_map_desc),
tools/bpf/resolve_btfids/main.c
897
cap = max(cap + 256, cap * 2);
tools/bpf/resolve_btfids/main.c
916
cap = max(cap + 256, cap * 2);
tools/iio/iio_generic_buffer.c
57
int i = 0, max = 0;
tools/iio/iio_generic_buffer.c
61
if (channels[i].bytes > max)
tools/iio/iio_generic_buffer.c
62
max = channels[i].bytes;
tools/iio/iio_generic_buffer.c
77
misalignment = bytes % max;
tools/iio/iio_generic_buffer.c
79
bytes += max - misalignment;
tools/include/linux/kernel.h
29
#ifndef max
tools/include/linux/kernel.h
45
#define max_t(type, x, y) max((type)x, (type)y)
tools/include/linux/kernel.h
47
#define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
tools/include/linux/rbtree_augmented.h
127
RBTYPE max = RBCOMPUTE(node); \
tools/include/linux/rbtree_augmented.h
130
if (child->RBAUGMENTED > max) \
tools/include/linux/rbtree_augmented.h
131
max = child->RBAUGMENTED; \
tools/include/linux/rbtree_augmented.h
135
if (child->RBAUGMENTED > max) \
tools/include/linux/rbtree_augmented.h
136
max = child->RBAUGMENTED; \
tools/include/linux/rbtree_augmented.h
138
if (exit && node->RBAUGMENTED == max) \
tools/include/linux/rbtree_augmented.h
140
node->RBAUGMENTED = max; \
tools/include/uapi/linux/pkt_sched.h
633
__u32 max; /* max len of qlen_min */
tools/lib/bpf/btf.c
1538
buf_sz = max((__u32)BPF_LOG_BUF_SIZE, buf_sz * 2);
tools/lib/bpf/btf.c
3742
d->hypot_cap += max((size_t)16, d->hypot_cap / 2);
tools/lib/bpf/btf.c
858
max_align = max(max_align, align);
tools/lib/bpf/btf.c
971
start_id = max(start_id, btf->named_start_id);
tools/lib/bpf/btf_dump.c
1007
m_sz = max((__s64)0, btf__resolve_size(d->btf, m->type));
tools/lib/bpf/btf_dump.c
1216
new_cap = max(16, d->decl_stack_cap * 3 / 2);
tools/lib/bpf/btf_dump.c
387
new_cap = max(16, d->emit_queue_cap * 3 / 2);
tools/lib/bpf/btf_dump.c
852
max_align = max(align, max_align);
tools/lib/bpf/libbpf.c
1867
int pfx_len, sfx_len = max((size_t)7, strlen(real_name));
tools/lib/bpf/libbpf.c
7884
log_buf_size = max((size_t)BPF_LOG_BUF_SIZE, log_buf_size * 2);
tools/lib/bpf/libbpf_internal.h
106
#ifndef max
tools/lib/perf/cpumap.c
216
max_entries += max(end_cpu - start_cpu + 1, 16UL);
tools/lib/perf/tests/test-evlist.c
455
long long max = 0, min = 0, avg = 0;
tools/lib/perf/tests/test-evlist.c
545
if (counts[i].val > max)
tools/lib/perf/tests/test-evlist.c
546
max = counts[i].val;
tools/lib/perf/tests/test-evlist.c
562
error = display_error(avg, max, min, expected_counts.val);
tools/mm/slabinfo.c
810
unsigned long long max = 1ULL << 63;
tools/mm/slabinfo.c
813
unsigned long long min_objsize = max, max_objsize = 0, avg_objsize;
tools/mm/slabinfo.c
816
unsigned long long min_partial = max, max_partial = 0,
tools/mm/slabinfo.c
820
unsigned long long min_slabs = max, max_slabs = 0,
tools/mm/slabinfo.c
824
unsigned long long min_size = max, max_size = 0,
tools/mm/slabinfo.c
828
unsigned long long min_used = max, max_used = 0,
tools/mm/slabinfo.c
832
unsigned long long min_waste = max, max_waste = 0,
tools/mm/slabinfo.c
835
unsigned long long min_objects = max, max_objects = 0,
tools/mm/slabinfo.c
838
unsigned long long min_objwaste = max,
tools/mm/slabinfo.c
843
unsigned long long min_memobj = max,
tools/mm/slabinfo.c
852
unsigned long min_partobj = max, max_partobj = 0,
tools/net/ynl/ynltool/page-pool.c
26
unsigned int i, max;
tools/net/ynl/ynltool/page-pool.c
399
a.max = 64;
tools/net/ynl/ynltool/page-pool.c
40
if (a->i == a->max) {
tools/net/ynl/ynltool/page-pool.c
400
a.s = calloc(a.max, sizeof(*a.s));
tools/net/ynl/ynltool/page-pool.c
41
a->max *= 2;
tools/net/ynl/ynltool/page-pool.c
42
a->s = reallocarray(a->s, a->max, sizeof(*a->s));
tools/net/ynl/ynltool/qstats.c
320
double *mean, double *stddev, __u64 *min, __u64 *max)
tools/net/ynl/ynltool/qstats.c
326
*max = 0;
tools/net/ynl/ynltool/qstats.c
339
if (values[i] > *max)
tools/net/ynl/ynltool/qstats.c
340
*max = values[i];
tools/net/ynl/ynltool/qstats.c
361
__u64 min, max;
tools/net/ynl/ynltool/qstats.c
367
compute_stats(values, count, &mean, &stddev, &min, &max);
tools/net/ynl/ynltool/qstats.c
370
ns = min + max > 0 ? (double)2 * (max - min) / (max + min) * 100 : 0.0;
tools/net/ynl/ynltool/qstats.c
375
"", min, max, mean);
tools/net/ynl/ynltool/qstats.c
383
__u64 min, max;
tools/net/ynl/ynltool/qstats.c
389
compute_stats(values, count, &mean, &stddev, &min, &max);
tools/net/ynl/ynltool/qstats.c
392
ns = min + max > 0 ? (double)2 * (max - min) / (max + min) * 100 : 0.0;
tools/net/ynl/ynltool/qstats.c
398
jsonw_uint_field(json_wtr, "max", max);
tools/objtool/arch/x86/special.c
24
unsigned int len = max(iter->orig_len, alt->orig_len);
tools/objtool/check.c
390
cfi_bits = max(10, ilog2(size));
tools/objtool/elf.c
1110
max_reloc = max(max_reloc, nr_reloc);
tools/objtool/elf.c
1487
nr_alloc = max(64UL, roundup_pow_of_two(nr_relocs_new));
tools/objtool/elf.c
771
int num = max(1U, sym->idx/3);
tools/objtool/elf.c
80
__elf_bits(name) = max(10, ilog2(size)); \
tools/perf/bench/numa.c
1063
nodes_max = max(nodes, nodes_max);
tools/perf/bench/numa.c
1117
loops_done_max = max(loops_done, loops_done_max);
tools/perf/bench/numa.c
1129
nr_max = max(nr, nr_max);
tools/perf/builtin-annotate.c
132
branch->max_coverage = max(branch->max_coverage, entry->coverage);
tools/perf/builtin-ftrace.c
1036
printf(" max time: %20"PRIu64"\n", latency_stats.max);
tools/perf/builtin-ftrace.c
1354
v1 = p1->st.max;
tools/perf/builtin-ftrace.c
1355
v2 = p2->st.max;
tools/perf/builtin-ftrace.c
1408
p->st.max / 1000, p->st.max % 1000, p->st.n, name);
tools/perf/builtin-kmem.c
1067
int gfp_len = max(strlen("GFP flags"), max_gfp_len);
tools/perf/builtin-kmem.c
1115
int gfp_len = max(strlen("GFP flags"), max_gfp_len);
tools/perf/builtin-kvm.c
1080
u64 ecount, etime, max, min;
tools/perf/builtin-kvm.c
1089
max = get_event_max(event, vcpu);
tools/perf/builtin-kvm.c
1098
pr_info("%9.2fus ", (double)max / NSEC_PER_USEC);
tools/perf/builtin-kvm.c
153
EV_METRIC_CMP(max)
tools/perf/builtin-kvm.c
174
EV_METRIC_ENTRY(max)
tools/perf/builtin-kvm.c
79
COMPARE_EVENT_KEY(max, stats.max);
tools/perf/builtin-list.c
101
if ((column + wlen >= max && column > start) || saw_newline) {
tools/perf/builtin-list.c
90
static void wordwrap(FILE *fp, const char *s, int start, int max, int corr)
tools/perf/builtin-sched.c
2966
print_sched_time(r->run_stats.max, 6);
tools/perf/builtin-sched.c
672
(size_t) max(16 * 1024, (int)PTHREAD_STACK_MIN));
tools/perf/builtin-script.c
2058
int max = 0;
tools/perf/builtin-script.c
2063
max = MAX(len, max);
tools/perf/builtin-script.c
2066
return max;
tools/perf/builtin-stat.c
3008
if (WRITE_STAT_ROUND_EVENT(stat_config.walltime_nsecs_stats->max, FINAL))
tools/perf/builtin-trace.c
1549
int max;
tools/perf/builtin-trace.c
1589
ttrace->files.max = -1;
tools/perf/builtin-trace.c
1655
for (int i = 0; i <= ttrace->files.max; ++i) {
tools/perf/builtin-trace.c
1661
ttrace->files.max = -1;
tools/perf/builtin-trace.c
1669
if (fd > ttrace->files.max) {
tools/perf/builtin-trace.c
1675
if (ttrace->files.max != -1) {
tools/perf/builtin-trace.c
1676
memset(nfiles + ttrace->files.max + 1, 0,
tools/perf/builtin-trace.c
1677
(fd - ttrace->files.max) * sizeof(struct file));
tools/perf/builtin-trace.c
1683
ttrace->files.max = fd;
tools/perf/builtin-trace.c
1750
if ((fd > ttrace->files.max || ttrace->files.table[fd].pathname == NULL)) {
tools/perf/builtin-trace.c
1797
if (ttrace && fd >= 0 && fd <= ttrace->files.max)
tools/perf/builtin-trace.c
4868
double max = (double)(stats->stats.max) / NSEC_PER_MSEC;
tools/perf/builtin-trace.c
4883
printed += fprintf(fp, " %9.3f %9.2f%%\n", max, pct);
tools/perf/builtin-trace.c
975
int max_len = max(size, strlen(name));
tools/perf/trace/beauty/include/uapi/sound/asound.h
1148
long max; /* R: maximum value */
tools/perf/trace/beauty/include/uapi/sound/asound.h
1153
long long max; /* R: maximum value */
tools/perf/trace/beauty/include/uapi/sound/asound.h
395
unsigned int min, max;
tools/perf/ui/hist.c
128
int len = max(fmt->user_len ?: fmt->len, (int)strlen(fmt->name));
tools/perf/ui/hist.c
390
len = max(len, nr * fmt->len);
tools/perf/util/annotate.c
2096
al->cycles->max);
tools/perf/util/annotate.c
545
al->cycles->max = ch->cycles_max;
tools/perf/util/annotate.h
108
u64 max;
tools/perf/util/bpf-trace-summary.c
154
double max = (double)(stat->max_time) / NSEC_PER_MSEC;
tools/perf/util/bpf-trace-summary.c
166
stat->count, stat->error, total, min, avg, max,
tools/perf/util/bpf_ftrace.c
196
stats->max = skel->bss->max;
tools/perf/util/bpf_ftrace.c
201
stats->max /= 1000;
tools/perf/util/bpf_skel/func_latency.bpf.c
123
if (delta > max)
tools/perf/util/bpf_skel/func_latency.bpf.c
124
max = delta;
tools/perf/util/bpf_skel/func_latency.bpf.c
44
__s64 max;
tools/perf/util/cpumap.c
412
static int get_max_num(char *path, int *max)
tools/perf/util/cpumap.c
430
if (sscanf(&buf[num], "%d", max) < 1) {
tools/perf/util/cpumap.c
436
(*max)++;
tools/perf/util/cpumap.c
448
int max, ret = -1;
tools/perf/util/cpumap.c
465
ret = get_max_num(path, &max);
tools/perf/util/cpumap.c
469
max_cpu_num.cpu = max;
tools/perf/util/cpumap.c
478
ret = get_max_num(path, &max);
tools/perf/util/cpumap.c
480
if (!ret && max > INT16_MAX) {
tools/perf/util/cpumap.c
481
pr_err("Read out of bounds max cpus of %d\n", max);
tools/perf/util/cpumap.c
485
max_present_cpu_num.cpu = (int16_t)max;
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
371
packet_queue->cs_timestamp = max(packet_queue->cs_timestamp, estimated_first_ts);
tools/perf/util/env.c
701
nr = max(nr, (int)perf_cpu_map__max(nn->map).cpu);
tools/perf/util/event.c
845
al->parallelism = max(1, min(machine->parallelism, machine__nr_cpus_avail(machine)));
tools/perf/util/evlist.c
893
int max;
tools/perf/util/evlist.c
895
if (sysctl__read_int("kernel/perf_event_mlock_kb", &max) < 0) {
tools/perf/util/evlist.c
901
max = 512;
tools/perf/util/evlist.c
903
max -= (page_size / 1024);
tools/perf/util/evlist.c
906
pages = (max * 1024) / page_size;
tools/perf/util/evlist.c
924
unsigned long max)
tools/perf/util/evlist.c
965
if (pages > max)
tools/perf/util/evlist.c
973
unsigned long max = UINT_MAX;
tools/perf/util/evlist.c
976
if (max > SIZE_MAX / page_size)
tools/perf/util/evlist.c
977
max = SIZE_MAX / page_size;
tools/perf/util/evlist.c
979
pages = parse_pages_arg(str, 1, max);
tools/perf/util/evsel.h
188
double max;
tools/perf/util/header.c
1352
size = max(phys, size);
tools/perf/util/intel-pt.c
1311
unsigned int entry_cnt = max(LBRS_MAX, pt->br_stack_sz);
tools/perf/util/intel-tpebs.c
603
val = rint(evsel->retirement_latency.max);
tools/perf/util/intel-tpebs.c
617
val = t->stats.max;
tools/perf/util/mem2node.c
52
int i, j = 0, max = 0;
tools/perf/util/mem2node.c
59
max += bitmap_weight(n->set, n->size);
tools/perf/util/mem2node.c
62
entries = zalloc(sizeof(*entries) * max);
tools/perf/util/ordered-events.c
375
unsigned int max, struct ordered_events *oe)
tools/perf/util/ordered-events.c
380
for (i = 0; i < max; i++)
tools/perf/util/parse-events.c
1616
evsel->retirement_latency.max = info.retirement_latency_max;
tools/perf/util/sort.c
121
width = max(7U, width) - 8;
tools/perf/util/sort.c
170
width = max(7U, width) - 8;
tools/perf/util/spark.c
15
unsigned long min = ULONG_MAX, max = 0, f;
tools/perf/util/spark.c
20
if (val[i] > max)
tools/perf/util/spark.c
21
max = val[i];
tools/perf/util/spark.c
23
f = ((max - min) << SPARK_SHIFT) / (NUM_SPARKS - 1);
tools/perf/util/stat.c
29
if (val > stats->max)
tools/perf/util/stat.c
30
stats->max = val;
tools/perf/util/stat.h
126
stats->max = 0;
tools/perf/util/stat.h
18
u64 max, min;
tools/perf/util/symbol-elf.c
255
sz = max(phdr->p_memsz, phdr->p_filesz);
tools/power/cpupower/lib/cpufreq.c
226
unsigned long *max)
tools/power/cpupower/lib/cpufreq.c
228
if ((!min) || (!max))
tools/power/cpupower/lib/cpufreq.c
235
*max = sysfs_cpufreq_get_one_value(cpu, CPUINFO_MAX_FREQ);
tools/power/cpupower/lib/cpufreq.c
236
if (!*max)
tools/power/cpupower/lib/cpufreq.c
268
policy->max = sysfs_cpufreq_get_one_value(cpu, SCALING_MAX_FREQ);
tools/power/cpupower/lib/cpufreq.c
269
if ((!policy->min) || (!policy->max)) {
tools/power/cpupower/lib/cpufreq.c
619
char max[SYSFS_PATH_MAX];
tools/power/cpupower/lib/cpufreq.c
628
if (policy->max < policy->min)
tools/power/cpupower/lib/cpufreq.c
635
snprintf(max, SYSFS_PATH_MAX, "%lu", policy->max);
tools/power/cpupower/lib/cpufreq.c
638
write_max_first = (old_min && (policy->max < old_min) ? 0 : 1);
tools/power/cpupower/lib/cpufreq.c
642
max, strlen(max));
tools/power/cpupower/lib/cpufreq.c
654
max, strlen(max));
tools/power/cpupower/lib/cpufreq.h
13
unsigned long max;
tools/power/cpupower/lib/cpufreq.h
87
unsigned long *max);
tools/power/cpupower/utils/cpufreq-info.c
294
unsigned long min, max;
tools/power/cpupower/utils/cpufreq-info.c
296
if (cpufreq_get_hardware_limits(cpu, &min, &max)) {
tools/power/cpupower/utils/cpufreq-info.c
305
print_speed(max, no_rounding);
tools/power/cpupower/utils/cpufreq-info.c
308
printf("%lu %lu\n", min, max);
tools/power/cpupower/utils/cpufreq-info.c
339
print_speed(policy->max, no_rounding);
tools/power/cpupower/utils/cpufreq-info.c
62
unsigned long min, max;
tools/power/cpupower/utils/cpufreq-info.c
72
if (cpufreq_get_hardware_limits(cpu, &min, &max)) {
tools/power/cpupower/utils/cpufreq-info.c
73
max = 0;
tools/power/cpupower/utils/cpufreq-info.c
75
min_pctg = (policy->min * 100) / max;
tools/power/cpupower/utils/cpufreq-info.c
76
max_pctg = (policy->max * 100) / max;
tools/power/cpupower/utils/cpufreq-info.c
79
cpu , policy->min, max ? min_pctg : 0, policy->max,
tools/power/cpupower/utils/cpufreq-info.c
80
max ? max_pctg : 0, policy->governor);
tools/power/cpupower/utils/cpufreq-set.c
157
if (!new_pol->max)
tools/power/cpupower/utils/cpufreq-set.c
158
new_pol->max = cur_pol->max;
tools/power/cpupower/utils/cpufreq-set.c
184
else if (new_pol->max)
tools/power/cpupower/utils/cpufreq-set.c
185
return cpufreq_modify_policy_max(cpu, new_pol->max);
tools/power/cpupower/utils/cpufreq-set.c
208
.max = 0,
tools/power/cpupower/utils/cpufreq-set.c
238
if (new_pol.max)
tools/power/cpupower/utils/cpufreq-set.c
241
new_pol.max = string_to_frequency(optarg);
tools/power/cpupower/utils/cpufreq-set.c
242
if (new_pol.max == 0) {
tools/power/cpupower/utils/helpers/bitmask.c
252
len += snprintf(buf + len, max(buflen - len, 0), ",");
tools/power/cpupower/utils/helpers/bitmask.c
254
len += snprintf(buf + len, max(buflen - len, 0), "%d", rbot);
tools/power/cpupower/utils/helpers/bitmask.c
256
len += snprintf(buf + len, max(buflen - len, 0), "%d-%d",
tools/power/x86/intel-speed-select/isst-config.c
1691
static int set_clos_param(struct isst_id *id, int clos, int epp, int wt, int min, int max)
tools/power/x86/intel-speed-select/isst-config.c
1702
clos_config.clos_max = max;
tools/power/x86/intel-speed-select/isst-config.c
1714
static int set_cpufreq_scaling_min_max(int cpu, int max, int freq)
tools/power/x86/intel-speed-select/isst-config.c
1719
if (max)
tools/power/x86/intel-speed-select/isst-core-mbox.c
345
static int _set_uncore_min_max(struct isst_id *id, int max, int freq)
tools/power/x86/intel-speed-select/isst-core-mbox.c
350
if (max)
tools/power/x86/intel-speed-select/isst-core-tpmi.c
573
static void _set_uncore_min_max(struct isst_id *id, int max, int freq)
tools/power/x86/intel-speed-select/isst-core-tpmi.c
621
if (max)
tools/sched_ext/include/scx/common.bpf.h
258
[max]"i"(sizeof(base) - sizeof((base) member))); \
tools/sched_ext/include/scx/common.bpf.h
289
[max]"r"(sizeof(arr[0]) * ((n) - 1))); \
tools/testing/memblock/tests/basic_api.c
1058
ASSERT_EQ(memblock.reserved.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/basic_api.c
1072
ASSERT_EQ(memblock.reserved.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/basic_api.c
1199
ASSERT_EQ(memblock.reserved.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/basic_api.c
1222
ASSERT_EQ(memblock.reserved.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/basic_api.c
19
ASSERT_EQ(memblock.memory.max, EXPECTED_MEMBLOCK_REGIONS);
tools/testing/memblock/tests/basic_api.c
24
ASSERT_EQ(memblock.memory.max, EXPECTED_MEMBLOCK_REGIONS);
tools/testing/memblock/tests/basic_api.c
2485
max_reserved = memblock.reserved.max;
tools/testing/memblock/tests/basic_api.c
2491
if (max_reserved != memblock.reserved.max)
tools/testing/memblock/tests/basic_api.c
482
ASSERT_EQ(memblock.memory.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/basic_api.c
500
ASSERT_EQ(memblock.memory.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/basic_api.c
953
ASSERT_EQ(memblock.reserved.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/basic_api.c
967
ASSERT_EQ(memblock.reserved.max, INIT_MEMBLOCK_REGIONS * 2);
tools/testing/memblock/tests/common.c
44
memblock.memory.max = INIT_MEMBLOCK_REGIONS;
tools/testing/memblock/tests/common.c
50
memblock.reserved.max = INIT_MEMBLOCK_RESERVED_REGIONS;
tools/testing/nvdimm/test/nfit.c
1926
t->flush[i] = test_alloc(t, max(PAGE_SIZE,
tools/testing/nvdimm/test/nfit.c
890
int max = SZ_4K / sizeof(struct nd_error_stat_query_record);
tools/testing/nvdimm/test/nfit.c
899
if (i > max)
tools/testing/radix-tree/maple.c
34973
mas->max = mas_safe_pivot(mas, pivots, slot, mte_node_type(prev));
tools/testing/radix-tree/maple.c
34984
unsigned long e, count = 0, max = 1000;
tools/testing/radix-tree/maple.c
34993
check_seq(mt, max, false);
tools/testing/radix-tree/maple.c
35007
check_seq(mt, max, false);
tools/testing/radix-tree/maple.c
35019
check_rev_seq(mt, max, false);
tools/testing/radix-tree/maple.c
35046
unsigned long max = ULONG_MAX;
tools/testing/radix-tree/maple.c
35058
mas_node_walk(mas, mte_to_node(mas->node), type, &min, &max);
tools/testing/radix-tree/maple.c
35067
max = pivots[mas->offset];
tools/testing/radix-tree/maple.c
35069
wr_mas->r_max = offset < mas->end ? pivots[offset] : mas->max;
tools/testing/radix-tree/maple.c
35101
unsigned long i, max = 100;
tools/testing/radix-tree/maple.c
35111
for (i = 0; i <= max; i++)
tools/testing/radix-tree/maple.c
35251
unsigned long i, max = 5000;
tools/testing/radix-tree/maple.c
35254
for (i = 0; i <= max; i++)
tools/testing/radix-tree/maple.c
35264
for (i = 1; i <= max; i++)
tools/testing/radix-tree/maple.c
35278
for (i = 0; i <= max; i++)
tools/testing/radix-tree/maple.c
35291
for (i = 0; i <= max; i++)
tools/testing/radix-tree/maple.c
35304
for (i = 0; i <= max; i++)
tools/testing/radix-tree/maple.c
35317
for (i = 0; i <= max; i++)
tools/testing/radix-tree/maple.c
35330
for (i = 0; i <= max; i++)
tools/testing/radix-tree/maple.c
35346
for (i = 0; i <= max; i++)
tools/testing/radix-tree/maple.c
35362
for (i = 0; i <= max; i++)
tools/testing/radix-tree/maple.c
35374
for (i = 0; i <= max; i++)
tools/testing/radix-tree/maple.c
35395
for (i = 0; i <= max; i++)
tools/testing/radix-tree/maple.c
35419
unsigned long i, max = 100;
tools/testing/radix-tree/maple.c
35423
for (i = 0; i <= max; i++)
tools/testing/radix-tree/maple.c
35637
mas_a.max != mas_b.max) {
tools/testing/radix-tree/maple.c
35659
unsigned long limit = mas->max;
tools/testing/radix-tree/maple.c
35699
mas.max = ULONG_MAX;
tools/testing/radix-tree/maple.c
36185
to = mas.max;
tools/testing/radix-tree/maple.c
421
unsigned long prev, max;
tools/testing/radix-tree/maple.c
435
max = pivots[0];
tools/testing/radix-tree/maple.c
442
if (unlikely(index <= max))
tools/testing/radix-tree/maple.c
447
prev = max;
tools/testing/radix-tree/maple.c
448
max = pivots[offset];
tools/testing/radix-tree/maple.c
452
if (index <= max)
tools/testing/radix-tree/maple.c
454
else if (unlikely(!max))
tools/testing/radix-tree/maple.c
458
prev = max;
tools/testing/radix-tree/maple.c
460
max = mas->max;
tools/testing/radix-tree/maple.c
466
*range_max = max;
tools/testing/radix-tree/maple.c
469
mas->max = max;
tools/testing/selftests/bpf/disasm_helpers.c
61
sfx_start = buf + max((int)strlen(buf) - 1, 0);
tools/testing/selftests/bpf/prog_tests/btf.c
4312
strs_cap += max(16, strs_cap / 2);
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
447
for (column = 0; column <= max(mark1, mark2); ++column) {
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
733
nr_threads = max(2, nr_threads);
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
59
rate *= max(tp->snd_cwnd, tp->packets_out);
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
85
sndcnt = max(prr_delivered - tp->prr_out, newly_acked_sacked);
tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
91
sndcnt = max(sndcnt, (tp->prr_out ? 0 : 1));
tools/testing/selftests/bpf/progs/bpf_cubic.c
22
#define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
tools/testing/selftests/bpf/progs/bpf_cubic.c
375
ca->cnt = max(ca->cnt, 2U);
tools/testing/selftests/bpf/progs/bpf_cubic.c
413
return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U);
tools/testing/selftests/bpf/progs/bpf_dctcp.c
115
return max(tp->snd_cwnd - ((tp->snd_cwnd * ca->dctcp_alpha) >> 11U), 2U);
tools/testing/selftests/bpf/progs/bpf_dctcp.c
139
delivered_ce /= max(1U, delivered);
tools/testing/selftests/bpf/progs/bpf_dctcp.c
154
tp->snd_ssthresh = max(tp->snd_cwnd >> 1U, 2U);
tools/testing/selftests/bpf/progs/bpf_dctcp.c
228
return max(tcp_sk(sk)->snd_cwnd, ca->loss_cwnd);
tools/testing/selftests/bpf/progs/bpf_tracing_net.h
152
#ifndef max
tools/testing/selftests/bpf/progs/profiler.inc.h
153
probe_read_lim(void* dst, void* src, unsigned long len, unsigned long max)
tools/testing/selftests/bpf/progs/profiler.inc.h
155
len = len < max ? len : max;
tools/testing/selftests/bpf/test_sockmap.c
538
verify_push_len = max(txmsg_end_push - overlap_len, 0);
tools/testing/selftests/bpf/test_sockmap.c
539
verify_pop_len = max(txmsg_pop - overlap_len, 0);
tools/testing/selftests/bpf/trace_helpers.c
436
size_t max, i;
tools/testing/selftests/bpf/trace_helpers.c
464
data = elf_rawfile(elf, &max);
tools/testing/selftests/bpf/trace_helpers.c
467
if (phdr->p_offset + phdr->p_memsz > max)
tools/testing/selftests/bpf/veristat.c
1081
lines_cap = max(16, lines_cap * 2);
tools/testing/selftests/bpf/veristat.c
32
#ifndef max
tools/testing/selftests/cgroup/test_memcontrol.c
1029
long max, peak;
tools/testing/selftests/cgroup/test_memcontrol.c
1186
max = cg_read_key_long(memcg, "memory.events", "max ");
tools/testing/selftests/cgroup/test_memcontrol.c
1187
if (max <= 0)
tools/testing/selftests/cgroup/test_memcontrol.c
670
long current, high, max;
tools/testing/selftests/cgroup/test_memcontrol.c
674
max = cg_read_long(cgroup, "memory.max");
tools/testing/selftests/cgroup/test_memcontrol.c
675
if (high != MB(30) && max != MB(30))
tools/testing/selftests/cgroup/test_memcontrol.c
831
long current, max;
tools/testing/selftests/cgroup/test_memcontrol.c
860
max = cg_read_key_long(memcg, "memory.events", "max ");
tools/testing/selftests/cgroup/test_memcontrol.c
861
if (max <= 0)
tools/testing/selftests/drivers/ntsync/ntsync.c
1077
sem_args.max = 2;
tools/testing/selftests/drivers/ntsync/ntsync.c
1082
sem_args.max = 2;
tools/testing/selftests/drivers/ntsync/ntsync.c
1188
sem_args.max = 2;
tools/testing/selftests/drivers/ntsync/ntsync.c
1193
sem_args.max = 2;
tools/testing/selftests/drivers/ntsync/ntsync.c
154
sem_args.max = 2;
tools/testing/selftests/drivers/ntsync/ntsync.c
160
sem_args.max = 2;
tools/testing/selftests/drivers/ntsync/ntsync.c
17
static int read_sem_state(int sem, __u32 *count, __u32 *max)
tools/testing/selftests/drivers/ntsync/ntsync.c
25
*max = args.max;
tools/testing/selftests/drivers/ntsync/ntsync.c
29
#define check_sem_state(sem, count, max) \
tools/testing/selftests/drivers/ntsync/ntsync.c
35
EXPECT_EQ((max), __max); \
tools/testing/selftests/drivers/ntsync/ntsync.c
514
sem_args.max = 3;
tools/testing/selftests/drivers/ntsync/ntsync.c
626
sem_args.max = 3;
tools/testing/selftests/drivers/ntsync/ntsync.c
761
sem_args.max = 3;
tools/testing/selftests/drivers/ntsync/ntsync.c
954
sem_args.max = 3;
tools/testing/selftests/kvm/access_tracking_perf_test.c
419
max(memstress_args.guest_page_size,
tools/testing/selftests/kvm/arm64/arch_timer_edge_cases.c
851
uint32_t max = get_nprocs();
tools/testing/selftests/kvm/arm64/arch_timer_edge_cases.c
856
TEST_ASSERT(max > 1, "Need at least two physical cpus");
tools/testing/selftests/kvm/arm64/sea_to_user.c
263
alignment = max(backing_page_size, guest_page_size);
tools/testing/selftests/kvm/arm64/set_id_regs.c
331
ftr = max((uint64_t)ftr_bits->safe_val + 1, ftr + 1);
tools/testing/selftests/kvm/arm64/set_id_regs.c
351
ftr = max((uint64_t)ftr_bits->safe_val + 1, ftr + 1);
tools/testing/selftests/kvm/kvm_binary_stats_test.c
137
size_data = max(size_data, pdesc->offset + pdesc->size * sizeof(*stats_data));
tools/testing/selftests/kvm/kvm_page_table_test.c
250
alignment = max(large_page_size, guest_page_size);
tools/testing/selftests/kvm/kvm_page_table_test.c
265
alignment = max(0x100000UL, alignment);
tools/testing/selftests/kvm/lib/kvm_util.c
1056
alignment = max(backing_src_pagesz, alignment);
tools/testing/selftests/kvm/pre_fault_memory_test.c
179
alignment = max(0x100000UL, guest_page_size);
tools/testing/selftests/kvm/x86/nested_tsc_adjust_test.c
56
static void check_ia32_tsc_adjust(int64_t max)
tools/testing/selftests/kvm/x86/nested_tsc_adjust_test.c
62
GUEST_ASSERT(adjust <= max);
tools/testing/selftests/mm/cow.c
44
static int detect_thp_sizes(size_t sizes[], int max)
tools/testing/selftests/mm/cow.c
58
for (i = 0; orders && count < max; i++) {
tools/testing/selftests/mm/hugetlb_fault_after_madv.c
62
int max = 10000;
tools/testing/selftests/mm/hugetlb_fault_after_madv.c
86
while (max--) {
tools/testing/selftests/mm/hugetlb_madv_vs_map.c
87
int max = 10;
tools/testing/selftests/mm/hugetlb_madv_vs_map.c
98
while (max--) {
tools/testing/selftests/mm/memfd_secret.c
250
static int set_cap_limits(rlim_t max)
tools/testing/selftests/mm/memfd_secret.c
255
new.rlim_cur = max;
tools/testing/selftests/mm/memfd_secret.c
256
new.rlim_max = max;
tools/testing/selftests/mm/mlock-random-test.c
27
int set_cap_limits(rlim_t max)
tools/testing/selftests/mm/mlock-random-test.c
32
new.rlim_cur = max;
tools/testing/selftests/mm/mlock-random-test.c
33
new.rlim_max = max;
tools/testing/selftests/mm/uffd-wp-mremap.c
22
static int detect_thp_sizes(size_t sizes[], int max)
tools/testing/selftests/mm/uffd-wp-mremap.c
35
for (i = 0; orders && count < max; i++) {
tools/testing/selftests/mm/vm_util.c
315
int detect_hugetlb_page_sizes(size_t sizes[], int max)
tools/testing/selftests/mm/vm_util.c
323
while (count < max) {
tools/testing/selftests/mm/vm_util.h
98
int detect_hugetlb_page_sizes(size_t sizes[], int max);
tools/testing/selftests/net/ipsec.c
1304
req.spi.max = spi;
tools/testing/selftests/net/mptcp/mptcp_diag.c
159
static void parse_rtattr_flags(struct rtattr *tb[], int max, struct rtattr *rta,
tools/testing/selftests/net/mptcp/mptcp_diag.c
164
memset(tb, 0, sizeof(struct rtattr *) * (max + 1));
tools/testing/selftests/net/mptcp/mptcp_diag.c
167
if (type <= max && !tb[type])
tools/testing/selftests/net/mptcp/mptcp_diag.c
27
#define parse_rtattr_nested(tb, max, rta) \
tools/testing/selftests/net/mptcp/mptcp_diag.c
28
(parse_rtattr_flags((tb), (max), RTA_DATA(rta), RTA_PAYLOAD(rta), \
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1222
uint32_t max;
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1244
memcpy(&max, RTA_DATA(attrs), 4);
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1246
"subflows" : "accept", max);
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
218
static int do_nl_req(int fd, struct nlmsghdr *nh, int len, int max)
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
227
if (max == 0) {
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
229
max = 1024;
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
238
rem = ret = recvfrom(fd, data, max, 0, (void *)&nladdr, &addr_len);
tools/testing/selftests/net/nettest.c
628
static int str_to_uint(const char *str, int min, int max, unsigned int *value)
tools/testing/selftests/net/nettest.c
640
(errno != ERANGE) && (min <= number) && (number <= max)) {
tools/testing/selftests/net/tcp_ao/bench-lookups.c
113
st->min = st->max = nsec;
tools/testing/selftests/net/tcp_ao/bench-lookups.c
117
if (st->max < nsec)
tools/testing/selftests/net/tcp_ao/bench-lookups.c
118
st->max = nsec;
tools/testing/selftests/net/tcp_ao/bench-lookups.c
205
desc, nr, bs->min / 1000000, bs->max / 1000000,
tools/testing/selftests/net/tcp_ao/bench-lookups.c
74
uint64_t max;
tools/testing/selftests/net/tcp_ao/lib/proc.c
25
size_t cmp = max(len, strlen(ns->header_name));
tools/testing/selftests/net/txtimestamp.c
116
te->max = 0;
tools/testing/selftests/net/txtimestamp.c
129
if (ts_delta > te->max)
tools/testing/selftests/net/txtimestamp.c
130
te->max = ts_delta;
tools/testing/selftests/net/txtimestamp.c
256
__print_ts_delta_formatted(te->max);
tools/testing/selftests/net/txtimestamp.c
92
int64_t max;
tools/testing/selftests/nolibc/nolibc-test.c
1329
int run_syscall(int min, int max)
tools/testing/selftests/nolibc/nolibc-test.c
1362
for (test = min; test >= 0 && test <= max; test++) {
tools/testing/selftests/nolibc/nolibc-test.c
1514
int run_stdlib(int min, int max)
tools/testing/selftests/nolibc/nolibc-test.c
1519
for (test = min; test >= 0 && test <= max; test++) {
tools/testing/selftests/nolibc/nolibc-test.c
1784
static int run_printf(int min, int max)
tools/testing/selftests/nolibc/nolibc-test.c
1789
for (test = min; test >= 0 && test <= max; test++) {
tools/testing/selftests/nolibc/nolibc-test.c
1836
int max __attribute__((unused)))
tools/testing/selftests/nolibc/nolibc-test.c
1991
int max = INT_MAX;
tools/testing/selftests/nolibc/nolibc-test.c
2042
min = 0; max = INT_MAX;
tools/testing/selftests/nolibc/nolibc-test.c
2057
max = min;
tools/testing/selftests/nolibc/nolibc-test.c
2059
max = atoi(dash);
tools/testing/selftests/nolibc/nolibc-test.c
2066
err = test_names[idx].func(min, max);
tools/testing/selftests/nolibc/nolibc-test.c
2079
err = test_names[idx].func(min, max);
tools/testing/selftests/nolibc/nolibc-test.c
704
int run_startup(int min, int max)
tools/testing/selftests/nolibc/nolibc-test.c
719
for (test = min; test >= 0 && test <= max; test++) {
tools/testing/selftests/nolibc/nolibc-test.c
80
int (*func)(int min, int max); /* handler */
tools/testing/selftests/powerpc/copyloops/memmove_validate.c
40
for (len = 1; len < MAX_OFFSET - max(src_off, dst_off); len++) {
tools/testing/selftests/powerpc/utils.c
213
int base, intmax_t min, intmax_t max)
tools/testing/selftests/powerpc/utils.c
228
if (*result < min || *result > max)
tools/testing/selftests/powerpc/utils.c
237
int base, uintmax_t max)
tools/testing/selftests/powerpc/utils.c
252
if (*result > max)
tools/testing/selftests/timers/adjtick.c
167
long tick, max, interval, err;
tools/testing/selftests/timers/adjtick.c
182
max = systick/10; /* +/- 10% */
tools/testing/selftests/timers/adjtick.c
183
interval = max/4; /* in 4 steps each side */
tools/testing/selftests/timers/adjtick.c
185
for (tick = (systick - max); tick < (systick + max); tick += interval) {
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
118
struct timespec max = {};
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
140
max = timespec_max(max, init_time);
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
152
max.tv_sec, max.tv_nsec);
tools/testing/shared/linux.c
266
capacity = max(size, s->sheaf_capacity);
tools/testing/vma/include/dup.h
1049
struct vm_area_struct *vma_find(struct vma_iterator *vmi, unsigned long max)
tools/testing/vma/include/dup.h
1051
return mas_find(&vmi->mas, max - 1);
tools/thermal/tmon/tui.c
112
int rows = max(DIAG_DEV_ROWS, (entries + 1) / 2);
tools/tracing/latency/latency-collector.c
1852
int max, min;
tools/tracing/latency/latency-collector.c
2020
max = sched_get_priority_max(sched_policy);
tools/tracing/latency/latency-collector.c
2028
if (sched_pri > max) {
tools/tracing/latency/latency-collector.c
2030
"ATTENTION: Reducing priority to maximum, which is %d\n", max);
tools/tracing/latency/latency-collector.c
2031
sched_pri = max;
virt/kvm/guest_memfd.c
173
.start = slot->base_gfn + max(pgoff, start) - pgoff,
virt/kvm/irqchip.c
181
nr_rt_entries = max(nr_rt_entries, ue[i].gsi);
virt/kvm/kvm_main.c
2501
gfn_range.start = max(range->start, slot->base_gfn);
virt/kvm/kvm_main.c
716
max(kvm->mmu_invalidate_range_end, end);