| /linux/arch/powerpc/lib/ |
| H A 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_objs(rh_block_t, max_blocks, 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/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A 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/arch/powerpc/include/asm/ |
| H A D | rheap.h | 28 int max_blocks; member 56 extern void rh_init(rh_info_t * info, unsigned int alignment, int max_blocks,
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A 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_flex(*key_info, blocks, mlxsw_afk->max_blocks); in mlxsw_afk_key_info_create()
|
| /linux/fs/omfs/ |
| H A 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/fs/xfs/ |
| H A D | xfs_discard.c | 831 xfs_rfsblock_t max_blocks; in xfs_ioc_trim() 867 max_blocks = mp->m_sb.sb_dblocks + mp->m_sb.sb_rblocks; in xfs_ioc_trim() 868 if (range.start >= XFS_FSB_TO_B(mp, max_blocks) || in xfs_ioc_trim() 892 XFS_FSB_TO_B(mp, max_blocks) - range.start); 821 xfs_rfsblock_t max_blocks; xfs_ioc_trim() local
|
| /linux/drivers/media/v4l2-core/ |
| H A D | v4l2-dv-timings.c | 1029 unsigned int v4l2_num_edid_blocks(const u8 *edid, unsigned int max_blocks) in v4l2_num_edid_blocks() argument 1033 if (!edid || !max_blocks) in v4l2_num_edid_blocks() 1045 max_blocks >= 3 && // The caller supports at least 3 blocks in v4l2_num_edid_blocks() 1052 return blocks > max_blocks ? max_blocks : blocks; in v4l2_num_edid_blocks()
|
| /linux/drivers/target/ |
| H A 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()
|
| /linux/include/linux/ |
| H A D | shmem_fs.h | 78 unsigned long max_blocks; /* How many blocks are allowed */ 72 unsigned long max_blocks; /* How many blocks are allowed */ global() member
|
| /linux/fs/ext2/ |
| H A D | inode.c | 768 unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; in ext2_get_block() 773 ret = ext2_get_blocks(inode, iblock, max_blocks, &bno, &new, &boundary, in ext2_get_block() 793 unsigned long max_blocks = (length + (1 << blkbits) - 1) >> blkbits; in ext2_iomap_begin() 808 ret = ext2_get_blocks(inode, first_block, max_blocks, in ext2_iomap_begin() 764 unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; ext2_get_block() local 789 unsigned long max_blocks = (length + (1 << blkbits) - 1) >> blkbits; ext2_iomap_begin() local
|
| /linux/mm/ |
| H A D | shmem.c | 233 if (sbinfo->max_blocks) { in shmem_inode_acct_blocks() 235 sbinfo->max_blocks, pages)) in shmem_inode_acct_blocks() 264 if (sbinfo->max_blocks) in shmem_inode_unacct_blocks() 3980 if (sbinfo->max_blocks && end - start > sbinfo->max_blocks) { in shmem_whiteout() 4082 if (sbinfo->max_blocks) { in shmem_symlink() 4083 buf->f_blocks = sbinfo->max_blocks; in shmem_symlink() 4085 buf->f_bfree = sbinfo->max_blocks - in shmem_symlink() 5052 if (!sbinfo->max_blocks) { in shmem_fill_super() 5111 sbinfo->max_blocks [all...] |
| /linux/fs/gfs2/ |
| H A D | lops.c | 514 unsigned int max_blocks = 2 * 1024 * 1024 >> bsize_shift; in gfs2_find_jhead() local 542 if (bio && (off || block < blocks_submitted + max_blocks)) { in gfs2_find_jhead() 572 if (blocks_submitted <= blocks_read + max_blocks) { in gfs2_find_jhead()
|
| H A D | file.c | 1238 * @max_blocks: The total blocks available to work with. in calc_max_reserv() 1244 unsigned int max_blocks) in calc_max_reserv() 1248 unsigned int tmp, max_data = max_blocks - 3 * (sdp->sd_max_height - 1); in calc_max_reserv() 1256 *ind_blocks = max_blocks - max_data; in __gfs2_fallocate() 1235 calc_max_reserv(struct gfs2_inode * ip,loff_t * len,unsigned int * data_blocks,unsigned int * ind_blocks,unsigned int max_blocks) calc_max_reserv() argument
|
| /linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
| H A D | bcmsdh.c | 759 uint max_blocks; in brcmf_sdiod_sgtable_alloc() local 766 max_blocks = min_t(uint, host->max_blk_count, 511u); in brcmf_sdiod_sgtable_alloc() 768 max_blocks * func->cur_blksize); in brcmf_sdiod_sgtable_alloc()
|
| /linux/fs/ext4/ |
| H A D | extents.c | 3602 ext_debug(inode, "logical block %llu, max_blocks %u\n", in ext4_ext_convert_to_initialized() 3865 ext_debug(inode, "logical block %llu, max_blocks %u\n", in ext4_split_convert_extents() 3968 ext_debug(inode, "logical block %llu, max_blocks %u\n", in convert_initialized_extent() 3999 ext_debug(inode, "logical block %llu, max_blocks %u\n", 4039 ext_debug(inode, "logical block %llu, max_blocks %u, flags 0x%x, allocated %u\n", in ext4_ext_handle_unwritten_extents() 5141 unsigned int max_blocks; in ext4_convert_unwritten_extents() 5149 max_blocks = EXT4_MAX_BLOCKS(len, offset, blkbits); in ext4_convert_unwritten_extents() 5158 credits = ext4_meta_trans_blocks(inode, max_blocks, 2, 0); in ext4_convert_unwritten_extents() 5169 while (ret >= 0 && ret < max_blocks) { in ext4_convert_unwritten_extents() 5171 map.m_len = (max_blocks in ext4_convert_unwritten_extents() 5057 unsigned int max_blocks; ext4_convert_unwritten_extents_atomic() local 5136 ext4_lblk_t max_blocks, conv_blocks = 0; ext4_convert_unwritten_extents() local [all...] |
| H A D | xattr.c | 1414 int max_blocks = (bufsize + blocksize - 1) >> ea_inode->i_blkbits; in ext4_xattr_inode_write() 1420 while (ret >= 0 && ret < max_blocks) { in ext4_xattr_inode_write() 1423 map.m_len = max_blocks -= ret; in ext4_xattr_inode_write() 1397 int max_blocks = (bufsize + blocksize - 1) >> ea_inode->i_blkbits; ext4_xattr_inode_write() local
|
| /linux/drivers/md/ |
| H A D | dm-thin-metadata.c | 947 dm_block_t max_blocks = 4096; /* 16M */ in __set_metadata_reserve() local 952 pmd->metadata_reserve = max_blocks; in __set_metadata_reserve() 954 pmd->metadata_reserve = min(max_blocks, div_u64(total, 10)); in __set_metadata_reserve()
|
| H A D | dm-integrity.c | 1984 unsigned int max_blocks = (max_size - extra_space) / ic->tag_size; in integrity_metadata() local 1993 this_step_blocks = min(this_step_blocks, max_blocks); in integrity_metadata()
|
| /linux/tools/perf/ |
| H A D | builtin-script.c | 98 static int max_blocks; 1461 if (max_blocks && nr > max_blocks + 1) in perf_sample__fprintf_brstackinsn() 1462 nr = max_blocks + 1; in perf_sample__fprintf_brstackinsn() 4317 OPT_INTEGER(0, "max-blocks", &max_blocks, in cmd_script() 91 static int max_blocks; global() variable
|
| /linux/fs/f2fs/ |
| H A D | segment.c | 2697 unsigned int i = 1, max_blocks = sbi->blocks_per_seg, cnt; in f2fs_reserve_device_alias() 2716 cnt = max_blocks - GET_BLKOFF_FROM_SEG0(sbi, addr); in f2fs_reserve_device_alias() 2730 cnt = max_blocks; in f2fs_is_checkpointed_data() 2743 unsigned int i = 1, max_blocks = sbi->blocks_per_seg, cnt; in f2fs_curseg_valid_blocks() 2755 cnt = max_blocks - GET_BLKOFF_FROM_SEG0(sbi, addr); in f2fs_npages_for_summary_flush() 2776 cnt = max_blocks; 2633 unsigned int i = 1, max_blocks = sbi->blocks_per_seg, cnt; f2fs_invalidate_blocks() local 2679 unsigned int i = 1, max_blocks = sbi->blocks_per_seg, cnt; f2fs_reserve_device_alias() local
|
| /linux/drivers/ata/ |
| H A D | libata-scsi.c | 2450 u64 max_blocks = max_pages * ATA_MAX_TRIM_RNUM * (u64)U16_MAX; in ata_scsiop_inq_b6() 2453 max_blocks = 128 << (20 - SECTOR_SHIFT); in ata_scsiop_inq_b6() 2455 put_unaligned_be64(max_blocks, &rbuf[36]); in ata_scsiop_inq_b6() 2365 u64 max_blocks = max_pages * ATA_MAX_TRIM_RNUM * (u64)U16_MAX; ata_scsiop_inq_b0() local
|