Home
last modified time | relevance | path

Searched refs:nblocks (Results 1 – 25 of 62) sorted by relevance

123

/Linux-v4.19/init/
Ddo_mounts_rd.c65 int nblocks = -1; in identify_ramdisk_image() local
94 nblocks = 0; in identify_ramdisk_image()
104 nblocks = (ntohl(romfsb->size)+BLOCK_SIZE-1)>>BLOCK_SIZE_BITS; in identify_ramdisk_image()
112 nblocks = (cramfsb->size + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; in identify_ramdisk_image()
121 nblocks = (le64_to_cpu(squashfsb->bytes_used) + BLOCK_SIZE - 1) in identify_ramdisk_image()
136 nblocks = (cramfsb->size + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; in identify_ramdisk_image()
152 nblocks = minixsb->s_nzones << minixsb->s_log_zone_size; in identify_ramdisk_image()
162 nblocks = n; in identify_ramdisk_image()
173 return nblocks; in identify_ramdisk_image()
181 int nblocks, i, disk; in rd_load_image() local
[all …]
/Linux-v4.19/fs/jfs/
Djfs_dmap.c78 int nblocks);
85 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results);
87 int nblocks);
89 int nblocks,
92 int nblocks);
93 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
96 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb,
98 static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno,
100 static int dbExtend(struct inode *ip, s64 blkno, s64 nblocks, s64 addnblocks);
105 int nblocks);
[all …]
Djfs_discard.c45 void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks) in jfs_issue_discard() argument
50 r = sb_issue_discard(sb, blkno, nblocks, GFP_NOFS, 0); in jfs_issue_discard()
54 (unsigned long long)nblocks, r); in jfs_issue_discard()
59 (unsigned long long)nblocks, r); in jfs_issue_discard()
Djfs_dmap.h161 __le32 nblocks; /* 4: num blks covered by this dmap */ member
297 extern int dbFree(struct inode *ipbmap, s64 blkno, s64 nblocks);
300 int free, s64 blkno, s64 nblocks, struct tblock * tblk);
304 extern int dbAlloc(struct inode *ipbmap, s64 hint, s64 nblocks, s64 * results);
307 s64 blkno, s64 nblocks, s64 addnblocks, s64 * results);
310 extern int dbAllocBottomUp(struct inode *ip, s64 blkno, s64 nblocks);
311 extern int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks);
Dresize.c74 s64 XAddress, XSize, nblocks, xoff, xaddr, t64; in jfs_extendfs() local
326 nblocks = min(t64 - mapSize, XSize); in jfs_extendfs()
335 if ((rc = dbExtendFS(ipbmap, XAddress, nblocks))) in jfs_extendfs()
345 XSize -= nblocks; in jfs_extendfs()
395 xlen = min(xlen, (int) nblocks) & ~(sbi->nbperpage - 1); in jfs_extendfs()
400 if ((rc = xtAppend(tid, ipbmap, 0, xoff, nblocks, &xlen, &xaddr, 0))) { in jfs_extendfs()
Dxattr.c220 int nblocks; in ea_write() local
238 nblocks = (size + (sb->s_blocksize - 1)) >> sb->s_blocksize_bits; in ea_write()
241 rc = dquot_alloc_block(ip, nblocks); in ea_write()
245 rc = dbAlloc(ip, INOHINT(ip), nblocks, &blkno); in ea_write()
248 dquot_free_block(ip, nblocks); in ea_write()
259 for (i = 0; i < nblocks; i += sbi->nbperpage) { in ea_write()
302 DXDlength(ea, nblocks); in ea_write()
313 dquot_free_block(ip, nblocks); in ea_write()
315 dbFree(ip, blkno, nblocks); in ea_write()
369 int nblocks; in ea_read() local
[all …]
Djfs_extent.c509 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument
525 if (*nblocks >= max && *nblocks > nbperpage) in extBalloc()
528 nb = nblks = *nblocks; in extBalloc()
546 *nblocks = nb; in extBalloc()
/Linux-v4.19/drivers/staging/erofs/
Ddata.c94 erofs_blk_t nblocks, lastblk; in erofs_map_blocks_flatmode() local
101 nblocks = DIV_ROUND_UP(inode->i_size, PAGE_SIZE); in erofs_map_blocks_flatmode()
102 lastblk = nblocks - is_inode_layout_inline(inode); in erofs_map_blocks_flatmode()
186 unsigned nblocks, in erofs_read_raw_page() argument
193 BUG_ON(!nblocks); in erofs_read_raw_page()
276 if (nblocks > DIV_ROUND_UP(map.m_plen, PAGE_SIZE)) in erofs_read_raw_page()
277 nblocks = DIV_ROUND_UP(map.m_plen, PAGE_SIZE); in erofs_read_raw_page()
278 if (nblocks > BIO_MAX_PAGES) in erofs_read_raw_page()
279 nblocks = BIO_MAX_PAGES; in erofs_read_raw_page()
281 bio = prepare_bio(inode->i_sb, blknr, nblocks, read_endio); in erofs_read_raw_page()
/Linux-v4.19/fs/ext4/
Dext4_jbd2.h298 #define ext4_journal_start_sb(sb, type, nblocks) \ argument
299 __ext4_journal_start_sb((sb), __LINE__, (type), (nblocks), 0)
301 #define ext4_journal_start(inode, type, nblocks) \ argument
302 __ext4_journal_start((inode), __LINE__, (type), (nblocks), 0)
335 static inline int ext4_journal_extend(handle_t *handle, int nblocks) in ext4_journal_extend() argument
338 return jbd2_journal_extend(handle, nblocks); in ext4_journal_extend()
342 static inline int ext4_journal_restart(handle_t *handle, int nblocks) in ext4_journal_restart() argument
345 return jbd2_journal_restart(handle, nblocks); in ext4_journal_restart()
/Linux-v4.19/fs/reiserfs/
Dxattr.h74 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()
Dxattr_acl.c366 int nblocks = 0; in reiserfs_cache_default_acl() local
380 nblocks = reiserfs_xattr_jcreate_nblocks(inode); in reiserfs_cache_default_acl()
381 nblocks += JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_cache_default_acl()
386 nblocks += reiserfs_xattr_nblocks(inode, size) * 4; in reiserfs_cache_default_acl()
390 return nblocks; in reiserfs_cache_default_acl()
/Linux-v4.19/fs/nilfs2/
Dsufile.c520 unsigned long nblocks, time64_t modtime) in nilfs_sufile_set_segment_usage() argument
537 su->su_nblocks = cpu_to_le32(nblocks); in nilfs_sufile_set_segment_usage()
1025 sector_t start = 0, nblocks = 0; in nilfs_sufile_trim_fs() local
1081 if (!nblocks) { in nilfs_sufile_trim_fs()
1084 nblocks = seg_end - seg_start + 1; in nilfs_sufile_trim_fs()
1088 if (start + nblocks == seg_start) { in nilfs_sufile_trim_fs()
1090 nblocks += seg_end - seg_start + 1; in nilfs_sufile_trim_fs()
1096 nblocks -= start_block - start; in nilfs_sufile_trim_fs()
1100 if (nblocks >= minlen) { in nilfs_sufile_trim_fs()
1105 nblocks * sects_per_block, in nilfs_sufile_trim_fs()
[all …]
Dsegbuf.h34 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()
Dthe_nilfs.c661 sector_t start = 0, nblocks = 0; in nilfs_discard_segments() local
671 if (!nblocks) { in nilfs_discard_segments()
673 nblocks = seg_end - seg_start + 1; in nilfs_discard_segments()
674 } else if (start + nblocks == seg_start) { in nilfs_discard_segments()
675 nblocks += seg_end - seg_start + 1; in nilfs_discard_segments()
679 nblocks * sects_per_block, in nilfs_discard_segments()
683 nblocks = 0; in nilfs_discard_segments()
686 if (nblocks) in nilfs_discard_segments()
689 nblocks * sects_per_block, in nilfs_discard_segments()
694 int nilfs_count_free_blocks(struct the_nilfs *nilfs, sector_t *nblocks) in nilfs_count_free_blocks() argument
[all …]
Dsegbuf.c83 segbuf->sb_pseg_start = prev->sb_pseg_start + prev->sb_sum.nblocks; in nilfs_segbuf_map_cont()
114 segbuf->sb_pseg_start + segbuf->sb_sum.nblocks); in nilfs_segbuf_extend_payload()
128 segbuf->sb_sum.nblocks = segbuf->sb_sum.nsumblk = 0; in nilfs_segbuf_reset()
159 raw_sum->ss_nblocks = cpu_to_le32(segbuf->sb_sum.nblocks); in nilfs_segbuf_fill_in_segsum()
405 wi->rest_blocks = segbuf->sb_sum.nblocks; in nilfs_segbuf_prepare_write()
511 segbuf->sb_sum.nblocks, in nilfs_segbuf_wait()
/Linux-v4.19/block/partitions/
Dsysv68.c45 __be32 nblocks; /* slice size (in blocks) */ member
84 if (be32_to_cpu(slice->nblocks)) { in sysv68_partition()
87 be32_to_cpu(slice->nblocks)); in sysv68_partition()
/Linux-v4.19/fs/jbd2/
Dtransaction.c396 static handle_t *new_handle(int nblocks) in new_handle() argument
401 handle->h_buffer_credits = nblocks; in new_handle()
407 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int rsv_blocks, in jbd2__journal_start() argument
423 handle = new_handle(nblocks); in jbd2__journal_start()
450 line_no, nblocks); in jbd2__journal_start()
476 handle_t *jbd2_journal_start(journal_t *journal, int nblocks) in jbd2_journal_start() argument
478 return jbd2__journal_start(journal, nblocks, 0, GFP_NOFS, 0, 0); in jbd2_journal_start()
563 int jbd2_journal_extend(handle_t *handle, int nblocks) in jbd2_journal_extend() argument
581 "transaction not running\n", handle, nblocks); in jbd2_journal_extend()
586 wanted = atomic_add_return(nblocks, in jbd2_journal_extend()
[all …]
Dcheckpoint.c110 int nblocks, space_left; in __jbd2_log_wait_for_space() local
113 nblocks = jbd2_space_needed(journal); in __jbd2_log_wait_for_space()
114 while (jbd2_log_space_left(journal) < nblocks) { in __jbd2_log_wait_for_space()
135 nblocks = jbd2_space_needed(journal); in __jbd2_log_wait_for_space()
137 if (space_left < nblocks) { in __jbd2_log_wait_for_space()
163 __func__, nblocks, space_left); in __jbd2_log_wait_for_space()
/Linux-v4.19/crypto/
Dtgr192.c41 u32 nblocks; member
505 tctx->nblocks = 0; in tgr192_init()
522 tctx->nblocks++; in tgr192_update()
541 tctx->nblocks++; in tgr192_update()
566 t = tctx->nblocks; in tgr192_final()
/Linux-v4.19/fs/
Dmpage.c174 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-v4.19/drivers/media/usb/pwc/
Dpwc-dec23.c606 int compression_index, nblocks; in DecompressBand23() local
617 nblocks = compressed_image_width / 4; in DecompressBand23()
623 while (nblocks) { in DecompressBand23()
627 nblocks--; in DecompressBand23()
631 nblocks = compressed_image_width / 8; in DecompressBand23()
637 while (nblocks) { in DecompressBand23()
646 nblocks -= 2; in DecompressBand23()
/Linux-v4.19/drivers/misc/
Dsram.c175 unsigned int nblocks, exports = 0; in sram_reserve_regions() local
187 nblocks = (np) ? of_get_available_child_count(np) + 1 : 1; in sram_reserve_regions()
188 rblocks = kcalloc(nblocks, sizeof(*rblocks), GFP_KERNEL); in sram_reserve_regions()
260 rblocks[nblocks - 1].start = size; in sram_reserve_regions()
261 rblocks[nblocks - 1].size = 0; in sram_reserve_regions()
262 list_add_tail(&rblocks[nblocks - 1].list, &reserve_list); in sram_reserve_regions()
/Linux-v4.19/drivers/s390/char/
Dtape_char.c193 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()
/Linux-v4.19/drivers/mtd/nand/
Dbbt.c26 unsigned int nblocks = nanddev_neraseblocks(nand); in nanddev_bbt_init() local
27 unsigned int nwords = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_bbt_init()
/Linux-v4.19/drivers/staging/greybus/
Dsdio.c257 size_t len, u16 nblocks, off_t skip) in _gb_sdio_send() argument
279 request->data_blocks = cpu_to_le16(nblocks); in _gb_sdio_send()
311 size_t len, u16 nblocks, off_t skip) in _gb_sdio_recv() argument
333 request->data_blocks = cpu_to_le16(nblocks); in _gb_sdio_recv()
367 u16 nblocks; in gb_sdio_transfer() local
387 nblocks = len / data->blksz; in gb_sdio_transfer()
388 len = nblocks * data->blksz; in gb_sdio_transfer()
391 ret = _gb_sdio_recv(host, data, len, nblocks, skip); in gb_sdio_transfer()
395 ret = _gb_sdio_send(host, data, len, nblocks, skip); in gb_sdio_transfer()

123