/linux-4.4.14/drivers/edac/ |
D | edac_device.c | 71 char *edac_block_name, unsigned nr_blocks, in edac_device_alloc_ctl_info() argument 86 edac_dbg(4, "instances=%d blocks=%d\n", nr_instances, nr_blocks); in edac_device_alloc_ctl_info() 106 count = nr_instances * nr_blocks; in edac_device_alloc_ctl_info() 166 inst->nr_blocks = nr_blocks; in edac_device_alloc_ctl_info() 167 blk_p = &dev_blk[instance * nr_blocks]; in edac_device_alloc_ctl_info() 175 for (block = 0; block < nr_blocks; block++) { in edac_device_alloc_ctl_info() 637 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce() 642 instance->nr_blocks); in edac_device_handle_ce() 646 if (instance->nr_blocks > 0) { in edac_device_handle_ce() 683 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue() [all …]
|
D | edac_core.h | 203 u32 nr_blocks; /* how many blocks */ member 308 char *edac_block_name, unsigned nr_blocks,
|
D | edac_device_sysfs.c | 652 instance->nr_blocks, idx); in edac_device_create_instance() 655 for (i = 0; i < instance->nr_blocks; i++) { in edac_device_create_instance() 694 for (i = 0; i < instance->nr_blocks; i++) in edac_device_delete_instance()
|
/linux-4.4.14/drivers/md/persistent-data/ |
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() 158 r = sm_ll_find_free_block(&smd->old_ll, smd->begin, smd->old_ll.nr_blocks, b); in sm_disk_new_block() 209 root_le.nr_blocks = cpu_to_le64(smd->ll.nr_blocks); in sm_disk_copy_root() 242 dm_block_t nr_blocks) in dm_sm_disk_create() argument 259 r = sm_ll_extend(&smd->ll, nr_blocks); in dm_sm_disk_create()
|
D | dm-space-map-common.c | 224 ll->nr_blocks = 0; in sm_ll_init() 235 dm_block_t i, nr_blocks, nr_indexes; in sm_ll_extend() local 238 nr_blocks = ll->nr_blocks + extra_blocks; in sm_ll_extend() 239 old_blocks = dm_sector_div_up(ll->nr_blocks, ll->entries_per_block); in sm_ll_extend() 240 blocks = dm_sector_div_up(nr_blocks, ll->entries_per_block); in sm_ll_extend() 242 nr_indexes = dm_sector_div_up(nr_blocks, ll->entries_per_block); in sm_ll_extend() 251 ll->nr_blocks = nr_blocks; in sm_ll_extend() 611 ll->nr_blocks = 0; in sm_ll_new_metadata() 647 ll->nr_blocks = le64_to_cpu(smr->nr_blocks); in sm_ll_open_metadata() 707 ll->nr_blocks = 0; in sm_ll_new_disk() [all …]
|
D | dm-space-map-metadata.c | 284 *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() 450 r = sm_ll_find_free_block(&smm->old_ll, smm->begin, smm->old_ll.nr_blocks, b); in sm_metadata_new_block_() 532 root_le.nr_blocks = cpu_to_le64(smm->ll.nr_blocks); in sm_metadata_copy_root() 585 *count = smm->ll.nr_blocks; in sm_bootstrap_get_nr_blocks() 594 *count = smm->ll.nr_blocks - smm->begin; in sm_bootstrap_get_nr_free() 632 if (smm->begin == smm->ll.nr_blocks) in sm_bootstrap_new_block() 697 dm_block_t old_len = smm->ll.nr_blocks; in sm_metadata_extend() 762 dm_block_t nr_blocks, in dm_sm_metadata_create() argument 781 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,
|
/linux-4.4.14/drivers/hwtracing/intel_th/ |
D | msu.c | 57 unsigned int nr_blocks; member 207 for (blk = 0; blk < win->nr_blocks; blk++) { in msc_win_oldest_block() 350 if (++iter->block == iter->win->nr_blocks) in msc_iter_block_advance() 463 for (blk = 0; blk < win->nr_blocks; blk++) { in msc_buffer_clear_hw_header() 675 static int msc_buffer_win_alloc(struct msc *msc, unsigned int nr_blocks) in msc_buffer_win_alloc() argument 681 if (!nr_blocks) in msc_buffer_win_alloc() 684 win = kzalloc(offsetof(struct msc_window, block[nr_blocks]), in msc_buffer_win_alloc() 693 win->pgoff = prev->pgoff + prev->nr_blocks; in msc_buffer_win_alloc() 696 for (i = 0; i < nr_blocks; i++) { in msc_buffer_win_alloc() 711 win->nr_blocks = nr_blocks; in msc_buffer_win_alloc() [all …]
|
/linux-4.4.14/fs/jffs2/ |
D | build.c | 322 size += c->nr_blocks * 100; /* And 100 bytes per eraseblock */ in jffs2_calc_trigger_levels() 352 c->flash_size / 1024, c->sector_size / 1024, c->nr_blocks); in jffs2_calc_trigger_levels() 376 c->nr_blocks = c->flash_size / c->sector_size; in jffs2_do_mount_fs() 377 size = sizeof(struct jffs2_eraseblock) * c->nr_blocks; in jffs2_do_mount_fs() 387 for (i=0; i<c->nr_blocks; i++) { in jffs2_do_mount_fs()
|
D | jffs2_fs_sb.h | 90 uint32_t nr_blocks; member
|
D | scan.c | 143 for (i=0; i<c->nr_blocks; i++) { in jffs2_scan_medium() 264 …ize && ((c->nr_free_blocks+empty_blocks+bad_blocks)!= c->nr_blocks || bad_blocks == c->nr_blocks) … in jffs2_scan_medium() 267 empty_blocks, bad_blocks, c->nr_blocks); in jffs2_scan_medium()
|
D | debug.c | 285 if (nr_counted != c->nr_blocks) { in __jffs2_dbg_superblock_counts() 287 __func__, nr_counted, c->nr_blocks); in __jffs2_dbg_superblock_counts()
|
D | nodemgmt.c | 598 if (blocknr >= c->nr_blocks) { in jffs2_mark_node_obsolete()
|
D | nodelist.c | 509 for (i=0; i<c->nr_blocks; i++) { in jffs2_free_raw_node_refs()
|
/linux-4.4.14/drivers/md/ |
D | dm-era-target.c | 71 static int writeset_alloc(struct writeset *ws, dm_block_t nr_blocks) in writeset_alloc() argument 73 ws->md.nr_bits = nr_blocks; in writeset_alloc() 75 ws->bits = vzalloc(bitset_size(nr_blocks)); in writeset_alloc() 173 __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() 750 d->nr_bits = min(d->writeset.nr_bits, md->nr_blocks); in metadata_digest_lookup_writeset() 849 md->nr_blocks, *new_size, in metadata_resize() 856 md->nr_blocks = *new_size; in metadata_resize() [all …]
|
D | dm-cache-target.c | 2744 dm_block_t nr_blocks = from_cblock(size); in set_cache_size() local 2746 if (nr_blocks > (1 << 20) && cache->cache_size != size) in set_cache_size() 2750 (unsigned long long) nr_blocks); in set_cache_size()
|
/linux-4.4.14/include/linux/mmc/ |
D | sh_mmcif.h | 158 unsigned long nr_blocks, in sh_mmcif_boot_do_read() argument 178 for (k = 0; !ret && k < nr_blocks; k++) in sh_mmcif_boot_do_read()
|
/linux-4.4.14/drivers/nvme/host/ |
D | lightnvm.c | 359 int nr_blocks, nvm_bb_update_fn *update_bbtbl, in nvme_nvm_get_bb_tbl() argument 367 int tblsz = sizeof(struct nvme_nvm_bb_tbl) + nr_blocks; in nvme_nvm_get_bb_tbl() 399 if (le32_to_cpu(bb_tbl->tblks) != nr_blocks) { in nvme_nvm_get_bb_tbl() 402 le32_to_cpu(bb_tbl->tblks), nr_blocks); in nvme_nvm_get_bb_tbl() 407 ret = update_bbtbl(ppa, nr_blocks, bb_tbl->blk, priv); in nvme_nvm_get_bb_tbl()
|
/linux-4.4.14/fs/gfs2/ |
D | inode.c | 516 return da->nr_blocks + gfs2_rg_blocks(dip, da->nr_blocks) + in gfs2_trans_da_blks() 524 struct gfs2_alloc_parms ap = { .target = da->nr_blocks, }; in link_dinode() 527 if (da->nr_blocks) { in link_dinode() 954 if (da.nr_blocks) { in gfs2_link() 955 struct gfs2_alloc_parms ap = { .target = da.nr_blocks, }; in gfs2_link() 993 if (da.nr_blocks) in gfs2_link() 996 if (da.nr_blocks) in gfs2_link() 1360 struct gfs2_diradd da = { .nr_blocks = 0, .save_loc = 0, }; in gfs2_rename() 1500 if (da.nr_blocks) { in gfs2_rename() 1501 struct gfs2_alloc_parms ap = { .target = da.nr_blocks, }; in gfs2_rename() [all …]
|
D | dir.h | 23 unsigned nr_blocks; member
|
D | dir.c | 2072 da->nr_blocks = 0; in gfs2_diradd_alloc_required() 2078 da->nr_blocks = sdp->sd_max_dirres; in gfs2_diradd_alloc_required() 2081 da->nr_blocks = 1; in gfs2_diradd_alloc_required()
|
/linux-4.4.14/include/linux/mtd/ |
D | blktrans.h | 68 unsigned long block, unsigned nr_blocks);
|
/linux-4.4.14/mm/ |
D | swapfile.c | 128 sector_t nr_blocks; in discard_swap() local 134 nr_blocks = ((sector_t)se->nr_pages - 1) << (PAGE_SHIFT - 9); in discard_swap() 135 if (nr_blocks) { in discard_swap() 137 nr_blocks, GFP_KERNEL, 0); in discard_swap() 145 nr_blocks = (sector_t)se->nr_pages << (PAGE_SHIFT - 9); in discard_swap() 148 nr_blocks, GFP_KERNEL, 0); in discard_swap() 174 sector_t nr_blocks = se->nr_pages - offset; in discard_swap_cluster() local 176 if (nr_blocks > nr_pages) in discard_swap_cluster() 177 nr_blocks = nr_pages; in discard_swap_cluster() 178 start_page += nr_blocks; in discard_swap_cluster() [all …]
|
/linux-4.4.14/fs/ntfs/ |
D | volume.h | 46 LCN nr_blocks; /* Number of sb->s_blocksize bytes member
|
D | super.c | 681 sector_t nr_blocks = NTFS_SB(sb)->nr_blocks; in read_ntfs_boot_sector() local 701 if ((bh_backup = sb_bread(sb, nr_blocks - 1))) { in read_ntfs_boot_sector() 709 if ((bh_backup = sb_bread(sb, nr_blocks >> 1))) { in read_ntfs_boot_sector() 2798 vol->nr_blocks = i_size_read(sb->s_bdev->bd_inode) >> in ntfs_fill_super() 2837 vol->nr_blocks = i_size_read(sb->s_bdev->bd_inode) >> in ntfs_fill_super()
|
D | inode.c | 1786 unsigned int i, nr_blocks; in ntfs_read_inode_mount() local 1831 nr_blocks = vol->mft_record_size >> sb->s_blocksize_bits; in ntfs_read_inode_mount() 1832 if (!nr_blocks) in ntfs_read_inode_mount() 1833 nr_blocks = 1; in ntfs_read_inode_mount() 1836 for (i = 0; i < nr_blocks; i++) { in ntfs_read_inode_mount()
|
/linux-4.4.14/Documentation/filesystems/ |
D | tmpfs.txt | 63 nr_blocks: The same as size, but in blocks of PAGE_CACHE_SIZE. 72 the default, when neither size nor nr_blocks is specified, is size=50% 74 If nr_blocks=0 (or size=0), blocks will not be limited in that instance;
|
/linux-4.4.14/drivers/lightnvm/ |
D | gennvm.c | 69 static int gennvm_block_bb(struct ppa_addr ppa, int nr_blocks, u8 *blks, in gennvm_block_bb() argument 80 for (i = 0; i < nr_blocks; i++) { in gennvm_block_bb()
|
/linux-4.4.14/include/linux/ |
D | blkdev.h | 1128 sector_t nr_blocks, gfp_t gfp_mask, unsigned long flags) in sb_issue_discard() argument 1131 nr_blocks << (sb->s_blocksize_bits - 9), in sb_issue_discard() 1135 sector_t nr_blocks, gfp_t gfp_mask) in sb_issue_zeroout() argument 1139 nr_blocks << (sb->s_blocksize_bits - 9), in sb_issue_zeroout()
|
/linux-4.4.14/Documentation/device-mapper/ |
D | era.txt | 93 (4 * nr_blocks) bytes + buffers
|
/linux-4.4.14/drivers/block/ |
D | cciss.h | 36 sector_t nr_blocks; member
|
D | cciss.c | 448 vol_sz = drv->nr_blocks; in cciss_seq_show() 2043 drvinfo->nr_blocks = total_size + 1; in cciss_update_drive_info() 2058 drvinfo->nr_blocks == h->drv[drv_index]->nr_blocks && in cciss_update_drive_info() 2099 h->drv[drv_index]->nr_blocks = drvinfo->nr_blocks; in cciss_update_drive_info() 2113 set_capacity(disk, h->drv[drv_index]->nr_blocks); in cciss_update_drive_info() 2269 h->drv[drv_index]->nr_blocks = 0; in cciss_add_controller_node() 2430 drive_info->nr_blocks = 0; in cciss_clear_drive_info() 2887 drv->nr_blocks = total_size + 1; in cciss_geometry_inquiry() 2998 set_capacity(disk, drv->nr_blocks); in cciss_revalidate()
|
/linux-4.4.14/kernel/power/ |
D | snapshot.c | 433 unsigned int i, nr_blocks; in create_zone_bm_rtree() local 445 nr_blocks = DIV_ROUND_UP(pages, BM_BITS_PER_BLOCK); in create_zone_bm_rtree() 447 for (i = 0; i < nr_blocks; i++) { in create_zone_bm_rtree()
|