| /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/xfs/ |
| H A D | xfs_discard.c | 821 xfs_rfsblock_t max_blocks; in xfs_ioc_trim() local 857 max_blocks = mp->m_sb.sb_dblocks + mp->m_sb.sb_rblocks; in xfs_ioc_trim() 858 if (range.start >= XFS_FSB_TO_B(mp, max_blocks) || in xfs_ioc_trim() 882 XFS_FSB_TO_B(mp, max_blocks) - range.start); in xfs_ioc_trim()
|
| /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 | 72 unsigned long max_blocks; /* How many blocks are allowed */ member
|
| /linux/mm/ |
| H A D | shmem.c | 232 if (sbinfo->max_blocks) { in shmem_inode_acct_blocks() 234 sbinfo->max_blocks, pages)) in shmem_inode_acct_blocks() 263 if (sbinfo->max_blocks) in shmem_inode_unacct_blocks() 3701 if (sbinfo->max_blocks && end - start > sbinfo->max_blocks) { in shmem_fallocate() 3803 if (sbinfo->max_blocks) { in shmem_statfs() 3804 buf->f_blocks = sbinfo->max_blocks; in shmem_statfs() 3806 buf->f_bfree = sbinfo->max_blocks - in shmem_statfs() 4770 if (!sbinfo->max_blocks) { in shmem_reconfigure() 4829 sbinfo->max_blocks in shmem_reconfigure() [all...] |
| /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/gfs2/ |
| H A D | file.c | 1235 unsigned int max_blocks) in calc_max_reserv() argument 1239 unsigned int tmp, max_data = max_blocks - 3 * (sdp->sd_max_height - 1); in calc_max_reserv() 1247 *ind_blocks = max_blocks - max_data; in calc_max_reserv()
|
| /linux/fs/ext4/ |
| H A D | extents.c | 5057 unsigned int max_blocks; in ext4_convert_unwritten_extents_atomic() local 5065 max_blocks = EXT4_MAX_BLOCKS(len, offset, blkbits); in ext4_convert_unwritten_extents_atomic() 5074 credits = ext4_meta_trans_blocks(inode, max_blocks, 2, 0); in ext4_convert_unwritten_extents_atomic() 5085 while (ret >= 0 && ret < max_blocks) { in ext4_convert_unwritten_extents_atomic() 5087 map.m_len = (max_blocks -= ret); in ext4_convert_unwritten_extents_atomic() 5089 if (ret != max_blocks) in ext4_convert_unwritten_extents_atomic() 5136 ext4_lblk_t max_blocks, conv_blocks = 0; in ext4_convert_unwritten_extents() local 5143 map.m_len = max_blocks = EXT4_MAX_BLOCKS(len, offset, blkbits); in ext4_convert_unwritten_extents() 5149 credits = ext4_chunk_trans_blocks(inode, max_blocks); in ext4_convert_unwritten_extents() 5152 while (max_blocks) { in ext4_convert_unwritten_extents() [all …]
|
| H A D | xattr.c | 1397 int max_blocks = (bufsize + blocksize - 1) >> ea_inode->i_blkbits; in ext4_xattr_inode_write() local 1403 while (ret >= 0 && ret < max_blocks) { in ext4_xattr_inode_write() 1406 map.m_len = max_blocks -= ret; in ext4_xattr_inode_write()
|
| /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() 1993 this_step_blocks = min(this_step_blocks, max_blocks); in integrity_metadata() 1983 unsigned int max_blocks = (max_size - extra_space) / ic->tag_size; integrity_metadata() local
|
| /linux/tools/perf/ |
| H A D | builtin-script.c | 95 static int max_blocks; 1382 if (max_blocks && nr > max_blocks + 1) in perf_sample__fprintf_brstackinsn() 1383 nr = max_blocks + 1; in perf_sample__fprintf_brstackinsn() 4165 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 | 2633 unsigned int i = 1, max_blocks = sbi->blocks_per_seg, cnt; in f2fs_invalidate_blocks() local 2652 cnt = max_blocks - GET_BLKOFF_FROM_SEG0(sbi, addr); in f2fs_invalidate_blocks() 2666 cnt = max_blocks; in f2fs_invalidate_blocks() 2679 unsigned int i = 1, max_blocks = sbi->blocks_per_seg, cnt; in f2fs_reserve_device_alias() local 2691 cnt = max_blocks - GET_BLKOFF_FROM_SEG0(sbi, addr); in f2fs_reserve_device_alias() 2712 cnt = max_blocks; in f2fs_reserve_device_alias()
|
| /linux/drivers/ata/ |
| H A D | libata-scsi.c | 2365 u64 max_blocks = max_pages * ATA_MAX_TRIM_RNUM * (u64)U16_MAX; in ata_scsiop_inq_b0() 2368 max_blocks = 128 << (20 - SECTOR_SHIFT); in ata_scsiop_inq_b0() 2370 put_unaligned_be64(max_blocks, &rbuf[36]); 2359 u64 max_blocks = max_pages * ATA_MAX_TRIM_RNUM * (u64)U16_MAX; ata_scsiop_inq_b0() local
|