max_blocks         28 arch/powerpc/include/asm/rheap.h 	int max_blocks;
max_blocks         56 arch/powerpc/include/asm/rheap.h extern void rh_init(rh_info_t * info, unsigned int alignment, int max_blocks,
max_blocks         45 arch/powerpc/lib/rheap.c static int grow(rh_info_t * info, int max_blocks)
max_blocks         52 arch/powerpc/lib/rheap.c 	if (max_blocks <= info->max_blocks)
max_blocks         55 arch/powerpc/lib/rheap.c 	new_blocks = max_blocks - info->max_blocks;
max_blocks         57 arch/powerpc/lib/rheap.c 	block = kmalloc_array(max_blocks, sizeof(rh_block_t), GFP_ATOMIC);
max_blocks         61 arch/powerpc/lib/rheap.c 	if (info->max_blocks > 0) {
max_blocks         65 arch/powerpc/lib/rheap.c 		       sizeof(rh_block_t) * info->max_blocks);
max_blocks         71 arch/powerpc/lib/rheap.c 		blke = (unsigned long)(info->block + info->max_blocks);
max_blocks         73 arch/powerpc/lib/rheap.c 		for (i = 0, blk = block; i < info->max_blocks; i++, blk++)
max_blocks         87 arch/powerpc/lib/rheap.c 	info->max_blocks = max_blocks;
max_blocks         91 arch/powerpc/lib/rheap.c 	blk = block + info->max_blocks - new_blocks;
max_blocks        105 arch/powerpc/lib/rheap.c 	int max_blocks;
max_blocks        116 arch/powerpc/lib/rheap.c 	max_blocks = ((info->max_blocks + slots) + 15) & ~15;
max_blocks        118 arch/powerpc/lib/rheap.c 	return grow(info, max_blocks);
max_blocks        269 arch/powerpc/lib/rheap.c 	info->max_blocks = 0;
max_blocks        300 arch/powerpc/lib/rheap.c void rh_init(rh_info_t * info, unsigned int alignment, int max_blocks,
max_blocks        314 arch/powerpc/lib/rheap.c 	info->max_blocks = max_blocks;
max_blocks        315 arch/powerpc/lib/rheap.c 	info->empty_slots = max_blocks;
max_blocks        323 arch/powerpc/lib/rheap.c 	for (i = 0, blk = block; i < max_blocks; i++, blk++)
max_blocks        714 arch/powerpc/lib/rheap.c 	       info, info->empty_slots, info->max_blocks);
max_blocks        882 drivers/md/dm-thin-metadata.c 	dm_block_t max_blocks = 4096; /* 16M */
max_blocks        887 drivers/md/dm-thin-metadata.c 		pmd->metadata_reserve = max_blocks;
max_blocks        889 drivers/md/dm-thin-metadata.c 		pmd->metadata_reserve = min(max_blocks, div_u64(total, 10));
max_blocks        319 drivers/mmc/core/sdio_io.c 	unsigned max_blocks;
max_blocks        329 drivers/mmc/core/sdio_io.c 		max_blocks = min(func->card->host->max_blk_count, 511u);
max_blocks        335 drivers/mmc/core/sdio_io.c 			if (blocks > max_blocks)
max_blocks        336 drivers/mmc/core/sdio_io.c 				blocks = max_blocks;
max_blocks       3651 drivers/mmc/host/sdhci.c 	unsigned int max_blocks;
max_blocks       3668 drivers/mmc/host/sdhci.c 	max_blocks = bounce_size / 512;
max_blocks       3700 drivers/mmc/host/sdhci.c 	mmc->max_segs = max_blocks;
max_blocks       3705 drivers/mmc/host/sdhci.c 		mmc_hostname(mmc), max_blocks, bounce_size);
max_blocks        102 drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c 	u32 max_blocks;
max_blocks        138 drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c 	max_blocks = BIT(log_icm_size - MLX5_LOG_SW_ICM_BLOCK_SIZE(dev));
max_blocks        141 drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c 					       max_blocks,
max_blocks        145 drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c 	if (block_idx < max_blocks)
max_blocks        151 drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c 	if (block_idx >= max_blocks)
max_blocks         14 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c 	unsigned int max_blocks;
max_blocks         42 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c struct mlxsw_afk *mlxsw_afk_create(unsigned int max_blocks,
max_blocks         51 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c 	mlxsw_afk->max_blocks = max_blocks;
max_blocks        169 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c 	if (key_info->blocks_count == mlxsw_afk->max_blocks)
max_blocks        242 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c 	key_info = kzalloc(struct_size(key_info, blocks, mlxsw_afk->max_blocks),
max_blocks        213 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h struct mlxsw_afk *mlxsw_afk_create(unsigned int max_blocks,
max_blocks        754 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c 	uint max_blocks;
max_blocks        761 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c 	max_blocks = min_t(uint, host->max_blk_count, 511u);
max_blocks        763 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c 					  max_blocks * func->cur_blksize);
max_blocks        774 drivers/scsi/sd.c 	unsigned int max_blocks = 0;
max_blocks        792 drivers/scsi/sd.c 		max_blocks = min_not_zero(sdkp->max_unmap_blocks,
max_blocks        798 drivers/scsi/sd.c 			max_blocks = sdkp->max_unmap_blocks;
max_blocks        800 drivers/scsi/sd.c 			max_blocks = sdkp->max_ws_blocks;
max_blocks        802 drivers/scsi/sd.c 		max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS16_BLOCKS);
max_blocks        807 drivers/scsi/sd.c 			max_blocks = sdkp->max_unmap_blocks;
max_blocks        809 drivers/scsi/sd.c 			max_blocks = sdkp->max_ws_blocks;
max_blocks        811 drivers/scsi/sd.c 		max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS10_BLOCKS);
max_blocks        815 drivers/scsi/sd.c 		max_blocks = min_not_zero(sdkp->max_ws_blocks,
max_blocks        820 drivers/scsi/sd.c 	blk_queue_max_discard_sectors(q, max_blocks * (logical_block_size >> 9));
max_blocks       3134 drivers/staging/exfat/exfat_super.c 	unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits;
max_blocks       3148 drivers/staging/exfat/exfat_super.c 		max_blocks = min(mapped_blocks, max_blocks);
max_blocks       3150 drivers/staging/exfat/exfat_super.c 			EXFAT_I(inode)->mmu_private += max_blocks <<
max_blocks       3157 drivers/staging/exfat/exfat_super.c 	bh_result->b_size = max_blocks << sb->s_blocksize_bits;
max_blocks        135 drivers/target/target_core_user.c 	uint32_t max_blocks;
max_blocks        847 drivers/target/target_core_user.c 				(udev->max_blocks - udev->dbi_thresh) + space;
max_blocks        857 drivers/target/target_core_user.c 		if (udev->dbi_thresh > udev->max_blocks)
max_blocks        858 drivers/target/target_core_user.c 			udev->dbi_thresh = udev->max_blocks;
max_blocks       1393 drivers/target/target_core_user.c 	udev->max_blocks = DATA_BLOCK_BITS_DEF;
max_blocks       1885 drivers/target/target_core_user.c 	udev->data_bitmap = bitmap_zalloc(udev->max_blocks, GFP_KERNEL);
max_blocks       1901 drivers/target/target_core_user.c 	udev->data_size = udev->max_blocks * DATA_BLOCK_SIZE;
max_blocks       2141 drivers/target/target_core_user.c 	udev->max_blocks = TCMU_MBS_TO_BLOCKS(val);
max_blocks       2142 drivers/target/target_core_user.c 	if (udev->max_blocks > tcmu_global_max_blocks) {
max_blocks       2145 drivers/target/target_core_user.c 		udev->max_blocks = tcmu_global_max_blocks;
max_blocks       2225 drivers/target/target_core_user.c 		      TCMU_BLOCKS_TO_MBS(udev->max_blocks));
max_blocks       2320 drivers/target/target_core_user.c 			TCMU_BLOCKS_TO_MBS(udev->max_blocks));
max_blocks        785 fs/ext2/inode.c 	unsigned max_blocks = bh_result->b_size >> inode->i_blkbits;
max_blocks        790 fs/ext2/inode.c 	ret = ext2_get_blocks(inode, iblock, max_blocks, &bno, &new, &boundary,
max_blocks        811 fs/ext2/inode.c 	unsigned long max_blocks = (length + (1 << blkbits) - 1) >> blkbits;
max_blocks        817 fs/ext2/inode.c 	ret = ext2_get_blocks(inode, first_block, max_blocks,
max_blocks       4700 fs/ext4/extents.c 	unsigned int max_blocks;
max_blocks       4737 fs/ext4/extents.c 	max_blocks = (end >> blkbits);
max_blocks       4738 fs/ext4/extents.c 	if (max_blocks < lblk)
max_blocks       4739 fs/ext4/extents.c 		max_blocks = 0;
max_blocks       4741 fs/ext4/extents.c 		max_blocks -= lblk;
max_blocks       4782 fs/ext4/extents.c 	if (max_blocks > 0) {
max_blocks       4807 fs/ext4/extents.c 		ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size,
max_blocks       4868 fs/ext4/extents.c 	unsigned int max_blocks;
max_blocks       4914 fs/ext4/extents.c 	max_blocks = EXT4_MAX_BLOCKS(len, offset, blkbits);
max_blocks       4941 fs/ext4/extents.c 	ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size, flags);
max_blocks       4951 fs/ext4/extents.c 	trace_ext4_fallocate_exit(inode, offset, max_blocks, ret);
max_blocks       4968 fs/ext4/extents.c 	unsigned int max_blocks;
max_blocks       4975 fs/ext4/extents.c 	max_blocks = EXT4_MAX_BLOCKS(len, offset, blkbits);
max_blocks       4992 fs/ext4/extents.c 		credits = ext4_chunk_trans_blocks(inode, max_blocks);
max_blocks       4994 fs/ext4/extents.c 	while (ret >= 0 && ret < max_blocks) {
max_blocks       4996 fs/ext4/extents.c 		map.m_len = (max_blocks -= ret);
max_blocks       1348 fs/ext4/xattr.c 	int max_blocks = (bufsize + blocksize - 1) >> ea_inode->i_blkbits;
max_blocks       1354 fs/ext4/xattr.c 	while (ret >= 0 && ret < max_blocks) {
max_blocks       1357 fs/ext4/xattr.c 		map.m_len = max_blocks -= ret;
max_blocks       1049 fs/f2fs/segment.c 	unsigned long offset, size, max_blocks = sbi->blocks_per_seg;
max_blocks       1060 fs/f2fs/segment.c 			size = max_blocks;
max_blocks       1845 fs/f2fs/segment.c 	int max_blocks = sbi->blocks_per_seg;
max_blocks       1857 fs/f2fs/segment.c 	if (se->valid_blocks == max_blocks || !f2fs_hw_support_discard(sbi))
max_blocks       1874 fs/f2fs/segment.c 		start = __find_rev_next_bit(dmap, max_blocks, end + 1);
max_blocks       1875 fs/f2fs/segment.c 		if (start >= max_blocks)
max_blocks       1878 fs/f2fs/segment.c 		end = __find_rev_next_zero_bit(dmap, max_blocks, start + 1);
max_blocks       1879 fs/f2fs/segment.c 		if (force && start && end != max_blocks
max_blocks        119 fs/fat/inode.c 				  unsigned long *max_blocks,
max_blocks        133 fs/fat/inode.c 		*max_blocks = min(mapped_blocks, *max_blocks);
max_blocks        161 fs/fat/inode.c 	*max_blocks = min(mapped_blocks, *max_blocks);
max_blocks        162 fs/fat/inode.c 	MSDOS_I(inode)->mmu_private += *max_blocks << sb->s_blocksize_bits;
max_blocks        175 fs/fat/inode.c 	BUG_ON(*max_blocks != mapped_blocks);
max_blocks        186 fs/fat/inode.c 	unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits;
max_blocks        189 fs/fat/inode.c 	err = __fat_get_block(inode, iblock, &max_blocks, bh_result, create);
max_blocks        192 fs/fat/inode.c 	bh_result->b_size = max_blocks << sb->s_blocksize_bits;
max_blocks        299 fs/fat/inode.c 	unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits;
max_blocks        312 fs/fat/inode.c 		max_blocks = min(mapped_blocks, max_blocks);
max_blocks        315 fs/fat/inode.c 	bh_result->b_size = max_blocks << sb->s_blocksize_bits;
max_blocks        966 fs/gfs2/file.c 			    unsigned int max_blocks)
max_blocks        970 fs/gfs2/file.c 	unsigned int tmp, max_data = max_blocks - 3 * (sdp->sd_max_height - 1);
max_blocks        978 fs/gfs2/file.c 	*ind_blocks = max_blocks - max_data;
max_blocks        507 fs/gfs2/lops.c 	unsigned int max_blocks = 2 * 1024 * 1024 >> bsize_shift;
max_blocks        535 fs/gfs2/lops.c 			if (bio && (off || block < blocks_submitted + max_blocks)) {
max_blocks        566 fs/gfs2/lops.c 			if (blocks_submitted <= blocks_read + max_blocks) {
max_blocks       1026 fs/nilfs2/sufile.c 	u64 segnum, segnum_end, minlen, len, max_blocks, ndiscarded = 0;
max_blocks       1034 fs/nilfs2/sufile.c 	max_blocks = ((u64)nilfs->ns_nsegments * nilfs->ns_blocks_per_segment);
max_blocks       1036 fs/nilfs2/sufile.c 	if (!len || range->start >= max_blocks << nilfs->ns_blocksize_bits)
max_blocks       1047 fs/nilfs2/sufile.c 	if (max_blocks - start_block < len)
max_blocks       1048 fs/nilfs2/sufile.c 		end_block = max_blocks - 1;
max_blocks        142 fs/ocfs2/aops.c 	u64 max_blocks = bh_result->b_size >> inode->i_blkbits;
max_blocks        168 fs/ocfs2/aops.c 	if (max_blocks < count)
max_blocks        169 fs/ocfs2/aops.c 		count = max_blocks;
max_blocks        229 fs/omfs/file.c 	int max_blocks = bh_result->b_size >> inode->i_blkbits;
max_blocks        257 fs/omfs/file.c 			if (remain > max_blocks)
max_blocks        258 fs/omfs/file.c 				remain = max_blocks;
max_blocks         29 include/linux/shmem_fs.h 	unsigned long max_blocks;   /* How many blocks are allowed */
max_blocks       1418 include/trace/events/ext4.h 		 unsigned int max_blocks, int ret),
max_blocks       1420 include/trace/events/ext4.h 	TP_ARGS(inode, offset, max_blocks, ret),
max_blocks       1434 include/trace/events/ext4.h 		__entry->blocks	= max_blocks;
max_blocks        223 mm/shmem.c     	if (sbinfo->max_blocks) {
max_blocks        225 mm/shmem.c     					   sbinfo->max_blocks - pages) > 0)
max_blocks        242 mm/shmem.c     	if (sbinfo->max_blocks)
max_blocks       2787 mm/shmem.c     	if (sbinfo->max_blocks && end - start > sbinfo->max_blocks) {
max_blocks       2864 mm/shmem.c     	if (sbinfo->max_blocks) {
max_blocks       2865 mm/shmem.c     		buf->f_blocks = sbinfo->max_blocks;
max_blocks       2867 mm/shmem.c     		buf->f_bfree  = sbinfo->max_blocks -
max_blocks       3550 mm/shmem.c     		if (!sbinfo->max_blocks) {
max_blocks       3574 mm/shmem.c     		sbinfo->max_blocks  = ctx->blocks;
max_blocks       3599 mm/shmem.c     	if (sbinfo->max_blocks != shmem_default_max_blocks())
max_blocks       3601 mm/shmem.c     			sbinfo->max_blocks << (PAGE_SHIFT - 10));
max_blocks       3667 mm/shmem.c     	sbinfo->max_blocks = ctx->blocks;
max_blocks         66 tools/io_uring/io_uring-bench.c 	unsigned long max_blocks;
max_blocks        169 tools/io_uring/io_uring-bench.c 	offset = (r % (f->max_blocks - 1)) * BS;
max_blocks        234 tools/io_uring/io_uring-bench.c 		f->max_blocks = bytes / BS;
max_blocks        237 tools/io_uring/io_uring-bench.c 		f->max_blocks = st.st_size / BS;
max_blocks        517 tools/io_uring/io_uring-bench.c 		if (f->max_blocks <= 1) {
max_blocks        521 tools/io_uring/io_uring-bench.c 		f->max_blocks--;
max_blocks         77 tools/perf/builtin-script.c static int			max_blocks;
max_blocks       1025 tools/perf/builtin-script.c 	if (max_blocks && nr > max_blocks + 1)
max_blocks       1026 tools/perf/builtin-script.c 		nr = max_blocks + 1;
max_blocks       3533 tools/perf/builtin-script.c 	OPT_INTEGER(0, "max-blocks", &max_blocks,