Home
last modified time | relevance | path

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

12345678

/linux/fs/hfsplus/
A Dwrapper.c168 u32 blocksize; in hfsplus_read_wrapper() local
172 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE); in hfsplus_read_wrapper()
173 if (!blocksize) in hfsplus_read_wrapper()
233 blocksize = be32_to_cpu(sbi->s_vhdr->blocksize); in hfsplus_read_wrapper()
238 if (blocksize < HFSPLUS_SECTOR_SIZE || ((blocksize - 1) & blocksize)) in hfsplus_read_wrapper()
240 sbi->alloc_blksz = blocksize; in hfsplus_read_wrapper()
241 sbi->alloc_blksz_shift = ilog2(blocksize); in hfsplus_read_wrapper()
242 blocksize = min_t(u32, sbi->alloc_blksz, PAGE_SIZE); in hfsplus_read_wrapper()
248 blocksize >>= 1; in hfsplus_read_wrapper()
250 if (sb_set_blocksize(sb, blocksize) != blocksize) { in hfsplus_read_wrapper()
[all …]
/linux/block/partitions/
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 …]
/linux/sound/pci/emu10k1/
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 …]
/linux/drivers/mtd/parsers/
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()
271 master->size - blocksize, 0); in bcm47xxpart_parse()
/linux/fs/nilfs2/
A Dthe_nilfs.c227 int blocksize; in load_nilfs() local
506 blocksize); in nilfs_load_super_block()
510 blocksize); in nilfs_load_super_block()
539 blocksize); in nilfs_load_super_block()
566 int blocksize; in init_nilfs() local
572 if (!blocksize) { in init_nilfs()
594 blocksize); in init_nilfs()
601 if (blocksize < hw_blocksize) { in init_nilfs()
604 blocksize, hw_blocksize); in init_nilfs()
609 sb_set_blocksize(sb, blocksize); in init_nilfs()
[all …]
/linux/fs/ocfs2/
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 …]
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 …]
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,
/linux/fs/affs/
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 …]
/linux/include/crypto/
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()
/linux/fs/
A Dbuffer.c1737 blocksize = bh->b_size; in __block_write_full_page()
2069 unsigned blocksize; in __block_commit_write() local
2073 blocksize = bh->b_size; in __block_commit_write()
2229 if (from < blocksize && to > PAGE_SIZE - blocksize) in block_is_partially_uptodate()
2293 zero_user(page, i * blocksize, blocksize); in block_read_full_page()
2800 unsigned blocksize; in nobh_truncate_page() local
2831 pos = blocksize; in nobh_truncate_page()
2834 pos += blocksize; in nobh_truncate_page()
2878 unsigned blocksize; in block_truncate_page() local
2906 pos = blocksize; in block_truncate_page()
[all …]
/linux/net/sunrpc/auth_gss/
A Dgss_krb5_wrap.c43 gss_krb5_padding(int blocksize, int length) in gss_krb5_padding() argument
45 return blocksize - (length % blocksize); in gss_krb5_padding()
107 if (pad > blocksize) in gss_krb5_remove_padding()
164 int blocksize = 0, plainlen; in gss_wrap_kerberos_v1() local
177 blocksize = crypto_sync_skcipher_blocksize(kctx->enc); in gss_wrap_kerberos_v1()
178 gss_krb5_add_padding(buf, offset, blocksize); in gss_wrap_kerberos_v1()
179 BUG_ON((buf->len - offset) % blocksize); in gss_wrap_kerberos_v1()
191 BUG_ON((buf->len - offset - headlen) % blocksize); in gss_wrap_kerberos_v1()
263 int blocksize; in gss_unwrap_kerberos_v1() local
339 blocksize = crypto_sync_skcipher_blocksize(kctx->enc); in gss_unwrap_kerberos_v1()
[all …]
A Dgss_krb5_keys.c147 size_t blocksize, keybytes, keylength, n; in krb5_derive_key() local
153 blocksize = gk5e->blocksize; in krb5_derive_key()
169 inblockdata = kmalloc(blocksize, gfp_mask); in krb5_derive_key()
173 outblockdata = kmalloc(blocksize, gfp_mask); in krb5_derive_key()
182 inblock.len = blocksize; in krb5_derive_key()
185 outblock.len = blocksize; in krb5_derive_key()
/linux/drivers/bcma/
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()
/linux/drivers/ssb/
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()
/linux/fs/crypto/
A Dcrypto.c172 const unsigned int blocksize = 1 << blockbits; in fscrypt_encrypt_pagecache_blocks() local
182 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_encrypt_pagecache_blocks()
189 for (i = offs; i < offs + len; i += blocksize, lblk_num++) { in fscrypt_encrypt_pagecache_blocks()
192 blocksize, i, gfp_flags); in fscrypt_encrypt_pagecache_blocks()
252 const unsigned int blocksize = 1 << blockbits; in fscrypt_decrypt_pagecache_blocks() local
261 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_decrypt_pagecache_blocks()
264 for (i = offs; i < offs + len; i += blocksize, lblk_num++) { in fscrypt_decrypt_pagecache_blocks()
266 page, blocksize, i, GFP_NOFS); in fscrypt_decrypt_pagecache_blocks()
/linux/drivers/crypto/qce/
A Dsha.c191 unsigned int blocksize; in qce_ahash_update() local
199 if (total <= blocksize) { in qce_ahash_update()
218 hash_later = total % blocksize; in qce_ahash_update()
236 hash_later = blocksize; in qce_ahash_update()
335 unsigned int blocksize; in qce_ahash_hmac_setkey() local
344 if (keylen <= blocksize) { in qce_ahash_hmac_setkey()
406 unsigned int blocksize; member
417 .blocksize = SHA1_BLOCK_SIZE,
426 .blocksize = SHA256_BLOCK_SIZE,
435 .blocksize = SHA1_BLOCK_SIZE,
[all …]
A Dskcipher.c279 if (!IS_ALIGNED(req->cryptlen, blocksize)) in qce_skcipher_crypt()
353 unsigned int blocksize; member
365 .blocksize = AES_BLOCK_SIZE,
374 .blocksize = AES_BLOCK_SIZE,
383 .blocksize = 1,
393 .blocksize = AES_BLOCK_SIZE,
402 .blocksize = DES_BLOCK_SIZE,
411 .blocksize = DES_BLOCK_SIZE,
420 .blocksize = DES3_EDE_BLOCK_SIZE,
429 .blocksize = DES3_EDE_BLOCK_SIZE,
[all …]
/linux/fs/ext4/
A Dnamei.c1863 blocksize) - in dx_move_dirents()
1980 blocksize); in do_split()
1984 blocksize); in do_split()
1987 blocksize); in do_split()
1994 blocksize, 1)); in do_split()
1996 blocksize, 1)); in do_split()
2218 blocksize - ext4_dir_rec_len(2, NULL), blocksize); in make_indexed_dir()
2602 blocksize); in ext4_generic_delete_entry()
2850 blocksize); in ext4_init_dot_dotdot()
2860 blocksize); in ext4_init_dot_dotdot()
[all …]
A Dmove_extent.c172 unsigned int blocksize, block_start, block_end; in mext_page_mkuptodate() local
180 blocksize = i_blocksize(inode); in mext_page_mkuptodate()
182 create_empty_buffers(page, blocksize, 0); in mext_page_mkuptodate()
188 block_end = block_start + blocksize; in mext_page_mkuptodate()
203 zero_user(page, block_start, blocksize); in mext_page_mkuptodate()
256 unsigned long blocksize = orig_inode->i_sb->s_blocksize; in move_extent_per_page() local
288 tmp_data_size = orig_inode->i_size & (blocksize - 1); in move_extent_per_page()
294 tmp_data_size = blocksize; in move_extent_per_page()
454 unsigned int blocksize = 1 << blkbits; in mext_check_arguments() local
456 orig_eof = (i_size_read(orig_inode) + blocksize - 1) >> blkbits; in mext_check_arguments()
[all …]
/linux/drivers/crypto/ccree/
A Dcc_cipher.c1013 .blocksize = 1,
1031 .blocksize = AES_BLOCK_SIZE,
1049 .blocksize = AES_BLOCK_SIZE,
1067 .blocksize = AES_BLOCK_SIZE,
1085 .blocksize = AES_BLOCK_SIZE,
1103 .blocksize = AES_BLOCK_SIZE,
1121 .blocksize = 1,
1143 .blocksize = 1,
1211 .blocksize = 1,
1245 .blocksize = 1,
[all …]
/linux/drivers/usb/storage/
A Dalauda.c88 unsigned int blocksize; /* number of pages per block */ member
810 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_write_lba() local
838 blocksize, blockbuffer); in alauda_write_lba()
842 memset(blockbuffer, 0, blocksize * (pagesize + 64)); in alauda_write_lba()
850 for (i = 0; i < blocksize; i++) { in alauda_write_lba()
913 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_read_data() local
927 len = min(sectors, blocksize) * (pagesize + 64); in alauda_read_data()
957 pages = min(sectors, blocksize - page); in alauda_read_data()
1007 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_write_data() local
1019 len = min(sectors, blocksize) * pagesize; in alauda_write_data()
[all …]
/linux/drivers/crypto/ccp/
A Dccp-crypto-aes.c247 unsigned int blocksize; member
258 .blocksize = AES_BLOCK_SIZE,
267 .blocksize = AES_BLOCK_SIZE,
276 .blocksize = 1,
285 .blocksize = 1,
294 .blocksize = 1,
303 .blocksize = 1,
330 alg->base.cra_blocksize = def->blocksize; in ccp_register_aes_alg()
/linux/drivers/mtd/devices/
A Dbcm47xxsflash.c81 if (b47s->blocksize < (64 * 1024)) in bcm47xxsflash_erase()
177 u32 mask = b47s->blocksize - 1; in bcm47xxsflash_write_at()
183 if (byte || (len < b47s->blocksize)) { in bcm47xxsflash_write_at()
199 if (byte == b47s->blocksize) in bcm47xxsflash_write_at()
261 mtd->erasesize = b47s->blocksize; in bcm47xxsflash_fill_mtd()
340 b47s->blocksize = sflash->blocksize; in bcm47xxsflash_bcma_probe()
/linux/include/uapi/linux/
A Dcryptouser.h153 unsigned int blocksize; member
159 unsigned int blocksize; member
167 unsigned int blocksize; member
176 unsigned int blocksize; member

Completed in 80 milliseconds

12345678