| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A 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 …]
|
| H A 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()
|
| H A 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 …]
|
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/edac/ |
| H A 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() 578 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce_count() 583 instance->nr_blocks); in edac_device_handle_ce_count() 587 if (instance->nr_blocks > 0) { in edac_device_handle_ce_count() 624 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue_count() [all …]
|
| H A D | edac_device.h | 139 u32 nr_blocks; /* how many blocks */ member 244 char *edac_block_name, unsigned nr_blocks,
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/ump/linux/ |
| H A D | ump_kernel_memory_backend_os.c | 121 descriptor->nr_blocks = ((left + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1)) >> PAGE_SHIFT; in os_allocate() 123 …DBG_MSG(5, ("Allocating page array. Size: %lu\n", descriptor->nr_blocks * sizeof(ump_dd_physical_b… in os_allocate() 125 …ck_array = (ump_dd_physical_block *)vmalloc(sizeof(ump_dd_physical_block) * descriptor->nr_blocks); in os_allocate() 205 BUG_ON(descriptor->nr_blocks > info->num_pages_allocated); in os_free() 212 DBG_MSG(5, ("Releasing %lu OS pages\n", descriptor->nr_blocks)); in os_free() 214 info->num_pages_allocated -= descriptor->nr_blocks; in os_free() 218 for (i = 0; i < descriptor->nr_blocks; i++) { in os_free()
|
| /OK3568_Linux_fs/kernel/drivers/md/persistent-data/ |
| H A 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 …]
|
| H A 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()
|
| H A 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 …]
|
| H A D | dm-space-map-common.h | 64 dm_block_t nr_blocks; member 85 __le64 nr_blocks; member
|
| H A D | dm-space-map-disk.h | 20 dm_block_t nr_blocks);
|
| H A D | dm-space-map-metadata.h | 34 dm_block_t nr_blocks,
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/linux/ |
| H A D | mali_memory_ump.c | 24 u32 nr_blocks; in mali_mem_ump_map() local 43 nr_blocks = ump_dd_phys_block_count_get(ump_mem); in mali_mem_ump_map() 44 if (nr_blocks == 0) { in mali_mem_ump_map() 49 ump_blocks = _mali_osk_malloc(sizeof(*ump_blocks) * nr_blocks); in mali_mem_ump_map() 54 if (UMP_DD_INVALID == ump_dd_phys_blocks_get(ump_mem, ump_blocks, nr_blocks)) { in mali_mem_ump_map() 72 for (i = 0; i < nr_blocks; ++i) { in mali_mem_ump_map()
|
| /OK3568_Linux_fs/kernel/fs/afs/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/fs/crypto/ |
| H A D | inline_crypt.c | 455 u64 fscrypt_limit_io_blocks(const struct inode *inode, u64 lblk, u64 nr_blocks) in fscrypt_limit_io_blocks() argument 461 return nr_blocks; in fscrypt_limit_io_blocks() 463 if (nr_blocks <= 1) in fscrypt_limit_io_blocks() 464 return nr_blocks; in fscrypt_limit_io_blocks() 468 return nr_blocks; in fscrypt_limit_io_blocks() 474 return min_t(u64, nr_blocks, (u64)U32_MAX + 1 - dun); in fscrypt_limit_io_blocks()
|
| /OK3568_Linux_fs/kernel/drivers/scsi/ |
| H A 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 …]
|
| H A D | sd.h | 233 unsigned int nr_blocks); 265 unsigned int nr_blocks) in sd_zbc_prepare_zone_append() argument
|
| /OK3568_Linux_fs/kernel/fs/xfs/libxfs/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/fs/jffs2/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/ump/common/ |
| H A D | ump_kernel_api.c | 62 return mem->nr_blocks; in ump_dd_phys_block_count_get() 78 if (mem->nr_blocks != num_blocks) { in ump_dd_phys_blocks_get() 85 _mali_osk_memcpy(blocks, mem->block_array, sizeof(ump_dd_physical_block) * mem->nr_blocks); in ump_dd_phys_blocks_get() 103 if (index >= mem->nr_blocks) { in ump_dd_phys_block_get()
|
| /OK3568_Linux_fs/kernel/init/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/hwtracing/intel_th/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/include/linux/mmc/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/fs/gfs2/ |
| H A 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 …]
|