/drivers/md/ |
D | dm-zoned-target.c | 119 unsigned int nr_blocks) in dmz_submit_bio() argument 131 clone->bi_iter.bi_size = dmz_blk2sect(nr_blocks) << SECTOR_SHIFT; in dmz_submit_bio() 141 zone->wp_block += nr_blocks; in dmz_submit_bio() 150 sector_t chunk_block, unsigned int nr_blocks) in dmz_handle_read_zero() argument 152 unsigned int size = nr_blocks << DMZ_BLOCK_SHIFT; in dmz_handle_read_zero() 169 unsigned int nr_blocks = dmz_bio_blocks(bio); in dmz_handle_read() local 170 sector_t end_block = chunk_block + nr_blocks; in dmz_handle_read() 184 (unsigned long long)chunk_block, nr_blocks); in dmz_handle_read() 189 nr_blocks = 0; in dmz_handle_read() 197 nr_blocks = ret; in dmz_handle_read() [all …]
|
D | dm-zoned-reclaim.c | 63 unsigned int nr_blocks; in dmz_reclaim_align_wp() local 76 nr_blocks = block - wp_block; in dmz_reclaim_align_wp() 79 dmz_blk2sect(nr_blocks), GFP_NOIO, 0); in dmz_reclaim_align_wp() 84 (unsigned long long)block, nr_blocks, ret); in dmz_reclaim_align_wp() 122 sector_t nr_blocks; in dmz_reclaim_copy() local 146 nr_blocks = ret; in dmz_reclaim_copy() 161 src.count = dmz_blk2sect(nr_blocks); in dmz_reclaim_copy() 178 block += nr_blocks; in dmz_reclaim_copy()
|
D | dm-era-target.c | 72 static int writeset_alloc(struct writeset *ws, dm_block_t nr_blocks) in writeset_alloc() argument 74 ws->md.nr_bits = nr_blocks; in writeset_alloc() 76 ws->bits = vzalloc(bitset_size(nr_blocks)); in writeset_alloc() 174 __le32 nr_blocks; member 267 uint32_t nr_blocks; member 502 disk->nr_blocks = cpu_to_le32(md->nr_blocks); in prepare_superblock() 579 md->nr_blocks = le32_to_cpu(disk->nr_blocks); in open_metadata() 749 d->nr_bits = min(d->writeset.nr_bits, md->nr_blocks); in metadata_digest_lookup_writeset() 848 md->nr_blocks, *new_size, in metadata_resize() 855 md->nr_blocks = *new_size; in metadata_resize() [all …]
|
D | dm-zoned-metadata.c | 1974 unsigned int nr_blocks; in dmz_merge_valid_blocks() local 1984 nr_blocks = ret; in dmz_merge_valid_blocks() 1985 ret = dmz_validate_blocks(zmd, to_zone, chunk_block, nr_blocks); in dmz_merge_valid_blocks() 1989 chunk_block += nr_blocks; in dmz_merge_valid_blocks() 1999 sector_t chunk_block, unsigned int nr_blocks) in dmz_validate_blocks() argument 2008 nr_blocks); in dmz_validate_blocks() 2010 WARN_ON(chunk_block + nr_blocks > zone_nr_blocks); in dmz_validate_blocks() 2012 while (nr_blocks) { in dmz_validate_blocks() 2020 nr_bits = min(nr_blocks, DMZ_BLOCK_SIZE_BITS - bit); in dmz_validate_blocks() 2029 nr_blocks -= nr_bits; in dmz_validate_blocks() [all …]
|
D | dm-zoned.h | 232 sector_t chunk_block, unsigned int nr_blocks); 234 sector_t chunk_block, unsigned int nr_blocks);
|
D | dm-cache-target.c | 2436 dm_block_t nr_blocks = from_cblock(size); in set_cache_size() local 2438 if (nr_blocks > (1 << 20) && cache->cache_size != size) in set_cache_size() 2442 (unsigned long long) nr_blocks); in set_cache_size()
|
/drivers/edac/ |
D | edac_device.c | 53 char *edac_block_name, unsigned nr_blocks, in edac_device_alloc_ctl_info() argument 68 edac_dbg(4, "instances=%d blocks=%d\n", nr_instances, nr_blocks); in edac_device_alloc_ctl_info() 88 count = nr_instances * nr_blocks; in edac_device_alloc_ctl_info() 148 inst->nr_blocks = nr_blocks; in edac_device_alloc_ctl_info() 149 blk_p = &dev_blk[instance * nr_blocks]; in edac_device_alloc_ctl_info() 157 for (block = 0; block < nr_blocks; block++) { in edac_device_alloc_ctl_info() 574 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce() 579 instance->nr_blocks); in edac_device_handle_ce() 583 if (instance->nr_blocks > 0) { in edac_device_handle_ce() 616 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue() [all …]
|
D | edac_device.h | 139 u32 nr_blocks; /* how many blocks */ member 244 char *edac_block_name, unsigned nr_blocks,
|
D | edac_device_sysfs.c | 643 instance->nr_blocks, idx); in edac_device_create_instance() 646 for (i = 0; i < instance->nr_blocks; i++) { in edac_device_create_instance() 685 for (i = 0; i < instance->nr_blocks; i++) in edac_device_delete_instance()
|
/drivers/md/persistent-data/ |
D | dm-space-map-common.c | 226 ll->nr_blocks = 0; in sm_ll_init() 237 dm_block_t i, nr_blocks, nr_indexes; in sm_ll_extend() local 240 nr_blocks = ll->nr_blocks + extra_blocks; in sm_ll_extend() 241 old_blocks = dm_sector_div_up(ll->nr_blocks, ll->entries_per_block); in sm_ll_extend() 242 blocks = dm_sector_div_up(nr_blocks, ll->entries_per_block); in sm_ll_extend() 244 nr_indexes = dm_sector_div_up(nr_blocks, ll->entries_per_block); in sm_ll_extend() 253 ll->nr_blocks = nr_blocks; in sm_ll_extend() 609 ll->nr_blocks = 0; in sm_ll_new_metadata() 651 ll->nr_blocks = le64_to_cpu(smr.nr_blocks); in sm_ll_open_metadata() 711 ll->nr_blocks = 0; in sm_ll_new_disk() [all …]
|
D | dm-space-map-metadata.c | 285 *count = smm->ll.nr_blocks; in sm_metadata_get_nr_blocks() 294 *count = smm->old_ll.nr_blocks - smm->old_ll.nr_allocated - in sm_metadata_get_nr_free() 451 r = sm_ll_find_free_block(&smm->old_ll, smm->begin, smm->old_ll.nr_blocks, b); in sm_metadata_new_block_() 533 root_le.nr_blocks = cpu_to_le64(smm->ll.nr_blocks); in sm_metadata_copy_root() 586 *count = smm->ll.nr_blocks; in sm_bootstrap_get_nr_blocks() 595 *count = smm->ll.nr_blocks - smm->begin; in sm_bootstrap_get_nr_free() 633 if (smm->begin == smm->ll.nr_blocks) in sm_bootstrap_new_block() 698 dm_block_t old_len = smm->ll.nr_blocks; in sm_metadata_extend() 763 dm_block_t nr_blocks, in dm_sm_metadata_create() argument 780 if (nr_blocks > DM_SM_METADATA_MAX_BLOCKS) in dm_sm_metadata_create() [all …]
|
D | dm-space-map-disk.c | 51 *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() 171 r = sm_ll_find_free_block(&smd->old_ll, smd->begin, smd->old_ll.nr_blocks, b); in sm_disk_new_block() 222 root_le.nr_blocks = cpu_to_le64(smd->ll.nr_blocks); in sm_disk_copy_root() 255 dm_block_t nr_blocks) in dm_sm_disk_create() argument 272 r = sm_ll_extend(&smd->ll, nr_blocks); in dm_sm_disk_create()
|
D | dm-space-map-common.h | 64 dm_block_t nr_blocks; member 85 __le64 nr_blocks; member
|
D | dm-space-map-disk.h | 20 dm_block_t nr_blocks);
|
D | dm-space-map-metadata.h | 34 dm_block_t nr_blocks,
|
/drivers/scsi/ |
D | sd.c | 827 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_unmap_cmnd() local 847 put_unaligned_be32(nr_blocks, &buf[16]); in sd_setup_unmap_cmnd() 862 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_same16_cmnd() local 878 put_unaligned_be32(nr_blocks, &cmd->cmnd[10]); in sd_setup_write_same16_cmnd() 893 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_same10_cmnd() local 909 put_unaligned_be16(nr_blocks, &cmd->cmnd[7]); in sd_setup_write_same10_cmnd() 924 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_zeroes_cmnd() local 938 if (sdkp->ws16 || lba > 0xffffffff || nr_blocks > 0xffff) in sd_setup_write_zeroes_cmnd() 1020 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_same_cmnd() local 1030 if (sdkp->ws16 || lba > 0xffffffff || nr_blocks > 0xffff) { in sd_setup_write_same_cmnd() [all …]
|
/drivers/hwtracing/intel_th/ |
D | msu.c | 72 unsigned int nr_blocks; member 330 return (size_t)win->nr_blocks << PAGE_SHIFT; in msc_win_total_sz() 1061 static int msc_buffer_win_alloc(struct msc *msc, unsigned int nr_blocks) in msc_buffer_win_alloc() argument 1066 if (!nr_blocks) in msc_buffer_win_alloc() 1083 win->pgoff = prev->pgoff + prev->nr_blocks; in msc_buffer_win_alloc() 1088 nr_blocks << PAGE_SHIFT); in msc_buffer_win_alloc() 1090 ret = __msc_buffer_win_alloc(win, nr_blocks); in msc_buffer_win_alloc() 1098 win->nr_blocks = nr_blocks; in msc_buffer_win_alloc() 1107 msc->nr_pages += nr_blocks; in msc_buffer_win_alloc() 1142 msc->nr_pages -= win->nr_blocks; in msc_buffer_win_free() [all …]
|
/drivers/block/ |
D | nbd.c | 324 loff_t nr_blocks) in nbd_size_set() argument 328 config->bytesize = blocksize * nr_blocks; in nbd_size_set()
|