Home
last modified time | relevance | path

Searched refs:blocksize (Results 1 – 25 of 242) sorted by relevance

12345678910

/openbmc/linux/fs/hfsplus/
H A Dwrapper.c166 u32 blocksize; in hfsplus_read_wrapper() local
170 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE); in hfsplus_read_wrapper()
171 if (!blocksize) in hfsplus_read_wrapper()
230 blocksize = be32_to_cpu(sbi->s_vhdr->blocksize); in hfsplus_read_wrapper()
235 if (blocksize < HFSPLUS_SECTOR_SIZE || ((blocksize - 1) & blocksize)) in hfsplus_read_wrapper()
237 sbi->alloc_blksz = blocksize; in hfsplus_read_wrapper()
238 sbi->alloc_blksz_shift = ilog2(blocksize); in hfsplus_read_wrapper()
239 blocksize = min_t(u32, sbi->alloc_blksz, PAGE_SIZE); in hfsplus_read_wrapper()
245 blocksize >>= 1; in hfsplus_read_wrapper()
247 if (sb_set_blocksize(sb, blocksize) != blocksize) { in hfsplus_read_wrapper()
[all …]
/openbmc/qemu/crypto/
H A Dcipher-gnutls.c.inc69 size_t blocksize;
96 if (len % ctx->blocksize) {
136 len -= ctx->blocksize;
137 in += ctx->blocksize;
138 out += ctx->blocksize;
156 if (len % ctx->blocksize) {
197 len -= ctx->blocksize;
198 in += ctx->blocksize;
213 if (niv != ctx->blocksize) {
315 ctx->blocksize = 8;
[all …]
H A Dcipher-gcrypt.c.inc57 size_t blocksize;
75 if (len & (ctx->blocksize - 1)) {
77 len, ctx->blocksize);
97 if (len & (ctx->blocksize - 1)) {
99 len, ctx->blocksize);
120 if (niv != ctx->blocksize) {
122 ctx->blocksize, niv);
143 if (niv != ctx->blocksize) {
145 ctx->blocksize, niv);
258 ctx->blocksize = gcry_cipher_get_algo_blklen(gcryalg);
/openbmc/linux/block/partitions/
H A Dibm.c67 int blocksize, in find_label() argument
97 testsect[1] = (blocksize >> 9); in find_label()
135 int blocksize, in find_vol1_partitions() argument
154 secperblk = blocksize >> 9; in find_vol1_partitions()
197 int blocksize, in find_lnx1_partitions() argument
210 secperblk = blocksize >> 9; in find_lnx1_partitions()
244 int blocksize, in find_cms1_partitions() argument
256 blocksize = label->cms.block_size; in find_cms1_partitions()
257 secperblk = blocksize >> 9; in find_cms1_partitions()
295 int blocksize, res; in ibm_partition() local
[all …]
/openbmc/u-boot/fs/ext4/
H A Dext4fs.c56 int blocksize = (1 << (log2_fs_blocksize + log2blksz)); in ext4fs_read_file() local
66 if (blocksize <= 0) in ext4fs_read_file()
73 blockcnt = lldiv(((len + pos) + blocksize - 1), blocksize); in ext4fs_read_file()
75 for (i = lldiv(pos, blocksize); i < blockcnt; i++) { in ext4fs_read_file()
77 int blockoff = pos - (blocksize * i); in ext4fs_read_file()
78 int blockend = blocksize; in ext4fs_read_file()
88 blockend = (len + pos) - (blocksize * i); in ext4fs_read_file()
92 blockend = blocksize; in ext4fs_read_file()
96 if (i == lldiv(pos, blocksize)) { in ext4fs_read_file()
144 n = blocksize - skipfirst; in ext4fs_read_file()
[all …]
/openbmc/u-boot/cmd/
H A Donenand.c74 ops.ooblen = blocksize; in onenand_block_read()
76 ops.len = blocksize; in onenand_block_read()
83 ofs += blocksize; in onenand_block_read()
96 ofs += blocksize; in onenand_block_read()
99 ofs += blocksize; in onenand_block_read()
100 buf += blocksize; in onenand_block_read()
176 buf += blocksize; in onenand_block_write()
180 ofs += blocksize; in onenand_block_write()
205 instr.len = blocksize; in onenand_block_erase()
271 instr.len = blocksize; in onenand_block_test()
[all …]
/openbmc/linux/drivers/mtd/parsers/
H A Dbcm47xxpart.c95 uint32_t blocksize = master->erasesize; in bcm47xxpart_parse() local
105 if (blocksize < 0x1000) in bcm47xxpart_parse()
106 blocksize = 0x1000; in bcm47xxpart_parse()
121 for (offset = 0; offset <= master->size - blocksize; in bcm47xxpart_parse()
122 offset += blocksize) { in bcm47xxpart_parse()
206 trx_size = max(trx->length, last_subpart + blocksize); in bcm47xxpart_parse()
212 offset += roundup(trx_size, blocksize) - blocksize; in bcm47xxpart_parse()
228 if (offset != master->size - blocksize && in bcm47xxpart_parse()
236 err = mtd_read(master, offset + (blocksize / 2), 0x4, &bytes_read, in bcm47xxpart_parse()
240 offset + (blocksize / 2), err); in bcm47xxpart_parse()
[all …]
/openbmc/linux/sound/pci/emu10k1/
H A Demu10k1_patch.c30 int truesize, size, blocksize; in snd_emu10k1_sample_new() local
76 blocksize = truesize; in snd_emu10k1_sample_new()
78 blocksize *= 2; in snd_emu10k1_sample_new()
79 sp->block = snd_emu10k1_synth_alloc(emu, blocksize); in snd_emu10k1_sample_new()
82 "synth malloc failed (size=%d)\n", blocksize); in snd_emu10k1_sample_new()
87 sp->v.truesize = blocksize; in snd_emu10k1_sample_new()
94 if (offset + size > blocksize) in snd_emu10k1_sample_new()
103 if (offset + size > blocksize) in snd_emu10k1_sample_new()
121 if (offset + loopsize * 2 > blocksize) in snd_emu10k1_sample_new()
127 if (offset + loopsize > blocksize) in snd_emu10k1_sample_new()
[all …]
/openbmc/linux/include/crypto/
H A Dctr.h25 int blocksize = crypto_skcipher_chunksize(tfm); in crypto_ctr_encrypt_walk() local
31 if (WARN_ON_ONCE(!is_power_of_2(blocksize))) in crypto_ctr_encrypt_walk()
43 tail = walk.nbytes & (blocksize - 1); in crypto_ctr_encrypt_walk()
48 int bsize = min(nbytes, blocksize); in crypto_ctr_encrypt_walk()
53 crypto_inc(walk.iv, blocksize); in crypto_ctr_encrypt_walk()
/openbmc/linux/fs/nilfs2/
H A Dthe_nilfs.c255 int blocksize; in load_nilfs() local
614 blocksize); in nilfs_load_super_block()
618 blocksize); in nilfs_load_super_block()
647 blocksize); in nilfs_load_super_block()
674 int blocksize; in init_nilfs() local
680 if (!blocksize) { in init_nilfs()
704 blocksize); in init_nilfs()
708 if (sb->s_blocksize != blocksize) { in init_nilfs()
711 if (blocksize < hw_blocksize) { in init_nilfs()
714 blocksize, hw_blocksize); in init_nilfs()
[all …]
/openbmc/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_keys.c154 size_t blocksize, keybytes, keylength, n; in krb5_DK() local
174 inblockdata = kmalloc(blocksize, gfp_mask); in krb5_DK()
178 outblockdata = kmalloc(blocksize, gfp_mask); in krb5_DK()
183 inblock.len = blocksize; in krb5_DK()
186 outblock.len = blocksize; in krb5_DK()
376 unsigned int blocksize, offset; in krb5_kdf_feedback_cmac() local
395 blocksize = crypto_shash_digestsize(tfm); in krb5_kdf_feedback_cmac()
396 n = (outkey->len + blocksize - 1) / blocksize; in krb5_kdf_feedback_cmac()
400 step.len = blocksize; in krb5_kdf_feedback_cmac()
405 DR.len = blocksize * n; in krb5_kdf_feedback_cmac()
[all …]
/openbmc/u-boot/drivers/fpga/
H A Dzynqpl.c337 size_t bsize, u32 blocksize, u32 *swap, in zynq_validate_bitstream() argument
343 buf_start = check_data((u8 *)buf, blocksize, swap); in zynq_validate_bitstream()
421 loff_t blocksize, actread; in zynq_loadfs() local
426 blocksize = fsinfo->blocksize; in zynq_loadfs()
445 buf = zynq_align_dma_buffer((u32 *)buf, blocksize, swap); in zynq_loadfs()
447 if (zynq_dma_transfer((u32)buf | 1, blocksize >> 2, in zynq_loadfs()
451 bsize -= blocksize; in zynq_loadfs()
452 pos += blocksize; in zynq_loadfs()
457 if (bsize > blocksize) { in zynq_loadfs()
464 } while (bsize > blocksize); in zynq_loadfs()
[all …]
/openbmc/linux/fs/ocfs2/
H A Dblockcheck.c146 return ocfs2_hamming_encode(0, data, blocksize * 8, 0); in ocfs2_hamming_encode_block()
212 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, in ocfs2_hamming_fix_block() argument
215 ocfs2_hamming_fix(data, blocksize * 8, 0, fix); in ocfs2_hamming_fix_block()
349 void ocfs2_block_check_compute(void *data, size_t blocksize, in ocfs2_block_check_compute() argument
357 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_compute()
358 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_compute()
378 int ocfs2_block_check_validate(void *data, size_t blocksize, in ocfs2_block_check_validate() argument
395 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_validate()
405 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_validate()
406 ocfs2_hamming_fix_block(data, blocksize, ecc ^ bc_ecc); in ocfs2_block_check_validate()
[all …]
H A Docfs2_fs.h1233 ptr += blocksize - OCFS2_QBLK_RESERVED_SPACE; in ocfs2_block_dqtrailer()
1447 return blocksize - in ocfs2_max_inline_data_with_xattr()
1451 return blocksize - in ocfs2_max_inline_data_with_xattr()
1459 size = blocksize - in ocfs2_extent_recs_per_inode()
1469 size = blocksize - in ocfs2_chain_recs_per_inode()
1479 size = blocksize - in ocfs2_extent_recs_per_eb()
1489 size = blocksize - in ocfs2_extent_recs_per_gd()
1499 size = blocksize - in ocfs2_local_alloc_size()
1529 size = blocksize - in ocfs2_truncate_recs_per_inode()
1541 offset /= blocksize; in ocfs2_backup_super_blkno()
[all …]
H A Dblockcheck.h42 void ocfs2_block_check_compute(void *data, size_t blocksize,
44 int ocfs2_block_check_validate(void *data, size_t blocksize,
91 extern u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize);
92 extern void ocfs2_hamming_fix_block(void *data, unsigned int blocksize,
/openbmc/u-boot/env/
H A Dnand.c128 size_t blocksize, len; in writeenv() local
136 blocksize = mtd->erasesize; in writeenv()
137 len = min(blocksize, (size_t)CONFIG_ENV_SIZE); in writeenv()
141 offset += blocksize; in writeenv()
147 offset += blocksize; in writeenv()
249 size_t blocksize, len; in readenv() local
257 blocksize = mtd->erasesize; in readenv()
258 len = min(blocksize, (size_t)CONFIG_ENV_SIZE); in readenv()
262 offset += blocksize; in readenv()
270 offset += blocksize; in readenv()
/openbmc/linux/fs/affs/
H A Dsuper.c202 *blocksize = -1; in parse_options()
224 *blocksize = n; in parse_options()
340 int size, blocksize; in affs_fill_super() local
374 &blocksize,&sbi->s_prefix, in affs_fill_super()
400 if (blocksize > 0) { in affs_fill_super()
401 i = j = blocksize; in affs_fill_super()
402 size = size / (blocksize / 512); in affs_fill_super()
405 for (blocksize = i; blocksize <= j; blocksize <<= 1, size >>= 1) { in affs_fill_super()
428 blocksize, size, reserved); in affs_fill_super()
515 sig, sig[3] + '0', blocksize); in affs_fill_super()
[all …]
/openbmc/linux/drivers/ssb/
H A Ddriver_chipcommon_sflash.c28 u32 blocksize; member
149 sflash->blocksize = e->blocksize; in ssb_sflash_init()
151 sflash->size = sflash->blocksize * sflash->numblocks; in ssb_sflash_init()
155 e->name, sflash->size / 1024, e->blocksize, e->numblocks); in ssb_sflash_init()
/openbmc/linux/drivers/bcma/
H A Ddriver_chipcommon_sflash.c29 u32 blocksize; member
149 sflash->blocksize = e->blocksize; in bcma_sflash_init()
151 sflash->size = sflash->blocksize * sflash->numblocks; in bcma_sflash_init()
155 e->name, sflash->size / 1024, sflash->blocksize, in bcma_sflash_init()
/openbmc/u-boot/drivers/mmc/
H A Dsh_sdhi.c272 unsigned short blocksize, i; in sh_sdhi_single_read() local
296 for (i = 0; i < blocksize / 8; i++) in sh_sdhi_single_read()
299 for (i = 0; i < blocksize / 2; i++) in sh_sdhi_single_read()
313 unsigned short blocksize, i, sec; in sh_sdhi_multi_read() local
339 for (i = 0; i < blocksize / 8; i++) in sh_sdhi_multi_read()
342 for (i = 0; i < blocksize / 2; i++) in sh_sdhi_multi_read()
353 unsigned short blocksize, i; in sh_sdhi_single_write() local
381 for (i = 0; i < blocksize / 8; i++) in sh_sdhi_single_write()
384 for (i = 0; i < blocksize / 2; i++) in sh_sdhi_single_write()
398 unsigned short i, sec, blocksize; in sh_sdhi_multi_write() local
[all …]
/openbmc/linux/fs/crypto/
H A Dcrypto.c180 const unsigned int blocksize = 1 << blockbits; in fscrypt_encrypt_pagecache_blocks() local
190 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_encrypt_pagecache_blocks()
197 for (i = offs; i < offs + len; i += blocksize, lblk_num++) { in fscrypt_encrypt_pagecache_blocks()
200 blocksize, i, gfp_flags); in fscrypt_encrypt_pagecache_blocks()
259 const unsigned int blocksize = 1 << blockbits; in fscrypt_decrypt_pagecache_blocks() local
268 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_decrypt_pagecache_blocks()
271 for (i = offs; i < offs + len; i += blocksize, lblk_num++) { in fscrypt_decrypt_pagecache_blocks()
275 page, blocksize, i & ~PAGE_MASK, in fscrypt_decrypt_pagecache_blocks()
/openbmc/linux/fs/
H A Dbuffer.c1764 return ilog2(blocksize); in block_size_bits()
1835 blocksize = bh->b_size; in __block_write_full_folio()
2100 blocksize = head->b_size; in __block_write_begin_int()
2178 unsigned blocksize; in __block_commit_write() local
2182 blocksize = bh->b_size; in __block_commit_write()
2330 blocksize = head->b_size; in block_is_partially_uptodate()
2333 if (from < blocksize && to > folio_size(folio) - blocksize) in block_is_partially_uptodate()
2408 blocksize); in block_read_full_folio()
2656 unsigned blocksize; in block_truncate_page() local
2686 pos = blocksize; in block_truncate_page()
[all …]
/openbmc/u-boot/fs/reiserfs/
H A Dreiserfs.c310 INFO->blocksize = sb_blocksize(&super); in reiserfs_mount()
318 INFO->version, INFO->blocksize); in reiserfs_mount()
362 memcpy (LEAF, ROOT, INFO->blocksize); in reiserfs_mount()
588 unsigned int blocksize; in reiserfs_read() local
616 filepos, len, offset, blocksize); in reiserfs_read()
620 && offset < blocksize) in reiserfs_read()
624 offset, blocksize); in reiserfs_read()
626 to_read = blocksize - offset; in reiserfs_read()
635 blocksize = (blocksize >> 2) << INFO->fullblocksize_shift; in reiserfs_read()
638 offset, blocksize); in reiserfs_read()
[all …]
/openbmc/linux/drivers/crypto/qce/
H A Dsha.c193 unsigned int blocksize; in qce_ahash_update() local
201 if (total <= blocksize) { in qce_ahash_update()
220 hash_later = total % blocksize; in qce_ahash_update()
238 hash_later = blocksize; in qce_ahash_update()
337 unsigned int blocksize; in qce_ahash_hmac_setkey() local
346 if (keylen <= blocksize) { in qce_ahash_hmac_setkey()
408 unsigned int blocksize; member
419 .blocksize = SHA1_BLOCK_SIZE,
428 .blocksize = SHA256_BLOCK_SIZE,
437 .blocksize = SHA1_BLOCK_SIZE,
[all …]
/openbmc/linux/fs/ext4/
H A Dnamei.c456 if (ext4_rec_len_from_disk(dp->rec_len, blocksize) != blocksize - 12) in get_dx_countlimit()
1342 blocksize); in dx_make_map()
1933 blocksize) - in dx_move_dirents()
2058 blocksize); in do_split()
2068 blocksize, 1)); in do_split()
2070 blocksize, 1)); in do_split()
2300 blocksize - ext4_dir_rec_len(2, NULL), blocksize); in make_indexed_dir()
2689 blocksize); in ext4_generic_delete_entry()
2938 blocksize); in ext4_init_dot_dotdot()
2948 blocksize); in ext4_init_dot_dotdot()
[all …]

12345678910