Home
last modified time | relevance | path

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

1234567

/Linux-v5.4/fs/hfsplus/
Dwrapper.c165 u32 blocksize; in hfsplus_read_wrapper() local
169 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE); in hfsplus_read_wrapper()
170 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()
244 while (part_start & ((blocksize >> HFSPLUS_SECTOR_SHIFT) - 1)) in hfsplus_read_wrapper()
245 blocksize >>= 1; in hfsplus_read_wrapper()
[all …]
/Linux-v5.4/block/partitions/
Dibm.c67 int blocksize, in find_label() argument
93 testsect[0] = info->label_block * (blocksize >> 9); in find_label()
97 testsect[1] = (blocksize >> 9); in find_label()
98 testsect[2] = 2 * (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()
[all …]
/Linux-v5.4/sound/pci/emu10k1/
Demu10k1_patch.c30 int truesize, size, loopsize, blocksize; in snd_emu10k1_sample_new() local
75 blocksize = truesize; in snd_emu10k1_sample_new()
77 blocksize *= 2; in snd_emu10k1_sample_new()
78 sp->block = snd_emu10k1_synth_alloc(emu, blocksize); in snd_emu10k1_sample_new()
81 "synth malloc failed (size=%d)\n", blocksize); in snd_emu10k1_sample_new()
86 sp->v.truesize = blocksize; in snd_emu10k1_sample_new()
93 if (offset + size > blocksize) in snd_emu10k1_sample_new()
102 if (offset + size > blocksize) in snd_emu10k1_sample_new()
120 if (offset + loopsize * 2 > blocksize) in snd_emu10k1_sample_new()
126 if (offset + loopsize > blocksize) in snd_emu10k1_sample_new()
[all …]
/Linux-v5.4/drivers/mtd/parsers/
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-v5.4/drivers/crypto/qce/
Dsha.c145 unsigned int blocksize = in qce_ahash_export() local
154 memcpy(out_state->buffer, rctx->buf, blocksize); in qce_ahash_export()
161 memcpy(out_state->buf, rctx->buf, blocksize); in qce_ahash_export()
175 unsigned int blocksize; in qce_import_common() local
178 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_import_common()
180 memcpy(rctx->buf, buffer, blocksize); in qce_import_common()
182 if (in_count <= blocksize) { in qce_import_common()
199 rctx->buflen = (unsigned int)(in_count & (blocksize - 1)); in qce_import_common()
236 unsigned int blocksize; in qce_ahash_update() local
238 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_update()
[all …]
Dablkcipher.c273 unsigned int blocksize; member
284 .blocksize = AES_BLOCK_SIZE,
293 .blocksize = AES_BLOCK_SIZE,
302 .blocksize = AES_BLOCK_SIZE,
311 .blocksize = AES_BLOCK_SIZE,
320 .blocksize = DES_BLOCK_SIZE,
329 .blocksize = DES_BLOCK_SIZE,
338 .blocksize = DES3_EDE_BLOCK_SIZE,
347 .blocksize = DES3_EDE_BLOCK_SIZE,
371 alg->cra_blocksize = def->blocksize; in qce_ablkcipher_register_one()
/Linux-v5.4/include/crypto/
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-v5.4/fs/nilfs2/
Dthe_nilfs.c227 int blocksize; in load_nilfs() local
249 blocksize = BLOCK_SIZE << le32_to_cpu(sbp[0]->s_log_block_size); in load_nilfs()
250 if (blocksize != nilfs->ns_blocksize) { in load_nilfs()
253 blocksize, nilfs->ns_blocksize); in load_nilfs()
492 struct super_block *sb, int blocksize, in nilfs_load_super_block() argument
500 sbp[0] = nilfs_read_super_block(sb, NILFS_SB_OFFSET_BYTES, blocksize, in nilfs_load_super_block()
502 sbp[1] = nilfs_read_super_block(sb, sb2off, blocksize, &sbh[1]); in nilfs_load_super_block()
511 blocksize); in nilfs_load_super_block()
515 blocksize); in nilfs_load_super_block()
544 blocksize); in nilfs_load_super_block()
[all …]
/Linux-v5.4/include/linux/
Ddax.h115 bool __bdev_dax_supported(struct block_device *bdev, int blocksize);
116 static inline bool bdev_dax_supported(struct block_device *bdev, int blocksize) in bdev_dax_supported() argument
118 return __bdev_dax_supported(bdev, blocksize); in bdev_dax_supported()
122 struct block_device *bdev, int blocksize, sector_t start,
125 struct block_device *bdev, int blocksize, sector_t start, in generic_fsdax_supported() argument
128 return __generic_fsdax_supported(dax_dev, bdev, blocksize, start, in generic_fsdax_supported()
151 int blocksize) in bdev_dax_supported() argument
157 struct block_device *bdev, int blocksize, sector_t start, in generic_fsdax_supported() argument
207 int blocksize, sector_t start, sector_t len);
/Linux-v5.4/fs/ocfs2/
Dblockcheck.c146 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) in ocfs2_hamming_encode_block() argument
148 return ocfs2_hamming_encode(0, data, blocksize * 8, 0); in ocfs2_hamming_encode_block()
214 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, in ocfs2_hamming_fix_block() argument
217 ocfs2_hamming_fix(data, blocksize * 8, 0, fix); in ocfs2_hamming_fix_block()
351 void ocfs2_block_check_compute(void *data, size_t blocksize, in ocfs2_block_check_compute() argument
359 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_compute()
360 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_compute()
380 int ocfs2_block_check_validate(void *data, size_t blocksize, in ocfs2_block_check_validate() argument
397 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_validate()
407 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_validate()
[all …]
Docfs2_fs.h1231 static inline struct ocfs2_disk_dqtrailer *ocfs2_block_dqtrailer(int blocksize, in ocfs2_block_dqtrailer() argument
1235 ptr += blocksize - OCFS2_QBLK_RESERVED_SPACE; in ocfs2_block_dqtrailer()
1440 static inline int ocfs2_fast_symlink_chars(int blocksize) in ocfs2_fast_symlink_chars() argument
1442 return blocksize - offsetof(struct ocfs2_dinode, id2.i_symlink); in ocfs2_fast_symlink_chars()
1445 static inline int ocfs2_max_inline_data_with_xattr(int blocksize, in ocfs2_max_inline_data_with_xattr() argument
1449 return blocksize - in ocfs2_max_inline_data_with_xattr()
1453 return blocksize - in ocfs2_max_inline_data_with_xattr()
1457 static inline int ocfs2_extent_recs_per_inode(int blocksize) in ocfs2_extent_recs_per_inode() argument
1461 size = blocksize - in ocfs2_extent_recs_per_inode()
1467 static inline int ocfs2_chain_recs_per_inode(int blocksize) in ocfs2_chain_recs_per_inode() argument
[all …]
Dblockcheck.h44 void ocfs2_block_check_compute(void *data, size_t blocksize,
46 int ocfs2_block_check_validate(void *data, size_t blocksize,
93 extern u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize);
94 extern void ocfs2_hamming_fix_block(void *data, unsigned int blocksize,
/Linux-v5.4/fs/affs/
Dsuper.c191 int *blocksize, char **prefix, char *volume, unsigned long *mount_opts) in parse_options() argument
202 *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()
409 pr_debug("setting blocksize to %d\n", blocksize); in affs_fill_super()
[all …]
/Linux-v5.4/drivers/crypto/ccree/
Dcc_cipher.c937 .blocksize = 1,
955 .blocksize = 1,
974 .blocksize = 1,
993 .blocksize = AES_BLOCK_SIZE,
1011 .blocksize = AES_BLOCK_SIZE,
1030 .blocksize = AES_BLOCK_SIZE,
1049 .blocksize = AES_BLOCK_SIZE,
1067 .blocksize = AES_BLOCK_SIZE,
1086 .blocksize = AES_BLOCK_SIZE,
1105 .blocksize = AES_BLOCK_SIZE,
[all …]
/Linux-v5.4/net/sunrpc/auth_gss/
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()
49 gss_krb5_add_padding(struct xdr_buf *buf, int offset, int blocksize) in gss_krb5_add_padding() argument
51 int padding = gss_krb5_padding(blocksize, buf->len - offset); in gss_krb5_add_padding()
66 gss_krb5_remove_padding(struct xdr_buf *buf, int blocksize) in gss_krb5_remove_padding() argument
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()
[all …]
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-v5.4/fs/
Dbuffer.c535 sector_t bblock, unsigned blocksize) in write_boundary_block() argument
537 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize); in write_boundary_block()
1514 unsigned long blocksize, unsigned long b_state) in create_empty_buffers() argument
1518 head = alloc_page_buffers(page, blocksize, true); in create_empty_buffers()
1625 static inline int block_size_bits(unsigned int blocksize) in block_size_bits() argument
1627 return ilog2(blocksize); in block_size_bits()
1677 unsigned int blocksize, bbits; in __block_write_full_page() local
1695 blocksize = bh->b_size; in __block_write_full_page()
1696 bbits = block_size_bits(blocksize); in __block_write_full_page()
1719 WARN_ON(bh->b_size != blocksize); in __block_write_full_page()
[all …]
/Linux-v5.4/drivers/bcma/
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-v5.4/drivers/ssb/
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-v5.4/fs/crypto/
Dbio.c75 const unsigned int blocksize = 1 << blockbits; in fscrypt_zeroout_range() local
87 blocksize, 0, GFP_NOFS); in fscrypt_zeroout_range()
99 ret = bio_add_page(bio, ciphertext_page, blocksize, 0); in fscrypt_zeroout_range()
100 if (WARN_ON(ret != blocksize)) { in fscrypt_zeroout_range()
Dcrypto.c225 const unsigned int blocksize = 1 << blockbits; in fscrypt_encrypt_pagecache_blocks() local
235 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_encrypt_pagecache_blocks()
242 for (i = offs; i < offs + len; i += blocksize, lblk_num++) { in fscrypt_encrypt_pagecache_blocks()
245 blocksize, i, gfp_flags); in fscrypt_encrypt_pagecache_blocks()
304 const unsigned int blocksize = 1 << blockbits; in fscrypt_decrypt_pagecache_blocks() local
313 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_decrypt_pagecache_blocks()
316 for (i = offs; i < offs + len; i += blocksize, lblk_num++) { in fscrypt_decrypt_pagecache_blocks()
318 page, blocksize, i, GFP_NOFS); in fscrypt_decrypt_pagecache_blocks()
/Linux-v5.4/include/uapi/linux/
Dcryptouser.h153 unsigned int blocksize; member
159 unsigned int blocksize; member
167 unsigned int blocksize; member
176 unsigned int blocksize; member
/Linux-v5.4/fs/ext4/
Dnamei.c277 unsigned blocksize, struct dx_hash_info *hinfo,
281 struct dx_map_entry *offsets, int count, unsigned blocksize);
282 static struct ext4_dir_entry_2* dx_pack_dirents(char *base, unsigned blocksize);
297 unsigned int blocksize) in ext4_initialize_dirent_tail() argument
299 struct ext4_dir_entry_tail *t = EXT4_DIRENT_TAIL(bh->b_data, blocksize); in ext4_initialize_dirent_tail()
303 sizeof(struct ext4_dir_entry_tail), blocksize); in ext4_initialize_dirent_tail()
521 ext4_next_entry(struct ext4_dir_entry_2 *p, unsigned long blocksize) in ext4_next_entry() argument
524 ext4_rec_len_from_disk(p->rec_len, blocksize)); in ext4_next_entry()
708 unsigned blocksize = dir->i_sb->s_blocksize; in dx_show_entries() local
726 bh->b_data, blocksize, 0); in dx_show_entries()
[all …]
/Linux-v5.4/drivers/crypto/ccp/
Dccp-crypto-aes.c261 unsigned int blocksize; member
272 .blocksize = AES_BLOCK_SIZE,
281 .blocksize = AES_BLOCK_SIZE,
290 .blocksize = 1,
299 .blocksize = 1,
308 .blocksize = 1,
317 .blocksize = 1,
344 alg->cra_blocksize = def->blocksize; in ccp_register_aes_alg()
/Linux-v5.4/drivers/usb/storage/
Dalauda.c88 unsigned int blocksize; /* number of pages per block */ member
431 MEDIA_INFO(us).blocksize = 1 << media_info->blockshift; in alauda_init_media()
435 MEDIA_INFO(us).blockmask = MEDIA_INFO(us).blocksize - 1; in alauda_init_media()
789 (MEDIA_INFO(us).pagesize + 64) * MEDIA_INFO(us).blocksize, in alauda_write_block()
811 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_write_lba() local
839 blocksize, blockbuffer); in alauda_write_lba()
843 memset(blockbuffer, 0, blocksize * (pagesize + 64)); in alauda_write_lba()
851 for (i = 0; i < blocksize; i++) { in alauda_write_lba()
914 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_read_data() local
928 len = min(sectors, blocksize) * (pagesize + 64); in alauda_read_data()
[all …]

1234567