| /OK3568_Linux_fs/kernel/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_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 …]
|
| /OK3568_Linux_fs/buildroot/dl/unixbench/git/UnixBench/src/ |
| H A D | fstime.c | 70 int max_blocks = 2000; variable 125 max_blocks = atoi(argv[++i]); 151 if (max_blocks < 1 || max_blocks > 1024*1024) { 162 max_buffs = max_blocks * 1024 / bufsize;
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | dm.c | 104 u32 max_blocks; in mlx5_dm_sw_icm_alloc() local 140 max_blocks = BIT(log_icm_size - MLX5_LOG_SW_ICM_BLOCK_SIZE(dev)); in mlx5_dm_sw_icm_alloc() 147 block_idx = bitmap_find_next_zero_area(block_map, max_blocks, 0, in mlx5_dm_sw_icm_alloc() 150 if (block_idx < max_blocks) in mlx5_dm_sw_icm_alloc() 156 if (block_idx >= max_blocks) in mlx5_dm_sw_icm_alloc()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | core_acl_flex_keys.c | 49 unsigned int max_blocks; member 79 struct mlxsw_afk *mlxsw_afk_create(unsigned int max_blocks, in mlxsw_afk_create() argument 88 mlxsw_afk->max_blocks = max_blocks; in mlxsw_afk_create() 206 if (key_info->blocks_count == mlxsw_afk->max_blocks) in mlxsw_afk_picker_key_info_add() 279 key_info = kzalloc(struct_size(key_info, blocks, mlxsw_afk->max_blocks), in mlxsw_afk_key_info_create()
|
| H A D | core_acl_flex_keys.h | 181 struct mlxsw_afk *mlxsw_afk_create(unsigned int max_blocks,
|
| /OK3568_Linux_fs/kernel/tools/io_uring/ |
| H A D | io_uring-bench.c | 66 unsigned long max_blocks; member 169 offset = (r % (f->max_blocks - 1)) * BS; in init_io() 234 f->max_blocks = bytes / BS; in get_file_size() 237 f->max_blocks = st.st_size / BS; in get_file_size() 517 if (f->max_blocks <= 1) { in main() 521 f->max_blocks--; in main()
|
| /OK3568_Linux_fs/kernel/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,
|
| /OK3568_Linux_fs/kernel/fs/fat/ |
| H A D | inode.c | 120 unsigned long *max_blocks, in __fat_get_block() argument 134 *max_blocks = min(mapped_blocks, *max_blocks); in __fat_get_block() 162 *max_blocks = min(mapped_blocks, *max_blocks); in __fat_get_block() 163 MSDOS_I(inode)->mmu_private += *max_blocks << sb->s_blocksize_bits; in __fat_get_block() 176 BUG_ON(*max_blocks != mapped_blocks); in __fat_get_block() 187 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in fat_get_block() local 190 err = __fat_get_block(inode, iblock, &max_blocks, bh_result, create); in fat_get_block() 193 bh_result->b_size = max_blocks << sb->s_blocksize_bits; in fat_get_block() 299 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in fat_get_block_bmap() local 312 max_blocks = min(mapped_blocks, max_blocks); in fat_get_block_bmap() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mmc/core/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/mbedtls/ |
| H A D | memory_buffer_alloc.h | 107 void mbedtls_memory_buffer_alloc_max_get( size_t *max_used, size_t *max_blocks );
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/mbedtls/ |
| H A D | memory_buffer_alloc.h | 107 void mbedtls_memory_buffer_alloc_max_get( size_t *max_used, size_t *max_blocks );
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/mbedtls/ |
| H A D | memory_buffer_alloc.h | 107 void mbedtls_memory_buffer_alloc_max_get( size_t *max_used, size_t *max_blocks );
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/mbedtls/ |
| H A D | memory_buffer_alloc.h | 107 void mbedtls_memory_buffer_alloc_max_get( size_t *max_used, size_t *max_blocks );
|
| /OK3568_Linux_fs/kernel/fs/exfat/ |
| H A D | inode.c | 296 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in exfat_get_block() local 328 max_blocks = min(mapped_blocks, max_blocks); in exfat_get_block() 354 bh_result->b_size = EXFAT_BLK_TO_B(max_blocks, sb); in exfat_get_block()
|
| /OK3568_Linux_fs/kernel/drivers/target/ |
| H A D | target_core_user.c | 136 uint32_t max_blocks; member 858 (udev->max_blocks - udev->dbi_thresh) + space; in tcmu_alloc_data_space() 868 if (udev->dbi_thresh > udev->max_blocks) in tcmu_alloc_data_space() 869 udev->dbi_thresh = udev->max_blocks; in tcmu_alloc_data_space() 1565 udev->max_blocks = DATA_BLOCK_BITS_DEF; in tcmu_alloc_device() 2069 udev->data_bitmap = bitmap_zalloc(udev->max_blocks, GFP_KERNEL); in tcmu_configure_device() 2085 udev->data_size = udev->max_blocks * DATA_BLOCK_SIZE; in tcmu_configure_device() 2336 udev->max_blocks = TCMU_MBS_TO_BLOCKS(val); in tcmu_set_max_blocks_param() 2337 if (udev->max_blocks > tcmu_global_max_blocks) { in tcmu_set_max_blocks_param() 2340 udev->max_blocks = tcmu_global_max_blocks; in tcmu_set_max_blocks_param() [all …]
|
| /OK3568_Linux_fs/kernel/fs/nilfs2/ |
| H A D | sufile.c | 1031 u64 segnum, segnum_end, minlen, len, max_blocks, ndiscarded = 0; in nilfs_sufile_trim_fs() local 1039 max_blocks = ((u64)nilfs->ns_nsegments * nilfs->ns_blocks_per_segment); in nilfs_sufile_trim_fs() 1041 if (!len || range->start >= max_blocks << nilfs->ns_blocksize_bits) in nilfs_sufile_trim_fs() 1052 if (max_blocks - start_block < len) in nilfs_sufile_trim_fs() 1053 end_block = max_blocks - 1; in nilfs_sufile_trim_fs()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/ |
| H A D | sd.c | 823 unsigned int max_blocks = 0; in sd_config_discard() local 841 max_blocks = min_not_zero(sdkp->max_unmap_blocks, in sd_config_discard() 847 max_blocks = sdkp->max_unmap_blocks; in sd_config_discard() 849 max_blocks = sdkp->max_ws_blocks; in sd_config_discard() 851 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS16_BLOCKS); in sd_config_discard() 856 max_blocks = sdkp->max_unmap_blocks; in sd_config_discard() 858 max_blocks = sdkp->max_ws_blocks; in sd_config_discard() 860 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS10_BLOCKS); in sd_config_discard() 864 max_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_discard() 869 blk_queue_max_discard_sectors(q, max_blocks * (logical_block_size >> 9)); in sd_config_discard()
|
| /OK3568_Linux_fs/kernel/mm/ |
| H A D | shmem.c | 231 if (sbinfo->max_blocks) { in shmem_inode_acct_block() 233 sbinfo->max_blocks - pages) > 0) in shmem_inode_acct_block() 250 if (sbinfo->max_blocks) in shmem_inode_unacct_blocks() 2799 if (sbinfo->max_blocks && end - start > sbinfo->max_blocks) { in shmem_fallocate() 2876 if (sbinfo->max_blocks) { in shmem_statfs() 2877 buf->f_blocks = sbinfo->max_blocks; in shmem_statfs() 2879 buf->f_bfree = sbinfo->max_blocks - in shmem_statfs() 3570 if (!sbinfo->max_blocks) { in shmem_reconfigure() 3602 sbinfo->max_blocks = ctx->blocks; in shmem_reconfigure() 3627 if (sbinfo->max_blocks != shmem_default_max_blocks()) in shmem_show_options() [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | shmem_fs.h | 30 unsigned long max_blocks; /* How many blocks are allowed */ member
|
| /OK3568_Linux_fs/kernel/fs/ext4/ |
| H A D | extents.c | 4514 unsigned int max_blocks; in ext4_zero_range() local 4548 max_blocks = (end >> blkbits); in ext4_zero_range() 4549 if (max_blocks < lblk) in ext4_zero_range() 4550 max_blocks = 0; in ext4_zero_range() 4552 max_blocks -= lblk; in ext4_zero_range() 4595 if (max_blocks > 0) { in ext4_zero_range() 4620 ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size, in ext4_zero_range() 4675 unsigned int max_blocks; in ext4_fallocate() local 4726 max_blocks = EXT4_MAX_BLOCKS(len, offset, blkbits); in ext4_fallocate() 4755 ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size, flags); in ext4_fallocate() [all …]
|
| /OK3568_Linux_fs/kernel/fs/gfs2/ |
| H A D | lops.c | 513 unsigned int max_blocks = 2 * 1024 * 1024 >> bsize_shift; in gfs2_find_jhead() local 541 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 | 1036 unsigned int max_blocks) in calc_max_reserv() argument 1040 unsigned int tmp, max_data = max_blocks - 3 * (sdp->sd_max_height - 1); in calc_max_reserv() 1048 *ind_blocks = max_blocks - max_data; in calc_max_reserv()
|
| /OK3568_Linux_fs/kernel/fs/ext2/ |
| H A D | inode.c | 782 unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; in ext2_get_block() local 787 ret = ext2_get_blocks(inode, iblock, max_blocks, &bno, &new, &boundary, in ext2_get_block() 808 unsigned long max_blocks = (length + (1 << blkbits) - 1) >> blkbits; in ext2_iomap_begin() local 814 ret = ext2_get_blocks(inode, first_block, max_blocks, in ext2_iomap_begin()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
| H A D | bcmsdh.c | 753 uint max_blocks; in brcmf_sdiod_sgtable_alloc() local 760 max_blocks = min_t(uint, host->max_blk_count, 511u); in brcmf_sdiod_sgtable_alloc() 762 max_blocks * func->cur_blksize); in brcmf_sdiod_sgtable_alloc()
|