| /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/drivers/scsi/ |
| H A D | sd.c | 159 unsigned int max_blocks = 0; in sd_config_discard() local 173 max_blocks = min_not_zero(sdkp->max_unmap_blocks, in sd_config_discard() 179 max_blocks = sdkp->max_unmap_blocks; in sd_config_discard() 181 max_blocks = sdkp->max_ws_blocks; in sd_config_discard() 183 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS16_BLOCKS); in sd_config_discard() 188 max_blocks = sdkp->max_unmap_blocks; in sd_config_discard() 190 max_blocks = sdkp->max_ws_blocks; in sd_config_discard() 192 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS10_BLOCKS); in sd_config_discard() 196 max_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_discard() 201 lim->max_hw_discard_sectors = max_blocks * in sd_config_discard()
|
| /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 | 1232 unsigned int max_blocks) in calc_max_reserv() argument 1236 unsigned int tmp, max_data = max_blocks - 3 * (sdp->sd_max_height - 1); in calc_max_reserv() 1244 *ind_blocks = max_blocks - max_data; in calc_max_reserv()
|
| /linux/fs/ext4/ |
| H A D | extents.c | 4962 unsigned int max_blocks; in ext4_convert_unwritten_extents_atomic() local 4970 max_blocks = EXT4_MAX_BLOCKS(len, offset, blkbits); in ext4_convert_unwritten_extents_atomic() 4979 credits = ext4_meta_trans_blocks(inode, max_blocks, 2); in ext4_convert_unwritten_extents_atomic() 4990 while (ret >= 0 && ret < max_blocks) { in ext4_convert_unwritten_extents_atomic() 4992 map.m_len = (max_blocks -= ret); in ext4_convert_unwritten_extents_atomic() 4994 if (ret != max_blocks) in ext4_convert_unwritten_extents_atomic() 5036 unsigned int max_blocks; in ext4_convert_unwritten_extents() local 5043 max_blocks = EXT4_MAX_BLOCKS(len, offset, blkbits); in ext4_convert_unwritten_extents() 5049 credits = ext4_chunk_trans_blocks(inode, max_blocks); in ext4_convert_unwritten_extents() 5051 while (ret >= 0 && ret < max_blocks) { in ext4_convert_unwritten_extents() [all …]
|
| /linux/drivers/md/ |
| H A 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/drivers/mmc/host/ |
| H A D | sdhci.c | 4193 unsigned int max_blocks; in sdhci_allocate_bounce_buffer() local 4200 max_blocks = bounce_size / 512; in sdhci_allocate_bounce_buffer() 4216 max_blocks = bounce_size / 512; in sdhci_allocate_bounce_buffer() 4253 mmc->max_segs = max_blocks; in sdhci_allocate_bounce_buffer() 4258 mmc_hostname(mmc), max_blocks, bounce_size); in sdhci_allocate_bounce_buffer()
|
| /linux/tools/perf/ |
| H A D | builtin-script.c | 91 static int max_blocks; variable 1374 if (max_blocks && nr > max_blocks + 1) in perf_sample__fprintf_brstackinsn() 1375 nr = max_blocks + 1; in perf_sample__fprintf_brstackinsn() 4149 OPT_INTEGER(0, "max-blocks", &max_blocks, in cmd_script()
|
| /linux/drivers/ata/ |
| H A D | libata-scsi.c | 2238 u64 max_blocks = 65535 * ATA_MAX_TRIM_RNUM; in ata_scsiop_inq_b0() local 2241 max_blocks = 128 << (20 - SECTOR_SHIFT); in ata_scsiop_inq_b0() 2243 put_unaligned_be64(max_blocks, &rbuf[36]); in ata_scsiop_inq_b0()
|