/linux-6.12.1/arch/powerpc/lib/ |
D | rheap.c | 45 static int grow(rh_info_t * info, int max_blocks) in grow() argument 52 if (max_blocks <= info->max_blocks) in grow() 55 new_blocks = max_blocks - info->max_blocks; in grow() 57 block = kmalloc_array(max_blocks, sizeof(rh_block_t), GFP_ATOMIC); in grow() 61 if (info->max_blocks > 0) { in grow() 65 sizeof(rh_block_t) * info->max_blocks); in grow() 71 blke = (unsigned long)(info->block + info->max_blocks); in grow() 73 for (i = 0, blk = block; i < info->max_blocks; i++, blk++) in grow() 87 info->max_blocks = max_blocks; in grow() 91 blk = block + info->max_blocks - new_blocks; in grow() [all …]
|
/linux-6.12.1/fs/exfat/ |
D | inode.c | 270 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in exfat_get_block() local 302 max_blocks = min(mapped_blocks, max_blocks); in exfat_get_block() 311 if (iblock + max_blocks < valid_blks) { in exfat_get_block() 319 max_blocks = valid_blks - iblock; in exfat_get_block() 326 ei->valid_size = EXFAT_BLK_TO_B(iblock + max_blocks, sb); in exfat_get_block() 331 if (iblock + max_blocks < valid_blks) { in exfat_get_block() 339 max_blocks = valid_blks - iblock; in exfat_get_block() 349 max_blocks = 1; in exfat_get_block() 378 bh_result->b_size = EXFAT_BLK_TO_B(max_blocks, sb); in exfat_get_block()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | dm.c | 155 u32 max_blocks; in mlx5_dm_sw_icm_alloc() local 205 max_blocks = BIT(log_icm_size - MLX5_LOG_SW_ICM_BLOCK_SIZE(dev)); in mlx5_dm_sw_icm_alloc() 212 block_idx = bitmap_find_next_zero_area(block_map, max_blocks, 0, in mlx5_dm_sw_icm_alloc() 215 if (block_idx < max_blocks) in mlx5_dm_sw_icm_alloc() 221 if (block_idx >= max_blocks) in mlx5_dm_sw_icm_alloc()
|
/linux-6.12.1/arch/powerpc/include/asm/ |
D | rheap.h | 28 int max_blocks; member 56 extern void rh_init(rh_info_t * info, unsigned int alignment, int max_blocks,
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_acl_flex_keys.c | 54 unsigned int max_blocks; member 84 struct mlxsw_afk *mlxsw_afk_create(unsigned int max_blocks, in mlxsw_afk_create() argument 93 mlxsw_afk->max_blocks = max_blocks; in mlxsw_afk_create() 210 if (key_info->blocks_count == mlxsw_afk->max_blocks) in mlxsw_afk_picker_key_info_add() 330 key_info = kzalloc(struct_size(key_info, blocks, mlxsw_afk->max_blocks), in mlxsw_afk_key_info_create()
|
D | core_acl_flex_keys.h | 194 struct mlxsw_afk *mlxsw_afk_create(unsigned int max_blocks,
|
/linux-6.12.1/fs/fat/ |
D | inode.c | 119 unsigned long *max_blocks, in __fat_get_block() argument 133 *max_blocks = min(mapped_blocks, *max_blocks); in __fat_get_block() 161 *max_blocks = min(mapped_blocks, *max_blocks); in __fat_get_block() 162 MSDOS_I(inode)->mmu_private += *max_blocks << sb->s_blocksize_bits; in __fat_get_block() 175 BUG_ON(*max_blocks != mapped_blocks); in __fat_get_block() 186 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in fat_get_block() local 189 err = __fat_get_block(inode, iblock, &max_blocks, bh_result, create); in fat_get_block() 192 bh_result->b_size = max_blocks << sb->s_blocksize_bits; in fat_get_block() 292 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in fat_get_block_bmap() local 305 max_blocks = min(mapped_blocks, max_blocks); in fat_get_block_bmap() [all …]
|
/linux-6.12.1/drivers/mmc/core/ |
D | sdio_io.c | 319 unsigned max_blocks; in sdio_io_rw_ext_helper() local 329 max_blocks = min(func->card->host->max_blk_count, 511u); in sdio_io_rw_ext_helper() 335 if (blocks > max_blocks) in sdio_io_rw_ext_helper() 336 blocks = max_blocks; in sdio_io_rw_ext_helper()
|
/linux-6.12.1/fs/omfs/ |
D | file.c | 229 int max_blocks = bh_result->b_size >> inode->i_blkbits; in omfs_get_block() local 257 if (remain > max_blocks) in omfs_get_block() 258 remain = max_blocks; in omfs_get_block()
|
/linux-6.12.1/fs/xfs/ |
D | xfs_discard.c | 650 xfs_rfsblock_t max_blocks; in xfs_ioc_trim() local 685 max_blocks = mp->m_sb.sb_dblocks + mp->m_sb.sb_rblocks; in xfs_ioc_trim() 686 if (range.start >= XFS_FSB_TO_B(mp, max_blocks) || in xfs_ioc_trim() 710 XFS_FSB_TO_B(mp, max_blocks) - range.start); in xfs_ioc_trim()
|
/linux-6.12.1/fs/nilfs2/ |
D | sufile.c | 1083 u64 segnum, segnum_end, minlen, len, max_blocks, ndiscarded = 0; in nilfs_sufile_trim_fs() local 1091 max_blocks = ((u64)nilfs->ns_nsegments * nilfs->ns_blocks_per_segment); in nilfs_sufile_trim_fs() 1093 if (!len || range->start >= max_blocks << nilfs->ns_blocksize_bits) in nilfs_sufile_trim_fs() 1104 if (max_blocks - start_block < len) in nilfs_sufile_trim_fs() 1105 end_block = max_blocks - 1; in nilfs_sufile_trim_fs()
|
/linux-6.12.1/drivers/target/ |
D | target_core_xcopy.c | 663 unsigned long long max_bytes, max_bytes_src, max_bytes_dst, max_blocks; in target_xcopy_do_work() local 700 max_blocks = max_bytes >> ilog2(src_dev->dev_attrib.block_size); in target_xcopy_do_work() 703 nolb, max_blocks, (unsigned long long)end_lba); in target_xcopy_do_work()
|
D | target_core_user.c | 142 uint32_t max_blocks; member 866 (udev->max_blocks - udev->dbi_thresh) + space; in tcmu_alloc_data_space() 876 if (udev->dbi_thresh > udev->max_blocks) in tcmu_alloc_data_space() 877 udev->dbi_thresh = udev->max_blocks; in tcmu_alloc_data_space() 1042 if (data_length > (size_t)udev->max_blocks * blk_size) { in queue_cmd_ring() 1044 data_length, (size_t)udev->max_blocks * blk_size); in queue_cmd_ring() 1621 udev->max_blocks = DATA_AREA_PAGES_DEF / udev->data_pages_per_blk; in tcmu_alloc_device() 2212 udev->data_bitmap = bitmap_zalloc(udev->max_blocks, GFP_KERNEL); in tcmu_configure_device() 2499 udev->max_blocks = TCMU_MBS_TO_PAGES(val) / pages_per_blk; in tcmu_set_max_blocks_param() 2532 udev->max_blocks = TCMU_MBS_TO_PAGES(udev->data_area_mb) / val; in tcmu_set_data_pages_per_blk()
|
/linux-6.12.1/include/linux/ |
D | shmem_fs.h | 58 unsigned long max_blocks; /* How many blocks are allowed */ member
|
/linux-6.12.1/drivers/scsi/ |
D | sd.c | 854 unsigned int max_blocks = 0; in sd_config_discard() local 868 max_blocks = min_not_zero(sdkp->max_unmap_blocks, in sd_config_discard() 874 max_blocks = sdkp->max_unmap_blocks; in sd_config_discard() 876 max_blocks = sdkp->max_ws_blocks; in sd_config_discard() 878 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS16_BLOCKS); in sd_config_discard() 883 max_blocks = sdkp->max_unmap_blocks; in sd_config_discard() 885 max_blocks = sdkp->max_ws_blocks; in sd_config_discard() 887 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS10_BLOCKS); in sd_config_discard() 891 max_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_discard() 896 lim->max_hw_discard_sectors = max_blocks * in sd_config_discard()
|
/linux-6.12.1/fs/ext4/ |
D | extents.c | 4568 unsigned int max_blocks; in ext4_zero_range() local 4596 max_blocks = (end >> blkbits); in ext4_zero_range() 4597 if (max_blocks < lblk) in ext4_zero_range() 4598 max_blocks = 0; in ext4_zero_range() 4600 max_blocks -= lblk; in ext4_zero_range() 4643 if (max_blocks > 0) { in ext4_zero_range() 4683 ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size, in ext4_zero_range() 4738 unsigned int max_blocks; in ext4_fallocate() local 4788 max_blocks = EXT4_MAX_BLOCKS(len, offset, blkbits); in ext4_fallocate() 4817 ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size, flags); in ext4_fallocate() [all …]
|
/linux-6.12.1/mm/ |
D | shmem.c | 227 if (sbinfo->max_blocks) { in shmem_inode_acct_blocks() 229 sbinfo->max_blocks, pages)) in shmem_inode_acct_blocks() 258 if (sbinfo->max_blocks) in shmem_inode_unacct_blocks() 3436 if (sbinfo->max_blocks && end - start > sbinfo->max_blocks) { in shmem_fallocate() 3538 if (sbinfo->max_blocks) { in shmem_statfs() 3539 buf->f_blocks = sbinfo->max_blocks; in shmem_statfs() 3541 buf->f_bfree = sbinfo->max_blocks - in shmem_statfs() 4452 if (!sbinfo->max_blocks) { in shmem_reconfigure() 4510 sbinfo->max_blocks = ctx->blocks; in shmem_reconfigure() 4541 if (sbinfo->max_blocks != shmem_default_max_blocks()) in shmem_show_options() [all …]
|
/linux-6.12.1/fs/ext2/ |
D | inode.c | 786 unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; in ext2_get_block() local 791 ret = ext2_get_blocks(inode, iblock, max_blocks, &bno, &new, &boundary, in ext2_get_block() 811 unsigned long max_blocks = (length + (1 << blkbits) - 1) >> blkbits; in ext2_iomap_begin() local 835 ret = ext2_get_blocks(inode, first_block, max_blocks, in ext2_iomap_begin()
|
/linux-6.12.1/fs/gfs2/ |
D | lops.c | 513 unsigned int max_blocks = 2 * 1024 * 1024 >> bsize_shift; in gfs2_find_jhead() local 540 if (bio && (off || block < blocks_submitted + max_blocks)) { in gfs2_find_jhead() 571 if (blocks_submitted <= blocks_read + max_blocks) { in gfs2_find_jhead()
|
D | file.c | 1230 unsigned int max_blocks) in calc_max_reserv() argument 1234 unsigned int tmp, max_data = max_blocks - 3 * (sdp->sd_max_height - 1); in calc_max_reserv() 1242 *ind_blocks = max_blocks - max_data; in calc_max_reserv()
|
/linux-6.12.1/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | bcmsdh.c | 754 uint max_blocks; in brcmf_sdiod_sgtable_alloc() local 761 max_blocks = min_t(uint, host->max_blk_count, 511u); in brcmf_sdiod_sgtable_alloc() 763 max_blocks * func->cur_blksize); in brcmf_sdiod_sgtable_alloc()
|
/linux-6.12.1/drivers/md/ |
D | dm-thin-metadata.c | 943 dm_block_t max_blocks = 4096; /* 16M */ in __set_metadata_reserve() local 948 pmd->metadata_reserve = max_blocks; in __set_metadata_reserve() 950 pmd->metadata_reserve = min(max_blocks, div_u64(total, 10)); in __set_metadata_reserve()
|
/linux-6.12.1/fs/ocfs2/ |
D | aops.c | 139 u64 max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_get_block() local 164 if (max_blocks < count) in ocfs2_get_block() 165 count = max_blocks; in ocfs2_get_block()
|
/linux-6.12.1/drivers/media/i2c/ |
D | adv7842.c | 2508 unsigned int max_blocks = e->pad == ADV7842_EDID_PORT_VGA ? 1 : 4; in adv7842_set_edid() local 2518 max_blocks = 2; in adv7842_set_edid() 2521 if (e->blocks > max_blocks) { in adv7842_set_edid() 2522 e->blocks = max_blocks; in adv7842_set_edid()
|
/linux-6.12.1/tools/perf/ |
D | builtin-script.c | 89 static int max_blocks; variable 1341 if (max_blocks && nr > max_blocks + 1) in perf_sample__fprintf_brstackinsn() 1342 nr = max_blocks + 1; in perf_sample__fprintf_brstackinsn() 4068 OPT_INTEGER(0, "max-blocks", &max_blocks, in cmd_script()
|