Home
last modified time | relevance | path

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

1234

/openbmc/linux/init/
H A Ddo_mounts_rd.c66 int nblocks = -1; in identify_ramdisk_image() local
96 nblocks = 0; 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
208 if (nblocks < 0) in rd_load_image()
211 if (nblocks == 0) { in rd_load_image()
222 if (nblocks > rd_blocks) { in rd_load_image()
224 nblocks, rd_blocks); in rd_load_image()
232 devblocks = nblocks; in rd_load_image()
[all …]
/openbmc/linux/arch/arm64/crypto/
H A Dsm4-neon-glue.c49 unsigned int nblocks; in sm4_ecb_do_crypt() local
52 if (nblocks) { in sm4_ecb_do_crypt()
127 unsigned int nblocks; in sm4_cbc_decrypt() local
130 if (nblocks) { in sm4_cbc_decrypt()
134 walk.iv, nblocks); in sm4_cbc_decrypt()
198 unsigned int nblocks; in sm4_cfb_decrypt() local
201 if (nblocks) { in sm4_cfb_decrypt()
205 walk.iv, nblocks); in sm4_cfb_decrypt()
242 unsigned int nblocks; in sm4_ctr_crypt() local
245 if (nblocks) { in sm4_ctr_crypt()
[all …]
H A Dpolyval-ce-glue.c45 const u8 *in, size_t nblocks, u8 *accumulator);
49 const u8 *in, size_t nblocks, u8 *accumulator) in internal_polyval_update() argument
53 pmull_polyval_update(keys, in, nblocks, accumulator); in internal_polyval_update()
57 nblocks, accumulator); in internal_polyval_update()
107 unsigned int nblocks; in polyval_arm64_update() local
127 nblocks = min(srclen, 4096U) / POLYVAL_BLOCK_SIZE; in polyval_arm64_update()
128 internal_polyval_update(tctx, src, nblocks, dctx->buffer); in polyval_arm64_update()
129 srclen -= nblocks * POLYVAL_BLOCK_SIZE; in polyval_arm64_update()
130 src += nblocks * POLYVAL_BLOCK_SIZE; in polyval_arm64_update()
H A Dsm4-ce-gcm-glue.c24 const u8 *src, unsigned int nblocks);
101 unsigned int nblocks; in gcm_calculate_auth_mac() local
114 nblocks = n / GHASH_BLOCK_SIZE; in gcm_calculate_auth_mac()
115 if (nblocks) { in gcm_calculate_auth_mac()
117 ptr, nblocks); in gcm_calculate_auth_mac()
118 ptr += nblocks * GHASH_BLOCK_SIZE; in gcm_calculate_auth_mac()
H A Dsm4-ce.h13 u8 *iv, unsigned int nblocks);
16 u8 *iv, unsigned int nblocks);
H A Dsm4-ce-glue.c33 u8 *iv, unsigned int nblocks);
35 u8 *iv, unsigned int nblocks);
53 const u8 *src, unsigned int nblocks,
173 unsigned int nblocks; in sm4_cbc_crypt() local
175 nblocks = nbytes / SM4_BLOCK_SIZE; in sm4_cbc_crypt()
176 if (nblocks) { in sm4_cbc_crypt()
181 walk.iv, nblocks); in sm4_cbc_crypt()
184 walk.iv, nblocks); in sm4_cbc_crypt()
709 unsigned int l, nblocks; in sm4_mac_update() local
731 nblocks = len / SM4_BLOCK_SIZE; in sm4_mac_update()
[all …]
/openbmc/linux/fs/jfs/
H A Djfs_dmap.c65 int nblocks);
102 int nblocks);
956 (ip, blkno + nblocks - 1, addnblocks + nblocks, results)); in dbReAlloc()
1587 u64 nblocks; in dbDiscardAG() member
1616 tt->nblocks = nblocks; in dbDiscardAG()
2138 int nblocks) in dbAllocBits() argument
3571 if (nblocks) in dbExtendFS()
3595 if (nblocks) in dbExtendFS()
3730 dp->nblocks = dp->nfree = cpu_to_le32(nblocks); in dbInitDmap()
3739 le32_add_cpu(&dp->nblocks, nblocks); in dbInitDmap()
[all …]
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 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 Dresize.c62 s64 XAddress, XSize, nblocks, xoff, xaddr, t64; in jfs_extendfs() local
313 nblocks = min(t64 - mapSize, XSize); in jfs_extendfs()
322 if ((rc = dbExtendFS(ipbmap, XAddress, nblocks))) in jfs_extendfs()
332 XSize -= nblocks; in jfs_extendfs()
382 xlen = min(xlen, (int) nblocks) & ~(sbi->nbperpage - 1); in jfs_extendfs()
387 if ((rc = xtAppend(tid, ipbmap, 0, xoff, nblocks, &xlen, &xaddr, 0))) { in jfs_extendfs()
H A Djfs_extent.c299 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument
320 if (*nblocks >= max && *nblocks > nbperpage) in extBalloc()
323 nb = nblks = *nblocks; in extBalloc()
341 *nblocks = nb; in extBalloc()
/openbmc/linux/arch/x86/crypto/
H A Dsm4_aesni_avx_glue.c23 const u8 *src, int nblocks);
25 const u8 *src, int nblocks);
63 dst += nblocks * SM4_BLOCK_SIZE; in ecb_do_crypt()
64 src += nblocks * SM4_BLOCK_SIZE; in ecb_do_crypt()
157 src, nblocks); in sm4_avx_cbc_decrypt()
172 dst += nblocks * SM4_BLOCK_SIZE; in sm4_avx_cbc_decrypt()
261 if (nblocks > 1) in sm4_avx_cfb_decrypt()
268 keystream, nblocks); in sm4_avx_cfb_decrypt()
271 nblocks * SM4_BLOCK_SIZE); in sm4_avx_cfb_decrypt()
336 keystream, nblocks); in sm4_avx_ctr_crypt()
[all …]
H A Dblake2s-glue.c19 const u8 *block, const size_t nblocks,
22 const u8 *block, const size_t nblocks,
29 size_t nblocks, const u32 inc) in blake2s_compress() argument
35 blake2s_compress_generic(state, block, nblocks, inc); in blake2s_compress()
40 const size_t blocks = min_t(size_t, nblocks, in blake2s_compress()
51 nblocks -= blocks; in blake2s_compress()
53 } while (nblocks); in blake2s_compress()
H A Dpolyval-clmulni_glue.c49 const u8 *in, size_t nblocks, u8 *accumulator);
58 const u8 *in, size_t nblocks, u8 *accumulator) in internal_polyval_update() argument
62 clmul_polyval_update(keys, in, nblocks, accumulator); in internal_polyval_update()
66 nblocks, accumulator); in internal_polyval_update()
116 unsigned int nblocks; in polyval_x86_update() local
136 nblocks = min(srclen, 4096U) / POLYVAL_BLOCK_SIZE; in polyval_x86_update()
137 internal_polyval_update(tctx, src, nblocks, dctx->buffer); in polyval_x86_update()
138 srclen -= nblocks * POLYVAL_BLOCK_SIZE; in polyval_x86_update()
139 src += nblocks * POLYVAL_BLOCK_SIZE; in polyval_x86_update()
/openbmc/linux/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()
/openbmc/linux/include/crypto/internal/
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()
H A Dblake2s.h14 size_t nblocks, const u32 inc);
17 size_t nblocks, const u32 inc);
/openbmc/linux/lib/crypto/
H A Dblake2s.c38 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in blake2s_update() local
39 blake2s_compress(state, in, nblocks - 1, BLAKE2S_BLOCK_SIZE); in blake2s_update()
40 in += BLAKE2S_BLOCK_SIZE * (nblocks - 1); in blake2s_update()
41 inlen -= BLAKE2S_BLOCK_SIZE * (nblocks - 1); in blake2s_update()
H A Dblake2s-generic.c40 size_t nblocks, const u32 inc)
44 size_t nblocks, const u32 inc) in blake2s_compress_generic() argument
51 (nblocks > 1 && inc != BLAKE2S_BLOCK_SIZE)); in blake2s_compress_generic()
53 while (nblocks > 0) { in blake2s_compress_generic()
106 --nblocks; in blake2s_compress_generic()
/openbmc/linux/fs/reiserfs/
H A Dxattr.h75 size_t nblocks = JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_xattr_jcreate_nblocks() local
78 nblocks += JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_xattr_jcreate_nblocks()
80 nblocks += JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_xattr_jcreate_nblocks()
83 return nblocks; in reiserfs_xattr_jcreate_nblocks()
/openbmc/linux/fs/nilfs2/
H A Dthe_nilfs.c429 u64 nsegments, nblocks; in nilfs_store_disk_layout() local
484 if (nblocks) { in nilfs_store_disk_layout()
492 if (nblocks < min_block_count) { in nilfs_store_disk_layout()
496 (unsigned long long)nblocks); in nilfs_store_disk_layout()
766 sector_t start = 0, nblocks = 0; in nilfs_discard_segments() local
776 if (!nblocks) { in nilfs_discard_segments()
778 nblocks = seg_end - seg_start + 1; in nilfs_discard_segments()
784 nblocks * sects_per_block, in nilfs_discard_segments()
788 nblocks = 0; in nilfs_discard_segments()
791 if (nblocks) in nilfs_discard_segments()
[all …]
H A Dsufile.c1067 sector_t start = 0, nblocks = 0; in nilfs_sufile_trim_fs() local
1123 if (!nblocks) { in nilfs_sufile_trim_fs()
1138 nblocks -= start_block - start; in nilfs_sufile_trim_fs()
1142 if (nblocks >= minlen) { in nilfs_sufile_trim_fs()
1147 nblocks * sects_per_block, in nilfs_sufile_trim_fs()
1154 ndiscarded += nblocks; in nilfs_sufile_trim_fs()
1169 if (nblocks) { in nilfs_sufile_trim_fs()
1172 nblocks -= start_block - start; in nilfs_sufile_trim_fs()
1178 if (nblocks >= minlen) { in nilfs_sufile_trim_fs()
1181 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()
/openbmc/linux/fs/ext4/
H A Dext4_jbd2.h305 #define ext4_journal_start_sb(sb, type, nblocks) \ argument
306 __ext4_journal_start_sb(NULL, (sb), __LINE__, (type), (nblocks), 0,\
309 #define ext4_journal_start(inode, type, nblocks) \ argument
310 __ext4_journal_start((inode), __LINE__, (type), (nblocks), 0, \
344 static inline int ext4_journal_extend(handle_t *handle, int nblocks, int revoke) in ext4_journal_extend() argument
347 return jbd2_journal_extend(handle, nblocks, revoke); in ext4_journal_extend()
351 static inline int ext4_journal_restart(handle_t *handle, int nblocks, in ext4_journal_restart() argument
355 return jbd2__journal_restart(handle, nblocks, revoke, GFP_NOFS); in ext4_journal_restart()
/openbmc/linux/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()

1234