Home
last modified time | relevance | path

Searched refs:blocksize (Results 1 – 25 of 118) 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()
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.c200 * @blocksize: place to store block size
203 * exponent information written in @sbp and stores it in @blocksize,
209 struct nilfs_super_block *sbp, int *blocksize) in nilfs_get_blocksize()
215 nilfs_err(sb, "too large filesystem blocksize: 2 ^ %u KiB", in nilfs_get_blocksize()
219 *blocksize = BLOCK_SIZE << shift_bits; in nilfs_get_blocksize()
262 int blocksize; in load_nilfs()
283 err = nilfs_get_blocksize(sb, sbp[0], &blocksize); in load_nilfs()
287 if (blocksize != nilfs->ns_blocksize) { in load_nilfs()
289 "blocksize differs between two super blocks (%d != %d)", in load_nilfs()
290 blocksize, nilf in load_nilfs()
207 nilfs_get_blocksize(struct super_block * sb,struct nilfs_super_block * sbp,int * blocksize) nilfs_get_blocksize() argument
253 int blocksize; load_nilfs() local
593 nilfs_load_super_block(struct the_nilfs * nilfs,struct super_block * sb,int blocksize,struct nilfs_super_block ** sbpp) nilfs_load_super_block() argument
693 int blocksize; init_nilfs() local
[all...]
/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.c625 u32 blocksize, nbytes, nblocks, cbcbytes; in gss_krb5_cts_crypt()
629 blocksize = crypto_sync_skcipher_blocksize(cts_tfm); in gss_krb5_cts_crypt()
631 nblocks = (nbytes + blocksize - 1) / blocksize; in gss_krb5_cts_crypt()
634 cbcbytes = (nblocks - 2) * blocksize; in gss_krb5_cts_crypt()
689 u32 blocksize, nblocks, cbcbytes; in krb5_cbc_cts_encrypt()
693 blocksize = crypto_sync_skcipher_blocksize(cts_tfm); in krb5_cbc_cts_encrypt()
694 nblocks = (buf->len + blocksize - 1) / blocksize; in krb5_cbc_cts_encrypt()
697 cbcbytes = (nblocks - 2) * blocksize; in krb5_cbc_cts_encrypt()
680 u32 blocksize, nbytes, nblocks, cbcbytes; krb5_cbc_cts_encrypt() local
744 u32 blocksize, nblocks, cbcbytes; krb5_cbc_cts_decrypt() local
[all...]
/linux/include/crypto/
H 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/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/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/ext4/
H A Dnamei.c315 int count, unsigned int blocksize);
317 unsigned int blocksize);
332 unsigned int blocksize) in ext4_initialize_dirent_tail() argument
334 struct ext4_dir_entry_tail *t = EXT4_DIRENT_TAIL(bh->b_data, blocksize); in ext4_initialize_dirent_tail()
338 sizeof(struct ext4_dir_entry_tail), blocksize); in ext4_initialize_dirent_tail()
347 int blocksize = EXT4_BLOCK_SIZE(inode->i_sb); in get_dirent_tail() local
354 (blocksize - sizeof(struct ext4_dir_entry_tail))); in get_dirent_tail()
355 while (d < top && ext4_rec_len_from_disk(d->rec_len, blocksize)) in get_dirent_tail()
357 ext4_rec_len_from_disk(d->rec_len, blocksize)); in get_dirent_tail()
368 (ext4_rec_len_from_disk(t->det_rec_len, blocksize) != in get_dirent_tail()
[all …]
H A Dmove_extent.c173 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/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()
578 info->blocksize = 16; in sddr55_get_capacity()
610 info->blocksize = 32; 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()
/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/drivers/crypto/marvell/cesa/
H A Dhash.c846 unsigned int blocksize; in mv_cesa_ahash_export() local
848 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_export()
852 memset(cache, 0, blocksize); in mv_cesa_ahash_export()
864 unsigned int blocksize; in mv_cesa_ahash_import() local
872 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_import()
873 if (len >= blocksize) in mv_cesa_ahash_import()
882 cache_ptr = do_div(len, blocksize); in mv_cesa_ahash_import()
1108 void *state, unsigned int blocksize) in mv_cesa_ahmac_iv_state_init() argument
1116 sg_init_one(&sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init()
1117 ahash_request_set_crypt(req, &sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init()
[all …]
/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/drivers/crypto/ccp/
H A Dccp-crypto-aes.c245 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()
H A Dccp-crypto-des3.c151 unsigned int blocksize; member
162 .blocksize = DES3_EDE_BLOCK_SIZE,
171 .blocksize = DES3_EDE_BLOCK_SIZE,
198 alg->base.cra_blocksize = def->blocksize; in ccp_register_des3_alg()
/linux/fs/btrfs/
H A Dblock-rsv.h91 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()
H A Dblock-rsv.c481 u32 blocksize) in btrfs_use_block_rsv() argument
494 ret = btrfs_block_rsv_use_bytes(block_rsv, blocksize); in btrfs_use_block_rsv()
523 blocksize, BTRFS_RESERVE_NO_FLUSH); in btrfs_use_block_rsv()
533 ret = btrfs_block_rsv_use_bytes(global_rsv, blocksize); in btrfs_use_block_rsv()
544 ret = btrfs_reserve_metadata_bytes(fs_info, block_rsv->space_info, blocksize, in btrfs_use_block_rsv()
/linux/fs/ntfs3/
H A Dfsntfs.c850 u32 blocksize, bytes; in ntfs_update_mftmirr() local
860 blocksize = sb->s_blocksize; in ntfs_update_mftmirr()
865 for (; bytes >= blocksize; bytes -= blocksize) { in ntfs_update_mftmirr()
882 memcpy(bh2->b_data, bh1->b_data, blocksize); in ntfs_update_mftmirr()
1041 u32 blocksize = sb->s_blocksize; in ntfs_sb_read() local
1043 u32 off = lbo & (blocksize - 1); in ntfs_sb_read()
1044 u32 op = blocksize - off; in ntfs_sb_read()
1046 for (; bytes; block += 1, off = 0, op = blocksize) { in ntfs_sb_read()
1047 struct buffer_head *bh = __bread(bdev, block, blocksize); in ntfs_sb_read()
1069 u32 blocksize = sb->s_blocksize; in ntfs_sb_write() local
[all …]
/linux/fs/ext2/
H A Dsuper.c816 int blocksize = BLOCK_SIZE; in ext2_fill_super() local
848 blocksize = sb_min_blocksize(sb, BLOCK_SIZE); in ext2_fill_super()
849 if (!blocksize) { in ext2_fill_super()
858 if (blocksize != BLOCK_SIZE) { in ext2_fill_super()
859 logic_sb_block = (sb_block*BLOCK_SIZE) / blocksize; in ext2_fill_super()
860 offset = (sb_block*BLOCK_SIZE) % blocksize; in ext2_fill_super()
954 blocksize = BLOCK_SIZE << le32_to_cpu(sbi->s_es->s_log_block_size); in ext2_fill_super()
961 } else if (blocksize != PAGE_SIZE) { in ext2_fill_super()
968 if (sb->s_blocksize != blocksize) { in ext2_fill_super()
971 if (!sb_set_blocksize(sb, blocksize)) { in ext2_fill_super()
[all …]
/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 …]

12345