/kernel/linux/linux-5.10/drivers/md/ |
D | dm-zoned-target.c | 118 unsigned int nr_blocks) in dmz_submit_bio() argument 136 clone->bi_iter.bi_size = dmz_blk2sect(nr_blocks) << SECTOR_SHIFT; in dmz_submit_bio() 146 zone->wp_block += nr_blocks; in dmz_submit_bio() 155 sector_t chunk_block, unsigned int nr_blocks) in dmz_handle_read_zero() argument 157 unsigned int size = nr_blocks << DMZ_BLOCK_SHIFT; in dmz_handle_read_zero() 175 unsigned int nr_blocks = dmz_bio_blocks(bio); in dmz_handle_read() local 176 sector_t end_block = chunk_block + nr_blocks; in dmz_handle_read() 192 (unsigned long long)chunk_block, nr_blocks); in dmz_handle_read() 197 nr_blocks = 0; in dmz_handle_read() 206 nr_blocks = ret; in dmz_handle_read() [all …]
|
D | dm-zoned-reclaim.c | 65 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()
|
D | dm-era-target.c | 73 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 503 disk->nr_blocks = cpu_to_le32(md->nr_blocks); in prepare_superblock() 588 md->nr_blocks = le32_to_cpu(disk->nr_blocks); in open_metadata() 765 d->nr_bits = min(d->writeset.nr_bits, md->nr_blocks); in metadata_digest_lookup_writeset() [all …]
|
D | dm-zoned-metadata.c | 2469 unsigned int nr_blocks; in dmz_merge_valid_blocks() local 2479 nr_blocks = ret; in dmz_merge_valid_blocks() 2480 ret = dmz_validate_blocks(zmd, to_zone, chunk_block, nr_blocks); in dmz_merge_valid_blocks() 2484 chunk_block += nr_blocks; in dmz_merge_valid_blocks() 2494 sector_t chunk_block, unsigned int nr_blocks) in dmz_validate_blocks() argument 2503 nr_blocks); in dmz_validate_blocks() 2505 WARN_ON(chunk_block + nr_blocks > zone_nr_blocks); in dmz_validate_blocks() 2507 while (nr_blocks) { in dmz_validate_blocks() 2515 nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit); in dmz_validate_blocks() 2524 nr_blocks -= nr_bits; in dmz_validate_blocks() [all …]
|
D | dm-zoned.h | 258 sector_t chunk_block, unsigned int nr_blocks); 260 sector_t chunk_block, unsigned int nr_blocks);
|
/kernel/linux/linux-5.10/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() 577 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce_count() 582 instance->nr_blocks); in edac_device_handle_ce_count() 586 if (instance->nr_blocks > 0) { in edac_device_handle_ce_count() 623 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue_count() [all …]
|
D | edac_device.h | 139 u32 nr_blocks; /* how many blocks */ member 244 char *edac_block_name, unsigned nr_blocks,
|
/kernel/linux/linux-5.10/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() 284 if (b >= ll->nr_blocks) { in sm_ll_lookup_bitmap() 397 r = sm_ll_find_free_block(new_ll, begin, new_ll->nr_blocks, b); in sm_ll_find_common_free_block() 402 if (*b >= old_ll->nr_blocks) in sm_ll_find_common_free_block() [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() 173 r = sm_ll_find_common_free_block(&smd->old_ll, &smd->ll, smd->begin, smd->ll.nr_blocks, b); in sm_disk_new_block() 231 root_le.nr_blocks = cpu_to_le64(smd->ll.nr_blocks); in sm_disk_copy_root() 264 dm_block_t nr_blocks) in dm_sm_disk_create() argument 281 r = sm_ll_extend(&smd->ll, nr_blocks); in dm_sm_disk_create()
|
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() 454 r = sm_ll_find_common_free_block(&smm->old_ll, &smm->ll, smm->begin, smm->ll.nr_blocks, b); in sm_metadata_new_block_() 543 root_le.nr_blocks = cpu_to_le64(smm->ll.nr_blocks); in sm_metadata_copy_root() 596 *count = smm->ll.nr_blocks; in sm_bootstrap_get_nr_blocks() 605 *count = smm->ll.nr_blocks - smm->begin; in sm_bootstrap_get_nr_free() 643 if (smm->begin == smm->ll.nr_blocks) in sm_bootstrap_new_block() 708 dm_block_t old_len = smm->ll.nr_blocks; in sm_metadata_extend() 773 dm_block_t nr_blocks, in dm_sm_metadata_create() argument 790 if (nr_blocks > DM_SM_METADATA_MAX_BLOCKS) in dm_sm_metadata_create() [all …]
|
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,
|
/kernel/linux/linux-5.10/fs/afs/ |
D | dir_edit.c | 194 unsigned int need_slots, nr_blocks, b; in afs_edit_dir_add() local 225 nr_blocks = i_size / AFS_DIR_BLOCK_SIZE; in afs_edit_dir_add() 230 for (b = 0; b < nr_blocks + 1; b++) { in afs_edit_dir_add() 239 if (nr_blocks >= AFS_DIR_MAX_BLOCKS) in afs_edit_dir_add() 264 if (b == nr_blocks) { in afs_edit_dir_add() 304 nr_blocks = 1; in afs_edit_dir_add() 372 unsigned int need_slots, nr_blocks, b; in afs_edit_dir_remove() local 386 nr_blocks = i_size / AFS_DIR_BLOCK_SIZE; in afs_edit_dir_remove() 405 for (b = 0; b < nr_blocks; b++) { in afs_edit_dir_remove()
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
D | xfs_btree_staging.c | 649 uint64_t nr_blocks = 0; in xfs_btree_bload_compute_geometry() local 684 nr_blocks++; in xfs_btree_bload_compute_geometry() 716 nr_blocks++; in xfs_btree_bload_compute_geometry() 724 nr_blocks += level_blocks; in xfs_btree_bload_compute_geometry() 733 bbl->nr_blocks = nr_blocks - 1; in xfs_btree_bload_compute_geometry() 735 bbl->nr_blocks = nr_blocks; in xfs_btree_bload_compute_geometry()
|
D | xfs_btree_staging.h | 109 uint64_t nr_blocks; member
|
/kernel/linux/linux-5.10/fs/jffs2/ |
D | build.c | 323 size += c->nr_blocks * 100; /* And 100 bytes per eraseblock */ in jffs2_calc_trigger_levels() 353 c->flash_size / 1024, c->sector_size / 1024, c->nr_blocks); in jffs2_calc_trigger_levels() 377 c->nr_blocks = c->flash_size / c->sector_size; in jffs2_do_mount_fs() 378 size = sizeof(struct jffs2_eraseblock) * c->nr_blocks; in jffs2_do_mount_fs() 388 for (i=0; i<c->nr_blocks; i++) { in jffs2_do_mount_fs()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | sd.c | 879 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_unmap_cmnd() local 899 put_unaligned_be32(nr_blocks, &buf[16]); in sd_setup_unmap_cmnd() 915 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_same16_cmnd() local 931 put_unaligned_be32(nr_blocks, &cmd->cmnd[10]); in sd_setup_write_same16_cmnd() 947 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_same10_cmnd() local 963 put_unaligned_be16(nr_blocks, &cmd->cmnd[7]); in sd_setup_write_same10_cmnd() 978 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_zeroes_cmnd() local 994 if (sdkp->ws16 || lba > 0xffffffff || nr_blocks > 0xffff) in sd_setup_write_zeroes_cmnd() 1076 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_same_cmnd() local 1087 if (sdkp->ws16 || lba > 0xffffffff || nr_blocks > 0xffff) { in sd_setup_write_same_cmnd() [all …]
|
D | sd.h | 230 unsigned int nr_blocks); 262 unsigned int nr_blocks) in sd_zbc_prepare_zone_append() argument
|
/kernel/linux/linux-5.10/init/ |
D | do_mounts_rd.c | 177 static unsigned long nr_blocks(struct file *file) in nr_blocks() function 221 rd_blocks = nr_blocks(out_file); in rd_load_image() 234 devblocks = nr_blocks(in_file); in rd_load_image()
|
/kernel/linux/linux-5.10/include/linux/mmc/ |
D | sh_mmcif.h | 149 unsigned long nr_blocks, in sh_mmcif_boot_do_read() argument 169 for (k = 0; !ret && k < nr_blocks; k++) in sh_mmcif_boot_do_read()
|
/kernel/linux/linux-5.10/drivers/hwtracing/intel_th/ |
D | msu.c | 72 unsigned int nr_blocks; member 334 return (size_t)win->nr_blocks << PAGE_SHIFT; in msc_win_total_sz() 1076 static int msc_buffer_win_alloc(struct msc *msc, unsigned int nr_blocks) in msc_buffer_win_alloc() argument 1081 if (!nr_blocks) in msc_buffer_win_alloc() 1098 win->pgoff = prev->pgoff + prev->nr_blocks; in msc_buffer_win_alloc() 1103 nr_blocks << PAGE_SHIFT); in msc_buffer_win_alloc() 1105 ret = __msc_buffer_win_alloc(win, nr_blocks); in msc_buffer_win_alloc() 1113 win->nr_blocks = nr_blocks; in msc_buffer_win_alloc() 1122 msc->nr_pages += nr_blocks; in msc_buffer_win_alloc() 1157 msc->nr_pages -= win->nr_blocks; in msc_buffer_win_free() [all …]
|
/kernel/linux/linux-5.10/fs/gfs2/ |
D | inode.c | 529 return da->nr_blocks + gfs2_rg_blocks(dip, da->nr_blocks) + in gfs2_trans_da_blks() 537 struct gfs2_alloc_parms ap = { .target = da->nr_blocks, }; in link_dinode() 540 if (da->nr_blocks) { in link_dinode() 988 if (da.nr_blocks) { in gfs2_link() 989 struct gfs2_alloc_parms ap = { .target = da.nr_blocks, }; in gfs2_link() 1027 if (da.nr_blocks) in gfs2_link() 1030 if (da.nr_blocks) in gfs2_link() 1383 struct gfs2_diradd da = { .nr_blocks = 0, .save_loc = 0, }; in gfs2_rename() 1539 if (da.nr_blocks) { in gfs2_rename() 1540 struct gfs2_alloc_parms ap = { .target = da.nr_blocks, }; in gfs2_rename() [all …]
|
/kernel/linux/linux-5.10/include/linux/mtd/ |
D | blktrans.h | 53 unsigned long block, unsigned nr_blocks);
|
/kernel/linux/linux-5.10/fs/xfs/scrub/ |
D | repair.h | 23 bool xrep_ag_has_space(struct xfs_perag *pag, xfs_extlen_t nr_blocks,
|