Home
last modified time | relevance | path

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

1234

/OK3568_Linux_fs/kernel/fs/jfs/
H A Djfs_dmap.c65 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 …]
H A Djfs_dmap.h148 __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);
H A Djfs_discard.c32 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()
H A Dresize.c62 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()
H A Dxattr.c207 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 …]
/OK3568_Linux_fs/kernel/init/
H A Ddo_mounts_rd.c66 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 …]
/OK3568_Linux_fs/kernel/arch/x86/crypto/
H A Dblake2s-glue.c21 const u8 *block, const size_t nblocks,
24 const u8 *block, const size_t nblocks,
31 size_t nblocks, const u32 inc) in blake2s_compress() argument
37 blake2s_compress_generic(state, block, nblocks, inc); in blake2s_compress()
42 const size_t blocks = min_t(size_t, nblocks, in blake2s_compress()
53 nblocks -= blocks; in blake2s_compress()
55 } while (nblocks); in blake2s_compress()
/OK3568_Linux_fs/kernel/drivers/mtd/nand/
H A Dbbt_store.c26 unsigned int nblocks = nanddev_neraseblocks(nand); in nanddev_read_bbt() local
27 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_read_bbt()
40 if (block >= nblocks) in nanddev_read_bbt()
95 unsigned int nblocks = nanddev_neraseblocks(nand); in nanddev_write_bbt() local
96 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_write_bbt()
110 if (block >= nblocks) in nanddev_write_bbt()
157 unsigned int nblocks = nanddev_neraseblocks(nand); in nanddev_bbt_format() local
162 start_block = nblocks - NANDDEV_BBT_SCAN_MAXBLOCKS; in nanddev_bbt_format()
164 for (block = 0; block < nblocks; block++) { in nanddev_bbt_format()
191 unsigned int nblocks = nanddev_neraseblocks(nand); in nanddev_scan_bbt_in_flash() local
[all …]
/OK3568_Linux_fs/u-boot/drivers/mtd/nand/
H A Dbbt.c46 unsigned int nblocks = nanddev_neraseblocks(nand); in nanddev_read_bbt() local
47 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_read_bbt()
60 if (block >= nblocks) in nanddev_read_bbt()
116 unsigned int nblocks = nanddev_neraseblocks(nand); in nanddev_write_bbt() local
117 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_write_bbt()
131 if (block >= nblocks) in nanddev_write_bbt()
179 unsigned int nblocks = nanddev_neraseblocks(nand); in nanddev_bbt_format() local
184 start_block = nblocks - NANDDEV_BBT_SCAN_MAXBLOCKS; in nanddev_bbt_format()
186 for (block = 0; block < nblocks; block++) { in nanddev_bbt_format()
205 unsigned int nblocks = nanddev_neraseblocks(nand); in nanddev_scan_bbt() local
[all …]
/OK3568_Linux_fs/kernel/drivers/rkflash/
H A Dsfc_nand_mtd_bbt.c45 unsigned int nblocks = snanddev_neraseblocks(nand); in nanddev_read_bbt() local
46 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_read_bbt()
60 if (block >= nblocks) in nanddev_read_bbt()
129 unsigned int nblocks = snanddev_neraseblocks(nand); in nanddev_write_bbt() local
130 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_write_bbt()
144 if (block >= nblocks) in nanddev_write_bbt()
211 unsigned int nblocks = snanddev_neraseblocks(nand); in nanddev_bbt_format() local
215 start_block = nblocks - NANDDEV_BBT_SCAN_MAXBLOCKS; in nanddev_bbt_format()
217 for (block = 0; block < nblocks; block++) { in nanddev_bbt_format()
235 unsigned int nblocks = snanddev_neraseblocks(nand); in nanddev_scan_bbt() local
[all …]
/OK3568_Linux_fs/kernel/arch/arm/crypto/
H A Dblake2b-neon-glue.c19 const u8 *block, size_t nblocks, u32 inc);
22 const u8 *block, size_t nblocks, u32 inc) in blake2b_compress_arch() argument
25 blake2b_compress_generic(state, block, nblocks, inc); in blake2b_compress_arch()
30 const size_t blocks = min_t(size_t, nblocks, in blake2b_compress_arch()
37 nblocks -= blocks; in blake2b_compress_arch()
39 } while (nblocks); in blake2b_compress_arch()
/OK3568_Linux_fs/kernel/include/crypto/internal/
H A Dblake2s.h15 size_t nblocks, const u32 inc);
18 size_t nblocks, const u32 inc);
50 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in __blake2s_update() local
53 blake2s_compress_generic(state, in, nblocks - 1, in __blake2s_update()
56 blake2s_compress(state, in, nblocks - 1, in __blake2s_update()
58 in += BLAKE2S_BLOCK_SIZE * (nblocks - 1); in __blake2s_update()
59 inlen -= BLAKE2S_BLOCK_SIZE * (nblocks - 1); in __blake2s_update()
H A Dblake2b.h15 const u8 *block, size_t nblocks, u32 inc);
23 const u8 *block, size_t nblocks, u32 inc);
41 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2B_BLOCK_SIZE); in __blake2b_update() local
43 (*compress)(state, in, nblocks - 1, BLAKE2B_BLOCK_SIZE); in __blake2b_update()
44 in += BLAKE2B_BLOCK_SIZE * (nblocks - 1); in __blake2b_update()
45 inlen -= BLAKE2B_BLOCK_SIZE * (nblocks - 1); in __blake2b_update()
/OK3568_Linux_fs/kernel/lib/crypto/
H A Dblake2s-generic.c41 size_t nblocks, const u32 inc)
45 size_t nblocks, const u32 inc) in blake2s_compress_generic() argument
52 (nblocks > 1 && inc != BLAKE2S_BLOCK_SIZE)); in blake2s_compress_generic()
54 while (nblocks > 0) { in blake2s_compress_generic()
107 --nblocks; in blake2s_compress_generic()
/OK3568_Linux_fs/kernel/fs/erofs/
H A Ddata.c55 erofs_blk_t nblocks, lastblk; in erofs_map_blocks_flatmode() local
62 nblocks = DIV_ROUND_UP(inode->i_size, PAGE_SIZE); in erofs_map_blocks_flatmode()
63 lastblk = nblocks - tailendpacking; in erofs_map_blocks_flatmode()
118 unsigned int nblocks, in erofs_read_raw_page() argument
126 DBG_BUGON(!nblocks); in erofs_read_raw_page()
203 if (nblocks > DIV_ROUND_UP(map.m_plen, PAGE_SIZE)) in erofs_read_raw_page()
204 nblocks = DIV_ROUND_UP(map.m_plen, PAGE_SIZE); in erofs_read_raw_page()
205 if (nblocks > BIO_MAX_PAGES) in erofs_read_raw_page()
206 nblocks = BIO_MAX_PAGES; in erofs_read_raw_page()
208 bio = bio_alloc(GFP_NOIO, nblocks); in erofs_read_raw_page()
/OK3568_Linux_fs/kernel/fs/nilfs2/
H A Dsufile.c525 unsigned long nblocks, time64_t modtime) in nilfs_sufile_set_segment_usage() argument
542 su->su_nblocks = cpu_to_le32(nblocks); in nilfs_sufile_set_segment_usage()
1030 sector_t start = 0, nblocks = 0; in nilfs_sufile_trim_fs() local
1086 if (!nblocks) { in nilfs_sufile_trim_fs()
1089 nblocks = seg_end - seg_start + 1; in nilfs_sufile_trim_fs()
1093 if (start + nblocks == seg_start) { in nilfs_sufile_trim_fs()
1095 nblocks += seg_end - seg_start + 1; in nilfs_sufile_trim_fs()
1101 nblocks -= start_block - start; in nilfs_sufile_trim_fs()
1105 if (nblocks >= minlen) { in nilfs_sufile_trim_fs()
1110 nblocks * sects_per_block, in nilfs_sufile_trim_fs()
[all …]
H A 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()
H A Dthe_nilfs.c656 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 …]
/OK3568_Linux_fs/kernel/fs/ext4/
H A Dext4_jbd2.h307 #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()
/OK3568_Linux_fs/kernel/fs/reiserfs/
H A 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()
H A Dxattr_acl.c364 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()
/OK3568_Linux_fs/kernel/block/partitions/
H A Dsysv68.c44 __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()
/OK3568_Linux_fs/kernel/fs/jbd2/
H A Dtransaction.c462 static handle_t *new_handle(int nblocks) in new_handle() argument
467 handle->h_total_credits = nblocks; in new_handle()
473 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int rsv_blocks, in jbd2__journal_start() argument
489 nblocks += DIV_ROUND_UP(revoke_records, in jbd2__journal_start()
491 handle = new_handle(nblocks); in jbd2__journal_start()
519 line_no, nblocks); in jbd2__journal_start()
545 handle_t *jbd2_journal_start(journal_t *journal, int nblocks) in jbd2_journal_start() argument
547 return jbd2__journal_start(journal, nblocks, 0, 0, GFP_NOFS, 0, 0); in jbd2_journal_start()
648 int jbd2_journal_extend(handle_t *handle, int nblocks, int revoke_records) in jbd2_journal_extend() argument
666 "transaction not running\n", handle, nblocks); in jbd2_journal_extend()
[all …]
/OK3568_Linux_fs/kernel/fs/
H A Dmpage.c210 unsigned nblocks; in do_mpage_readpage() local
235 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
238 block_in_file < (args->first_logical_block + nblocks)) { in do_mpage_readpage()
240 unsigned last = nblocks - map_offset; in do_mpage_readpage()
298 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
300 if (relative_block == nblocks) { in do_mpage_readpage()
357 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
358 if ((buffer_boundary(map_bh) && relative_block == nblocks) || in do_mpage_readpage()
/OK3568_Linux_fs/kernel/drivers/media/usb/pwc/
H A Dpwc-dec23.c594 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()

1234