lim 1053 arch/ia64/kernel/efi.c u64 as, ae, lim; lim 1101 arch/ia64/kernel/efi.c lim = min(efi_md_end(md), contig_low); lim 1107 arch/ia64/kernel/efi.c (lim - md->phys_addr) lim 1112 arch/ia64/kernel/efi.c k->num_pages = (lim - md->phys_addr) lim 1122 arch/ia64/kernel/efi.c lim = max(md->phys_addr, contig_high); lim 1124 arch/ia64/kernel/efi.c if (lim == md->phys_addr && k > kern_memmap && lim 1130 arch/ia64/kernel/efi.c k->start = lim; lim 1131 arch/ia64/kernel/efi.c k->num_pages = (efi_md_end(md) - lim) lim 731 arch/ia64/kernel/unwind.c spill_next_when (struct unw_reg_info **regp, struct unw_reg_info *lim, unw_word t) lim 735 arch/ia64/kernel/unwind.c for (reg = *regp; reg <= lim; ++reg) { lim 468 arch/mips/netlogic/xlp/nlm_hal.c uint64_t bridgebase, base, lim; lim 502 arch/mips/netlogic/xlp/nlm_hal.c lim = ((uint64_t)val + 1) << 20; lim 504 arch/mips/netlogic/xlp/nlm_hal.c dram_map[rv + 1] = lim; lim 234 arch/powerpc/kernel/cacheinfo.c int i, lim; lim 236 arch/powerpc/kernel/cacheinfo.c lim = ARRAY_SIZE(cache_type_info[cache->type].line_size_props); lim 238 arch/powerpc/kernel/cacheinfo.c for (i = 0; i < lim; i++) { lim 28 arch/um/os-Linux/main.c struct rlimit lim; lim 30 arch/um/os-Linux/main.c if (getrlimit(RLIMIT_STACK, &lim) < 0) { lim 34 arch/um/os-Linux/main.c if ((lim.rlim_cur == RLIM_INFINITY) || (lim.rlim_cur > STACKSIZE)) { lim 35 arch/um/os-Linux/main.c lim.rlim_cur = STACKSIZE; lim 36 arch/um/os-Linux/main.c if (setrlimit(RLIMIT_STACK, &lim) < 0) { lim 303 arch/um/os-Linux/start_up.c struct rlimit lim; lim 304 arch/um/os-Linux/start_up.c int err = getrlimit(RLIMIT_CORE, &lim); lim 312 arch/um/os-Linux/start_up.c if (lim.rlim_cur == RLIM_INFINITY) lim 315 arch/um/os-Linux/start_up.c os_info("%llu\n", (unsigned long long)lim.rlim_cur); lim 318 arch/um/os-Linux/start_up.c if (lim.rlim_max == RLIM_INFINITY) lim 321 arch/um/os-Linux/start_up.c os_info("%llu\n", (unsigned long long)lim.rlim_max); lim 711 arch/x86/kvm/emulate.c u32 lim; lim 741 arch/x86/kvm/emulate.c lim = desc_limit_scaled(&desc); lim 744 arch/x86/kvm/emulate.c if (addr.ea <= lim) lim 746 arch/x86/kvm/emulate.c lim = desc.d ? 0xffffffff : 0xffff; lim 748 arch/x86/kvm/emulate.c if (addr.ea > lim) lim 750 arch/x86/kvm/emulate.c if (lim == 0xffffffff) lim 753 arch/x86/kvm/emulate.c *max_size = (u64)lim + 1 - addr.ea; lim 38 block/blk-settings.c void blk_set_default_limits(struct queue_limits *lim) lim 40 block/blk-settings.c lim->max_segments = BLK_MAX_SEGMENTS; lim 41 block/blk-settings.c lim->max_discard_segments = 1; lim 42 block/blk-settings.c lim->max_integrity_segments = 0; lim 43 block/blk-settings.c lim->seg_boundary_mask = BLK_SEG_BOUNDARY_MASK; lim 44 block/blk-settings.c lim->virt_boundary_mask = 0; lim 45 block/blk-settings.c lim->max_segment_size = BLK_MAX_SEGMENT_SIZE; lim 46 block/blk-settings.c lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; lim 47 block/blk-settings.c lim->max_dev_sectors = 0; lim 48 block/blk-settings.c lim->chunk_sectors = 0; lim 49 block/blk-settings.c lim->max_write_same_sectors = 0; lim 50 block/blk-settings.c lim->max_write_zeroes_sectors = 0; lim 51 block/blk-settings.c lim->max_discard_sectors = 0; lim 52 block/blk-settings.c lim->max_hw_discard_sectors = 0; lim 53 block/blk-settings.c lim->discard_granularity = 0; lim 54 block/blk-settings.c lim->discard_alignment = 0; lim 55 block/blk-settings.c lim->discard_misaligned = 0; lim 56 block/blk-settings.c lim->logical_block_size = lim->physical_block_size = lim->io_min = 512; lim 57 block/blk-settings.c lim->bounce_pfn = (unsigned long)(BLK_BOUNCE_ANY >> PAGE_SHIFT); lim 58 block/blk-settings.c lim->alignment_offset = 0; lim 59 block/blk-settings.c lim->io_opt = 0; lim 60 block/blk-settings.c lim->misaligned = 0; lim 61 block/blk-settings.c lim->zoned = BLK_ZONED_NONE; lim 73 block/blk-settings.c void blk_set_stacking_limits(struct queue_limits *lim) lim 75 block/blk-settings.c blk_set_default_limits(lim); lim 78 block/blk-settings.c lim->max_segments = USHRT_MAX; lim 79 block/blk-settings.c lim->max_discard_segments = USHRT_MAX; lim 80 block/blk-settings.c lim->max_hw_sectors = UINT_MAX; lim 81 block/blk-settings.c lim->max_segment_size = UINT_MAX; lim 82 block/blk-settings.c lim->max_sectors = UINT_MAX; lim 83 block/blk-settings.c lim->max_dev_sectors = UINT_MAX; lim 84 block/blk-settings.c lim->max_write_same_sectors = UINT_MAX; lim 85 block/blk-settings.c lim->max_write_zeroes_sectors = UINT_MAX; lim 89 drivers/base/cacheinfo.c int i, lim, ct_idx; lim 92 drivers/base/cacheinfo.c lim = ARRAY_SIZE(cache_type_info[ct_idx].line_size_props); lim 94 drivers/base/cacheinfo.c for (i = 0; i < lim; i++) { lim 246 drivers/block/aoe/aoedev.c size_t lim; lim 251 drivers/block/aoe/aoedev.c lim = sizeof(d->gd->disk_name); lim 252 drivers/block/aoe/aoedev.c lim -= p - d->gd->disk_name; lim 253 drivers/block/aoe/aoedev.c if (slen < lim) lim 254 drivers/block/aoe/aoedev.c lim = slen; lim 256 drivers/block/aoe/aoedev.c return !strncmp(s, p, lim); lim 48 drivers/dma/dw-edma/dw-edma-v0-debugfs.c } lim[2][EDMA_V0_MAX_NR_CH]; lim 66 drivers/dma/dw-edma/dw-edma-v0-debugfs.c if (lim[0][ch].start >= reg && reg < lim[0][ch].end) { lim 67 drivers/dma/dw-edma/dw-edma-v0-debugfs.c ptr += (reg - lim[0][ch].start); lim 72 drivers/dma/dw-edma/dw-edma-v0-debugfs.c if (lim[1][ch].start >= reg && reg < lim[1][ch].end) { lim 73 drivers/dma/dw-edma/dw-edma-v0-debugfs.c ptr += (reg - lim[1][ch].start); lim 192 drivers/dma/dw-edma/dw-edma-v0-debugfs.c lim[0][i].start = ®s->type.unroll.ch[i].wr; lim 193 drivers/dma/dw-edma/dw-edma-v0-debugfs.c lim[0][i].end = ®s->type.unroll.ch[i].padding_1[0]; lim 261 drivers/dma/dw-edma/dw-edma-v0-debugfs.c lim[1][i].start = ®s->type.unroll.ch[i].rd; lim 262 drivers/dma/dw-edma/dw-edma-v0-debugfs.c lim[1][i].end = ®s->type.unroll.ch[i].padding_2[0]; lim 1233 drivers/edac/amd64_edac.c amd64_read_pci_cfg(pvt->F1, DRAM_LIMIT_LO + off, &pvt->ranges[range].lim.lo); lim 1242 drivers/edac/amd64_edac.c amd64_read_pci_cfg(pvt->F1, DRAM_LIMIT_HI + off, &pvt->ranges[range].lim.hi); lim 1265 drivers/edac/amd64_edac.c pvt->ranges[range].lim.lo &= GENMASK_ULL(15, 0); lim 1268 drivers/edac/amd64_edac.c pvt->ranges[range].lim.lo |= ((llim & 0x1fff) << 3 | 0x7) << 16; lim 1270 drivers/edac/amd64_edac.c pvt->ranges[range].lim.hi &= GENMASK_ULL(7, 0); lim 1273 drivers/edac/amd64_edac.c pvt->ranges[range].lim.hi |= llim >> 13; lim 144 drivers/edac/amd64_edac.h #define dram_intlv_sel(pvt, i) ((u8)((pvt->ranges[i].lim.lo >> 8) & 0x7)) lim 145 drivers/edac/amd64_edac.h #define dram_dst_node(pvt, i) ((u8)(pvt->ranges[i].lim.lo & 0x7)) lim 315 drivers/edac/amd64_edac.h struct reg_pair lim; lim 425 drivers/edac/amd64_edac.h u64 lim = (((u64)pvt->ranges[i].lim.lo & 0xffff0000) << 8) | 0x00ffffff; lim 428 drivers/edac/amd64_edac.h return lim; lim 430 drivers/edac/amd64_edac.h return (((u64)pvt->ranges[i].lim.hi & 0x000000ff) << 40) | lim; lim 52 drivers/firmware/broadcom/bcm47xx_nvram.c static int nvram_find_and_copy(void __iomem *iobase, u32 lim) lim 65 drivers/firmware/broadcom/bcm47xx_nvram.c while (off <= lim) { lim 118 drivers/firmware/broadcom/bcm47xx_nvram.c int bcm47xx_nvram_init_from_mem(u32 base, u32 lim) lim 123 drivers/firmware/broadcom/bcm47xx_nvram.c iobase = ioremap_nocache(base, lim); lim 127 drivers/firmware/broadcom/bcm47xx_nvram.c err = nvram_find_and_copy(iobase, lim); lim 11409 drivers/gpu/drm/i915/i915_reg.h #define DSC_RC_QUANT_INC_LIMIT1(lim) ((lim) << 8) lim 11410 drivers/gpu/drm/i915/i915_reg.h #define DSC_RC_QUANT_INC_LIMIT0(lim) ((lim) << 0) lim 79 drivers/hwmon/smm665.c #define smm665_is_critical(lim) ((lim) & (SMM665_TRIGGER_RST \ lim 288 drivers/input/serio/hil_mlc.c static int hilse_inc_lcv(hil_mlc *mlc, int lim) lim 290 drivers/input/serio/hil_mlc.c return mlc->lcv++ >= lim ? -1 : 0; lim 242 drivers/media/i2c/smiapp/smiapp-core.c struct smiapp_pll_limits lim = { lim 274 drivers/media/i2c/smiapp/smiapp-core.c return smiapp_pll_calculate(&client->dev, &lim, pll); lim 870 drivers/media/platform/exynos4-is/fimc-core.c struct fimc_pix_limit *lim; lim 877 drivers/media/platform/exynos4-is/fimc-core.c v = devm_kzalloc(dev, sizeof(*v) + sizeof(*lim), GFP_KERNEL); lim 890 drivers/media/platform/exynos4-is/fimc-core.c lim = (struct fimc_pix_limit *)&v[1]; lim 892 drivers/media/platform/exynos4-is/fimc-core.c lim->scaler_en_w = args[0]; lim 893 drivers/media/platform/exynos4-is/fimc-core.c lim->scaler_dis_w = args[1]; lim 894 drivers/media/platform/exynos4-is/fimc-core.c lim->out_rot_en_w = args[2]; lim 895 drivers/media/platform/exynos4-is/fimc-core.c lim->out_rot_dis_w = args[3]; lim 896 drivers/media/platform/exynos4-is/fimc-core.c v->pix_limit = lim; lim 22 drivers/media/usb/pvrusb2/pvrusb2-ctrl.c int lim; lim 23 drivers/media/usb/pvrusb2/pvrusb2-ctrl.c lim = cptr->info->def.type_int.min_value; lim 25 drivers/media/usb/pvrusb2/pvrusb2-ctrl.c cptr->info->get_min_value(cptr,&lim); lim 27 drivers/media/usb/pvrusb2/pvrusb2-ctrl.c if (val < lim) return -ERANGE; lim 28 drivers/media/usb/pvrusb2/pvrusb2-ctrl.c lim = cptr->info->def.type_int.max_value; lim 30 drivers/media/usb/pvrusb2/pvrusb2-ctrl.c cptr->info->get_max_value(cptr,&lim); lim 32 drivers/media/usb/pvrusb2/pvrusb2-ctrl.c if (val > lim) return -ERANGE; lim 997 drivers/net/wireless/quantenna/qtnfmac/commands.c const struct qlink_iface_limit *lim; lim 1094 drivers/net/wireless/quantenna/qtnfmac/commands.c rec_len = sizeof(*rec) + rec->n_limits * sizeof(*lim); lim 1115 drivers/net/wireless/quantenna/qtnfmac/commands.c lim = &rec->limits[i]; lim 1116 drivers/net/wireless/quantenna/qtnfmac/commands.c limits[i].max = le16_to_cpu(lim->max_num); lim 1118 drivers/net/wireless/quantenna/qtnfmac/commands.c qlink_iface_type_to_nl_mask(le16_to_cpu(lim->type)); lim 62 drivers/pps/generators/pps_gen_parport.c long lim, delta; lim 80 drivers/pps/generators/pps_gen_parport.c lim = NSEC_PER_SEC - send_delay - dev->port_write_time; lim 83 drivers/pps/generators/pps_gen_parport.c if (expire_time.tv_sec != ts1.tv_sec || ts1.tv_nsec > lim) { lim 93 drivers/pps/generators/pps_gen_parport.c } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); lim 100 drivers/pps/generators/pps_gen_parport.c lim = NSEC_PER_SEC - dev->port_write_time; lim 103 drivers/pps/generators/pps_gen_parport.c } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); lim 142 drivers/scsi/am53c974.c int lim = 1000; lim 150 drivers/scsi/am53c974.c while (--lim > 0) { lim 164 drivers/scsi/am53c974.c lim = 1000; lim 167 drivers/scsi/am53c974.c if (--lim == 0) lim 172 drivers/scsi/am53c974.c esp_dma_log("DMA blast done (%d tries, %d bytes left)\n", lim, resid); lim 205 drivers/scsi/esp_scsi.c int lim = 1000; lim 208 drivers/scsi/esp_scsi.c if (--lim == 0) { lim 87 drivers/scsi/sun3x_esp.c int lim; lim 95 drivers/scsi/sun3x_esp.c lim = 1000; lim 97 drivers/scsi/sun3x_esp.c if (--lim == 0) { lim 109 drivers/scsi/sun3x_esp.c int lim; lim 111 drivers/scsi/sun3x_esp.c lim = 1000; lim 113 drivers/scsi/sun3x_esp.c if (--lim == 0) { lim 224 drivers/scsi/sun_esp.c int can_do_sbus64, lim; lim 264 drivers/scsi/sun_esp.c lim = 1000; lim 266 drivers/scsi/sun_esp.c if (--lim == 0) { lim 323 drivers/scsi/sun_esp.c int lim; lim 335 drivers/scsi/sun_esp.c lim = 1000; lim 337 drivers/scsi/sun_esp.c if (--lim == 0) { lim 365 drivers/scsi/sun_esp.c int lim; lim 367 drivers/scsi/sun_esp.c lim = 1000; lim 369 drivers/scsi/sun_esp.c if (--lim == 0) { lim 146 drivers/usb/core/devio.c u64 lim; lim 148 drivers/usb/core/devio.c lim = READ_ONCE(usbfs_memory_mb); lim 149 drivers/usb/core/devio.c lim <<= 20; lim 153 drivers/usb/core/devio.c if (lim > 0 && atomic64_read(&usbfs_memory_usage) > lim) { lim 4921 fs/btrfs/ioctl.c ret = btrfs_limit_qgroup(trans, qgroupid, &sa->lim); lim 2726 fs/btrfs/qgroup.c dstgroup->lim_flags = inherit->lim.flags; lim 2727 fs/btrfs/qgroup.c dstgroup->max_rfer = inherit->lim.max_rfer; lim 2728 fs/btrfs/qgroup.c dstgroup->max_excl = inherit->lim.max_excl; lim 2729 fs/btrfs/qgroup.c dstgroup->rsv_rfer = inherit->lim.rsv_rfer; lim 2730 fs/btrfs/qgroup.c dstgroup->rsv_excl = inherit->lim.rsv_excl; lim 576 fs/jfs/jfs_dtree.c int base, index, lim; lim 633 fs/jfs/jfs_dtree.c for (base = 0, lim = p->header.nextindex; lim; lim >>= 1) { lim 634 fs/jfs/jfs_dtree.c index = base + (lim >> 1); lim 709 fs/jfs/jfs_dtree.c --lim; lim 236 fs/jfs/jfs_xtree.c int base, index, lim, btindex; lim 363 fs/jfs/jfs_xtree.c lim = le16_to_cpu(p->header.nextindex) - XTENTRYSTART; lim 368 fs/jfs/jfs_xtree.c for (base = XTENTRYSTART; lim; lim >>= 1) { lim 369 fs/jfs/jfs_xtree.c index = base + (lim >> 1); lim 419 fs/jfs/jfs_xtree.c --lim; lim 2888 fs/jfs/jfs_xtree.c int base, index, lim; lim 2924 fs/jfs/jfs_xtree.c lim = le16_to_cpu(p->header.nextindex) - XTENTRYSTART; lim 2929 fs/jfs/jfs_xtree.c for (base = XTENTRYSTART; lim; lim >>= 1) { lim 2930 fs/jfs/jfs_xtree.c index = base + (lim >> 1); lim 2958 fs/jfs/jfs_xtree.c --lim; lim 14 include/linux/bcm47xx_nvram.h int bcm47xx_nvram_init_from_mem(u32 base, u32 lim); lim 23 include/linux/bcm47xx_nvram.h static inline int bcm47xx_nvram_init_from_mem(u32 base, u32 lim) lim 1092 include/linux/blkdev.h extern void blk_set_default_limits(struct queue_limits *lim); lim 1093 include/linux/blkdev.h extern void blk_set_stacking_limits(struct queue_limits *lim); lim 1350 include/linux/blkdev.h static inline int queue_limit_alignment_offset(struct queue_limits *lim, sector_t sector) lim 1352 include/linux/blkdev.h unsigned int granularity = max(lim->physical_block_size, lim->io_min); lim 1356 include/linux/blkdev.h return (granularity + lim->alignment_offset - alignment) % granularity; lim 1380 include/linux/blkdev.h static inline int queue_limit_discard_alignment(struct queue_limits *lim, sector_t sector) lim 1384 include/linux/blkdev.h if (!lim->max_discard_sectors) lim 1388 include/linux/blkdev.h alignment = lim->discard_alignment >> SECTOR_SHIFT; lim 1389 include/linux/blkdev.h granularity = lim->discard_granularity >> SECTOR_SHIFT; lim 90 include/uapi/linux/btrfs.h struct btrfs_qgroup_limit lim; lim 96 include/uapi/linux/btrfs.h struct btrfs_qgroup_limit lim; lim 4188 kernel/workqueue.c int lim = flags & WQ_UNBOUND ? WQ_UNBOUND_MAX_ACTIVE : WQ_MAX_ACTIVE; lim 4190 kernel/workqueue.c if (max_active < 1 || max_active > lim) lim 4192 kernel/workqueue.c max_active, name, 1, lim); lim 4194 kernel/workqueue.c return clamp_val(max_active, 1, lim); lim 49 lib/bitmap.c unsigned int k, lim = bits/BITS_PER_LONG; lim 50 lib/bitmap.c for (k = 0; k < lim; ++k) lim 67 lib/bitmap.c unsigned int k, lim = bits / BITS_PER_LONG; lim 70 lib/bitmap.c for (k = 0; k < lim; ++k) { lim 84 lib/bitmap.c unsigned int k, lim = BITS_TO_LONGS(bits); lim 85 lib/bitmap.c for (k = 0; k < lim; ++k) lim 104 lib/bitmap.c unsigned k, lim = BITS_TO_LONGS(nbits); lim 107 lib/bitmap.c for (k = 0; off + k < lim; ++k) { lim 114 lib/bitmap.c if (!rem || off + k + 1 >= lim) lim 118 lib/bitmap.c if (off + k + 1 == lim - 1) lim 123 lib/bitmap.c if (off + k == lim - 1) lim 129 lib/bitmap.c memset(&dst[lim - off], 0, off*sizeof(unsigned long)); lim 150 lib/bitmap.c unsigned int lim = BITS_TO_LONGS(nbits); lim 152 lib/bitmap.c for (k = lim - off - 1; k >= 0; --k) { lim 175 lib/bitmap.c unsigned int lim = bits/BITS_PER_LONG; lim 178 lib/bitmap.c for (k = 0; k < lim; k++) lim 213 lib/bitmap.c unsigned int lim = bits/BITS_PER_LONG; lim 216 lib/bitmap.c for (k = 0; k < lim; k++) lim 228 lib/bitmap.c unsigned int k, lim = bits/BITS_PER_LONG; lim 229 lib/bitmap.c for (k = 0; k < lim; ++k) lim 243 lib/bitmap.c unsigned int k, lim = bits/BITS_PER_LONG; lim 244 lib/bitmap.c for (k = 0; k < lim; ++k) lim 257 lib/bitmap.c unsigned int k, lim = bits/BITS_PER_LONG; lim 260 lib/bitmap.c for (k = 0; k < lim; k++) lim 602 lib/vsprintf.c int lim = spec.precision; lim 604 lib/vsprintf.c while (lim--) { lim 2246 net/tipc/socket.c unsigned int lim; lim 2268 net/tipc/socket.c lim = rcvbuf_limit(sk, skb) + atomic_read(dcnt); lim 2269 net/tipc/socket.c if (likely(!sk_add_backlog(sk, skb, lim))) { lim 3718 net/tipc/socket.c unsigned int lim = rcvbuf_limit(sk, skb) + atomic_read(dcnt); lim 3721 net/tipc/socket.c return (qsize > lim * 90 / 100); lim 3735 net/tipc/socket.c unsigned int lim = rcvbuf_limit(sk, skb); lim 3738 net/tipc/socket.c return (qsize > lim * 90 / 100); lim 10 tools/lib/bitmap.c int k, w = 0, lim = bits/BITS_PER_LONG; lim 12 tools/lib/bitmap.c for (k = 0; k < lim; k++) lim 64 tools/lib/bitmap.c unsigned int lim = bits/BITS_PER_LONG; lim 67 tools/lib/bitmap.c for (k = 0; k < lim; k++) lim 162 tools/testing/selftests/vm/compaction_test.c struct rlimit lim; lim 177 tools/testing/selftests/vm/compaction_test.c lim.rlim_cur = RLIM_INFINITY; lim 178 tools/testing/selftests/vm/compaction_test.c lim.rlim_max = RLIM_INFINITY; lim 179 tools/testing/selftests/vm/compaction_test.c if (setrlimit(RLIMIT_MEMLOCK, &lim)) {