Searched refs:max_blocks (Results 1 – 10 of 10) sorted by relevance
/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | dm.c | 102 u32 max_blocks; in mlx5_dm_sw_icm_alloc() local 138 max_blocks = BIT(log_icm_size - MLX5_LOG_SW_ICM_BLOCK_SIZE(dev)); in mlx5_dm_sw_icm_alloc() 141 max_blocks, in mlx5_dm_sw_icm_alloc() 145 if (block_idx < max_blocks) in mlx5_dm_sw_icm_alloc() 151 if (block_idx >= max_blocks) in mlx5_dm_sw_icm_alloc()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_acl_flex_keys.c | 14 unsigned int max_blocks; member 42 struct mlxsw_afk *mlxsw_afk_create(unsigned int max_blocks, in mlxsw_afk_create() argument 51 mlxsw_afk->max_blocks = max_blocks; in mlxsw_afk_create() 169 if (key_info->blocks_count == mlxsw_afk->max_blocks) in mlxsw_afk_picker_key_info_add() 242 key_info = kzalloc(struct_size(key_info, blocks, mlxsw_afk->max_blocks), in mlxsw_afk_key_info_create()
|
D | core_acl_flex_keys.h | 213 struct mlxsw_afk *mlxsw_afk_create(unsigned int max_blocks,
|
/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()
|
/drivers/target/ |
D | target_core_user.c | 135 uint32_t max_blocks; member 847 (udev->max_blocks - udev->dbi_thresh) + space; in is_ring_space_avail() 857 if (udev->dbi_thresh > udev->max_blocks) in is_ring_space_avail() 858 udev->dbi_thresh = udev->max_blocks; in is_ring_space_avail() 1393 udev->max_blocks = DATA_BLOCK_BITS_DEF; in tcmu_alloc_device() 1885 udev->data_bitmap = bitmap_zalloc(udev->max_blocks, GFP_KERNEL); in tcmu_configure_device() 1901 udev->data_size = udev->max_blocks * DATA_BLOCK_SIZE; in tcmu_configure_device() 2140 udev->max_blocks = TCMU_MBS_TO_BLOCKS(val); in tcmu_set_max_blocks_param() 2141 if (udev->max_blocks > tcmu_global_max_blocks) { in tcmu_set_max_blocks_param() 2144 udev->max_blocks = tcmu_global_max_blocks; in tcmu_set_max_blocks_param() [all …]
|
/drivers/scsi/ |
D | sd.c | 772 unsigned int max_blocks = 0; in sd_config_discard() local 790 max_blocks = min_not_zero(sdkp->max_unmap_blocks, in sd_config_discard() 796 max_blocks = sdkp->max_unmap_blocks; in sd_config_discard() 798 max_blocks = sdkp->max_ws_blocks; in sd_config_discard() 800 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS16_BLOCKS); in sd_config_discard() 805 max_blocks = sdkp->max_unmap_blocks; in sd_config_discard() 807 max_blocks = sdkp->max_ws_blocks; in sd_config_discard() 809 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS10_BLOCKS); in sd_config_discard() 813 max_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_discard() 818 blk_queue_max_discard_sectors(q, max_blocks * (logical_block_size >> 9)); in sd_config_discard()
|
/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()
|
/drivers/md/ |
D | dm-thin-metadata.c | 882 dm_block_t max_blocks = 4096; /* 16M */ in __set_metadata_reserve() local 887 pmd->metadata_reserve = max_blocks; in __set_metadata_reserve() 889 pmd->metadata_reserve = min(max_blocks, div_u64(total, 10)); in __set_metadata_reserve()
|
/drivers/staging/exfat/ |
D | exfat_super.c | 3134 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in exfat_get_block() local 3148 max_blocks = min(mapped_blocks, max_blocks); in exfat_get_block() 3150 EXFAT_I(inode)->mmu_private += max_blocks << in exfat_get_block() 3157 bh_result->b_size = max_blocks << sb->s_blocksize_bits; in exfat_get_block()
|
/drivers/mmc/host/ |
D | sdhci.c | 3648 unsigned int max_blocks; in sdhci_allocate_bounce_buffer() local 3665 max_blocks = bounce_size / 512; in sdhci_allocate_bounce_buffer() 3697 mmc->max_segs = max_blocks; in sdhci_allocate_bounce_buffer() 3702 mmc_hostname(mmc), max_blocks, bounce_size); in sdhci_allocate_bounce_buffer()
|