Home
last modified time | relevance | path

Searched refs:nr_blocks (Results 1 – 20 of 20) sorted by relevance

/drivers/md/
Ddm-zoned-target.c118 unsigned int nr_blocks) in dmz_submit_bio() argument
135 clone->bi_iter.bi_size = dmz_blk2sect(nr_blocks) << SECTOR_SHIFT; in dmz_submit_bio()
145 zone->wp_block += nr_blocks; in dmz_submit_bio()
154 sector_t chunk_block, unsigned int nr_blocks) in dmz_handle_read_zero() argument
156 unsigned int size = nr_blocks << DMZ_BLOCK_SHIFT; in dmz_handle_read_zero()
174 unsigned int nr_blocks = dmz_bio_blocks(bio); in dmz_handle_read() local
175 sector_t end_block = chunk_block + nr_blocks; in dmz_handle_read()
191 (unsigned long long)chunk_block, nr_blocks); in dmz_handle_read()
196 nr_blocks = 0; in dmz_handle_read()
205 nr_blocks = ret; in dmz_handle_read()
[all …]
Ddm-zoned-reclaim.c65 unsigned int nr_blocks; in dmz_reclaim_align_wp() local
78 nr_blocks = block - wp_block; in dmz_reclaim_align_wp()
81 dmz_blk2sect(nr_blocks), GFP_NOIO, 0); in dmz_reclaim_align_wp()
86 (unsigned long long)block, nr_blocks, ret); in dmz_reclaim_align_wp()
123 sector_t nr_blocks; in dmz_reclaim_copy() local
152 nr_blocks = ret; in dmz_reclaim_copy()
167 src.count = dmz_blk2sect(nr_blocks); in dmz_reclaim_copy()
184 block += nr_blocks; in dmz_reclaim_copy()
Ddm-era-target.c73 static int writeset_alloc(struct writeset *ws, dm_block_t nr_blocks) in writeset_alloc() argument
75 ws->bits = vzalloc(bitset_size(nr_blocks)); in writeset_alloc()
88 dm_block_t nr_blocks) in writeset_init() argument
92 memset(ws->bits, 0, bitset_size(nr_blocks)); in writeset_init()
94 ws->md.nr_bits = nr_blocks; in writeset_init()
175 __le32 nr_blocks; member
268 uint32_t nr_blocks; member
507 disk->nr_blocks = cpu_to_le32(md->nr_blocks); in prepare_superblock()
592 md->nr_blocks = le32_to_cpu(disk->nr_blocks); in open_metadata()
769 d->nr_bits = min(d->writeset.nr_bits, md->nr_blocks); in metadata_digest_lookup_writeset()
[all …]
Ddm-zoned-metadata.c2452 unsigned int nr_blocks; in dmz_merge_valid_blocks() local
2462 nr_blocks = ret; in dmz_merge_valid_blocks()
2463 ret = dmz_validate_blocks(zmd, to_zone, chunk_block, nr_blocks); in dmz_merge_valid_blocks()
2467 chunk_block += nr_blocks; in dmz_merge_valid_blocks()
2477 sector_t chunk_block, unsigned int nr_blocks) in dmz_validate_blocks() argument
2486 nr_blocks); in dmz_validate_blocks()
2488 WARN_ON(chunk_block + nr_blocks > zone_nr_blocks); in dmz_validate_blocks()
2490 while (nr_blocks) { in dmz_validate_blocks()
2498 nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit); in dmz_validate_blocks()
2507 nr_blocks -= nr_bits; in dmz_validate_blocks()
[all …]
Ddm-zoned.h257 sector_t chunk_block, unsigned int nr_blocks);
259 sector_t chunk_block, unsigned int nr_blocks);
Ddm-cache-target.c2335 dm_block_t nr_blocks = from_cblock(size); in set_cache_size() local
2337 if (nr_blocks > (1 << 20) && cache->cache_size != size) in set_cache_size()
2341 (unsigned long long) nr_blocks); in set_cache_size()
/drivers/edac/
Dedac_device.c58 char *blk_name, unsigned nr_blocks, unsigned off_val, in edac_device_alloc_ctl_info() argument
70 edac_dbg(4, "instances=%d blocks=%d\n", nr_instances, nr_blocks); in edac_device_alloc_ctl_info()
82 dev_blk = kcalloc(nr_instances * nr_blocks, sizeof(struct edac_device_block), GFP_KERNEL); in edac_device_alloc_ctl_info()
119 inst->nr_blocks = nr_blocks; in edac_device_alloc_ctl_info()
120 blk_p = &dev_blk[instance * nr_blocks]; in edac_device_alloc_ctl_info()
127 for (block = 0; block < nr_blocks; block++) { in edac_device_alloc_ctl_info()
546 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce_count()
551 instance->nr_blocks); in edac_device_handle_ce_count()
555 if (instance->nr_blocks > 0) { in edac_device_handle_ce_count()
592 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue_count()
[all …]
Dedac_device.h139 u32 nr_blocks; /* how many blocks */ member
246 char *edac_block_name, unsigned nr_blocks,
Dedac_device_sysfs.c644 instance->nr_blocks, idx); in edac_device_create_instance()
647 for (i = 0; i < instance->nr_blocks; i++) { in edac_device_create_instance()
686 for (i = 0; i < instance->nr_blocks; i++) in edac_device_delete_instance()
/drivers/md/persistent-data/
Ddm-space-map-disk.c51 *count = smd->old_ll.nr_blocks; in sm_disk_get_nr_blocks()
59 *count = (smd->old_ll.nr_blocks - smd->old_ll.nr_allocated) - smd->nr_allocated_this_transaction; in sm_disk_get_nr_free()
136 r = sm_ll_find_common_free_block(&smd->old_ll, &smd->ll, smd->begin, smd->ll.nr_blocks, b); in sm_disk_new_block()
184 root_le.nr_blocks = cpu_to_le64(smd->ll.nr_blocks); in sm_disk_copy_root()
217 dm_block_t nr_blocks) in dm_sm_disk_create() argument
234 r = sm_ll_extend(&smd->ll, nr_blocks); in dm_sm_disk_create()
Ddm-space-map-metadata.c284 *count = smm->ll.nr_blocks; in sm_metadata_get_nr_blocks()
293 *count = smm->old_ll.nr_blocks - smm->old_ll.nr_allocated - in sm_metadata_get_nr_free()
455 r = sm_ll_find_common_free_block(&smm->old_ll, &smm->ll, smm->begin, smm->ll.nr_blocks, b); in sm_metadata_new_block_()
544 root_le.nr_blocks = cpu_to_le64(smm->ll.nr_blocks); in sm_metadata_copy_root()
597 *count = smm->ll.nr_blocks; in sm_bootstrap_get_nr_blocks()
606 *count = smm->ll.nr_blocks - smm->begin; in sm_bootstrap_get_nr_free()
644 if (smm->begin == smm->ll.nr_blocks) in sm_bootstrap_new_block()
719 dm_block_t old_len = smm->ll.nr_blocks; in sm_metadata_extend()
782 dm_block_t nr_blocks, in dm_sm_metadata_create() argument
798 if (nr_blocks > DM_SM_METADATA_MAX_BLOCKS) in dm_sm_metadata_create()
[all …]
Ddm-space-map-common.c228 ll->nr_blocks = 0; in sm_ll_init()
239 dm_block_t i, nr_blocks, nr_indexes; in sm_ll_extend() local
242 nr_blocks = ll->nr_blocks + extra_blocks; in sm_ll_extend()
243 old_blocks = dm_sector_div_up(ll->nr_blocks, ll->entries_per_block); in sm_ll_extend()
244 blocks = dm_sector_div_up(nr_blocks, ll->entries_per_block); in sm_ll_extend()
246 nr_indexes = dm_sector_div_up(nr_blocks, ll->entries_per_block); in sm_ll_extend()
255 ll->nr_blocks = nr_blocks; in sm_ll_extend()
286 if (b >= ll->nr_blocks) { in sm_ll_lookup_bitmap()
399 r = sm_ll_find_free_block(new_ll, begin, new_ll->nr_blocks, b); in sm_ll_find_common_free_block()
404 if (*b >= old_ll->nr_blocks) in sm_ll_find_common_free_block()
[all …]
Ddm-space-map-common.h78 dm_block_t nr_blocks; member
101 __le64 nr_blocks; member
Ddm-space-map-disk.h20 dm_block_t nr_blocks);
Ddm-space-map-metadata.h34 dm_block_t nr_blocks,
/drivers/scsi/
Dsd.c843 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_unmap_cmnd() local
863 put_unaligned_be32(nr_blocks, &buf[16]); in sd_setup_unmap_cmnd()
879 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_same16_cmnd() local
895 put_unaligned_be32(nr_blocks, &cmd->cmnd[10]); in sd_setup_write_same16_cmnd()
911 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_same10_cmnd() local
927 put_unaligned_be16(nr_blocks, &cmd->cmnd[7]); in sd_setup_write_same10_cmnd()
942 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_zeroes_cmnd() local
958 if (sdkp->ws16 || lba > 0xffffffff || nr_blocks > 0xffff) in sd_setup_write_zeroes_cmnd()
1042 sector_t lba, unsigned int nr_blocks, in sd_setup_rw32_cmnd() argument
1052 put_unaligned_be32(nr_blocks, &cmd->cmnd[28]); in sd_setup_rw32_cmnd()
[all …]
Dsd.h258 unsigned int nr_blocks);
289 unsigned int nr_blocks) in sd_zbc_prepare_zone_append() argument
Dsd_zbc.c409 unsigned int nr_blocks) in sd_zbc_prepare_zone_append() argument
450 if (wp_offset + nr_blocks > sdkp->zone_info.zone_blocks) { in sd_zbc_prepare_zone_append()
/drivers/hwtracing/intel_th/
Dmsu.c72 unsigned int nr_blocks; member
334 return (size_t)win->nr_blocks << PAGE_SHIFT; in msc_win_total_sz()
1090 static int msc_buffer_win_alloc(struct msc *msc, unsigned int nr_blocks) in msc_buffer_win_alloc() argument
1095 if (!nr_blocks) in msc_buffer_win_alloc()
1112 win->pgoff = prev->pgoff + prev->nr_blocks; in msc_buffer_win_alloc()
1117 nr_blocks << PAGE_SHIFT); in msc_buffer_win_alloc()
1119 ret = __msc_buffer_win_alloc(win, nr_blocks); in msc_buffer_win_alloc()
1125 win->nr_blocks = nr_blocks; in msc_buffer_win_alloc()
1134 msc->nr_pages += nr_blocks; in msc_buffer_win_alloc()
1169 msc->nr_pages -= win->nr_blocks; in msc_buffer_win_free()
[all …]
/drivers/net/ethernet/marvell/octeontx2/af/
Drvu.c1320 int numlfs, total_lfs = 0, nr_blocks = 0; in rvu_get_blkaddr_from_slot() local
1342 num_blkaddr[nr_blocks] = blkaddr; in rvu_get_blkaddr_from_slot()
1343 nr_blocks++; in rvu_get_blkaddr_from_slot()
1356 for (i = 0; i < nr_blocks; i++) { in rvu_get_blkaddr_from_slot()