min_t 106 arch/alpha/kernel/srmcons.c for (c = 0; c < min_t(long, 128L, remaining) && !need_cr; c++) min_t 1187 arch/arc/kernel/unwind.c startLoc = min_t(unsigned long, UNW_SP(frame), cfa); min_t 981 arch/arc/mm/cache.c sz = min_t(unsigned int, tot_sz, PAGE_SIZE - off); min_t 116 arch/arm/crypto/crc32-ce-glue.c l = min_t(u32, length, SCALE_F - ((u32)data % SCALE_F)); min_t 150 arch/arm/crypto/crc32-ce-glue.c l = min_t(u32, length, SCALE_F - ((u32)data % SCALE_F)); min_t 33 arch/arm/crypto/nhpoly1305-neon-glue.c unsigned int n = min_t(unsigned int, srclen, SZ_4K); min_t 57 arch/arm/mach-davinci/sram.c len = min_t(unsigned, len, SRAM_SIZE); min_t 163 arch/arm/mach-orion5x/ts78xx-setup.c sz = min_t(int, 4 - off, len); min_t 189 arch/arm/mach-orion5x/ts78xx-setup.c sz = min_t(int, 4 - off, len); min_t 204 arch/arm/mm/cache-uniphier.c unsigned long chunk_size = min_t(unsigned long, size, min_t 1211 arch/arm/mm/mmu.c lowmem_limit = min_t(u64, min_t 33 arch/arm64/crypto/nhpoly1305-neon-glue.c unsigned int n = min_t(unsigned int, srclen, SZ_4K); min_t 2162 arch/ia64/kernel/ptrace.c count = min_t(int, args->n, cfm & 0x7f); min_t 964 arch/ia64/kernel/unwind.c sr->region_start + min_t(int, t, sr->region_len - 1), 16*size); min_t 970 arch/ia64/kernel/unwind.c sr->curr.reg[UNW_REG_PSP].when = sr->region_start + min_t(int, t, sr->region_len - 1); min_t 1006 arch/ia64/kernel/unwind.c reg->when = sr->region_start + min_t(int, t, sr->region_len - 1); min_t 1074 arch/ia64/kernel/unwind.c if (sr->when_target <= sr->region_start + min_t(int, t, sr->region_len - 1)) min_t 1115 arch/ia64/kernel/unwind.c r->when = sr->region_start + min_t(int, t, sr->region_len - 1); min_t 1130 arch/ia64/kernel/unwind.c r->when = sr->region_start + min_t(int, t, sr->region_len - 1); min_t 1145 arch/ia64/kernel/unwind.c r->when = sr->region_start + min_t(int, t, sr->region_len - 1); min_t 61 arch/mips/generic/yamon-dt.c size = min_t(unsigned long, memsize, mr->size); min_t 70 arch/mips/generic/yamon-dt.c memsize -= min_t(unsigned long, memsize, mr->discard); min_t 71 arch/mips/kernel/cevt-r4k.c l = min_t(unsigned int, min_t 85 arch/mips/kernel/cevt-r4k.c l = min_t(unsigned int, min_t 725 arch/mips/kernel/ptrace.c cp_sz = min_t(unsigned int, regset->size, min_t 301 arch/mips/kernel/rtlx.c count = min_t(size_t, count, write_spacefree(rt_read, rt->rt_write, min_t 73 arch/mips/kernel/smp-cps.c for (v = 0; v < min_t(int, core_vpes, NR_CPUS - nvpes); v++) { min_t 87 arch/mips/kernel/smp-cps.c for (v = 0; v < min_t(unsigned, nvpes, NR_CPUS); v++) { min_t 2593 arch/mips/mm/tlbex.c fillbits -= min_t(unsigned, fillbits, 2); min_t 89 arch/mips/mti-malta/malta-dtshim.c size_preio = min_t(unsigned long, size, SZ_256M); min_t 338 arch/mips/txx9/rbtx4939/setup.c curlen = min_t(unsigned long, len, min_t 354 arch/mips/txx9/rbtx4939/setup.c curlen = min_t(unsigned long, len, min_t 104 arch/powerpc/kernel/crash_dump.c csize = min_t(size_t, csize, PAGE_SIZE); min_t 173 arch/powerpc/kernel/fadump.c end = min_t(u64, d_end, (reg->base + reg->size)); min_t 1142 arch/powerpc/kernel/fadump.c tend = min_t(u64, epfn, memblock_region_memory_end_pfn(reg)); min_t 730 arch/powerpc/kernel/prom.c first_memblock_size = min_t(u64, first_memblock_size, memory_limit); min_t 50 arch/powerpc/kvm/book3s_hv_ras.c n = min_t(u32, be32_to_cpu(slb->persistent), SLB_MIN_SIZE); min_t 573 arch/powerpc/kvm/booke.c return min_t(unsigned long long, nr_jiffies, NEXT_TIMER_MAX_DELTA); min_t 2460 arch/powerpc/kvm/powerpc.c nr_lpids = min_t(unsigned long, KVMPPC_NR_LPIDS, nr_lpids_param); min_t 445 arch/powerpc/mm/book3s32/mmu.c memblock_set_current_limit(min_t(u64, first_memblock_size, 0x01000000)); min_t 447 arch/powerpc/mm/book3s32/mmu.c memblock_set_current_limit(min_t(u64, first_memblock_size, 0x10000000)); min_t 1963 arch/powerpc/mm/book3s64/hash_utils.c ppc64_rma_size = min_t(u64, ppc64_rma_size, 0x40000000); min_t 1965 arch/powerpc/mm/book3s64/hash_utils.c ppc64_rma_size = min_t(u64, ppc64_rma_size, min_t 98 arch/powerpc/mm/book3s64/pkeys.c pkeys_total = min_t(int, pkeys_total, min_t 781 arch/powerpc/mm/book3s64/radix_pgtable.c params.aligned_end = min_t(unsigned long, aligned_end, min_t 251 arch/powerpc/mm/book3s64/slb.c n = min_t(int, get_paca()->slb_save_cache_ptr, SLB_CACHE_ENTRIES); min_t 153 arch/powerpc/mm/nohash/40x.c memblock_set_current_limit(min_t(u64, first_memblock_size, 0x00800000)); min_t 214 arch/powerpc/mm/nohash/44x.c size = (min_t(u64, first_memblock_size, PPC_PIN_SIZE)); min_t 171 arch/powerpc/mm/nohash/8xx.c memblock_set_current_limit(min_t(u64, first_memblock_size, 0x02000000)); min_t 259 arch/powerpc/mm/nohash/fsl_booke.c memblock_set_current_limit(min_t(u64, limit, 0x04000000)); min_t 772 arch/powerpc/mm/nohash/tlb.c ppc64_rma_size = min_t(u64, linear_sz, 0x40000000); min_t 775 arch/powerpc/mm/nohash/tlb.c ppc64_rma_size = min_t(u64, first_memblock_size, 0x40000000); min_t 181 arch/powerpc/platforms/powernv/opal-core.c tsz = min_t(size_t, oc_conf->opalcorebuf_sz - tpos, count); min_t 196 arch/powerpc/platforms/powernv/opal-core.c tsz = min_t(size_t, m->offset + m->size - tpos, count); min_t 231 arch/powerpc/platforms/pseries/iommu.c limit = min_t(long, npages, 4096/TCE_ENTRY_SIZE); min_t 382 arch/powerpc/platforms/pseries/iommu.c limit = min_t(long, num_tce, 512); min_t 452 arch/powerpc/platforms/pseries/iommu.c limit = min_t(long, num_tce, 4096/TCE_ENTRY_SIZE); min_t 448 arch/powerpc/platforms/pseries/ras.c len = min_t(int, error_log_length, RTAS_ERROR_LOG_MAX); min_t 625 arch/powerpc/platforms/pseries/setup.c num_res = min_t(int, num_res, PCI_SRIOV_NUM_BARS); min_t 399 arch/powerpc/platforms/pseries/vio.c cmo->spare = min_t(size_t, VIO_CMO_MIN_ENT, (cmo->entitled - cmo->min)); min_t 437 arch/powerpc/platforms/pseries/vio.c chunk = min_t(size_t, avail, VIO_CMO_BALANCE_CHUNK); min_t 160 arch/powerpc/sysdev/fsl_pci.c unsigned int bits = min_t(u32, ilog2(size), min_t 515 arch/powerpc/sysdev/xive/common.c num = min_t(int, cpumask_weight(mask), nr_cpu_ids); min_t 108 arch/s390/boot/mem_detect.c for (i = 0; i < min_t(int, rc, ARRAY_SIZE(storage_extents)); i++) min_t 1039 arch/s390/crypto/aes_s390.c min_bytes = min_t(unsigned int, min_t 543 arch/s390/crypto/prng.c chunk = min_t(int, nbytes, prng_chunk_size); min_t 91 arch/s390/include/asm/facility.h nr = min_t(unsigned long, (nr + 1) * 8, size * 8); min_t 17 arch/s390/kernel/ipl_vmparm.c len = min_t(size_t, size - 1, ipb->ccw.vm_parm_len); min_t 105 arch/s390/kernel/lgr.c for (i = 0; i < min_t(u8, si->count, VM_LEVEL_MAX); i++) { min_t 354 arch/s390/kernel/perf_cpum_sf.c num = min_t(unsigned long, num, sfb_max_limit(hwc) - SFB_ALLOC_REG(hwc)); min_t 432 arch/s390/kernel/perf_cpum_sf.c return min_t(unsigned long, min, DIV_ROUND_UP(percent * base, 100)); min_t 2499 arch/s390/kvm/kvm-s390.c kvm->arch.mem_limit = min_t(unsigned long, TASK_SIZE_MAX, min_t 247 arch/s390/pci/pci_irq.c msi_vecs = min_t(unsigned int, nvec, zdev->max_msi); min_t 44 arch/sh/kernel/cpu/shmobile/cpuidle.c k = min_t(int, allowed_state, requested_state); min_t 32 arch/x86/crypto/nhpoly1305-avx2-glue.c unsigned int n = min_t(unsigned int, srclen, SZ_4K); min_t 32 arch/x86/crypto/nhpoly1305-sse2-glue.c unsigned int n = min_t(unsigned int, srclen, SZ_4K); min_t 4564 arch/x86/events/intel/core.c x86_pmu.max_pebs_events = min_t(unsigned, MAX_PEBS_EVENTS, x86_pmu.num_counters); min_t 75 arch/x86/hyperv/nested.c additional_pages = min_t(u64, pages, HV_MAX_FLUSH_PAGES) - 1; min_t 93 arch/x86/kernel/cpu/mce/intel.c *banks = min_t(unsigned, MAX_NR_BANKS, cap & 0xff); min_t 203 arch/x86/kernel/cpu/microcode/amd.c return min_t(u32, sh_psize, buf_size); min_t 221 arch/x86/kernel/cpu/microcode/amd.c if (sh_psize > min_t(u32, buf_size, max_size)) min_t 452 arch/x86/kernel/cpu/microcode/amd.c memcpy(patch, mc, min_t(u32, desc.psize, PATCH_MAX_SIZE)); min_t 867 arch/x86/kernel/cpu/microcode/amd.c memcpy(amd_ucode_patch, p->data, min_t(u32, ksize(p->data), PATCH_MAX_SIZE)); min_t 109 arch/x86/kernel/cpu/mtrr/if.c len = min_t(size_t, len, LINE_SIZE - 1); min_t 724 arch/x86/kvm/emulate.c *max_size = min_t(u64, ~0u, (1ull << va_bits) - la); min_t 901 arch/x86/kvm/emulate.c size = min_t(unsigned, 15UL ^ cur_size, max_size); min_t 902 arch/x86/kvm/emulate.c size = min_t(unsigned, size, PAGE_SIZE - offset_in_page(linear)); min_t 408 arch/x86/kvm/irq_comm.c nr_ioapic_pins = min_t(u32, table->nr_rt_entries, min_t 1474 arch/x86/kvm/lapic.c ndelay(min_t(u32, delay_ns, timer_advance_ns)); min_t 6566 arch/x86/kvm/svm.c len = min_t(size_t, ((pages * PAGE_SIZE) - offset), size); min_t 6920 arch/x86/kvm/svm.c len = min_t(size_t, (PAGE_SIZE - s_off), size); min_t 297 arch/x86/kvm/vmx/pmu_intel.c pmu->nr_arch_gp_counters = min_t(int, eax.split.num_counters, min_t 307 arch/x86/kvm/vmx/pmu_intel.c min_t(int, edx.split.num_counters_fixed, min_t 107 arch/x86/lib/delay.c delay = min_t(u64, MWAITX_MAX_LOOPS, loops); min_t 144 arch/x86/lib/usercopy_64.c unsigned len = min_t(unsigned, size, ALIGN(dest, 8) - dest); min_t 923 arch/x86/mm/init.c start_pfn = min_t(unsigned long, PFN_UP(start_addr), MAX_DMA_PFN); min_t 924 arch/x86/mm/init.c end_pfn = min_t(unsigned long, PFN_DOWN(end_addr), MAX_DMA_PFN); min_t 987 arch/x86/mm/init.c pages = min_t(unsigned long long, l1tf_limit, pages); min_t 75 arch/x86/mm/mem_encrypt.c len = min_t(size_t, sizeof(sme_early_buffer), size); min_t 144 arch/x86/mm/pageattr-test.c len[i] = min_t(unsigned long, len[i], max_pfn_mapped - pfn - 1); min_t 1123 arch/x86/mm/pageattr.c unsigned long pre_end = min_t(unsigned long, end, next_page); min_t 1167 arch/x86/mm/pageattr.c unsigned long pre_end = min_t(unsigned long, end, next_page); min_t 1255 arch/x86/mm/pageattr.c pre_end = min_t(unsigned long, pre_end, next_page); min_t 1257 arch/x86/mm/pageattr.c cur_pages = min_t(unsigned int, num_pages, cur_pages); min_t 1332 arch/x86/mm/pageattr.c pre_end = min_t(unsigned long, end, next_page); min_t 1334 arch/x86/mm/pageattr.c cur_pages = min_t(int, (int)cpa->numpages, cur_pages); min_t 36 arch/xtensa/kernel/pci-dma.c size_t sz = min_t(size_t, size, PAGE_SIZE - off); min_t 1477 block/bfq-iosched.c entity->budget = min_t(unsigned long, min_t 1557 block/bfq-iosched.c bfqq->entity.budget = min_t(unsigned long, min_t 2978 block/bfq-iosched.c sl = min_t(u64, sl, BFQ_MIN_TT); min_t 3108 block/bfq-iosched.c weight = min_t(u32, 8, min_t 4317 block/bfq-iosched.c limit = min_t(unsigned int, 1, limit); min_t 5195 block/bfq-iosched.c elapsed = min_t(u64, elapsed, 2ULL * bfqd->bfq_slice_idle); min_t 899 block/bio.c len = min_t(size_t, bv->bv_len - iter->iov_offset, iter->count); min_t 946 block/bio.c len = min_t(size_t, PAGE_SIZE - offset, left); min_t 1659 block/blk-cgroup.c u64 sub = min_t(u64, blkg->last_delay, now - old); min_t 1719 block/blk-cgroup.c delay_nsec = min_t(u64, delay_nsec, 250 * NSEC_PER_MSEC); min_t 1160 block/blk-iocost.c u64 delta = min_t(u64, vbudget, vdebt); min_t 1589 block/blk-iocost.c int idx = min_t(int, abs(ioc->busy_level), min_t 260 block/blk-iolatency.c exp_idx = min_t(int, BLKIOLATENCY_NR_EXP_FACTORS - 1, min_t 757 block/blk-iolatency.c iolat->cur_win_nsec = min_t(u64, iolat->cur_win_nsec, min_t 58 block/blk-lib.c sector_t req_sects = min_t(sector_t, nr_sects, min_t 169 block/blk-merge.c return min_t(unsigned long, mask - (mask & offset) + 1, min_t 541 block/blk-mq-sched.c q->nr_requests = 2 * min_t(unsigned int, q->tag_set->queue_depth, min_t 143 block/blk-rq-qos.c depth = min_t(unsigned int, rqd->default_depth, min_t 148 block/blk-settings.c if (b_pfn < (min_t(u64, 0xffffffffUL, BLK_BOUNCE_HIGH) >> PAGE_SHIFT)) min_t 196 block/blk-settings.c max_sectors = min_t(unsigned int, max_sectors, BLK_DEF_MAX_SECTORS); min_t 349 block/blk-throttle.c ret = min_t(unsigned int, tg->iops[rw][LIMIT_MAX], adjusted); min_t 1638 block/blk-throttle.c v[2] = min_t(u64, val, UINT_MAX); min_t 1640 block/blk-throttle.c v[3] = min_t(u64, val, UINT_MAX); min_t 1790 block/blk-throttle.c time = min_t(unsigned long, MAX_IDLE_TIME, 4 * tg->idletime_threshold); min_t 106 block/bsg.c int len = min_t(unsigned int, hdr->max_response_len, min_t 51 block/cmdline-parser.c length = min_t(int, next - partdef, min_t 111 block/cmdline-parser.c length = min_t(int, next - bdevdef, sizeof(newparts->name) - 1); min_t 123 block/cmdline-parser.c min_t(int, next - bdevdef, sizeof(buf) - 1); min_t 382 block/compat_ioctl.c max_sectors = min_t(unsigned int, USHRT_MAX, min_t 564 block/ioctl.c max_sectors = min_t(unsigned int, USHRT_MAX, min_t 626 block/kyber-iosched.c bucket = min_t(unsigned int, div64_u64(latency - 1, divisor), min_t 41 block/partitions/cmdline.c label_min = min_t(int, sizeof(info->volname) - 1, min_t 220 block/partitions/efi.c sz, min_t(uint32_t, min_t 75 block/scsi_ioctl.c max_sectors = min_t(unsigned int, max_sectors, INT_MAX >> 9); min_t 82 block/scsi_ioctl.c int val = min_t(int, q->sg_reserved_size, max_sectors_bytes(q)); min_t 277 crypto/adiantum.c n = min_t(unsigned int, miter.length, bulk_len - i); min_t 410 crypto/af_alg.c int plen = min_t(int, len, PAGE_SIZE - off); min_t 598 crypto/af_alg.c size_t plen = min_t(size_t, used, sg[i].length); min_t 873 crypto/af_alg.c len = min_t(size_t, len, min_t 899 crypto/af_alg.c len = min_t(unsigned long, len, af_alg_sndbuf(sk)); min_t 914 crypto/af_alg.c plen = min_t(size_t, len, PAGE_SIZE); min_t 1131 crypto/af_alg.c seglen = min_t(size_t, (maxsize - len), min_t 598 crypto/drbg.c int len = min_t(int, buflen, INT_MAX); min_t 1825 crypto/drbg.c u32 scratchpad_use = min_t(u32, outlen, DRBG_OUTSCRATCHLEN); min_t 118 crypto/ecdh.c nbytes = min_t(size_t, nbytes, req->dst_len); min_t 100 crypto/nhpoly1305.c bytes = min_t(unsigned int, srclen, NH_MESSAGE_BYTES); min_t 375 crypto/skcipher.c walk->nbytes = min_t(unsigned, n, min_t 771 crypto/testmgr.c num_flips = min_t(size_t, 1 << (prandom_u32() % 8), count * 8); min_t 780 crypto/testmgr.c num_flips = min_t(size_t, 1 << (prandom_u32() % 8), count); min_t 254 drivers/acpi/acpi_pad.c num_cpus = min_t(unsigned int, num_cpus, num_online_cpus()); min_t 524 drivers/acpi/nfit/core.c min_t(u32, 256, in_buf.buffer.length), true); min_t 567 drivers/acpi/nfit/core.c min_t(u32, 128, out_obj->buffer.length), true); min_t 2458 drivers/acpi/nfit/core.c c = min_t(size_t, len, mmio->line_size - line_offset); min_t 974 drivers/acpi/property.c min_t(u32, nval, obj->package.count)); min_t 2038 drivers/android/binder.c read_size = min_t(size_t, sizeof(*object), buffer->data_size - offset); min_t 691 drivers/android/binder_alloc.c alloc->buffer_size = min_t(unsigned long, vma->vm_end - vma->vm_start, min_t 1120 drivers/android/binder_alloc.c size = min_t(size_t, bytes, PAGE_SIZE - pgoff); min_t 1153 drivers/android/binder_alloc.c size = min_t(size_t, bytes, PAGE_SIZE - pgoff); min_t 2733 drivers/ata/libata-core.c dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_128, min_t 2737 drivers/ata/libata-core.c dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_1024, min_t 2294 drivers/atm/nicstar.c min_t(int, remaining, iov->iov_len); min_t 81 drivers/auxdisplay/ks0108.c ks0108_writedata(min_t(unsigned char, startline, 63) | bit(6) | min_t 87 drivers/auxdisplay/ks0108.c ks0108_writedata(min_t(unsigned char, address, 63) | bit(6)); min_t 92 drivers/auxdisplay/ks0108.c ks0108_writedata(min_t(unsigned char, page, 7) | bit(3) | bit(4) | min_t 320 drivers/base/firmware_loader/fallback.c int page_cnt = min_t(size_t, PAGE_SIZE - page_ofs, count); min_t 1358 drivers/base/platform.c min_t(int, epdrv->bufsize, strlen(&buf[n]) + 1)); min_t 122 drivers/base/regmap/regmap-spmi.c len = min_t(size_t, val_size, 16); min_t 134 drivers/base/regmap/regmap-spmi.c len = min_t(size_t, val_size, 8); min_t 162 drivers/base/regmap/regmap-spmi.c len = min_t(size_t, val_size, 16); min_t 174 drivers/base/regmap/regmap-spmi.c len = min_t(size_t, val_size, 8); min_t 386 drivers/block/aoe/aoecmd.c f->iter.bi_size = min_t(unsigned long, min_t 178 drivers/block/brd.c copy = min_t(size_t, n, PAGE_SIZE - offset); min_t 200 drivers/block/brd.c copy = min_t(size_t, n, PAGE_SIZE - offset); min_t 232 drivers/block/brd.c copy = min_t(size_t, n, PAGE_SIZE - offset); min_t 362 drivers/block/drbd/drbd_actlog.c mx = min_t(int, AL_CONTEXT_PER_TRANSACTION, min_t 598 drivers/block/drbd/drbd_bitmap.c do_now = min_t(size_t, ALIGN(offset + 1, LWPP), end) - offset; min_t 832 drivers/block/drbd/drbd_bitmap.c do_now = min_t(size_t, ALIGN(offset+1, LWPP), end) - offset; min_t 883 drivers/block/drbd/drbd_bitmap.c do_now = min_t(size_t, ALIGN(offset+1, LWPP), end) - offset; min_t 995 drivers/block/drbd/drbd_bitmap.c len = min_t(unsigned int, PAGE_SIZE, min_t 1880 drivers/block/drbd/drbd_int.h ? min_t(sector_t, DRBD_MAX_SECTORS_FLEX, min_t 1885 drivers/block/drbd/drbd_int.h s = min_t(sector_t, DRBD_MAX_SECTORS_FLEX, min_t 1888 drivers/block/drbd/drbd_int.h s = min_t(sector_t, s, min_t 1893 drivers/block/drbd/drbd_int.h s = min_t(sector_t, DRBD_MAX_SECTORS, min_t 1242 drivers/block/drbd/drbd_main.c num_words = min_t(size_t, data_size / sizeof(*p), min_t 1640 drivers/block/drbd/drbd_main.c unsigned l = min_t(unsigned, len, PAGE_SIZE); min_t 1108 drivers/block/drbd/drbd_nl.c size = min_t(sector_t, p_size, m_size); min_t 608 drivers/block/drbd/drbd_receiver.c my_addr_len = min_t(int, connection->my_addr_len, sizeof(src_in6)); min_t 616 drivers/block/drbd/drbd_receiver.c peer_addr_len = min_t(int, connection->peer_addr_len, sizeof(src_in6)); min_t 711 drivers/block/drbd/drbd_receiver.c my_addr_len = min_t(int, connection->my_addr_len, sizeof(struct sockaddr_in6)); min_t 1706 drivers/block/drbd/drbd_receiver.c unsigned len = min_t(unsigned, data_size, PAGE_SIZE); min_t 1952 drivers/block/drbd/drbd_receiver.c unsigned len = min_t(int, ds, PAGE_SIZE); min_t 1996 drivers/block/drbd/drbd_receiver.c unsigned int len = min_t(int, data_size, PAGE_SIZE); min_t 2036 drivers/block/drbd/drbd_receiver.c expect = min_t(int, data_size, bvec.bv_len); min_t 3846 drivers/block/drbd/drbd_receiver.c int s = min_t(int, size, DRBD_SOCKET_BUFFER_SIZE); min_t 4684 drivers/block/drbd/drbd_receiver.c unsigned int num_words = min_t(size_t, data_size / sizeof(*p), min_t 5370 drivers/block/drbd/drbd_receiver.c connection->agreed_pro_version = min_t(int, PRO_VERSION_MAX, p->protocol_max); min_t 392 drivers/block/drbd/drbd_state.c disk_state = min_t(enum drbd_disk_state, disk_state, device->state.disk); min_t 424 drivers/block/drbd/drbd_state.c conn = min_t(enum drbd_conns, conn, device->state.conn); min_t 2241 drivers/block/drbd/drbd_state.c ns_min.conn = min_t(enum drbd_conns, ns.conn, ns_min.conn); min_t 2242 drivers/block/drbd/drbd_state.c ns_min.disk = min_t(enum drbd_disk_state, ns.disk, ns_min.disk); min_t 2243 drivers/block/drbd/drbd_state.c ns_min.pdsk = min_t(enum drbd_disk_state, ns.pdsk, ns_min.pdsk); min_t 1005 drivers/block/drbd/drbd_worker.c disk_state = min_t(enum drbd_disk_state, disk_state, device->state.disk); min_t 1006 drivers/block/drbd/drbd_worker.c pdsk_state = min_t(enum drbd_disk_state, pdsk_state, device->state.pdsk); min_t 1091 drivers/block/drbd/drbd_worker.c unsigned int l = min_t(unsigned int, len, PAGE_SIZE); min_t 704 drivers/block/floppy.c #define SUPBOUND(a, b) (a) = min_t(int, a, b) min_t 2423 drivers/block/floppy.c current_count_sectors = min_t(int, buffer_max - fsector_t, min_t 2574 drivers/block/floppy.c min_t(int, _floppy->sect - fsector_t, min_t 940 drivers/block/null_blk_main.c temp = min_t(size_t, nullb->dev->blocksize, n - count); min_t 977 drivers/block/null_blk_main.c temp = min_t(size_t, nullb->dev->blocksize, n - count); min_t 1006 drivers/block/null_blk_main.c temp = min_t(size_t, n, nullb->dev->blocksize); min_t 1591 drivers/block/null_blk_main.c dev->queue_mode = min_t(unsigned int, dev->queue_mode, NULL_Q_MQ); min_t 1592 drivers/block/null_blk_main.c dev->irqmode = min_t(unsigned int, dev->irqmode, NULL_IRQ_TIMER); min_t 1599 drivers/block/null_blk_main.c dev->cache_size = min_t(unsigned long, ULONG_MAX / 1024 / 1024, min_t 1601 drivers/block/null_blk_main.c dev->mbps = min_t(unsigned int, 1024 * 40, dev->mbps); min_t 82 drivers/block/null_blk_zoned.c nrz = min_t(unsigned int, *nr_zones, dev->nr_zones - zno); min_t 453 drivers/block/rsxx/cregs.c xfer = min_t(unsigned int, size8, MAX_CREG_DATA8); min_t 589 drivers/block/virtio_blk.c num_vqs = min_t(unsigned int, nr_cpu_ids, num_vqs); min_t 1369 drivers/block/xen-blkback/blkback.c int nr_iovecs = min_t(int, (nseg-i), BIO_MAX_PAGES); min_t 1567 drivers/block/zram/zram_drv.c bv.bv_len = min_t(unsigned int, PAGE_SIZE - offset, min_t 240 drivers/bluetooth/ath3k.c size = min_t(uint, count, BULK_SIZE); min_t 318 drivers/bluetooth/ath3k.c size = min_t(uint, count, FW_HDR_SIZE); min_t 340 drivers/bluetooth/ath3k.c size = min_t(uint, count, BULK_SIZE); min_t 117 drivers/bluetooth/bcm203x.c len = min_t(uint, data->fw_size - data->fw_sent, 4096); min_t 487 drivers/bluetooth/bfusb.c size = min_t(uint, count, BFUSB_MAX_BLOCK_SIZE); min_t 549 drivers/bluetooth/bfusb.c size = min_t(uint, count, BFUSB_MAX_BLOCK_SIZE + 3); min_t 712 drivers/bluetooth/btmtksdio.c dlen = min_t(int, 250, fw_size); min_t 271 drivers/bluetooth/btmtkuart.c dlen = min_t(int, 250, fw_size); min_t 462 drivers/bluetooth/btmtkuart.c *sz_h4 = min_t(int, count, bdev->stp_dlen); min_t 601 drivers/bluetooth/btusb.c len = min_t(uint, hci_skb_expect(skb), count); min_t 657 drivers/bluetooth/btusb.c len = min_t(uint, hci_skb_expect(skb), count); min_t 715 drivers/bluetooth/btusb.c len = min_t(uint, hci_skb_expect(skb), count); min_t 2820 drivers/bluetooth/btusb.c dlen = min_t(int, 250, fw_size); min_t 3232 drivers/bluetooth/btusb.c size = min_t(size_t, count, hdr_size); min_t 3252 drivers/bluetooth/btusb.c size = min_t(size_t, count, QCA_DFU_PACKET_LEN); min_t 78 drivers/bluetooth/h4_recv.h len = min_t(uint, hci_skb_expect(skb) - skb->len, count); min_t 200 drivers/bluetooth/hci_h4.c len = min_t(uint, hci_skb_expect(skb) - skb->len, count); min_t 222 drivers/bluetooth/hci_vhci.c len = min_t(unsigned int, skb->len, count); min_t 63 drivers/char/adi.c ver_buf_sz = min_t(size_t, count, MAX_BUF_SZ); min_t 143 drivers/char/adi.c ver_buf_sz = min_t(size_t, count, MAX_BUF_SZ); min_t 611 drivers/char/agp/generic.c min_t(u32,(*bridge_agpstat & AGPSTAT_CAL_MASK),(*vga_agpstat & AGPSTAT_CAL_MASK))); min_t 745 drivers/char/agp/generic.c min_t(u32, (requested_mode & AGPSTAT_RQ_DEPTH), min_t 746 drivers/char/agp/generic.c min_t(u32, (bridge_agpstat & AGPSTAT_RQ_DEPTH), (vga_agpstat & AGPSTAT_RQ_DEPTH)))); min_t 64 drivers/char/dsp56k.c m = min_t(unsigned long, count, maxio); \ min_t 67 drivers/char/hw_random/core.c size_t size = min_t(size_t, 16, rng_buffer_size()); min_t 61 drivers/char/hw_random/exynos-trng.c max = min_t(size_t, max, (EXYNOS_TRNG_FIFO_LEN * 4)); min_t 232 drivers/char/ipmi/bt-bmc.c nread = min_t(ssize_t, len, sizeof(kbuffer) - len_byte); min_t 295 drivers/char/ipmi/bt-bmc.c nwritten = min_t(ssize_t, count, sizeof(kbuffer)); min_t 108 drivers/char/ipmi/ipmb_dev_int.c count = min_t(size_t, count, msg.len + 1); min_t 585 drivers/char/mem.c unsigned long to_write = min_t(unsigned long, count, min_t 240 drivers/char/nvram.c count = min_t(size_t, count, nvram_size - *ppos); min_t 241 drivers/char/nvram.c count = min_t(size_t, count, PAGE_SIZE); min_t 272 drivers/char/nvram.c count = min_t(size_t, count, nvram_size - *ppos); min_t 273 drivers/char/nvram.c count = min_t(size_t, count, PAGE_SIZE); min_t 266 drivers/char/pcmcia/cm4040_cs.c min_bytes_to_read = min_t(size_t, min_bytes_to_read, READ_WRITE_BUFFER_SIZE); min_t 1022 drivers/char/pcmcia/synclink_cs.c c = min(2, min_t(int, fifo_count, min(info->tx_count, TXBUFSIZE - info->tx_get))); min_t 2392 drivers/char/pcmcia/synclink_cs.c char_time = min_t(unsigned long, char_time, timeout); min_t 135 drivers/char/ppdev.c kbuffer = kmalloc(min_t(size_t, count, PP_BUFFER_SIZE), GFP_KERNEL); min_t 147 drivers/char/ppdev.c ssize_t need = min_t(unsigned long, count, PP_BUFFER_SIZE); min_t 210 drivers/char/ppdev.c kbuffer = kmalloc(min_t(size_t, count, PP_BUFFER_SIZE), GFP_KERNEL); min_t 223 drivers/char/ppdev.c ssize_t n = min_t(unsigned long, count - bytes_written, PP_BUFFER_SIZE); min_t 123 drivers/char/ps3flash.c n = min_t(u64, remaining, dev->bounce_size - offset); min_t 192 drivers/char/ps3flash.c n = min_t(u64, remaining, dev->bounce_size - offset); min_t 1136 drivers/char/random.c i = min_t(int, nbytes, CHACHA_BLOCK_SIZE); min_t 1251 drivers/char/random.c credit_entropy_bits(r, min_t(int, fls(delta>>1), 11)); min_t 1417 drivers/char/random.c bytes = min_t(int, bytes, sizeof(tmp)); min_t 1464 drivers/char/random.c ibytes = min_t(size_t, ibytes, have_bytes); min_t 1570 drivers/char/random.c i = min_t(int, nbytes, EXTRACT_SIZE); min_t 1652 drivers/char/random.c i = min_t(int, nbytes, EXTRACT_SIZE); min_t 1906 drivers/char/random.c int chunk = min_t(int, left, sizeof(unsigned long)); min_t 1994 drivers/char/random.c nbytes = min_t(size_t, nbytes, SEC_XFER_SIZE); min_t 2040 drivers/char/random.c nbytes = min_t(size_t, nbytes, INT_MAX >> (ENTROPY_SHIFT + 3)); min_t 317 drivers/char/tpm/st33zp24/st33zp24.c len = min_t(int, burstcnt, count - size); min_t 386 drivers/char/tpm/st33zp24/st33zp24.c size = min_t(int, len - i - 1, burstcnt); min_t 132 drivers/char/tpm/tpm-dev-common.c ret_size = min_t(ssize_t, size, priv->response_length); min_t 518 drivers/char/tpm/tpm1-cmd.c u32 num_bytes = min_t(u32, max, TPM_MAX_RNG_DATA); min_t 335 drivers/char/tpm/tpm2-cmd.c recd = min_t(u32, be16_to_cpu(out->size), num_bytes); min_t 55 drivers/char/tpm/tpm_i2c_atmel.c (int)min_t(size_t, 64, len), buf, len, status); min_t 88 drivers/char/tpm/tpm_i2c_atmel.c (int)min_t(size_t, 64, expected_len), buf, count, min_t 97 drivers/char/tpm/tpm_i2c_atmel.c (int)min_t(size_t, 64, expected_len), buf, count, min_t 155 drivers/char/tpm/tpm_i2c_infineon.c msglen = min_t(unsigned int, min_t 149 drivers/char/tpm/tpm_i2c_nuvoton.c burst_count = min_t(u8, TPM_I2C_MAX_BUF_SIZE, data); min_t 247 drivers/char/tpm/tpm_i2c_nuvoton.c bytes2read = min_t(size_t, burst_count, count - size); min_t 382 drivers/char/tpm/tpm_i2c_nuvoton.c bytes2write = min_t(size_t, burst_count, min_t 295 drivers/char/tpm/tpm_tis_core.c burstcnt = min_t(int, burstcnt, count - size); min_t 387 drivers/char/tpm/tpm_tis_core.c burstcnt = min_t(int, burstcnt, len - count - 1); min_t 66 drivers/char/tpm/tpm_tis_spi.c transfer_len = min_t(u16, len, MAX_SPI_FRAMESIZE); min_t 193 drivers/clk/analogbits/wrpll-cln28hpc.c c->max_r = min_t(u8, MAX_DIVR_DIVISOR, max_r_for_parent); min_t 954 drivers/clk/bcm/clk-bcm2835.c div = min_t(u32, div, maxdiv); min_t 120 drivers/clk/clk-axi-clkgen.c d_max = min_t(unsigned long, fin / fpfd_min, 80); min_t 123 drivers/clk/clk-axi-clkgen.c m_max = min_t(unsigned long, fvco_max * d_max / fin, 64); min_t 313 drivers/clk/clk-axi-clkgen.c return min_t(unsigned long long, tmp, LONG_MAX); min_t 352 drivers/clk/clk-axi-clkgen.c return min_t(unsigned long long, tmp, ULONG_MAX); min_t 414 drivers/clk/clk-divider.c return min_t(unsigned int, value, clk_div_mask(width)); min_t 128 drivers/clk/ingenic/cgu.c n = min_t(unsigned, n, 1 << clk_info->pll.n_bits); min_t 132 drivers/clk/ingenic/cgu.c m = min_t(unsigned, m, 1 << clk_info->pll.m_bits); min_t 423 drivers/clk/ingenic/cgu.c div = min_t(unsigned, div, 1 << clk_info->div.bits); min_t 525 drivers/clk/qcom/clk-rcg2.c div = min_t(u32, div, mask); min_t 541 drivers/clk/qcom/clk-rcg2.c div = min_t(u32, div, mask); min_t 582 drivers/clk/qcom/clk-rcg2.c div = min_t(u32, div, mask); min_t 600 drivers/clk/qcom/clk-rcg2.c div = min_t(u32, div, mask); min_t 118 drivers/clk/rockchip/clk-half-divider.c value = min_t(unsigned int, value, div_mask(divider->width)); min_t 133 drivers/clk/rockchip/clk-mmc-phase.c delay_num = (u8) min_t(u32, delay, 255); min_t 416 drivers/clocksource/sh_mtu2.c mtu->num_channels = min_t(unsigned int, ret, min_t 1162 drivers/cpufreq/powernow-k8.c if (strncmp(cur_drv, drv, min_t(size_t, strlen(cur_drv), strlen(drv)))) min_t 62 drivers/crypto/atmel-ecc.c n_sz = min_t(size_t, ctx->n_sz, req->dst_len); min_t 166 drivers/crypto/atmel-ecc.c nbytes = min_t(size_t, ATMEL_ECC_PUBKEY_SIZE, req->dst_len); min_t 1596 drivers/crypto/atmel-sha.c ctx->bufcnt = min_t(size_t, ctx->block_size, ctx->total); min_t 1642 drivers/crypto/atmel-sha.c ctx->bufcnt = min_t(size_t, ctx->block_size, ctx->total); min_t 525 drivers/crypto/atmel-tdes.c count = min_t(size_t, dd->total, sg_dma_len(dd->in_sg)); min_t 526 drivers/crypto/atmel-tdes.c count = min_t(size_t, count, sg_dma_len(dd->out_sg)); min_t 840 drivers/crypto/axis/artpec6_crypto.c chunk = min_t(dma_addr_t, chunk, min_t 902 drivers/crypto/axis/artpec6_crypto.c chunk = min_t(size_t, chunk, (4-(addr&3))); min_t 37 drivers/crypto/caam/error.c len = min_t(size_t, tlen, it->length); min_t 63 drivers/crypto/caam/sg_sw_qm.h ent_len = min_t(int, sg_dma_len(sg), len); min_t 34 drivers/crypto/caam/sg_sw_qm2.h ent_len = min_t(int, sg_dma_len(sg), len); min_t 54 drivers/crypto/caam/sg_sw_sec4.h ent_len = min_t(int, sg_dma_len(sg), len); min_t 323 drivers/crypto/cavium/cpt/cptvf_main.c nr_queues = min_t(u32, nr_queues, max_dev_queues); min_t 486 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->nr_queues = min_t(u32, MAX_PF_QUEUES, num_online_cpus()); min_t 510 drivers/crypto/ccp/ccp-dev.c int len = min_t(int, sizeof(trng_value), max); min_t 106 drivers/crypto/ccp/ccp-ops.c unsigned int nbytes = min_t(u64, len, wa->bytes_left); min_t 295 drivers/crypto/ccp/ccp-ops.c nbytes = min_t(u64, sg_wa->bytes_left, dm_wa->length); min_t 304 drivers/crypto/ccp/ccp-ops.c nbytes = min_t(u64, sg_wa->bytes_left, nbytes); min_t 335 drivers/crypto/ccp/ccp-ops.c sg_src_len = min_t(u64, src->sg_wa.bytes_left, sg_src_len); min_t 339 drivers/crypto/ccp/ccp-ops.c sg_dst_len = min_t(u64, src->sg_wa.bytes_left, sg_dst_len); min_t 451 drivers/crypto/chelsio/chcr_algo.c len = min_t(u32, left_size, sg_dma_len(sg) - skip_len); min_t 454 drivers/crypto/chelsio/chcr_algo.c ent_len = min_t(u32, len, CHCR_DST_SG_SIZE); min_t 465 drivers/crypto/chelsio/chcr_algo.c walk->last_sg_len = min_t(u32, left_size, sg_dma_len(sg) - min_t 467 drivers/crypto/chelsio/chcr_algo.c left_size -= min_t(u32, left_size, sg_dma_len(sg) - skip_len); min_t 535 drivers/crypto/chelsio/chcr_algo.c small = min_t(unsigned int, sg_dma_len(sg) - skip_len, len); min_t 536 drivers/crypto/chelsio/chcr_algo.c sgmin = min_t(unsigned int, small, CHCR_SRC_SG_SIZE); min_t 552 drivers/crypto/chelsio/chcr_algo.c sgmin = min_t(unsigned int, small, CHCR_SRC_SG_SIZE); min_t 627 drivers/crypto/chelsio/chcr_algo.c sless = min_t(unsigned int, sg_dma_len(src) - soffset - srcskip, min_t 663 drivers/crypto/chelsio/chcr_algo.c sless = min_t(unsigned int, sg_dma_len(src) - srcskip - soffset, min_t 672 drivers/crypto/chelsio/chcr_algo.c less = min_t(unsigned int, sg_dma_len(dst) - offset - min_t 1068 drivers/crypto/chelsio/chtls/chtls_io.c copy = min_t(int, copy, csk->tlshws.txleft); min_t 1122 drivers/crypto/chelsio/chtls/chtls_io.c copy = min_t(int, copy, csk->tlshws.txleft); min_t 269 drivers/crypto/chelsio/chtls/chtls_main.c cdev->send_page_order = min_t(uint, get_order(32768), min_t 164 drivers/crypto/exynos-rng.c *read = min_t(size_t, dlen, EXYNOS_RNG_SEED_SIZE); min_t 234 drivers/crypto/hisilicon/zip/zip_main.c q_num = min_t(u32, HZIP_QUEUE_NUM_V1, HZIP_QUEUE_NUM_V2); min_t 799 drivers/crypto/hisilicon/zip/zip_main.c num_vfs = min_t(int, max_vfs, HZIP_VF_NUM); min_t 218 drivers/crypto/inside-secure/safexcel.c cs_rc_abs_max = min_t(uint, ((dsize >> 2) / cs_trc_lg_rec_wc), 1023); min_t 220 drivers/crypto/inside-secure/safexcel.c cs_rc_max = min_t(uint, cs_rc_abs_max, (asize >> 1)); min_t 226 drivers/crypto/inside-secure/safexcel.c cs_rc_max = min_t(uint, cs_rc_abs_max, asize - (cs_ht_wc >> 2)); min_t 467 drivers/crypto/inside-secure/safexcel.c cd_fetch_cnt = min_t(uint, cd_fetch_cnt, min_t 515 drivers/crypto/inside-secure/safexcel.c rd_fetch_cnt = min_t(uint, rd_fetch_cnt, min_t 758 drivers/crypto/inside-secure/safexcel.c int coal = min_t(int, priv->ring[ring].requests, EIP197_MAX_BATCH_SZ); min_t 1257 drivers/crypto/inside-secure/safexcel.c priv->config.rings = min_t(u32, val & GENMASK(3, 0), max_rings); min_t 86 drivers/crypto/marvell/cipher.c size_t len = min_t(size_t, req->cryptlen - sreq->offset, min_t 178 drivers/crypto/marvell/hash.c len = min_t(size_t, req->nbytes + creq->cache_ptr - sreq->offset, min_t 96 drivers/crypto/nx/nx-842-powernv.c unsigned int l = min_t(unsigned int, len, LEN_ON_PAGE(pa)); min_t 180 drivers/crypto/nx/nx-842-pseries.c entrylen = min_t(int, len, min_t 592 drivers/crypto/nx/nx-842-pseries.c devdata->max_sg_len = min_t(unsigned int, min_t 663 drivers/crypto/nx/nx-842-pseries.c devdata->max_sync_size = min_t(unsigned int, devdata->max_sync_size, min_t 272 drivers/crypto/nx/nx-842.c groups = min_t(unsigned int, NX842_CRYPTO_GROUP_MAX, min_t 276 drivers/crypto/nx/nx-aes-ccm.c max_sg_len = min_t(u64, nx_ctx->ap->sglen, min_t 278 drivers/crypto/nx/nx-aes-ccm.c max_sg_len = min_t(u64, max_sg_len, min_t 282 drivers/crypto/nx/nx-aes-ccm.c to_process = min_t(u32, assoclen - processed, min_t 122 drivers/crypto/nx/nx-aes-gcm.c max_sg_len = min_t(u64, nx_driver.of.max_sg_len/sizeof(struct nx_sg), min_t 124 drivers/crypto/nx/nx-aes-gcm.c max_sg_len = min_t(u64, max_sg_len, min_t 132 drivers/crypto/nx/nx-aes-gcm.c to_process = min_t(u64, nbytes - processed, min_t 134 drivers/crypto/nx/nx-aes-gcm.c to_process = min_t(u64, to_process, min_t 187 drivers/crypto/nx/nx-aes-gcm.c max_sg_len = min_t(u64, nx_driver.of.max_sg_len/sizeof(struct nx_sg), min_t 189 drivers/crypto/nx/nx-aes-gcm.c max_sg_len = min_t(u64, max_sg_len, min_t 200 drivers/crypto/nx/nx-aes-gcm.c to_process = min_t(u64, nbytes - processed, min_t 202 drivers/crypto/nx/nx-aes-gcm.c to_process = min_t(u64, to_process, min_t 196 drivers/crypto/nx/nx-aes-xcbc.c max_sg_len = min_t(u64, nx_driver.of.max_sg_len/sizeof(struct nx_sg), min_t 198 drivers/crypto/nx/nx-aes-xcbc.c max_sg_len = min_t(u64, max_sg_len, min_t 87 drivers/crypto/nx/nx-sha256.c max_sg_len = min_t(u64, nx_ctx->ap->sglen, min_t 89 drivers/crypto/nx/nx-sha256.c max_sg_len = min_t(u64, max_sg_len, min_t 127 drivers/crypto/nx/nx-sha256.c to_process = min_t(u64, total, min_t 189 drivers/crypto/nx/nx-sha256.c max_sg_len = min_t(u64, nx_ctx->ap->sglen, min_t 191 drivers/crypto/nx/nx-sha256.c max_sg_len = min_t(u64, max_sg_len, min_t 87 drivers/crypto/nx/nx-sha512.c max_sg_len = min_t(u64, nx_ctx->ap->sglen, min_t 89 drivers/crypto/nx/nx-sha512.c max_sg_len = min_t(u64, max_sg_len, min_t 126 drivers/crypto/nx/nx-sha512.c to_process = min_t(u64, total, min_t 193 drivers/crypto/nx/nx-sha512.c max_sg_len = min_t(u64, nx_ctx->ap->sglen, min_t 195 drivers/crypto/nx/nx-sha512.c max_sg_len = min_t(u64, max_sg_len, min_t 112 drivers/crypto/nx/nx.c sg_addr = min_t(u64, NX_PAGE_NUM(sg_addr + NX_PAGE_SIZE), min_t 116 drivers/crypto/nx/nx.c sg->len = min_t(u64, sg_addr, next_page) - sg->addr; min_t 272 drivers/crypto/nx/nx.c max_sg_len = min_t(u64, nx_ctx->ap->sglen, min_t 274 drivers/crypto/nx/nx.c max_sg_len = min_t(u64, max_sg_len, min_t 280 drivers/crypto/nx/nx.c *nbytes = min_t(u64, *nbytes, nx_ctx->ap->databytelen); min_t 947 drivers/crypto/omap-aes.c dd->total -= min_t(size_t, AES_BLOCK_SIZE, dd->total); min_t 922 drivers/crypto/qat/qat_common/qat_uclo.c for (s = 0; s < min_t(unsigned int, ae_data->slice_num, min_t 201 drivers/crypto/qce/common.c xtsdusize = min_t(u32, QCE_SECTOR_SIZE, cryptlen); min_t 1373 drivers/crypto/stm32/stm32-cryp.c cryp->total_in -= min_t(size_t, sizeof(u32), cryp->total_in); min_t 1541 drivers/crypto/stm32/stm32-cryp.c cryp->total_in -= min_t(size_t, sizeof(u32), cryp->total_in); min_t 1604 drivers/crypto/stm32/stm32-cryp.c cryp->total_in -= min_t(size_t, 2, cryp->total_in); min_t 1625 drivers/crypto/stm32/stm32-cryp.c cryp->total_in -= min_t(size_t, 2, cryp->total_in); min_t 1637 drivers/crypto/stm32/stm32-cryp.c cryp->total_in -= min_t(size_t, 1, cryp->total_in); min_t 76 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c todo = min_t(size_t, todo, (mi.length - oi) / 4); min_t 92 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c todo = min_t(size_t, todo, (mo.length - oo) / 4); min_t 245 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c todo = min_t(size_t, todo, (mi.length - oi) / 4); min_t 260 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c todo = min_t(size_t, todo, mi.length - oi); min_t 290 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c todo = min_t(size_t, todo, (mo.length - oo) / 4); min_t 316 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c todo = min_t(size_t, min_t 277 drivers/crypto/sunxi-ss/sun4i-ss-hash.c in_r = min_t(size_t, mi.length - in_i, in_r); min_t 297 drivers/crypto/sunxi-ss/sun4i-ss-hash.c in_r = min_t(size_t, mi.length - in_i, areq->nbytes - i); min_t 298 drivers/crypto/sunxi-ss/sun4i-ss-hash.c in_r = min_t(size_t, ((mi.length - in_i) / 4) * 4, in_r); min_t 325 drivers/crypto/sunxi-ss/sun4i-ss-hash.c in_r = min_t(size_t, mi.length - in_i, in_r); min_t 41 drivers/crypto/sunxi-ss/sun4i-ss-prng.c len = min_t(size_t, SS_DATA_LEN / BITS_PER_BYTE, todo); min_t 413 drivers/crypto/virtio/virtio_crypto_algs.c dst_len = min_t(unsigned int, req->nbytes, dst_len); min_t 354 drivers/dma/altera-msgdma.c copy = min_t(size_t, len, MSGDMA_MAX_TRANS_LEN); min_t 421 drivers/dma/altera-msgdma.c len = min_t(size_t, avail, MSGDMA_MAX_TRANS_LEN); min_t 838 drivers/dma/at_hdmac.c xfer_count = min_t(size_t, (len - offset) >> src_width, min_t 234 drivers/dma/bcm2835-dma.c control_block->length = min_t(u32, len, max_len); min_t 1000 drivers/dma/ep93xx_dma.c bytes = min_t(size_t, len - offset, DMA_MAX_CHAN_BYTES); min_t 1094 drivers/dma/fsl-qdma.c blk_num = min_t(int, blk_num, num_online_cpus()); min_t 562 drivers/dma/fsl_raid.c length = min_t(size_t, len, FSL_RE_MAX_DATA_LEN); min_t 319 drivers/dma/img-mdc-dma.c xfer_size = min_t(size_t, mdma->max_xfer_size, len); min_t 414 drivers/dma/img-mdc-dma.c xfer_size = min_t(size_t, mdma->max_xfer_size, min_t 494 drivers/dma/img-mdc-dma.c xfer_size = min_t(size_t, mdma->max_xfer_size, min_t 288 drivers/dma/imx-dma.c now = min_t(size_t, d->len, sg_dma_len(sg)); min_t 1408 drivers/dma/imx-sdma.c count = min_t(size_t, len, SDMA_BD_MAX_CNT); min_t 123 drivers/dma/ioat/prep.c size_t copy = min_t(size_t, len, 1 << ioat_chan->xfercap_log); min_t 193 drivers/dma/ioat/prep.c size_t xfer_size = min_t(size_t, min_t 389 drivers/dma/ioat/prep.c size_t xfer_size = min_t(size_t, len, min_t 497 drivers/dma/ioat/prep.c size_t xfer_size = min_t(size_t, len, min_t 520 drivers/dma/k3dma.c copy = min_t(size_t, len, DMA_MAX_SIZE); min_t 566 drivers/dma/k3dma.c len = min_t(size_t, avail, DMA_MAX_SIZE); min_t 625 drivers/dma/k3dma.c len = min_t(size_t, avail, modulo); min_t 429 drivers/dma/mediatek/mtk-hsdma.c reserved = min_t(u16, num_sgs, atomic_read(&pc->nr_free)); min_t 476 drivers/dma/mmp_pdma.c copy = min_t(size_t, len, PDMA_MAX_DESC_BYTES); min_t 549 drivers/dma/mmp_pdma.c len = min_t(size_t, avail, PDMA_MAX_DESC_BYTES); min_t 1370 drivers/dma/mv_xor.c max_channels = min_t(unsigned int, min_t 453 drivers/dma/nbpfaxi.c return min_t(int, __ffs(size), ilog2(max_burst)); min_t 854 drivers/dma/owl-dma.c bytes = min_t(size_t, (len - offset), OWL_DMA_FRAME_MAX_LENGTH); min_t 957 drivers/dma/pxa_dma.c copy = min_t(size_t, len, PDMA_MAX_DESC_BYTES); min_t 1002 drivers/dma/pxa_dma.c len = min_t(size_t, avail, PDMA_MAX_DESC_BYTES); min_t 993 drivers/dma/stm32-dma.c xfer_count = min_t(size_t, len - offset, min_t 1041 drivers/dma/stm32-mdma.c xfer_count = min_t(size_t, len - offset, min_t 1098 drivers/dma/ti/edma.c nslots = min_t(unsigned, MAX_NR_SG, sg_len); min_t 731 drivers/dma/txx9dmac.c xfer_count = min_t(size_t, len - offset, TXX9_DMA_MAX_COUNT); min_t 977 drivers/dma/xilinx/xilinx_dma.c copy = min_t(size_t, size - done, min_t 828 drivers/dma/xilinx/zynqmp_dma.c copy = min_t(size_t, len, ZYNQMP_DMA_MAX_TRANS_LEN); min_t 531 drivers/dma/zx_dma.c copy = min_t(size_t, len, DMA_MAX_SIZE); min_t 580 drivers/dma/zx_dma.c len = min_t(size_t, avail, DMA_MAX_SIZE); min_t 202 drivers/firmware/arm_scmi/driver.c xfer->rx.len = min_t(size_t, xfer->rx.len, ioread32(&mem->length) - 8); min_t 396 drivers/firmware/arm_scpi.c len = min_t(unsigned int, match->rx_len, CMD_SIZE(cmd)); min_t 76 drivers/firmware/edd.c return edev->index < min_t(unsigned char, edd.mbr_signature_nr, EDD_MBR_SIG_MAX); min_t 82 drivers/firmware/edd.c return edev->index < min_t(unsigned char, edd.edd_info_nr, EDDMAXNR); min_t 728 drivers/firmware/edd.c min_t(unsigned char, EDD_MBR_SIG_MAX, edd.mbr_signature_nr), min_t 729 drivers/firmware/edd.c min_t(unsigned char, EDDMAXNR, edd.edd_info_nr)); min_t 203 drivers/firmware/efi/capsule-loader.c write_byte = min_t(size_t, count, cap_info->page_bytes_remain); min_t 250 drivers/firmware/efi/capsule.c u64 sz = min_t(u64, imagesize, min_t 98 drivers/firmware/efi/efi-pstore.c (size_t)min_t(unsigned long, EFIVARS_DATA_SIZE_MAX, size)); min_t 244 drivers/firmware/efi/efi.c int limit = min_t(unsigned long, EFIVAR_SSDT_NAME_MAX, name_size); min_t 354 drivers/firmware/google/gsmi.c *data_size = min_t(unsigned long, *data_size, min_t 356 drivers/firmware/google/gsmi.c *data_size = min_t(unsigned long, *data_size, param.data_len); min_t 184 drivers/fpga/altera-ps-spi.c size_t stride = min_t(size_t, fw_data_end - fw_data, SZ_4K); min_t 80 drivers/fpga/xilinx-spi.c stride = min_t(size_t, remaining, SZ_4K); min_t 705 drivers/fsi/fsi-core.c read_len = min_t(size_t, count, 4); min_t 742 drivers/fsi/fsi-core.c write_len = min_t(size_t, count, 4); min_t 610 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->doorbell.num_doorbells = min_t(u32, adev->doorbell.size / sizeof(u32), min_t 929 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c min_t(u64, size, sizeof(ras_mask))) ? min_t 88 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c s = min_t(u64, s, size); min_t 122 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c ssize_t s = min_t(u64, 64, size); min_t 2101 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c uint32_t cur_size_in_bytes = min_t(uint64_t, byte_count, min_t 2266 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c size_t cur_size = min_t(size_t, size, PAGE_SIZE - off); min_t 1379 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c unsigned rb_per_pkr = min_t(unsigned, num_rb / num_se / sh_per_se, 2); min_t 1488 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c num_rb_pipes = min_t(unsigned, adev->gfx.config.max_backends_per_se * min_t 1676 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c unsigned rb_per_pkr = min_t(unsigned, num_rb / num_se / sh_per_se, 2); min_t 1811 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c num_rb_pipes = min_t(unsigned, adev->gfx.config.max_backends_per_se * min_t 3540 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c unsigned rb_per_pkr = min_t(unsigned, num_rb / num_se / sh_per_se, 2); min_t 3666 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c num_rb_pipes = min_t(unsigned, adev->gfx.config.max_backends_per_se * min_t 648 drivers/gpu/drm/amd/amdkfd/kfd_events.c user_timeout_ms = min_t(uint32_t, user_timeout_ms, 0x7FFFFFFF); min_t 90 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c pasid_limit = min_t(unsigned int, min_t 391 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c uint32_t min = min_t(uint32_t, clock_insr, CISLAND_MINIMUM_ENGINE_CLOCK); min_t 133 drivers/gpu/drm/armada/armada_gem.c unsigned align = min_t(unsigned, size, SZ_2M); min_t 130 drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c memcpy(buf, audio->eld, min_t(size_t, MAX_ELD_BYTES, len)); min_t 1832 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c min_t(u8, bytes, SCDC_MIN_SOURCE_VERSION)); min_t 345 drivers/gpu/drm/bridge/tc358767.c size_t size = min_t(size_t, DP_AUX_MAX_PAYLOAD_BYTES - 1, msg->size); min_t 511 drivers/gpu/drm/drm_client_modeset.c unsigned int count = min_t(unsigned int, connector_count, BITS_PER_LONG); min_t 2577 drivers/gpu/drm/drm_dp_mst_topology.c ret = min_t(size_t, txmsg->reply.u.remote_dpcd_read_ack.num_bytes, min_t 639 drivers/gpu/drm/drm_fb_helper.c clip->x1 = min_t(u32, clip->x1, x); min_t 640 drivers/gpu/drm/drm_fb_helper.c clip->y1 = min_t(u32, clip->y1, y); min_t 674 drivers/gpu/drm/drm_fb_helper.c y2 = min_t(u32, DIV_ROUND_UP(max, info->fix.line_length), min_t 1630 drivers/gpu/drm/drm_fb_helper.c sizes.fb_width = min_t(u32, desired_mode->hdisplay + x, sizes.fb_width); min_t 1632 drivers/gpu/drm/drm_fb_helper.c sizes.fb_height = min_t(u32, desired_mode->vdisplay + y, sizes.fb_height); min_t 739 drivers/gpu/drm/drm_mipi_dbi.c return min_t(u32, 10000000, spi->max_speed_hz); min_t 975 drivers/gpu/drm/drm_mipi_dbi.c u32 speed_hz = min_t(u32, MIPI_DBI_MAX_SPI_READ_SPEED, min_t 70 drivers/gpu/drm/drm_print.c len = min_t(ssize_t, strlen(str), iterator->remain); min_t 47 drivers/gpu/drm/exynos/exynos_drm_plane.c size = min_t(unsigned, end, last); min_t 49 drivers/gpu/drm/exynos/exynos_drm_plane.c size = min_t(unsigned, last - start, length); min_t 135 drivers/gpu/drm/i915/display/icl_dsi.c for (j = 0; j < min_t(u32, len - i, 4); j++) min_t 1685 drivers/gpu/drm/i915/display/intel_bios.c min_t(size_t, defs->child_dev_size, sizeof(*child))); min_t 7517 drivers/gpu/drm/i915/display/intel_display.c *ret_n = min_t(unsigned int, roundup_pow_of_two(n), DATA_LINK_N_MAX); min_t 570 drivers/gpu/drm/i915/display/intel_dp.c min_slice_count = min_t(u8, min_slice_count, min_t 2013 drivers/gpu/drm/i915/display/intel_dp.c dsc_max_bpc = min_t(u8, DP_DSC_MAX_SUPPORTED_BPC, min_t 2033 drivers/gpu/drm/i915/display/intel_dp.c min_t(u16, drm_edp_dsc_sink_output_bpp(intel_dp->dsc_dpcd) >> 4, min_t 2055 drivers/gpu/drm/i915/display/intel_dp.c pipe_config->dsc_params.compressed_bpp = min_t(u16, min_t 1023 drivers/gpu/drm/i915/display/intel_sdvo.c memcpy(tmp, data + i, min_t(unsigned, 8, length - i)); min_t 1071 drivers/gpu/drm/i915/display/intel_sdvo.c hbuf_size = min_t(unsigned int, length, hbuf_size); min_t 1077 drivers/gpu/drm/i915/display/intel_sdvo.c min_t(unsigned int, 8, hbuf_size - i))) min_t 101 drivers/gpu/drm/i915/display/vlv_dsi.c for (j = 0; j < min_t(u32, len - i, 4); j++) min_t 117 drivers/gpu/drm/i915/display/vlv_dsi.c for (j = 0; j < min_t(u32, len - i, 4); j++) min_t 1467 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c min_t(unsigned int, remain, ARRAY_SIZE(stack)); min_t 1613 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c min_t(u64, BIT_ULL(31), size - copied); min_t 2370 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c if (nfences > min_t(unsigned long, min_t 189 drivers/gpu/drm/i915/gem/i915_gem_mman.c min_t(unsigned int, chunk, min_t 302 drivers/gpu/drm/i915/gem/i915_gem_mman.c min_t(u64, vma->size, area->vm_end - area->vm_start), min_t 51 drivers/gpu/drm/i915/gem/i915_gem_object_blt.c u32 size = min_t(u64, rem, block_size); min_t 236 drivers/gpu/drm/i915/gem/i915_gem_object_blt.c size = min_t(u64, rem, block_size); min_t 549 drivers/gpu/drm/i915/gem/i915_gem_shmem.c unsigned int len = min_t(typeof(size), size, PAGE_SIZE); min_t 191 drivers/gpu/drm/i915/gem/i915_gem_wait.c return min_t(u64, MAX_JIFFY_OFFSET, nsecs_to_jiffies64(n) + 1); min_t 29 drivers/gpu/drm/i915/gem/selftests/i915_gem_client_blt.c u32 sz = min_t(u64, ce->vm->total >> 4, prandom_u32_state(&prng)); min_t 435 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c min_t(unsigned int, ndwords - dw, max_dwords(obj)); min_t 556 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c min_t(unsigned int, ndwords - dw, max_dwords(obj)); min_t 1126 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c min_t(unsigned int, ndwords - dw, max_dwords(obj)); min_t 35 drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c u32 sz = min_t(u64, ce->vm->total >> 4, prandom_u32_state(&prng)); min_t 120 drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c u32 sz = min_t(u64, ce->vm->total >> 4, prandom_u32_state(&prng)); min_t 99 drivers/gpu/drm/i915/gt/intel_sseu.c subslices > min_t(u8, 4, hweight8(sseu->subslice_mask[0]) / 2)) { min_t 590 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c u32 size = min_t(u32, uc_fw->rsa_size, max_len); min_t 1184 drivers/gpu/drm/i915/i915_cmd_parser.c int len = min_t(int, batch_len, PAGE_SIZE - offset); min_t 287 drivers/gpu/drm/i915/i915_gem.c unsigned int length = min_t(u64, remain, PAGE_SIZE - offset); min_t 713 drivers/gpu/drm/i915/i915_gem.c unsigned int length = min_t(u64, remain, PAGE_SIZE - offset); min_t 354 drivers/gpu/drm/i915/i915_gem_gtt.c nr = min_t(typeof(nr), pvec->nr, pagevec_space(&stash->pvec)); min_t 3165 drivers/gpu/drm/i915/i915_gem_gtt.c min_t(u64, ggtt->mappable_end, ggtt->vm.total); min_t 974 drivers/gpu/drm/i915/i915_gpu_error.c num_pages = min_t(u64, vma->size, vma->obj->base.size) >> PAGE_SHIFT; min_t 1324 drivers/gpu/drm/i915/i915_gpu_error.c max = min_t(long, max, PAGE_SIZE / sizeof(*bo)); min_t 176 drivers/gpu/drm/i915/i915_sysfs.c count = min_t(size_t, GEN7_L3LOG_SIZE - offset, count); min_t 531 drivers/gpu/drm/i915/i915_sysfs.c ret = min_t(size_t, count, len - off); min_t 265 drivers/gpu/drm/i915/i915_utils.h return min_t(unsigned long, MAX_JIFFY_OFFSET, j + 1); min_t 570 drivers/gpu/drm/i915/i915_vma.c end = min_t(u64, end, dev_priv->ggtt.mappable_end); min_t 572 drivers/gpu/drm/i915/i915_vma.c end = min_t(u64, end, (1ULL << 32) - I915_GTT_PAGE_SIZE); min_t 1172 drivers/gpu/drm/i915/intel_pm.c return min_t(unsigned int, wm, USHRT_MAX); min_t 1654 drivers/gpu/drm/i915/intel_pm.c return min_t(unsigned int, wm, USHRT_MAX); min_t 2124 drivers/gpu/drm/i915/intel_pm.c wm->level = min_t(int, wm->level, wm_state->num_levels - 1); min_t 2752 drivers/gpu/drm/i915/intel_pm.c result->pri_val = min_t(u32, result->pri_val, max->pri); min_t 2753 drivers/gpu/drm/i915/intel_pm.c result->spr_val = min_t(u32, result->spr_val, max->spr); min_t 2754 drivers/gpu/drm/i915/intel_pm.c result->cur_val = min_t(u32, result->cur_val, max->cur); min_t 4450 drivers/gpu/drm/i915/intel_pm.c extra = min_t(u16, alloc_size, min_t 4461 drivers/gpu/drm/i915/intel_pm.c extra = min_t(u16, alloc_size, min_t 7638 drivers/gpu/drm/i915/intel_pm.c rp0 = min_t(u32, rp0, 0xea); min_t 79 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c unsigned long len = min_t(typeof(rem), rem, BIT(31)); min_t 350 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c min_t(u64, ULONG_MAX - 1, hole_size/2 >> PAGE_SHIFT); min_t 561 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c min_t(u64, ULONG_MAX - 1, hole_size >> PAGE_SHIFT); min_t 213 drivers/gpu/drm/meson/meson_overlay.c temp_height = min_t(unsigned int, min_t 217 drivers/gpu/drm/meson/meson_overlay.c temp_height = min_t(unsigned int, min_t 239 drivers/gpu/drm/meson/meson_overlay.c vsc_endp = min_t(int, end, min_t 240 drivers/gpu/drm/meson/meson_overlay.c min_t(int, crtc_height - 1, min_t 259 drivers/gpu/drm/meson/meson_overlay.c temp_width = min_t(unsigned int, min_t 263 drivers/gpu/drm/meson/meson_overlay.c temp_width = min_t(unsigned int, min_t 272 drivers/gpu/drm/meson/meson_overlay.c hsc_endp = min_t(int, end, min_t(int, crtc_width - 1, min_t 145 drivers/gpu/drm/msm/adreno/a6xx_hfi.c min_t(u32, payload_size, sizeof(resp.payload))); min_t 497 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c *flush_id = min_t(u32, ctl->id, ctl->pair->id); min_t 156 drivers/gpu/drm/msm/msm_rd.c n = min_t(int, sz, circ_count_to_end(&rd->fifo)); min_t 119 drivers/gpu/drm/msm/msm_submitqueue.c size_t size = min_t(size_t, args->len, sizeof(queue->faults)); min_t 609 drivers/gpu/drm/nouveau/nouveau_svm.c limit = min_t(u64, limit, svmm->unmanaged.start); min_t 627 drivers/gpu/drm/nouveau/nouveau_svm.c limit = min_t(u64, limit, vma->vm_end); min_t 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c length = min_t(u32, length, priv->size - offset); min_t 115 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c switch (min_t(u8, *hdr, 25)) { min_t 201 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c dvfs->dfs_coeff = min_t(u32, coeff, MASK(GPCPLL_DVFS0_DFS_COEFF_WIDTH)); min_t 56 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c cnt = min_t(u8, remaining, 16); min_t 536 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c const u32 ptes = min_t(u64, it.cnt, pten - ptei); min_t 1252 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c size = min_t(u64, size, pn << page->shift); min_t 1253 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c size = min_t(u64, size, vma->size + vma->addr - addr); min_t 46 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c target = min_t(u8, target, fan->bios.max_duty); min_t 166 drivers/gpu/drm/qxl/qxl_draw.c left = min_t(int, left, (int)clips_ptr->x1); min_t 168 drivers/gpu/drm/qxl/qxl_draw.c top = min_t(int, top, (int)clips_ptr->y1); min_t 1204 drivers/gpu/drm/radeon/radeon_combios.c lvds->panel_vcc_delay = min_t(u16, lvds->panel_vcc_delay, 2000); min_t 343 drivers/gpu/drm/radeon/radeon_device.c rdev->doorbell.num_doorbells = min_t(u32, rdev->doorbell.size / sizeof(u32), RADEON_MAX_DOORBELLS); min_t 1023 drivers/gpu/drm/radeon/radeon_ttm.c size_t cur_size = min_t(size_t, size, PAGE_SIZE - off); min_t 246 drivers/gpu/drm/rcar-du/rcar_lvds.c m_max = min_t(unsigned int, 8, fin / 12000000); min_t 263 drivers/gpu/drm/rcar-du/rcar_lvds.c n_max = min_t(unsigned int, 120, 1800000000 / fpfd); min_t 65 drivers/gpu/drm/rockchip/rockchip_drm_fb.c int num_planes = min_t(int, info->num_planes, ROCKCHIP_MAX_FB_BUFFER); min_t 501 drivers/gpu/drm/selftests/test-drm_mm.c const unsigned int count = min_t(unsigned int, BIT(10), max_iterations); min_t 704 drivers/gpu/drm/selftests/test-drm_mm.c const unsigned int count = min_t(unsigned int, BIT(10), max_iterations); min_t 731 drivers/gpu/drm/selftests/test-drm_mm.c const unsigned int count = min_t(unsigned int, BIT(10), max_iterations); min_t 993 drivers/gpu/drm/selftests/test-drm_mm.c const unsigned int count = min_t(unsigned int, BIT(13), max_iterations); min_t 177 drivers/gpu/drm/sti/sti_awg_utils.c min_t(int, AWG_MAX_ARG, tmp_val), min_t 408 drivers/gpu/drm/sti/sti_hdmi.c num = min_t(size_t, size - i, sizeof(u32)); min_t 194 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c min_t(unsigned long, rounded_rate, rate) < diff) min_t 47 drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c len = min_t(int, len, read ? read_len : SUN4I_HDMI_DDC_FIFO_SIZE); min_t 149 drivers/gpu/drm/tegra/dc.c dda_inc = min_t(u32, dda_inc, dfixed_const(max)); min_t 90 drivers/gpu/drm/tegra/dpaux.c size_t num = min_t(size_t, size - i * 4, 4); min_t 106 drivers/gpu/drm/tegra/dpaux.c size_t num = min_t(size_t, size - i * 4, 4); min_t 242 drivers/gpu/drm/tegra/dpaux.c count = min_t(size_t, count, msg->size); min_t 672 drivers/gpu/drm/tegra/hdmi.c size_t rem = size - i, num = min_t(size_t, rem, 4); min_t 677 drivers/gpu/drm/tegra/hdmi.c num = min_t(size_t, rem - num, 3); min_t 753 drivers/gpu/drm/tegra/hdmi.c tegra_hdmi_write_infopack(hdmi, buffer, min_t(size_t, 10, err)); min_t 2089 drivers/gpu/drm/tegra/sor.c size_t rem = size - i, num = min_t(size_t, rem, 4); min_t 2094 drivers/gpu/drm/tegra/sor.c num = min_t(size_t, rem - num, 3); min_t 285 drivers/gpu/drm/v3d/v3d_drv.h return min_t(u64, MAX_JIFFY_OFFSET, nsecs_to_jiffies64(n) + 1); min_t 430 drivers/gpu/drm/vboxvideo/vbox_mode.c min_t(u32, max(fb->hot_x, 0), width), min_t 431 drivers/gpu/drm/vboxvideo/vbox_mode.c min_t(u32, max(fb->hot_y, 0), height), min_t 185 drivers/gpu/drm/virtio/virtgpu_kms.c vgdev->num_scanouts = min_t(uint32_t, num_scanouts, min_t 1256 drivers/gpu/drm/vmwgfx/device_include/svga3d_surfacedefs.h return min_t(uint64_t, total_size, (uint64_t)U32_MAX); min_t 263 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c rect->x1 = min_t(int, rect->x1, offs); min_t 265 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c rect->y1 = min_t(int, rect->y1, diff->line); min_t 373 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c copy_size = min_t(u32, copy_size, PAGE_SIZE - dst_page_offset); min_t 374 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c copy_size = min_t(u32, copy_size, PAGE_SIZE - src_page_offset); min_t 753 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c dma_set_max_seg_size(dev->dev, min_t(unsigned int, U32_MAX & PAGE_MASK, min_t 3578 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c cmdbuf_size = min_t(size_t, cmdbuf_size, SVGA_CB_MAX_SIZE); min_t 225 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c dst_x2 = min_t(s32, dst_x2, max_x); min_t 226 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c dst_y2 = min_t(s32, dst_y2, max_y); min_t 2522 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c dirty->unit_x2 = min_t(s32, dirty->unit_x2, min_t 2524 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c dirty->unit_y2 = min_t(s32, dirty->unit_y2, min_t 2528 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c clip_left = min_t(s32, dirty->unit_x1, 0); min_t 2529 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c clip_top = min_t(s32, dirty->unit_y1, 0); min_t 2881 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c bb.x1 = min_t(int, bb.x1, clip.x1); min_t 2882 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c bb.y1 = min_t(int, bb.y1, clip.y1); min_t 171 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c unsigned int bytes = min_t(size_t, msg_len, 4); min_t 224 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c unsigned int bytes = min_t(unsigned long, reply_len, 4); min_t 1095 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c sdirty->left = min_t(s32, sdirty->left, dirty->unit_x1); min_t 1096 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c sdirty->top = min_t(s32, sdirty->top, dirty->unit_y1); min_t 475 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c ddirty->left = min_t(s32, ddirty->left, dirty->unit_x1); min_t 476 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c ddirty->top = min_t(s32, ddirty->top, dirty->unit_y1); min_t 548 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c ddirty->left = min_t(s32, ddirty->left, dirty->unit_x1); min_t 549 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c ddirty->top = min_t(s32, ddirty->top, dirty->unit_y1); min_t 558 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c ddirty->fb_left = min_t(s32, ddirty->fb_left, dirty->fb_x); min_t 559 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c ddirty->fb_top = min_t(s32, ddirty->fb_top, dirty->fb_y); min_t 771 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c sdirty->left = min_t(s32, sdirty->left, dirty->unit_x1); min_t 772 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c sdirty->top = min_t(s32, sdirty->top, dirty->unit_y1); min_t 1280 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c bo_update->fb_left = min_t(int, bo_update->fb_left, fb_x); min_t 1281 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c bo_update->fb_top = min_t(int, bo_update->fb_top, fb_y); min_t 256 drivers/gpu/drm/zte/zx_vga.c cnt = min_t(u32, len, cnt); min_t 260 drivers/gpu/host1x/syncpt.c long check = min_t(long, SYNCPT_CHECK_PERIOD, timeout); min_t 509 drivers/gpu/ipu-v3/ipu-image-convert.c out_end = min_t(unsigned int, out_edge, index * 1024 + 1); min_t 517 drivers/gpu/ipu-v3/ipu-image-convert.c in_end = min_t(unsigned int, in_edge, min_t 1456 drivers/hid/hid-multitouch.c max = min_t(int, field->logical_maximum, min_t 127 drivers/hid/hid-picolcd_debugfs.c raw_data[2] = min_t(size_t, 20, s); min_t 579 drivers/hid/uhid.c min_t(size_t, ev->u.input.size, UHID_DATA_MAX), 0); min_t 590 drivers/hid/uhid.c min_t(size_t, ev->u.input2.size, UHID_DATA_MAX), 0); min_t 1022 drivers/hid/usbhid/hid-core.c num_descriptors = min_t(int, hdesc->bNumDescriptors, min_t 585 drivers/hwtracing/stm/core.c sz = min_t(unsigned int, count - pos, 8); min_t 252 drivers/i2c/busses/i2c-amd8111.c len = min_t(u8, data->block[0], min_t 269 drivers/i2c/busses/i2c-amd8111.c len = min_t(u8, data->block[0], min_t 305 drivers/i2c/busses/i2c-amd8111.c len = min_t(u8, data->block[0], min_t 383 drivers/i2c/busses/i2c-amd8111.c len = min_t(u8, len, I2C_SMBUS_BLOCK_MAX); min_t 422 drivers/i2c/busses/i2c-bcm-iproc.c tx_bytes = min_t(unsigned int, tx_bytes, M_TX_RX_FIFO_SIZE); min_t 707 drivers/i2c/busses/i2c-bcm-iproc.c tx_bytes = min_t(unsigned int, msg->len, M_TX_RX_FIFO_SIZE - 1); min_t 363 drivers/i2c/busses/i2c-designware-master.c dev->tx_buf_len = len - min_t(u8, len, dev->rx_outstanding); min_t 236 drivers/i2c/busses/i2c-designware-platdrv.c dev->tx_fifo_depth = min_t(u32, dev->tx_fifo_depth, min_t 238 drivers/i2c/busses/i2c-designware-platdrv.c dev->rx_fifo_depth = min_t(u32, dev->rx_fifo_depth, min_t 302 drivers/i2c/busses/i2c-fsi.c bytes_to_read = min_t(int, fifo_count, xfr_remaining); min_t 221 drivers/i2c/busses/i2c-pasemi.c len = min_t(u8, (rd & MRXFIFO_DATA_M), min_t 226 drivers/i2c/busses/i2c-pasemi.c len = min_t(u8, data->block[0], I2C_SMBUS_BLOCK_MAX); min_t 243 drivers/i2c/busses/i2c-pasemi.c len = min_t(u8, data->block[0], I2C_SMBUS_BLOCK_MAX - 1); min_t 253 drivers/i2c/busses/i2c-pasemi.c len = min_t(u8, (rd & MRXFIFO_DATA_M), min_t 578 drivers/i3c/master/i3c-master-cdns.c rx_len = min_t(u32, CMDR_XFER_BYTES(cmdr), cmd->rx_len); min_t 1310 drivers/i3c/master/i3c-master-cdns.c slot->len = min_t(unsigned int, IBIR_XFER_BYTES(ibir), min_t 143 drivers/ide/cs5536.c cmd_pio = min_t(u8, pio, pair->pio_mode - XFER_PIO_0); min_t 1420 drivers/ide/hpt366.c switch (min_t(u8, rev, 6)) { min_t 1449 drivers/ide/hpt366.c d = hpt366_chipsets[min_t(u8, idx, 1)]; min_t 539 drivers/ide/ide-atapi.c done = min_t(unsigned int, bcount, cmd->nleft); min_t 722 drivers/ide/ide-atapi.c : min_t(unsigned int, min_t 718 drivers/ide/ide-cd.c int blen = min_t(int, thislen, cmd->nleft); min_t 1167 drivers/ide/ide-tape.c todo = min_t(size_t, count - done, tape->valid); min_t 1214 drivers/ide/ide-tape.c todo = min_t(size_t, count - done, min_t 250 drivers/ide/ide-taskfile.c nr_bytes = min_t(unsigned, nr_bytes, (PAGE_SIZE - offset)); min_t 291 drivers/ide/ide-taskfile.c nr_bytes = min_t(unsigned, cmd->nleft, drive->mult_count << 9); min_t 69 drivers/ide/ide-xfer-mode.c return min_t(u8, mode_wanted, max_mode); min_t 85 drivers/ide/ide-xfer-mode.c pio_mode = 4 + min_t(int, 2, min_t 106 drivers/ide/it8213.c u_speed = min_t(u8, 2 - (udma & 1), udma) << (drive->dn * 4); min_t 161 drivers/ide/piix.c u_speed = min_t(u8, 2 - (udma & 1), udma) << (drive->dn * 4); min_t 67 drivers/ide/tx4938ide.c safe = min_t(u8, safe, pair->pio_mode - XFER_PIO_0); min_t 117 drivers/ide/tx4939ide.c safe = min_t(u8, safe, pair->pio_mode - XFER_PIO_0); min_t 104 drivers/iio/gyro/fxas21002c_core.c value = min_t(u8, value, odr_value_max); min_t 126 drivers/iio/gyro/fxas21002c_core.c value = min_t(u8, value, lpf_value_max); min_t 148 drivers/iio/gyro/fxas21002c_core.c value = min_t(u8, value, hpf_value_max); min_t 181 drivers/iio/gyro/fxas21002c_core.c value = min_t(u8, value, range_value_max); min_t 117 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c *min_odr = min_t(u16, *min_odr, sensor->odr); min_t 255 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c fifo_watermark = min_t(u16, fifo_watermark, cur_watermark); min_t 318 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c word_len = min_t(unsigned int, data_len - read_len, min_t 446 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c len = min_t(int, sizeof(data), ch->scan_type.realbits >> 3); min_t 63 drivers/iio/industrialio-buffer.c to_wait = min_t(size_t, to_wait, 1); min_t 130 drivers/iio/industrialio-buffer.c to_wait = min_t(size_t, n / datum_size, rb->watermark); min_t 329 drivers/iio/industrialio-core.c count = min_t(size_t, count, (sizeof(buf)-1)); min_t 99 drivers/iio/light/lm3533-als.c *zone = min_t(u8, val, LM3533_ALS_ZONE_MAX); min_t 540 drivers/iio/pressure/dps310.c return (int)min_t(s64, pressure, INT_MAX); min_t 3852 drivers/infiniband/core/cma.c req.retry_count = min_t(u8, 7, conn_param->retry_count); min_t 3853 drivers/infiniband/core/cma.c req.rnr_retry_count = min_t(u8, 7, conn_param->rnr_retry_count); min_t 3969 drivers/infiniband/core/cma.c rep.rnr_retry_count = min_t(u8, 7, conn_param->rnr_retry_count); min_t 78 drivers/infiniband/core/cq.c while ((n = ib_poll_cq(cq, min_t(u32, batch, min_t 276 drivers/infiniband/core/cq.c min_t(int, dev->num_comp_vectors, num_online_cpus()); min_t 872 drivers/infiniband/core/iwpm_msg.c iwpm_ulib_version = min_t(u16, IWPM_UABI_VERSION, abi_version); min_t 65 drivers/infiniband/core/rw.c return min_t(u32, max_pages, 256); min_t 686 drivers/infiniband/core/rw.c min_t(u32, attr->cap.max_send_wr, dev->attrs.max_qp_wr); min_t 1273 drivers/infiniband/core/sysfs.c memcpy(desc.node_desc, buf, min_t(int, count, IB_DEVICE_NODE_DESC_MAX)); min_t 443 drivers/infiniband/core/ucma.c min_t(size_t, out_len, sizeof(uevent->resp)))) { min_t 279 drivers/infiniband/core/umem.c min_t(unsigned long, npages, min_t 634 drivers/infiniband/core/umem_odp.c const size_t gup_num_pages = min_t(size_t, min_t 659 drivers/infiniband/core/umem_odp.c bcnt -= min_t(size_t, npages << PAGE_SHIFT, bcnt); min_t 727 drivers/infiniband/core/umem_odp.c bound = min_t(u64, bound, ib_umem_end(umem_odp)); min_t 313 drivers/infiniband/core/user_mad.c seg_payload = min_t(int, packet->length, seg_size); min_t 118 drivers/infiniband/core/uverbs_cmd.c return min_t(size_t, attrs->ucore.outlen, resp_len); min_t 747 drivers/infiniband/core/uverbs_ioctl.c min_size = min_t(size_t, attr->ptr_attr.len, size); min_t 162 drivers/infiniband/core/uverbs_std_types_flow_action.c val_len = min_t(size_t, len, sizeof(user_val.ipv4)); min_t 176 drivers/infiniband/core/uverbs_std_types_flow_action.c val_len = min_t(size_t, len, sizeof(user_val.ipv6)); min_t 1229 drivers/infiniband/core/verbs.c qp->max_read_sge = min_t(u32, qp_init_attr->cap.max_send_sge, min_t 1087 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.max_wqe = min_t(u32, entries, min_t 1104 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_wqe = min_t(u32, entries, min_t 1150 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_wqe = min_t(u32, entries, min_t 1699 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.max_rd_atomic = min_t(u32, qp_attr->max_rd_atomic, min_t 1738 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_wqe = min_t(u32, entries, min_t 1752 drivers/infiniband/hw/bnxt_re/ib_verbs.c min_t(u32, entries, dev_attr->max_qp_wqes + 1); min_t 2578 drivers/infiniband/hw/bnxt_re/ib_verbs.c cq->max_cql = min_t(u32, entries, MAX_CQL_PER_POLL); min_t 3127 drivers/infiniband/hw/bnxt_re/ib_verbs.c budget = min_t(u32, num_entries, cq->max_cql); min_t 130 drivers/infiniband/hw/bnxt_re/main.c rdev->qplib_ctx.qpc_count = min_t(u32, BNXT_RE_MAX_QPC_COUNT, min_t 135 drivers/infiniband/hw/bnxt_re/main.c rdev->qplib_ctx.mrw_count = min_t(u32, rdev->qplib_ctx.mrw_count, min_t 137 drivers/infiniband/hw/bnxt_re/main.c rdev->qplib_ctx.srqc_count = min_t(u32, BNXT_RE_MAX_SRQC_COUNT, min_t 139 drivers/infiniband/hw/bnxt_re/main.c rdev->qplib_ctx.cq_count = min_t(u32, BNXT_RE_MAX_CQ_COUNT, min_t 334 drivers/infiniband/hw/bnxt_re/main.c num_msix_want = min_t(u32, BNXT_RE_MAX_MSIX, num_online_cpus()); min_t 172 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c memcpy(cmdqe, preq, min_t(u32, size, sizeof(*cmdqe))); min_t 173 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c preq += min_t(u32, size, sizeof(*cmdqe)); min_t 174 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c size -= min_t(u32, size, sizeof(*cmdqe)); min_t 1793 drivers/infiniband/hw/cxgb4/cm.c ep->ird = min_t(u32, ep->ird, min_t 1797 drivers/infiniband/hw/cxgb4/cm.c ep->ord = min_t(u32, ep->ord, min_t 305 drivers/infiniband/hw/efa/efa_verbs.c props->max_qp_wr = min_t(u32, dev_attr->max_sq_depth, min_t 14208 drivers/infiniband/hw/hfi1/chip.c for (i = 0; i < min_t(unsigned int, num_vls, krcvqsset); i++) min_t 869 drivers/infiniband/hw/hfi1/qp.c mtu = min_t(u32, mtu, dd->vld[vl].mtu); min_t 853 drivers/infiniband/hw/hfi1/rc.c len = min_t(u32, req->seg_len, min_t 1112 drivers/infiniband/hw/hfi1/rc.c len = min_t(u32, req->seg_len, min_t 1158 drivers/infiniband/hw/hfi1/rc.c len = min_t(u32, req->seg_len, min_t 1259 drivers/infiniband/hw/hfi1/tid_rdma.c use = min_t(u32, flow->npagesets - pageidx, min_t 1280 drivers/infiniband/hw/hfi1/tid_rdma.c use = min_t(u32, flow->npagesets - pageidx, group->size); min_t 2353 drivers/infiniband/hw/hfi1/tid_rdma.c *len = min_t(u32, qp->pmtu, tidlen - flow->tid_offset); min_t 3087 drivers/infiniband/hw/hfi1/tid_rdma.c npkts = min_t(u32, diff, tidnpkts); min_t 3318 drivers/infiniband/hw/hfi1/tid_rdma.c min_t(u32, remote->max_len, wqe->length); min_t 3744 drivers/infiniband/hw/hfi1/tid_rdma.c req->n_flows = min_t(u16, num_segs, qpriv->tid_rdma.local.max_write); min_t 4106 drivers/infiniband/hw/hfi1/tid_rdma.c flow->length = min_t(u32, req->seg_len, min_t 4212 drivers/infiniband/hw/hfi1/tid_rdma.c *len = min_t(u32, qp->pmtu, tidlen - flow->tid_offset); min_t 432 drivers/infiniband/hw/hfi1/user_exp_rcv.c unsigned use = min_t(unsigned, pageset_count - pageidx, min_t 668 drivers/infiniband/hw/hfi1/user_sdma.c len = min_t(u32, tidlen, req->info.fragsize); min_t 1339 drivers/infiniband/hw/hns/hns_roce_hem.c end = min_t(int, start_aligned + step - 1, max_ofs); min_t 875 drivers/infiniband/hw/hns/hns_roce_mr.c chunk = min_t(int, bt_page_size / sizeof(u64), npages); min_t 993 drivers/infiniband/hw/mlx5/main.c max_sq_desc = min_t(int, MLX5_CAP_GEN(mdev, max_wqe_sz_sq), 512); min_t 1816 drivers/infiniband/hw/mlx5/main.c resp.cqe_version = min_t(__u8, min_t 3334 drivers/infiniband/hw/mlx5/main.c max_table_size = min_t(int, num_entries, max_table_size); min_t 3977 drivers/infiniband/hw/mlx5/main.c max_table_size = min_t(int, max_table_size, MLX5_FS_MAX_ENTRIES); min_t 5746 drivers/infiniband/hw/mlx5/main.c timeout = min_t(u32, roundup(var, 100), MLX5_MAX_DELAY_DROP_TIMEOUT_MS * min_t 63 drivers/infiniband/hw/mlx5/mem.c m = min_t(unsigned long, max_page_shift - PAGE_SHIFT, m); min_t 85 drivers/infiniband/hw/mlx5/mem.c m = min_t(unsigned long, ilog2(roundup_pow_of_two(i)), m); min_t 899 drivers/infiniband/hw/mlx5/mr.c npages = min_t(size_t, npages, ib_umem_num_pages(umem) - idx); min_t 958 drivers/infiniband/hw/mlx5/mr.c size = min_t(int, size, MLX5_MAX_UMR_CHUNK); min_t 1005 drivers/infiniband/hw/mlx5/mr.c npages = min_t(int, pages_iter, pages_to_map - pages_mapped); min_t 271 drivers/infiniband/hw/mlx5/odp.c end = min_t(u64, ib_umem_end(umem_odp), end); min_t 635 drivers/infiniband/hw/mlx5/odp.c size = min_t(size_t, bcnt, ib_umem_end(odp) - io_virt); min_t 691 drivers/infiniband/hw/mlx5/odp.c *bytes_mapped += min_t(u32, new_mappings, size); min_t 893 drivers/infiniband/hw/mlx5/odp.c frame->bcnt = min_t(size_t, bcnt, min_t 994 drivers/infiniband/hw/mlx5/odp.c *total_wqe_bytes += bcnt - min_t(size_t, bcnt, min_t 1004 drivers/infiniband/hw/mlx5/odp.c min_t(size_t, bcnt, min_t 150 drivers/infiniband/hw/mlx5/qp.c copy_length = min_t(u32, buflen, wq_end - offset); min_t 151 drivers/infiniband/hw/mlx5/qp.c copy_length = min_t(u32, copy_length, bcnt); min_t 458 drivers/infiniband/hw/mlx5/qp.c max_sge = (min_t(int, wqe_size, 512) - min_t 463 drivers/infiniband/hw/mlx5/qp.c max_sge = (min_t(int, wqe_size, 512) - min_t 472 drivers/infiniband/hw/mlx5/qp.c return min_t(int, max_sge, wqe_size - sq_overhead(attr) / min_t 4056 drivers/infiniband/hw/mlx5/qp.c size_t copysz = min_t(size_t, leftlen, n); min_t 4120 drivers/infiniband/hw/mlx5/qp.c copysz = min_t(u64, *cur_edge - (void *)eseg->inline_hdr.start, min_t 4465 drivers/infiniband/hw/mlx5/qp.c copysz = min_t(size_t, leftlen, len); min_t 1179 drivers/infiniband/hw/mthca/mthca_cmd.c dev_lim->max_sg = min_t(int, field, dev_lim->max_sg); min_t 1181 drivers/infiniband/hw/mthca/mthca_cmd.c dev_lim->max_desc_sz = min_t(int, size, dev_lim->max_desc_sz); min_t 207 drivers/infiniband/hw/mthca/mthca_main.c mdev->limits.max_sg = min_t(int, dev_lim->max_sg, min_t 972 drivers/infiniband/hw/mthca/mthca_qp.c qp->sq.max_gs = min_t(int, dev->limits.max_sg, min_t 974 drivers/infiniband/hw/mthca/mthca_qp.c qp->rq.max_gs = min_t(int, dev->limits.max_sg, min_t 661 drivers/infiniband/hw/mthca/mthca_srq.c return min_t(int, dev->limits.max_sg, min_t 2195 drivers/infiniband/hw/ocrdma/ocrdma_hw.c max_wqe_allocated = min_t(u32, attrs->cap.max_send_wr + 1, min_t 3083 drivers/infiniband/hw/ocrdma/ocrdma_hw.c num_eq = min_t(u32, num_eq, num_online_cpus()); min_t 385 drivers/infiniband/hw/qedr/main.c n_entries = min_t(u32, QED_RDMA_MAX_CNQ_SIZE, QEDR_ROCE_MAX_CNQ_SIZE); min_t 623 drivers/infiniband/hw/qedr/main.c attr->max_sqe = min_t(u32, qed_attr->max_wqe, QEDR_MAX_SQE); min_t 624 drivers/infiniband/hw/qedr/main.c attr->max_rqe = min_t(u32, qed_attr->max_wqe, QEDR_MAX_RQE); min_t 633 drivers/infiniband/hw/qedr/main.c attr->max_cqe = min_t(u64, qed_attr->max_cqe, QEDR_MAX_CQES); min_t 65 drivers/infiniband/hw/qedr/verbs.c size_t min_len = min_t(size_t, len, udata->outlen); min_t 842 drivers/infiniband/hw/qedr/verbs.c chain_entries = min_t(int, chain_entries, QEDR_MAX_CQES); min_t 1833 drivers/infiniband/hw/qedr/verbs.c qp->sq.max_wr = min_t(u32, attrs->cap.max_send_wr * dev->wq_multiplier, min_t 1866 drivers/infiniband/hw/qedr/verbs.c n_sq_entries = min_t(u32, n_sq_entries, dev->attr.max_sqe); min_t 2968 drivers/infiniband/hw/qedr/verbs.c cur = min_t(u32, len, seg_siz); min_t 1386 drivers/infiniband/hw/qib/qib_iba7322.c took = min_t(size_t, msp->sz - (size_t)1, len); min_t 145 drivers/infiniband/hw/usnic/usnic_uiom.c min_t(unsigned long, npages, min_t 158 drivers/infiniband/hw/usnic/usnic_uiom.c min_t(int, ret, USNIC_UIOM_PAGE_CHUNK)), min_t 165 drivers/infiniband/hw/usnic/usnic_uiom.c chunk->nents = min_t(int, ret, USNIC_UIOM_PAGE_CHUNK); min_t 296 drivers/infiniband/sw/rxe/rxe.c mtu = mtu ? min_t(enum ib_mtu, mtu, IB_MTU_4096) : IB_MTU_256; min_t 723 drivers/infiniband/sw/rxe/rxe_resp.c payload = min_t(int, res->read.resid, mtu); min_t 339 drivers/infiniband/sw/siw/siw_main.c size_t gidlen = min_t(size_t, strlen(base_dev->name), 6); min_t 75 drivers/infiniband/sw/siw/siw_mem.c int to_free = min_t(int, PAGES_PER_CHUNK, num_pages); min_t 417 drivers/infiniband/sw/siw/siw_mem.c int got, nents = min_t(int, num_pages, PAGES_PER_CHUNK); min_t 1010 drivers/infiniband/sw/siw/siw_qp_rx.c bytes = min_t(int, srx->skb_new, min_t 332 drivers/infiniband/sw/siw/siw_qp_tx.c size_t bytes = min_t(size_t, PAGE_SIZE - offset, size); min_t 671 drivers/infiniband/sw/siw/siw_qp_tx.c min_t(u16, c_tx->gso_seg_limit, tp->gso_segs); min_t 549 drivers/infiniband/ulp/ipoib/ipoib_cm.c size = min_t(unsigned int, length, PAGE_SIZE); min_t 644 drivers/infiniband/ulp/ipoib/ipoib_cm.c min_t(u32, wc->byte_len, IPOIB_CM_HEAD_SIZE)) / min_t 1074 drivers/infiniband/ulp/ipoib/ipoib_cm.c attr.cap.max_send_sge = min_t(u32, priv->ca->attrs.max_send_sge, min_t 1608 drivers/infiniband/ulp/ipoib/ipoib_cm.c max_srq_sge = min_t(int, IPOIB_CM_RX_SG, priv->ca->attrs.max_srq_sge); min_t 150 drivers/infiniband/ulp/ipoib/ipoib_verbs.c .max_send_sge = min_t(u32, priv->ca->attrs.max_send_sge, min_t 634 drivers/infiniband/ulp/iser/iscsi_iser.c shost->can_queue = min_t(u16, cmds_max, iser_conn->max_cmds); min_t 664 drivers/infiniband/ulp/iser/iscsi_iser.c shost->can_queue = min_t(u16, cmds_max, ISER_DEF_XMIT_CMDS_MAX); min_t 77 drivers/infiniband/ulp/iser/iser_verbs.c device->comps_used = min_t(int, num_online_cpus(), min_t 676 drivers/infiniband/ulp/iser/iser_verbs.c min_t( min_t 252 drivers/infiniband/ulp/isert/ib_isert.c device->comps_used = min(ISERT_MAX_CQ, min_t(int, num_online_cpus(), min_t 473 drivers/infiniband/ulp/isert/ib_isert.c isert_conn->initiator_depth = min_t(u8, param->initiator_depth, min_t 1622 drivers/infiniband/ulp/srp/ib_srp.c len = min_t(unsigned int, dma_len, dev->mr_page_size - offset); min_t 2160 drivers/infiniband/ulp/srp/ib_srp.c min_t(int, be32_to_cpu(rsp->sense_data_len), min_t 2558 drivers/infiniband/ulp/srp/ib_srp.c = min_t(int, target->scsi_host->can_queue, min_t 4139 drivers/infiniband/ulp/srp/ib_srp.c srp_dev->max_pages_per_mr = min_t(u64, SRP_MAX_PAGES_PER_MR, min_t 4163 drivers/infiniband/ulp/srp/ib_srp.c min_t(u32, srp_dev->max_pages_per_mr, min_t 1004 drivers/input/evdev.c xfer_size = min_t(size_t, codes_size, size); min_t 1211 drivers/input/evdev.c if (copy_to_user(p, &abs, min_t(size_t, min_t 1228 drivers/input/evdev.c if (copy_from_user(&abs, p, min_t(size_t, min_t 169 drivers/input/ff-memless.c envelope_level = min_t(u16, envelope->attack_level, 0x7fff); min_t 177 drivers/input/ff-memless.c envelope_level = min_t(u16, envelope->fade_level, 0x7fff); min_t 1403 drivers/input/input.c return min_t(int, len, PAGE_SIZE); min_t 1417 drivers/input/input.c return min_t(int, len, PAGE_SIZE); min_t 1500 drivers/input/input.c return min_t(int, len, PAGE_SIZE); \ min_t 570 drivers/input/joydev.c len = min_t(size_t, _IOC_SIZE(cmd), sizeof(joydev->abspam)); min_t 577 drivers/input/joydev.c len = min_t(size_t, _IOC_SIZE(cmd), sizeof(joydev->keypam)); min_t 585 drivers/input/joydev.c len = min_t(size_t, _IOC_SIZE(cmd), strlen(name) + 1); min_t 30 drivers/input/keyboard/dlink-dir685-touchkeys.c const int num_bits = min_t(int, ARRAY_SIZE(tk->codes), 16); min_t 794 drivers/input/mouse/cyapa.c cyapa->suspend_sleep_time = min_t(u16, sleep_time, 1000); min_t 911 drivers/input/mouse/cyapa.c cyapa->runtime_suspend_sleep_time = min_t(u16, time, 1000); min_t 233 drivers/input/rmi4/rmi_f30.c int button_count = min_t(u8, f30->gpioled_count, TRACKSTICK_RANGE_END); min_t 151 drivers/input/rmi4/rmi_smbus.c int block_len = min_t(int, len, SMB_MAX_COUNT); min_t 203 drivers/input/rmi4/rmi_smbus.c int block_len = min_t(int, cur_len, SMB_MAX_COUNT); min_t 239 drivers/input/touchscreen/chipone_icn8505.c count = min_t(size_t, fw->size - offset, 32); min_t 745 drivers/input/touchscreen/edt-ft5x06.c read = min_t(size_t, count, tsdata->raw_bufsize - *off); min_t 468 drivers/input/touchscreen/hideep.c xfer_len = min_t(size_t, ucode_len, HIDEEP_NVM_PAGE_SIZE); min_t 514 drivers/input/touchscreen/hideep.c xfer_len = min_t(size_t, ucode_len, HIDEEP_NVM_PAGE_SIZE); min_t 206 drivers/input/touchscreen/raydium_i2c_ts.c xfer_len = min_t(size_t, len, RM_MAX_READ_SIZE); min_t 588 drivers/input/touchscreen/raydium_i2c_ts.c xfer_len = min_t(size_t, len, RM_BL_WRT_PKG_SIZE); min_t 690 drivers/input/touchscreen/raydium_i2c_ts.c len = min_t(size_t, data_len, RM_FW_PAGE_SIZE); min_t 269 drivers/input/touchscreen/wdt87xx_i2c.c rx_len = min_t(size_t, len, rx_buf[0]); min_t 309 drivers/input/touchscreen/wdt87xx_i2c.c rx_len = min_t(size_t, buf_size, get_unaligned_le16(rx_buf)); min_t 717 drivers/input/touchscreen/wdt87xx_i2c.c page_size = min_t(u32, size, PG_SIZE); min_t 2228 drivers/iommu/arm-smmu-v3.c ias = min_t(unsigned long, ias, VA_BITS); min_t 3409 drivers/iommu/arm-smmu-v3.c smmu->cmdq.q.llq.max_n_shift = min_t(u32, CMDQ_MAX_SZ_SHIFT, min_t 3423 drivers/iommu/arm-smmu-v3.c smmu->evtq.q.llq.max_n_shift = min_t(u32, EVTQ_MAX_SZ_SHIFT, min_t 3425 drivers/iommu/arm-smmu-v3.c smmu->priq.q.llq.max_n_shift = min_t(u32, PRIQ_MAX_SZ_SHIFT, min_t 556 drivers/iommu/exynos-iommu.c num_inv = min_t(unsigned int, size / PAGE_SIZE, 64); min_t 170 drivers/iommu/hyperv-iommu.c for (i = min_t(unsigned int, num_possible_cpus() - 1, 255); i >= 0; i--) min_t 75 drivers/iommu/intel-iommu.c #define DOMAIN_MAX_PFN(gaw) ((unsigned long) min_t(uint64_t, \ min_t 113 drivers/iommu/intel-iommu.c return min_t(int, 30 + agaw * LEVEL_STRIDE, MAX_AGAW_WIDTH); min_t 148 drivers/iommu/intel-iommu.c return 1 << min_t(int, (lvl - 1) * LEVEL_STRIDE, MAX_AGAW_PFN_WIDTH); min_t 3225 drivers/iommu/intel-iommu.c intel_pasid_max_id = min_t(u32, temp, min_t 3375 drivers/iommu/intel-iommu.c dma_mask = min_t(uint64_t, DOMAIN_MAX_ADDR(domain->gaw), dma_mask); min_t 36 drivers/iommu/intel-pasid.c max = min_t(int, end, intel_pasid_max_id); min_t 150 drivers/iommu/intel-pasid.c max_pasid = min_t(int, pci_max_pasids(to_pci_dev(dev)), min_t 1707 drivers/irqchip/irq-gic-v3-its.c lpi_id_bits = min_t(u32, min_t 105 drivers/leds/leds-as3645a.c ((min_t(u32, AS_PEAK_mA_MAX, a) - 1250) / 250) min_t 447 drivers/leds/leds-lp5523.c len = min_t(int, len, LP5523_MAX_LEDS); min_t 770 drivers/leds/leds-lp5523.c n = min_t(int, len, LP5523_MAX_LEDS); min_t 145 drivers/leds/trigger/ledtrig-activity.c delay = min_t(int, activity_data->time_left, 100); min_t 408 drivers/lightnvm/core.c mdts = min_t(u32, dev->geo.mdts, min_t 390 drivers/lightnvm/pblk-init.c pblk->max_write_pgs = min_t(int, max_write_ppas, NVM_MAX_VLBA); min_t 391 drivers/lightnvm/pblk-init.c pblk->max_write_pgs = min_t(int, pblk->max_write_pgs, min_t 417 drivers/macintosh/windfarm_pm72.c hsize = min_t(int, mpu->tguardband, WF_PID_MAX_HISTORY); min_t 318 drivers/macintosh/windfarm_rm31.c hsize = min_t(int, mpu->tguardband, WF_PID_MAX_HISTORY); min_t 702 drivers/md/bcache/bset.c t->size = min_t(unsigned int, min_t 728 drivers/md/bcache/btree.c nr = min_t(unsigned long, nr, mca_can_free(c)); min_t 1278 drivers/md/bcache/btree.c SET_GC_SECTORS_USED(g, min_t(unsigned int, min_t 54 drivers/md/bcache/journal.c len = min_t(unsigned int, left, PAGE_SECTORS << JSET_BITS); min_t 879 drivers/md/bcache/journal.c if (sectors <= min_t(size_t, min_t 538 drivers/md/bcache/request.c ? min_t(uint64_t, INT_MAX, min_t 561 drivers/md/bcache/request.c n = bio_next_split(bio, min_t(uint64_t, INT_MAX, min_t 907 drivers/md/bcache/request.c reada = min_t(sector_t, dc->readahead >> 9, min_t 814 drivers/md/bcache/super.c const size_t max_stripes = min_t(size_t, INT_MAX, min_t 244 drivers/md/bcache/util.c start: bv->bv_len = min_t(size_t, PAGE_SIZE - bv->bv_offset, min_t 534 drivers/md/bcache/writeback.c int s = min_t(unsigned int, abs(nr_sectors), min_t 3476 drivers/md/dm-cache-target.c limits->max_discard_sectors = min_t(sector_t, cache->discard_block_size * 1024, min_t 344 drivers/md/dm-io.c num_bvecs = min_t(int, BIO_MAX_PAGES, min_t 356 drivers/md/dm-io.c num_sectors = min_t(sector_t, special_cmd_max_sectors, remaining); min_t 365 drivers/md/dm-io.c num_sectors = min_t(sector_t, special_cmd_max_sectors, remaining); min_t 293 drivers/md/dm-log-writes.c pg_datalen = min_t(int, datalen, PAGE_SIZE); min_t 109 drivers/md/dm-verity-target.c size_t this_step = min_t(size_t, len, PAGE_SIZE - offset_in_page(data)); min_t 1172 drivers/md/dm-zoned-metadata.c zmd->zone_bits_per_mblk = min_t(sector_t, dev->zone_nr_blocks, min_t 219 drivers/md/dm-zoned-target.c nr_blocks = min_t(unsigned int, nr_blocks, end_block - chunk_block); min_t 1581 drivers/md/dm.c len = min_t(sector_t, max_io_len(ci->sector, ti), ci->sector_count); min_t 1726 drivers/md/dm.c len = min_t(sector_t, max_io_len((*bio)->bi_iter.bi_sector, ti), sector_count); min_t 103 drivers/md/raid1-10.c int len = min_t(int, size, PAGE_SIZE); min_t 1133 drivers/md/raid1.c int len = min_t(int, PAGE_SIZE, size); min_t 5832 drivers/md/raid5.c readpos -= min_t(sector_t, reshape_sectors, readpos); min_t 5833 drivers/md/raid5.c safepos -= min_t(sector_t, reshape_sectors, safepos); min_t 214 drivers/media/cec/cec-core.c buf = memdup_user_nul(ubuf, min_t(size_t, PAGE_SIZE, count)); min_t 393 drivers/media/common/saa7146/saa7146_hlp.c pixel_list[ 2*i ] = min_t(int, l, width); min_t 394 drivers/media/common/saa7146/saa7146_hlp.c pixel_list[(2*i)+1] = min_t(int, r, width); min_t 396 drivers/media/common/saa7146/saa7146_hlp.c line_list[ 2*i ] = min_t(int, t, height); min_t 397 drivers/media/common/saa7146/saa7146_hlp.c line_list[(2*i)+1] = min_t(int, b, height); min_t 408 drivers/media/common/saa7146/saa7146_hlp.c numdwords = min_t(int, 64, numdwords); min_t 955 drivers/media/common/siano/smscoreapi.c int payload_size = min_t(int, size, SMS_MAX_PAYLOAD_SIZE); min_t 343 drivers/media/common/videobuf2/videobuf2-core.c num_buffers = min_t(unsigned int, num_buffers, min_t 720 drivers/media/common/videobuf2/videobuf2-core.c num_buffers = min_t(unsigned int, num_buffers, VB2_MAX_FRAME); min_t 1061 drivers/media/i2c/imx274.c new_crop.width = min_t(u32, min_t 1069 drivers/media/i2c/imx274.c new_crop.left = min_t(u32, min_t 1073 drivers/media/i2c/imx274.c new_crop.height = min_t(u32, min_t 1077 drivers/media/i2c/imx274.c new_crop.top = min_t(u32, IMX274_ROUND(sel->r.top, 2, 0), min_t 460 drivers/media/i2c/mt9m032.c rect.width = min_t(unsigned int, rect.width, min_t 462 drivers/media/i2c/mt9m032.c rect.height = min_t(unsigned int, rect.height, min_t 251 drivers/media/i2c/mt9p031.c mt9p031->clk_div = min_t(unsigned int, div, 64); min_t 432 drivers/media/i2c/mt9p031.c hblank = 346 * ybin + 64 + (80 >> min_t(unsigned int, xbin, 3)); min_t 496 drivers/media/i2c/mt9p031.c / min_t(unsigned int, 7, fse->index + 1); min_t 620 drivers/media/i2c/mt9p031.c rect.width = min_t(unsigned int, rect.width, min_t 622 drivers/media/i2c/mt9p031.c rect.height = min_t(unsigned int, rect.height, min_t 453 drivers/media/i2c/mt9t001.c rect.width = min_t(unsigned int, rect.width, min_t 455 drivers/media/i2c/mt9t001.c rect.height = min_t(unsigned int, rect.height, min_t 579 drivers/media/i2c/mt9v032.c rect.width = min_t(unsigned int, min_t 581 drivers/media/i2c/mt9v032.c rect.height = min_t(unsigned int, min_t 494 drivers/media/i2c/s5k5baf.c int n = min_t(int, count, ARRAY_SIZE(buf) - 1); min_t 184 drivers/media/i2c/smiapp-pll.c min_t(uint32_t, min_t 437 drivers/media/i2c/smiapp-pll.c min_t(uint16_t, limits->max_pre_pll_clk_div, min_t 1954 drivers/media/i2c/smiapp/smiapp-core.c sel->r.width = min_t(unsigned int, sel->r.width, min_t 1956 drivers/media/i2c/smiapp/smiapp-core.c sel->r.height = min_t(unsigned int, sel->r.height, min_t 2163 drivers/media/i2c/smiapp/smiapp-core.c sel->r.left = min_t(int, sel->r.left, src_size->width - sel->r.width); min_t 2164 drivers/media/i2c/smiapp/smiapp-core.c sel->r.top = min_t(int, sel->r.top, src_size->height - sel->r.height); min_t 2346 drivers/media/i2c/smiapp/smiapp-core.c nbytes = min_t(unsigned int, sensor->nvm_size, PAGE_SIZE); min_t 2980 drivers/media/i2c/smiapp/smiapp-core.c sensor->nbinning_subtypes = min_t(u8, val, min_t 1984 drivers/media/pci/bt8xx/bttv-driver.c max_width = min_t(unsigned int, b->width, MAX_HACTIVE); min_t 804 drivers/media/pci/ivtv/ivtv-irq.c itv->dma_data_req_size = min_t(u32, data[2], 0x10000); min_t 206 drivers/media/pci/tw686x/tw686x-video.c entry_len = min_t(unsigned int, len, min_t 208 drivers/media/pci/tw686x/tw686x-video.c entry_len = min_t(unsigned int, entry_len, buf_len); min_t 694 drivers/media/platform/exynos4-is/fimc-capture.c max_w = min_t(u32, min_t 697 drivers/media/platform/exynos4-is/fimc-capture.c max_h = min_t(u32, FIMC_CAMIF_MAX_HEIGHT, sink->f_height); min_t 700 drivers/media/platform/exynos4-is/fimc-capture.c min_w = min_t(u32, max_w, sink->f_width / max_sc_h); min_t 701 drivers/media/platform/exynos4-is/fimc-capture.c min_h = min_t(u32, max_h, sink->f_height / max_sc_v); min_t 627 drivers/media/platform/exynos4-is/mipi-csis.c *size = min_t(unsigned int, *size, S5PCSIS_PKTDATA_SIZE); min_t 445 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c planes = min_t(u32, frame->fmt->num_planes, ARRAY_SIZE(addr->addr)); min_t 413 drivers/media/platform/omap3isp/ispccp2.c value = min_t(u64, bound, l3_ick); min_t 802 drivers/media/platform/omap3isp/ispresizer.c max_height = min_t(unsigned int, max_height, MAX_OUT_HEIGHT); min_t 1427 drivers/media/platform/rcar_fdp1.c for (i = 0; i < min_t(unsigned int, fmt->num_planes, 2U); ++i) { min_t 779 drivers/media/platform/sti/bdisp/bdisp-hw.c src_rect.width = min_t(__s32, MAX_SRC_WIDTH, src_rect.width); min_t 221 drivers/media/platform/vsp1/vsp1_rwpf.c sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2); min_t 222 drivers/media/platform/vsp1/vsp1_rwpf.c sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2); min_t 223 drivers/media/platform/vsp1/vsp1_rwpf.c sel->r.width = min_t(unsigned int, sel->r.width, min_t 225 drivers/media/platform/vsp1/vsp1_rwpf.c sel->r.height = min_t(unsigned int, sel->r.height, min_t 197 drivers/media/platform/xilinx/xilinx-tpg.c htotal = min_t(unsigned int, XVTC_MAX_HSIZE, min_t 199 drivers/media/platform/xilinx/xilinx-tpg.c vtotal = min_t(unsigned int, XVTC_MAX_VSIZE, min_t 81 drivers/media/rc/lirc_dev.c dev->gap_duration = min_t(u64, dev->gap_duration, min_t 137 drivers/media/rc/sir_ir.c pulse_end = min_t(unsigned long, min_t 181 drivers/media/rc/sir_ir.c delt = min_t(unsigned long, min_t 184 drivers/media/rc/sir_ir.c deltintr = min_t(unsigned long, min_t 100 drivers/media/tuners/mt2060.c val_len = min_t(int, rem, priv->i2c_max_regs); min_t 931 drivers/media/usb/cpia2/cpia2_core.c cmd.reg_count = min_t(uint, 64, fw->size - i); min_t 703 drivers/media/usb/dvb-usb/cxusb-analog.c *npackets = min_t(int, (framelen + CXUSB_VIDEO_PKT_SIZE - 1) / min_t 514 drivers/media/usb/hackrf/hackrf.c len = min_t(unsigned long, vb2_plane_size(&buffer->vb.vb2_buf, 0), min_t 559 drivers/media/usb/hackrf/hackrf.c len = min_t(unsigned long, urb->transfer_buffer_length, min_t 416 drivers/media/usb/uvc/uvc_ctrl.c data[first+1] = min_t(int, abs(value), 0xff); min_t 1145 drivers/media/usb/uvc/uvc_video.c op->len = min_t(unsigned int, len, maxlen); min_t 149 drivers/media/v4l2-core/v4l2-fwnode.c num_data_lanes = min_t(u32, bus->num_data_lanes, min_t 169 drivers/media/v4l2-core/v4l2-fwnode.c min_t(int, V4L2_FWNODE_CSI2_MAX_DATA_LANES, rval); min_t 317 drivers/media/v4l2-core/v4l2-ioctl.c planes = min_t(u32, mp->num_planes, VIDEO_MAX_PLANES); min_t 1019 drivers/media/v4l2-core/v4l2-ioctl.c fmt->fmt.pix_mp.num_planes = min_t(u32, fmt->fmt.pix_mp.num_planes, min_t 109 drivers/media/v4l2-core/videobuf-dma-sg.c min_t(size_t, PAGE_SIZE - offset, size), offset); min_t 110 drivers/media/v4l2-core/videobuf-dma-sg.c size -= min_t(size_t, PAGE_SIZE - offset, size); min_t 116 drivers/media/v4l2-core/videobuf-dma-sg.c sg_set_page(&sglist[i], pages[i], min_t(size_t, PAGE_SIZE, size), 0); min_t 117 drivers/media/v4l2-core/videobuf-dma-sg.c size -= min_t(size_t, PAGE_SIZE, size); min_t 3221 drivers/message/fusion/mptbase.c ioc->req_depth = min_t(int, MPT_MAX_REQ_DEPTH, facts->GlobalCredits); min_t 3223 drivers/message/fusion/mptbase.c ioc->reply_depth = min_t(int, MPT_DEFAULT_REPLY_DEPTH, facts->ReplyQueueDepth); min_t 4988 drivers/message/fusion/mptbase.c copy_sz = min_t(int, sizeof(LANPage0_t), data_sz); min_t 5033 drivers/message/fusion/mptbase.c copy_sz = min_t(int, sizeof(LANPage1_t), data_sz); min_t 777 drivers/message/fusion/mptfc.c copy_sz = min_t(int, sizeof(FCPortPage0_t), data_sz); min_t 5204 drivers/message/fusion/mptsas.c sh->can_queue = min_t(int, ioc->req_depth - 10, sh->can_queue); min_t 2652 drivers/message/fusion/mptscsih.c sz = min_t(int, pReq->SenseBufferLength, min_t 671 drivers/misc/eeprom/at24.c at24->write_max = min_t(unsigned int, min_t 547 drivers/misc/genwqe/card_dev.c tocopy = min_t(size_t, load->size, FLASH_BLOCK); min_t 681 drivers/misc/genwqe/card_dev.c tocopy = min_t(size_t, load->size, FLASH_BLOCK); min_t 295 drivers/misc/genwqe/card_utils.c sgl->fpage_size = min_t(size_t, PAGE_SIZE-sgl->fpage_offs, user_size); min_t 979 drivers/misc/ibmvmc.c nbytes = min_t(size_t, nbytes, buffer->msg_len); min_t 1112 drivers/misc/ibmvmc.c bytes = min_t(size_t, c, vmc_buffer->size); min_t 1714 drivers/misc/ibmvmc.c ibmvmc.max_mtu = min_t(u32, ibmvmc_max_mtu, be32_to_cpu(crq->max_mtu)); min_t 1715 drivers/misc/ibmvmc.c ibmvmc.max_buffer_pool_size = min_t(u16, ibmvmc_max_buf_pool_size, min_t 1717 drivers/misc/ibmvmc.c ibmvmc.max_hmc_index = min_t(u8, ibmvmc_max_hmcs, crq->max_hmc) - 1; min_t 196 drivers/misc/mei/bus.c r_length = min_t(size_t, length, cb->buf_idx); min_t 217 drivers/misc/mei/main.c length = min_t(size_t, length, cb->buf_idx - *offset); min_t 1429 drivers/misc/mic/scif/scif_api.c len = min_t(int, len, scif_info.total); min_t 270 drivers/misc/mic/scif/scif_fd.c entries = min_t(int, scif_info.maxid, node_ids.len); min_t 389 drivers/misc/mic/scif/scif_mmap.c loop_nr_pages = min_t(int, min_t 425 drivers/misc/mic/scif/scif_mmap.c loop_nr_pages = min_t(int, min_t 466 drivers/misc/mic/scif/scif_mmap.c loop_nr_pages = min_t(int, min_t 843 drivers/misc/mic/scif/scif_rma.c loop_nr_contig_chunks = min_t(int, remaining_nr_contig_chunks, min_t 111 drivers/misc/mic/vop/vop_main.c bits = min_t(unsigned, feature_len, sizeof(vdev->features)) * 8; min_t 145 drivers/misc/mic/vop/vop_main.c bits = min_t(unsigned, feature_len, min_t 554 drivers/misc/mic/vop/vop_vringh.c partlen = min_t(size_t, len, VOP_INT_DMA_BUF_SIZE); min_t 631 drivers/misc/mic/vop/vop_vringh.c partlen = min_t(size_t, len, VOP_INT_DMA_BUF_SIZE); min_t 251 drivers/misc/ti-st/st_core.c len = min_t(unsigned int, st_gdata->rx_count, count); min_t 141 drivers/misc/ti-st/st_kim.c len = min_t(unsigned int, kim_gdata->rx_count, count); min_t 1127 drivers/misc/vmw_balloon.c to_inflate_pages = min_t(unsigned long, b->batch_max_pages, min_t 1236 drivers/misc/vmw_balloon.c to_deflate_pages = min_t(unsigned long, b->batch_max_pages, min_t 429 drivers/mmc/core/queue.c min_t(int, card->ext_csd.cmdq_depth, host->cqe_qdepth); min_t 1317 drivers/mmc/host/bcm2835.c mmc->max_req_size = min_t(size_t, 524288, dma_max_mapping_size(dev)); min_t 1050 drivers/mmc/host/cavium.c mmc->max_seg_size = min_t(unsigned int, 8 * 1024 * 1024, min_t 2199 drivers/mmc/host/dw_mmc.c cnt = min_t(int, cnt, host->part_buf_count); min_t 122 drivers/mmc/host/sdhci-acpi.c size_t len = min_t(size_t, obj->buffer.length, 4); min_t 537 drivers/mmc/host/sdhci-pci-core.c len = min_t(size_t, obj->buffer.length, 4); min_t 4107 drivers/mmc/host/sdhci.c curr = min_t(u32, curr, SDHCI_MAX_CURRENT_LIMIT); min_t 1193 drivers/mmc/host/tmio_mmc_core.c mmc->max_req_size = min_t(size_t, min_t 1641 drivers/mtd/chips/cfi_cmdset_0001.c n = min_t(int, len, map_bankwidth(map)-gap); min_t 2263 drivers/mtd/chips/cfi_cmdset_0001.c int n = min_t(int, size, map_bankwidth(map)-gap); min_t 1398 drivers/mtd/chips/cfi_cmdset_0002.c int n = min_t(int, len, map_bankwidth(map) - gap); min_t 1861 drivers/mtd/chips/cfi_cmdset_0002.c n = min_t(int, len, map_bankwidth(map)-i); min_t 2340 drivers/mtd/chips/cfi_cmdset_0002.c n = min_t(int, len, map_bankwidth(map) - i); min_t 901 drivers/mtd/devices/docg3.c nbdata = min_t(size_t, len, DOC_LAYOUT_PAGE_SIZE - skip); min_t 902 drivers/mtd/devices/docg3.c nboob = min_t(size_t, ooblen, (size_t)DOC_LAYOUT_OOB_SIZE); min_t 285 drivers/mtd/devices/sst25l.c bytes = min_t(uint32_t, mtd->writesize, len - i); min_t 1682 drivers/mtd/devices/st_spi_fsm.c bytes = min_t(size_t, len, FLASH_PAGESIZE); min_t 1765 drivers/mtd/devices/st_spi_fsm.c bytes = min_t(size_t, FLASH_PAGESIZE - page_offs, len); min_t 169 drivers/mtd/maps/physmap-core.c unsigned int chunklen = min_t(unsigned int, len, min_t 206 drivers/mtd/maps/physmap-core.c unsigned int chunklen = min_t(unsigned int, len, min_t 164 drivers/mtd/mtdchar.c len = min_t(size_t, count, size); min_t 253 drivers/mtd/mtdchar.c len = min_t(size_t, count, size); min_t 180 drivers/mtd/mtdconcat.c size = min_t(uint64_t, total_len, subdev->size - to); min_t 1462 drivers/mtd/mtdcore.c cnt = min_t(int, nbytes, oobregion.length); min_t 1505 drivers/mtd/mtdcore.c cnt = min_t(int, nbytes, oobregion.length); min_t 1895 drivers/mtd/mtdcore.c *size = min_t(size_t, *size, KMALLOC_MAX_SIZE); min_t 1153 drivers/mtd/nand/onenand/onenand_base.c thislen = min_t(int, writesize, len - read); min_t 1175 drivers/mtd/nand/onenand/onenand_base.c thisooblen = min_t(int, thisooblen, ooblen - oobread); min_t 1264 drivers/mtd/nand/onenand/onenand_base.c thislen = min_t(int, writesize, len - read); min_t 1293 drivers/mtd/nand/onenand/onenand_base.c thisooblen = min_t(int, thisooblen, ooblen - oobread); min_t 1313 drivers/mtd/nand/onenand/onenand_base.c thislen = min_t(int, writesize, len - read); min_t 1389 drivers/mtd/nand/onenand/onenand_base.c thislen = min_t(int, thislen, len); min_t 1564 drivers/mtd/nand/onenand/onenand_base.c thislen = min_t(int, thislen, len); min_t 1644 drivers/mtd/nand/onenand/onenand_base.c thislen = min_t(int, this->writesize - column, len); min_t 1727 drivers/mtd/nand/onenand/onenand_base.c int thislen = min_t(int, mtd->writesize - column, len - written); min_t 1831 drivers/mtd/nand/onenand/onenand_base.c thislen = min_t(int, mtd->writesize - column, len - written); min_t 1832 drivers/mtd/nand/onenand/onenand_base.c thisooblen = min_t(int, oobsize - oobcolumn, ooblen - oobwritten); min_t 2019 drivers/mtd/nand/onenand/onenand_base.c int thislen = min_t(int, oobsize, len - written); min_t 2798 drivers/mtd/nand/onenand/onenand_base.c int thislen = min_t(int, oobsize, len - written); min_t 1254 drivers/mtd/nand/raw/brcmnand/brcmnand.c tbytes = min_t(int, tbytes, ctrl->max_oob); min_t 1277 drivers/mtd/nand/raw/brcmnand/brcmnand.c tbytes = min_t(int, tbytes, ctrl->max_oob); min_t 802 drivers/mtd/nand/raw/denali.c acc_clks = min_t(int, acc_clks, ACC_CLKS__VALUE); min_t 811 drivers/mtd/nand/raw/denali.c re_2_we = min_t(int, re_2_we, RE_2_WE__VALUE); min_t 820 drivers/mtd/nand/raw/denali.c re_2_re = min_t(int, re_2_re, RE_2_RE__VALUE); min_t 834 drivers/mtd/nand/raw/denali.c we_2_re = min_t(int, we_2_re, TWHR2_AND_WE_2_RE__WE_2_RE); min_t 849 drivers/mtd/nand/raw/denali.c addr_2_data = min_t(int, addr_2_data, addr_2_data_mask); min_t 859 drivers/mtd/nand/raw/denali.c rdwr_en_hi = min_t(int, rdwr_en_hi, RDWR_EN_HI_CNT__VALUE); min_t 872 drivers/mtd/nand/raw/denali.c rdwr_en_lo = min_t(int, rdwr_en_lo, RDWR_EN_LO_CNT__VALUE); min_t 883 drivers/mtd/nand/raw/denali.c cs_setup = min_t(int, cs_setup, CS_SETUP_CNT__VALUE); min_t 88 drivers/mtd/nand/raw/lpc32xx_slc.c #define SLCTAC_CLOCKS(c, n, s) (min_t(u32, DIV_ROUND_UP(c, n) - 1, 0xF) << s) min_t 130 drivers/mtd/nand/raw/marvell_nand.c #define NDCR_RD_ID_CNT(x) (min_t(unsigned int, x, 0x7) << 16) min_t 143 drivers/mtd/nand/raw/marvell_nand.c #define NDTR0_TRP(x) ((min_t(unsigned int, x, 0xF) & 0x7) << 0) min_t 144 drivers/mtd/nand/raw/marvell_nand.c #define NDTR0_TRH(x) (min_t(unsigned int, x, 0x7) << 3) min_t 145 drivers/mtd/nand/raw/marvell_nand.c #define NDTR0_ETRP(x) ((min_t(unsigned int, x, 0xF) & 0x8) << 3) min_t 147 drivers/mtd/nand/raw/marvell_nand.c #define NDTR0_TWP(x) (min_t(unsigned int, x, 0x7) << 8) min_t 148 drivers/mtd/nand/raw/marvell_nand.c #define NDTR0_TWH(x) (min_t(unsigned int, x, 0x7) << 11) min_t 149 drivers/mtd/nand/raw/marvell_nand.c #define NDTR0_TCS(x) (min_t(unsigned int, x, 0x7) << 16) min_t 150 drivers/mtd/nand/raw/marvell_nand.c #define NDTR0_TCH(x) (min_t(unsigned int, x, 0x7) << 19) min_t 151 drivers/mtd/nand/raw/marvell_nand.c #define NDTR0_RD_CNT_DEL(x) (min_t(unsigned int, x, 0xF) << 22) min_t 153 drivers/mtd/nand/raw/marvell_nand.c #define NDTR0_TADL(x) (min_t(unsigned int, x, 0x1F) << 27) min_t 157 drivers/mtd/nand/raw/marvell_nand.c #define NDTR1_TAR(x) (min_t(unsigned int, x, 0xF) << 0) min_t 158 drivers/mtd/nand/raw/marvell_nand.c #define NDTR1_TWHR(x) (min_t(unsigned int, x, 0xF) << 4) min_t 159 drivers/mtd/nand/raw/marvell_nand.c #define NDTR1_TRHW(x) (min_t(unsigned int, x / 16, 0x3) << 8) min_t 162 drivers/mtd/nand/raw/marvell_nand.c #define NDTR1_TR(x) (min_t(unsigned int, x, 0xFFFF) << 16) min_t 822 drivers/mtd/nand/raw/marvell_nand.c unsigned int dma_len = min_t(int, ALIGN(len, 32), MAX_CHUNK_SIZE); min_t 1676 drivers/mtd/nand/raw/marvell_nand.c for (i = 0; i < min_t(unsigned int, 4, naddrs); i++) min_t 3369 drivers/mtd/nand/raw/nand_base.c toread = min_t(int, length, chunk); min_t 3437 drivers/mtd/nand/raw/nand_base.c int num = min_t(int, len, 4); min_t 3456 drivers/mtd/nand/raw/nand_base.c len = min_t(int, length, chunk); min_t 4027 drivers/mtd/nand/raw/nand_base.c bytes = min_t(int, bytes - column, writelen); min_t 2298 drivers/mtd/nand/raw/qcom_nandc.c int real_len = min_t(size_t, len, nandc->buf_count - nandc->buf_start); min_t 2308 drivers/mtd/nand/raw/qcom_nandc.c int real_len = min_t(size_t, len, nandc->buf_count - nandc->buf_start); min_t 1469 drivers/mtd/nand/raw/stm32_fmc2_nand.c tims->tar = min_t(unsigned long, timing, FMC2_PCR_TIMING_MASK); min_t 1473 drivers/mtd/nand/raw/stm32_fmc2_nand.c tims->tclr = min_t(unsigned long, timing, FMC2_PCR_TIMING_MASK); min_t 1815 drivers/mtd/nand/raw/sunxi_nand.c cnt = min_t(u32, remaining, NFC_SRAM_SIZE); min_t 385 drivers/mtd/nand/raw/tegra_nand.c for (i = 0; i < min_t(unsigned int, 4, naddrs); i++) min_t 388 drivers/mtd/nand/raw/tegra_nand.c for (i = 0; i < min_t(unsigned int, 4, naddrs); i++) min_t 277 drivers/mtd/spi-nor/hisi-sfc.c size_t trans = min_t(size_t, HIFMC_DMA_MAX_LEN, len - offset); min_t 300 drivers/mtd/spi-nor/hisi-sfc.c size_t trans = min_t(size_t, HIFMC_DMA_MAX_LEN, len - offset); min_t 251 drivers/mtd/spi-nor/intel-spi.c bytes = min_t(size_t, size, 4); min_t 272 drivers/mtd/spi-nor/intel-spi.c bytes = min_t(size_t, size, 4); min_t 632 drivers/mtd/spi-nor/intel-spi.c block_size = min_t(size_t, len, INTEL_SPI_FIFO_SZ); min_t 635 drivers/mtd/spi-nor/intel-spi.c block_size = min_t(loff_t, from + block_size, min_t 689 drivers/mtd/spi-nor/intel-spi.c block_size = min_t(size_t, len, INTEL_SPI_FIFO_SZ); min_t 692 drivers/mtd/spi-nor/intel-spi.c block_size = min_t(loff_t, to + block_size, min_t 2700 drivers/mtd/spi-nor/spi-nor.c page_remain = min_t(size_t, min_t 3373 drivers/mtd/spi-nor/spi-nor.c len = min_t(size_t, sizeof(bfpt), min_t 326 drivers/mtd/ubi/debug.c buf_size = min_t(size_t, count, (sizeof(buf) - 1)); min_t 99 drivers/mtd/ubi/misc.c need = min_t(int, need, ubi->avail_pebs); min_t 1669 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c dev->max_tx_urbs = min_t(unsigned int, KVASER_USB_MAX_TX_URBS, min_t 1923 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c remaining_bytes = min_t(unsigned int, len, min_t 158 drivers/net/dsa/sja1105/sja1105_spi.c chunk.len = min_t(int, buf_len, SJA1105_SIZE_SPI_MSG_MAXLEN); min_t 1408 drivers/net/ethernet/3com/typhoon.c len = min_t(u32, section_len, PAGE_SIZE); min_t 2821 drivers/net/ethernet/alteon/acenic.c tsize = min_t(u32, ((~dest & (ACE_WINDOW_SIZE - 1)) + 1), min_t 2822 drivers/net/ethernet/alteon/acenic.c min_t(u32, size, ACE_WINDOW_SIZE)); min_t 2847 drivers/net/ethernet/alteon/acenic.c tsize = min_t(u32, ((~dest & (ACE_WINDOW_SIZE - 1)) + 1), min_t 2848 drivers/net/ethernet/alteon/acenic.c min_t(u32, size, ACE_WINDOW_SIZE)); min_t 1853 drivers/net/ethernet/amazon/ena/ena_com.c min_t(u32, ena_dev->tx_max_header_size, SZ_256); min_t 1131 drivers/net/ethernet/amazon/ena/ena_netdev.c min_t(int, rx_ring->ring_size / ENA_RX_REFILL_THRESH_DIVIDER, min_t 2168 drivers/net/ethernet/amazon/ena/ena_netdev.c push_len = min_t(u32, skb->len, tx_ring->tx_max_header_size); min_t 2181 drivers/net/ethernet/amazon/ena/ena_netdev.c *header_len = min_t(u32, skb_head_len, min_t 3153 drivers/net/ethernet/amazon/ena/ena_netdev.c io_rx_num = min_t(int, max_queue_ext->max_rx_sq_num, min_t 3163 drivers/net/ethernet/amazon/ena/ena_netdev.c io_rx_num = min_t(int, io_tx_sq_num, io_tx_cq_num); min_t 3170 drivers/net/ethernet/amazon/ena/ena_netdev.c io_queue_num = min_t(int, num_online_cpus(), ENA_MAX_NUM_IO_QUEUES); min_t 3171 drivers/net/ethernet/amazon/ena/ena_netdev.c io_queue_num = min_t(int, io_queue_num, io_rx_num); min_t 3172 drivers/net/ethernet/amazon/ena/ena_netdev.c io_queue_num = min_t(int, io_queue_num, io_tx_sq_num); min_t 3173 drivers/net/ethernet/amazon/ena/ena_netdev.c io_queue_num = min_t(int, io_queue_num, io_tx_cq_num); min_t 3175 drivers/net/ethernet/amazon/ena/ena_netdev.c io_queue_num = min_t(int, io_queue_num, pci_msix_vec_count(pdev) - 1); min_t 3368 drivers/net/ethernet/amazon/ena/ena_netdev.c max_rx_queue_size = min_t(u32, max_queue_ext->max_rx_cq_depth, min_t 3373 drivers/net/ethernet/amazon/ena/ena_netdev.c max_tx_queue_size = min_t(u32, max_tx_queue_size, min_t 3376 drivers/net/ethernet/amazon/ena/ena_netdev.c max_tx_queue_size = min_t(u32, max_tx_queue_size, min_t 3379 drivers/net/ethernet/amazon/ena/ena_netdev.c ctx->max_tx_sgl_size = min_t(u16, ENA_PKT_MAX_BUFS, min_t 3381 drivers/net/ethernet/amazon/ena/ena_netdev.c ctx->max_rx_sgl_size = min_t(u16, ENA_PKT_MAX_BUFS, min_t 3386 drivers/net/ethernet/amazon/ena/ena_netdev.c max_rx_queue_size = min_t(u32, max_queues->max_cq_depth, min_t 3391 drivers/net/ethernet/amazon/ena/ena_netdev.c max_tx_queue_size = min_t(u32, max_tx_queue_size, min_t 3394 drivers/net/ethernet/amazon/ena/ena_netdev.c max_tx_queue_size = min_t(u32, max_tx_queue_size, min_t 3397 drivers/net/ethernet/amazon/ena/ena_netdev.c ctx->max_tx_sgl_size = min_t(u16, ENA_PKT_MAX_BUFS, min_t 3399 drivers/net/ethernet/amazon/ena/ena_netdev.c ctx->max_rx_sgl_size = min_t(u16, ENA_PKT_MAX_BUFS, min_t 580 drivers/net/ethernet/amd/xgbe/xgbe-desc.c len = min_t(unsigned int, datalen, XGBE_TX_MAX_BUF_SIZE); min_t 611 drivers/net/ethernet/amd/xgbe/xgbe-desc.c len = min_t(unsigned int, datalen, min_t 539 drivers/net/ethernet/amd/xgbe/xgbe-dev.c q_count = min_t(unsigned int, pdata->tx_q_count, max_q_count); min_t 583 drivers/net/ethernet/amd/xgbe/xgbe-dev.c q_count = min_t(unsigned int, pdata->tx_q_count, max_q_count); min_t 2366 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return min_t(unsigned int, pdata->tx_max_fifo_size, min_t 2373 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return min_t(unsigned int, pdata->rx_max_fifo_size, min_t 1891 drivers/net/ethernet/amd/xgbe/xgbe-drv.c len -= min_t(unsigned int, len, XGBE_TX_MAX_BUF_SIZE); min_t 1898 drivers/net/ethernet/amd/xgbe/xgbe-drv.c len -= min_t(unsigned int, len, XGBE_TX_MAX_BUF_SIZE); min_t 2595 drivers/net/ethernet/amd/xgbe/xgbe-drv.c return min_t(unsigned int, rdata->rx.hdr.dma_len, rdata->rx.len); min_t 239 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_ring_count = min_t(unsigned int, num_online_cpus(), min_t 241 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_ring_count = min_t(unsigned int, pdata->tx_ring_count, min_t 243 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_ring_count = min_t(unsigned int, pdata->tx_ring_count, min_t 248 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_ring_count = min_t(unsigned int, num_online_cpus(), min_t 250 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_ring_count = min_t(unsigned int, pdata->rx_ring_count, min_t 253 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_q_count = min_t(unsigned int, pdata->hw_feat.rx_q_cnt, min_t 315 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_ring_count = min_t(unsigned int, pdata->tx_ring_count, min_t 317 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_ring_count = min_t(unsigned int, pdata->rx_ring_count, min_t 203 drivers/net/ethernet/amd/xgbe/xgbe.h min_t(unsigned int, IEEE_8021QAZ_MAX_TCS, (_cnt)) min_t 447 drivers/net/ethernet/aquantia/atlantic/aq_ring.c if (aq_ring_avail_dx(self) < min_t(unsigned int, AQ_CFG_RX_REFILL_THRES, min_t 834 drivers/net/ethernet/atheros/alx/main.c num_txq = min_t(int, num_online_cpus(), ALX_MAX_TX_QUEUES); min_t 1111 drivers/net/ethernet/atheros/atl1c/atl1c_main.c hw->dmar_block = min_t(u32, max_pay_load, hw->dmar_block); min_t 955 drivers/net/ethernet/atheros/atl1e/atl1e_main.c hw->dmaw_block = min_t(u32, max_pay_load, hw->dmaw_block); min_t 959 drivers/net/ethernet/atheros/atl1e/atl1e_main.c hw->dmar_block = min_t(u32, max_pay_load, hw->dmar_block); min_t 1729 drivers/net/ethernet/broadcom/b44.c num_ents = min_t(int, netdev_mc_count(dev), B44_MCAST_TABLE_SIZE); min_t 398 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h #define TPA_AGG_SIZE min_t(u32, (min_t(u32, 8, MAX_SKB_FRAGS) * \ min_t 612 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (pages > min_t(u32, 8, MAX_SKB_FRAGS) * SGE_PAGES) { min_t 628 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c frag_len = min_t(u32, frag_size, (u32)full_page); min_t 630 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c frag_len = min_t(u32, frag_size, (u32)SGE_PAGES); min_t 4472 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c fp->rx_comp_prod = min_t(u16, NUM_RCQ_RINGS*RCQ_DESC_CNT, min_t 1733 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c need_num_of_entries = min_t(u8, min_t 2793 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c int count = min_t(int, size - done, CRC_BUFF_SIZE); min_t 3193 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c sge_sz = (u16)min_t(u32, SGE_PAGES, 0xffff); min_t 6137 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c min_t(int, MAX_SP_DESC_CNT - MAX_SPQ_PENDING, NUM_EQ_DESC) - 1); min_t 11239 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->igu_sb_cnt = min_t(int, bp->igu_sb_cnt, igu_sb_cnt); min_t 12255 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->igu_sb_cnt = min_t(u8, bp->igu_sb_cnt, E1H_MAX_MF_SB_COUNT); min_t 1251 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c iov->nr_virtfn = min_t(u16, iov->total, num_vfs_param); min_t 1376 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c cxt->size = min_t(size_t, tot_size, CDU_ILT_PAGE_SZ); min_t 2001 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c return min_t(u8, min_t(u8, vf_sb_count(vf), BNX2X_CIDS_PER_VF), min_t 2472 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c num_vf_queues = min_t(u16, BNX2X_VF_MAX_QUEUES, min_t 3441 drivers/net/ethernet/broadcom/bnxt/bnxt.c agg_factor = min_t(u32, 4, 65536 / BNXT_RX_PAGE_SIZE); min_t 3505 drivers/net/ethernet/broadcom/bnxt/bnxt.c min_t(u16, bp->max_mtu, BNXT_MAX_PAGE_MODE_MTU); min_t 5996 drivers/net/ethernet/broadcom/bnxt/bnxt.c rx_rings = min_t(int, rx_rings, grp); min_t 5997 drivers/net/ethernet/broadcom/bnxt/bnxt.c cp = min_t(int, cp, bp->cp_nr_rings); min_t 6000 drivers/net/ethernet/broadcom/bnxt/bnxt.c cp = min_t(int, cp, stat); min_t 6149 drivers/net/ethernet/broadcom/bnxt/bnxt.c max = min_t(u16, max, coal_cap->num_cmpl_aggr_int_max); min_t 6154 drivers/net/ethernet/broadcom/bnxt/bnxt.c val = min_t(u16, val, coal_cap->num_cmpl_dma_aggr_max); min_t 7860 drivers/net/ethernet/broadcom/bnxt/bnxt.c *rx = min_t(int, _rx, max); min_t 7861 drivers/net/ethernet/broadcom/bnxt/bnxt.c *tx = min_t(int, _tx, max); min_t 7974 drivers/net/ethernet/broadcom/bnxt/bnxt.c return min_t(unsigned int, hw_resc->max_irqs, hw_resc->max_nqs); min_t 7976 drivers/net/ethernet/broadcom/bnxt/bnxt.c return min_t(unsigned int, hw_resc->max_irqs, hw_resc->max_cp_rings); min_t 8009 drivers/net/ethernet/broadcom/bnxt/bnxt.c max_idx = min_t(int, bp->total_irqs, max_cp); min_t 11472 drivers/net/ethernet/broadcom/bnxt/bnxt.c max_irq = min_t(int, bnxt_get_max_func_irqs(bp) - min_t 11476 drivers/net/ethernet/broadcom/bnxt/bnxt.c *max_cp = min_t(int, *max_cp, max_irq); min_t 11489 drivers/net/ethernet/broadcom/bnxt/bnxt.c *max_rx = min_t(int, *max_rx, max_ring_grps); min_t 11541 drivers/net/ethernet/broadcom/bnxt/bnxt.c max_cp = min_t(int, max_cp, max_irq); min_t 11542 drivers/net/ethernet/broadcom/bnxt/bnxt.c max_cp = min_t(int, max_cp, max_stat); min_t 11555 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->cp_nr_rings = min_t(int, bp->tx_nr_rings_per_tc, bp->rx_nr_rings); min_t 11578 drivers/net/ethernet/broadcom/bnxt/bnxt.c dflt_rings = min_t(int, dflt_rings, max_rings); min_t 11583 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->rx_nr_rings = min_t(int, dflt_rings, max_rx_rings); min_t 11584 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->tx_nr_rings_per_tc = min_t(int, dflt_rings, max_tx_rings); min_t 778 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c max_tx_rings = min_t(int, max_tx_rings, max_tx_sch_inputs); min_t 779 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c channel->max_combined = min_t(int, max_rx_rings, max_tx_rings); min_t 786 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c max_tx_rings = min_t(int, max_tx_rings, max_tx_sch_inputs); min_t 2478 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c xfer_size = min_t(u16, data_length, BNXT_MAX_PHY_I2C_RESP_SIZE); min_t 529 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c vf_vnics = min_t(u16, vf_vnics, vf_rx_rings); min_t 633 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c vf_vnics = min_t(u16, vf_vnics, vf_rx_rings); min_t 742 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c avail_cp = min_t(int, avail_cp, avail_stat); min_t 142 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c max_idx = min_t(int, bp->total_irqs, max_cp_rings); min_t 167 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c avail_msix = min_t(int, resv_msix, avail_msix); min_t 11454 drivers/net/ethernet/broadcom/tg3.c irq_cnt = min_t(unsigned, irq_cnt + 1, tp->irq_max); min_t 1281 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c max_vfs = min_t(u32, min_t 786 drivers/net/ethernet/cavium/liquidio/octeon_console.c bytes_to_read = min_t(s32, bytes_to_read, buf_size); min_t 761 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c nic->qs->rq_cnt = min_t(u8, nic->rx_queues, MAX_RCV_QUEUES_PER_QS); min_t 762 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c nic->qs->sq_cnt = min_t(u8, txq_count, MAX_SND_QUEUES_PER_QS); min_t 1830 drivers/net/ethernet/cavium/thunder/nicvf_main.c nic->qs->rq_cnt = min_t(u8, nic->rx_queues, MAX_RCV_QUEUES_PER_QS); min_t 1831 drivers/net/ethernet/cavium/thunder/nicvf_main.c nic->qs->sq_cnt = min_t(u8, txq_count, MAX_SND_QUEUES_PER_QS); min_t 2162 drivers/net/ethernet/cavium/thunder/nicvf_main.c qcount = min_t(int, num_online_cpus(), min_t 1047 drivers/net/ethernet/cavium/thunder/nicvf_queues.c qs->rq_cnt = min_t(u8, MAX_RCV_QUEUES_PER_QS, num_online_cpus()); min_t 1048 drivers/net/ethernet/cavium/thunder/nicvf_queues.c qs->sq_cnt = min_t(u8, MAX_SND_QUEUES_PER_QS, num_online_cpus()); min_t 1503 drivers/net/ethernet/cavium/thunder/nicvf_queues.c data_left = min_t(int, skb_shinfo(skb)->gso_size, total_len); min_t 1521 drivers/net/ethernet/cavium/thunder/nicvf_queues.c size = min_t(int, tso.size, data_left); min_t 2486 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c min_t(unsigned int, t.len, sizeof(buf)); min_t 34 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c bytes = min_t(unsigned long, bytes_left, min_t 1007 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c bytes = min_t(unsigned long, bytes_left, min_t 2973 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c size = min_t(u32, size, CUDBG_DUMP_BUFF_SIZE); min_t 3111 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c u32 chunk_size = min_t(u32, tot_len, CUDBG_CHUNK_SIZE); min_t 5175 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c i = min_t(int, MAX_OFLD_QSETS, num_online_cpus()); min_t 283 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c i = min_t(int, uld_info->nrxq, min_t 291 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c rxq_info->nciq = min_t(int, s->nqs_per_uld, min_t 294 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c rxq_info->nciq = min_t(int, MAX_OFLD_QSETS, min_t 536 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c i = min_t(int, adap->vres.ncrypto_fc, min_t 546 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c i = min_t(int, uld_info->ntxq, num_online_cpus()); min_t 322 drivers/net/ethernet/cisco/enic/enic_ethtool.c u32 rx_coalesce_usecs_high = min_t(u32, coalesce_usecs_max, min_t 324 drivers/net/ethernet/cisco/enic/enic_ethtool.c u32 rx_coalesce_usecs_low = min_t(u32, coalesce_usecs_max, min_t 382 drivers/net/ethernet/cisco/enic/enic_ethtool.c tx_coalesce_usecs = min_t(u32, ecmd->tx_coalesce_usecs, min_t 384 drivers/net/ethernet/cisco/enic/enic_ethtool.c rx_coalesce_usecs = min_t(u32, ecmd->rx_coalesce_usecs, min_t 387 drivers/net/ethernet/cisco/enic/enic_ethtool.c rx_coalesce_usecs_low = min_t(u32, ecmd->rx_coalesce_usecs_low, min_t 389 drivers/net/ethernet/cisco/enic/enic_ethtool.c rx_coalesce_usecs_high = min_t(u32, ecmd->rx_coalesce_usecs_high, min_t 446 drivers/net/ethernet/cisco/enic/enic_main.c min_t(int, ENIC_MAX_MTU, mtu)); min_t 2380 drivers/net/ethernet/cisco/enic/enic_main.c unsigned int n = min_t(unsigned int, enic->rq_count, ENIC_RQ_MAX); min_t 2381 drivers/net/ethernet/cisco/enic/enic_main.c unsigned int m = min_t(unsigned int, enic->wq_count, ENIC_WQ_MAX); min_t 2587 drivers/net/ethernet/cisco/enic/enic_main.c enic->config.mtu = min_t(u16, 1500, enic->config.mtu); min_t 77 drivers/net/ethernet/cisco/enic/enic_res.c min_t(u32, ENIC_MAX_WQ_DESCS, min_t 83 drivers/net/ethernet/cisco/enic/enic_res.c min_t(u32, ENIC_MAX_RQ_DESCS, min_t 90 drivers/net/ethernet/cisco/enic/enic_res.c c->mtu = min_t(u16, ENIC_MAX_MTU, min_t 94 drivers/net/ethernet/cisco/enic/enic_res.c c->intr_timer_usec = min_t(u32, c->intr_timer_usec, min_t 338 drivers/net/ethernet/ec_bhf.c buf->len = min_t(int, ~mask + 1, size); min_t 717 drivers/net/ethernet/emulex/benet/be.h (min_t(u16, be_max_nic_eqs(adapter), num_online_cpus())) min_t 725 drivers/net/ethernet/emulex/benet/be.h return min_t(u16, num, be_max_irqs(adapter)); min_t 731 drivers/net/ethernet/emulex/benet/be.h return min_t(u16, be_max_txqs(adapter), be_max_irqs(adapter)); min_t 2694 drivers/net/ethernet/emulex/benet/be_cmds.c num_bytes = min_t(u32, 32 * 1024, total_bytes); min_t 3074 drivers/net/ethernet/emulex/benet/be_cmds.c chunk_size = min_t(u32, image_size, LANCER_FW_DOWNLOAD_CHUNK); min_t 283 drivers/net/ethernet/emulex/benet/be_ethtool.c chunk_size = min_t(u32, (buf_len - total_read_len), min_t 2190 drivers/net/ethernet/emulex/benet/be_main.c eqd = min_t(u32, eqd, aic->max_eqd); min_t 2958 drivers/net/ethernet/emulex/benet/be_main.c adapter->num_evt_qs = min_t(u16, num_irqs(adapter), min_t 4532 drivers/net/ethernet/emulex/benet/be_main.c min_t(u16, netif_get_num_default_rss_queues(), min_t 1124 drivers/net/ethernet/ethoc.c num_bd = min_t(unsigned int, min_t 1054 drivers/net/ethernet/freescale/enetc/enetc.c priv->num_rx_rings = min_t(int, cpus, si->num_rx_rings); min_t 745 drivers/net/ethernet/freescale/fec_main.c data_left = min_t(int, skb_shinfo(skb)->gso_size, total_len); min_t 758 drivers/net/ethernet/freescale/fec_main.c size = min_t(int, tso.size, data_left); min_t 164 drivers/net/ethernet/google/gve/gve_main.c priv->tx_cfg.max_queues = min_t(int, priv->tx_cfg.max_queues, min_t 166 drivers/net/ethernet/google/gve/gve_main.c priv->rx_cfg.max_queues = min_t(int, priv->rx_cfg.max_queues, min_t 178 drivers/net/ethernet/google/gve/gve_main.c active_cpus = min_t(int, priv->num_ntfy_blks / 2, num_online_cpus()); min_t 954 drivers/net/ethernet/google/gve/gve_main.c min_t(int, priv->tx_cfg.max_queues, priv->num_ntfy_blks / 2); min_t 956 drivers/net/ethernet/google/gve/gve_main.c min_t(int, priv->rx_cfg.max_queues, priv->num_ntfy_blks / 2); min_t 961 drivers/net/ethernet/google/gve/gve_main.c priv->tx_cfg.num_queues = min_t(int, priv->default_num_queues, min_t 963 drivers/net/ethernet/google/gve/gve_main.c priv->rx_cfg.num_queues = min_t(int, priv->default_num_queues, min_t 593 drivers/net/ethernet/google/gve/gve_tx.c to_do = min_t(u32, (nic_done - tx->done), budget); min_t 311 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c return min_t(u16, rss_size, max_rss_size); min_t 3396 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c vector_num = min_t(u16, num_online_cpus(), tqp_num); min_t 3397 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c vector_num = min_t(u16, vector_num, HNS3_VECTOR_PF_MAX_NUM); min_t 428 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c n1 = min_t(uint, n1, MAX_PREFIX_SIZE - 1); min_t 163 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c min_num = min_t(int, bd_num * entries_per_desc, reg_msg->msg_num); min_t 1519 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c kinfo->rss_size = min_t(u16, hdev->rss_size_max, min_t 1523 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c kinfo->rss_size = min_t(u16, kinfo->rss_size, min_t 3942 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c vector_num = min_t(u16, hdev->num_nic_msi - 1, vector_num); min_t 9528 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c return min_t(u32, hdev->rss_size_max, min_t 525 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c min_t(u16, vport->alloc_tqps, hdev->tm_info.num_tc); min_t 529 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c max_rss_size = min_t(u16, hdev->rss_size_max, min_t 545 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c max_rss_size = min_t(u16, max_rss_size, min_t 399 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c = min_t(u16, hdev->rss_size_max, new_tqps / kinfo->num_tc); min_t 417 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c kinfo->num_tqps = min_t(u16, hdev->num_nic_msix - 1, kinfo->num_tqps); min_t 418 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c kinfo->rss_size = min_t(u16, kinfo->num_tqps / kinfo->num_tc, min_t 512 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c vector_num = min_t(u16, hdev->num_nic_msix - 1, vector_num); min_t 2827 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c return min_t(u32, hdev->rss_size_max, min_t 2870 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c max_rss_size = min_t(u16, hdev->rss_size_max, min_t 360 drivers/net/ethernet/huawei/hinic/hinic_main.c nic_dev->num_qps = min_t(u16, nic_dev->num_qps, num_cpus); min_t 4070 drivers/net/ethernet/intel/e1000e/netdev.c adapter->tx_fifo_limit = min_t(u32, ((er32(PBA) >> 16) << 10) - 96, min_t 5832 drivers/net/ethernet/intel/e1000e/netdev.c pull_size = min_t(unsigned int, 4, skb->data_len); min_t 1320 drivers/net/ethernet/intel/fm10k/fm10k_main.c #define TX_WAKE_THRESHOLD min_t(u16, FM10K_MIN_TXD - 1, DESC_NEEDED * 2) min_t 1512 drivers/net/ethernet/intel/fm10k/fm10k_main.c rss_i = min_t(u16, rss_i, f->limit); min_t 1540 drivers/net/ethernet/intel/fm10k/fm10k_main.c rss_i = min_t(u16, interface->hw.mac.max_queues, f->limit); min_t 1826 drivers/net/ethernet/intel/fm10k/fm10k_main.c v_budget = min_t(u16, v_budget, num_online_cpus()); min_t 1837 drivers/net/ethernet/intel/fm10k/fm10k_main.c v_budget = min_t(int, v_budget, hw->mac.max_msix_vectors); min_t 1998 drivers/net/ethernet/intel/fm10k/fm10k_pci.c rss = min_t(int, FM10K_MAX_RSS_INDICES, num_online_cpus()); min_t 1473 drivers/net/ethernet/intel/i40e/i40e_debugfs.c buffer_len = min_t(u16, buffer_len, I40E_MAX_AQ_BUF_SIZE/2); min_t 1642 drivers/net/ethernet/intel/i40e/i40e_main.c vsi->rss_size = min_t(int, pf->alloc_rss_size, min_t 1793 drivers/net/ethernet/intel/i40e/i40e_main.c num_tc_qps = min_t(int, num_tc_qps, min_t 1802 drivers/net/ethernet/intel/i40e/i40e_main.c num_tc_qps = min_t(int, num_tc_qps, pf->num_lan_msix); min_t 1816 drivers/net/ethernet/intel/i40e/i40e_main.c qcount = min_t(int, pf->alloc_rss_size, min_t 3307 drivers/net/ethernet/intel/i40e/i40e_main.c rx_ctx.rxmax = min_t(u16, vsi->max_frame, chain_len * ring->rx_buf_len); min_t 5435 drivers/net/ethernet/intel/i40e/i40e_main.c vsi->rss_size = min_t(int, vsi->back->alloc_rss_size, min_t 5752 drivers/net/ethernet/intel/i40e/i40e_main.c local_rss_size = min_t(int, vsi->rss_size, rss_size); min_t 5807 drivers/net/ethernet/intel/i40e/i40e_main.c qcount = min_t(int, ch->num_queue_pairs, pf->num_lan_msix); min_t 6876 drivers/net/ethernet/intel/i40e/i40e_main.c qcount = min_t(int, vsi->alloc_queue_pairs, min_t 10969 drivers/net/ethernet/intel/i40e/i40e_main.c pf->num_lan_msix = min_t(int, cpus, vectors_left / 2); min_t 11004 drivers/net/ethernet/intel/i40e/i40e_main.c min_t(int, vectors_left, vmdq_vecs_wanted); min_t 11015 drivers/net/ethernet/intel/i40e/i40e_main.c vmdq_vecs = min_t(int, min_t 11035 drivers/net/ethernet/intel/i40e/i40e_main.c extra_vectors = min_t(int, cpus - pf->num_lan_msix, vectors_left); min_t 11100 drivers/net/ethernet/intel/i40e/i40e_main.c pf->num_iwarp_msix = min_t(int, (vec / 3), min_t 11102 drivers/net/ethernet/intel/i40e/i40e_main.c pf->num_vmdq_vsis = min_t(int, (vec / 3), min_t 11105 drivers/net/ethernet/intel/i40e/i40e_main.c pf->num_vmdq_vsis = min_t(int, (vec / 2), min_t 11112 drivers/net/ethernet/intel/i40e/i40e_main.c pf->num_lan_msix = min_t(int, min_t 11636 drivers/net/ethernet/intel/i40e/i40e_main.c vsi->rss_size = min_t(int, pf->alloc_rss_size, qcount); min_t 11681 drivers/net/ethernet/intel/i40e/i40e_main.c queue_count = min_t(int, queue_count, num_online_cpus()); min_t 11682 drivers/net/ethernet/intel/i40e/i40e_main.c new_rss_size = min_t(int, queue_count, pf->rss_size_max); min_t 11705 drivers/net/ethernet/intel/i40e/i40e_main.c vsi->rss_size = min_t(int, pf->alloc_rss_size, qcount); min_t 11868 drivers/net/ethernet/intel/i40e/i40e_main.c pf->rss_size_max = min_t(int, pf->rss_size_max, min_t 11872 drivers/net/ethernet/intel/i40e/i40e_main.c pf->alloc_rss_size = min_t(int, pf->rss_size_max, min_t 11990 drivers/net/ethernet/intel/i40e/i40e_main.c pf->num_req_vfs = min_t(int, min_t 12269 drivers/net/ethernet/intel/i40e/i40e_main.c ppid->id_len = min_t(int, sizeof(hw->mac.port_addr), sizeof(ppid->id)); min_t 14393 drivers/net/ethernet/intel/i40e/i40e_main.c q_max = min_t(int, q_max, pf->hw.func_caps.num_tx_qp); min_t 14394 drivers/net/ethernet/intel/i40e/i40e_main.c q_max = min_t(int, q_max, pf->hw.func_caps.num_msix_vectors); min_t 14412 drivers/net/ethernet/intel/i40e/i40e_main.c pf->num_req_vfs = min_t(int, pf->num_req_vfs, min_t 14419 drivers/net/ethernet/intel/i40e/i40e_main.c pf->num_vmdq_vsis = min_t(int, pf->num_vmdq_vsis, min_t 14789 drivers/net/ethernet/intel/i40e/i40e_main.c pf->ioremap_len = min_t(int, pci_resource_len(pdev, 0), min_t 1109 drivers/net/ethernet/intel/iavf/iavf_main.c num_active_queues = min_t(int, min_t 1178 drivers/net/ethernet/intel/iavf/iavf_main.c v_budget = min_t(int, pairs + NONQ_VECS, min_t 418 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c vfres.num_queue_pairs = min_t(int, num, num_online_cpus()); min_t 699 drivers/net/ethernet/intel/ice/ice_ethtool.c num_frames = min_t(int, tx_ring->count, 32); min_t 63 drivers/net/ethernet/intel/ice/ice_lib.c rlan_ctx.rxmax = min_t(u16, vsi->max_frame, min_t 346 drivers/net/ethernet/intel/ice/ice_lib.c vsi->alloc_txq = min_t(int, ice_get_avail_txq_count(pf), min_t 355 drivers/net/ethernet/intel/ice/ice_lib.c vsi->alloc_rxq = min_t(int, ice_get_avail_rxq_count(pf), min_t 683 drivers/net/ethernet/intel/ice/ice_lib.c qs_cfg->q_count = min_t(u16, qs_cfg->q_count, min_t 801 drivers/net/ethernet/intel/ice/ice_lib.c vsi->rss_size = min_t(int, num_online_cpus(), min_t 810 drivers/net/ethernet/intel/ice/ice_lib.c vsi->rss_size = min_t(int, num_online_cpus(), min_t 920 drivers/net/ethernet/intel/ice/ice_lib.c qcount_rx = min_t(int, rx_numq_tc, max_rss); min_t 921 drivers/net/ethernet/intel/ice/ice_lib.c qcount_rx = min_t(int, qcount_rx, vsi->rss_size); min_t 1447 drivers/net/ethernet/intel/ice/ice_lib.c vsi->rss_size = min_t(int, vsi->rss_size, vsi->num_rxq); min_t 2331 drivers/net/ethernet/intel/ice/ice_main.c pf->num_vfs_supported = min_t(int, func_caps->num_allocd_vfs, min_t 2396 drivers/net/ethernet/intel/ice/ice_main.c needed = min_t(int, num_online_cpus(), v_left); min_t 155 drivers/net/ethernet/intel/ice/ice_nvm.c min_t(u16, *words, min_t 157 drivers/net/ethernet/intel/ice/ice_nvm.c min_t(u16, (*words - words_read), min_t 1527 drivers/net/ethernet/intel/ice/ice_txrx.c return min_t(int, work_done, budget - 1); min_t 599 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c tx_rx_queue_left = min_t(int, ice_get_avail_txq_count(pf), min_t 919 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c pf->num_vf_qps = min_t(int, num_txq, num_rxq); min_t 2257 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c qci->num_queue_pairs > min_t(u16, vsi->alloc_txq, vsi->alloc_rxq)) { min_t 2260 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c vf->vf_id, min_t(u16, vsi->alloc_txq, vsi->alloc_rxq)); min_t 2524 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c tx_rx_queue_left = min_t(u16, ice_get_avail_txq_count(pf), min_t 2541 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c vfres->num_queue_pairs = min_t(u16, max_allowed_vf_queues, min_t 880 drivers/net/ethernet/intel/igb/igb_ethtool.c new_rx_count = min_t(u32, ring->rx_pending, IGB_MAX_RXD); min_t 884 drivers/net/ethernet/intel/igb/igb_ethtool.c new_tx_count = min_t(u32, ring->tx_pending, IGB_MAX_TXD); min_t 2790 drivers/net/ethernet/intel/igb/igb_ethtool.c err = min_t(int, err, 0); min_t 2800 drivers/net/ethernet/intel/igb/igb_ethtool.c err = min_t(int, err, 0); min_t 3756 drivers/net/ethernet/intel/igb/igb_main.c adapter->rss_queues = min_t(u32, max_rss_queues, num_online_cpus()); min_t 7336 drivers/net/ethernet/intel/igb/igb_main.c return min_t(int, ret, 0); min_t 7397 drivers/net/ethernet/intel/igb/igb_main.c ret = min_t(int, ret, 0); min_t 204 drivers/net/ethernet/intel/igbvf/ethtool.c new_rx_count = min_t(u32, new_rx_count, IGBVF_MAX_RXD); min_t 208 drivers/net/ethernet/intel/igbvf/ethtool.c new_tx_count = min_t(u32, new_tx_count, IGBVF_MAX_TXD); min_t 495 drivers/net/ethernet/intel/igc/igc_ethtool.c new_rx_count = min_t(u32, ring->rx_pending, IGC_MAX_RXD); min_t 499 drivers/net/ethernet/intel/igc/igc_ethtool.c new_tx_count = min_t(u32, ring->tx_pending, IGC_MAX_TXD); min_t 1225 drivers/net/ethernet/intel/igc/igc_ethtool.c err = min_t(int, err, 0); min_t 1235 drivers/net/ethernet/intel/igc/igc_ethtool.c err = min_t(int, err, 0); min_t 4395 drivers/net/ethernet/intel/igc/igc_main.c adapter->rss_queues = min_t(u32, max_rss_queues, num_online_cpus()); min_t 3016 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c int max_queues = min_t(int, adapter->num_rx_queues, min_t 340 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c vmdq_i = min_t(u16, vmdq_i, MAX_TX_QUEUES / tcs); min_t 347 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c vmdq_i = min_t(u16, vmdq_i, 16); min_t 351 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c vmdq_i = min_t(u16, vmdq_i, 32); min_t 391 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c fcoe_i = min_t(u16, fcoe_i, fcoe->limit); min_t 439 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c rss_i = min_t(u16, rss_i, 4); min_t 443 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c rss_i = min_t(u16, rss_i, 8); min_t 447 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c rss_i = min_t(u16, rss_i, 16); min_t 453 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c rss_i = min_t(int, rss_i, f->limit); min_t 470 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f->indices = min_t(u16, rss_i, f->limit); min_t 510 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c rss_i = min_t(u16, rss_i, MAX_TX_QUEUES / vmdq_i); min_t 516 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c vmdq_i = min_t(u16, IXGBE_MAX_VMDQ_INDICES, vmdq_i); min_t 522 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c rss_i = min_t(u16, rss_i, 2); min_t 569 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c fcoe_i = min_t(u16, fcoe_i, fcoe->limit); min_t 577 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c fcoe_i = min_t(u16, fcoe_i + rss_i, num_online_cpus()); min_t 584 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c fcoe->indices = min_t(u16, fcoe_i, fcoe->limit); min_t 669 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c fcoe_i = min_t(u16, f->limit + rss_i, num_online_cpus()); min_t 670 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c fcoe_i = min_t(u16, fcoe_i, dev->num_tx_queues); min_t 677 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f->indices = min_t(u16, fcoe_i, f->limit); min_t 748 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c vectors = min_t(int, vectors, num_online_cpus()); min_t 759 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c vectors = min_t(int, vectors, hw->mac.max_msix_vectors); min_t 801 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c adapter->num_q_vectors = min_t(int, vectors, adapter->max_q_vectors); min_t 4889 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c return min_t(int, ret, 0); min_t 6268 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c rss = min_t(int, ixgbe_max_rss_indices(adapter), num_online_cpus()); min_t 6273 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c fdir = min_t(int, IXGBE_MAX_FDIR_INDICES, num_online_cpus()); min_t 8278 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c size = min_t(unsigned int, data_len, skb_frag_size(frag)); min_t 9705 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int rss = min_t(int, ixgbe_max_rss_indices(adapter), min_t 10116 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c reserved_pools = min_t(u16, min_t 10120 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c reserved_pools = min_t(u16, min_t 10993 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c fcoe_l = min_t(int, IXGBE_FCRETA_SIZE, num_online_cpus()); min_t 181 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c num_vfs = min_t(unsigned int, max_vfs, IXGBE_MAX_VFS_DRV_LIMIT); min_t 252 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c rss = min_t(int, ixgbe_max_rss_indices(adapter), min_t 255 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c rss = min_t(int, IXGBE_MAX_L2A_QUEUES, num_online_cpus()); min_t 252 drivers/net/ethernet/intel/ixgbevf/ethtool.c new_tx_count = min_t(u32, new_tx_count, IXGBEVF_MAX_TXD); min_t 256 drivers/net/ethernet/intel/ixgbevf/ethtool.c new_rx_count = min_t(u32, new_rx_count, IXGBEVF_MAX_RXD); min_t 2617 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c u16 rss = min_t(u16, num_online_cpus(), IXGBEVF_MAX_RSS_QUEUES); min_t 2655 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c v_budget = min_t(int, v_budget, num_online_cpus()); min_t 847 drivers/net/ethernet/marvell/mv643xx_eth.c data_left = min_t(int, skb_shinfo(skb)->gso_size, total_len); min_t 861 drivers/net/ethernet/marvell/mv643xx_eth.c size = min_t(int, tso.size, data_left); min_t 2314 drivers/net/ethernet/marvell/mvneta.c data_left = min_t(int, skb_shinfo(skb)->gso_size, total_len); min_t 2328 drivers/net/ethernet/marvell/mvneta.c size = min_t(int, tso.size, data_left); min_t 3167 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c int left = min_t(int, skb_shinfo(skb)->gso_size, len); min_t 3178 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c int sz = min_t(int, tso.size, left); min_t 5768 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c priv->nthreads = min_t(unsigned int, num_present_cpus(), min_t 5774 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c min_t(int, shared, MVPP2_MAX_THREADS)); min_t 924 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c num_entries = min_t(int, profile->cam_entries, max_entries); min_t 930 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c num_entries = min_t(int, profile->action_entries, max_entries); min_t 936 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c num_entries = min_t(int, profile->action_entries, profile->cam_entries); min_t 973 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c num_pkinds = min_t(int, pkind->rsrc.max, num_pkinds); min_t 981 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c num_kpus = min_t(int, hw->npc_kpus, num_kpus); min_t 836 drivers/net/ethernet/marvell/skge.c int n = min_t(int, length, sizeof(val)); min_t 863 drivers/net/ethernet/marvell/skge.c int n = min_t(int, length, sizeof(val)); min_t 1792 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c return min_t(int, num_online_cpus(), MAX_RX_RINGS); min_t 158 drivers/net/ethernet/mellanox/mlx4/en_main.c min_t(int, num_online_cpus(), MLX4_EN_MAX_TX_RING_P_UP); min_t 252 drivers/net/ethernet/mellanox/mlx4/en_rx.c min_t(int, min_t 257 drivers/net/ethernet/mellanox/mlx4/en_rx.c min_t(int, num_of_eqs, num_online_cpus()); min_t 481 drivers/net/ethernet/mellanox/mlx4/en_rx.c frag_size = min_t(int, length, frag_info->frag_size); min_t 2945 drivers/net/ethernet/mellanox/mlx4/main.c nreq = min_t(int, nreq, msi_x); min_t 731 drivers/net/ethernet/mellanox/mlx4/mr.c chunk = min_t(int, max_mtts_first_page, npages); min_t 741 drivers/net/ethernet/mellanox/mlx4/mr.c chunk = min_t(int, mtts_per_page, npages); min_t 765 drivers/net/ethernet/mellanox/mlx4/mr.c chunk = min_t(int, MLX4_MAILBOX_SIZE / sizeof(u64) - 2, min_t 1260 drivers/net/ethernet/mellanox/mlx4/port.c mtu = min_t(int, mtu, dev->caps.eth_mtu_cap[port] + min_t 1292 drivers/net/ethernet/mellanox/mlx4/port.c user_mtu = min_t(int, user_mtu, dev->caps.eth_mtu_cap[port]); min_t 130 drivers/net/ethernet/mellanox/mlx4/profile.c min_t(unsigned, dev_cap->max_eqs, MAX_MSIX); min_t 221 drivers/net/ethernet/mellanox/mlx4/profile.c min_t(unsigned, min_t 136 drivers/net/ethernet/mellanox/mlx5/core/alloc.c int frag_sz = min_t(int, size, PAGE_SIZE); min_t 170 drivers/net/ethernet/mellanox/mlx5/core/alloc.c int frag_sz = min_t(int, size, PAGE_SIZE); min_t 143 drivers/net/ethernet/mellanox/mlx5/core/cmd.c int blen = size - min_t(int, sizeof(msg->first.data), size); min_t 808 drivers/net/ethernet/mellanox/mlx5/core/cmd.c dump_len = min_t(int, MLX5_CMD_DATA_BLOCK_SIZE, msg->len - offset); min_t 1126 drivers/net/ethernet/mellanox/mlx5/core/cmd.c copy = min_t(int, size, sizeof(to->first.data)); min_t 1138 drivers/net/ethernet/mellanox/mlx5/core/cmd.c copy = min_t(int, size, MLX5_CMD_DATA_BLOCK_SIZE); min_t 1159 drivers/net/ethernet/mellanox/mlx5/core/cmd.c copy = min_t(int, size, sizeof(from->first.data)); min_t 1171 drivers/net/ethernet/mellanox/mlx5/core/cmd.c copy = min_t(int, size, MLX5_CMD_DATA_BLOCK_SIZE); min_t 117 drivers/net/ethernet/mellanox/mlx5/core/en.h #define MLX5E_PARAMS_MAXIMUM_LOG_RQ_SIZE min_t(u8, 0xd, \ min_t 178 drivers/net/ethernet/mellanox/mlx5/core/en.h return min_t(u16, MLX5E_PARAMS_DEFAULT_MIN_RX_WQES_MPW, min_t 181 drivers/net/ethernet/mellanox/mlx5/core/en.h return min_t(u16, MLX5E_PARAMS_DEFAULT_MIN_RX_WQES, min_t 191 drivers/net/ethernet/mellanox/mlx5/core/en.h min_t(int, mlx5_comp_vectors_count(mdev), MLX5E_MAX_NUM_CHANNELS); min_t 397 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c fsz = min_t(unsigned int, sq->hw_mtu, orig_fsz - frag_offset); min_t 102 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c table_size = min_t(u32, BIT(MLX5_CAP_FLOWTABLE(priv->mdev, min_t 2876 drivers/net/ethernet/mellanox/mlx5/core/en_main.c netdev->max_mtu = min_t(unsigned int, MLX5E_HW2SW_MTU(params, max_mtu), min_t 518 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c rpriv->neigh_update.min_interval = min_t(unsigned long, ipv6_interval, ipv4_interval); min_t 968 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c neigh_update->min_interval = min_t(unsigned long, min_t 93 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u32 ci_top = min_t(u32, wq_sz, ci + n); min_t 153 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c cqe_count = min_t(u32, cqd->left, budget_rem); min_t 1099 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u16 headlen = min_t(u32, MLX5E_RX_MAX_HEAD, cqe_bcnt); min_t 1118 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c min_t(u16, frag_info->frag_size - frag_headlen, byte_cnt); min_t 1240 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u16 headlen = min_t(u16, MLX5E_RX_MAX_HEAD, cqe_bcnt); min_t 1263 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c min_t(u32, PAGE_SIZE - frag_offset, byte_cnt); min_t 831 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c params.log_data_size = min_t(u8, params.log_data_size, min_t 838 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c params.log_num_packets = min_t(u8, params.log_num_packets, min_t 963 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c tc_grp_size = min_t(int, max_flow_counter, MLX5E_TC_TABLE_MAX_GROUP_SIZE); min_t 965 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c tc_tbl_size = min_t(int, tc_grp_size * MLX5E_TC_TABLE_NUM_GROUPS, min_t 134 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c return min_t(u16, hlen, skb_headlen(skb)); min_t 57 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h min_t(u32, max_t(u32, (rate) / (divider), MLX5_MIN_BW_SHARE), limit) min_t 108 drivers/net/ethernet/mellanox/mlx5/core/fpga/cmd.c read = min_t(unsigned int, cap_size, min_t 149 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c return min_t(int, MLX5_SW_MAX_COUNTERS_BULK, min_t 187 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c bulk_len = min_t(int, max_bulk_len, min_t 462 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c fc_stats->sampling_interval = min_t(unsigned long, interval, min_t 598 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c fc_pool->threshold = min_t(int, MLX5_FC_POOL_MAX_THRESHOLD, min_t 582 drivers/net/ethernet/mellanox/mlx5/core/fw.c *fsm_state_err = min_t(enum mlxfw_fsm_state_err, error_code, min_t 322 drivers/net/ethernet/mellanox/mlx5/core/lib/hv_vhca.c int bytes = min_t(int, (int)sizeof(data_block->data), len); min_t 273 drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c nvec = min_t(int, nvec, num_eqs); min_t 333 drivers/net/ethernet/mellanox/mlx5/core/port.c size = min_t(int, size, MLX5_EEPROM_MAX_BYTES); min_t 308 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c dmn->info.max_log_sw_icm_sz = min_t(u32, DR_CHUNK_SIZE_1024K, min_t 482 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_rule.c new_size = min_t(u32, new_size, dmn->info.max_log_sw_icm_sz); min_t 69 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c fsm_state_err = min_t(enum mlxfw_fsm_state_err, min_t 114 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c comp_max_size = min_t(u32, comp_max_size, MLXFW_FSM_MAX_COMPONENT_SIZE); min_t 145 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c block_size = (u16) min_t(u32, comp->data_size - offset, min_t 446 drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2.c dec_buf.out_size = min_t(size_t, size, off - curr_off); min_t 56 drivers/net/ethernet/mellanox/mlxsw/core_env.c size = min_t(u16, size, MLXSW_REG_MCIA_EEPROM_SIZE); min_t 579 drivers/net/ethernet/mellanox/mlxsw/i2c.c min_t(u16, quirks->max_read_len, min_t 202 drivers/net/ethernet/mellanox/mlxsw/spectrum.c *p_max_write_size = min_t(u16, *p_max_write_size, min_t 302 drivers/net/ethernet/mellanox/mlxsw/spectrum.c *fsm_state_err = min_t(enum mlxfw_fsm_state_err, error_code, min_t 2090 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c interval = min_t(unsigned long, min_t 62 drivers/net/ethernet/mscc/ocelot_police.c ipg = min_t(u8, GENMASK(4, 0), conf->ipg); min_t 147 drivers/net/ethernet/netronome/nfp/nfp_main.c out_length = min_t(u32, val, min(out_length, max_data_sz)); min_t 3845 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->dp.num_tx_rings = min_t(unsigned int, min_t 3847 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->dp.num_rx_rings = min_t(unsigned int, max_rx_rings, min_t 3851 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->dp.num_r_vecs = min_t(unsigned int, min_t 969 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c n = min_t(size_t, length - offset, min_t 1038 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c n = min_t(size_t, length - offset, min_t 168 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpplib.c incr = min_t(int, 16 * width_read, 128); min_t 169 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpplib.c incr = min_t(int, incr, len); min_t 221 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpplib.c incr = min_t(int, 16 * width_write, 128); min_t 222 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpplib.c incr = min_t(int, incr, len); min_t 530 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c chunks[i].len = min_t(u64, chunk_size, max_size - off); min_t 534 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c coff = min_t(u64, arg->in_size - off, chunk_size); min_t 594 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c len = min_t(u64, chunks[i].len, arg->out_size - off); min_t 649 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c chunk_order = min_t(unsigned int, dma_order, PAGE_SHIFT); min_t 923 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c size = min_t(u32, size, NFP_HWINFO_LOOKUP_SIZE); min_t 953 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c size = min_t(u32, size, NFP_HWINFO_LOOKUP_SIZE); min_t 1002 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c .option = min_t(u32, size, NFP_VERSIONS_SIZE), min_t 1005 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c .out_size = min_t(u32, size, NFP_VERSIONS_SIZE), min_t 1093 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c *read_len = min_t(unsigned int, len, le16_to_cpu(buf->readlen)); min_t 270 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c len = min_t(size_t, len, sym_size - off); min_t 364 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c len = min_t(size_t, len, sym_size - off); min_t 703 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c len = min_t(u32, sizeof(xcvr->sprom), ee->len); min_t 936 drivers/net/ethernet/qlogic/qed/qed_cxt.c u32 size = min_t(u32, total_size, psz); min_t 962 drivers/net/ethernet/qlogic/qed/qed_cxt.c u32 ent_num = min_t(u32, min_t 1056 drivers/net/ethernet/qlogic/qed/qed_cxt.c size = min_t(u32, sz_left, p_blk->real_size_in_page); min_t 2073 drivers/net/ethernet/qlogic/qed/qed_cxt.c num_srqs = min_t(u32, QED_RDMA_MAX_SRQS, p_params->num_srqs); min_t 2084 drivers/net/ethernet/qlogic/qed/qed_cxt.c num_cons = min_t(u32, IWARP_MAX_QPS, p_params->num_qps); min_t 2088 drivers/net/ethernet/qlogic/qed/qed_cxt.c num_qps = min_t(u32, ROCE_MAX_QPS, p_params->num_qps); min_t 1847 drivers/net/ethernet/qlogic/qed/qed_debug.c dev_data->num_pfs_per_port = min_t(u32, min_t 2646 drivers/net/ethernet/qlogic/qed/qed_debug.c u32 curr_len = min_t(u32, read_len, total_len - reg_offset); min_t 2657 drivers/net/ethernet/qlogic/qed/qed_debug.c curr_len = min_t(u32, skip_len, total_len - skip_len); min_t 3664 drivers/net/ethernet/qlogic/qed/qed_debug.c num_dwords_to_read = min_t(u32, min_t 1495 drivers/net/ethernet/qlogic/qed/qed_dev.c num_pf_rls = (u16) min_t(u32, RESC_NUM(p_hwfn, QED_RL), min_t 2566 drivers/net/ethernet/qlogic/qed/qed_dev.c cache_line_size = min_t(u32, L1_CACHE_BYTES, wr_mbs); min_t 3510 drivers/net/ethernet/qlogic/qed/qed_dev.c min_t(u32, sb_cnt.cnt / 2, min_t 3517 drivers/net/ethernet/qlogic/qed/qed_dev.c feat_num[QED_VF_L2_QUE] = min_t(u32, min_t 3520 drivers/net/ethernet/qlogic/qed/qed_dev.c feat_num[QED_PF_L2_QUE] = min_t(u32, min_t 3529 drivers/net/ethernet/qlogic/qed/qed_dev.c feat_num[QED_FCOE_CQ] = min_t(u32, sb_cnt.cnt, min_t 3534 drivers/net/ethernet/qlogic/qed/qed_dev.c feat_num[QED_ISCSI_CQ] = min_t(u32, sb_cnt.cnt, min_t 260 drivers/net/ethernet/qlogic/qed/qed_hw.c quota = min_t(size_t, n - done, min_t 98 drivers/net/ethernet/qlogic/qed/qed_iwarp.c dev->max_qp = min_t(u32, min_t 779 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.ord = (u8)min_t(u16, min_t 783 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->cm_info.ird = (u8)min_t(u16, min_t 1228 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->mss = min_t(u16, QED_IWARP_MAX_FW_MSS, ep->mss); min_t 2431 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ep->mss = min_t(u16, QED_IWARP_MAX_FW_MSS, ep->mss); min_t 2690 drivers/net/ethernet/qlogic/qed/qed_iwarp.c n_ooo_bufs = min_t(u32, n_ooo_bufs, QED_IWARP_LL2_OOO_MAX_RX_SIZE); min_t 512 drivers/net/ethernet/qlogic/qed/qed_l2.c table_size = min_t(int, QED_RSS_IND_TABLE_SIZE, min_t 2228 drivers/net/ethernet/qlogic/qed/qed_l2.c num_queues += min_t(u16, l2_queues, cids); min_t 2237 drivers/net/ethernet/qlogic/qed/qed_l2.c info->num_queues = (u8)min_t(u16, min_t 1389 drivers/net/ethernet/qlogic/qed/qed_ll2.c *p_tx_max = min_t(u8, *p_tx_max, min_t 859 drivers/net/ethernet/qlogic/qed/qed_main.c return min_t(int, cnt, limit); min_t 1076 drivers/net/ethernet/qlogic/qed/qed_main.c *num_cons = min_t(u16, *num_cons, QED_MAX_L2_CONS); min_t 1284 drivers/net/ethernet/qlogic/qed/qed_mcp.c size = min_t(u32, sizeof(*p_data), QED_SECTION_SIZE(mfw_path_offsize)); min_t 2815 drivers/net/ethernet/qlogic/qed/qed_mcp.c bytes_to_copy = min_t(u32, bytes_left, MCP_DRV_NVM_BUF_LEN); min_t 2891 drivers/net/ethernet/qlogic/qed/qed_mcp.c buf_size = min_t(u32, (len - buf_idx), MCP_DRV_NVM_BUF_LEN); min_t 2933 drivers/net/ethernet/qlogic/qed/qed_mcp.c buf_size = min_t(u32, (len - buf_idx), min_t 2961 drivers/net/ethernet/qlogic/qed/qed_mcp.c bytes_to_copy = min_t(u32, bytes_left, min_t 1229 drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c len = min_t(int, len, 4 * tlv.tlv_length); min_t 452 drivers/net/ethernet/qlogic/qed/qed_rdma.c dev->max_sge = min_t(u32, RDMA_MAX_SGE_PER_SQ_WQE, min_t 456 drivers/net/ethernet/qlogic/qed/qed_rdma.c dev->max_sge = min_t(u32, cdev->rdma_max_sge, dev->max_sge); min_t 460 drivers/net/ethernet/qlogic/qed/qed_rdma.c dev->max_srq_sge = min_t(u32, min_t 467 drivers/net/ethernet/qlogic/qed/qed_rdma.c min_t(u32, cdev->rdma_max_inline, dev->max_inline) : min_t 479 drivers/net/ethernet/qlogic/qed/qed_rdma.c num_qps = min_t(u64, num_qps, p_hwfn->p_rdma_info->num_qps); min_t 551 drivers/net/ethernet/qlogic/qed/qed_rdma.c port->max_msg_size = min_t(u64, min_t 906 drivers/net/ethernet/qlogic/qed/qed_rdma.c return min_t(int, n_cnq, n_msix); min_t 928 drivers/net/ethernet/qlogic/qed/qed_rdma.c return min_t(int, cnt, limit); min_t 1059 drivers/net/ethernet/qlogic/qed/qed_sriov.c num_irqs = min_t(u16, p_params->num_queues, ((u16)cids)); min_t 1422 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_resp->num_cids = min_t(u8, p_req->num_cids, num_vf_cons); min_t 1449 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_resp->num_cids = min_t(u8, p_resp->num_cids, min_t 1481 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_resp->num_mac_filters = min_t(u8, p_vf->num_mac_filters, min_t 1483 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_resp->num_vlan_filters = min_t(u8, p_vf->num_vlan_filters, min_t 1654 drivers/net/ethernet/qlogic/qed/qed_sriov.c pfdev_info->minor_fp_hsi = min_t(u8, ETH_HSI_VER_MINOR, min_t 2921 drivers/net/ethernet/qlogic/qed/qed_sriov.c table_size = min_t(u16, ARRAY_SIZE(p_rss->rss_ind_table), min_t 4545 drivers/net/ethernet/qlogic/qed/qed_sriov.c params.num_queues = min_t(int, min_t 4771 drivers/net/ethernet/qlogic/qed/qed_sriov.c rate = min_t(int, vf_info->tx_rate, link.speed); min_t 1192 drivers/net/ethernet/qlogic/qed/qed_vf.c table_size = min_t(int, T_ETH_INDIRECTION_TABLE_SIZE, min_t 1283 drivers/net/ethernet/qlogic/qede/qede_main.c rss_num = min_t(u16, QEDE_MAX_RSS_CNT(edev), rss_num); min_t 657 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c num_rings = rounddown_pow_of_two(min_t(int, num_online_cpus(), min_t 273 drivers/net/ethernet/qualcomm/qca_debug.c qca->txr.count = min_t(u16, qca->txr.count, TX_RING_MAX_LEN); min_t 1228 drivers/net/ethernet/rocker/rocker_main.c len = min_t(size_t, rocker_tlv_len(attr), name->len); min_t 742 drivers/net/ethernet/sfc/ef10.c efx->max_channels = min_t(unsigned int, min_t 356 drivers/net/ethernet/sfc/falcon/farch.c len = min_t(unsigned int, len, 512 - (dma_addr & 0xf)); min_t 379 drivers/net/ethernet/sfc/falcon/nic.c len += table->rows * min_t(size_t, table->step, 16); min_t 408 drivers/net/ethernet/sfc/falcon/nic.c size = min_t(size_t, table->step, 16); min_t 615 drivers/net/ethernet/sfc/falcon/rx.c u16 hdr_len = min_t(u16, rx_buf->len, EF4_SKB_HEADERS); min_t 2207 drivers/net/ethernet/sfc/mcdi.c loff_t end = min_t(loff_t, start + len, mtd->size); min_t 2212 drivers/net/ethernet/sfc/mcdi.c chunk = min_t(size_t, end - offset, EFX_MCDI_NVRAM_LEN_MAX); min_t 2230 drivers/net/ethernet/sfc/mcdi.c loff_t end = min_t(loff_t, start + len, mtd->size); min_t 2261 drivers/net/ethernet/sfc/mcdi.c loff_t end = min_t(loff_t, start + len, mtd->size); min_t 2273 drivers/net/ethernet/sfc/mcdi.c chunk = min_t(size_t, end - offset, EFX_MCDI_NVRAM_LEN_MAX); min_t 298 drivers/net/ethernet/sfc/mcdi.h min_t(size_t, MC_CMD_ ## _field ## _MAXNUM, \ min_t 386 drivers/net/ethernet/sfc/nic.c len += table->rows * min_t(size_t, table->step, 16); min_t 415 drivers/net/ethernet/sfc/nic.c size = min_t(size_t, table->step, 16); min_t 604 drivers/net/ethernet/sfc/rx.c u16 hdr_len = min_t(u16, rx_buf->len, EFX_SKB_HEADERS); min_t 966 drivers/net/ethernet/sfc/siena_sriov.c count = min_t(unsigned, vf->evq0_count - pos, min_t 230 drivers/net/ethernet/sfc/tx.c min_t(int, sizeof(copy_buf->buf) - copy_buf->used, len); min_t 3471 drivers/net/ethernet/sun/niu.c len = min_t(int, len, sizeof(*rh) + VLAN_ETH_HLEN); min_t 127 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->tx_ring_count = min_t(unsigned int, num_online_cpus(), min_t 129 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->tx_ring_count = min_t(unsigned int, pdata->tx_ring_count, min_t 138 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rx_ring_count = min_t(unsigned int, min_t 141 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rx_ring_count = min_t(unsigned int, pdata->rx_ring_count, min_t 556 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c len = min_t(unsigned int, datalen, XLGMAC_TX_MAX_BUF_SIZE); min_t 587 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c len = min_t(unsigned int, datalen, min_t 1204 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c q_count = min_t(unsigned int, pdata->tx_q_count, max_q_count); min_t 1236 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c q_count = min_t(unsigned int, pdata->tx_q_count, max_q_count); min_t 1549 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c prio_queues = min_t(unsigned int, IEEE_8021QAZ_MAX_TCS, min_t 1615 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c q_fifo_size = min_t(unsigned int, XLGMAC_MAX_FIFO, q_fifo_size); min_t 177 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c len -= min_t(unsigned int, len, XLGMAC_TX_MAX_BUF_SIZE); min_t 184 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c len -= min_t(unsigned int, len, XLGMAC_TX_MAX_BUF_SIZE); min_t 431 drivers/net/ethernet/xilinx/xilinx_emaclite.c length = min_t(u16, length, ETH_DATA_LEN); min_t 453 drivers/net/hamradio/baycom_epp.c i = min_t(int, cnt, bc->hdlctx.flags); min_t 476 drivers/net/hamradio/baycom_epp.c i = min_t(int, cnt, bc->hdlctx.bufcnt); min_t 490 drivers/net/hamradio/baycom_epp.c i = min_t(int, cnt, bc->hdlctx.flags); min_t 508 drivers/net/hamradio/baycom_epp.c i = min_t(int, cnt, bc->hdlctx.calibrate); min_t 1282 drivers/net/hippi/rrunner.c len = min_t(int, 0x80, rrpriv->tx_skbuff[index]->len); min_t 1293 drivers/net/hippi/rrunner.c len = min_t(int, 0x80, rrpriv->tx_skbuff[cons]->len); min_t 312 drivers/net/hyperv/netvsc.c buf_size = min_t(unsigned int, buf_size, min_t 1388 drivers/net/hyperv/rndis_filter.c num_possible_rss_qs = min_t(u32, num_online_cpus(), min_t 1391 drivers/net/hyperv/rndis_filter.c net_device->max_chn = min_t(u32, VRSS_CHANNEL_MAX, num_possible_rss_qs); min_t 1744 drivers/net/phy/sfp.c len = min_t(unsigned int, last, ETH_MODULE_SFF_8079_LEN); min_t 1755 drivers/net/phy/sfp.c len = min_t(unsigned int, last, ETH_MODULE_SFF_8472_LEN); min_t 999 drivers/net/ppp/pppoe.c total_len = min_t(size_t, total_len, skb->len); min_t 881 drivers/net/tap.c ret = min_t(ssize_t, ret, len); min_t 2261 drivers/net/tun.c ret = min_t(ssize_t, ret, len); min_t 156 drivers/net/usb/cdc_ncm.c max = min_t(u32, CDC_NCM_NTB_MAX_SIZE_RX, le32_to_cpu(ctx->ncm_parm.dwNtbInMaxSize)); min_t 179 drivers/net/usb/cdc_ncm.c max = min_t(u32, CDC_NCM_NTB_MAX_SIZE_TX, le32_to_cpu(ctx->ncm_parm.dwNtbOutMaxSize)); min_t 599 drivers/net/usb/cdc_ncm.c dev->net->mtu = min_t(int, dev->net->mtu, ctx->max_datagram_size - cdc_ncm_eth_hlen(dev)); min_t 661 drivers/net/usb/cdc_ncm.c def_rx = min_t(u32, CDC_NCM_NTB_DEF_SIZE_RX, min_t 663 drivers/net/usb/cdc_ncm.c def_tx = min_t(u32, CDC_NCM_NTB_DEF_SIZE_TX, min_t 62 drivers/net/usb/cx82310_eth.c memcpy(buf + 4, wdata, min_t(int, wlen, CMD_PACKET_SIZE - 4)); min_t 111 drivers/net/usb/cx82310_eth.c min_t(int, rlen, CMD_PACKET_SIZE - 4)); min_t 720 drivers/net/usb/sierra_net.c dev->rx_urb_size = min_t(size_t, 4096, SIERRA_NET_RX_URB_SIZE); min_t 880 drivers/net/vmxnet3/vmxnet3_drv.c ctx->copy_size = min_t(unsigned int, min_t 2801 drivers/net/vmxnet3/vmxnet3_drv.c ring0_size = min_t(u32, ring0_size, VMXNET3_RX_RING_MAX_SIZE / min_t 2805 drivers/net/vmxnet3/vmxnet3_drv.c ring1_size = min_t(u32, ring1_size, VMXNET3_RX_RING2_MAX_SIZE / min_t 569 drivers/net/vmxnet3/vmxnet3_ethtool.c new_tx_ring_size = min_t(u32, new_tx_ring_size, min_t 580 drivers/net/vmxnet3/vmxnet3_ethtool.c new_rx_ring_size = min_t(u32, new_rx_ring_size, min_t 589 drivers/net/vmxnet3/vmxnet3_ethtool.c new_rx_ring2_size = min_t(u32, new_rx_ring2_size, min_t 598 drivers/net/vmxnet3/vmxnet3_ethtool.c new_rxdata_desc_size = min_t(u16, new_rxdata_desc_size, min_t 242 drivers/net/wan/hdlc_ppp.c for (i = 0; i < min_t(unsigned int, magic_len + len, DEBUG_CP); i++) { min_t 477 drivers/net/wan/hdlc_ppp.c for (i = 0; i < min_t(unsigned int, len, DEBUG_CP); i++) { min_t 686 drivers/net/wan/sbni.c unsigned len = min_t(unsigned int, skb->len - nl->outpos, nl->framelen); min_t 786 drivers/net/wan/sbni.c nl->framelen = min_t(unsigned int, min_t 178 drivers/net/wireless/ath/ath10k/bmi.c rxlen = min_t(u32, length, BMI_MAX_DATA_SIZE); min_t 1552 drivers/net/wireless/ath/ath10k/core.c min_t(u32, board_data_size, min_t 1590 drivers/net/wireless/ath/ath10k/core.c min_t(u32, eboard_data_size, data_len)); min_t 494 drivers/net/wireless/ath/ath10k/htc.c min_t(int, skb->len, min_t 653 drivers/net/wireless/ath/ath10k/htc.c min_t(u8, msg->ready_ext.max_msgs_per_htc_bundle, min_t 1208 drivers/net/wireless/ath/ath10k/htt_tx.c min_t(int, msdu->len, HTT_MGMT_FRM_HDR_DOWNLOAD_LEN)); min_t 670 drivers/net/wireless/ath/ath10k/hw.c slottime = min_t(u32, slottime, WAVE1_PCU_GBL_IFS_SLOT_MAX); min_t 677 drivers/net/wireless/ath/ath10k/hw.c ack_timeout = min_t(u32, ack_timeout, WAVE1_PCU_ACK_CTS_TIMEOUT_MAX); min_t 683 drivers/net/wireless/ath/ath10k/hw.c cts_timeout = min_t(u32, cts_timeout, WAVE1_PCU_ACK_CTS_TIMEOUT_MAX); min_t 6025 drivers/net/wireless/ath/ath10k/mac.c scan_timeout = min_t(u32, arg.max_rest_time * min_t 924 drivers/net/wireless/ath/ath10k/pci.c alloc_nbytes = min_t(unsigned int, nbytes, DIAG_TRANSFER_LIMIT); min_t 945 drivers/net/wireless/ath/ath10k/pci.c nbytes = min_t(unsigned int, remaining_bytes, min_t 1068 drivers/net/wireless/ath/ath10k/pci.c alloc_nbytes = min_t(unsigned int, nbytes, DIAG_TRANSFER_LIMIT); min_t 1092 drivers/net/wireless/ath/ath10k/pci.c nbytes = min_t(int, remaining_bytes, DIAG_TRANSFER_LIMIT); min_t 22 drivers/net/wireless/ath/ath10k/trace.h return min_t(u32, len, ieee80211_hdrlen(hdr->frame_control)); min_t 2901 drivers/net/wireless/ath/ath10k/wmi-tlv.c buf_len = min_t(u32, buf_len, WMI_TLV_MGMT_TX_FRAME_MAX_LEN); min_t 3666 drivers/net/wireless/ath/ath10k/wmi-tlv.c len += sizeof(u32) * min_t(u8, pno->a_networks[0].channel_count, min_t 3669 drivers/net/wireless/ath/ath10k/wmi-tlv.c min_t(u8, pno->uc_networks_count, WMI_NLO_MAX_SSIDS); min_t 3709 drivers/net/wireless/ath/ath10k/wmi-tlv.c cmd->no_of_ssids = __cpu_to_le32(min_t(u8, pno->uc_networks_count, min_t 3749 drivers/net/wireless/ath/ath10k/wmi-tlv.c cmd->num_of_channels = __cpu_to_le32(min_t(u8, min_t 4595 drivers/net/wireless/ath/ath10k/wmi.c tpc = min_t(u8, ev->rates_array[rate_idx], ev->max_reg_allow_pow[ch]); min_t 4609 drivers/net/wireless/ath/ath10k/wmi.c tpc = min_t(u8, tpc, min_t 4613 drivers/net/wireless/ath/ath10k/wmi.c tpc = min_t(u8, tpc, min_t 4617 drivers/net/wireless/ath/ath10k/wmi.c tpc = min_t(u8, tpc, min_t 4928 drivers/net/wireless/ath/ath10k/wmi.c tpc = min_t(u8, ev->rates_array[rate_idx], min_t 4931 drivers/net/wireless/ath/ath10k/wmi.c tpc = min_t(u8, min_t(u8, ev->rates_array[rate_idx], min_t 4948 drivers/net/wireless/ath/ath10k/wmi.c tpc = min_t(u8, tpc, pow_agstbc); min_t 4950 drivers/net/wireless/ath/ath10k/wmi.c tpc = min_t(u8, min_t(u8, tpc, pow_agstbc), min_t 4956 drivers/net/wireless/ath/ath10k/wmi.c tpc = min_t(u8, tpc, pow_agtxbf); min_t 4958 drivers/net/wireless/ath/ath10k/wmi.c tpc = min_t(u8, min_t(u8, tpc, pow_agtxbf), min_t 4964 drivers/net/wireless/ath/ath10k/wmi.c tpc = min_t(u8, tpc, pow_agcdd); min_t 4966 drivers/net/wireless/ath/ath10k/wmi.c tpc = min_t(u8, min_t(u8, tpc, pow_agcdd), min_t 5358 drivers/net/wireless/ath/ath10k/wmi.c n = min_t(size_t, __le32_to_cpu(arg->num_mem_reqs), min_t 5396 drivers/net/wireless/ath/ath10k/wmi.c n = min_t(size_t, __le32_to_cpu(arg->num_mem_reqs), min_t 1679 drivers/net/wireless/ath/ath5k/base.c size = min_t(int, sizeof(info->status.rates), sizeof(bf->rates)); min_t 249 drivers/net/wireless/ath/ath5k/debug.c count = min_t(size_t, count, sizeof(buf) - 1); min_t 351 drivers/net/wireless/ath/ath5k/debug.c count = min_t(size_t, count, sizeof(buf) - 1); min_t 456 drivers/net/wireless/ath/ath5k/debug.c count = min_t(size_t, count, sizeof(buf) - 1); min_t 629 drivers/net/wireless/ath/ath5k/debug.c count = min_t(size_t, count, sizeof(buf) - 1); min_t 778 drivers/net/wireless/ath/ath5k/debug.c count = min_t(size_t, count, sizeof(buf) - 1); min_t 876 drivers/net/wireless/ath/ath5k/debug.c count = min_t(size_t, count, sizeof(buf) - 1); min_t 1045 drivers/net/wireless/ath/ath6kl/htc_pipe.c target->pipe.ctrl_response_len = min_t(int, netlen, min_t 1126 drivers/net/wireless/ath/ath6kl/init.c ar->vif_max = min_t(unsigned int, le32_to_cpup(val), min_t 860 drivers/net/wireless/ath/ath9k/ar9003_paprd.c quick_drop_offset = min_t(int, count / 3, 2); min_t 431 drivers/net/wireless/ath/ath9k/eeprom.c return min_t(u16, power_limit, MAX_RATE_POWER); min_t 427 drivers/net/wireless/ath/ath9k/eeprom_4k.c scaledPower = min_t(u16, scaledPower, MAX_RATE_POWER); min_t 330 drivers/net/wireless/ath/ath9k/hif_usb.c tx_skb_cnt = min_t(u16, hif_dev->tx.tx_skb_cnt, MAX_TX_AGGR_NUM); min_t 1028 drivers/net/wireless/ath/ath9k/hif_usb.c transfer = min_t(size_t, len, 4096); min_t 2969 drivers/net/wireless/ath/ath9k/hw.c chan_pwr = min_t(int, channel->max_power * 2, MAX_COMBINED_POWER); min_t 2970 drivers/net/wireless/ath/ath9k/hw.c new_pwr = min_t(int, chan_pwr, reg->power_limit); min_t 2982 drivers/net/wireless/ath/ath9k/hw.c reg->power_limit = min_t(u32, limit, MAX_COMBINED_POWER); min_t 1182 drivers/net/wireless/ath/ath9k/xmit.c max_power = min_t(u8, ah->tx_power[rateidx], txpower); min_t 1192 drivers/net/wireless/ath/ath9k/xmit.c max_power = min_t(u8, ah->tx_power_stbc[rateidx], min_t 1195 drivers/net/wireless/ath/ath9k/xmit.c max_power = min_t(u8, ah->tx_power[rateidx], min_t 49 drivers/net/wireless/ath/carl9170/fw.c max_len = min_t(unsigned int, CARL9170FW_DESC_MAX_LENGTH, max_len); min_t 162 drivers/net/wireless/ath/carl9170/fw.c dsc_len = min_t(unsigned int, len, min_t 319 drivers/net/wireless/ath/carl9170/fw.c ar->fw.mem_blocks = min_t(unsigned int, otus_desc->tx_descs, 0xfe); min_t 398 drivers/net/wireless/ath/carl9170/mac.c u32 tmp = min_t(u32, 0x33333, max_retry * 0x11111); min_t 525 drivers/net/wireless/ath/carl9170/mac.c power = min_t(unsigned int, power, ar->hw->conf.power_level * 2); min_t 1248 drivers/net/wireless/ath/carl9170/main.c min_t(u8, 16, key->keylen)); min_t 1569 drivers/net/wireless/ath/carl9170/main.c transfer = min_t(unsigned int, count, RW); min_t 762 drivers/net/wireless/ath/carl9170/tx.c *tpc = min_t(unsigned int, *tpc, ar->hw->conf.power_level * 2); min_t 1046 drivers/net/wireless/ath/carl9170/tx.c factor = min_t(unsigned int, 1u, sta->ht_cap.ampdu_factor); min_t 825 drivers/net/wireless/ath/carl9170/usb.c transfer = min_t(unsigned int, len, 4096u); min_t 667 drivers/net/wireless/ath/wcn36xx/smd.c msg_body->num_ssid = min_t(u8, req->n_ssids, ARRAY_SIZE(msg_body->ssids)); min_t 669 drivers/net/wireless/ath/wcn36xx/smd.c msg_body->ssids[i].length = min_t(u8, req->ssids[i].ssid_len, min_t 675 drivers/net/wireless/ath/wcn36xx/smd.c msg_body->num_channel = min_t(u8, req->n_channels, min_t 1057 drivers/net/wireless/ath/wil6210/cfg80211.c n = min_t(int, c->n_ciphers_pairwise, ARRAY_SIZE(c->ciphers_pairwise)); min_t 1063 drivers/net/wireless/ath/wil6210/cfg80211.c n = min_t(int, c->n_akm_suites, ARRAY_SIZE(c->akm_suites)); min_t 1341 drivers/net/wireless/ath/wil6210/cfg80211.c conn.ssid_len = min_t(u8, ssid_eid[1], 32); min_t 1525 drivers/net/wireless/ath/wil6210/debugfs.c n = min_t(int, n, sizeof(buf)); min_t 2079 drivers/net/wireless/ath/wil6210/debugfs.c n = min_t(int, n, sizeof(buf)); min_t 2276 drivers/net/wireless/ath/wil6210/debugfs.c n = min_t(int, n, text_size); min_t 148 drivers/net/wireless/ath/wil6210/fw_inc.c min_t(size_t, sizeof(wil->fw_capabilities), capa_size)); min_t 299 drivers/net/wireless/ath/wil6210/rx_reorder.c u16 max_agg_size = min_t(u16, wil->max_agg_wsize, wil->max_ampdu_size / min_t 361 drivers/net/wireless/ath/wil6210/rx_reorder.c agg_wsize = min_t(u16, wil->max_agg_wsize, req_agg_wsize); min_t 1867 drivers/net/wireless/ath/wil6210/txrx.c lenmss = min_t(int, rem_data, len); min_t 2409 drivers/net/wireless/ath/wil6210/txrx.c bin = min_t(int, bin, WIL_NUM_LATENCY_BINS - 1); min_t 1084 drivers/net/wireless/ath/wil6210/wil6210.h #define GET_MAX_VIFS(wil) min_t(int, (wil)->max_vifs, WIL_MAX_VIFS) min_t 816 drivers/net/wireless/ath/wil6210/wmi.c wil->max_assoc_sta = min_t(uint, max_assoc_sta, fw_max_assoc_sta); min_t 3464 drivers/net/wireless/ath/wil6210/wmi.c min_t(u8, wmi_match->ssid_len, WMI_MAX_SSID_LEN)); min_t 439 drivers/net/wireless/atmel/at76c50x-usb.c bsize = min_t(int, size, FW_BLOCK_SIZE); min_t 1283 drivers/net/wireless/atmel/at76c50x-usb.c bsize = min_t(int, size, FW_BLOCK_SIZE); min_t 1633 drivers/net/wireless/broadcom/b43/main.c len = min_t(size_t, beacon_skb->len, min_t 3953 drivers/net/wireless/broadcom/b43/main.c interval = min_t(u16, interval, (u16)0xFF); min_t 697 drivers/net/wireless/broadcom/b43/phy_lp.c rc_cap = min_t(u8, rc_cap + 5, 15); min_t 3235 drivers/net/wireless/broadcom/b43/phy_n.c vmid = vmids[min_t(u16, pdet_range, 4)]; min_t 3236 drivers/net/wireless/broadcom/b43/phy_n.c gain = gains[min_t(u16, pdet_range, 4)]; min_t 5899 drivers/net/wireless/broadcom/b43/phy_n.c max = min_t(u8, max, INT_TO_Q52(phy->desired_txpower)); min_t 30 drivers/net/wireless/broadcom/b43/sysfs.c count = min_t(size_t, count, 10); min_t 335 drivers/net/wireless/broadcom/b43/xmit.c iv_len = min_t(size_t, info->control.hw_key->iv_len, min_t 953 drivers/net/wireless/broadcom/b43legacy/main.c len = min_t(size_t, dev->wl->current_beacon->len, min_t 1130 drivers/net/wireless/broadcom/b43legacy/main.c size = min_t(size_t, size, min_t 32 drivers/net/wireless/broadcom/b43legacy/sysfs.c count = min_t(size_t, count, 10); min_t 244 drivers/net/wireless/broadcom/b43legacy/xmit.c iv_len = min_t(size_t, info->control.hw_key->iv_len, min_t 425 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c max_seg_cnt = min_t(unsigned short, sdiodev->max_segment_count, min_t 672 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c dsize = min_t(uint, SBSDIO_SB_OFT_ADDR_LIMIT, size); min_t 728 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c dsize = min_t(uint, SBSDIO_SB_OFT_ADDR_LIMIT, size); min_t 761 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c max_blocks = min_t(uint, host->max_blk_count, 511u); min_t 762 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c sdiodev->max_request_size = min_t(uint, host->max_req_size, min_t 764 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c sdiodev->max_segment_count = min_t(uint, host->max_segs, min_t 1412 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ssid_len = min_t(u32, params->ssid_len, IEEE80211_MAX_SSID_LEN); min_t 2020 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ssid_len = min_t(u32, sme->ssid_len, IEEE80211_MAX_SSID_LEN); min_t 160 drivers/net/wireless/broadcom/brcm80211/brcmfmac/commonring.c *alloced = min_t(u16, n_items, available - 1); min_t 249 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c min_t(u32, emsg.datalen, 64), min_t 107 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c len = min_t(uint, len, BRCMF_DCMD_MAXLEN); min_t 137 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); min_t 155 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); min_t 225 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); min_t 265 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); min_t 349 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); min_t 389 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c min_t(uint, len, MAX_HEX_DUMP_LEN), "data\n"); min_t 456 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c buf_len = min_t(u16, len, BRCMF_TX_IOCTL_MAX_MSG_SIZE); min_t 134 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c mscan = min_t(u32, mscan, pfnmem); min_t 1606 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c pfirst->data, min_t(int, pfirst->len, 48), min_t 1672 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c min_t(int, pfirst->len, 32), min_t 2312 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c pkt_num = min_t(u8, bus->tx_max - bus->tx_seq, min_t 2314 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c pkt_num = min_t(u32, pkt_num, min_t 2407 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c frame, min_t(u16, len, 16), "TxHdr:\n"); min_t 301 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c scb_ampdu->release = min_t(u8, scb_ampdu->max_pdu, min_t 305 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c scb_ampdu->release = min_t(u8, scb_ampdu->release, min_t 327 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c max_mpdu = min_t(u8, fifo->mcs2ampdu_table[FFPLD_MAX_MCS], min_t 344 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c tmp = min_t(u32, tmp, 255); min_t 418 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c max_mpdu = min_t(u8, fifo->mcs2ampdu_table[FFPLD_MAX_MCS], min_t 605 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c min_t(u16, f->mcs2ampdu_table[mcs], min_t 954 drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c pkt_len = min_t(uint, resid, di->rxbufsize); min_t 3803 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c u8 len = min_t(u8, sizeof(wlc->bsscfg->SSID), ssid_len); min_t 7303 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c len = min_t(size_t, beacon->len, BCN_TMPL_LEN); min_t 7476 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c len = min_t(size_t, probe_resp->len, BCN_TMPL_LEN); min_t 7633 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c qdbm = min_t(uint, txpwr * BRCMS_TXPWR_DB_FACTOR, 0xff); min_t 24675 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c phy_a2 = min_t(u32, NPHY_PAPD_EPS_TBL_SIZE - 1, min_t 27461 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c rxlpf_rccal_hpc = max(min_t(u8, rxlpf_rccal_hpc, 31), min_t 27463 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c txlpf_rccal_lpc = max(min_t(u8, txlpf_rccal_lpc, 31), min_t 27643 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c curr_hpf = max(min_t(u16, curr_hpf, 10), 0); min_t 5173 drivers/net/wireless/cisco/airo.c int klen = min_t(int, buflen, le16_to_cpu(wkr.klen)); min_t 2491 drivers/net/wireless/intel/ipw2x00/ipw2100.c min_t(u32, status->frame_size, min_t 7041 drivers/net/wireless/intel/ipw2x00/ipw2100.c wrqu->data.length = min_t(size_t, wrqu->data.length, sizeof(priv->nick)); min_t 279 drivers/net/wireless/intel/ipw2x00/ipw2200.c min_t(size_t, len, 16U), ofs); min_t 284 drivers/net/wireless/intel/ipw2x00/ipw2200.c len -= min_t(size_t, len, 16U); min_t 2930 drivers/net/wireless/intel/ipw2x00/ipw2200.c size = min_t(u32, len - i * CB_MAX_LENGTH, CB_MAX_LENGTH); min_t 3243 drivers/net/wireless/intel/ipw2x00/ipw2200.c size = min_t(u32, chunk_len - i * CB_MAX_LENGTH, min_t 9051 drivers/net/wireless/intel/ipw2x00/ipw2200.c wrqu->data.length = min_t(size_t, wrqu->data.length, sizeof(priv->nick)); min_t 689 drivers/net/wireless/intel/iwlwifi/dvm/tx.c buf_size = min_t(int, buf_size, LINK_QUAL_AGG_FRAME_LIMIT_DEF); min_t 652 drivers/net/wireless/intel/iwlwifi/fw/dbg.c alloc_size = min_t(int, size, PAGE_SIZE); min_t 1684 drivers/net/wireless/intel/iwlwifi/fw/dbg.c header->name_len = cpu_to_le32(min_t(int, IWL_FW_INI_MAX_NAME, min_t 3640 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c delay = min_t(u32, dtim_interval * 3, AUX_ROC_MAX_DELAY); min_t 1551 drivers/net/wireless/intel/iwlwifi/mvm/rs.c mvmsta->max_amsdu_len = min_t(int, sta->max_amsdu_len, 8500); min_t 354 drivers/net/wireless/intel/iwlwifi/mvm/scan.c duration = min_t(u32, duration, hb_time); min_t 365 drivers/net/wireless/intel/iwlwifi/mvm/scan.c return min_t(u32, (u32)req->duration, duration); min_t 811 drivers/net/wireless/intel/iwlwifi/mvm/tx.c return min_t(unsigned int, mvmsta->max_amsdu_len, min_t 937 drivers/net/wireless/intel/iwlwifi/mvm/tx.c min_t(unsigned int, sta->max_amsdu_len, min_t 947 drivers/net/wireless/intel/iwlwifi/mvm/tx.c max_amsdu_len = min_t(unsigned int, max_amsdu_len, 4095); min_t 732 drivers/net/wireless/intel/iwlwifi/pcie/trans.c u32 offset, chunk_sz = min_t(u32, FH_MEM_TB_MAX_LENGTH, section->len); min_t 753 drivers/net/wireless/intel/iwlwifi/pcie/trans.c copy_size = min_t(u32, chunk_sz, section->len - offset); min_t 1642 drivers/net/wireless/intel/iwlwifi/pcie/trans.c max_irqs = min_t(u32, num_online_cpus() + 2, IWL_MAX_RX_HW_QUEUES); min_t 3317 drivers/net/wireless/intel/iwlwifi/pcie/trans.c caplen = min_t(u32, TFD_MAX_PAYLOAD_SIZE, cmdlen); min_t 300 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c unsigned int data_left = min_t(unsigned int, mss, total_len); min_t 346 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c tb_len = min_t(unsigned int, tso.size, data_left); min_t 836 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c copy = min_t(int, TFD_MAX_PAYLOAD_SIZE - cmd_pos, cmd->len[i]); min_t 858 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c tb0_size = min_t(int, copy_size, IWL_FIRST_TB_SIZE); min_t 1693 drivers/net/wireless/intel/iwlwifi/pcie/tx.c copy = min_t(int, TFD_MAX_PAYLOAD_SIZE - cmd_pos, cmd->len[i]); min_t 1716 drivers/net/wireless/intel/iwlwifi/pcie/tx.c tb0_size = min_t(int, copy_size, IWL_FIRST_TB_SIZE); min_t 2165 drivers/net/wireless/intel/iwlwifi/pcie/tx.c min_t(unsigned int, mss, total_len); min_t 2235 drivers/net/wireless/intel/iwlwifi/pcie/tx.c unsigned int size = min_t(unsigned int, tso.size, min_t 1294 drivers/net/wireless/intersil/orinoco/wext.c data->length = min_t(u16, HERMES_RECLEN_TO_BYTES(length), min_t 675 drivers/net/wireless/intersil/p54/fwio.c rxkey->key_len = min_t(u8, 16, len); min_t 228 drivers/net/wireless/intersil/p54/p54spi.c _fw_len = min_t(long, fw_len, SPI_MAX_PACKET_SIZE); min_t 516 drivers/net/wireless/intersil/p54/p54usb.c left = block_size = min_t(size_t, P54U_FW_BLOCK, priv->fw->size); min_t 854 drivers/net/wireless/intersil/p54/txrx.c calculated_tries[i] = min_t(int, ((15 >> nrates) | 1) + 1, min_t 867 drivers/net/wireless/intersil/p54/txrx.c tmp = min_t(int, tmp, nremaining); min_t 647 drivers/net/wireless/intersil/prism54/isl_ioctl.c iwe.u.data.length = min_t(size_t, wpa_ie_len, MAX_WPA_IE_LEN); min_t 473 drivers/net/wireless/marvell/libertas/if_sdio.c chunk_size = min_t(size_t, size, 60); min_t 611 drivers/net/wireless/marvell/libertas/if_sdio.c chunk_size = min_t(size_t, req_size, 512); min_t 85 drivers/net/wireless/marvell/libertas/rx.c min_t(unsigned int, skb->len, 100)); min_t 108 drivers/net/wireless/marvell/libertas/tx.c lbs_deb_hex(LBS_DEB_TX, "TX Data", skb->data, min_t(unsigned int, skb->len, 100)); min_t 240 drivers/net/wireless/marvell/libertas_tf/main.c lbtf_deb_hex(LBTF_DEB_TX, "TX Data", skb->data, min_t(unsigned int, skb->len, 100)); min_t 535 drivers/net/wireless/marvell/libertas_tf/main.c min_t(unsigned int, skb->len, 100)); min_t 226 drivers/net/wireless/marvell/mwifiex/11ac.c min_t(u8, IEEE80211_VHT_CHANWIDTH_80MHZ, min_t 231 drivers/net/wireless/marvell/mwifiex/11ac.c min_t(u8, IEEE80211_VHT_CHANWIDTH_160MHZ, min_t 236 drivers/net/wireless/marvell/mwifiex/11ac.c min_t(u8, IEEE80211_VHT_CHANWIDTH_80P80MHZ, min_t 2618 drivers/net/wireless/marvell/mwifiex/cfg80211.c for (i = 0; i < min_t(u32, request->n_channels, min_t 2716 drivers/net/wireless/marvell/mwifiex/cfg80211.c for (i = 0; i < min_t(u32, request->n_channels, min_t 2732 drivers/net/wireless/marvell/mwifiex/cfg80211.c bgscan_cfg->chan_per_scan = min_t(u32, request->n_channels, min_t 844 drivers/net/wireless/marvell/mwifiex/cmdevt.c size = min_t(u16, size, MWIFIEX_SIZE_OF_CMD_BUFFER); min_t 577 drivers/net/wireless/marvell/mwifiex/debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) min_t 886 drivers/net/wireless/marvell/mwifiex/debugfs.c if (copy_from_user(&kbuf, ubuf, min_t(size_t, sizeof(kbuf) - 1, count))) min_t 225 drivers/net/wireless/marvell/mwifiex/join.c min_t(size_t, strlen(out_rates), MWIFIEX_SUPPORTED_RATES); min_t 1779 drivers/net/wireless/marvell/mwifiex/pcie.c min_t(u32, MWIFIEX_SIZE_OF_CMD_BUFFER, skb->len)); min_t 1249 drivers/net/wireless/marvell/mwifiex/sdio.c min_t(u32, MWIFIEX_SIZE_OF_CMD_BUFFER, min_t 988 drivers/net/wireless/marvell/mwifiex/sta_event.c min_t(u16, adapter->curr_tx_buf_size, ctrl); min_t 127 drivers/net/wireless/marvell/mwifiex/tdls.c supp_rates_size = min_t(u16, rates_size, MWIFIEX_TDLS_SUPPORTED_RATES); min_t 288 drivers/net/wireless/marvell/mwifiex/tdls.c supp_chwd_set = min_t(u8, supp_chwd_set, peer_supp_chwd_set); min_t 296 drivers/net/wireless/marvell/mwifiex/tdls.c supp_chwd_set = min_t(u8, supp_chwd_set, ap_supp_chwd_set); min_t 328 drivers/net/wireless/marvell/mwifiex/tdls.c min_t(u16, mcs_user, mcs_resp)); min_t 1002 drivers/net/wireless/marvell/mwifiex/tdls.c min_t(u8, ie_len, 8)); min_t 1012 drivers/net/wireless/marvell/mwifiex/tdls.c min_t(u8, ie_len, IEEE_MAX_IE_SIZE - min_t 60 drivers/net/wireless/marvell/mwifiex/txrx.c min_t(size_t, skb->len, DEBUG_DUMP_DATA_MAX_LEN)); min_t 128 drivers/net/wireless/marvell/mwifiex/txrx.c min_t(size_t, skb->len, DEBUG_DUMP_DATA_MAX_LEN)); min_t 218 drivers/net/wireless/marvell/mwifiex/uap_event.c min_t(u16, adapter->curr_tx_buf_size, ctrl); min_t 1211 drivers/net/wireless/marvell/mwifiex/wmm.c max_amsdu_size = min_t(int, ptr->max_amsdu, max_buf_size); min_t 504 drivers/net/wireless/mediatek/mt76/mt7603/init.c chan->max_power = min_t(int, chan->max_reg_power, target_power); min_t 1029 drivers/net/wireless/mediatek/mt76/mt7603/mac.c cur_count = min_t(int, MT7603_RATE_RETRY, count); min_t 128 drivers/net/wireless/mediatek/mt76/mt7603/mcu.c cur_len = min_t(int, 4096 - sizeof(struct mt7603_mcu_txd), min_t 216 drivers/net/wireless/mediatek/mt76/mt7615/init.c chan->max_power = min_t(int, chan->max_reg_power, min_t 911 drivers/net/wireless/mediatek/mt76/mt7615/mac.c cur_count = min_t(int, MT7615_RATE_RETRY, count); min_t 260 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c cur_len = min_t(int, 4096 - sizeof(struct mt7615_mcu_txd), min_t 1206 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c data[index] = min_t(u8, data[index], tx_power); min_t 275 drivers/net/wireless/mediatek/mt76/mt76x0/init.c chan->max_power = min_t(int, chan->max_reg_power, min_t 818 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c ret = min_t(int, 31, ret); min_t 1191 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c min_t(u8, dev->cal.rx.freq_offset, 0xbf)); min_t 392 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c ba_size = min_t(int, 63, ba_size - 1); min_t 632 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c status->nss = min_t(u8, n_rxstream, min_t 1059 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c busy = min_t(u32, busy, 100); min_t 99 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c txpwr = min_t(s8, txpwr, dev->mt76.txpower_conf); min_t 101 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c txpwr = min_t(s8, txpwr, max_txpwr_adj); min_t 106 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c return min_t(s8, txpwr, 7); min_t 275 drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.c len = min_t(int, data_len, max_len); min_t 171 drivers/net/wireless/mediatek/mt76/mt76x2/init.c chan->max_power = min_t(int, chan->max_reg_power, min_t 475 drivers/net/wireless/mediatek/mt76/usb.c data_len = min_t(int, len, data_len - MT_DMA_HDR_LEN); min_t 482 drivers/net/wireless/mediatek/mt76/usb.c data_len = min_t(int, len, urb->sg[nsgs].length); min_t 73 drivers/net/wireless/mediatek/mt7601u/mac.c last_rate = min_t(int, st->retry, IEEE80211_TX_MAX_RATES - 1); min_t 167 drivers/net/wireless/mediatek/mt7601u/tx.c ba_size = min_t(int, 63, ba_size); min_t 2322 drivers/net/wireless/ralink/rt2x00/rt2800lib.c freq_offset = min_t(u8, freq_offset, FREQ_OFFSET_BOUND); min_t 4594 drivers/net/wireless/ralink/rt2x00/rt2800lib.c return min_t(u8, txpower, 0xc); min_t 4597 drivers/net/wireless/ralink/rt2x00/rt2800lib.c return min_t(u8, txpower, 0xf); min_t 4631 drivers/net/wireless/ralink/rt2x00/rt2800lib.c return min_t(u8, txpower, 0xc); min_t 261 drivers/net/wireless/ralink/rt2x00/rt2x00debug.c status = min_t(size_t, skb->len, length); min_t 126 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c bsize = min_t(u16, CSR_CACHE_SIZE, len); min_t 1004 drivers/net/wireless/ralink/rt2x00/rt73usb.c min_t(u8, qual->vgc_level + 4, up_bound)); min_t 331 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.h memset(__pdesc, 0, min_t(size_t, _size, TX_DESC_NEXT_DESC_OFFSET)); min_t 508 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.h min_t(size_t, _size, TX_DESC_NEXT_DESC_OFFSET)) min_t 222 drivers/net/wireless/realtek/rtlwifi/rtl8192se/def.h memset(__pdesc, 0, min_t(size_t, _size, TX_DESC_NEXT_DESC_OFFSET)) min_t 559 drivers/net/wireless/realtek/rtw88/debug.c min_t(s8, pwr_param.pwr_offset, min_t 209 drivers/net/wireless/realtek/rtw88/phy.c iter_data->min_rssi = min_t(u8, rssi, iter_data->min_rssi); min_t 327 drivers/net/wireless/realtek/rtw88/phy.c dig_max = min_t(u8, dig_max, min_rssi + DIG_RSSI_GAIN_OFFSET); min_t 1284 drivers/net/wireless/realtek/rtw88/phy.c ww = min_t(s8, ww, pwr_limit); min_t 1289 drivers/net/wireless/realtek/rtw88/phy.c ww = min_t(s8, ww, pwr_limit); min_t 1711 drivers/net/wireless/realtek/rtw88/phy.c bw = min_t(u8, bw, RTW_CHANNEL_WIDTH_40); min_t 1725 drivers/net/wireless/realtek/rtw88/phy.c power_limit = min_t(s8, cur_lmt, power_limit); min_t 1780 drivers/net/wireless/realtek/rtw88/phy.c offset = min_t(s8, pwr_param.pwr_offset, pwr_param.pwr_limit); min_t 366 drivers/net/wireless/rsi/rsi_91x_usb.c transfer = min_t(u16, count, RSI_USB_BUF_SIZE); min_t 413 drivers/net/wireless/rsi/rsi_91x_usb.c transfer = min_t(u16, count, RSI_USB_BUF_SIZE); min_t 208 drivers/net/wireless/st/cw1200/fwio.c tx_size = block_size = min_t(size_t, firmware->size - put, min_t 1435 drivers/net/wireless/st/cw1200/txrx.c next_gc = min_t(unsigned long, next_gc, ttl); min_t 365 drivers/net/wireless/ti/wl1251/cmd.c len = min_t(size_t, len, MAX_READ_SIZE); min_t 400 drivers/net/wireless/ti/wl1251/cmd.c buf_len = min_t(size_t, buf_len, WL1251_MAX_TEMPLATE_SIZE); min_t 67 drivers/net/wireless/ti/wl1251/wl1251.h min_t(size_t, len, DEBUG_DUMP_LIMIT), \ min_t 77 drivers/net/wireless/ti/wl1251/wl1251.h min_t(size_t, len, DEBUG_DUMP_LIMIT), \ min_t 1022 drivers/net/wireless/ti/wlcore/cmd.c buf_len = min_t(size_t, buf_len, WL1271_CMD_TEMPL_MAX_SIZE); min_t 84 drivers/net/wireless/ti/wlcore/debug.h min_t(size_t, len, DEBUG_DUMP_LIMIT), \ min_t 94 drivers/net/wireless/ti/wlcore/debug.h min_t(size_t, len, DEBUG_DUMP_LIMIT), \ min_t 563 drivers/net/wireless/ti/wlcore/debugfs.c min_t(u8, len, sizeof(tmp_buf) - 1)); \ min_t 808 drivers/net/wireless/ti/wlcore/main.c len = min_t(size_t, maxlen, PAGE_SIZE - wl->fwlog_size); min_t 243 drivers/net/wireless/ti/wlcore/spi.c chunk_len = min_t(size_t, WSPI_MAX_CHUNK_SIZE, len); min_t 321 drivers/net/wireless/ti/wlcore/spi.c chunk_len = min_t(size_t, WSPI_MAX_CHUNK_SIZE, len); min_t 119 drivers/net/wireless/ti/wlcore/sysfs.c len = min_t(size_t, count, wl->fwlog_size); min_t 1790 drivers/net/wireless/wl3501_cs.c tocopy = min_t(u16, len_keys, wrqu->encoding.length); min_t 1791 drivers/net/wireless/wl3501_cs.c tocopy = min_t(u8, tocopy, 100); min_t 1643 drivers/net/xen-netback/netback.c xenvif_max_queues = min_t(unsigned int, MAX_QUEUES_DEFAULT, min_t 340 drivers/net/xen-netback/rx.c chunk_len = min_t(size_t, frag_len, XEN_PAGE_SIZE - offset); min_t 341 drivers/net/xen-netback/rx.c chunk_len = min_t(size_t, chunk_len, XEN_PAGE_SIZE - min_t 2206 drivers/net/xen-netfront.c xennet_max_queues = min_t(unsigned int, MAX_QUEUES_DEFAULT, min_t 210 drivers/nfc/fdp/fdp.c payload_size = min_t(unsigned long, max_size, len); min_t 1545 drivers/nfc/trf7970a.c len = min_t(int, skb->len, TRF7970A_FIFO_SIZE); min_t 2348 drivers/ntb/hw/idt/ntb_hw_idt.c size = min_t(size_t, count, 0x1000U); min_t 1025 drivers/ntb/hw/mscc/ntb_hw_switchtec.c sndev->nr_direct_mw = min_t(int, sndev->nr_direct_mw, mw_count); min_t 1310 drivers/ntb/hw/mscc/ntb_hw_switchtec.c sz = min_t(resource_size_t, sz, min_t 907 drivers/ntb/test/ntb_perf.c chunk_size = min_t(u64, peer->outbuf_size, chunk_size); min_t 1160 drivers/ntb/test/ntb_perf.c buf_size = min_t(size_t, size, 0x1000U); min_t 590 drivers/ntb/test/ntb_tool.c inmw->size = min_t(resource_size_t, req_size, size); min_t 653 drivers/ntb/test/ntb_tool.c buf_size = min_t(size_t, size, 512); min_t 887 drivers/ntb/test/ntb_tool.c buf_size = min_t(size_t, size, 512); min_t 203 drivers/nvdimm/badrange.c int done = min_t(u64, remaining, INT_MAX); min_t 940 drivers/nvdimm/btt.c size_t arena_size = min_t(u64, ARENA_MAX_SIZE, remaining); min_t 1050 drivers/nvdimm/bus.c copy = min_t(u32, ND_CMD_MAX_ENVELOPE - in_len, in_size); min_t 1086 drivers/nvdimm/bus.c copy = min_t(u32, ND_CMD_MAX_ENVELOPE - out_len, out_size); min_t 100 drivers/nvdimm/dimm_devs.c max_cmd_size = min_t(u32, len, ndd->nsarea.max_xfer); min_t 146 drivers/nvdimm/dimm_devs.c max_cmd_size = min_t(u32, len, ndd->nsarea.max_xfer); min_t 458 drivers/nvdimm/label.c max_xfer = min_t(size_t, ndd->nsarea.max_xfer, config_size); min_t 108 drivers/nvdimm/pmem.c chunk = min_t(unsigned int, len, PAGE_SIZE - off); min_t 127 drivers/nvdimm/pmem.c chunk = min_t(unsigned int, len, PAGE_SIZE - off); min_t 571 drivers/nvme/host/core.c ctrl->nr_streams = min_t(unsigned, ctrl->nssa, BLK_MAX_WRITE_HINTS - 1); min_t 2203 drivers/nvme/host/core.c blk_queue_max_segments(q, min_t(u32, max_segments, USHRT_MAX)); min_t 2754 drivers/nvme/host/core.c ctrl->sqsize = min_t(int, NVME_CAP_MQES(ctrl->cap), ctrl->sqsize); min_t 725 drivers/nvme/host/fabrics.c opts->nr_io_queues = min_t(unsigned int, min_t 3102 drivers/nvme/host/fc.c ctrl->ctrl.queue_count = min_t(unsigned int, min_t 573 drivers/nvme/host/lightnvm.c max_len = min_t(unsigned int, ctrl->max_hw_sectors << 9, 256 * 1024); min_t 590 drivers/nvme/host/lightnvm.c len = min_t(unsigned int, left, max_len); min_t 1924 drivers/nvme/host/pci.c len = min_t(u64, chunk_size, preferred - size); min_t 1968 drivers/nvme/host/pci.c for (chunk_size = min_t(u64, preferred, PAGE_SIZE * MAX_ORDER_NR_PAGES); min_t 2281 drivers/nvme/host/pci.c min_t(int, dev->q_depth, BLK_MQ_MAX_DEPTH) - 1; min_t 2340 drivers/nvme/host/pci.c dev->q_depth = min_t(int, NVME_CAP_MQES(dev->ctrl.cap) + 1, min_t 2573 drivers/nvme/host/pci.c dev->ctrl.max_hw_sectors = min_t(u32, min_t 429 drivers/nvme/host/rdma.c return min_t(u32, NVME_RDMA_MAX_SEGMENTS, min_t 657 drivers/nvme/host/rdma.c nr_read_queues = min_t(unsigned int, ibdev->num_comp_vectors, min_t 659 drivers/nvme/host/rdma.c nr_default_queues = min_t(unsigned int, ibdev->num_comp_vectors, min_t 189 drivers/nvme/host/tcp.c return min_t(size_t, req->iter.bvec->bv_len - req->iter.iov_offset, min_t 581 drivers/nvme/host/tcp.c size_t rcv_len = min_t(size_t, *len, queue->pdu_remaining); min_t 652 drivers/nvme/host/tcp.c recv_len = min_t(size_t, *len, queue->data_remaining); min_t 674 drivers/nvme/host/tcp.c recv_len = min_t(size_t, recv_len, min_t 716 drivers/nvme/host/tcp.c size_t recv_len = min_t(size_t, *len, queue->ddgst_remaining); min_t 1908 drivers/nvme/target/fc.c tlen += min_t(u32, sg_dma_len(sg), remaininglen); min_t 571 drivers/nvme/target/fcloop.c tlen = min_t(u32, offset, io_len); min_t 586 drivers/nvme/target/fcloop.c tlen = min_t(u32, io_len, data_len); min_t 587 drivers/nvme/target/fcloop.c tlen = min_t(u32, tlen, length); min_t 56 drivers/nvme/target/io-cmd-file.c ns->blksize_shift = min_t(u8, min_t 262 drivers/nvme/target/rdma.c sge->length = min_t(int, len, PAGE_SIZE); min_t 623 drivers/nvme/target/rdma.c sg->length = min_t(int, len, PAGE_SIZE - off); min_t 1253 drivers/nvme/target/rdma.c param.initiator_depth = min_t(u8, p->initiator_depth, min_t 295 drivers/nvme/target/tcp.c u32 iov_len = min_t(u32, length, sg->length - sg_offset); min_t 159 drivers/nvmem/meson-mx-efuse.c min_t(size_t, bytes - i, efuse->config.word_size)); min_t 276 drivers/parisc/pdc_stable.c count = min_t(size_t, count, sizeof(in)-1); min_t 390 drivers/parisc/pdc_stable.c count = min_t(size_t, count, sizeof(in)-1); min_t 757 drivers/parisc/pdc_stable.c count = min_t(size_t, count, sizeof(in)-1); min_t 992 drivers/pci/controller/pci-mvebu.c pcie->realio.end = min_t(resource_size_t, min_t 457 drivers/pcmcia/ds.c for (i = 0; i < min_t(unsigned int, 4, vers1->ns); i++) { min_t 1123 drivers/pcmcia/yenta_socket.c min_t(int, cardbus_bridge->busn_res.end, upper_limit); min_t 156 drivers/platform/chrome/cros_ec_debugfs.c ret = min_t(size_t, CIRC_CNT_TO_END(cb->head, cb->tail, LOG_SIZE), min_t 157 drivers/power/supply/lp8788-charger.c (min_t(int, read, LP8788_ISEL_MAX) + 1); min_t 315 drivers/power/supply/lp8788-charger.c (min_t(int, read, LP8788_ISEL_MAX) + 1); min_t 930 drivers/ps3/ps3-lpm.c count = min_t(u64, count, lpm_priv->tb_count - offset); min_t 985 drivers/ps3/ps3-lpm.c count = min_t(u64, count, lpm_priv->tb_count - offset); min_t 83 drivers/rpmsg/qcom_glink_rpm.c len = min_t(size_t, count, pipe->native.length - tail); min_t 131 drivers/rpmsg/qcom_glink_rpm.c len = min_t(size_t, count, pipe->native.length - head); min_t 91 drivers/rpmsg/qcom_glink_smem.c len = min_t(size_t, count, pipe->native.length - tail); min_t 143 drivers/rpmsg/qcom_glink_smem.c len = min_t(size_t, count, pipe->native.length - head); min_t 507 drivers/rpmsg/qcom_smd.c len = min_t(size_t, count, channel->fifo_size - tail); min_t 709 drivers/rpmsg/qcom_smd.c len = min_t(size_t, count, channel->fifo_size - head); min_t 208 drivers/rpmsg/rpmsg_char.c use = min_t(size_t, iov_iter_count(to), skb->len); min_t 538 drivers/s390/char/con3215.c c = min_t(int, count, min_t 45 drivers/s390/char/sclp_sdias.c min_t(unsigned long, sizeof(sdias_evbuf), evbuf->length)); min_t 1273 drivers/s390/char/tty3270.c k = min_t(int, line->len - tp->cx, tp->view.cols - tp->cx - n); min_t 1324 drivers/s390/char/tty3270.c tp->cx = min_t(int, tp->cx, tp->view.cols - 1); min_t 1459 drivers/s390/char/tty3270.c tp->cx = min_t(int, tp->view.cols - 1, max_cx); min_t 1460 drivers/s390/char/tty3270.c cy = min_t(int, tp->view.rows - 3, max_cy); min_t 145 drivers/s390/char/vmcp.c size = min_t(size_t, session->resp_size, session->bufsize); min_t 669 drivers/s390/cio/device_ops.c mdc = mdc ? min_t(int, mdc, chp->desc_fmt1.mdc) : min_t 299 drivers/s390/cio/trace.h min_t(u16, chsc->length, CHSC_MAX_REQUEST_LEN)); min_t 303 drivers/s390/cio/trace.h min_t(u16, chsc->length, CHSC_MAX_RESPONSE_LEN)); min_t 433 drivers/s390/crypto/zcrypt_msgtype50.c length = min_t(int, min_t 436 drivers/s390/crypto/zcrypt_msgtype50.c length = min_t(int, min_t 1290 drivers/s390/net/ctcm_fsms.c CTCM_D3_DUMP((char *)p_header, min_t(int, skb->len, 32)); min_t 1329 drivers/s390/net/ctcm_fsms.c min_t(int, ch->trans_skb->len, 50)); min_t 705 drivers/s390/net/ctcm_main.c CTCM_D3_DUMP((char *)skb->data, min_t(int, 32, skb->len)); min_t 793 drivers/s390/net/ctcm_main.c CTCM_D3_DUMP((char *)skb->data, min_t(int, 32, skb->len)); min_t 820 drivers/s390/net/ctcm_main.c min_t(int, 32, ch->trans_skb->len)); min_t 943 drivers/s390/net/ctcm_main.c CTCM_D3_DUMP((char *)skb->data, min_t(int, 32, skb->len)); min_t 3743 drivers/s390/net/qeth_core_main.c elem_length = min_t(unsigned int, length, min_t 3773 drivers/s390/net/qeth_core_main.c elem_length = min_t(unsigned int, length, min_t 443 drivers/s390/scsi/zfcp_dbf.c rec_len = min_t(unsigned int, sg->length, ZFCP_DBF_SAN_MAX_PAYLOAD); min_t 638 drivers/s390/scsi/zfcp_dbf.c min_t(int, sc->cmd_len, ZFCP_DBF_SCSI_OPCODE)); min_t 674 drivers/s390/scsi/zfcp_dbf.c min_t(u16, max_t(u16, rec->pl_len, min_t 297 drivers/s390/scsi/zfcp_fc.h sense_len = min_t(u32, be32_to_cpu(fcp_rsp->ext.fr_sns_len), min_t 1196 drivers/scsi/aacraid/aachba.c min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), min_t 2374 drivers/scsi/aacraid/aachba.c min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), min_t 2383 drivers/scsi/aacraid/aachba.c min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), min_t 2397 drivers/scsi/aacraid/aachba.c min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), min_t 2473 drivers/scsi/aacraid/aachba.c min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), min_t 2565 drivers/scsi/aacraid/aachba.c min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), min_t 2632 drivers/scsi/aacraid/aachba.c min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), min_t 2925 drivers/scsi/aacraid/aachba.c min_t(size_t, sizeof(dev->fsa_dev[cid].sense_data), min_t 3016 drivers/scsi/aacraid/aachba.c min_t(size_t, min_t 3077 drivers/scsi/aacraid/aachba.c alloc_len = min_t(size_t, alloc_len, sizeof(cp)); min_t 3307 drivers/scsi/aacraid/aachba.c min_t(size_t, min_t 3338 drivers/scsi/aacraid/aachba.c min_t(size_t, min_t 3515 drivers/scsi/aacraid/aachba.c len = min_t(u32, le32_to_cpu(srbreply->sense_data_size), min_t 3656 drivers/scsi/aacraid/aachba.c len = min_t(u32, le32_to_cpu(srbreply->sense_data_size), min_t 3691 drivers/scsi/aacraid/aachba.c len = min_t(u8, err->sense_response_data_len, min_t 1933 drivers/scsi/aic7xxx/aic79xx_osm.c sense_size = min_t(size_t, min_t 1036 drivers/scsi/arm/acornscsi.c length = min_t(unsigned int, host->scsi.SCp.this_residual, DMAC_BUFFER_SIZE / 2); min_t 1164 drivers/scsi/arm/acornscsi.c length = min_t(unsigned int, host->scsi.SCp.this_residual, DMAC_BUFFER_SIZE / 2); min_t 1635 drivers/scsi/arm/acornscsi.c length = min_t(unsigned int, message[4], sdtr_size); min_t 115 drivers/scsi/arm/scsi.h min_t(unsigned long, len, min_t 1154 drivers/scsi/be2iscsi/be_main.c min_t(u16, sense_len, SCSI_SENSE_BUFFERSIZE)); min_t 5228 drivers/scsi/be2iscsi/be_main.c eqd = min_t(u32, eqd, BEISCSI_EQ_DELAY_MAX); min_t 4120 drivers/scsi/csiostor/csio_hw.c io_req->tmo -= min_t(uint32_t, io_req->tmo, ECM_MIN_TMO); min_t 631 drivers/scsi/csiostor/csio_init.c shost->max_id = min_t(uint32_t, csio_fcoe_rnodes, min_t 516 drivers/scsi/csiostor/csio_isr.c cnt = min_t(uint8_t, hw->cfg_niq, cnt); min_t 1270 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c cdev->tx_max_size = min_t(unsigned int, ULP2_MAX_PDU_PAYLOAD, min_t 1272 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c cdev->rx_max_size = min_t(unsigned int, ULP2_MAX_PDU_PAYLOAD, min_t 2108 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c cdev->tx_max_size = min_t(unsigned int, ULP2_MAX_PDU_PAYLOAD, min_t 2110 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c cdev->rx_max_size = min_t(unsigned int, ULP2_MAX_PDU_PAYLOAD, min_t 1907 drivers/scsi/cxgbi/libcxgbi.c headroom += min_t(unsigned int, min_t 878 drivers/scsi/cxlflash/ocxl_hw.c count = min_t(int, acfg->actag_supported, afu->fn_actag_enabled); min_t 1571 drivers/scsi/esas2r/esas2r_ioctl.c int size = min_t(int, count, sizeof(a->firmware.header)); min_t 134 drivers/scsi/esas2r/esas2r_main.c int length = min_t(size_t, sizeof(struct esas2r_sas_nvram), PAGE_SIZE); min_t 176 drivers/scsi/esas2r/esas2r_main.c int length = min_t(size_t, sizeof(struct atto_ioctl), PAGE_SIZE); min_t 699 drivers/scsi/fnic/fnic_main.c host->can_queue = min_t(u32, FNIC_MAX_IO_REQ, min_t 74 drivers/scsi/fnic/fnic_res.c min_t(u32, VNIC_FNIC_WQ_DESCS_MAX, min_t 80 drivers/scsi/fnic/fnic_res.c min_t(u32, VNIC_FNIC_WQ_COPY_DESCS_MAX, min_t 86 drivers/scsi/fnic/fnic_res.c min_t(u32, VNIC_FNIC_RQ_DESCS_MAX, min_t 92 drivers/scsi/fnic/fnic_res.c min_t(u16, VNIC_FNIC_MAXDATAFIELDSIZE_MAX, min_t 96 drivers/scsi/fnic/fnic_res.c min_t(u32, VNIC_FNIC_EDTOV_MAX, min_t 101 drivers/scsi/fnic/fnic_res.c min_t(u32, VNIC_FNIC_RATOV_MAX, min_t 106 drivers/scsi/fnic/fnic_res.c min_t(u32, VNIC_FNIC_FLOGI_RETRIES_MAX, c->flogi_retries); min_t 109 drivers/scsi/fnic/fnic_res.c min_t(u32, VNIC_FNIC_FLOGI_TIMEOUT_MAX, min_t 114 drivers/scsi/fnic/fnic_res.c min_t(u32, VNIC_FNIC_PLOGI_RETRIES_MAX, c->plogi_retries); min_t 117 drivers/scsi/fnic/fnic_res.c min_t(u32, VNIC_FNIC_PLOGI_TIMEOUT_MAX, min_t 122 drivers/scsi/fnic/fnic_res.c min_t(u32, VNIC_FNIC_IO_THROTTLE_COUNT_MAX, min_t 127 drivers/scsi/fnic/fnic_res.c min_t(u32, VNIC_FNIC_LINK_DOWN_TIMEOUT_MAX, min_t 131 drivers/scsi/fnic/fnic_res.c min_t(u32, VNIC_FNIC_PORT_DOWN_TIMEOUT_MAX, min_t 135 drivers/scsi/fnic/fnic_res.c min_t(u32, VNIC_FNIC_PORT_DOWN_IO_RETRIES_MAX, min_t 139 drivers/scsi/fnic/fnic_res.c min_t(u32, VNIC_FNIC_LUNS_PER_TARGET_MAX, min_t 143 drivers/scsi/fnic/fnic_res.c c->intr_timer = min_t(u16, VNIC_INTR_TIMER_MAX, c->intr_timer); min_t 698 drivers/scsi/fnic/fnic_trace.c min_t(u8, fc_trc_frame_len, min_t 703 drivers/scsi/fnic/fnic_trace.c min_t(u8, fc_trc_frame_len, min_t 823 drivers/scsi/fnic/fnic_trace.c for (j = 0; j < min_t(u8, tdata->frame_len, min_t 1837 drivers/scsi/gdth.c cpcount = min_t(u16, count, scsi_bufflen(scp)); min_t 1848 drivers/scsi/ipr.c num_entries = min_t(u32, be32_to_cpu(error->num_entries), min_t 1941 drivers/scsi/ipr.c len = min_t(int, len, IPR_DEFAULT_MAX_ERROR_DUMP); min_t 2335 drivers/scsi/ipr.c num_entries = min_t(u32, error->num_entries, min_t 6380 drivers/scsi/ipr.c min_t(u16, be16_to_cpu(ioasa64->auto_sense.auto_sense_len), min_t 6384 drivers/scsi/ipr.c min_t(u16, be16_to_cpu(ioasa->auto_sense.auto_sense_len), min_t 8014 drivers/scsi/ipr.c for (i = 0; i < min_t(u8, page0->len, IPR_INQUIRY_PAGE0_ENTRIES); i++) min_t 1733 drivers/scsi/isci/host.c return min_t(u8, ihost->user_parameters.max_concurr_spinup, min_t 1736 drivers/scsi/isci/host.c return min_t(u8, ihost->oem_parameters.controller.max_concurr_spin_up, min_t 1330 drivers/scsi/isci/remote_device.c idev->connection_rate = min_t(u16, sci_port_get_max_allowed_speed(iport), min_t 989 drivers/scsi/isci/request.c len = min_t(u32, min_t 1429 drivers/scsi/isci/request.c copy_len = min_t(int, total_len, sg_dma_len(sg)); min_t 1793 drivers/scsi/isci/request.c word_cnt = min_t(unsigned int, word_cnt, min_t 849 drivers/scsi/libiscsi.c min_t(uint16_t, senselen, SCSI_SENSE_BUFFERSIZE)); min_t 851 drivers/scsi/libiscsi.c min_t(uint16_t, senselen, min_t 25 drivers/scsi/libsas/sas_task.c min_t(int, SAS_STATUS_BUF_SIZE, min_t 4313 drivers/scsi/lpfc/lpfc_init.c shost->nr_hw_queues = min_t(int, 2 * num_possible_nodes(), min_t 1905 drivers/scsi/megaraid/megaraid_sas_base.c min_t(u8, instance->max_reset_tmo, min_t 5097 drivers/scsi/megaraid/megaraid_sas_base.c min_t(u8, ci->trigger_min_num_sec_before_ocr, min_t 6245 drivers/scsi/megaraid/megaraid_sas_base.c tmp_sectors = min_t(u32, max_sectors_1, max_sectors_2); min_t 4106 drivers/scsi/megaraid/megaraid_sas_fusion.c min_t(u32, resetwaittime, min_t 3086 drivers/scsi/mpt3sas/mpt3sas_base.c min_t(int, ioc->cpu_count + ioc->high_iops_queues, min_t 3095 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->reply_queue_count = min_t(int, local_max_msix_vectors, min_t 4861 drivers/scsi/mpt3sas/mpt3sas_base.c sg_tablesize = min_t(unsigned short, sg_tablesize, min_t 4870 drivers/scsi/mpt3sas/mpt3sas_base.c sg_tablesize = min_t(unsigned short, sg_tablesize, min_t 4878 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->internal_depth = min_t(int, (facts->HighPriorityCredit + (5)), min_t 4893 drivers/scsi/mpt3sas/mpt3sas_base.c max_request_credit = min_t(u16, max_queue_depth + min_t 4898 drivers/scsi/mpt3sas/mpt3sas_base.c max_request_credit = min_t(u16, facts->RequestCredit, min_t 4901 drivers/scsi/mpt3sas/mpt3sas_base.c max_request_credit = min_t(u16, facts->RequestCredit, min_t 4951 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->shost->sg_tablesize = min_t(u16, min_t 5113 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->chain_depth = min_t(u32, ioc->chain_depth, MAX_CHAIN_DEPTH); min_t 343 drivers/scsi/mpt3sas/mpt3sas_config.c memcpy(mem.page, config_page, min_t(u16, mem.sz, min_t 349 drivers/scsi/mpt3sas/mpt3sas_config.c memset(mem.page, 0, min_t(u16, mem.sz, config_page_sz)); min_t 444 drivers/scsi/mpt3sas/mpt3sas_config.c _debug_dump_config(p, min_t(u16, mem.sz, min_t 457 drivers/scsi/mpt3sas/mpt3sas_config.c _debug_dump_config(p, min_t(u16, mem.sz, min_t 464 drivers/scsi/mpt3sas/mpt3sas_config.c memcpy(config_page, mem.page, min_t(u16, mem.sz, min_t 277 drivers/scsi/mpt3sas/mpt3sas_ctl.c sz = min_t(u32, SCSI_SENSE_BUFFERSIZE, min_t 291 drivers/scsi/mpt3sas/mpt3sas_ctl.c sz = min_t(u32, NVME_ERROR_RESPONSE_SIZE, min_t 359 drivers/scsi/mpt3sas/mpt3sas_ctl.c sz = min_t(u32, event_data_sz, MPT3_EVENT_DATA_SIZE); min_t 623 drivers/scsi/mpt3sas/mpt3sas_ctl.c sz = min_t(u32, karg->max_reply_bytes, ioc->reply_sz); min_t 1050 drivers/scsi/mpt3sas/mpt3sas_ctl.c sz = min_t(u32, karg.max_reply_bytes, ioc->reply_sz); min_t 1072 drivers/scsi/mpt3sas/mpt3sas_ctl.c sz = min_t(u32, karg.max_sense_bytes, sz_arg); min_t 1276 drivers/scsi/mpt3sas/mpt3sas_ctl.c max = min_t(u32, MPT3SAS_CTL_EVENT_LOG_SIZE, max_events); min_t 5299 drivers/scsi/mpt3sas/mpt3sas_scsih.c u32 sz = min_t(u32, SCSI_SENSE_BUFFERSIZE, min_t 474 drivers/scsi/mvsas/mv_init.c shost->sg_tablesize = min_t(u16, SG_ALL, MVS_MAX_SG); min_t 4365 drivers/scsi/ncr53c8xx.c memcpy(cp->cdb_buf, cmd->cmnd, min_t(int, cmd->cmd_len, sizeof(cp->cdb_buf))); min_t 4957 drivers/scsi/ncr53c8xx.c min_t(size_t, SCSI_SENSE_BUFFERSIZE, min_t 2657 drivers/scsi/pmcraid.c int data_size = min_t(u16, sense_len, min_t 569 drivers/scsi/qedf/qedf.h #define MIN_NUM_CPUS_MSIX(x) min_t(u32, x->dev_info.num_cqs, \ min_t 123 drivers/scsi/qedf/qedf_debugfs.c cnt = min_t(int, count, cnt - *ppos); min_t 149 drivers/scsi/qedf/qedf_debugfs.c cnt = min_t(int, count, cnt - *ppos); min_t 199 drivers/scsi/qedf/qedf_debugfs.c cnt = min_t(int, count, cnt - *ppos); min_t 387 drivers/scsi/qedf/qedf_debugfs.c cnt = min_t(int, count, cnt - *ppos); min_t 54 drivers/scsi/qedi/qedi.h #define MIN_NUM_CPUS_MSIX(x) min_t(u32, x->dev_info.num_cqs, \ min_t 129 drivers/scsi/qedi/qedi_debugfs.c cnt = min_t(int, count, cnt - *ppos); min_t 537 drivers/scsi/qedi/qedi_fw_api.c num_sges = !slow_io ? min_t(u16, sgl_task_params->num_sges, min_t 553 drivers/scsi/qedi/qedi_fw_api.c min_t(u16, sgl_task_params->num_sges, min_t 754 drivers/scsi/qedi/qedi_main.c len = min_t(u32, skb->len, (u32)qedi_ll2_buf_size); min_t 5054 drivers/scsi/qla2xxx/qla_init.c sz = min_t(int, sizeof(struct els_plogi_payload), min_t 2801 drivers/scsi/qla2xxx/qla_target.c prm->sense_buffer_len = min_t(uint32_t, prm->sense_buffer_len, min_t 38 drivers/scsi/qla4xxx/ql4_isr.c sense_len = min_t(uint16_t, sense_len, SCSI_SENSE_BUFFERSIZE); min_t 43 drivers/scsi/qla4xxx/ql4_isr.c sense_len = min_t(uint16_t, sense_len, IOCB_MAX_SENSEDATA_LEN); min_t 95 drivers/scsi/qla4xxx/ql4_isr.c sense_len = min_t(uint16_t, srb->req_sense_len, min_t 952 drivers/scsi/qla4xxx/ql4_os.c size = min_t(size_t, sizeof(chap_rec.username), min_t 957 drivers/scsi/qla4xxx/ql4_os.c size = min_t(size_t, sizeof(chap_rec.password), min_t 2919 drivers/scsi/scsi_debug.c end = min_t(sector_t, sdebug_store_sectors, map_index_to_lba(next)); min_t 984 drivers/scsi/scsi_error.c scmd->sdb.length = min_t(unsigned, SCSI_SENSE_BUFFERSIZE, min_t 1575 drivers/scsi/scsi_lib.c return min_t(unsigned int, shost->sg_tablesize, SCSI_INLINE_SG_CNT) * min_t 1789 drivers/scsi/scsi_lib.c blk_queue_max_segments(q, min_t(unsigned short, shost->sg_tablesize, min_t 1801 drivers/scsi/scsi_lib.c shost->max_sectors = min_t(unsigned int, shost->max_sectors, min_t 201 drivers/scsi/sd.c len = min_t(size_t, sizeof(buffer), data.length - data.header_length - min_t 143 drivers/scsi/sd_zbc.c bufsize = min_t(size_t, bufsize, min_t 145 drivers/scsi/sd_zbc.c bufsize = min_t(size_t, bufsize, queue_max_segments(q) << PAGE_SHIFT); min_t 397 drivers/scsi/sd_zbc.c buflen = min_t(size_t, get_unaligned_be32(&buf[0]) + 64, min_t 862 drivers/scsi/sg.c max_sectors = min_t(unsigned int, max_sectors, INT_MAX >> 9); min_t 951 drivers/scsi/sg.c val = min_t(s64, mult_frac((s64)INT_MAX, USER_HZ, HZ), min_t 1030 drivers/scsi/sg.c val = min_t(int, val, min_t 1046 drivers/scsi/sg.c val = min_t(int, sfp->reserve.bufflen, min_t 2181 drivers/scsi/sg.c bufflen = min_t(int, sg_big_buff, min_t 4951 drivers/scsi/smartpqi/smartpqi_init.c cdb_length = min_t(size_t, scmd->cmd_len, sizeof(request->cdb)); min_t 95 drivers/scsi/snic/snic_disc.c ntgts = min_t(u32, snic->fwinfo.max_tgts, snic->shost->max_id); min_t 86 drivers/scsi/snic/snic_main.c qdepth = min_t(u32, max_ios, SNIC_MAX_QUEUE_DEPTH); min_t 104 drivers/scsi/snic/snic_main.c qsz = min_t(u32, qdepth, SNIC_MAX_QUEUE_DEPTH); min_t 511 drivers/scsi/snic/snic_main.c shost->can_queue = min_t(u32, SNIC_MAX_IO_REQ, min_t 63 drivers/scsi/snic/snic_res.c c->wq_enet_desc_count = min_t(u32, min_t 71 drivers/scsi/snic/snic_res.c c->maxdatafieldsize = min_t(u32, min_t 77 drivers/scsi/snic/snic_res.c c->io_throttle_count = min_t(u32, min_t 83 drivers/scsi/snic/snic_res.c c->port_down_timeout = min_t(u32, min_t 87 drivers/scsi/snic/snic_res.c c->port_down_io_retries = min_t(u32, min_t 91 drivers/scsi/snic/snic_res.c c->luns_per_tgt = min_t(u32, min_t 97 drivers/scsi/snic/snic_res.c c->intr_timer = min_t(u32, VNIC_INTR_TIMER_MAX, c->intr_timer); min_t 23 drivers/scsi/ufs/ufs_bsg.c *desc_len = min_t(int, *desc_len, desc_size); min_t 308 drivers/scsi/ufs/ufshcd-pltfrm.c min_pltfrm_gear = min_t(u32, pltfrm_param->hs_rx_gear, min_t 311 drivers/scsi/ufs/ufshcd-pltfrm.c min_pltfrm_gear = min_t(u32, pltfrm_param->pwm_rx_gear, min_t 349 drivers/scsi/ufs/ufshcd-pltfrm.c agreed_pwr->lane_tx = min_t(u32, dev_max->lane_tx, min_t 351 drivers/scsi/ufs/ufshcd-pltfrm.c agreed_pwr->lane_rx = min_t(u32, dev_max->lane_rx, min_t 355 drivers/scsi/ufs/ufshcd-pltfrm.c min_dev_gear = min_t(u32, dev_max->gear_rx, dev_max->gear_tx); min_t 368 drivers/scsi/ufs/ufshcd-pltfrm.c min_t(u32, min_dev_gear, min_pltfrm_gear); min_t 1906 drivers/scsi/ufs/ufshcd.c len_to_copy = min_t(int, UFS_SENSE_SIZE, len); min_t 2260 drivers/scsi/ufs/ufshcd.c cdb_len = min_t(unsigned short, lrbp->cmd->cmd_len, UFS_CDB_SIZE); min_t 4533 drivers/scsi/ufs/ufshcd.c lun_qdepth = min_t(int, lun_qdepth, hba->nutrs); min_t 161 drivers/scsi/virtio_scsi.c min_t(u32, min_t 848 drivers/scsi/virtio_scsi.c num_queues = min_t(unsigned int, nr_cpu_ids, num_queues); min_t 871 drivers/scsi/virtio_scsi.c shost->cmd_per_lun = min_t(u32, cmd_per_lun, shost->can_queue); min_t 267 drivers/scsi/xen-scsifront.c sense_len = min_t(uint8_t, VSCSIIF_SENSE_BUFFERSIZE, min_t 440 drivers/scsi/xen-scsifront.c bytes = min_t(unsigned int, len, PAGE_SIZE - off); min_t 473 drivers/scsi/xen-scsifront.c bytes = min_t(unsigned int, len, PAGE_SIZE - off); min_t 1062 drivers/scsi/xen-scsifront.c nr_segs = min_t(unsigned int, sg_grant, SG_ALL); min_t 1064 drivers/scsi/xen-scsifront.c nr_segs = min_t(unsigned int, nr_segs, min_t 396 drivers/soc/qcom/qcom-geni-se.c len = min_t(int, temp_bpw, BITS_PER_BYTE) - 1; min_t 174 drivers/soc/qcom/smd-rpm.c len = min_t(u32, ALIGN(msg_length, 4), sizeof(msgbuf)); min_t 91 drivers/soundwire/intel_init.c count = min_t(u8, caps, count); min_t 884 drivers/spi/spi-armada-3700.c master->max_speed_hz = min_t(unsigned long, A3700_SPI_MAX_SPEED_HZ, min_t 187 drivers/spi/spi-bcm63xx-hsspi.c int curr_step = min_t(int, step_size, pending); min_t 178 drivers/spi/spi-dw.c return min_t(u32, rx_left, dw_readl(dws, DW_SPI_RXFLR)); min_t 371 drivers/spi/spi-dw.c txlevel = min_t(u16, dws->fifo_len / 2, dws->len / dws->n_bytes); min_t 332 drivers/spi/spi-ep93xx.c size_t bytes = min_t(size_t, len, PAGE_SIZE); min_t 280 drivers/spi/spi-meson-spicc.c burst_len = min_t(unsigned int, min_t 379 drivers/spi/spi-meson-spicc.c burst_len = min_t(unsigned int, min_t 257 drivers/spi/spi-meson-spifc.c len = min_t(int, xfer->len - done, SPIFC_BUFFER_SIZE); min_t 325 drivers/spi/spi-mt65xx.c packet_size = min_t(u32, mdata->xfer_len, MTK_SPI_PACKET_SIZE); min_t 911 drivers/spi/spi-omap2-mcspi.c speed_hz = min_t(u32, speed_hz, OMAP2_MCSPI_MAX_FREQ); min_t 186 drivers/spi/spi-pic32.c return min_t(u32, rx_left, pic32_rx_fifo_level(pic32s)); min_t 899 drivers/spi/spi-pxa2xx.c rate = min_t(int, ssp_clk, rate); min_t 239 drivers/spi/spi-qup.c num_bytes = min_t(int, spi_qup_len(controller) - min_t 326 drivers/spi/spi-qup.c num_bytes = min_t(int, spi_qup_len(controller) - min_t 858 drivers/spi/spi-qup.c timeout = DIV_ROUND_UP(min_t(unsigned long, SPI_MAX_XFER, min_t 683 drivers/spi/spi-sh-msiof.c words = min_t(int, words, p->tx_fifo_size); min_t 685 drivers/spi/spi-sh-msiof.c words = min_t(int, words, p->rx_fifo_size); min_t 946 drivers/spi/spi-sprd.c sctlr->max_speed_hz = min_t(u32, ss->src_clk >> 1, min_t 735 drivers/spi/spi-tegra114.c setup_dly = min_t(u8, setup_dly, MAX_SETUP_HOLD_CYCLES); min_t 736 drivers/spi/spi-tegra114.c hold_dly = min_t(u8, hold_dly, MAX_SETUP_HOLD_CYCLES); min_t 748 drivers/spi/spi-tegra114.c inactive_cycles = min_t(u8, inactive_dly, MAX_INACTIVE_CYCLES); min_t 444 drivers/spi/spi-ti-qspi.c size_t xfer_len = min_t(size_t, QSPI_DMA_BUFFER_SIZE, min_t 605 drivers/spi/spi-ti-qspi.c frame_len_words = min_t(unsigned int, frame_len_words, QSPI_FRAME); min_t 828 drivers/spi/spi.c desc_len = min_t(int, max_seg_size, PAGE_SIZE); min_t 831 drivers/spi/spi.c desc_len = min_t(int, max_seg_size, ctlr->max_dma_len); min_t 850 drivers/spi/spi.c min = min_t(size_t, desc_len, min_t 851 drivers/spi/spi.c min_t(size_t, len, min_t 864 drivers/spi/spi.c min = min_t(size_t, len, desc_len); min_t 2924 drivers/spi/spi.c xfers[0].len = min_t(size_t, maxsize, xfer[0].len); min_t 378 drivers/spmi/spmi-pmic-arb.c min_t(u8, bc, 3)); min_t 428 drivers/spmi/spmi-pmic-arb.c min_t(u8, bc, 3)); min_t 212 drivers/staging/comedi/comedi_buf.c int l = min_t(int, len - done, PAGE_SIZE - pgoff); min_t 2501 drivers/staging/comedi/comedi_fops.c n = min_t(size_t, m, nbytes); min_t 2623 drivers/staging/comedi/comedi_fops.c n = min_t(size_t, m, nbytes); min_t 919 drivers/staging/emxx_udc/emxx_udc.c i_buf_size = min_t(u32, i_buf_size, ep->ep.maxpacket); min_t 1116 drivers/staging/emxx_udc/emxx_udc.c data_size = min_t(u32, data_size, ep->ep.maxpacket); min_t 1493 drivers/staging/emxx_udc/emxx_udc.c min_t(u16, le16_to_cpu(udc->ctrl.wLength), sizeof(status_data)); min_t 1871 drivers/staging/exfat/exfat_core.c copy_entries = min_t(s32, min_t 1085 drivers/staging/fieldbus/anybuss/host.c ssize_t len = min_t(loff_t, MAX_DATA_AREA_SZ - *offset, size); min_t 1110 drivers/staging/fieldbus/anybuss/host.c ssize_t len = min_t(loff_t, MAX_DATA_AREA_SZ - *offset, size); min_t 204 drivers/staging/fwserial/dma_fifo.c limit = min_t(unsigned int, l, fifo->tx_limit); min_t 896 drivers/staging/greybus/camera.c unsigned int nbytes = min_t(unsigned int, size - i, 16); min_t 140 drivers/staging/greybus/sdio.c blksz = min_t(u16, le16_to_cpu(response.max_blk_size), data_max); min_t 680 drivers/staging/isdn/gigaset/ser-gigaset.c n = min_t(unsigned, count, RBUFSIZE - tail); min_t 478 drivers/staging/media/imx/imx-media-capture.c count = min_t(__u32, VID_MEM_LIMIT / pix->sizeimage, count); min_t 1191 drivers/staging/media/imx/imx-media-csi.c crop->width = min_t(__u32, infmt->width, crop->width); min_t 1217 drivers/staging/media/imx/imx-media-csi.c crop->height = min_t(__u32, in_height, crop->height); min_t 209 drivers/staging/media/sunxi/cedrus/cedrus_h264.c size = min_t(size_t, ALIGN(num_ref, 4), sizeof(sram_array)); min_t 268 drivers/staging/most/cdev/cdev.c to_copy = min_t(size_t, min_t 746 drivers/staging/most/core.c size_t max_len = min_t(size_t, len + 1, STRING_SIZE); min_t 308 drivers/staging/most/dim2/dim2.c min_t(u32, data_size, min_t 256 drivers/staging/rtl8188eu/core/rtw_efuse.c limit = min_t(u16, len - 2, limit); min_t 409 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_, min_t(unsigned int, rate_len, 8), cur_network->SupportedRates, &pattrib->pktlen); min_t 569 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_, min_t(unsigned int, rate_len, 8), cur_network->SupportedRates, &pattrib->pktlen); min_t 3131 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c copy_len = min_t(int, wpa_ie_len + 2, sizeof(pstat->wpa_ie)); min_t 1111 drivers/staging/rtl8188eu/core/rtw_wlan_util.c num_of_rate = min_t(unsigned int, ptn_sz, NumRates); min_t 1125 drivers/staging/rtl8188eu/core/rtw_wlan_util.c num_of_rate = min_t(unsigned int, ptn_sz, NumRates); min_t 1003 drivers/staging/rtl8188eu/core/rtw_xmit.c mem_sz = min_t(size_t, mcast ? pattrib->pktlen : mpdu_len, remainder); min_t 373 drivers/staging/rtl8188eu/hal/odm_hwconfig.c Weighting = min_t(u32, OFDM_pkt << 4, 64); min_t 263 drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_, min_t(u32, rate_len, 8), cur_network->SupportedRates, &pktlen); min_t 119 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c iwe.u.data.length = min_t(u16, pnetwork->network.ssid.ssid_length, 32); min_t 451 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); min_t 463 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(padapter->securitypriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16 )); min_t 1127 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c int len = min_t(int, req->essid_len, min_t 1310 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c len = min_t(uint, wrqu->essid.length, IW_ESSID_MAX_SIZE); min_t 2299 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); min_t 2308 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); min_t 2318 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); min_t 2339 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); min_t 2373 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); min_t 2381 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); min_t 2392 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); min_t 2626 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c copy_len = min_t(int, wpa_ie_len + 2, sizeof(psta->wpa_ie)); min_t 103 drivers/staging/rtl8188eu/os_dep/mlme_linux.c len = min_t(uint, len, IW_CUSTOM_MAX); min_t 108 drivers/staging/rtl8188eu/os_dep/mlme_linux.c wrqu.data.length = min_t(__u16, p - buff, IW_CUSTOM_MAX); min_t 533 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c wrqu->data.length = min_t(size_t, wrqu->data.length, min_t 1851 drivers/staging/rtl8192e/rtllib_rx.c *tmp_htcap_len = min_t(u8, info_element->len, min_t 1855 drivers/staging/rtl8192e/rtllib_rx.c network->bssht.bdHTCapLen = min_t(u16, *tmp_htcap_len, sizeof(network->bssht.bdHTCapBuf)); min_t 1877 drivers/staging/rtl8192e/rtllib_rx.c *tmp_htinfo_len = min_t(u8, info_element->len, min_t 1881 drivers/staging/rtl8192e/rtllib_rx.c network->bssht.bdHTInfoLen = min_t(u16, *tmp_htinfo_len, sizeof(network->bssht.bdHTInfoBuf)); min_t 1895 drivers/staging/rtl8192e/rtllib_rx.c ht_realtek_agg_len = min_t(u8, info_element->len, min_t 2022 drivers/staging/rtl8192e/rtllib_rx.c *tmp_htcap_len = min_t(u8, info_element->len, MAX_IE_LEN); min_t 2025 drivers/staging/rtl8192e/rtllib_rx.c ht->bdHTCapLen = min_t(u16, *tmp_htcap_len, min_t 2233 drivers/staging/rtl8192e/rtllib_rx.c tmp_htinfo_len = min_t(u8, info_element->len, min_t 454 drivers/staging/rtl8192e/rtllib_softmac_wx.c len = min_t(__u16, wrqu->essid.length, IW_ESSID_MAX_SIZE); min_t 60 drivers/staging/rtl8192e/rtllib_wx.c iwe.u.data.length = min_t(u8, network->ssid_len, 32); min_t 68 drivers/staging/rtl8192e/rtllib_wx.c iwe.u.data.length = min_t(u8, network->hidden_ssid_len, 32); min_t 779 drivers/staging/rtl8192e/rtllib_wx.c ieee->wps_ie_len = min_t(size_t, len, MAX_WZC_IE_LEN); min_t 236 drivers/staging/rtl8712/rtl871x_ioctl_linux.c iwe.u.data.length = min_t(u32, pnetwork->network.Ssid.SsidLength, 32); min_t 1157 drivers/staging/rtl8712/rtl871x_ioctl_linux.c u32 len = min_t(u8, req->essid_len, IW_ESSID_MAX_SIZE); min_t 3824 drivers/staging/rts5208/ms.c rtsx_stor_get_xfer_buf(buf2, min_t(int, 12, scsi_bufflen(srb)), srb); min_t 3885 drivers/staging/rts5208/ms.c bufflen = min_t(int, 1052, scsi_bufflen(srb)); min_t 3942 drivers/staging/rts5208/ms.c bufflen = min_t(int, 12, scsi_bufflen(srb)); min_t 4008 drivers/staging/rts5208/ms.c bufflen = min_t(int, 36, scsi_bufflen(srb)); min_t 4043 drivers/staging/rts5208/ms.c bufflen = min_t(int, 12, scsi_bufflen(srb)); min_t 4112 drivers/staging/rts5208/ms.c bufflen = min_t(int, 1028, scsi_bufflen(srb)); min_t 4141 drivers/staging/rts5208/ms.c bufflen = min_t(int, 1028, scsi_bufflen(srb)); min_t 308 drivers/staging/rts5208/rtsx_scsi.c len = min_t(unsigned short, srb->cmd_len, 16); min_t 823 drivers/staging/rts5208/rtsx_scsi.c unsigned int len = min_t(unsigned int, scsi_bufflen(srb), min_t 1037 drivers/staging/rts5208/rtsx_scsi.c buf_len = min_t(unsigned int, scsi_bufflen(srb), buf_len); min_t 1124 drivers/staging/rts5208/rtsx_scsi.c len = (unsigned short)min_t(unsigned int, scsi_bufflen(srb), len); min_t 1163 drivers/staging/rts5208/rtsx_scsi.c len = (unsigned short)min_t(unsigned int, scsi_bufflen(srb), min_t 1232 drivers/staging/rts5208/rtsx_scsi.c len = (unsigned short)min_t(unsigned int, scsi_bufflen(srb), len); min_t 1264 drivers/staging/rts5208/rtsx_scsi.c len = (unsigned short)min_t(unsigned int, scsi_bufflen(srb), len); min_t 1358 drivers/staging/rts5208/rtsx_scsi.c len = min_t(unsigned int, scsi_bufflen(srb), 4); min_t 1381 drivers/staging/rts5208/rtsx_scsi.c len = min_t(unsigned int, scsi_bufflen(srb), 4); min_t 1512 drivers/staging/rts5208/rtsx_scsi.c len = min_t(u16, len, scsi_bufflen(srb)); min_t 1661 drivers/staging/rts5208/rtsx_scsi.c buf_len = min_t(unsigned int, scsi_bufflen(srb), sizeof(status)); min_t 1842 drivers/staging/rts5208/rtsx_scsi.c len = (unsigned short)min_t(unsigned int, scsi_bufflen(srb), min_t 1875 drivers/staging/rts5208/rtsx_scsi.c len = (unsigned short)min_t(unsigned int, scsi_bufflen(srb), min_t 1995 drivers/staging/rts5208/rtsx_scsi.c len = (unsigned short)min_t(unsigned int, scsi_bufflen(srb), len); min_t 2021 drivers/staging/rts5208/rtsx_scsi.c len = (unsigned short)min_t(unsigned int, scsi_bufflen(srb), len); min_t 2090 drivers/staging/rts5208/rtsx_scsi.c len = (u8)min_t(unsigned int, scsi_bufflen(srb), len); min_t 2117 drivers/staging/rts5208/rtsx_scsi.c len = (u8)min_t(unsigned int, scsi_bufflen(srb), len); min_t 2256 drivers/staging/rts5208/rtsx_scsi.c len = (u16)min_t(unsigned int, scsi_bufflen(srb), len); min_t 2299 drivers/staging/rts5208/rtsx_scsi.c len = (unsigned short)min_t(unsigned int, scsi_bufflen(srb), len); min_t 2529 drivers/staging/rts5208/rtsx_scsi.c buf_len = min_t(unsigned int, scsi_bufflen(srb), sizeof(rtsx_status)); min_t 3806 drivers/staging/rts5208/sd.c len = min_t(int, 18, scsi_bufflen(srb)); min_t 443 drivers/staging/rts5208/spi.c min_t(int, scsi_bufflen(srb), 1), srb); min_t 428 drivers/staging/speakup/kobjects.c bytes = min_t(size_t, len, 250); min_t 220 drivers/staging/unisys/visornic/visornic_main.c pi_arr[index + i].pi_len = min_t(u16, len, min_t 269 drivers/staging/unisys/visornic/visornic_main.c size = min_t(unsigned int, firstfraglen, min_t 1502 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c i < min_t(unsigned int, cam_info.num_cameras, num_resolutions); min_t 54 drivers/staging/vt6656/firmware.c length = min_t(int, fw->size - ii, FIRMWARE_CHUNK_SIZE); min_t 85 drivers/staging/vt6656/usbpipe.c u16 len = min_t(int, length - i, block); min_t 432 drivers/staging/wlan-ng/prism2mgmt.c req->ssid.data.len = min_t(u16, req->ssid.data.len, WLAN_SSID_MAXLEN); min_t 449 drivers/staging/wusbcore/host/whci/qset.c dma_remaining = min_t(size_t, sg_dma_len(sg), remaining); min_t 570 drivers/staging/wusbcore/host/whci/qset.c sg_remaining = min_t(size_t, remaining, sg->length); min_t 328 drivers/staging/wusbcore/wa-rpipe.c rpipe->descr.hwa_bMaxBurst = max(min_t(unsigned int, min_t 350 drivers/staging/wusbcore/wa-rpipe.c epcd_max_sequence = max(min_t(unsigned int, min_t 65 drivers/staging/wusbcore/wusbhc.c wusbhc->trust_timeout = min_t(unsigned, trust_timeout, 500); min_t 54 drivers/target/iscsi/cxgbit/cxgbit.h min_t(u32, MAX_SKB_FRAGS * PAGE_SIZE, 65535) min_t 38 drivers/target/iscsi/cxgbit/cxgbit_main.c mdsl = min_t(u32, lldi->iscsi_iolen - ISCSI_PDU_NONPAYLOAD_LEN, min_t 40 drivers/target/iscsi/cxgbit/cxgbit_main.c mdsl = min_t(u32, mdsl, 8192); min_t 41 drivers/target/iscsi/cxgbit/cxgbit_main.c mdsl = min_t(u32, mdsl, (MAX_SKB_FRAGS - 1) * PAGE_SIZE); min_t 376 drivers/target/iscsi/cxgbit/cxgbit_target.c u32 cur_len = min_t(u32, data_length, sg->length - page_off); min_t 915 drivers/target/iscsi/iscsi_target.c cur_len = min_t(u32, data_length, sg->length - page_off); min_t 1390 drivers/target/iscsi/iscsi_target.c u32 cur_len = min_t(u32, data_length, (sg->length - page_off)); min_t 1580 drivers/target/iscsi/iscsi_target.c payload_length = min_t(u32, cmd->se_cmd.data_length, min_t 1138 drivers/target/iscsi/iscsi_target_util.c u32 sub_len = min_t(u32, data_len, space); min_t 1120 drivers/target/sbp/sbp_target.c min_t(int, cmd_len, sizeof(req->orb.command_block))); min_t 510 drivers/target/target_core_file.c sector_t len = min_t(sector_t, bufsize, prot_length - prot); min_t 642 drivers/target/target_core_iblock.c min_t(unsigned int, cmd->t_prot_nents, BIO_MAX_PAGES)); min_t 659 drivers/target/target_core_iblock.c len = min_t(size_t, miter->length, resid); min_t 879 drivers/target/target_core_pscsi.c bytes = min_t(unsigned int, len, PAGE_SIZE - off); min_t 884 drivers/target/target_core_pscsi.c nr_vecs = min_t(int, BIO_MAX_PAGES, nr_pages); min_t 66 drivers/target/target_core_sbc.c memcpy(rbuf, buf, min_t(u32, sizeof(buf), cmd->data_length)); min_t 129 drivers/target/target_core_sbc.c memcpy(rbuf, buf, min_t(u32, sizeof(buf), cmd->data_length)); min_t 751 drivers/target/target_core_spc.c memcpy(rbuf, buf, min_t(u32, SE_INQUIRY_BUF, cmd->data_length)); min_t 1098 drivers/target/target_core_spc.c memcpy(rbuf, buf, min_t(u32, SE_MODE_PAGE_BUF, cmd->data_length)); min_t 1193 drivers/target/target_core_spc.c memcpy(rbuf, buf, min_t(u32, sizeof(buf), cmd->data_length)); min_t 1259 drivers/target/target_core_spc.c memcpy(buf, &len, min_t(int, sizeof len, cmd->data_length)); min_t 699 drivers/target/target_core_user.c copy_bytes = min_t(size_t, sg_remaining, min_t 782 drivers/target/target_core_user.c copy_bytes = min_t(size_t, sg_remaining, min_t 753 drivers/target/target_core_xcopy.c max_sectors = min_t(u32, max_sectors, XCOPY_MAX_SECTORS); min_t 755 drivers/target/target_core_xcopy.c max_nolb = min_t(u16, max_sectors, ((u16)(~0U))); min_t 297 drivers/thermal/samsung/exynos_tmu.c min_t(int, of_thermal_get_ntrips(tzd), data->ntrip); min_t 373 drivers/thunderbolt/dma_port.c u32 nbytes = min_t(u32, size, MAIL_DATA_DWORDS * 4); min_t 424 drivers/thunderbolt/dma_port.c u32 nbytes = min_t(u32, size, MAIL_DATA_DWORDS * 4); min_t 404 drivers/thunderbolt/xdomain.c len = min_t(u16, len, TB_XDP_PROPERTIES_MAX_DATA_LENGTH); min_t 1403 drivers/tty/amiserial.c char_time = min_t(unsigned long, char_time, timeout); min_t 962 drivers/tty/cyclades.c len = min_t(unsigned int, min(len, char_count), min_t 1046 drivers/tty/cyclades.c while (0 < (small_count = min_t(unsigned int, min_t 1047 drivers/tty/cyclades.c tx_bufsize - tx_put, min_t(unsigned int, min_t 1049 drivers/tty/cyclades.c min_t(unsigned int, info->xmit_cnt, min_t 237 drivers/tty/ehv_bytechan.c len = min_t(unsigned int, count, EV_BYTE_CHANNEL_MAX_BYTES); min_t 369 drivers/tty/ehv_bytechan.c len = min_t(unsigned int, count, sizeof(buffer)); min_t 415 drivers/tty/ehv_bytechan.c len = min_t(unsigned int, min_t 270 drivers/tty/hvc/hvc_iucv.c written = min_t(int, rb->mbuf->datalen - rb->offset, count); min_t 367 drivers/tty/hvc/hvc_iucv.c len = min_t(size_t, count, SNDBUF_SIZE - priv->sndbuf_len); min_t 437 drivers/tty/isicom.c txcount = min_t(short, TX_SIZE, port->xmit_cnt); min_t 451 drivers/tty/isicom.c cnt = min_t(int, txcount, (SERIAL_XMIT_SIZE min_t 946 drivers/tty/isicom.c cnt = min_t(int, count, min(SERIAL_XMIT_SIZE - port->xmit_cnt min_t 428 drivers/tty/mips_ejtag_fdc.c sizes[0] = min_t(unsigned int, min_t 437 drivers/tty/mips_ejtag_fdc.c min_t(int, word.bytes, sizes[0]), ptrs[0], min_t 1107 drivers/tty/mxser.c c = min_t(int, count, min(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, min_t 1518 drivers/tty/n_tty.c n = min_t(size_t, count, N_TTY_BUF_SIZE - head); min_t 1525 drivers/tty/n_tty.c n = min_t(size_t, count, N_TTY_BUF_SIZE - head); min_t 2035 drivers/tty/n_tty.c size = min_t(size_t, tail + n, N_TTY_BUF_SIZE); min_t 79 drivers/tty/nozomi.c u32 data_len = min_t(u32, len__, TMP_BUF_MAX); \ min_t 698 drivers/tty/serial/ar933x_uart.c up->max_baud = min_t(unsigned int, baud, AR933X_UART_MAX_BAUD); min_t 723 drivers/tty/serial/msm_serial.c r_count = min_t(int, count, sizeof(buf)); min_t 596 drivers/tty/serial/mxs-auart.c size = min_t(u32, UART_XMIT_SIZE - i, min_t 408 drivers/tty/serial/qcom_geni_serial.c chars_to_write = min_t(size_t, count - i, avail / 2); min_t 487 drivers/tty/serial/qcom_geni_serial.c int chunk = min_t(int, bytes - i, port->rx_bytes_pw); min_t 730 drivers/tty/serial/qcom_geni_serial.c tx_bytes = min_t(size_t, remaining, port->tx_bytes_pw); min_t 645 drivers/tty/serial/rp2.c for (i = 0; i < min_t(int, fw->size, RP2_UCODE_BYTES); i++) min_t 1419 drivers/tty/serial/sh-sci.c s->tx_dma_len = min_t(unsigned int, min_t 2174 drivers/tty/synclink.c c = min_t(int, count, min_t 3143 drivers/tty/synclink.c char_time = min_t(unsigned long, char_time, timeout); min_t 6529 drivers/tty/synclink.c min_t(int, framesize, DMABUFFERSIZE),0); min_t 6740 drivers/tty/synclink.c min_t(int, framesize, DMABUFFERSIZE),0); min_t 6798 drivers/tty/synclink.c mgsl_trace_block(info,Buffer, min_t(int, BufferSize, DMABUFFERSIZE), 1); min_t 914 drivers/tty/synclink_gt.c char_time = min_t(unsigned long, char_time, timeout); min_t 4694 drivers/tty/synclink_gt.c DBGDATA(info, info->rbufs[start].buf, min_t(int, framesize, info->rbuf_fill_level), "rx"); min_t 4714 drivers/tty/synclink_gt.c int partial_count = min_t(int, copy_count, info->rbuf_fill_level); min_t 944 drivers/tty/synclinkmp.c c = min_t(int, count, min_t 1083 drivers/tty/synclinkmp.c char_time = min_t(unsigned long, char_time, timeout); min_t 4936 drivers/tty/synclinkmp.c min_t(unsigned int, framesize, SCABUFSIZE), 0); min_t 5001 drivers/tty/synclinkmp.c trace_block(info, buf, min_t(unsigned int, count, SCABUFSIZE), 1); min_t 5008 drivers/tty/synclinkmp.c copy_count = min_t(unsigned int, count, SCABUFSIZE); min_t 316 drivers/tty/tty_buffer.c int goal = min_t(size_t, size - copied, TTY_BUFFER_PAGE); min_t 352 drivers/tty/tty_buffer.c int goal = min_t(size_t, size - copied, TTY_BUFFER_PAGE); min_t 463 drivers/tty/tty_buffer.c count = min_t(int, count, ld->tty->receive_room); min_t 200 drivers/tty/vt/selection.c v->xs = min_t(u16, v->xs - 1, vc->vc_cols - 1); min_t 201 drivers/tty/vt/selection.c v->ys = min_t(u16, v->ys - 1, vc->vc_rows - 1); min_t 202 drivers/tty/vt/selection.c v->xe = min_t(u16, v->xe - 1, vc->vc_cols - 1); min_t 203 drivers/tty/vt/selection.c v->ye = min_t(u16, v->ye - 1, vc->vc_rows - 1); min_t 645 drivers/usb/atm/cxacru.c memcpy(wbuf + offb + 4, wdata + offd, min_t(int, stride, wsize - offd)); min_t 697 drivers/usb/atm/cxacru.c memcpy(rdata + offd, rbuf + offb + 4, min_t(int, stride, rsize - offd)); min_t 953 drivers/usb/atm/cxacru.c int l = min_t(int, stride, size - offd); min_t 269 drivers/usb/atm/speedtch.c int thislen = min_t(int, PAGE_SIZE, fw1->size - offset); min_t 296 drivers/usb/atm/speedtch.c int thislen = min_t(int, PAGE_SIZE, fw2->size - offset); min_t 465 drivers/usb/atm/usbatm.c unsigned int data_len = min_t(unsigned int, skb->len, ATM_CELL_PAYLOAD); min_t 215 drivers/usb/c67x00/c67x00-hcd.c len = min_t(unsigned int, sizeof(c67x00_hub_des), wLength); min_t 83 drivers/usb/chipidea/debug.c count = min_t(size_t, sizeof(buf) - 1, count); min_t 269 drivers/usb/chipidea/debug.c if (copy_from_user(buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) min_t 238 drivers/usb/common/common.c otg_caps->otg_rev = min_t(u16, otg_rev, min_t 1408 drivers/usb/core/hub.c maxchild = min_t(unsigned, maxchild, USB_SS_MAXPORTS); min_t 1431 drivers/usb/core/hub.c hdev->hub_delay = min_t(u32, delay, USB_TP_TRANSMISSION_DELAY_MAX); min_t 4797 drivers/usb/core/hub.c udev->hub_delay = min_t(u32, delay, min_t 448 drivers/usb/core/message.c len = min_t(size_t, len, length); min_t 36 drivers/usb/dwc2/debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) min_t 237 drivers/usb/dwc2/gadget.c np_tx_fifo_size = min_t(u32, hsotg->hw_params.dev_nperio_tx_fifo_size, min_t 856 drivers/usb/dwc2/hcd_queue.c (first_data_bytes != min_t(int, 188, bytecount))) { min_t 921 drivers/usb/dwc2/hcd_queue.c middle_count = min_t(int, 188, bytecount); min_t 926 drivers/usb/dwc2/hcd_queue.c middle_count = min_t(int, 188, min_t 366 drivers/usb/dwc3/debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) min_t 428 drivers/usb/dwc3/debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) min_t 505 drivers/usb/dwc3/debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) min_t 580 drivers/usb/dwc3/debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) min_t 1944 drivers/usb/dwc3/gadget.c nump = min_t(u32, nump, 16); min_t 1649 drivers/usb/gadget/composite.c value = min_t(int, w_length, min_t 1697 drivers/usb/gadget/composite.c value = min_t(int, w_length, otg_desc_len); min_t 1857 drivers/usb/gadget/composite.c w_length = min_t(u16, w_length, USB_COMP_EP0_OS_DESC_BUFSIZ); min_t 1874 drivers/usb/gadget/composite.c value = min_t(u16, w_length, value); min_t 1893 drivers/usb/gadget/composite.c value = min_t(u16, w_length, value); min_t 1104 drivers/usb/gadget/configfs.c l = min_t(int, 8, len); min_t 1130 drivers/usb/gadget/configfs.c l = min_t(int, 8, len); min_t 374 drivers/usb/gadget/function/f_acm.c value = min_t(unsigned, w_length, min_t 285 drivers/usb/gadget/function/f_hid.c count = min_t(unsigned int, count, req->actual - list->pos); min_t 364 drivers/usb/gadget/function/f_hid.c count = min_t(unsigned, count, hidg->report_length); min_t 518 drivers/usb/gadget/function/f_hid.c length = min_t(unsigned, length, hidg->report_length); min_t 527 drivers/usb/gadget/function/f_hid.c length = min_t(unsigned int, length, 1); min_t 567 drivers/usb/gadget/function/f_hid.c length = min_t(unsigned short, length, min_t 575 drivers/usb/gadget/function/f_hid.c length = min_t(unsigned short, length, min_t 2963 drivers/usb/gadget/function/f_mass_storage.c max_burst = min_t(unsigned, FSG_BUFLEN / 1024, 15); min_t 974 drivers/usb/gadget/function/f_printer.c value = min_t(u16, wLength, 1); min_t 450 drivers/usb/gadget/function/f_uac1_legacy.c len = min_t(size_t, sizeof(value), len); min_t 469 drivers/usb/gadget/function/f_uac2.c ep_desc->wMaxPacketSize = cpu_to_le16(min_t(u16, max_packet_size, min_t 838 drivers/usb/gadget/function/f_uac2.c value = min_t(unsigned, w_length, sizeof c); min_t 842 drivers/usb/gadget/function/f_uac2.c value = min_t(unsigned, w_length, 1); min_t 883 drivers/usb/gadget/function/f_uac2.c value = min_t(unsigned, w_length, sizeof r); min_t 446 drivers/usb/gadget/function/u_audio.c uac->p_pktsize = min_t(unsigned int, rate / uac->p_interval, min_t 41 drivers/usb/gadget/function/uvc_v4l2.c req->length = min_t(unsigned int, uvc->event_length, data->length); min_t 1132 drivers/usb/gadget/legacy/inode.c len = min_t(size_t, len, dev->setup_wLength); min_t 332 drivers/usb/gadget/udc/aspeed-vhub/hub.c return ast_vhub_reply(ep, NULL, min_t(u16, rc, len)); min_t 622 drivers/usb/gadget/udc/bcm63xx_udc.c n_bytes = min_t(int, bytes_left, max_bd_bytes); min_t 1354 drivers/usb/gadget/udc/dummy_hcd.c this_sg = min_t(u32, len, miter->length); min_t 1419 drivers/usb/gadget/udc/dummy_hcd.c len = min_t(unsigned, len, limit); min_t 1746 drivers/usb/gadget/udc/dummy_hcd.c urb->actual_length = min_t(u32, 2, min_t 1138 drivers/usb/gadget/udc/fsl_qe_udc.c last_len = min_t(unsigned, req->req.length - ep->sent, min_t 1188 drivers/usb/gadget/udc/fsl_qe_udc.c size = min_t(u32, (ep->tx_req->req.length - ep->sent), min_t 1081 drivers/usb/gadget/udc/renesas_usb3.c int len = min_t(unsigned, usb3_req->req.length - usb3_req->req.actual, min_t 1127 drivers/usb/gadget/udc/renesas_usb3.c int len = min_t(unsigned, usb3_req->req.length - usb3_req->req.actual, min_t 1311 drivers/usb/gadget/udc/renesas_usb3.c len = min_t(u32, remain, USB3_DMA_MAX_XFER_SIZE) & min_t 1565 drivers/usb/gadget/udc/renesas_usb3.c min_t(size_t, len, USB3_EP0_BUF_SIZE)); min_t 2507 drivers/usb/gadget/udc/renesas_usb3.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) min_t 1021 drivers/usb/gadget/udc/udc-xilinx.c length = req->usb_req.actual = min_t(u32, length, min_t 1899 drivers/usb/gadget/udc/udc-xilinx.c length = count = min_t(u32, bytes_to_tx, min_t 636 drivers/usb/host/ehci-q.c this_sg_len = min_t(int, sg_dma_len(sg), len); min_t 680 drivers/usb/host/ehci-q.c this_sg_len = min_t(int, sg_dma_len(sg), len); min_t 828 drivers/usb/host/ehci-q.c tmp = min_t(unsigned, EHCI_BANDWIDTH_SIZE, min_t 832 drivers/usb/host/ehci-q.c qh->ps.bw_uperiod = min_t(unsigned, tmp, urb->interval); min_t 859 drivers/usb/host/ehci-q.c tmp = min_t(unsigned, EHCI_BANDWIDTH_FRAMES, min_t 864 drivers/usb/host/ehci-q.c qh->ps.bw_period = min_t(unsigned, tmp, urb->interval); min_t 1072 drivers/usb/host/ehci-sched.c tmp = min_t(unsigned, EHCI_BANDWIDTH_SIZE, min_t 1076 drivers/usb/host/ehci-sched.c stream->ps.bw_uperiod = min_t(unsigned, tmp, urb->interval); min_t 1115 drivers/usb/host/ehci-sched.c tmp = min_t(unsigned, EHCI_BANDWIDTH_FRAMES, min_t 1119 drivers/usb/host/ehci-sched.c stream->ps.bw_period = min_t(unsigned, tmp, urb->interval); min_t 2593 drivers/usb/host/fotg210-hcd.c this_sg_len = min_t(int, sg_dma_len(sg), len); min_t 2637 drivers/usb/host/fotg210-hcd.c this_sg_len = min_t(int, sg_dma_len(sg), len); min_t 4989 drivers/usb/host/fotg210-hcd.c park = min_t(unsigned, park, 3); min_t 777 drivers/usb/host/isp116x-hcd.c ep->length = min_t(u32, ep->maxpacket, min_t 177 drivers/usb/host/isp1362-hcd.c u16 xfer_size = min_t(size_t, MAX_XFER_SIZE, size); min_t 179 drivers/usb/host/isp1362-hcd.c xfer_size = min_t(size_t, xfer_size, epq->buf_avail * epq->blk_size - PTD_HEADER_SIZE); min_t 281 drivers/usb/host/isp1362-hcd.c len = min_t(size_t, ep->maxpacket, buf_len); min_t 283 drivers/usb/host/isp1362-hcd.c len = min_t(size_t, urb->iso_frame_desc[fno].length, MAX_XFER_SIZE); min_t 294 drivers/usb/host/isp1362-hcd.c len = min_t(size_t, ep->maxpacket, buf_len); min_t 296 drivers/usb/host/isp1362-hcd.c len = min_t(size_t, urb->iso_frame_desc[0].length, MAX_XFER_SIZE); min_t 129 drivers/usb/host/ohci-hcd.c this_sg_len = min_t(int, sg_dma_len(sg), len); min_t 627 drivers/usb/host/ohci-q.c this_sg_len = min_t(int, sg_dma_len(sg), data_len); min_t 675 drivers/usb/host/ohci-q.c this_sg_len = min_t(int, sg_dma_len(sg), min_t 1415 drivers/usb/host/r8a66597-hcd.c size = min_t(u32, bufsize, min_t 226 drivers/usb/host/sl811-hcd.c ep->length = min_t(u32, len, min_t 251 drivers/usb/host/sl811-hcd.c len = min_t(u32, ep->maxpacket, min_t 409 drivers/usb/host/uhci-hub.c retval = min_t(unsigned int, sizeof(root_hub_hub_des), wLength); min_t 633 drivers/usb/host/uhci-q.c int max_phase = min_t(int, MAX_PHASE, qh->period); min_t 953 drivers/usb/host/uhci-q.c this_sg_len = min_t(int, sg_dma_len(sg), len); min_t 996 drivers/usb/host/uhci-q.c this_sg_len = min_t(int, sg_dma_len(sg), len); min_t 1528 drivers/usb/host/uhci-q.c urb->actual_length -= min_t(u32, 8, urb->actual_length); min_t 365 drivers/usb/host/xhci-debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) min_t 3085 drivers/usb/host/xhci-ring.c len = min_t(unsigned int, len, full_len); min_t 3357 drivers/usb/host/xhci-ring.c trb_buff_len = min_t(unsigned int, trb_buff_len, block_len); min_t 1636 drivers/usb/misc/ftdi-elan.c command->follows = min_t(u32, 1024, min_t 663 drivers/usb/misc/legousbtower.c bytes_to_write = min_t(int, count, write_buffer_size); min_t 518 drivers/usb/misc/usb251xb.c hub->max_power_sp = min_t(u8, property_u32 / 2000, 50); min_t 523 drivers/usb/misc/usb251xb.c hub->max_power_bp = min_t(u8, property_u32 / 2000, 255); min_t 528 drivers/usb/misc/usb251xb.c hub->max_current_sp = min_t(u8, property_u32 / 2000, 50); min_t 533 drivers/usb/misc/usb251xb.c hub->max_current_bp = min_t(u8, property_u32 / 2000, 255); min_t 537 drivers/usb/misc/usb251xb.c hub->power_on_time = min_t(u8, property_u32 / 2, 255); min_t 547 drivers/usb/misc/usb251xb.c len = min_t(size_t, USB251XB_STRING_BUFSIZE / 2, strlen(str)); min_t 556 drivers/usb/misc/usb251xb.c len = min_t(size_t, USB251XB_STRING_BUFSIZE / 2, strlen(str)); min_t 566 drivers/usb/misc/usb251xb.c len = min_t(size_t, USB251XB_STRING_BUFSIZE / 2, strlen(str)); min_t 431 drivers/usb/mon/mon_bin.c this_len = min_t(unsigned int, sg->length, length); min_t 174 drivers/usb/mon/mon_text.c len = min_t(int, sg->length, len); min_t 324 drivers/usb/mtu3/mtu3_debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) min_t 452 drivers/usb/mtu3/mtu3_debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) min_t 500 drivers/usb/mtu3/mtu3_debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) min_t 461 drivers/usb/musb/musb_cppi41.c len = min_t(u32, packet_sz, len); min_t 173 drivers/usb/musb/musb_debugfs.c if (copy_from_user(buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) min_t 273 drivers/usb/musb/musb_debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) min_t 276 drivers/usb/musb/musb_gadget.c request_size = min_t(size_t, request->length - request->actual, min_t 647 drivers/usb/musb/musb_gadget.c transfer_size = min_t(unsigned int, min_t 690 drivers/usb/musb/musb_gadget.c transfer_size = min_t(unsigned int, min_t 695 drivers/usb/musb/musb_gadget.c transfer_size = min_t(unsigned int, min_t 731 drivers/usb/musb/musb_gadget.c fifo_count = min_t(unsigned, len, fifo_count); min_t 849 drivers/usb/musb/musb_host.c load_count = min_t(u32, load_count, min_t 1016 drivers/usb/musb/musb_host.c fifo_count = min_t(size_t, len, urb->transfer_buffer_length - min_t 1050 drivers/usb/musb/musb_host.c fifo_count = min_t(size_t, qh->maxpacket, min_t 1473 drivers/usb/musb/musb_host.c length = min_t(u32, length, qh->sg_miter.length); min_t 2248 drivers/usb/musb/musb_host.c interval = min_t(u8, epd->bInterval, 16); min_t 130 drivers/usb/serial/aircable.c len = min_t(int, urb->actual_length - i, HCI_COMPLETE_FRAME); min_t 437 drivers/usb/serial/f81534.c read_size = min_t(size_t, F81534_MAX_DATA_BLOCK, size); min_t 2462 drivers/usb/serial/ftdi_sio.c len = min_t(int, size - i, priv->max_packet_size) - 1; min_t 2584 drivers/usb/serial/ftdi_sio.c len = min_t(int, urb->actual_length - i, priv->max_packet_size); min_t 284 drivers/usb/serial/generic.c period = min_t(unsigned long, period, timeout); min_t 1025 drivers/usb/serial/mxuport.c txlen = min_t(size_t, (fw_p->size - fwidx), DOWN_BLOCK_SIZE); min_t 149 drivers/usb/serial/omninet.c data_len = min_t(size_t, urb->actual_length - OMNINET_HEADERLEN, min_t 161 drivers/usb/serial/omninet.c count = min_t(size_t, count, OMNINET_PAYLOADSIZE); min_t 515 drivers/usb/serial/pl2303.c baud = min_t(speed_t, baud, spriv->type->max_baud_rate); min_t 140 drivers/usb/storage/debug.c usb_stor_dbg(us, "bytes: %*ph\n", min_t(int, srb->cmd_len, 16), min_t 142 drivers/usb/storage/protocol.c unsigned int len = min_t(unsigned int, miter.length, min_t 130 drivers/usb/storage/scsiglue.c min_t(size_t, queue_max_hw_sectors(sdev->request_queue), min_t 229 drivers/usb/typec/ucsi/ucsi_ccg.c rlen = min_t(u16, rem_len, max_read_len); min_t 162 drivers/usb/usbip/vudc_dev.c udc->gadget.speed = min_t(u8, USB_SPEED_HIGH, min_t 172 drivers/usb/usbip/vudc_transfer.c urb->actual_length = min_t(u32, 2, min_t 591 drivers/vhost/net.c min_t(unsigned int, VHOST_MAX_PEND, vq->num >> 2); min_t 642 drivers/vhost/scsi.c unsigned n = min_t(unsigned, PAGE_SIZE - offset, bytes); min_t 199 drivers/video/backlight/lp8788_bl.c init_brt = min_t(int, pdata->initial_brightness, min_t 113 drivers/video/backlight/lv5207lp.c props.max_brightness = min_t(unsigned int, pdata->max_value, min_t 461 drivers/video/fbdev/atmel_lcdfb.c var->vsync_len = min_t(u32, var->vsync_len, min_t 463 drivers/video/fbdev/atmel_lcdfb.c var->upper_margin = min_t(u32, var->upper_margin, min_t 465 drivers/video/fbdev/atmel_lcdfb.c var->lower_margin = min_t(u32, var->lower_margin, min_t 467 drivers/video/fbdev/atmel_lcdfb.c var->right_margin = min_t(u32, var->right_margin, min_t 469 drivers/video/fbdev/atmel_lcdfb.c var->hsync_len = min_t(u32, var->hsync_len, min_t 471 drivers/video/fbdev/atmel_lcdfb.c var->left_margin = min_t(u32, var->left_margin, min_t 2393 drivers/video/fbdev/aty/radeon_base.c rinfo->mapped_vram = min_t(unsigned long, MAX_MAPPED_VRAM, rinfo->video_ram); min_t 178 drivers/video/fbdev/core/fbcmap.c size = min_t(size_t, to->len - tooff, from->len - fromoff); min_t 203 drivers/video/fbdev/core/fbcmap.c size = min_t(size_t, to->len - tooff, from->len - fromoff); min_t 300 drivers/video/fbdev/ep93xx-fb.c var->xres = min_t(unsigned int, var->xres, EP93XXFB_MAX_XRES); min_t 304 drivers/video/fbdev/ep93xx-fb.c var->yres = min_t(unsigned int, var->yres, EP93XXFB_MAX_YRES); min_t 165 drivers/video/fbdev/omap2/omapfb/vrfb.c return min_t(unsigned long, height, 2048); min_t 270 drivers/virt/fsl_hypervisor.c sg_list[0].size = min_t(uint64_t, param.count, PAGE_SIZE - lb_offset); min_t 285 drivers/virt/fsl_hypervisor.c sg_list[i].size = min_t(uint64_t, count, PAGE_SIZE); min_t 34 drivers/w1/slaves/w1_ds2780.c count = min_t(int, count, DS2780_DATA_SIZE - addr); min_t 31 drivers/w1/slaves/w1_ds2781.c count = min_t(int, count, DS2781_DATA_SIZE - addr); min_t 189 drivers/watchdog/meson_wdt.c meson_wdt->wdt_dev.timeout = min_t(unsigned int, min_t 994 drivers/xen/grant-table.c len = min_t(unsigned int, PAGE_SIZE - offset, len); min_t 1000 drivers/xen/grant-table.c glen = min_t(unsigned int, XEN_PAGE_SIZE - goffset, len); min_t 343 drivers/xen/xen-scsiback.c len = min_t(unsigned, 8 + sense_buffer[7], min_t 109 drivers/xen/xlate_mmu.c nr_gfn = min_t(typeof(info->nr_fgfn), XEN_PFN_PER_PAGE, info->nr_fgfn); min_t 89 fs/afs/cell.c min_t(size_t, cell->name_len, namesz)); min_t 268 fs/afs/cell.c min_t(size_t, cursor->name_len, namesz)); min_t 289 fs/afs/rxrpc.c nr = min_t(pgoff_t, last - first + 1, AFS_BVEC_MAX); min_t 1225 fs/aio.c avail = min_t(long, avail, AIO_EVENTS_PER_PAGE - pos); min_t 715 fs/befs/btree.c int len = min_t(int, keylen1, keylen2); min_t 1563 fs/btrfs/block-group.c len = min_t(u64, stripe_len, min_t 296 fs/btrfs/block-rsv.c block_rsv->size = min_t(u64, num_bytes, SZ_512M); min_t 226 fs/btrfs/compression.c min_t(unsigned long, min_t 1160 fs/btrfs/compression.c bytes = min_t(unsigned long, bvec.bv_len, min_t 2165 fs/btrfs/disk-io.c min_t(u64, fs_devices->num_devices, min_t 2698 fs/btrfs/disk-io.c fs_info->thread_pool_size = min_t(unsigned long, min_t 3727 fs/btrfs/disk-io.c min_tolerated = min_t(int, min_tolerated, min_t 3736 fs/btrfs/disk-io.c min_tolerated = min_t(int, min_tolerated, min_t 4617 fs/btrfs/extent-tree.c wc->reada_count = min_t(int, wc->reada_count, min_t 1890 fs/btrfs/extent_io.c min_t(unsigned long, min_t 2948 fs/btrfs/extent_io.c size_t page_size = min_t(size_t, size, PAGE_SIZE); min_t 3379 fs/btrfs/extent_io.c wbc->nr_to_write = min_t(u64, delalloc_to_write, min_t 6028 fs/btrfs/extent_io.c cur = min_t(unsigned long, cur, min_t 6076 fs/btrfs/extent_io.c cur = min_t(unsigned long, len, src_off_in_page + 1); min_t 560 fs/btrfs/extent_map.c end = min_t(u64, end, extent_map_end(em)); min_t 23 fs/btrfs/file-item.c #define MAX_CSUM_ITEMS(r, size) (min_t(u32, __MAX_CSUM_ITEMS(r, size), \ min_t 268 fs/btrfs/file-item.c count = min_t(int, nblocks, (item_last_offset - disk_bytenr) >> min_t 383 fs/btrfs/file-item.c size = min_t(size_t, csum_end - start, min_t 889 fs/btrfs/file-item.c tmp = min_t(u64, tmp, MAX_CSUM_ITEMS(fs_info, csum_size)); min_t 913 fs/btrfs/file-item.c ins_size = min_t(u32, (unsigned long)item_end - (unsigned long)item, min_t 406 fs/btrfs/file.c size_t count = min_t(size_t, min_t 1576 fs/btrfs/file.c *write_bytes = min_t(size_t, *write_bytes , min_t 3296 fs/btrfs/file.c actual_end = min_t(u64, extent_map_end(em), offset + len); min_t 3423 fs/btrfs/file.c *offset = min_t(loff_t, start, inode->i_size); min_t 1695 fs/btrfs/free-space-cache.c extent_bytes = min_t(u64, extent_bytes, max_bytes >> 1); min_t 220 fs/btrfs/inode.c cur_size = min_t(unsigned long, compressed_size, min_t 326 fs/btrfs/inode.c inline_len = min_t(u64, isize, actual_end); min_t 504 fs/btrfs/inode.c actual_end = min_t(u64, i_size, end + 1); min_t 509 fs/btrfs/inode.c nr_pages = min_t(unsigned long, nr_pages, min_t 535 fs/btrfs/inode.c total_compressed = min_t(unsigned long, total_compressed, min_t 6988 fs/btrfs/inode.c max_size = min_t(unsigned long, PAGE_SIZE, max_size); min_t 7181 fs/btrfs/inode.c copy_size = min_t(u64, PAGE_SIZE - pg_offset, min_t 7860 fs/btrfs/inode.c len = min_t(u64, len, fs_info->sectorsize); min_t 8539 fs/btrfs/inode.c clone_len = min_t(int, submit_len, geom.len); min_t 10498 fs/btrfs/inode.c cur_bytes = min_t(u64, num_bytes, SZ_256M); min_t 514 fs/btrfs/ioctl.c minlen = min_t(u64, q->limits.discard_granularity, min_t 1257 fs/btrfs/ioctl.c page_cnt = min_t(u64, (u64)num_pages, (u64)file_end - start_index + 1); min_t 1448 fs/btrfs/ioctl.c last_index = min_t(u64, isize - 1, min_t 4111 fs/btrfs/ioctl.c slot_count = min_t(u64, space_args.space_slots, slot_count); min_t 4406 fs/btrfs/ioctl.c size = min_t(u32, ipa->size, 4096); min_t 4478 fs/btrfs/ioctl.c size = min_t(u32, loi->size, SZ_64K); min_t 4491 fs/btrfs/ioctl.c size = min_t(u32, loi->size, SZ_16M); min_t 209 fs/btrfs/lzo.c bytes = min_t(unsigned long, pg_bytes_left, out_len); min_t 342 fs/btrfs/lzo.c if (tot_len > min_t(size_t, BTRFS_MAX_COMPRESSED, srclen) || min_t 492 fs/btrfs/lzo.c destlen = min_t(unsigned long, destlen, PAGE_SIZE); min_t 493 fs/btrfs/lzo.c bytes = min_t(unsigned long, destlen, out_len - start_byte); min_t 903 fs/btrfs/ordered-data.c new_i_size = min_t(u64, offset, i_size); min_t 910 fs/btrfs/ordered-data.c new_i_size = min_t(u64, ordered->outstanding_isize, i_size); min_t 957 fs/btrfs/ordered-data.c num_sectors = min_t(int, len - index, num_sectors - i); min_t 2861 fs/btrfs/qgroup.c threshold = min_t(u64, qg->max_excl / QGROUP_FREE_RATIO, min_t 2865 fs/btrfs/qgroup.c threshold = min_t(u64, qg->max_rfer / QGROUP_FREE_RATIO, min_t 3619 fs/btrfs/qgroup.c num_bytes = min_t(u64, root->qgroup_meta_rsv_prealloc, min_t 3623 fs/btrfs/qgroup.c num_bytes = min_t(u64, root->qgroup_meta_rsv_pertrans, min_t 31 fs/btrfs/root-tree.c min_t(u32, len, sizeof(*item))); min_t 1294 fs/btrfs/scrub.c sublen = min_t(u64, length, PAGE_SIZE); min_t 1814 fs/btrfs/scrub.c u64 l = min_t(u64, len, PAGE_SIZE); min_t 1884 fs/btrfs/scrub.c u64 l = min_t(u64, len, mapped_size); min_t 1947 fs/btrfs/scrub.c u64 l = min_t(u64, len, mapped_size); min_t 2245 fs/btrfs/scrub.c u64 l = min_t(u64, len, PAGE_SIZE); min_t 2503 fs/btrfs/scrub.c u64 l = min_t(u64, len, blocksize); min_t 2552 fs/btrfs/scrub.c u64 l = min_t(u64, len, PAGE_SIZE); min_t 2634 fs/btrfs/scrub.c u64 l = min_t(u64, len, blocksize); min_t 4825 fs/btrfs/send.c unsigned cur_len = min_t(unsigned, len, min_t 5044 fs/btrfs/send.c end = min_t(u64, end, sctx->cur_inode_size); min_t 5057 fs/btrfs/send.c len = min_t(u64, end - offset, BTRFS_SEND_READ_SIZE); min_t 5262 fs/btrfs/send.c clone_len = min_t(u64, ext_len, len); min_t 646 fs/btrfs/space-info.c to_reclaim = min_t(u64, num_online_cpus() * SZ_1M, SZ_16M); min_t 641 fs/btrfs/super.c info->max_inline = min_t(u64, min_t 1301 fs/btrfs/super.c if (info->thread_pool_size != min_t(unsigned long, min_t 33 fs/btrfs/tests/extent-io-tests.c min_t(unsigned long, nr_pages, min_t 5019 fs/btrfs/volumes.c devs_max = min_t(int, devs_max, BTRFS_MAX_DEVS_SYS_CHUNK); min_t 5673 fs/btrfs/volumes.c length = min_t(u64, em->len - offset, length); min_t 5705 fs/btrfs/volumes.c num_stripes = min_t(u64, map->num_stripes, min_t 6039 fs/btrfs/volumes.c len = min_t(u64, em->len - offset, max_len); min_t 248 fs/btrfs/zlib.c workspace->strm.avail_in = min_t(size_t, srclen, PAGE_SIZE); min_t 335 fs/btrfs/zlib.c destlen = min_t(unsigned long, destlen, PAGE_SIZE); min_t 409 fs/btrfs/zstd.c workspace->in_buf.size = min_t(size_t, len, PAGE_SIZE); min_t 421 fs/btrfs/zstd.c workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); min_t 468 fs/btrfs/zstd.c workspace->out_buf.size = min_t(size_t, max_out, min_t 489 fs/btrfs/zstd.c workspace->in_buf.size = min_t(size_t, len, PAGE_SIZE); min_t 528 fs/btrfs/zstd.c workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); min_t 575 fs/btrfs/zstd.c workspace->in_buf.size = min_t(size_t, srclen, PAGE_SIZE); min_t 618 fs/btrfs/zstd.c workspace->in_buf.size = min_t(size_t, srclen, PAGE_SIZE); min_t 650 fs/btrfs/zstd.c destlen = min_t(size_t, destlen, PAGE_SIZE); min_t 694 fs/btrfs/zstd.c bytes = min_t(unsigned long, destlen - pg_offset, min_t 2195 fs/buffer.c to = min_t(unsigned, PAGE_SIZE - from, count); min_t 1772 fs/ceph/dir.c size = min_t(unsigned, size, dfi->dir_info_len-*ppos); min_t 107 fs/ceph/file.c .bv_len = min_t(int, bytes, PAGE_SIZE - start), min_t 692 fs/ceph/file.c len = min_t(size_t, left, PAGE_SIZE - page_off); min_t 835 fs/ceph/file.c zlen = min_t(size_t, zlen, min_t 971 fs/ceph/file.c size = min_t(u64, size, fsc->mount_options->wsize); min_t 973 fs/ceph/file.c size = min_t(u64, size, fsc->mount_options->rsize); min_t 1056 fs/ceph/file.c int zlen = min_t(size_t, len - ret, min_t 1197 fs/ceph/file.c size_t plen = min_t(size_t, left, PAGE_SIZE); min_t 1360 fs/ceph/file.c loff_t end = min_t(loff_t, i_size, min_t 1362 fs/ceph/file.c end = min_t(loff_t, end, PAGE_SIZE); min_t 1372 fs/ceph/file.c size_t zlen = min_t(size_t, len - read, min_t 291 fs/ceph/inode.c frag->ndist = min_t(u32, ndist, CEPH_MAX_DIRFRAG_REP); min_t 277 fs/cifs/cifsacl.c dst->num_subauth = min_t(u8, src->num_subauth, SID_MAX_SUB_AUTHORITIES); min_t 578 fs/cifs/cifssmb.c server->maxReq = min_t(unsigned int, min_t 739 fs/cifs/cifssmb.c server->maxReq = min_t(unsigned int, le16_to_cpu(pSMBr->MaxMpxCount), min_t 1528 fs/cifs/cifssmb.c min_t(unsigned int, remaining, min_t 1579 fs/cifs/cifssmb.c len = min_t(unsigned int, buflen, server->vals->read_rsp_size) - min_t 1982 fs/cifs/cifssmb.c bytes_sent = min_t(const unsigned int, CIFSMaxBufSize, count); min_t 1114 fs/cifs/connect.c min_t(unsigned int, server->total_read, 48)); min_t 474 fs/cifs/dfs_cache.c dfs_cache.dc_ttl = min_t(int, dfs_cache.dc_ttl, ce->ce_ttl); min_t 1215 fs/cifs/file.c max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), min_t 1557 fs/cifs/file.c max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), min_t 2669 fs/cifs/file.c clen = min_t(const size_t, len, wsize); min_t 2722 fs/cifs/file.c bytes = min_t(const size_t, cur_len, PAGE_SIZE); min_t 2862 fs/cifs/file.c cur_len = min_t(const size_t, len, wsize); min_t 3376 fs/cifs/file.c size_t copy = min_t(size_t, remaining, PAGE_SIZE); min_t 3584 fs/cifs/file.c cur_len = min_t(const size_t, len, rsize); min_t 3966 fs/cifs/file.c rsize = min_t(unsigned int, cifs_sb->rsize, CIFSMaxBufSize); min_t 3993 fs/cifs/file.c current_read_size = min_t(uint, read_size - total_read, min_t 4002 fs/cifs/file.c current_read_size = min_t(uint, min_t 4116 fs/cifs/file.c got_bytes -= min_t(unsigned int, PAGE_SIZE, got_bytes); min_t 739 fs/cifs/readdir.c min_t(size_t, de.namelen, min_t 45 fs/cifs/sess.c pSMB->req.MaxBufferSize = cpu_to_le16(min_t(u32, min_t 449 fs/cifs/smb1ops.c wsize = min_t(unsigned int, wsize, CIFS_MAX_RFC1002_WSIZE); min_t 458 fs/cifs/smb1ops.c wsize = min_t(unsigned int, wsize, min_t 462 fs/cifs/smb1ops.c wsize = min_t(unsigned int, wsize, CIFS_MAX_WSIZE); min_t 500 fs/cifs/smb1ops.c rsize = min_t(unsigned int, CIFSMaxBufSize, rsize); min_t 503 fs/cifs/smb1ops.c rsize = min_t(unsigned int, rsize, CIFS_MAX_RSIZE); min_t 140 fs/cifs/smb2file.c max_buf = min_t(unsigned int, max_buf, PAGE_SIZE); min_t 278 fs/cifs/smb2file.c max_buf = min_t(unsigned int, max_buf, PAGE_SIZE); min_t 192 fs/cifs/smb2ops.c *num = min_t(unsigned int, size, min_t 328 fs/cifs/smb2ops.c wsize = min_t(unsigned int, wsize, server->max_write); min_t 332 fs/cifs/smb2ops.c wsize = min_t(unsigned int, min_t 335 fs/cifs/smb2ops.c wsize = min_t(unsigned int, min_t 340 fs/cifs/smb2ops.c wsize = min_t(unsigned int, wsize, SMB2_MAX_BUFFER_SIZE); min_t 353 fs/cifs/smb2ops.c wsize = min_t(unsigned int, wsize, server->max_write); min_t 357 fs/cifs/smb2ops.c wsize = min_t(unsigned int, min_t 360 fs/cifs/smb2ops.c wsize = min_t(unsigned int, min_t 365 fs/cifs/smb2ops.c wsize = min_t(unsigned int, wsize, SMB2_MAX_BUFFER_SIZE); min_t 378 fs/cifs/smb2ops.c rsize = min_t(unsigned int, rsize, server->max_read); min_t 382 fs/cifs/smb2ops.c rsize = min_t(unsigned int, min_t 385 fs/cifs/smb2ops.c rsize = min_t(unsigned int, min_t 391 fs/cifs/smb2ops.c rsize = min_t(unsigned int, rsize, SMB2_MAX_BUFFER_SIZE); min_t 404 fs/cifs/smb2ops.c rsize = min_t(unsigned int, rsize, server->max_read); min_t 408 fs/cifs/smb2ops.c rsize = min_t(unsigned int, min_t 411 fs/cifs/smb2ops.c rsize = min_t(unsigned int, min_t 417 fs/cifs/smb2ops.c rsize = min_t(unsigned int, rsize, SMB2_MAX_BUFFER_SIZE); min_t 1654 fs/cifs/smb2ops.c cpu_to_le32(min_t(u32, len, tcon->max_bytes_chunk)); min_t 3539 fs/cifs/smb2ops.c return min_t(unsigned int, CIFS_SB(inode->i_sb)->wsize, min_t 3934 fs/cifs/smb2ops.c bvec[i].bv_len = min_t(unsigned int, PAGE_SIZE, data_size); min_t 3987 fs/cifs/smb2ops.c min_t(unsigned int, buf_len, server->vals->read_rsp_size); min_t 4144 fs/cifs/smb2ops.c len = min_t(unsigned int, buflen, server->vals->read_rsp_size + min_t 115 fs/cifs/smb2pdu.c min_t(int, server->max_credits - min_t 967 fs/cifs/smb2pdu.c server->maxBuf = min_t(unsigned int, le32_to_cpu(rsp->MaxTransactSize), min_t 4271 fs/cifs/smb2pdu.c output_size = min_t(unsigned int, output_size, server->maxBuf); min_t 4272 fs/cifs/smb2pdu.c output_size = min_t(unsigned int, output_size, 2 << 15); min_t 4764 fs/cifs/smb2pdu.c + (char *)rsp, min_t(unsigned int, min_t 665 fs/cifs/smb2transport.c dump_smb(mid->resp_buf, min_t(u32, 80, len)); min_t 361 fs/cifs/smbdirect.c info->max_send_size = min_t(int, info->max_send_size, min_t 378 fs/cifs/smbdirect.c info->max_readwrite_size = min_t(u32, min_t 677 fs/cifs/smbdirect.c info->max_frmr_depth = min_t(int, min_t 1909 fs/cifs/smbdirect.c to_copy = min_t(int, data_length - offset, to_read); min_t 922 fs/cifs/transport.c dump_smb(mid->resp_buf, min_t(u32, 92, len)); min_t 149 fs/configfs/file.c ssize_t len = min_t(size_t, count, PAGE_SIZE); min_t 97 fs/erofs/decompressor.c unsigned int count = min_t(uint, inlen, PAGE_SIZE - pageofs_in); min_t 207 fs/erofs/decompressor.c memcpy(buf, cur, min_t(uint, PAGE_SIZE, min_t 211 fs/erofs/decompressor.c min_t(uint, righthalf, end - cur)); min_t 108 fs/erofs/dir.c maxsize = min_t(unsigned int, min_t 268 fs/erofs/xattr.c slice = min_t(unsigned int, PAGE_SIZE - it->ofs, min_t 303 fs/erofs/xattr.c slice = min_t(unsigned int, PAGE_SIZE - it->ofs, min_t 641 fs/erofs/zdata.c cur = end - min_t(unsigned int, offset + end - map->m_la, end); min_t 189 fs/erofs/zdata.h min_t(unsigned int, THREAD_SIZE / 8 / sizeof(struct page *), 96U) min_t 4375 fs/ext4/extents.c map->m_len = min_t(unsigned int, map->m_len, hole_len); min_t 570 fs/ext4/indirect.c map->m_len = min_t(unsigned int, map->m_len, count); min_t 193 fs/ext4/inline.c len = min_t(unsigned int, len, min_t 485 fs/ext4/inline.c len = min_t(size_t, ext4_get_inline_size(inode), i_size_read(inode)); min_t 1848 fs/ext4/inline.c iomap->length = min_t(loff_t, ext4_get_inline_size(inode), min_t 1874 fs/ext4/inline.c inline_len = min_t(size_t, ext4_get_inline_size(inode), min_t 3431 fs/ext4/inode.c last_block = min_t(loff_t, (offset + length - 1) >> blkbits, min_t 2290 fs/ext4/mballoc.c unsigned char blocksize_bits = min_t(unsigned char, min_t 377 fs/ext4/readpage.c min_t(int, nr_pages, BIO_MAX_PAGES)); min_t 1437 fs/ext4/resize.c sbi->s_blockfile_groups = min_t(ext4_group_t, sbi->s_groups_count, min_t 3607 fs/ext4/super.c resv_clusters = min_t(ext4_fsblk_t, resv_clusters, 4096); min_t 4252 fs/ext4/super.c sbi->s_blockfile_groups = min_t(ext4_group_t, sbi->s_groups_count, min_t 45 fs/ext4/verity.c size_t n = min_t(size_t, count, min_t 79 fs/ext4/verity.c size_t n = min_t(size_t, count, min_t 685 fs/f2fs/data.c bio = f2fs_bio_alloc(sbi, min_t(int, nr_pages, BIO_MAX_PAGES), false); min_t 724 fs/f2fs/inline.c ilen = min_t(size_t, MAX_INLINE_DATA(inode), i_size_read(inode)); min_t 1782 fs/f2fs/super.c tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); min_t 1835 fs/f2fs/super.c tocopy = min_t(unsigned long, sb->s_blocksize - offset, min_t 45 fs/f2fs/verity.c size_t n = min_t(size_t, count, min_t 79 fs/f2fs/verity.c size_t n = min_t(size_t, count, min_t 1349 fs/fat/dir.c int copy = min_t(int, sb->s_blocksize - offset, size); min_t 1360 fs/fat/dir.c int copy = min_t(int, sb->s_blocksize - offset, size); min_t 1593 fs/fuse/dev.c this_num = min_t(unsigned, num, PAGE_SIZE - offset); min_t 1690 fs/fuse/dev.c this_num = min_t(unsigned, num, PAGE_SIZE - offset); min_t 90 fs/fuse/dir.c min_t(u32, nsec, NSEC_PER_SEC - 1) min_t 940 fs/fuse/file.c data->max_pages = min_t(unsigned int, data->nr_pages, min_t 980 fs/fuse/file.c data.max_pages = min_t(unsigned int, nr_pages, fc->max_pages); min_t 1156 fs/fuse/file.c size_t bytes = min_t(size_t, PAGE_SIZE - offset, min_t 1159 fs/fuse/file.c bytes = min_t(size_t, bytes, fc->max_write - count); min_t 1207 fs/fuse/file.c return min_t(unsigned int, min_t 1914 fs/fuse/file.c unsigned int npages = min_t(unsigned int, min_t 951 fs/fuse/inode.c min_t(unsigned int, FUSE_MAX_MAX_PAGES, min_t 82 fs/fuse/xattr.c ret = min_t(ssize_t, outarg.size, XATTR_SIZE_MAX); min_t 141 fs/fuse/xattr.c ret = min_t(ssize_t, outarg.size, XATTR_LIST_MAX); min_t 401 fs/gfs2/file.c int hint = min_t(size_t, INT_MAX, blks); min_t 384 fs/gfs2/rgrp.c bytes = min_t(u32, len / GFS2_NBBY, (end - start)); min_t 31 fs/hfsplus/bnode.c l = min_t(int, len, PAGE_SIZE - off); min_t 37 fs/hfsplus/bnode.c l = min_t(int, len, PAGE_SIZE); min_t 84 fs/hfsplus/bnode.c l = min_t(int, len, PAGE_SIZE - off); min_t 91 fs/hfsplus/bnode.c l = min_t(int, len, PAGE_SIZE); min_t 114 fs/hfsplus/bnode.c l = min_t(int, len, PAGE_SIZE - off); min_t 120 fs/hfsplus/bnode.c l = min_t(int, len, PAGE_SIZE); min_t 144 fs/hfsplus/bnode.c l = min_t(int, len, PAGE_SIZE - src); min_t 151 fs/hfsplus/bnode.c l = min_t(int, len, PAGE_SIZE); min_t 253 fs/hfsplus/bnode.c l = min_t(int, len, PAGE_SIZE - src); min_t 261 fs/hfsplus/bnode.c l = min_t(int, len, PAGE_SIZE); min_t 597 fs/hfsplus/bnode.c min_t(int, PAGE_SIZE, tree->node_size)); min_t 77 fs/hfsplus/wrapper.c unsigned int len = min_t(unsigned int, PAGE_SIZE - page_offset, min_t 239 fs/hfsplus/wrapper.c blocksize = min_t(u32, sbi->alloc_blksz, PAGE_SIZE); min_t 229 fs/hfsplus/xattr.c min_t(size_t, PAGE_SIZE, node_size - written)); min_t 631 fs/io_uring.c sz = min_t(size_t, state->ios_left, ARRAY_SIZE(state->reqs)); min_t 3150 fs/io_uring.c unsigned this_files = min_t(unsigned, left, SCM_MAX_FD); min_t 3564 fs/io_uring.c vec_len = min_t(size_t, size, PAGE_SIZE - off); min_t 72 fs/iomap/buffered-io.c unsigned plen = min_t(loff_t, PAGE_SIZE - poff, length); min_t 438 fs/iomap/buffered-io.c len = min_t(unsigned, PAGE_SIZE - from, count); min_t 753 fs/iomap/buffered-io.c bytes = min_t(unsigned long, PAGE_SIZE - offset, min_t 804 fs/iomap/buffered-io.c bytes = min_t(unsigned long, PAGE_SIZE - offset, min_t 867 fs/iomap/buffered-io.c bytes = min_t(loff_t, PAGE_SIZE - offset, length); min_t 959 fs/iomap/buffered-io.c bytes = min_t(loff_t, PAGE_SIZE - offset, count); min_t 140 fs/isofs/compress.c stream.avail_in = min_t(unsigned, bufsize - min_t 225 fs/isofs/compress.c end_off = min_t(loff_t, start_off + PAGE_SIZE, inode->i_size); min_t 327 fs/isofs/compress.c pcount = min_t(int, zisofs_pages_per_cblock, min_t 1798 fs/jbd2/transaction.c commit_time = min_t(u64, commit_time, min_t 97 fs/jffs2/compr_zlib.c def_strm.avail_in = min_t(unsigned long, min_t 1355 fs/jffs2/gc.c cdatalen = min_t(uint32_t, alloclen - sizeof(ri), end - offset); min_t 653 fs/jffs2/readinode.c min_t(uint32_t, rd->nsize, (read - sizeof(*rd)) )); min_t 779 fs/jffs2/readinode.c len = min_t(uint32_t, rdlen - sizeof(*rd), csize); min_t 649 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); min_t 667 fs/jffs2/scan.c scan_end = min_t(uint32_t, EMPTY_SCAN_SIZE(c->sector_size)/8, buf_len); min_t 702 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); min_t 799 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); min_t 816 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); min_t 834 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); min_t 851 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); min_t 28 fs/jffs2/summary.c uint32_t sum_size = min_t(uint32_t, c->sector_size, MAX_SUMMARY_SIZE); min_t 1037 fs/jffs2/wbuf.c int cmlen = min_t(int, c->oobavail, OOB_CM_SIZE); min_t 1080 fs/jffs2/wbuf.c int ret, cmlen = min_t(int, c->oobavail, OOB_CM_SIZE); min_t 1105 fs/jffs2/wbuf.c int cmlen = min_t(int, c->oobavail, OOB_CM_SIZE); min_t 369 fs/jffs2/write.c datalen = min_t(uint32_t, writelen, min_t 371 fs/jffs2/write.c cdatalen = min_t(uint32_t, alloclen - sizeof(*ri), datalen); min_t 1198 fs/jfs/jfs_dmap.c min_t(int, leaf[word], NLSTOL2BSZ(nwords)); min_t 1630 fs/jfs/jfs_dmap.c range_cnt = min_t(u64, max_ranges + 1, 32 * 1024); min_t 1892 fs/jfs/jfs_dmap.c nb = min_t(s64, n, BPERDMAP); min_t 2250 fs/jfs/jfs_dmap.c size = min_t(int, leaf[word], min_t 3554 fs/jfs/jfs_dmap.c n = min_t(s64, nblocks, BPERDMAP); min_t 187 fs/kernfs/file.c ssize_t len = min_t(size_t, count, PAGE_SIZE); min_t 285 fs/kernfs/file.c len = min_t(size_t, count, PAGE_SIZE); min_t 307 fs/mpage.c min_t(int, args->nr_pages, min_t 479 fs/nfs/direct.c unsigned int req_len = min_t(size_t, bytes, PAGE_SIZE - pgbase); min_t 885 fs/nfs/direct.c unsigned int req_len = min_t(size_t, bytes, PAGE_SIZE - pgbase); min_t 193 fs/nfs/flexfilelayout/flexfilelayoutdev.c err->offset = min_t(u64, err->offset, offset); min_t 5501 fs/nfs/nfs4proc.c len = min_t(size_t, PAGE_SIZE, buflen); min_t 7067 fs/nfs/nfs4proc.c timeout = min_t(unsigned long, NFS4_LOCK_MAXTIMEOUT, timeout); min_t 5015 fs/nfs/nfs4xdr.c *pagemod_limit = min_t(u64, maxsize, ULONG_MAX); min_t 5114 fs/nfs/nfs4xdr.c savewords = min_t(uint32_t, bmlen, NFS4_BITMAP_SIZE); min_t 104 fs/nfs/sysfs.c len = nfs_string_strip(buf, min_t(size_t, count, CONTAINER_ID_MAXLEN)); min_t 125 fs/nfsd/nfs3xdr.c iap->ia_size = min_t(u64, newsize, NFS_OFFSET_MAX); min_t 388 fs/nfsd/nfs3xdr.c rqstp->rq_vec[v].iov_len = min_t(unsigned int, len, PAGE_SIZE); min_t 588 fs/nfsd/nfs3xdr.c len = args->count = min_t(u32, args->count, max_blocksize); min_t 1604 fs/nfsd/nfs4state.c num = min_t(int, num, avail / slotsize); min_t 3184 fs/nfsd/nfs4state.c ca->maxreq_sz = min_t(u32, ca->maxreq_sz, maxrpc); min_t 3185 fs/nfsd/nfs4state.c ca->maxresp_sz = min_t(u32, ca->maxresp_sz, maxrpc); min_t 3186 fs/nfsd/nfs4state.c ca->maxops = min_t(u32, ca->maxops, NFSD_MAX_OPS_PER_COMPOUND); min_t 3187 fs/nfsd/nfs4state.c ca->maxresp_cached = min_t(u32, ca->maxresp_cached, min_t 3189 fs/nfsd/nfs4state.c ca->maxreqs = min_t(u32, ca->maxreqs, NFSD_MAX_SLOTS_PER_SESSION); min_t 3509 fs/nfsd/nfs4xdr.c space_left = min_t(int, (void *)xdr->end - (void *)xdr->p, min_t 3536 fs/nfsd/nfs4xdr.c thislen = min_t(long, len, ((void *)xdr->end - (void *)xdr->p)); min_t 3545 fs/nfsd/nfs4xdr.c thislen = min_t(long, len, PAGE_SIZE); min_t 3603 fs/nfsd/nfs4xdr.c maxcount = min_t(unsigned long, maxcount, min_t 3605 fs/nfsd/nfs4xdr.c maxcount = min_t(unsigned long, maxcount, read->rd_length); min_t 3693 fs/nfsd/nfs4xdr.c maxcount = min_t(u32, readdir->rd_maxcount, maxcount); min_t 3703 fs/nfsd/nfs4xdr.c maxcount = min_t(int, maxcount-16, bytes_left); min_t 73 fs/nfsd/nfscache.c return min_t(unsigned int, limit, 256*1024); min_t 299 fs/nfsd/nfscache.c size_t csum_len = min_t(size_t, buf->head[0].iov_len + buf->page_len, min_t 312 fs/nfsd/nfscache.c len = min_t(size_t, PAGE_SIZE - base, csum_len); min_t 371 fs/nfsd/nfscache.c nn->longest_chain_cachesize = min_t(unsigned int, min_t 905 fs/nfsd/nfsctl.c bsize = min_t(int, bsize, NFSSVC_MAXBLKSIZE); min_t 251 fs/nfsd/nfsxdr.c len = min_t(unsigned int, len, NFSSVC_MAXBLKSIZE_V2); min_t 261 fs/nfsd/nfsxdr.c rqstp->rq_vec[v].iov_len = min_t(unsigned int, len, PAGE_SIZE); min_t 417 fs/nfsd/nfsxdr.c args->count = min_t(u32, args->count, PAGE_SIZE); min_t 567 fs/nfsd/vfs.c count = min_t(u64, count, 1 << 22); min_t 423 fs/nilfs2/alloc.c return min_t(unsigned long, min_t 56 fs/nilfs2/cpfile.c return min_t(__u64, min_t 73 fs/nilfs2/direct.c maxblocks = min_t(unsigned int, maxblocks, min_t 709 fs/nilfs2/inode.c b -= min_t(__u64, NILFS_MAX_TRUNCATE_BLOCKS, b - from); min_t 1054 fs/nilfs2/inode.c maxblocks = min_t(sector_t, delalloc_blkoff - blkoff, min_t 103 fs/nilfs2/recovery.c size = min_t(u64, check_bytes, blocksize - offset); min_t 114 fs/nilfs2/recovery.c size = min_t(u64, check_bytes, blocksize); min_t 181 fs/nilfs2/segbuf.c size = min_t(unsigned long, bytes, bh->b_size); min_t 191 fs/nilfs2/segbuf.c size = min_t(unsigned long, bytes, bh->b_size); min_t 1522 fs/nilfs2/segment.c nadd = min_t(int, nadd << 1, SC_MAX_SEGDELTA); min_t 67 fs/nilfs2/sufile.c return min_t(unsigned long, min_t 670 fs/nilfs2/sufile.c n = min_t(unsigned long, min_t 828 fs/nilfs2/sufile.c nsegs = min_t(unsigned long, min_t 832 fs/nilfs2/sufile.c n = min_t(unsigned long, min_t 355 fs/nilfs2/the_nilfs.c res = min_t(unsigned long long, res, (1ULL << max_bits) - 1); min_t 656 fs/ntfs/attrib.c min_t(u32, val_len, le32_to_cpu( min_t 97 fs/ntfs/bitmap.c len = min_t(s64, cnt >> 3, PAGE_SIZE - pos); min_t 121 fs/ntfs/bitmap.c len = min_t(s64, cnt >> 3, PAGE_SIZE); min_t 396 fs/ntfs/logfile.c size = min_t(int, to_read, PAGE_SIZE); min_t 186 fs/ocfs2/quota_global.c tocopy = min_t(size_t, (sb->s_blocksize - offset), toread); min_t 4544 fs/ocfs2/refcounttree.c num_clusters = min_t(u32, num_clusters, slast - spos); min_t 4608 fs/ocfs2/refcounttree.c remapped_bytes = min_t(loff_t, len, remapped_bytes); min_t 319 fs/proc/base.c size_t size = min_t(size_t, PAGE_SIZE, count); min_t 839 fs/proc/base.c int this_len = min_t(int, count, PAGE_SIZE); min_t 955 fs/proc/base.c max_len = min_t(size_t, PAGE_SIZE, count); min_t 355 fs/proc/kcore.c tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos); min_t 400 fs/proc/kcore.c tsz = min_t(size_t, buflen, phdrs_offset + phdrs_len - *fpos); min_t 450 fs/proc/kcore.c tsz = min_t(size_t, buflen, notes_offset + notes_len - *fpos); min_t 40 fs/proc/page.c count = min_t(size_t, count, (max_pfn * KPMSIZE) - src); min_t 216 fs/proc/page.c count = min_t(unsigned long, count, (max_pfn * KPMSIZE) - src); min_t 262 fs/proc/page.c count = min_t(unsigned long, count, (max_pfn * KPMSIZE) - src); min_t 89 fs/proc/stat.c inc = min_t(unsigned int, gap, ARRAY_SIZE(zeros) / 2); min_t 377 fs/proc/vmcore.c tsz = (size_t)min_t(unsigned long long, min_t 643 fs/proc/vmcore.c tsz = (size_t)min_t(unsigned long long, min_t 1662 fs/read_write.c min_t(loff_t, MAX_RW_COUNT, len), min_t 2183 fs/read_write.c len = min_t(u64, len, 1 << 30); min_t 314 fs/reiserfs/do_balan.c min_t(int, tb->zeroes_num, ih_item_len(ih))); min_t 467 fs/reiserfs/do_balan.c min_t(int, l_n, tb->zeroes_num)); min_t 47 fs/romfs/storage.c segment = min_t(size_t, maxlen, 16); min_t 78 fs/romfs/storage.c segment = min_t(size_t, size + 1, 17); min_t 113 fs/romfs/storage.c segment = min_t(size_t, buflen, ROMBSIZE - offset); min_t 142 fs/romfs/storage.c segment = min_t(size_t, limit, ROMBSIZE - offset); min_t 174 fs/romfs/storage.c segment = min_t(size_t, size, ROMBSIZE - offset); min_t 514 fs/romfs/super.c if (romfs_checksum(rsb, min_t(size_t, img_size, 512))) { min_t 976 fs/select.c len = min_t(unsigned int, nfds, N_STACK_PPS); min_t 407 fs/splice.c size_t this_len = min_t(size_t, len, PAGE_SIZE - offset); min_t 1232 fs/splice.c int size = min_t(int, copied, PAGE_SIZE - start); min_t 178 fs/squashfs/block.c avail = min_t(int, in, PAGE_SIZE - min_t 306 fs/squashfs/cache.c int bytes = min_t(int, entry->length - offset, min_t 173 fs/squashfs/file.c int blocks = min_t(int, n, PAGE_SIZE >> 2); min_t 399 fs/squashfs/file.c int avail = buffer ? min_t(int, bytes, PAGE_SIZE) : 0; min_t 160 fs/squashfs/file_direct.c int avail = min_t(int, bytes, PAGE_SIZE); min_t 41 fs/squashfs/symlink.c int length = min_t(int, i_size_read(inode) - index, PAGE_SIZE); min_t 125 fs/sysfs/file.c return min_t(ssize_t, count, len); min_t 152 fs/sysfs/file.c count = min_t(ssize_t, count, size - pos); min_t 1233 fs/ubifs/debug.c cmp = memcmp(dent1->name, dent2->name, min_t(int, nlen1, nlen2)); min_t 2720 fs/ubifs/debug.c buf_size = min_t(size_t, count, (sizeof(buf) - 1)); min_t 925 fs/ubifs/file.c blen = min_t(int, len, UBIFS_BLOCK_SIZE); min_t 79 fs/ubifs/key.h len = min_t(uint32_t, len, 4); min_t 161 fs/ubifs/recovery.c if (!is_empty(buf, min_t(int, len, sz))) { min_t 759 fs/ubifs/sb.c c->leb_cnt = min_t(int, c->max_leb_cnt, c->vi.size); min_t 30 fs/ubifs/scan.c int pad_len = 0, max_pad_len = min_t(int, UBIFS_PAD_NODE_SZ, len); min_t 555 fs/ubifs/tnc.c err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); min_t 848 fs/ubifs/tnc.c err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); min_t 2447 fs/udf/super.c u32 cur_bytes = min_t(u32, bytes, sb->s_blocksize - index); min_t 218 fs/udf/unicode.c ext_max_len = min_t(int, sizeof(ext), str_max_len); min_t 261 fs/udf/unicode.c len = min_t(int, CRC_LEN, str_max_len - str_o_len); min_t 904 fs/ufs/inode.c frag4 = min_t(u64, UFS_NDIR_FRAGMENT, ufsi->i_lastfrag); min_t 157 fs/ufs/util.c len = min_t(unsigned int, size, uspi->s_fsize); min_t 173 fs/ufs/util.c len = min_t(unsigned int, size, uspi->s_fsize); min_t 405 fs/ufs/util.h count = min_t(unsigned int, size + offset, uspi->s_bpf); min_t 452 fs/ufs/util.h count = min_t(unsigned int, min_t 347 fs/xfs/libxfs/xfs_ag_resv.c len = min_t(xfs_extlen_t, args->len, resv->ar_reserved); min_t 387 fs/xfs/libxfs/xfs_ag_resv.c leftover = min_t(xfs_extlen_t, len, resv->ar_asked - resv->ar_reserved); min_t 2006 fs/xfs/libxfs/xfs_alloc.c min_free = min_t(unsigned int, pag->pagf_levels[XFS_BTNUM_BNOi] + 1, min_t 2009 fs/xfs/libxfs/xfs_alloc.c min_free += min_t(unsigned int, pag->pagf_levels[XFS_BTNUM_CNTi] + 1, min_t 2013 fs/xfs/libxfs/xfs_alloc.c min_free += min_t(unsigned int, min_t 2054 fs/xfs/libxfs/xfs_alloc.c agflcount = min_t(xfs_extlen_t, pag->pagf_flcount, min_free); min_t 447 fs/xfs/libxfs/xfs_btree.h #define XFS_EXTLEN_MIN(a,b) min_t(xfs_extlen_t, (a), (b)) min_t 449 fs/xfs/libxfs/xfs_btree.h #define XFS_AGBLOCK_MIN(a,b) min_t(xfs_agblock_t, (a), (b)) min_t 451 fs/xfs/libxfs/xfs_btree.h #define XFS_FILEOFF_MIN(a,b) min_t(xfs_fileoff_t, (a), (b)) min_t 453 fs/xfs/libxfs/xfs_btree.h #define XFS_FILBLKS_MIN(a,b) min_t(xfs_filblks_t, (a), (b)) min_t 809 fs/xfs/scrub/dir.c bufsize = (size_t)min_t(loff_t, XFS_READDIR_BUFSIZE, min_t 225 fs/xfs/scrub/ialloc.c nr_inodes = min_t(unsigned int, XFS_INODES_PER_CHUNK, min_t 368 fs/xfs/scrub/ialloc.c imask = min_t(unsigned int, XFS_INODES_PER_CHUNK, min_t 93 fs/xfs/scrub/parent.c bufsize = (size_t)min_t(loff_t, XFS_READDIR_BUFSIZE, min_t 9 fs/xfs/xfs_bio_io.c return min_t(unsigned, howmany(count, PAGE_SIZE), BIO_MAX_PAGES); min_t 37 fs/xfs/xfs_bio_io.c unsigned int len = min_t(unsigned, left, PAGE_SIZE - off); min_t 930 fs/xfs/xfs_bmap_util.c resblks = min_t(xfs_fileoff_t, (e - s), (MAXEXTLEN * nimaps)); min_t 1531 fs/xfs/xfs_bmap_util.c uirec.br_blockcount = rlen = min_t(xfs_filblks_t, min_t 431 fs/xfs/xfs_buf.c nbytes = min_t(size_t, size, PAGE_SIZE - offset); min_t 1287 fs/xfs/xfs_buf.c size = min_t(int, BBTOB(bp->b_maps[map].bm_len), *count); min_t 1536 fs/xfs/xfs_buf.c csize = min_t(size_t, PAGE_SIZE - page_offset, min_t 372 fs/xfs/xfs_error.c sz = min_t(size_t, XFS_CORRUPTION_DUMP_LEN, bufsz); min_t 422 fs/xfs/xfs_error.c sz = min_t(size_t, XFS_CORRUPTION_DUMP_LEN, bufsz); min_t 1096 fs/xfs/xfs_file.c bufsize = (size_t)min_t(loff_t, XFS_READDIR_BUFSIZE, ip->i_d.di_size); min_t 651 fs/xfs/xfs_iomap.c count = min_t(loff_t, count, 1024 * PAGE_SIZE); min_t 1035 fs/xfs/xfs_iomap.c length = min_t(loff_t, length, 1024 * PAGE_SIZE); min_t 671 fs/xfs/xfs_iwalk.c return min_t(unsigned int, inobt_records, MAX_INOBT_WALK_PREFETCH); min_t 1704 fs/xfs/xfs_log.c size_t len = min_t(size_t, count, PAGE_SIZE - off); min_t 678 fs/xfs/xfs_log_recover.c num_scan_bblks = min_t(int, log_bbnum, XLOG_TOTAL_REC_SHIFT(log)); min_t 4762 fs/xfs/xfs_log_recover.c resblks = min_t(int64_t, UINT_MAX, freeblks); min_t 564 fs/xfs/xfs_mount.c resblks = min_t(uint64_t, resblks, 8192); min_t 1079 fs/xfs/xfs_reflink.c newlen = min_t(xfs_off_t, newlen, new_isize); min_t 1177 fs/xfs/xfs_reflink.c *remapped = min_t(loff_t, remap_len, min_t 1114 fs/xfs/xfs_super.c statp->f_files = min_t(typeof(statp->f_files), min_t 73 include/linux/bvec.h min_t(unsigned, mp_bvec_iter_len((bvec), (iter)), \ min_t 148 include/linux/bvec.h bv->bv_len = min_t(unsigned int, PAGE_SIZE - bv->bv_offset, min_t 92 include/linux/can/dev.h #define get_can_dlc(i) (min_t(__u8, (i), CAN_MAX_DLC)) min_t 93 include/linux/can/dev.h #define get_canfd_dlc(i) (min_t(__u8, (i), CANFD_MAX_DLC)) min_t 364 include/linux/genl_magic_func.h if (__put(skb, attr_nr, min_t(int, maxlen, \ min_t 954 include/linux/kernel.h #define clamp_t(type, val, lo, hi) min_t(type, max_t(type, val, lo), hi) min_t 888 include/linux/mlx5/driver.h return min_t(u32, last_frag_stride_idx - fbc->strides_offset, fbc->sz_m1); min_t 639 include/linux/mtd/nand.h iter->req.datalen = min_t(unsigned int, min_t 643 include/linux/mtd/nand.h iter->req.ooblen = min_t(unsigned int, min_t 665 include/linux/mtd/nand.h iter->req.datalen = min_t(unsigned int, nand->memorg.pagesize, min_t 667 include/linux/mtd/nand.h iter->req.ooblen = min_t(unsigned int, iter->oobbytes_per_page, min_t 462 include/linux/netfilter/ipset/ip_set.h ((timeout/3) ? min_t(u32, (timeout)/3, IPSET_GC_TIME) : 1) min_t 572 include/linux/nfs_fs.h return min_t(u64, size, OFFSET_MAX); min_t 265 include/linux/nodemask.h return min_t(int, MAX_NUMNODES, find_first_bit(srcp->bits, MAX_NUMNODES)); min_t 271 include/linux/nodemask.h return min_t(int,MAX_NUMNODES,find_next_bit(srcp->bits, MAX_NUMNODES, n+1)); min_t 301 include/linux/nodemask.h return min_t(int,MAX_NUMNODES, min_t 258 include/linux/sbitmap.h unsigned int depth = min_t(unsigned int, min_t 394 include/linux/skbuff.h min_t(u32, f_len, PAGE_SIZE - p_off) : f_len, \ min_t 398 include/linux/skbuff.h p_len = min_t(u32, f_len - copied, PAGE_SIZE)) \ min_t 459 include/linux/tcp.h queue->fastopenq.max_qlen = min_t(unsigned int, backlog, somaxconn); min_t 250 include/net/inet_connection_sock.h return (unsigned long)min_t(u64, when, max_when); min_t 246 include/net/red.h long us_idle = min_t(s64, delta, p->Scell_max); min_t 1246 include/net/sch_generic.h res->rate = min_t(u64, r->rate_bytes_ps, ~0U); min_t 2293 include/net/sock.h int v = waitall ? len : min_t(int, READ_ONCE(sk->sk_rcvlowat), len); min_t 1311 include/net/tcp.h return (unsigned long)min_t(u64, when, max_when); min_t 1449 include/net/tcp.h return min_t(u32, tcp_jiffies32 - icsk->icsk_ack.lrcvtime, min_t 842 include/rdma/uverbs_ioctl.h min_size = min_t(size_t, size, attr->ptr_attr.len); min_t 929 include/trace/events/afs.h int __len = min_t(int, name->len, 23); min_t 1214 include/trace/events/afs.h __len = min_t(int, cell->name_len, 23); min_t 1217 include/trace/events/afs.h __len = min_t(int, volume->name_len, 23); min_t 231 include/trace/events/kvm.h min_t(u32, sizeof(__entry->val), len)); min_t 285 include/xen/grant_table.h len = min_t(unsigned int, XEN_PAGE_SIZE - (offset & ~XEN_PAGE_MASK), min_t 309 ipc/mqueue.c min_t(unsigned int, info->attr.mq_maxmsg, MQ_PRIO_MAX) * min_t 470 ipc/mqueue.c min_t(unsigned int, info->attr.mq_maxmsg, MQ_PRIO_MAX) * min_t 1084 ipc/msg.c copy = prepare_copy(buf, min_t(size_t, bufsz, ns->msg_ctlmax)); min_t 1213 kernel/audit.c memcpy(&s, data, min_t(size_t, sizeof(s), data_len)); min_t 1463 kernel/audit.c memcpy(&s, data, min_t(size_t, sizeof(s), data_len)); min_t 837 kernel/bpf/btf.c new_size = min_t(u32, BTF_MAX_TYPE, min_t 3252 kernel/bpf/btf.c hdr_copy = min_t(u32, hdr_len, sizeof(btf->hdr)); min_t 3471 kernel/bpf/btf.c info_copy = min_t(u32, uinfo_len, sizeof(info)); min_t 3478 kernel/bpf/btf.c btf_copy = min_t(u32, btf->data_size, info.btf_size); min_t 927 kernel/bpf/cgroup.c ctx.new_len = min_t(size_t, PAGE_SIZE, *pcount); min_t 761 kernel/bpf/core.c bpf_jit_limit = min_t(u64, round_up(bpf_jit_alloc_exec_limit() >> 2, min_t 822 kernel/bpf/core.c hole = min_t(unsigned int, size - (proglen + sizeof(*hdr)), min_t 326 kernel/bpf/offload.c ulen = min_t(u32, info->jited_prog_len, ulen); min_t 2340 kernel/bpf/syscall.c info_len = min_t(u32, sizeof(info), info_len); min_t 2358 kernel/bpf/syscall.c ulen = min_t(u32, info.nr_map_ids, ulen); min_t 2402 kernel/bpf/syscall.c ulen = min_t(u32, info.xlated_prog_len, ulen); min_t 2434 kernel/bpf/syscall.c ulen = min_t(u32, info.jited_prog_len, ulen); min_t 2446 kernel/bpf/syscall.c len = min_t(u32, len, free); min_t 2475 kernel/bpf/syscall.c ulen = min_t(u32, info.nr_jited_ksyms, ulen); min_t 2503 kernel/bpf/syscall.c ulen = min_t(u32, info.nr_jited_func_lens, ulen); min_t 2531 kernel/bpf/syscall.c ulen = min_t(u32, info.nr_func_info, ulen); min_t 2543 kernel/bpf/syscall.c ulen = min_t(u32, info.nr_line_info, ulen); min_t 2560 kernel/bpf/syscall.c ulen = min_t(u32, info.nr_jited_line_info, ulen); min_t 2578 kernel/bpf/syscall.c ulen = min_t(u32, info.nr_prog_tags, ulen); min_t 2613 kernel/bpf/syscall.c info_len = min_t(u32, sizeof(info), info_len); min_t 2852 kernel/bpf/syscall.c size = min_t(u32, size, sizeof(attr)); min_t 931 kernel/bpf/verifier.c reg->smax_value = min_t(s64, reg->smax_value, min_t 949 kernel/bpf/verifier.c reg->smax_value = reg->umax_value = min_t(u64, reg->smax_value, min_t 961 kernel/bpf/verifier.c reg->smax_value = reg->umax_value = min_t(u64, reg->smax_value, min_t 6519 kernel/bpf/verifier.c min_size = min_t(u32, krec_size, urec_size); min_t 6641 kernel/bpf/verifier.c ncopy = min_t(u32, expected_size, rec_size); min_t 198 kernel/debug/kdb/kdb_support.c prev_len = min_t(int, max_len-1, min_t 245 kernel/dma/contiguous.c size_t cma_align = min_t(size_t, align, CONFIG_CMA_ALIGNMENT); min_t 403 kernel/dma/direct.c min_mask = min_t(u64, min_mask, (max_pfn - 1) << PAGE_SHIFT); min_t 422 kernel/dma/swiotlb.c sz = min_t(size_t, PAGE_SIZE - offset, size); min_t 832 kernel/events/uprobes.c len = min_t(int, size, PAGE_SIZE - (offs & ~PAGE_MASK)); min_t 284 kernel/hung_task.c interval = min_t(unsigned long, interval, timeout); min_t 154 kernel/irq/affinity.c numvecs = min_t(unsigned, remaining_ncpus, numvecs); min_t 425 kernel/irq/timings.c min = min_t(int, irqs->timings[i], min); min_t 733 kernel/irq/timings.c count = min_t(int, count, IRQ_TIMINGS_SIZE); min_t 816 kernel/kexec_core.c mchunk = min_t(size_t, mbytes, min_t 878 kernel/kexec_core.c mchunk = min_t(size_t, mbytes, min_t 1778 kernel/power/snapshot.c size = min_t(unsigned long, pages, max_size); min_t 1240 kernel/relay.c nr_pages = min_t(unsigned int, subbuf_pages, spd.nr_pages_max); min_t 1249 kernel/relay.c this_len = min_t(unsigned long, len, PAGE_SIZE - poff); min_t 1654 kernel/resource.c end = min_t(unsigned long, base->end, (1UL << MAX_PHYSMEM_BITS) - 1); min_t 366 kernel/sched/cpufreq_schedutil.c min_t(unsigned int, sg_cpu->iowait_boost << 1, SCHED_CAPACITY_SCALE); min_t 150 kernel/sched/fair.c unsigned int cpus = min_t(unsigned int, num_online_cpus(), 8); min_t 2663 kernel/sched/fair.c delay = min_t(unsigned int, task_scan_max(current), min_t 2829 kernel/sched/fair.c *ptr -= min_t(typeof(*ptr), *ptr, _val); \ min_t 3749 kernel/sched/fair.c ue.enqueued -= min_t(unsigned int, ue.enqueued, _task_util_est(p)); min_t 6112 kernel/sched/fair.c return min_t(unsigned long, util, capacity_orig_of(cpu)); min_t 6201 kernel/sched/fair.c return min_t(unsigned long, util, capacity_orig_of(cpu)); min_t 739 kernel/sched/rt.c diff = min_t(s64, iter->rt_runtime, want); min_t 1550 kernel/seccomp.c size = min_t(unsigned long, size, sizeof(kmd)); min_t 739 kernel/time/tick-sched.c ts->timer_expires = min_t(u64, expires, next_tick); min_t 1090 kernel/time/tick-sched.c next_event = min_t(u64, next_event, min_t 579 kernel/trace/trace_functions_graph.c size_t slen = min_t(size_t, sizeof(nsecs_str), 8UL - len); min_t 27 lib/bucket_locks.c nr_pcpus = min_t(unsigned int, nr_pcpus, 64UL); min_t 28 lib/bucket_locks.c size = min_t(unsigned int, nr_pcpus * cpu_mult, max_size); min_t 180 lib/fault-inject.c min_t(unsigned long, val, MAX_STACK_TRACE_DEPTH); min_t 554 lib/iov_iter.c size_t chunk = min_t(size_t, n, PAGE_SIZE - off); min_t 588 lib/iov_iter.c size_t chunk = min_t(size_t, n, PAGE_SIZE - r); min_t 658 lib/iov_iter.c size_t chunk = min_t(size_t, n, PAGE_SIZE - off); min_t 939 lib/iov_iter.c size_t chunk = min_t(size_t, n, PAGE_SIZE - off); min_t 279 lib/mpi/mpicoder.c i = min_t(unsigned, nbytes - n, buf_len); min_t 233 lib/nlattr.c minlen = min_t(int, attrlen, pt->len + 1); min_t 572 lib/nlattr.c int minlen = min_t(int, count, nla_len(src)); min_t 434 lib/scatterlist.c min_t(unsigned long, size, chunk_size), offset); min_t 514 lib/scatterlist.c elem_len = min_t(u64, length, PAGE_SIZE << order); min_t 701 lib/scatterlist.c miter->__remaining = min_t(unsigned long, miter->__remaining, min_t 736 lib/scatterlist.c consumed = min_t(off_t, offset, miter->__remaining); min_t 42 lib/sg_split.c len = min_t(size_t, size, sglen - skip); min_t 55 lib/sg_split.c len = min_t(size_t, size, sglen - skip); min_t 151 lib/test_hexdump.c size_t d = min_t(size_t, sizeof(data_b), rowsize); min_t 188 lib/test_hexdump.c f = min_t(int, e + 1, buflen); min_t 1101 lib/vsprintf.c len = min_t(int, spec.field_width, 64); min_t 403 lib/xz/xz_dec_bcj.c copy_size = min_t(size_t, s->temp.filtered, b->out_size - b->out_pos); min_t 354 lib/xz/xz_dec_lzma2.c left = min_t(size_t, dict->limit - dict->pos, *len); min_t 1070 lib/xz/xz_dec_lzma2.c dict_limit(&s->dict, min_t(size_t, min_t 159 lib/xz/xz_dec_stream.c size_t copy_size = min_t(size_t, min_t 1314 mm/compaction.c cc->search_order = min_t(unsigned int, cc->order - 1, cc->search_order); min_t 1529 mm/compaction.c stride = min_t(unsigned int, COMPACT_CLUSTER_MAX, stride << 1); min_t 3260 mm/filemap.c bytes = min_t(unsigned long, PAGE_SIZE - offset, min_t 3313 mm/filemap.c bytes = min_t(unsigned long, PAGE_SIZE - offset, min_t 279 mm/kasan/common.c *size = min_t(unsigned int, KMALLOC_MAX_SIZE, min_t 287 mm/kmemleak.c len = min_t(size_t, object->size, HEX_MAX_LINES * HEX_ROW_SIZE); min_t 1606 mm/memblock.c start_pfn = min_t(unsigned long, start_pfn, limit_pfn); min_t 1607 mm/memblock.c end_pfn = min_t(unsigned long, end_pfn, limit_pfn); min_t 1912 mm/memblock.c unsigned long end_pfn = min_t(unsigned long, min_t 4544 mm/memcontrol.c min_t(unsigned long, HZ, min_t 7177 mm/memcontrol.c nr_swap_pages = min_t(long, nr_swap_pages, min_t 1604 mm/mempolicy.c nr_bits = min_t(unsigned long, maxnode-1, nr_node_ids); min_t 1614 mm/mempolicy.c copy_size = min_t(unsigned long, sizeof(bm), alloc_size); min_t 1631 mm/mempolicy.c nr_bits = min_t(unsigned long, maxnode-1, MAX_NUMNODES); min_t 1653 mm/mempolicy.c nr_bits = min_t(unsigned long, maxnode-1, MAX_NUMNODES); min_t 1678 mm/mempolicy.c nr_bits = min_t(unsigned long, maxnode - 1, MAX_NUMNODES); min_t 30 mm/mempool.c const int end = min_t(int, byte + (BITS_PER_LONG / 8), size); min_t 150 mm/mm_init.c memsized_batch = min_t(u64, (totalram_pages()/nr)/256, 0x7fffffff); min_t 960 mm/page-writeback.c dtc->pos_ratio = min_t(long long, pos_ratio * 2, min_t 1435 mm/page-writeback.c return min_t(unsigned long, t, MAX_PAUSE); min_t 908 mm/page_alloc.c max_order = min_t(unsigned int, MAX_ORDER, pageblock_order + 1); min_t 347 mm/page_owner.c count = min_t(size_t, count, PAGE_SIZE); min_t 841 mm/percpu.c s_block->right_free = min_t(int, s_block->right_free, min_t 875 mm/percpu.c min_t(int, e_block->right_free, min_t 1201 mm/percpu.c end = min_t(int, start + alloc_bits + PCPU_BITMAP_BLOCK_BITS, min_t 2183 mm/percpu.c empty_str[min_t(int, cpu_width, sizeof(empty_str) - 1)] = '\0'; min_t 188 mm/process_vm_access.c process_pages = kmalloc(min_t(size_t, PVM_MAX_KMALLOC_PAGES, min_t 666 mm/slub.c min_t(unsigned int, s->object_size, PAGE_SIZE)); min_t 1065 mm/swap.c min_t(unsigned int, max_pages, PAGEVEC_SIZE), pvec->pages); min_t 344 mm/swap_state.c hits = min_t(int, hits + 1, SWAP_RA_HITS_MAX); min_t 654 mm/swap_state.c max_win = 1 << min_t(unsigned int, READ_ONCE(page_cluster), min_t 633 mm/swapfile.c max = min_t(unsigned long, si->max, min_t 840 mm/util.c allowed -= min_t(long, mm->total_vm / 32, reserve); min_t 547 mm/zsmalloc.c return min_t(int, ZS_SIZE_CLASSES - 1, idx); min_t 135 net/6lowpan/debugfs.c if (copy_from_user(&buf, user_buf, min_t(size_t, sizeof(buf) - 1, min_t 221 net/9p/protocol.c min_t(uint32_t, *count, min_t 387 net/9p/protocol.c len = min_t(size_t, strlen(sptr), min_t 1358 net/appletalk/ddp.c skb_trim(skb, min_t(unsigned int, origlen, min_t 1439 net/appletalk/ddp.c skb_trim(skb, min_t(unsigned int, skb->len, len_hops & 1023)); min_t 702 net/ax25/af_ax25.c length = min_t(unsigned int, maxlen, sizeof(int)); min_t 726 net/batman-adv/bat_v.c *bw = min_t(u32, *bw, gw_node->bandwidth_down); min_t 162 net/batman-adv/bat_v_ogm.c unsigned int max = min_t(unsigned int, hard_iface->net_dev->mtu, min_t 915 net/batman-adv/bat_v_ogm.c path_throughput = min_t(u32, link_throughput, ogm_throughput); min_t 454 net/batman-adv/fragmentation.c mtu = min_t(unsigned int, mtu, BATADV_FRAG_MAX_FRAG_SIZE); min_t 583 net/batman-adv/hard-interface.c min_mtu = min_t(int, hard_iface->net_dev->mtu, min_mtu); min_t 594 net/batman-adv/hard-interface.c min_mtu = min_t(int, min_mtu, BATADV_FRAG_MAX_FRAG_SIZE); min_t 611 net/batman-adv/hard-interface.c return min_t(int, min_mtu - batadv_max_header_len(), ETH_DATA_LEN); min_t 611 net/batman-adv/netlink.c orig_interval = min_t(u32, orig_interval, INT_MAX); min_t 127 net/batman-adv/tp_meter.c new_size = min_t(u32, new_size, BATADV_TP_AWND); min_t 375 net/bluetooth/af_bluetooth.c chunk = min_t(unsigned int, skb->len, size); min_t 351 net/bluetooth/amp.c frag_len = min_t(u16, 248, ctrl->assoc_rem_len); min_t 255 net/bluetooth/cmtp/capi.c int len = min_t(uint, CAPI_MANUFACTURER_LEN, min_t 283 net/bluetooth/cmtp/capi.c int len = min_t(uint, CAPI_SERIAL_LEN, min_t 303 net/bluetooth/cmtp/capi.c int len = min_t(uint, skb->len - CAPI_MSG_BASELEN - 6, min_t 233 net/bluetooth/cmtp/core.c size = min_t(uint, ((tail < 258) ? (tail - 2) : (tail - 3)), skb->len); min_t 358 net/bluetooth/cmtp/core.c session->mtu = min_t(uint, l2cap_pi(sock->sk)->chan->omtu, min_t 2140 net/bluetooth/hci_request.c cp.num_iac = min_t(u8, hdev->num_iac, 2); min_t 1075 net/bluetooth/hci_sock.c len = min_t(unsigned int, sizeof(haddr), addr_len); min_t 1870 net/bluetooth/hci_sock.c len = min_t(unsigned int, len, sizeof(uf)); min_t 1956 net/bluetooth/hci_sock.c len = min_t(unsigned int, len, sizeof(uf)); min_t 944 net/bluetooth/hidp/core.c session->ctrl_mtu = min_t(uint, l2cap_pi(ctrl)->chan->omtu, min_t 946 net/bluetooth/hidp/core.c session->intr_mtu = min_t(uint, l2cap_pi(intr)->chan->omtu, min_t 528 net/bluetooth/l2cap_core.c chan->mps = min_t(u16, chan->imtu, chan->conn->mtu - L2CAP_HDR_SIZE); min_t 2173 net/bluetooth/l2cap_core.c count = min_t(unsigned int, conn->mtu, len); min_t 2209 net/bluetooth/l2cap_core.c count = min_t(unsigned int, (conn->mtu - hlen), len); min_t 2240 net/bluetooth/l2cap_core.c count = min_t(unsigned int, (conn->mtu - L2CAP_HDR_SIZE), len); min_t 2282 net/bluetooth/l2cap_core.c count = min_t(unsigned int, (conn->mtu - hlen), len); min_t 2335 net/bluetooth/l2cap_core.c pdu_len = min_t(size_t, pdu_len, L2CAP_BREDR_MAX_PAYLOAD); min_t 2344 net/bluetooth/l2cap_core.c pdu_len = min_t(size_t, pdu_len, chan->remote_mps); min_t 2400 net/bluetooth/l2cap_core.c count = min_t(unsigned int, (conn->mtu - hlen), len); min_t 2937 net/bluetooth/l2cap_core.c count = min_t(unsigned int, conn->mtu, len); min_t 2967 net/bluetooth/l2cap_core.c count = min_t(unsigned int, conn->mtu, len); min_t 3222 net/bluetooth/l2cap_core.c chan->tx_win = min_t(u16, chan->tx_win, min_t 3287 net/bluetooth/l2cap_core.c size = min_t(u16, L2CAP_DEFAULT_MAX_PDU_SIZE, chan->conn->mtu - min_t 3294 net/bluetooth/l2cap_core.c rfc.txwin_size = min_t(u16, chan->tx_win, min_t 3324 net/bluetooth/l2cap_core.c size = min_t(u16, L2CAP_DEFAULT_MAX_PDU_SIZE, chan->conn->mtu - min_t 3516 net/bluetooth/l2cap_core.c size = min_t(u16, le16_to_cpu(rfc.max_pdu_size), min_t 3546 net/bluetooth/l2cap_core.c size = min_t(u16, le16_to_cpu(rfc.max_pdu_size), min_t 3630 net/bluetooth/l2cap_core.c chan->ack_win = min_t(u16, val, chan->ack_win); min_t 3670 net/bluetooth/l2cap_core.c chan->ack_win = min_t(u16, chan->ack_win, min_t 3768 net/bluetooth/l2cap_core.c .txwin_size = min_t(u16, chan->ack_win, L2CAP_DEFAULT_TX_WINDOW), min_t 3801 net/bluetooth/l2cap_core.c chan->ack_win = min_t(u16, chan->ack_win, txwin_ext); min_t 3803 net/bluetooth/l2cap_core.c chan->ack_win = min_t(u16, chan->ack_win, min_t 95 net/bluetooth/l2cap_sock.c len = min_t(unsigned int, sizeof(la), alen); min_t 190 net/bluetooth/l2cap_sock.c len = min_t(unsigned int, sizeof(la), alen); min_t 430 net/bluetooth/l2cap_sock.c len = min_t(unsigned int, len, sizeof(opts)); min_t 480 net/bluetooth/l2cap_sock.c len = min_t(unsigned int, len, sizeof(cinfo)); min_t 536 net/bluetooth/l2cap_sock.c len = min_t(unsigned int, len, sizeof(sec)); min_t 570 net/bluetooth/l2cap_sock.c len = min_t(unsigned int, len, sizeof(pwr)); min_t 664 net/bluetooth/l2cap_sock.c len = min_t(unsigned int, sizeof(opts), optlen); min_t 775 net/bluetooth/l2cap_sock.c len = min_t(unsigned int, sizeof(sec), optlen); min_t 874 net/bluetooth/l2cap_sock.c len = min_t(unsigned int, sizeof(pwr), optlen); min_t 348 net/bluetooth/rfcomm/sock.c len = min_t(unsigned int, sizeof(sa), addr_len); min_t 585 net/bluetooth/rfcomm/sock.c size_t size = min_t(size_t, len, d->mtu); min_t 718 net/bluetooth/rfcomm/sock.c len = min_t(unsigned int, sizeof(sec), optlen); min_t 819 net/bluetooth/rfcomm/sock.c len = min_t(unsigned int, len, sizeof(cinfo)); min_t 863 net/bluetooth/rfcomm/sock.c len = min_t(unsigned int, len, sizeof(sec)); min_t 791 net/bluetooth/rfcomm/tty.c size = min_t(uint, count, dlc->mtu); min_t 833 net/bluetooth/sco.c len = min_t(unsigned int, sizeof(voice), optlen); min_t 886 net/bluetooth/sco.c len = min_t(unsigned int, len, sizeof(opts)); min_t 904 net/bluetooth/sco.c len = min_t(unsigned int, len, sizeof(cinfo)); min_t 953 net/bluetooth/sco.c len = min_t(unsigned int, len, sizeof(voice)); min_t 150 net/bpf/test_run.c size = min_t(u32, max_size, size); min_t 123 net/bridge/netfilter/nft_reject_bridge.c len = min_t(unsigned int, 536, oldskb->len); min_t 259 net/bridge/netfilter/nft_reject_bridge.c len = min_t(unsigned int, 1220, oldskb->len); min_t 424 net/caif/caif_socket.c chunk = min_t(unsigned int, skb->len, size); min_t 646 net/caif/caif_socket.c size = min_t(int, size, skb_tailroom(skb)); min_t 304 net/caif/chnl_net.c mtu = min_t(int, dev->mtu, lldev->mtu - (headroom + tailroom)); min_t 305 net/caif/chnl_net.c mtu = min_t(int, GPRS_PDP_MTU, mtu); min_t 65 net/can/j1939/main.c skb_trim(skb, min_t(uint8_t, cf->can_dlc, 8)); min_t 1021 net/can/j1939/socket.c segment_size = min_t(size_t, J1939_MAX_TP_PACKET_SIZE, min_t 820 net/ceph/messenger.c cursor->resid = min_t(size_t, length, data->bio_length); min_t 881 net/ceph/messenger.c cursor->resid = min_t(size_t, length, data->bvec_pos.iter.bi_size); min_t 71 net/ceph/pagevec.c l = min_t(int, PAGE_SIZE-po, left); min_t 96 net/ceph/pagevec.c size_t l = min_t(size_t, PAGE_SIZE-po, left); min_t 119 net/ceph/pagevec.c size_t l = min_t(size_t, PAGE_SIZE-po, left); min_t 43 net/ceph/striper.c *xlen = min_t(u64, len, l->stripe_unit - blockoff); min_t 247 net/ceph/striper.c len = min_t(u64, objlen, l->stripe_unit - blockoff); min_t 657 net/core/datagram.c int size = min_t(int, copied, PAGE_SIZE - start); min_t 680 net/core/datagram.c int copy = min_t(int, skb_headlen(skb), iov_iter_count(from)); min_t 2655 net/core/dev.c 1 : min_t(int, DEFAULT_MAX_NUM_RSS_QUEUES, num_online_cpus()); min_t 5412 net/core/dev.c NAPI_GRO_CB(skb)->frag0_len = min_t(unsigned int, min_t 667 net/core/drop_monitor.c payload_len = min_t(size_t, skb->len, NET_DM_MAX_PACKET_SIZE); min_t 669 net/core/drop_monitor.c payload_len = min_t(size_t, net_dm_trunc_len, payload_len); min_t 857 net/core/drop_monitor.c payload_len = min_t(size_t, skb->len, NET_DM_MAX_PACKET_SIZE); min_t 859 net/core/drop_monitor.c payload_len = min_t(size_t, net_dm_trunc_len, payload_len); min_t 4255 net/core/filter.c val = min_t(u32, val, sysctl_rmem_max); min_t 4261 net/core/filter.c val = min_t(u32, val, sysctl_wmem_max); min_t 4343 net/core/filter.c strncpy(name, optval, min_t(long, optlen, min_t 1384 net/core/flow_dissector.c key_control->thoff = min_t(u16, nhoff, skb ? skb->len : hlen); min_t 258 net/core/gen_stats.c est.bps = min_t(u64, UINT_MAX, sample.bps); min_t 903 net/core/pktgen.c size_t copy = min_t(size_t, count + 1, 1024); min_t 818 net/core/rtnetlink.c clock = min_t(unsigned long, clock, INT_MAX); min_t 735 net/core/skbuff.c len = min_t(int, skb->len, MAX_HEADER + 128); min_t 772 net/core/skbuff.c seg_len = min_t(int, skb_headlen(skb), len); min_t 791 net/core/skbuff.c seg_len = min_t(int, p_len, len); min_t 1388 net/core/skbuff.c copy = min_t(u32, PAGE_SIZE - d_off, p_len - done); min_t 2284 net/core/skbuff.c *len = min_t(unsigned int, *len, pfrag->size - pfrag->offset); min_t 2465 net/core/skbuff.c slen = min_t(int, len, skb_headlen(skb) - offset); min_t 2499 net/core/skbuff.c slen = min_t(size_t, len, skb_frag_size(frag) - offset); min_t 2958 net/core/skbuff.c plen = min_t(int, skb_headlen(from), len); min_t 2985 net/core/skbuff.c size = min_t(int, skb_frag_size(&skb_shinfo(to)->frags[j]), min_t 5691 net/core/skbuff.c chunk = min_t(unsigned long, data_len, min_t 41 net/core/skmsg.c use = min_t(int, len, pfrag->size - orig_offset); min_t 327 net/core/skmsg.c use = min_t(int, copied, PAGE_SIZE - offset); min_t 781 net/core/sock.c val = min_t(u32, val, sysctl_wmem_max); min_t 786 net/core/sock.c val = min_t(int, val, INT_MAX / 2); min_t 813 net/core/sock.c val = min_t(u32, val, sysctl_rmem_max); min_t 818 net/core/sock.c val = min_t(int, val, INT_MAX / 2); min_t 1474 net/core/sock.c v.val = min_t(unsigned long, sk->sk_max_pacing_rate, ~0U); min_t 1488 net/core/sock.c len = min_t(unsigned int, len, sizeof(meminfo)); min_t 338 net/core/utils.c size_t scope_len = min_t(size_t, sizeof(scope_id) - 1, min_t 218 net/dccp/ackvec.c u8 len = min_t(u32, lost_packets, DCCPAV_MAX_RUNLEN); min_t 89 net/dccp/ccids/ccid2.c min_t(u32, val, DCCPF_ACK_RATIO_MAX)); min_t 1872 net/decnet/af_decnet.c int mss_now = min_t(int, scp->segsize_loc, scp->segsize_rem); min_t 1881 net/decnet/af_decnet.c mss_now = min_t(int, dn_mss_from_pmtu(dst->dev, mtu), mss_now); min_t 142 net/ethernet/eth.c return min_t(u32, __skb_get_poff(NULL, data, &keys, len), len); min_t 844 net/ieee802154/socket.c len = min_t(unsigned int, len, sizeof(int)); min_t 720 net/ipv4/fib_trie.c slen_max = min_t(unsigned char, tn->pos + tn->bits - 1, tn->slen); min_t 256 net/ipv4/icmp.c delta = min_t(u32, now - READ_ONCE(icmp_global.stamp), HZ); min_t 262 net/ipv4/icmp.c delta = min_t(u32, now - icmp_global.stamp, HZ); min_t 268 net/ipv4/icmp.c credit = min_t(u32, icmp_global.credit + incr, sysctl_icmp_msgs_burst); min_t 1076 net/ipv4/ip_output.c alloclen = min_t(int, fraglen, MAX_HEADER); min_t 1199 net/ipv4/ip_output.c copy = min_t(int, copy, pfrag->size - pfrag->offset); min_t 1353 net/ipv4/ip_sockglue.c len = min_t(unsigned int, len, opt->optlen); min_t 1440 net/ipv4/ip_sockglue.c len = min_t(unsigned int, len, sizeof(struct in_addr)); min_t 1541 net/ipv4/ip_sockglue.c len = min_t(unsigned int, sizeof(int), len); min_t 1599 net/ipv4/ipmr.c olr = min_t(unsigned int, olr, sizeof(int)); min_t 1320 net/ipv4/route.c mtu = min_t(unsigned int, mtu, IP_MAX_MTU); min_t 930 net/ipv4/tcp.c tp->gso_segs = min_t(u16, new_size_goal / mss_now, min_t 1318 net/ipv4/tcp.c copy = min_t(int, copy, skb_availroom(skb)); min_t 1339 net/ipv4/tcp.c copy = min_t(int, copy, pfrag->size - pfrag->offset); min_t 1773 net/ipv4/tcp.c zc->length = min_t(unsigned long, zc->length, vma->vm_end - address); min_t 1778 net/ipv4/tcp.c zc->length = min_t(u32, zc->length, inq); min_t 2820 net/ipv4/tcp.c min_t(long, TCP_CA_NAME_MAX-1, optlen)); min_t 2839 net/ipv4/tcp.c min_t(long, TCP_ULP_NAME_MAX - 1, min_t 3422 net/ipv4/tcp.c len = min_t(unsigned int, len, sizeof(int)); min_t 3473 net/ipv4/tcp.c len = min_t(unsigned int, len, sizeof(info)); min_t 3493 net/ipv4/tcp.c len = min_t(unsigned int, len, sz); min_t 3507 net/ipv4/tcp.c len = min_t(unsigned int, len, TCP_CA_NAME_MAX); min_t 3517 net/ipv4/tcp.c len = min_t(unsigned int, len, TCP_ULP_NAME_MAX); min_t 3546 net/ipv4/tcp.c len = min_t(unsigned int, len, key_len); min_t 259 net/ipv4/tcp_bbr.c rate = min_t(u64, rate, sk->sk_max_pacing_rate); min_t 309 net/ipv4/tcp_bbr.c bytes = min_t(unsigned long, min_t 854 net/ipv4/tcp_bbr.c bbr->ack_epoch_acked = min_t(u32, 0xFFFFF, min_t 109 net/ipv4/tcp_highspeed.c tp->snd_cwnd_clamp = min_t(u32, tp->snd_cwnd_clamp, 0xffffffff/128); min_t 164 net/ipv4/tcp_hybla.c tp->snd_cwnd = min_t(u32, tp->snd_cwnd, tp->snd_cwnd_clamp); min_t 175 net/ipv4/tcp_input.c icsk->icsk_ack.rcv_mss = min_t(unsigned int, len, min_t 414 net/ipv4/tcp_input.c room = min_t(int, tp->window_clamp, tcp_space(sk)) - tp->rcv_ssthresh; min_t 448 net/ipv4/tcp_input.c tp->rcvq_space.space = min_t(u32, tp->rcv_wnd, TCP_INIT_CWND * tp->advmss); min_t 505 net/ipv4/tcp_input.c unsigned int hint = min_t(unsigned int, tp->advmss, tp->mss_cache); min_t 650 net/ipv4/tcp_input.c rcvbuf = min_t(u64, rcvwin * rcvmem, min_t 829 net/ipv4/tcp_input.c WRITE_ONCE(sk->sk_pacing_rate, min_t(u64, rate, min_t 869 net/ipv4/tcp_input.c return min_t(__u32, cwnd, tp->snd_cwnd_clamp); min_t 905 net/ipv4/tcp_input.c tp->reordering = min_t(u32, (metric + mss - 1) / mss, min_t 1886 net/ipv4/tcp_input.c tp->reordering = min_t(u32, tp->packets_out + addend, min_t 2017 net/ipv4/tcp_input.c tp->reordering = min_t(unsigned int, tp->reordering, min_t 2494 net/ipv4/tcp_input.c sndcnt = min_t(int, delta, min_t 4464 net/ipv4/tcp_input.c skb_shinfo(to)->gso_segs = min_t(u32, gso_segs, 0xFFFF); min_t 4708 net/ipv4/tcp_input.c int npages = min_t(size_t, size >> PAGE_SHIFT, MAX_SKB_FRAGS); min_t 4963 net/ipv4/tcp_input.c int copy = min_t(int, SKB_MAX_ORDER(0, 0), end - start); min_t 5282 net/ipv4/tcp_input.c delay = min_t(unsigned long, sock_net(sk)->ipv4.sysctl_tcp_comp_sack_delay_ns, min_t 1742 net/ipv4/tcp_ipv4.c skb_shinfo(tail)->gso_segs = min_t(u32, gso_segs, 0xFFFF); min_t 234 net/ipv4/tcp_output.c (*rcv_wnd) = min_t(u32, space, U16_MAX); min_t 244 net/ipv4/tcp_output.c space = min_t(u32, space, *window_clamp); min_t 249 net/ipv4/tcp_output.c (*window_clamp) = min_t(__u32, U16_MAX << (*rcv_wscale), *window_clamp); min_t 758 net/ipv4/tcp_output.c min_t(unsigned int, eff_sacks, min_t 999 net/ipv4/tcp_output.c len_ns -= min_t(u64, len_ns / 2, credit); min_t 1247 net/ipv4/tcp_output.c tp->sacked_out -= min_t(u32, tp->sacked_out, decr); min_t 1406 net/ipv4/tcp_output.c eat = min_t(int, len, skb_headlen(skb)); min_t 1734 net/ipv4/tcp_output.c bytes = min_t(unsigned long, min_t 1761 net/ipv4/tcp_output.c return min_t(u32, tso_segs, sk->sk_gso_max_segs); min_t 2181 net/ipv4/tcp_output.c copy = min_t(int, skb->len, probe_size - len); min_t 2272 net/ipv4/tcp_output.c limit = min_t(unsigned long, limit, min_t 2436 net/ipv4/tcp_output.c min_t(unsigned int, min_t 2533 net/ipv4/tcp_output.c timeout = min_t(u32, timeout, usecs_to_jiffies(rto_delta_us)); min_t 2714 net/ipv4/tcp_output.c int full_space = min_t(int, tp->window_clamp, allowed_space); min_t 2913 net/ipv4/tcp_output.c min_t(u32, sk->sk_wmem_queued + (sk->sk_wmem_queued >> 2), min_t 3078 net/ipv4/tcp_output.c segs = min_t(int, segs, max_segs); min_t 3504 net/ipv4/tcp_output.c space = min_t(size_t, space, fo->size); min_t 3507 net/ipv4/tcp_output.c space = min_t(size_t, space, SKB_MAX_HEAD(MAX_TCP_HEADER)); min_t 216 net/ipv4/tcp_recovery.c tp->rack.reo_wnd_steps = min_t(u32, 0xFF, min_t 40 net/ipv4/tcp_timer.c return min_t(u32, icsk->icsk_rto, msecs_to_jiffies(remaining)); min_t 57 net/ipv4/tcp_yeah.c tp->snd_cwnd_clamp = min_t(u32, tp->snd_cwnd_clamp, 0xffffffff/128); min_t 2665 net/ipv4/udp.c len = min_t(unsigned int, len, sizeof(int)); min_t 1364 net/ipv6/addrconf.c max_desync_factor = min_t(__u32, min_t 1379 net/ipv6/addrconf.c cfg.valid_lft = min_t(__u32, ifp->valid_lft, min_t 1382 net/ipv6/addrconf.c cfg.preferred_lft = min_t(__u32, ifp->prefered_lft, cfg.preferred_lft); min_t 2617 net/ipv6/addrconf.c const u32 minimum_lft = min_t(u32, min_t 568 net/ipv6/icmp.c len = min_t(unsigned int, len, IPV6_MIN_MTU - sizeof(struct ipv6hdr) - sizeof(struct icmp6hdr)); min_t 1481 net/ipv6/ip6_output.c alloclen = min_t(int, fraglen, MAX_HEADER); min_t 1620 net/ipv6/ip6_output.c copy = min_t(int, copy, pfrag->size - pfrag->offset); min_t 1834 net/ipv6/ip6mr.c olr = min_t(int, olr, sizeof(int)); min_t 1022 net/ipv6/ipv6_sockglue.c len = min_t(unsigned int, len, ipv6_optlen(hdr)); min_t 1378 net/ipv6/ipv6_sockglue.c len = min_t(unsigned int, sizeof(int), len); min_t 1608 net/ipv6/mcast.c size = min_t(int, size, SKB_MAX_ORDER(0, 0)); min_t 1661 net/ipv6/ndisc.c rd_len = min_t(unsigned int, min_t 1140 net/ipv6/raw.c len = min_t(unsigned int, sizeof(int), len); min_t 1600 net/ipv6/route.c mtu = min_t(unsigned int, mtu, IP6_MAX_MTU); min_t 3111 net/ipv6/route.c mtu = min_t(unsigned int, mtu, IP6_MAX_MTU); min_t 3152 net/ipv6/route.c mtu = min_t(unsigned int, mtu, IP6_MAX_MTU); min_t 1410 net/iucv/af_iucv.c copied = min_t(unsigned int, rlen, len); min_t 1703 net/iucv/af_iucv.c len = min_t(unsigned int, len, sizeof(int)); min_t 1128 net/iucv/iucv.c copy = min_t(size_t, size, array->length); min_t 1136 net/iucv/iucv.c memcpy(buffer, rmmsg, min_t(size_t, size, 8)); min_t 1290 net/iucv/iucv.c memcpy(parm->dpl.iprmmsg, reply, min_t(size_t, size, 8)); min_t 985 net/kcm/kcmsock.c copy = min_t(int, msg_data_left(msg), min_t 1315 net/kcm/kcmsock.c len = min_t(unsigned int, len, sizeof(int)); min_t 1132 net/key/af_key.c x->props.replay_window = min_t(unsigned int, sa->sadb_sa_replay, min_t 1028 net/l2tp/l2tp_core.c datap, min_t(size_t, 32, len - uhlen)); min_t 1378 net/l2tp/l2tp_ppp.c len = min_t(unsigned int, len, sizeof(int)); min_t 112 net/mac80211/ibss.c *pos++ = min_t(int, 8, rates_n); min_t 280 net/mac80211/mesh.c neighbors = min_t(int, neighbors, IEEE80211_MAX_MESH_PEERINGS); min_t 343 net/mac80211/mesh.h return (min_t(long, mesh_plink_free_count(sdata), min_t 699 net/mac80211/rate.c max_rates = min_t(int, max_rates, IEEE80211_TX_RATE_TABLE_SIZE); min_t 683 net/mac80211/tx.c len = min_t(u32, tx->skb->len + FCS_LEN, min_t 2193 net/mac80211/tx.c info->control.rates[0].count = min_t(u8, rate_retries + 1, min_t 3266 net/mac80211/tx.c max_amsdu_len = min_t(int, max_amsdu_len, min_t 3270 net/mac80211/tx.c max_amsdu_len = min_t(int, max_amsdu_len, min_t 1437 net/mac80211/util.c qparam->txop = min_t(u16, qparam->txop, wmm_ac->cot / 32); min_t 1674 net/mac80211/util.c supp_rates_len = min_t(int, num_rates, 8); min_t 513 net/netfilter/ipvs/ip_vs_sync.c if (abs(diff) < min_t(long, sync_refresh_period, min_diff)) { min_t 136 net/netfilter/nf_conntrack_amanda.c len = min_t(unsigned int, sizeof(pbuf) - 1, stop - off); min_t 116 net/netfilter/nf_conntrack_ftp.c int ret = in6_pton(src, min_t(size_t, dlen, 0xffff), (u8 *)dst, term, &end); min_t 117 net/netfilter/nf_tables_trace.c len = min_t(unsigned int, nh_end - skb_network_offset(skb), min_t 123 net/netfilter/nf_tables_trace.c len = min_t(unsigned int, skb->len - pkt->xt.thoff, min_t 137 net/netfilter/nf_tables_trace.c len = min_t(unsigned int, -off, NFT_TRACETYPE_LL_HSIZE); min_t 262 net/netfilter/nfnetlink_log.c inst->copy_range = min_t(unsigned int, min_t 439 net/netfilter/nfnetlink_queue.c hlen = min_t(unsigned int, hlen, data_len); min_t 36 net/netfilter/nft_payload.c u8 ethlen = min_t(u8, len, ETH_HLEN - offset); min_t 61 net/netfilter/nft_payload.c vlan_len = min_t(u8, len, VLAN_ETH_HLEN - offset); min_t 1966 net/netlink/af_netlink.c nlk->max_recvmsg_len = min_t(size_t, nlk->max_recvmsg_len, min_t 142 net/netlink/genetlink.c i < min_t(int, id + n_groups, min_t 368 net/netrom/af_netrom.c len = min_t(unsigned int, len, sizeof(int)); min_t 692 net/nfc/llcp_commands.c frag_len = min_t(size_t, remote_miu, remaining_len); min_t 758 net/nfc/llcp_commands.c frag_len = min_t(size_t, remote_miu, remaining_len); min_t 75 net/nfc/llcp_sock.c len = min_t(unsigned int, sizeof(llcp_addr), alen); min_t 104 net/nfc/llcp_sock.c llcp_sock->service_name_len = min_t(unsigned int, min_t 155 net/nfc/llcp_sock.c len = min_t(unsigned int, sizeof(llcp_addr), alen); min_t 315 net/nfc/llcp_sock.c len = min_t(u32, len, sizeof(u32)); min_t 716 net/nfc/llcp_sock.c llcp_sock->service_name_len = min_t(unsigned int, min_t 837 net/nfc/llcp_sock.c copied = min_t(unsigned int, rlen, len); min_t 117 net/nfc/nci/data.c min_t(int, total_len, conn_info->max_pkt_payload_len); min_t 100 net/nfc/nci/ntf.c nfca_poll->nfcid1_len = min_t(__u8, *data++, NFC_NFCID1_MAXSIZE); min_t 124 net/nfc/nci/ntf.c nfcb_poll->sensb_res_len = min_t(__u8, *data++, NFC_SENSB_RES_MAXSIZE); min_t 139 net/nfc/nci/ntf.c nfcf_poll->sensf_res_len = min_t(__u8, *data++, NFC_SENSF_RES_MAXSIZE); min_t 165 net/nfc/nci/ntf.c nfcf_listen->local_nfcid2_len = min_t(__u8, *data++, min_t 376 net/nfc/nci/ntf.c nfca_poll->rats_res_len = min_t(__u8, *data++, 20); min_t 386 net/nfc/nci/ntf.c nfcb_poll->attrib_res_len = min_t(__u8, *data++, 50); min_t 413 net/nfc/nci/ntf.c poll->atr_res_len = min_t(__u8, *data++, min_t 423 net/nfc/nci/ntf.c listen->atr_req_len = min_t(__u8, *data++, min_t 473 net/nfc/nci/ntf.c ndev->remote_gb_len = min_t(__u8, min_t 485 net/nfc/nci/ntf.c ndev->remote_gb_len = min_t(__u8, min_t 1365 net/packet/af_packet.c i = j = min_t(int, po->rollover->sock, num - 1); min_t 2503 net/packet/af_packet.c int hdrlen = min_t(int, copylen, tp_len); min_t 2920 net/packet/af_packet.c linear = max(linear, min_t(int, len, dev->hard_header_len)); min_t 1073 net/phonet/pep.c len = min_t(unsigned int, sizeof(int), len); min_t 66 net/qrtr/tun.c count = min_t(size_t, iov_iter_count(to), skb->len); min_t 160 net/rds/ib.c min_t(unsigned int, (device->attrs.max_mr / 2), min_t 164 net/rds/ib.c min_t(unsigned int, ((device->attrs.max_mr / 2) * RDS_MR_8K_SCALE), min_t 210 net/rds/ib_cm.c min_t(u32, rds_ibdev->max_responder_resources, max_responder_resources); min_t 212 net/rds/ib_cm.c min_t(u32, rds_ibdev->max_initiator_depth, max_initiator_depth); min_t 213 net/rds/ib_cm.c conn_param->retry_count = min_t(unsigned int, rds_ib_retry_count, 7); min_t 552 net/rds/ib_recv.c to_copy = min_t(unsigned long, iov_iter_count(to), min_t 554 net/rds/ib_recv.c to_copy = min_t(unsigned long, to_copy, len - copied); min_t 395 net/rds/ib_send.c advertise = min_t(unsigned int, posted, max_posted); min_t 86 net/rds/loop.c ret = min_t(int, ret, sgp->length - conn->c_xmit_data_off); min_t 448 net/rds/message.c to_copy = min_t(unsigned long, iov_iter_count(from), min_t 484 net/rds/message.c to_copy = min_t(unsigned long, iov_iter_count(to), min_t 486 net/rds/message.c to_copy = min_t(unsigned long, to_copy, len - copied); min_t 693 net/rds/rdma.c min_t(unsigned int, iov->bytes, PAGE_SIZE - offset), min_t 217 net/rds/recv.c conn->c_npaths = min_t(int, RDS_MPATH_WORKERS, min_t 375 net/rds/send.c tmp = min_t(int, ret, min_t 384 net/rds/send.c tmp = min_t(int, ret, sg->length - min_t 126 net/rds/tcp_recv.c to_copy = min_t(unsigned int, PAGE_SIZE - map_off, min_t 1194 net/rfkill/core.c sz = min_t(unsigned long, sizeof(ev->ev), count); min_t 455 net/rose/af_rose.c len = min_t(unsigned int, len, sizeof(int)); min_t 26 net/rxrpc/sendmsg.c min_t(unsigned int, call->tx_winsize, min_t 248 net/sched/act_police.c toks = min_t(s64, now - police->tcfp_t_c, p->tcfp_burst); min_t 193 net/sched/sch_cbs.c q->credits = min_t(s64, credits, q->hicredit); min_t 921 net/sched/sch_fq.c min_t(unsigned long, q->flow_max_rate, ~0U)) || min_t 955 net/sched/sch_fq.c st.unthrottle_latency_ns = min_t(unsigned long, min_t 663 net/sched/sch_htb.c diff = min_t(s64, q->now - cl->t_c, cl->mbuffer); min_t 723 net/sched/sch_htb.c diff = min_t(s64, q->now - cl->t_c, cl->mbuffer); min_t 1464 net/sched/sch_htb.c cl->quantum = min_t(u64, quantum, INT_MAX); min_t 1142 net/sched/sch_netem.c qopt.latency = min_t(psched_tdiff_t, PSCHED_NS2TICKS(q->latency), min_t 1144 net/sched/sch_netem.c qopt.jitter = min_t(psched_tdiff_t, PSCHED_NS2TICKS(q->jitter), min_t 115 net/sched/sch_sfb.c return min_t(u32, res, SFB_MAX_PROB); min_t 664 net/sched/sch_sfq.c q->maxflows = min_t(u32, ctl->flows, SFQ_MAX_FLOWS); min_t 667 net/sched/sch_sfq.c q->maxflows = min_t(u32, q->maxflows, q->divisor); min_t 671 net/sched/sch_sfq.c q->maxdepth = min_t(u32, ctl_v1->depth, SFQ_MAX_DEPTH); min_t 685 net/sched/sch_sfq.c q->limit = min_t(u32, ctl->limit, q->maxdepth * q->maxflows); min_t 686 net/sched/sch_sfq.c q->maxflows = min_t(u32, q->maxflows, q->limit); min_t 733 net/sched/sch_taprio.c close_time = min_t(ktime_t, close_time, oper->cycle_close_time); min_t 1039 net/sched/sch_taprio.c start = min_t(ktime_t, start, expires); min_t 223 net/sched/sch_tbf.c toks = min_t(s64, now - q->t_c, q->buffer); min_t 326 net/sched/sch_tbf.c buffer = min_t(u64, PSCHED_TICKS2NS(qopt->buffer), ~0U); min_t 327 net/sched/sch_tbf.c mtu = min_t(u64, PSCHED_TICKS2NS(qopt->mtu), ~0U); min_t 337 net/sched/sch_tbf.c max_size = min_t(u64, psched_ns_t2l(&rate, buffer), ~0U); min_t 353 net/sched/sch_tbf.c max_size = min_t(u32, max_size, pburst); min_t 356 net/sched/sch_tbf.c max_size = min_t(u64, max_size, psched_ns_t2l(&peak, mtu)); min_t 661 net/sctp/associola.c min_t(int, peer->pathmtu, asoc->pathmtu) : min_t 1402 net/sctp/associola.c frag = min_t(int, frag, asoc->user_frag); min_t 1404 net/sctp/associola.c frag = min_t(int, frag, SCTP_MAX_CHUNK_LEN - min_t 148 net/sctp/bind_addr.c memcpy(&addr->a, new, min_t(size_t, sizeof(*new), new_size)); min_t 1251 net/sctp/sm_make_chunk.c size = min_t(size_t, size, asoc->pathmtu); min_t 3671 net/sctp/socket.c optlen = min_t(unsigned int, optlen, sizeof(struct sctp_hmacalgo) + min_t 3711 net/sctp/socket.c optlen = min_t(unsigned int, optlen, USHRT_MAX + sizeof(*authkey)); min_t 4213 net/sctp/socket.c optlen = min_t(unsigned int, optlen, USHRT_MAX + min_t 7254 net/sctp/socket.c len = min_t(size_t, len, sizeof(sas)); min_t 351 net/sctp/tsnmap.c len = min_t(u16, map->len + inc, SCTP_TSN_MAP_SIZE); min_t 198 net/smc/smc_cdc.h return min_t(int, min_t 204 net/smc/smc_cdc.h return min_t(int, min_t 222 net/smc/smc_clc.c max = min_t(u8, prop->ipv6_prefixes_cnt, SMC_CLC_MAX_V6_PREFIX); min_t 736 net/smc/smc_core.c return min_t(int, rmbe_size / 10, SOCK_MIN_SNDBUF / 2); min_t 547 net/smc/smc_ib.c i < min_t(size_t, port_cnt, SMC_MAX_PORTS); min_t 540 net/smc/smc_llc.c max = min_t(u8, llc->num_rkeys, SMC_LLC_DEL_RKEY_MAX); min_t 387 net/smc/smc_rx.c copylen = min_t(size_t, read_remaining, readable); min_t 390 net/smc/smc_rx.c chunk_len = min_t(size_t, copylen, conn->rmb_desc->len - min_t 179 net/smc/smc_tx.c copylen = min_t(size_t, send_remaining, writespace); min_t 186 net/smc/smc_tx.c chunk_len = min_t(size_t, copylen, conn->sndbuf_desc->len - min_t 352 net/smc/smc_tx.c src_len = min_t(int, dst_len, conn->sndbuf_desc->len - min_t 393 net/smc/smc_tx.c src_len = min_t(int, dst_len, conn->sndbuf_desc->len - src_off); min_t 441 net/smc/smc_tx.c dst_len = min_t(size_t, min_t 457 net/smc/smc_wr.c lnk->wr_tx_cnt = min_t(size_t, SMC_WR_BUF_CNT, min_t 459 net/smc/smc_wr.c lnk->wr_rx_cnt = min_t(size_t, SMC_WR_BUF_CNT * 3, min_t 581 net/sunrpc/auth_gss/gss_krb5_wrap.c movelen = min_t(unsigned int, buf->head[0].iov_len, len); min_t 1123 net/sunrpc/auth_gss/svcauth_gss.c length = min_t(unsigned int, inlen, argv->iov_len); min_t 1130 net/sunrpc/auth_gss/svcauth_gss.c length = min_t(unsigned int, inlen, PAGE_SIZE); min_t 1658 net/sunrpc/svc.c vec[i].iov_len = min_t(size_t, total, first->iov_len); min_t 1665 net/sunrpc/svc.c vec[i].iov_len = min_t(size_t, total, PAGE_SIZE); min_t 1700 net/sunrpc/svc.c len = min_t(size_t, total, first->iov_len); min_t 1708 net/sunrpc/svc.c len = min_t(size_t, remaining, PAGE_SIZE); min_t 611 net/sunrpc/xdr.c xdr->end = (void *)p + min_t(int, space_left, PAGE_SIZE); min_t 684 net/sunrpc/xdr.c fraglen = min_t(int, buf->len - len, tail->iov_len); min_t 694 net/sunrpc/xdr.c fraglen = min_t(int, buf->len - len, buf->page_len); min_t 1115 net/sunrpc/xdr.c subbuf->head[0].iov_len = min_t(unsigned int, len, min_t 1138 net/sunrpc/xdr.c subbuf->tail[0].iov_len = min_t(unsigned int, len, min_t 1169 net/sunrpc/xdr.c cur = min_t(size_t, buf->tail[0].iov_len, trim); min_t 1177 net/sunrpc/xdr.c cur = min_t(unsigned int, buf->page_len, trim); min_t 1185 net/sunrpc/xdr.c cur = min_t(size_t, buf->head[0].iov_len, trim); min_t 1198 net/sunrpc/xdr.c this_len = min_t(unsigned int, len, subbuf->head[0].iov_len); min_t 1202 net/sunrpc/xdr.c this_len = min_t(unsigned int, len, subbuf->page_len); min_t 1207 net/sunrpc/xdr.c this_len = min_t(unsigned int, len, subbuf->tail[0].iov_len); min_t 1229 net/sunrpc/xdr.c this_len = min_t(unsigned int, len, subbuf->head[0].iov_len); min_t 1233 net/sunrpc/xdr.c this_len = min_t(unsigned int, len, subbuf->page_len); min_t 1238 net/sunrpc/xdr.c this_len = min_t(unsigned int, len, subbuf->tail[0].iov_len); min_t 1364 net/sunrpc/xdr.c avail_here = min_t(unsigned int, todo, min_t 1405 net/sunrpc/xdr.c avail_page = min_t(unsigned int, PAGE_SIZE - base, min_t 50 net/sunrpc/xprtrdma/backchannel.c maxmsg = min_t(unsigned int, ep->rep_inline_send, ep->rep_inline_recv); min_t 51 net/sunrpc/xprtrdma/backchannel.c maxmsg = min_t(unsigned int, maxmsg, PAGE_SIZE); min_t 193 net/sunrpc/xprtrdma/backchannel.c size = min_t(size_t, r_xprt->rx_ep.rep_inline_recv, PAGE_SIZE); min_t 303 net/sunrpc/xprtrdma/frwr_ops.c return min_t(unsigned int, RPCRDMA_MAX_DATA_SEGS, min_t 149 net/sunrpc/xprtrdma/rpc_rdma.c remaining -= min_t(unsigned int, min_t 206 net/sunrpc/xprtrdma/rpc_rdma.c seg->mr_len = min_t(u32, PAGE_SIZE - page_offset, remaining); min_t 251 net/sunrpc/xprtrdma/rpc_rdma.c seg->mr_len = min_t(u32, PAGE_SIZE - page_base, len); min_t 675 net/sunrpc/xprtrdma/rpc_rdma.c len = min_t(u32, PAGE_SIZE - page_base, remaining); min_t 383 net/sunrpc/xprtrdma/svc_rdma_rw.c sge_bytes = min_t(unsigned int, remaining, min_t 617 net/sunrpc/xprtrdma/svc_rdma_rw.c seg_len = min_t(unsigned int, len, min_t 787 net/sunrpc/xprtrdma/svc_rdma_rw.c head->rc_arg.head[0].iov_len = min_t(size_t, PAGE_SIZE, min_t 560 net/sunrpc/xprtrdma/svc_rdma_sendto.c remaining -= min_t(u32, PAGE_SIZE - pageoff, min_t 610 net/sunrpc/xprtrdma/svc_rdma_sendto.c len = min_t(u32, PAGE_SIZE - pageoff, remaining); min_t 685 net/sunrpc/xprtrdma/svc_rdma_sendto.c len = min_t(u32, PAGE_SIZE - page_off, remaining); min_t 518 net/sunrpc/xprtrdma/svc_rdma_transport.c conn_param.initiator_depth = min_t(int, newxprt->sc_ord, min_t 488 net/sunrpc/xprtrdma/verbs.c max_sge = min_t(unsigned int, ia->ri_id->device->attrs.max_send_sge, min_t 557 net/sunrpc/xprtrdma/verbs.c min_t(int, U8_MAX, ia->ri_id->device->attrs.max_qp_rd_atom); min_t 408 net/sunrpc/xprtsock.c want = min_t(size_t, count, buf->head[0].iov_len); min_t 425 net/sunrpc/xprtsock.c min_t(size_t, count - offset, buf->page_len), min_t 446 net/sunrpc/xprtsock.c want = min_t(size_t, count - offset, buf->tail[0].iov_len); min_t 572 net/tipc/msg.c dlen = min_t(uint, msg_data_sz(_hdr), MAX_FORWARD_SIZE); min_t 414 net/tipc/netlink_compat.c len = min_t(int, len, TIPC_MAX_BEARER_NAME); min_t 455 net/tipc/netlink_compat.c len = min_t(int, len, TIPC_MAX_BEARER_NAME); min_t 553 net/tipc/netlink_compat.c len = min_t(int, len, TIPC_MAX_LINK_NAME); min_t 788 net/tipc/netlink_compat.c len = min_t(int, len, TIPC_MAX_LINK_NAME); min_t 825 net/tipc/netlink_compat.c len = min_t(int, len, TIPC_MAX_LINK_NAME); min_t 1477 net/tipc/socket.c send = min_t(size_t, dlen - sent, TIPC_MAX_USER_MSG_SIZE); min_t 1787 net/tipc/socket.c copy = min_t(int, dlen, buflen); min_t 1902 net/tipc/socket.c copy = min_t(int, dlen - offset, buflen - copied); min_t 470 net/tls/tls_device.c copy = min_t(size_t, size, (pfrag->size - pfrag->offset)); min_t 471 net/tls/tls_device.c copy = min_t(size_t, copy, (max_open_record_len - record->len)); min_t 809 net/tls/tls_device.c copy = min_t(int, skb_pagelen(skb) - offset, data_len); min_t 835 net/tls/tls_device.c copy = min_t(int, skb_iter->len - frag_pos, min_t 60 net/tls/tls_device_fallback.c len = min_t(int, *in_len, ARRAY_SIZE(buf)); min_t 1356 net/tls/tls_sw.c use = min_t(int, copied, PAGE_SIZE - offset); min_t 1653 net/tls/tls_sw.c int chunk = min_t(unsigned int, rxm->full_len - skip, len); min_t 1989 net/tls/tls_sw.c chunk = min_t(unsigned int, rxm->full_len, len); min_t 1629 net/unix/af_unix.c data_len = min_t(size_t, min_t 1825 net/unix/af_unix.c size = min_t(int, size, (sk->sk_sndbuf >> 1) - 64); min_t 1828 net/unix/af_unix.c size = min_t(int, size, SKB_MAX_HEAD(0) + UNIX_SKB_FRAGS_SZ); min_t 1832 net/unix/af_unix.c data_len = min_t(size_t, size, PAGE_ALIGN(data_len)); min_t 2326 net/unix/af_unix.c chunk = min_t(unsigned int, unix_skb_len(skb) - skip, size); min_t 357 net/vmw_vsock/hyperv_transport.c sndbuf = min_t(int, sndbuf, RINGBUFFER_HVS_MAX_SIZE); min_t 360 net/vmw_vsock/hyperv_transport.c rcvbuf = min_t(int, rcvbuf, RINGBUFFER_HVS_MAX_SIZE); min_t 603 net/vmw_vsock/hyperv_transport.c to_read = min_t(u32, len, hvs->recv_data_len); min_t 647 net/vmw_vsock/hyperv_transport.c to_write = min_t(ssize_t, len, max_writable); min_t 648 net/vmw_vsock/hyperv_transport.c to_write = min_t(ssize_t, to_write, HVS_SEND_BUF_SIZE); min_t 1202 net/wireless/reg.c bw = min_t(unsigned int, bw, MHZ_TO_KHZ(80)); min_t 1204 net/wireless/reg.c bw = min_t(unsigned int, bw, MHZ_TO_KHZ(40)); min_t 1212 net/wireless/reg.c bw = min_t(unsigned int, bw, MHZ_TO_KHZ(20)); min_t 1312 net/wireless/reg.c intersect->cot = min_t(u16, wmm_ac1->cot, wmm_ac2->cot); min_t 1777 net/wireless/reg.c min_t(int, chan->orig_mag, min_t 630 net/wireless/util.c cur_len = min_t(int, len, 32); min_t 1355 net/wireless/util.c copy = min_t(unsigned int, attr_remaining, iedatalen); min_t 1387 net/wireless/util.c copy = min_t(unsigned int, attr_len, iedatalen); min_t 744 net/wireless/wext-compat.c erq->length = min_t(size_t, erq->length, min_t 473 net/x25/af_x25.c len = min_t(unsigned int, len, sizeof(int)); min_t 500 net/xfrm/xfrm_user.c x->props.replay_window = min_t(unsigned int, p->replay_window, min_t 388 samples/qmi/qmi_sample_client.c req->data_len = min_t(size_t, sizeof(req->data), count); min_t 268 security/integrity/ima/ima_crypto.c rbuf_len = min_t(loff_t, i_size - offset, rbuf_size[active]); min_t 181 security/keys/big_key.c l = min_t(size_t, len, PAGE_SIZE); min_t 163 security/keys/dh.c size_t chunk = min_t(size_t, zlen, sizeof(tmpbuffer)); min_t 173 security/keys/dh.c chunk = min_t(size_t, zlen, sizeof(tmpbuffer)); min_t 217 security/keys/keyring.c size_t n = min_t(size_t, index_key->desc_len, sizeof(index_key->desc)); min_t 2196 sound/core/pcm_lib.c runtime->twake = min_t(snd_pcm_uframes_t, size, min_t 44 sound/firewire/bebob/bebob_hwdep.c count = min_t(long, count, sizeof(event.lock_status)); min_t 36 sound/firewire/dice/dice-hwdep.c count = min_t(long, count, sizeof(event.lock_status)); min_t 43 sound/firewire/dice/dice-hwdep.c count = min_t(long, count, sizeof(event.dice_notification)); min_t 125 sound/firewire/dice/dice-proc.c quadlets = min_t(u32, sections[1], sizeof(buf.global) / 4); min_t 172 sound/firewire/dice/dice-proc.c quadlets = min_t(u32, tx_rx_header.size, sizeof(buf.tx) / 4); min_t 198 sound/firewire/dice/dice-proc.c quadlets = min_t(u32, tx_rx_header.size, sizeof(buf.rx) / 4); min_t 222 sound/firewire/dice/dice-proc.c quadlets = min_t(u32, sections[7], sizeof(buf.ext_sync) / 4); min_t 125 sound/firewire/dice/dice-stream.c min_t(unsigned int, be32_to_cpu(reg[0]), MAX_STREAMS); min_t 132 sound/firewire/dice/dice-stream.c min_t(unsigned int, be32_to_cpu(reg[0]), MAX_STREAMS); min_t 44 sound/firewire/digi00x/digi00x-hwdep.c count = min_t(long, count, sizeof(event.lock_status)); min_t 51 sound/firewire/digi00x/digi00x-hwdep.c count = min_t(long, count, sizeof(event.digi00x_message)); min_t 367 sound/firewire/fcp.c t->response_size = min_t(unsigned int, length, min_t 43 sound/firewire/fireface/ff-hwdep.c count = min_t(long, count, sizeof(event.lock_status)); min_t 167 sound/firewire/fireworks/fireworks_command.c resp_bytes = min_t(unsigned int, resp_bytes, min_t 62 sound/firewire/fireworks/fireworks_hwdep.c till_end = min_t(unsigned int, length, till_end); min_t 112 sound/firewire/fireworks/fireworks_hwdep.c count = min_t(long, count, sizeof(event.lock_status)); min_t 124 sound/firewire/fireworks/fireworks_transaction.c length = min_t(size_t, be32_to_cpu(t->length) * sizeof(u32), length); min_t 144 sound/firewire/fireworks/fireworks_transaction.c till_end = min_t(unsigned int, length, till_end); min_t 216 sound/firewire/fireworks/fireworks_transaction.c t->size = min_t(unsigned int, length, t->size); min_t 44 sound/firewire/motu/motu-hwdep.c count = min_t(long, count, sizeof(event.lock_status)); min_t 50 sound/firewire/motu/motu-hwdep.c count = min_t(long, count, sizeof(event.motu_notification)); min_t 43 sound/firewire/oxfw/oxfw-hwdep.c count = min_t(long, count, sizeof(event.lock_status)); min_t 27 sound/firewire/tascam/tascam-hwdep.c count = min_t(long, count, sizeof(event)); min_t 164 sound/oss/dmasound/dmasound_atari.c count = min_t(unsigned long, userCount, frameLeft); min_t 187 sound/oss/dmasound/dmasound_atari.c count = min_t(unsigned long, userCount, frameLeft); min_t 206 sound/oss/dmasound/dmasound_atari.c count = min_t(unsigned long, userCount, frameLeft); min_t 217 sound/oss/dmasound/dmasound_atari.c count = min_t(unsigned long, userCount, frameLeft)>>1; min_t 241 sound/oss/dmasound/dmasound_atari.c count = min_t(unsigned long, userCount, frameLeft)>>1; min_t 255 sound/oss/dmasound/dmasound_atari.c count = min_t(unsigned long, userCount, frameLeft) & ~3; min_t 273 sound/oss/dmasound/dmasound_atari.c count = min_t(unsigned long, userCount, frameLeft)>>1; min_t 288 sound/oss/dmasound/dmasound_atari.c count = min_t(unsigned long, userCount, frameLeft)>>2; min_t 313 sound/oss/dmasound/dmasound_atari.c count = min_t(unsigned long, userCount, frameLeft)>>1; min_t 328 sound/oss/dmasound/dmasound_atari.c count = min_t(unsigned long, userCount, frameLeft)>>2; min_t 354 sound/oss/dmasound/dmasound_atari.c count = min_t(unsigned long, userCount, frameLeft)>>1; min_t 368 sound/oss/dmasound/dmasound_atari.c count = min_t(unsigned long, userCount, frameLeft)>>2; min_t 164 sound/oss/dmasound/dmasound_paula.c count = min_t(unsigned long, userCount, frameLeft) & ~1; min_t 171 sound/oss/dmasound/dmasound_paula.c count = min_t(unsigned long, userCount, frameLeft)>>1 & ~1; min_t 198 sound/oss/dmasound/dmasound_paula.c count = min_t(size_t, userCount, frameLeft) & ~1; \ min_t 210 sound/oss/dmasound/dmasound_paula.c count = min_t(size_t, userCount, frameLeft)>>1 & ~1; \ min_t 252 sound/oss/dmasound/dmasound_paula.c count = min_t(size_t, userCount, frameLeft)>>1 & ~1; \ min_t 267 sound/oss/dmasound/dmasound_paula.c count = min_t(size_t, userCount, frameLeft)>>2 & ~1; \ min_t 70 sound/oss/dmasound/dmasound_q40.c used = count = min_t(size_t, userCount, frameLeft); min_t 90 sound/oss/dmasound/dmasound_q40.c used = count = min_t(size_t, userCount, frameLeft); min_t 109 sound/oss/dmasound/dmasound_q40.c used = count = min_t(size_t, userCount, frameLeft); min_t 155 sound/pci/asihpi/hpioctl.c res_max_size = min_t(size_t, res_max_size, sizeof(*hr)); min_t 89 sound/soc/codecs/rt5677-spi.c *len = min_t(u32, *len, RT5677_SPI_BURST_LEN); min_t 100 sound/soc/codecs/rt5677-spi.c u32 word_size = min_t(u32, dstlen, 8); min_t 327 sound/soc/uniphier/aio-compress.c size_t cnt = min_t(size_t, count, aio_rb_space_to_end(sub) / 2); min_t 684 tools/vm/page-types.c batch = min_t(unsigned long, count, KPAGEFLAGS_BATCH); min_t 734 tools/vm/page-types.c batch = min_t(unsigned long, count, PAGEMAP_BATCH); min_t 767 tools/vm/page-types.c index = min_t(unsigned long, pg_end[i], end); min_t 780 tools/vm/page-types.c opt_size[nr_addr_ranges] = min_t(unsigned long, size, ULONG_MAX-offset); min_t 2035 virt/kvm/arm/vgic/vgic-its.c return min_t(u32, next_offset, VITS_DTE_MAX_DEVID_OFFSET); min_t 2048 virt/kvm/arm/vgic/vgic-its.c return min_t(u32, next_offset, VITS_ITE_MAX_EVENTID_OFFSET);