Home
last modified time | relevance | path

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

12345

/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 …]
/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 Docfs2_fs.h28 * blocksize of 2K, it is 4096 bytes into disk.
40 * Blocks cannot be bigger than clusters, so the maximum blocksize is the
412 on the blocksize. OCFS2's maximum
413 blocksize, 4K, requires 16 parity bits,
536 * 255 * sizeof(__le16) == 512B, within the 512B block minimum blocksize.
627 * our smallest blocksize, which is 512 bytes. To ensure this,
629 * will not be available on the smallest blocksize.
1236 static inline struct ocfs2_disk_dqtrailer *ocfs2_block_dqtrailer(int blocksize, in ocfs2_block_dqtrailer() argument
1240 ptr += blocksize - OCFS2_QBLK_RESERVED_SPACE; in ocfs2_block_dqtrailer()
1445 static inline int ocfs2_fast_symlink_chars(int blocksize) in ocfs2_fast_symlink_chars() argument
1450 ocfs2_max_inline_data_with_xattr(int blocksize,struct ocfs2_dinode * di) ocfs2_max_inline_data_with_xattr() argument
1462 ocfs2_extent_recs_per_inode(int blocksize) ocfs2_extent_recs_per_inode() argument
1472 ocfs2_chain_recs_per_inode(int blocksize) ocfs2_chain_recs_per_inode() argument
1482 ocfs2_extent_recs_per_eb(int blocksize) ocfs2_extent_recs_per_eb() argument
1492 ocfs2_extent_recs_per_gd(int blocksize) ocfs2_extent_recs_per_gd() argument
1502 ocfs2_local_alloc_size(int blocksize) ocfs2_local_alloc_size() argument
1512 ocfs2_group_bitmap_size(int blocksize,int suballocator,uint32_t feature_incompat) ocfs2_group_bitmap_size() argument
1532 ocfs2_truncate_recs_per_inode(int blocksize) ocfs2_truncate_recs_per_inode() argument
1542 ocfs2_backup_super_blkno(int blocksize,int index) ocfs2_backup_super_blkno() argument
1555 ocfs2_xattr_recs_per_xb(int blocksize) ocfs2_xattr_recs_per_xb() argument
[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/btrfs/
H A Dfs.c145 bool __attribute_const__ btrfs_supported_blocksize(u32 blocksize) in btrfs_exclop_start_try_lock()
147 /* @blocksize should be validated first. */ in btrfs_exclop_start_unlock()
148 ASSERT(is_power_of_2(blocksize) && blocksize >= BTRFS_MIN_BLOCKSIZE && in btrfs_exclop_start_unlock()
149 blocksize <= BTRFS_MAX_BLOCKSIZE); in btrfs_exclop_start_unlock()
151 if (blocksize == PAGE_SIZE || blocksize == SZ_4K || blocksize == BTRFS_MIN_BLOCKSIZE)
170 if (IS_ENABLED(CONFIG_HIGHMEM) && blocksize > PAGE_SIZE) in btrfs_exclop_balance()
73 btrfs_supported_blocksize(u32 blocksize) btrfs_supported_blocksize() argument
H A Dzlib.c74 const u32 blocksize = fs_info->sectorsize; in zlib_alloc_workspace() local
94 workspace->buf = kmalloc(blocksize, GFP_KERNEL); in zlib_alloc_workspace()
95 workspace->buf_size = blocksize; in zlib_alloc_workspace()
163 const u32 blocksize = fs_info->sectorsize; in zlib_compress_folios()
245 if (workspace->strm.total_in > blocksize * 2 && in zlib_compress_folios()
166 const u32 blocksize = fs_info->sectorsize; zlib_compress_folios() local
/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/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/fs/
H A Dbuffer.c241 "device %pg blocksize: %d\n", in __find_get_block_slow()
664 sector_t bblock, unsigned blocksize)
668 bh = __find_get_block_nonatomic(bdev, bblock + 1, blocksize); in write_boundary_block()
1684 unsigned long blocksize, unsigned long b_state)
1689 head = folio_alloc_buffers(folio, blocksize, gfp); in create_empty_buffers()
1841 size_t blocksize; in __block_write_full_folio()
1859 blocksize = bh->b_size; in __block_write_full_folio()
1861 block = div_u64(folio_pos(folio), blocksize); in __block_write_full_folio()
1862 last_block = div_u64(i_size_read(inode) - 1, blocksize); in __block_write_full_folio()
1882 WARN_ON(bh->b_size != blocksize); in __block_write_full_folio()
666 write_boundary_block(struct block_device * bdev,sector_t bblock,unsigned blocksize) write_boundary_block() argument
1686 create_empty_buffers(struct folio * folio,unsigned long blocksize,unsigned long b_state) create_empty_buffers() argument
1843 size_t blocksize; __block_write_full_folio() local
2119 size_t blocksize; __block_write_begin_int() local
2202 unsigned blocksize; block_commit_write() local
2348 unsigned block_start, block_end, blocksize; block_is_partially_uptodate() local
2394 size_t blocksize; block_read_full_folio() local
2503 unsigned int blocksize = i_blocksize(inode); cont_expand_zero() local
2580 unsigned int blocksize = i_blocksize(inode); cont_write_begin() local
2658 unsigned blocksize; block_truncate_page() local
[all...]
/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/usb/storage/
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/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()
829 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_ctx() local
836 *next_buflen = in_len & (blocksize - 1); in ahash_update_ctx()
844 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_ctx()
846 *next_buflen = blocksize; in ahash_update_ctx()
847 to_hash -= blocksize; in ahash_update_ctx()
1205 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_no_ctx() local
1212 *next_buflen = in_len & (blocksize - 1); in ahash_update_no_ctx()
1220 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_no_ctx()
[all …]
/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/arch/s390/crypto/
H A Dphmac_s390.c84 * blocksize of the used hashing sha2-algorithm function codes. The param block
87 * these are calculated based on the blocksize.
101 * cv | 224/256 | blocksize/2 | 32 | u64[8]
103 * imbl | 224/256 | blocksize/8 | 8 | u64
105 * key | 224/256 | blocksize | 96 | u8[96]
265 unsigned int blocksize; in make_clrkey_token()
274 blocksize = 64; in make_clrkey_token()
279 blocksize = 128; in make_clrkey_token()
284 token->len = blocksize; in make_clrkey_token()
286 if (clrkeylen > blocksize) { in make_clrkey_token()
261 unsigned int blocksize; make_clrkey_token() local
383 kmac_sha2_set_imbl(u8 * param,u64 buflen_lo,u64 buflen_hi,unsigned int blocksize) kmac_sha2_set_imbl() argument
[all...]
/linux/drivers/crypto/ccp/
H A Dccp-crypto-aes-galois.c191 unsigned int blocksize; member
202 .blocksize = 1,
229 alg->base.cra_blocksize = def->blocksize; in ccp_register_aes_aead()
/linux/drivers/atm/
H A Dsolos-pci.c628 int blocksize = 0; in flash_upgrade() local
636 blocksize = ATMEL_FPGA_BLOCK; in flash_upgrade()
638 blocksize = SPI_FLASH_BLOCK; in flash_upgrade()
643 blocksize = ATMEL_SOLOS_BLOCK; in flash_upgrade()
645 blocksize = SPI_FLASH_BLOCK; in flash_upgrade()
651 blocksize = ATMEL_FPGA_BLOCK; in flash_upgrade()
653 blocksize = SPI_FLASH_BLOCK; in flash_upgrade()
664 blocksize = ATMEL_SOLOS_BLOCK; in flash_upgrade()
666 blocksize = SPI_FLASH_BLOCK; in flash_upgrade()
685 numblocks = fw->size / blocksize; in flash_upgrade()
[all …]
/linux/fs/ext2/
H A Dsuper.c890 int blocksize = BLOCK_SIZE; in ext2_fill_super() local
921 blocksize = sb_min_blocksize(sb, BLOCK_SIZE); in ext2_fill_super()
922 if (!blocksize) { in ext2_fill_super()
931 if (blocksize != BLOCK_SIZE) { in ext2_fill_super()
932 logic_sb_block = (sb_block*BLOCK_SIZE) / blocksize; in ext2_fill_super()
933 offset = (sb_block*BLOCK_SIZE) % blocksize; in ext2_fill_super()
992 blocksize = BLOCK_SIZE << le32_to_cpu(sbi->s_es->s_log_block_size); in ext2_fill_super()
999 } else if (blocksize != PAGE_SIZE) { in ext2_fill_super()
1006 if (sb->s_blocksize != blocksize) { in ext2_fill_super()
1009 if (!sb_set_blocksize(sb, blocksize)) { in ext2_fill_super()
[all …]
/linux/fs/minix/
H A Dbitmap.c27 static __u32 count_free(struct buffer_head *map[], unsigned blocksize, __u32 numbits) in count_free() argument
30 unsigned blocks = DIV_ROUND_UP(numbits, blocksize * 8); in count_free()
33 unsigned words = blocksize / 2; in count_free()

12345