Home
last modified time | relevance | path

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

1234567

/linux/fs/hfsplus/
H A Dwrapper.c139 u32 blocksize; in hfsplus_read_wrapper() local
143 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE); in hfsplus_read_wrapper()
144 if (!blocksize) in hfsplus_read_wrapper()
147 sbi->min_io_size = blocksize; in hfsplus_read_wrapper()
205 blocksize = be32_to_cpu(sbi->s_vhdr->blocksize); in hfsplus_read_wrapper()
210 if (blocksize < HFSPLUS_SECTOR_SIZE || ((blocksize - 1) & blocksize)) in hfsplus_read_wrapper()
212 sbi->alloc_blksz = blocksize; in hfsplus_read_wrapper()
[all...]
/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 in find_cms1_partitions()
330 int blocksize, res; ibm_partition() local
[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 / 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() argument
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() local
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()
606 nilfs_load_super_block(struct the_nilfs * nilfs,struct super_block * sb,int blocksize,struct nilfs_super_block ** sbpp) nilfs_load_super_block() argument
705 int blocksize; init_nilfs() local
[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, blocksiz in nilfs_recover_dsync_blocks()
[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()
[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()
[all...]
/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/fs/affs/
H A Dsuper.c173 int blocksize; /* Initial device blksize */ member
215 pr_warn("Invalid blocksize (512, 1024, 2048, 4096 allowed)\n"); in affs_parse_param()
218 ctx->blocksize = n; in affs_parse_param()
314 int size, blocksize; in affs_fill_super() local
358 pr_debug("initial blocksize=%d, #blocks=%d\n", 512, size); in affs_fill_super()
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 / 51 in affs_fill_super()
[all...]
/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()
154 bcma_info(bus, "Found %s serial flash (size: %dKiB, blocksize: 0x%X, blocks: %d)\n", in bcma_sflash_init()
155 e->name, sflash->size / 1024, sflash->blocksize, in bcma_sflash_init()
/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()
154 pr_info("Found %s serial flash (size: %dKiB, blocksize: 0x%X, blocks: %d)\n", in ssb_sflash_init()
155 e->name, sflash->size / 1024, e->blocksize, e->numblocks); in ssb_sflash_init()
/linux/fs/
H A Dbuffer.c240 "device %pg blocksize: %d\n", in __find_get_block_slow()
666 sector_t bblock, unsigned blocksize) in write_boundary_block() argument
670 bh = __find_get_block_nonatomic(bdev, bblock + 1, blocksize); in write_boundary_block()
1686 unsigned long blocksize, unsigned long b_state) in create_empty_buffers() argument
1691 head = folio_alloc_buffers(folio, blocksize, gfp); in create_empty_buffers()
1843 size_t blocksize; in __block_write_full_folio() local
1861 blocksize = bh->b_size; in __block_write_full_folio()
1863 block = div_u64(folio_pos(folio), blocksize); in __block_write_full_folio()
1864 last_block = div_u64(i_size_read(inode) - 1, blocksize); in __block_write_full_folio()
1884 WARN_ON(bh->b_size != blocksize); in __block_write_full_folio()
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/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()
246 /* here nbytes is multiple of 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
[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
[all...]
/linux/fs/ext4/
H A Dnamei.c302 unsigned int blocksize) in ext4_initialize_dirent_tail() argument
304 struct ext4_dir_entry_tail *t = EXT4_DIRENT_TAIL(bh->b_data, blocksize); in ext4_initialize_dirent_tail()
308 sizeof(struct ext4_dir_entry_tail), blocksize); in ext4_initialize_dirent_tail()
317 int blocksize = EXT4_BLOCK_SIZE(inode->i_sb); in get_dirent_tail() local
324 (blocksize - sizeof(struct ext4_dir_entry_tail))); in get_dirent_tail()
325 while (d < top && ext4_rec_len_from_disk(d->rec_len, blocksize)) in get_dirent_tail()
327 ext4_rec_len_from_disk(d->rec_len, blocksize)); in get_dirent_tail()
338 (ext4_rec_len_from_disk(t->det_rec_len, blocksize) != in get_dirent_tail()
419 int blocksize = EXT4_BLOCK_SIZE(inode->i_sb); in get_dx_countlimit() local
420 unsigned int rlen = ext4_rec_len_from_disk(dirent->rec_len, blocksize); in get_dx_countlimit()
526 ext4_next_entry(struct ext4_dir_entry_2 * p,unsigned long blocksize) ext4_next_entry() argument
713 unsigned blocksize = dir->i_sb->s_blocksize; dx_show_entries() local
1289 int blocksize = EXT4_BLOCK_SIZE(dir->i_sb); dx_make_map() local
1848 dx_move_dirents(struct inode * dir,char * from,char * to,struct dx_map_entry * map,int count,unsigned blocksize) dx_move_dirents() argument
1879 dx_pack_dirents(struct inode * dir,char * base,unsigned int blocksize) dx_pack_dirents() argument
1909 unsigned blocksize = dir->i_sb->s_blocksize; do_split() local
2115 unsigned int blocksize = dir->i_sb->s_blocksize; add_dirent_to_buf() local
2166 unsigned int blocksize = dir->i_sb->s_blocksize; ext4_check_dx_root() local
2223 unsigned blocksize; make_indexed_dir() local
2368 unsigned blocksize; ext4_add_entry() local
2660 unsigned int blocksize = dir->i_sb->s_blocksize; ext4_generic_delete_entry() local
2923 size_t blocksize = bh->b_size; ext4_init_dirblock() local
[all...]
/linux/include/uapi/linux/
H A Dcryptouser.h162 unsigned int blocksize; member
168 unsigned int blocksize; member
176 unsigned int blocksize; member
185 unsigned int blocksize; member
/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()
780 * (pagesize+64)*blocksize bytes in length.
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; in alauda_write_lba()
924 unsigned int blocksize = MEDIA_INFO(us).blocksize; alauda_read_data() local
1018 unsigned int blocksize = MEDIA_INFO(us).blocksize; alauda_write_data() local
[all...]
H A Dsddr55.c91 int blocksize; /* Size of block in pages */ member
92 int blockshift; /* log2 of blocksize */
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 in sddr55_get_capacity()
[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/drivers/crypto/ccree/
H A Dcc_cipher.c1007 .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,
1170 .blocksize
[all...]
/linux/drivers/crypto/marvell/cesa/
H A Dhash.c844 unsigned int blocksize; in mv_cesa_ahash_export() local
846 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_export()
850 memset(cache, 0, blocksize); in mv_cesa_ahash_export()
862 unsigned int blocksize; in mv_cesa_ahash_import() local
870 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_import()
871 if (len >= blocksize) in mv_cesa_ahash_import()
880 cache_ptr = do_div(len, blocksize); in mv_cesa_ahash_import()
1106 void *state, unsigned int blocksize) in mv_cesa_ahmac_iv_state_init() argument
1114 sg_init_one(&sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init()
1115 ahash_request_set_crypt(req, &sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init()
1137 mv_cesa_ahmac_pad_init(struct ahash_request * req,const u8 * key,unsigned int keylen,u8 * ipad,u8 * opad,unsigned int blocksize) mv_cesa_ahmac_pad_init() argument
1186 unsigned int blocksize; mv_cesa_ahmac_setkey() local
[all...]
/linux/fs/btrfs/
H A Dblock-rsv.h92 u32 blocksize);
97 u32 blocksize) in btrfs_unuse_block_rsv() argument
99 btrfs_block_rsv_add_bytes(block_rsv, blocksize, false); in btrfs_unuse_block_rsv()
/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()
/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()
1403 int blocksize = crypto_ahash_blocksize(ahash); ahash_update_first() local
1580 unsigned int blocksize; global() member
[all...]

1234567