/Linux-v5.10/init/ |
D | do_mounts_rd.c | 66 int nblocks = -1; in identify_ramdisk_image() local 96 nblocks = 0; in identify_ramdisk_image() 106 nblocks = (ntohl(romfsb->size)+BLOCK_SIZE-1)>>BLOCK_SIZE_BITS; in identify_ramdisk_image() 114 nblocks = (cramfsb->size + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; in identify_ramdisk_image() 123 nblocks = (le64_to_cpu(squashfsb->bytes_used) + BLOCK_SIZE - 1) in identify_ramdisk_image() 138 nblocks = (cramfsb->size + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; in identify_ramdisk_image() 154 nblocks = minixsb->s_nzones << minixsb->s_log_zone_size; in identify_ramdisk_image() 164 nblocks = n; in identify_ramdisk_image() 174 return nblocks; in identify_ramdisk_image() 190 int nblocks, i; in rd_load_image() local [all …]
|
/Linux-v5.10/fs/jfs/ |
D | jfs_dmap.c | 65 int nblocks); 72 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results); 74 int nblocks); 76 int nblocks, 79 int nblocks); 80 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks, 83 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, 85 static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno, 87 static int dbExtend(struct inode *ip, s64 blkno, s64 nblocks, s64 addnblocks); 92 int nblocks); [all …]
|
D | jfs_discard.c | 32 void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks) in jfs_issue_discard() argument 37 r = sb_issue_discard(sb, blkno, nblocks, GFP_NOFS, 0); in jfs_issue_discard() 41 (unsigned long long)nblocks, r); in jfs_issue_discard() 46 (unsigned long long)nblocks, r); in jfs_issue_discard()
|
D | jfs_dmap.h | 148 __le32 nblocks; /* 4: num blks covered by this dmap */ member 284 extern int dbFree(struct inode *ipbmap, s64 blkno, s64 nblocks); 287 int free, s64 blkno, s64 nblocks, struct tblock * tblk); 291 extern int dbAlloc(struct inode *ipbmap, s64 hint, s64 nblocks, s64 * results); 294 s64 blkno, s64 nblocks, s64 addnblocks, s64 * results); 297 extern int dbAllocBottomUp(struct inode *ip, s64 blkno, s64 nblocks); 298 extern int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks);
|
D | resize.c | 62 s64 XAddress, XSize, nblocks, xoff, xaddr, t64; in jfs_extendfs() local 314 nblocks = min(t64 - mapSize, XSize); in jfs_extendfs() 323 if ((rc = dbExtendFS(ipbmap, XAddress, nblocks))) in jfs_extendfs() 333 XSize -= nblocks; in jfs_extendfs() 383 xlen = min(xlen, (int) nblocks) & ~(sbi->nbperpage - 1); in jfs_extendfs() 388 if ((rc = xtAppend(tid, ipbmap, 0, xoff, nblocks, &xlen, &xaddr, 0))) { in jfs_extendfs()
|
D | xattr.c | 207 int nblocks; in ea_write() local 225 nblocks = (size + (sb->s_blocksize - 1)) >> sb->s_blocksize_bits; in ea_write() 228 rc = dquot_alloc_block(ip, nblocks); in ea_write() 232 rc = dbAlloc(ip, INOHINT(ip), nblocks, &blkno); in ea_write() 235 dquot_free_block(ip, nblocks); in ea_write() 246 for (i = 0; i < nblocks; i += sbi->nbperpage) { in ea_write() 289 DXDlength(ea, nblocks); in ea_write() 300 dquot_free_block(ip, nblocks); in ea_write() 302 dbFree(ip, blkno, nblocks); in ea_write() 356 int nblocks; in ea_read() local [all …]
|
/Linux-v5.10/arch/x86/crypto/ |
D | blake2s-glue.c | 22 const u8 *block, const size_t nblocks, 25 const u8 *block, const size_t nblocks, 32 const u8 *block, size_t nblocks, in blake2s_compress_arch() argument 39 blake2s_compress_generic(state, block, nblocks, inc); in blake2s_compress_arch() 44 const size_t blocks = min_t(size_t, nblocks, in blake2s_compress_arch() 55 nblocks -= blocks; in blake2s_compress_arch() 57 } while (nblocks); in blake2s_compress_arch() 105 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in crypto_blake2s_update() local 107 blake2s_compress_arch(state, in, nblocks - 1, BLAKE2S_BLOCK_SIZE); in crypto_blake2s_update() 108 in += BLAKE2S_BLOCK_SIZE * (nblocks - 1); in crypto_blake2s_update() [all …]
|
/Linux-v5.10/fs/erofs/ |
D | data.c | 53 erofs_blk_t nblocks, lastblk; in erofs_map_blocks_flatmode() local 60 nblocks = DIV_ROUND_UP(inode->i_size, PAGE_SIZE); in erofs_map_blocks_flatmode() 61 lastblk = nblocks - tailendpacking; in erofs_map_blocks_flatmode() 131 unsigned int nblocks, in erofs_read_raw_page() argument 139 DBG_BUGON(!nblocks); in erofs_read_raw_page() 216 if (nblocks > DIV_ROUND_UP(map.m_plen, PAGE_SIZE)) in erofs_read_raw_page() 217 nblocks = DIV_ROUND_UP(map.m_plen, PAGE_SIZE); in erofs_read_raw_page() 218 if (nblocks > BIO_MAX_PAGES) in erofs_read_raw_page() 219 nblocks = BIO_MAX_PAGES; in erofs_read_raw_page() 221 bio = bio_alloc(GFP_NOIO, nblocks); in erofs_read_raw_page()
|
/Linux-v5.10/lib/crypto/ |
D | blake2s.c | 41 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in blake2s_update() local 44 blake2s_compress_arch(state, in, nblocks - 1, in blake2s_update() 47 blake2s_compress_generic(state, in, nblocks - 1, in blake2s_update() 49 in += BLAKE2S_BLOCK_SIZE * (nblocks - 1); in blake2s_update() 50 inlen -= BLAKE2S_BLOCK_SIZE * (nblocks - 1); in blake2s_update()
|
D | blake2s-generic.c | 41 size_t nblocks, const u32 inc) in blake2s_compress_generic() argument 48 (nblocks > 1 && inc != BLAKE2S_BLOCK_SIZE)); in blake2s_compress_generic() 50 while (nblocks > 0) { in blake2s_compress_generic() 103 --nblocks; in blake2s_compress_generic()
|
/Linux-v5.10/fs/reiserfs/ |
D | xattr.h | 74 size_t nblocks = JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_xattr_jcreate_nblocks() local 77 nblocks += JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_xattr_jcreate_nblocks() 79 nblocks += JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_xattr_jcreate_nblocks() 82 return nblocks; in reiserfs_xattr_jcreate_nblocks()
|
D | xattr_acl.c | 364 int nblocks = 0; in reiserfs_cache_default_acl() local 378 nblocks = reiserfs_xattr_jcreate_nblocks(inode); in reiserfs_cache_default_acl() 379 nblocks += JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_cache_default_acl() 384 nblocks += reiserfs_xattr_nblocks(inode, size) * 4; in reiserfs_cache_default_acl() 388 return nblocks; in reiserfs_cache_default_acl()
|
/Linux-v5.10/fs/ext4/ |
D | ext4_jbd2.h | 307 #define ext4_journal_start_sb(sb, type, nblocks) \ argument 308 __ext4_journal_start_sb((sb), __LINE__, (type), (nblocks), 0, \ 311 #define ext4_journal_start(inode, type, nblocks) \ argument 312 __ext4_journal_start((inode), __LINE__, (type), (nblocks), 0, \ 346 static inline int ext4_journal_extend(handle_t *handle, int nblocks, int revoke) in ext4_journal_extend() argument 349 return jbd2_journal_extend(handle, nblocks, revoke); in ext4_journal_extend() 353 static inline int ext4_journal_restart(handle_t *handle, int nblocks, in ext4_journal_restart() argument 357 return jbd2__journal_restart(handle, nblocks, revoke, GFP_NOFS); in ext4_journal_restart()
|
/Linux-v5.10/fs/nilfs2/ |
D | sufile.c | 517 unsigned long nblocks, time64_t modtime) in nilfs_sufile_set_segment_usage() argument 534 su->su_nblocks = cpu_to_le32(nblocks); in nilfs_sufile_set_segment_usage() 1022 sector_t start = 0, nblocks = 0; in nilfs_sufile_trim_fs() local 1078 if (!nblocks) { in nilfs_sufile_trim_fs() 1081 nblocks = seg_end - seg_start + 1; in nilfs_sufile_trim_fs() 1085 if (start + nblocks == seg_start) { in nilfs_sufile_trim_fs() 1087 nblocks += seg_end - seg_start + 1; in nilfs_sufile_trim_fs() 1093 nblocks -= start_block - start; in nilfs_sufile_trim_fs() 1097 if (nblocks >= minlen) { in nilfs_sufile_trim_fs() 1102 nblocks * sects_per_block, in nilfs_sufile_trim_fs() [all …]
|
D | segbuf.h | 34 unsigned long nblocks; member 131 return segbuf->sb_sum.nblocks == segbuf->sb_sum.nsumblk; in nilfs_segbuf_empty() 139 segbuf->sb_sum.nblocks++; in nilfs_segbuf_add_segsum_buffer() 148 segbuf->sb_sum.nblocks++; in nilfs_segbuf_add_payload_buffer()
|
D | the_nilfs.c | 656 sector_t start = 0, nblocks = 0; in nilfs_discard_segments() local 666 if (!nblocks) { in nilfs_discard_segments() 668 nblocks = seg_end - seg_start + 1; in nilfs_discard_segments() 669 } else if (start + nblocks == seg_start) { in nilfs_discard_segments() 670 nblocks += seg_end - seg_start + 1; in nilfs_discard_segments() 674 nblocks * sects_per_block, in nilfs_discard_segments() 678 nblocks = 0; in nilfs_discard_segments() 681 if (nblocks) in nilfs_discard_segments() 684 nblocks * sects_per_block, in nilfs_discard_segments() 689 int nilfs_count_free_blocks(struct the_nilfs *nilfs, sector_t *nblocks) in nilfs_count_free_blocks() argument [all …]
|
/Linux-v5.10/block/partitions/ |
D | sysv68.c | 44 __be32 nblocks; /* slice size (in blocks) */ member 83 if (be32_to_cpu(slice->nblocks)) { in sysv68_partition() 86 be32_to_cpu(slice->nblocks)); in sysv68_partition()
|
/Linux-v5.10/include/crypto/internal/ |
D | blake2s.h | 14 size_t nblocks, const u32 inc); 17 size_t nblocks, const u32 inc);
|
/Linux-v5.10/crypto/ |
D | blake2s_generic.c | 59 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in crypto_blake2s_update() local 61 blake2s_compress_generic(state, in, nblocks - 1, BLAKE2S_BLOCK_SIZE); in crypto_blake2s_update() 62 in += BLAKE2S_BLOCK_SIZE * (nblocks - 1); in crypto_blake2s_update() 63 inlen -= BLAKE2S_BLOCK_SIZE * (nblocks - 1); in crypto_blake2s_update()
|
D | tgr192.c | 37 u32 nblocks; member 500 tctx->nblocks = 0; in tgr192_init() 517 tctx->nblocks++; in tgr192_update() 536 tctx->nblocks++; in tgr192_update() 561 t = tctx->nblocks; in tgr192_final()
|
/Linux-v5.10/fs/jbd2/ |
D | transaction.c | 457 static handle_t *new_handle(int nblocks) in new_handle() argument 462 handle->h_total_credits = nblocks; in new_handle() 468 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int rsv_blocks, in jbd2__journal_start() argument 484 nblocks += DIV_ROUND_UP(revoke_records, in jbd2__journal_start() 486 handle = new_handle(nblocks); in jbd2__journal_start() 514 line_no, nblocks); in jbd2__journal_start() 540 handle_t *jbd2_journal_start(journal_t *journal, int nblocks) in jbd2_journal_start() argument 542 return jbd2__journal_start(journal, nblocks, 0, 0, GFP_NOFS, 0, 0); in jbd2_journal_start() 643 int jbd2_journal_extend(handle_t *handle, int nblocks, int revoke_records) in jbd2_journal_extend() argument 661 "transaction not running\n", handle, nblocks); in jbd2_journal_extend() [all …]
|
/Linux-v5.10/fs/ |
D | mpage.c | 174 unsigned nblocks; in do_mpage_readpage() local 199 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 202 block_in_file < (args->first_logical_block + nblocks)) { in do_mpage_readpage() 204 unsigned last = nblocks - map_offset; in do_mpage_readpage() 262 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 264 if (relative_block == nblocks) { in do_mpage_readpage() 321 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 322 if ((buffer_boundary(map_bh) && relative_block == nblocks) || in do_mpage_readpage()
|
/Linux-v5.10/drivers/media/usb/pwc/ |
D | pwc-dec23.c | 594 int compression_index, nblocks; in DecompressBand23() local 605 nblocks = compressed_image_width / 4; in DecompressBand23() 611 while (nblocks) { in DecompressBand23() 615 nblocks--; in DecompressBand23() 619 nblocks = compressed_image_width / 8; in DecompressBand23() 625 while (nblocks) { in DecompressBand23() 634 nblocks -= 2; in DecompressBand23()
|
/Linux-v5.10/drivers/misc/ |
D | sram.c | 162 unsigned int nblocks, exports = 0; in sram_reserve_regions() local 174 nblocks = (np) ? of_get_available_child_count(np) + 1 : 1; in sram_reserve_regions() 175 rblocks = kcalloc(nblocks, sizeof(*rblocks), GFP_KERNEL); in sram_reserve_regions() 247 rblocks[nblocks - 1].start = size; in sram_reserve_regions() 248 rblocks[nblocks - 1].size = 0; in sram_reserve_regions() 249 list_add_tail(&rblocks[nblocks - 1].list, &reserve_list); in sram_reserve_regions()
|
/Linux-v5.10/drivers/s390/char/ |
D | tape_char.c | 193 int nblocks; in tapechar_write() local 206 nblocks = count / block_size; in tapechar_write() 209 nblocks = 1; in tapechar_write() 217 DBF_EVENT(6, "TCHAR:nblocks: %x\n", nblocks); in tapechar_write() 224 for (i = 0; i < nblocks; i++) { in tapechar_write()
|