| /linux/fs/hfsplus/ |
| A D | wrapper.c | 167 u32 blocksize; in hfsplus_read_wrapper() local 171 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE); in hfsplus_read_wrapper() 172 if (!blocksize) in hfsplus_read_wrapper() 231 blocksize = be32_to_cpu(sbi->s_vhdr->blocksize); in hfsplus_read_wrapper() 236 if (blocksize < HFSPLUS_SECTOR_SIZE || ((blocksize - 1) & blocksize)) in hfsplus_read_wrapper() 238 sbi->alloc_blksz = blocksize; in hfsplus_read_wrapper() 239 sbi->alloc_blksz_shift = ilog2(blocksize); in hfsplus_read_wrapper() 240 blocksize = min_t(u32, sbi->alloc_blksz, PAGE_SIZE); in hfsplus_read_wrapper() 246 blocksize >>= 1; in hfsplus_read_wrapper() 248 if (sb_set_blocksize(sb, blocksize) != blocksize) { in hfsplus_read_wrapper() [all …]
|
| /linux/block/partitions/ |
| A D | ibm.c | 108 int blocksize, in find_label() argument 136 testsect[1] = (blocksize >> 9); in find_label() 170 int blocksize, in find_vol1_partitions() argument 189 secperblk = blocksize >> 9; in find_vol1_partitions() 232 int blocksize, in find_lnx1_partitions() argument 245 secperblk = blocksize >> 9; in find_lnx1_partitions() 279 int blocksize, in find_cms1_partitions() argument 291 blocksize = label->cms.block_size; in find_cms1_partitions() 292 secperblk = blocksize >> 9; in find_cms1_partitions() 330 int blocksize, res; in ibm_partition() local [all …]
|
| /linux/drivers/mtd/parsers/ |
| A D | bcm47xxpart.c | 95 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 …]
|
| /linux/fs/nilfs2/ |
| A D | the_nilfs.c | 253 int blocksize; in load_nilfs() local 618 blocksize); in nilfs_load_super_block() 622 blocksize); in nilfs_load_super_block() 651 blocksize); in nilfs_load_super_block() 693 int blocksize; in init_nilfs() local 699 if (!blocksize) { in init_nilfs() 723 blocksize); in init_nilfs() 727 if (sb->s_blocksize != blocksize) { in init_nilfs() 730 if (blocksize < hw_blocksize) { in init_nilfs() 733 blocksize, hw_blocksize); in init_nilfs() [all …]
|
| /linux/include/crypto/ |
| A D | ctr.h | 25 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/net/sunrpc/auth_gss/ |
| A D | gss_krb5_keys.c | 154 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 …]
|
| /linux/fs/ocfs2/ |
| A D | blockcheck.c | 146 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 D | ocfs2_fs.h | 1234 ptr += blocksize - OCFS2_QBLK_RESERVED_SPACE; in ocfs2_block_dqtrailer() 1448 return blocksize - in ocfs2_max_inline_data_with_xattr() 1452 return blocksize - in ocfs2_max_inline_data_with_xattr() 1460 size = blocksize - in ocfs2_extent_recs_per_inode() 1470 size = blocksize - in ocfs2_chain_recs_per_inode() 1480 size = blocksize - in ocfs2_extent_recs_per_eb() 1490 size = blocksize - in ocfs2_extent_recs_per_gd() 1500 size = blocksize - in ocfs2_local_alloc_size() 1530 size = blocksize - in ocfs2_truncate_recs_per_inode() 1542 offset /= blocksize; in ocfs2_backup_super_blkno() [all …]
|
| A D | blockcheck.h | 42 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/sound/pci/emu10k1/ |
| A D | emu10k1_patch.c | 33 int truesize, size, blocksize; in snd_emu10k1_sample_new() local 99 blocksize = truesize << shift; in snd_emu10k1_sample_new() 100 sp->block = snd_emu10k1_synth_alloc(emu, blocksize); in snd_emu10k1_sample_new() 103 "synth malloc failed (size=%d)\n", blocksize); in snd_emu10k1_sample_new() 108 sp->v.truesize = blocksize; in snd_emu10k1_sample_new() 140 if (offset < blocksize) in snd_emu10k1_sample_new() 141 snd_emu10k1_synth_memset(emu, sp->block, offset, blocksize - offset, fill); in snd_emu10k1_sample_new()
|
| /linux/fs/affs/ |
| A D | super.c | 201 *blocksize = -1; in parse_options() 223 *blocksize = n; in parse_options() 339 int size, blocksize; in affs_fill_super() local 373 &blocksize,&sbi->s_prefix, in affs_fill_super() 399 if (blocksize > 0) { in affs_fill_super() 400 i = j = blocksize; in affs_fill_super() 401 size = size / (blocksize / 512); in affs_fill_super() 404 for (blocksize = i; blocksize <= j; blocksize <<= 1, size >>= 1) { in affs_fill_super() 427 blocksize, size, reserved); in affs_fill_super() 514 sig, sig[3] + '0', blocksize); in affs_fill_super() [all …]
|
| /linux/drivers/bcma/ |
| A D | driver_chipcommon_sflash.c | 29 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 D | driver_chipcommon_sflash.c | 28 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/ |
| A D | buffer.c | 1819 size_t blocksize; in __block_write_full_folio() local 1837 blocksize = bh->b_size; in __block_write_full_folio() 2095 size_t blocksize; in __block_write_begin_int() local 2178 unsigned blocksize; in __block_commit_write() local 2335 if (from < blocksize && to > folio_size(folio) - blocksize) in block_is_partially_uptodate() 2370 size_t blocksize; in block_read_full_folio() local 2386 lblock = div_u64(limit + blocksize - 1, blocksize); in block_read_full_folio() 2407 blocksize); in block_read_full_folio() 2653 unsigned blocksize; in block_truncate_page() local 2681 pos = blocksize; in block_truncate_page() [all …]
|
| /linux/fs/ext4/ |
| A D | namei.c | 457 if (ext4_rec_len_from_disk(dp->rec_len, blocksize) != blocksize - 12) in get_dx_countlimit() 1343 blocksize); in dx_make_map() 1890 blocksize) - in dx_move_dirents() 2015 blocksize); in do_split() 2025 blocksize, 1)); in do_split() 2027 blocksize, 1)); in do_split() 2302 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 …]
|
| A D | move_extent.c | 173 unsigned int blocksize, block_start, block_end; in mext_page_mkuptodate() local 183 blocksize = i_blocksize(inode); in mext_page_mkuptodate() 186 head = create_empty_buffers(folio, blocksize, 0); in mext_page_mkuptodate() 193 block_end = block_start + blocksize; in mext_page_mkuptodate() 206 folio_zero_range(folio, block_start, blocksize); in mext_page_mkuptodate() 226 if (bh_offset(bh) + blocksize <= from) in mext_page_mkuptodate() 268 unsigned long blocksize = orig_inode->i_sb->s_blocksize; in move_extent_per_page() local 300 tmp_data_size = orig_inode->i_size & (blocksize - 1); in move_extent_per_page() 306 tmp_data_size = blocksize; in move_extent_per_page() 467 unsigned int blocksize = 1 << blkbits; in mext_check_arguments() local [all …]
|
| /linux/drivers/crypto/qce/ |
| A D | sha.c | 193 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 …]
|
| A D | skcipher.c | 279 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/include/uapi/linux/ |
| A D | cryptouser.h | 161 unsigned int blocksize; member 167 unsigned int blocksize; member 175 unsigned int blocksize; member 184 unsigned int blocksize; member
|
| /linux/drivers/usb/storage/ |
| A D | alauda.c | 88 unsigned int blocksize; /* number of pages per block */ member 821 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_write_lba() local 849 blocksize, blockbuffer); in alauda_write_lba() 853 memset(blockbuffer, 0, blocksize * (pagesize + 64)); in alauda_write_lba() 861 for (i = 0; i < blocksize; i++) { in alauda_write_lba() 924 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_read_data() local 938 len = min(sectors, blocksize) * (pagesize + 64); in alauda_read_data() 968 pages = min(sectors, blocksize - page); in alauda_read_data() 1018 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_write_data() local 1030 len = min(sectors, blocksize) * pagesize; in alauda_write_data() [all …]
|
| /linux/drivers/mtd/devices/ |
| A D | bcm47xxsflash.c | 81 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/drivers/crypto/ccree/ |
| A D | cc_cipher.c | 1007 .blocksize = 1, 1025 .blocksize = AES_BLOCK_SIZE, 1043 .blocksize = AES_BLOCK_SIZE, 1061 .blocksize = AES_BLOCK_SIZE, 1079 .blocksize = AES_BLOCK_SIZE, 1097 .blocksize = 1, 1119 .blocksize = 1, 1136 .blocksize = AES_BLOCK_SIZE, 1153 .blocksize = AES_BLOCK_SIZE, 1204 .blocksize = 1, [all …]
|
| /linux/drivers/crypto/marvell/cesa/ |
| A D | hash.c | 846 unsigned int blocksize; in mv_cesa_ahash_export() local 852 memset(cache, 0, blocksize); in mv_cesa_ahash_export() 864 unsigned int blocksize; in mv_cesa_ahash_import() local 873 if (len >= blocksize) in mv_cesa_ahash_import() 1116 sg_init_one(&sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init() 1139 unsigned int blocksize) in mv_cesa_ahmac_pad_init() argument 1146 if (keylen <= blocksize) { in mv_cesa_ahmac_pad_init() 1172 memcpy(opad, ipad, blocksize); in mv_cesa_ahmac_pad_init() 1174 for (i = 0; i < blocksize; i++) { in mv_cesa_ahmac_pad_init() 1188 unsigned int blocksize; in mv_cesa_ahmac_setkey() local [all …]
|
| /linux/fs/btrfs/ |
| A D | block-rsv.h | 91 u32 blocksize); 96 u32 blocksize) in btrfs_unuse_block_rsv() argument 98 btrfs_block_rsv_add_bytes(block_rsv, blocksize, false); in btrfs_unuse_block_rsv()
|
| /linux/drivers/crypto/ccp/ |
| A D | ccp-crypto-aes.c | 245 unsigned int blocksize; member 256 .blocksize = AES_BLOCK_SIZE, 265 .blocksize = AES_BLOCK_SIZE, 274 .blocksize = 1, 283 .blocksize = 1, 310 alg->base.cra_blocksize = def->blocksize; in ccp_register_aes_alg()
|