Home
last modified time | relevance | path

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

12345

/linux/block/partitions/
H A Dibm.c108 int blocksize, in find_label() argument
132 testsect[0] = info->label_block * (blocksize >> 9); in find_label()
136 testsect[1] = (blocksize >> 9); in find_label()
137 testsect[2] = 2 * (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()
[all …]
/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()
120 for (offset = 0; offset <= master->size - blocksize; in bcm47xxpart_parse()
121 offset += blocksize) { in bcm47xxpart_parse()
205 trx_size = max(trx->length, last_subpart + blocksize); in bcm47xxpart_parse()
211 offset += roundup(trx_size, blocksize) - blocksize; in bcm47xxpart_parse()
227 if (offset != master->size - blocksize && in bcm47xxpart_parse()
235 err = mtd_read(master, offset + (blocksize / 2), 0x4, &bytes_read, in bcm47xxpart_parse()
239 offset + (blocksize / 2), err); in bcm47xxpart_parse()
[all …]
/linux/fs/nilfs2/
H A Dthe_nilfs.c209 struct nilfs_super_block *sbp, int *blocksize) in nilfs_get_blocksize() argument
219 *blocksize = BLOCK_SIZE << shift_bits; in nilfs_get_blocksize()
262 int blocksize; in load_nilfs() local
283 err = nilfs_get_blocksize(sb, sbp[0], &blocksize); in load_nilfs()
287 if (blocksize != nilfs->ns_blocksize) { in load_nilfs()
290 blocksize, nilfs->ns_blocksize); in load_nilfs()
606 struct super_block *sb, int blocksize, in nilfs_load_super_block() argument
620 sbp[0] = nilfs_read_super_block(sb, NILFS_SB_OFFSET_BYTES, blocksize, in nilfs_load_super_block()
622 sbp[1] = nilfs_read_super_block(sb, sb2off, blocksize, &sbh[1]); in nilfs_load_super_block()
631 blocksize); in nilfs_load_super_block()
[all …]
H A Drecovery.c99 unsigned int blocksize = nilfs->ns_blocksize; in nilfs_compute_checksum() local
103 BUG_ON(offset >= blocksize); in nilfs_compute_checksum()
105 size = min_t(u64, check_bytes, blocksize - offset); in nilfs_compute_checksum()
112 bh = __bread(nilfs->ns_bdev, ++start, blocksize); in nilfs_compute_checksum()
116 size = min_t(u64, check_bytes, blocksize); in nilfs_compute_checksum()
530 unsigned int blocksize = nilfs->ns_blocksize; in nilfs_recover_dsync_blocks() local
544 err = block_write_begin(inode->i_mapping, pos, blocksize, in nilfs_recover_dsync_blocks()
549 if (pos + blocksize > isize) in nilfs_recover_dsync_blocks()
551 pos + blocksize); in nilfs_recover_dsync_blocks()
563 block_write_end(pos, blocksize, blocksize, folio); in nilfs_recover_dsync_blocks()
/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_keys.c154 size_t blocksize, keybytes, keylength, n; in krb5_DK() local
169 blocksize = crypto_sync_skcipher_blocksize(cipher); in krb5_DK()
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()
[all …]
H A Dgss_krb5_crypto.c481 u32 blocksize, nbytes, nblocks, cbcbytes; in krb5_cbc_cts_encrypt() local
485 blocksize = crypto_sync_skcipher_blocksize(cts_tfm); in krb5_cbc_cts_encrypt()
487 nblocks = (nbytes + blocksize - 1) / blocksize; in krb5_cbc_cts_encrypt()
490 cbcbytes = (nblocks - 2) * blocksize; in krb5_cbc_cts_encrypt()
545 u32 blocksize, nblocks, cbcbytes; in krb5_cbc_cts_decrypt() local
549 blocksize = crypto_sync_skcipher_blocksize(cts_tfm); in krb5_cbc_cts_decrypt()
550 nblocks = (buf->len + blocksize - 1) / blocksize; in krb5_cbc_cts_decrypt()
553 cbcbytes = (nblocks - 2) * blocksize; in krb5_cbc_cts_decrypt()
/linux/fs/ocfs2/
H A Dblockcheck.c144 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) in ocfs2_hamming_encode_block() argument
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()
[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,
/linux/sound/pci/emu10k1/
H A Demu10k1_patch.c33 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/
H A Dsuper.c173 int blocksize; /* Initial device blksize */ member
218 ctx->blocksize = n; in affs_parse_param()
314 int size, blocksize; in affs_fill_super() local
365 blocksize = ctx->blocksize; in affs_fill_super()
366 if (blocksize > 0) { in affs_fill_super()
367 i = j = blocksize; in affs_fill_super()
368 size = size / (blocksize / 512); in affs_fill_super()
371 for (blocksize = i; blocksize <= j; blocksize <<= 1, size >>= 1) { in affs_fill_super()
375 pr_debug("setting blocksize to %d\n", blocksize); in affs_fill_super()
376 affs_set_blocksize(sb, blocksize); in affs_fill_super()
[all …]
/linux/fs/
H A Dbuffer.c663 sector_t bblock, unsigned blocksize) in write_boundary_block() argument
667 bh = __find_get_block_nonatomic(bdev, bblock + 1, blocksize); in write_boundary_block()
1683 unsigned long blocksize, unsigned long b_state) in create_empty_buffers() argument
1688 head = folio_alloc_buffers(folio, blocksize, gfp); in create_empty_buffers()
1840 size_t blocksize; in __block_write_full_folio() local
1858 blocksize = bh->b_size; in __block_write_full_folio()
1860 block = div_u64(folio_pos(folio), blocksize); in __block_write_full_folio()
1861 last_block = div_u64(i_size_read(inode) - 1, blocksize); in __block_write_full_folio()
1881 WARN_ON(bh->b_size != blocksize); in __block_write_full_folio()
2116 size_t blocksize; in __block_write_begin_int() local
[all …]
/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()
/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()
/linux/drivers/crypto/qce/
H A Dsha.c193 unsigned int blocksize; in qce_ahash_update() local
195 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_update()
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
343 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_hmac_setkey()
346 if (keylen <= blocksize) { in qce_ahash_hmac_setkey()
408 unsigned int blocksize; member
419 .blocksize = SHA1_BLOCK_SIZE,
[all …]
H A Dskcipher.c262 unsigned int blocksize = crypto_skcipher_blocksize(tfm); in qce_skcipher_crypt() local
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,
[all …]
H A Daead.c508 unsigned int blocksize = crypto_aead_blocksize(tfm); in qce_aead_crypt() local
544 if (IS_CBC(rctx->flags) && !IS_ALIGNED(rctx->cryptlen, blocksize)) in qce_aead_crypt()
694 unsigned int blocksize; member
705 .blocksize = DES_BLOCK_SIZE,
713 .blocksize = DES3_EDE_BLOCK_SIZE,
721 .blocksize = DES_BLOCK_SIZE,
729 .blocksize = DES3_EDE_BLOCK_SIZE,
737 .blocksize = AES_BLOCK_SIZE,
745 .blocksize = 1,
753 .blocksize = 1,
[all …]
/linux/drivers/usb/storage/
H A Dalauda.c88 unsigned int blocksize; /* number of pages per block */ member
434 MEDIA_INFO(us).blocksize = 1 << media_info->blockshift; in alauda_init_media()
438 MEDIA_INFO(us).blockmask = MEDIA_INFO(us).blocksize - 1; in alauda_init_media()
799 (MEDIA_INFO(us).pagesize + 64) * MEDIA_INFO(us).blocksize, in alauda_write_block()
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()
[all …]
H A Dsddr55.c91 int blocksize; /* Size of block in pages */ member
209 len = min_t(unsigned int, sectors, info->blocksize >> in sddr55_read_data()
228 info->blocksize - page); in sddr55_read_data()
336 len = min_t(unsigned int, sectors, info->blocksize >> in sddr55_write_data()
355 info->blocksize - page); in sddr55_write_data()
584 info->blocksize = 16; in sddr55_get_capacity()
616 info->blocksize = 32; in sddr55_get_capacity()
622 info->blocksize = 32; in sddr55_get_capacity()
628 info->blocksize = 32; in sddr55_get_capacity()
634 info->blocksize = 32; in sddr55_get_capacity()
/linux/drivers/mtd/devices/
H 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/fs/ext4/
H A Dmove_extent.c122 unsigned int blocksize, block_start, block_end; in mext_folio_mkuptodate() local
132 blocksize = i_blocksize(inode); in mext_folio_mkuptodate()
135 head = create_empty_buffers(folio, blocksize, 0); in mext_folio_mkuptodate()
142 block_end = block_start + blocksize; in mext_folio_mkuptodate()
155 folio_zero_range(folio, block_start, blocksize); in mext_folio_mkuptodate()
175 if (bh_offset(bh) + blocksize <= from) in mext_folio_mkuptodate()
266 unsigned int blocksize = i_blocksize(inode); in mext_folio_mkwrite() local
274 head = create_empty_buffers(folio, blocksize, 0); in mext_folio_mkwrite()
281 block_end = block_start + blocksize; in mext_folio_mkwrite()
/linux/drivers/crypto/caam/
H A Dcaamhash.c429 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() local
437 if (keylen > blocksize) { in ahash_setkey()
830 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_ctx()
837 *next_buflen = in_len & (blocksize - 1); in ahash_update_ctx()
845 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_ctx()
847 *next_buflen = blocksize; in ahash_update_ctx()
848 to_hash -= blocksize; in ahash_update_ctx()
1206 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_no_ctx()
1213 *next_buflen = in_len & (blocksize - 1); in ahash_update_no_ctx()
1221 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize in ahash_update_no_ctx()
829 int blocksize = crypto_ahash_blocksize(ahash); ahash_update_ctx() local
1205 int blocksize = crypto_ahash_blocksize(ahash); ahash_update_no_ctx() local
1403 int blocksize = crypto_ahash_blocksize(ahash); ahash_update_first() local
1580 unsigned int blocksize; global() member
[all...]
/linux/drivers/crypto/ccp/
H A Dccp-crypto-aes.c246 unsigned int blocksize; member
257 .blocksize = AES_BLOCK_SIZE,
266 .blocksize = AES_BLOCK_SIZE,
275 .blocksize = 1,
284 .blocksize = 1,
311 alg->base.cra_blocksize = def->blocksize; in ccp_register_aes_alg()
H A Dccp-crypto-des3.c152 unsigned int blocksize; member
163 .blocksize = DES3_EDE_BLOCK_SIZE,
172 .blocksize = DES3_EDE_BLOCK_SIZE,
199 alg->base.cra_blocksize = def->blocksize; in ccp_register_des3_alg()
/linux/fs/adfs/
H A Dsuper.c262 unsigned int blocksize = BLOCK_SIZE; in adfs_probe() local
267 if (sb->s_blocksize != blocksize && in adfs_probe()
268 !sb_set_blocksize(sb, blocksize)) { in adfs_probe()
292 blocksize = 1 << dr->log2secsize; in adfs_probe()
293 if (sb->s_blocksize == blocksize) { in adfs_probe()
/linux/fs/btrfs/
H A Dblock-rsv.c499 u32 blocksize) in btrfs_use_block_rsv() argument
512 ret = btrfs_block_rsv_use_bytes(block_rsv, blocksize); in btrfs_use_block_rsv()
540 ret = btrfs_reserve_metadata_bytes(block_rsv->space_info, blocksize, in btrfs_use_block_rsv()
551 ret = btrfs_block_rsv_use_bytes(global_rsv, blocksize); in btrfs_use_block_rsv()
562 ret = btrfs_reserve_metadata_bytes(block_rsv->space_info, blocksize, in btrfs_use_block_rsv()

12345