Searched refs:blocksize (Results 1 - 25 of 154) sorted by relevance

1234567

/linux-master/include/crypto/
H A Dctr.h25 int blocksize = crypto_skcipher_chunksize(tfm); local
30 /* avoid integer division due to variable blocksize parameter */
31 if (WARN_ON_ONCE(!is_power_of_2(blocksize)))
43 tail = walk.nbytes & (blocksize - 1);
48 int bsize = min(nbytes, blocksize);
53 crypto_inc(walk.iv, blocksize);
/linux-master/fs/ocfs2/
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,
H A Dblockcheck.c144 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) argument
146 return ocfs2_hamming_encode(0, data, blocksize * 8, 0);
212 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, argument
215 ocfs2_hamming_fix(data, blocksize * 8, 0, fix);
349 void ocfs2_block_check_compute(void *data, size_t blocksize, argument
357 crc = crc32_le(~0, data, blocksize);
358 ecc = ocfs2_hamming_encode_block(data, blocksize);
378 int ocfs2_block_check_validate(void *data, size_t blocksize, argument
395 crc = crc32_le(~0, data, blocksize);
405 ecc = ocfs2_hamming_encode_block(data, blocksize);
[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,
533 * 255 * sizeof(__le16) == 512B, within the 512B block minimum blocksize.
624 * our smallest blocksize, which is 512 bytes. To ensure this,
626 * will not be available on the smallest blocksize.
1229 static inline struct ocfs2_disk_dqtrailer *ocfs2_block_dqtrailer(int blocksize, argument
1233 ptr += blocksize - OCFS2_QBLK_RESERVED_SPACE;
1438 static inline int ocfs2_fast_symlink_chars(int blocksize) argument
1443 ocfs2_max_inline_data_with_xattr(int blocksize, struct ocfs2_dinode *di) argument
1455 ocfs2_extent_recs_per_inode(int blocksize) argument
1465 ocfs2_chain_recs_per_inode(int blocksize) argument
1475 ocfs2_extent_recs_per_eb(int blocksize) argument
1485 ocfs2_extent_recs_per_gd(int blocksize) argument
1495 ocfs2_local_alloc_size(int blocksize) argument
1505 ocfs2_group_bitmap_size(int blocksize, int suballocator, uint32_t feature_incompat) argument
1525 ocfs2_truncate_recs_per_inode(int blocksize) argument
1535 ocfs2_backup_super_blkno(int blocksize, int index) argument
1548 ocfs2_xattr_recs_per_xb(int blocksize) argument
[all...]
/linux-master/fs/hfsplus/
H A Dwrapper.c167 u32 blocksize; local
171 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE);
172 if (!blocksize)
231 blocksize = be32_to_cpu(sbi->s_vhdr->blocksize);
236 if (blocksize < HFSPLUS_SECTOR_SIZE || ((blocksize - 1) & blocksize))
238 sbi->alloc_blksz = blocksize;
239 sbi->alloc_blksz_shift = ilog2(blocksize);
[all...]
/linux-master/sound/pci/emu10k1/
H A Demu10k1_patch.c30 int truesize, size, blocksize; local
76 blocksize = truesize;
78 blocksize *= 2;
79 sp->block = snd_emu10k1_synth_alloc(emu, blocksize);
82 "synth malloc failed (size=%d)\n", blocksize);
87 sp->v.truesize = blocksize;
94 if (offset + size > blocksize)
103 if (offset + size > blocksize)
121 if (offset + loopsize * 2 > blocksize)
127 if (offset + loopsize > blocksize)
[all...]
/linux-master/drivers/mtd/parsers/
H A Dbcm47xxpart.c95 uint32_t blocksize = master->erasesize; local
105 if (blocksize < 0x1000)
106 blocksize = 0x1000;
121 for (offset = 0; offset <= master->size - blocksize;
122 offset += blocksize) {
206 trx_size = max(trx->length, last_subpart + blocksize);
212 offset += roundup(trx_size, blocksize) - blocksize;
228 if (offset != master->size - blocksize &&
236 err = mtd_read(master, offset + (blocksize /
[all...]
/linux-master/block/partitions/
H A Dibm.c108 int blocksize,
132 testsect[0] = info->label_block * (blocksize >> 9);
136 testsect[1] = (blocksize >> 9);
137 testsect[2] = 2 * (blocksize >> 9);
170 int blocksize,
189 secperblk = blocksize >> 9;
232 int blocksize,
245 secperblk = blocksize >> 9;
279 int blocksize,
291 blocksize
105 find_label(struct parsed_partitions *state, dasd_information2_t *info, struct hd_geometry *geo, int blocksize, sector_t *labelsect, char name[], char type[], union label_t *label) argument
168 find_vol1_partitions(struct parsed_partitions *state, struct hd_geometry *geo, int blocksize, char name[], union label_t *label) argument
230 find_lnx1_partitions(struct parsed_partitions *state, struct hd_geometry *geo, int blocksize, char name[], union label_t *label, sector_t labelsect, sector_t nr_sectors, dasd_information2_t *info) argument
277 find_cms1_partitions(struct parsed_partitions *state, struct hd_geometry *geo, int blocksize, char name[], union label_t *label, sector_t labelsect) argument
330 int blocksize, res; local
[all...]
/linux-master/include/uapi/linux/
H A Dcryptouser.h153 unsigned int blocksize; member in struct:crypto_report_hash
159 unsigned int blocksize; member in struct:crypto_report_cipher
167 unsigned int blocksize; member in struct:crypto_report_blkcipher
176 unsigned int blocksize; member in struct:crypto_report_aead
/linux-master/net/sunrpc/auth_gss/
H A Dgss_krb5_keys.c154 size_t blocksize, keybytes, keylength, n; local
169 blocksize = crypto_sync_skcipher_blocksize(cipher);
174 inblockdata = kmalloc(blocksize, gfp_mask);
178 outblockdata = kmalloc(blocksize, gfp_mask);
183 inblock.len = blocksize;
186 outblock.len = blocksize;
376 unsigned int blocksize, offset; local
395 blocksize = crypto_shash_digestsize(tfm);
396 n = (outkey->len + blocksize - 1) / blocksize;
[all...]
/linux-master/drivers/bcma/
H A Ddriver_chipcommon_sflash.c29 u32 blocksize; member in struct:bcma_sflash_tbl_e
149 sflash->blocksize = e->blocksize;
151 sflash->size = sflash->blocksize * sflash->numblocks;
154 bcma_info(bus, "Found %s serial flash (size: %dKiB, blocksize: 0x%X, blocks: %d)\n",
155 e->name, sflash->size / 1024, sflash->blocksize,
/linux-master/drivers/ssb/
H A Ddriver_chipcommon_sflash.c28 u32 blocksize; member in struct:ssb_sflash_tbl_e
149 sflash->blocksize = e->blocksize;
151 sflash->size = sflash->blocksize * sflash->numblocks;
154 pr_info("Found %s serial flash (size: %dKiB, blocksize: 0x%X, blocks: %d)\n",
155 e->name, sflash->size / 1024, e->blocksize, e->numblocks);
/linux-master/fs/affs/
H A Dsuper.c190 int *blocksize, char **prefix, char *volume, unsigned long *mount_opts)
201 *blocksize = -1;
220 pr_warn("Invalid blocksize (512, 1024, 2048, 4096 allowed)\n");
223 *blocksize = n;
339 int size, blocksize; local
373 &blocksize,&sbi->s_prefix,
392 pr_debug("initial blocksize=%d, #blocks=%d\n", 512, size);
399 if (blocksize > 0) {
400 i = j = blocksize;
401 size = size / (blocksize / 51
189 parse_options(char *options, kuid_t *uid, kgid_t *gid, int *mode, int *reserved, s32 *root, int *blocksize, char **prefix, char *volume, unsigned long *mount_opts) argument
555 int blocksize; local
[all...]
/linux-master/fs/btrfs/
H A Dblock-rsv.h91 u32 blocksize);
96 u32 blocksize)
98 btrfs_block_rsv_add_bytes(block_rsv, blocksize, false);
94 btrfs_unuse_block_rsv(struct btrfs_fs_info *fs_info, struct btrfs_block_rsv *block_rsv, u32 blocksize) argument
/linux-master/fs/nilfs2/
H A Dthe_nilfs.c199 * @blocksize: place to store block size
202 * exponent information written in @sbp and stores it in @blocksize,
209 struct nilfs_super_block *sbp, int *blocksize)
215 nilfs_err(sb, "too large filesystem blocksize: 2 ^ %u KiB",
219 *blocksize = BLOCK_SIZE << shift_bits;
255 int blocksize; local
276 err = nilfs_get_blocksize(sb, sbp[0], &blocksize);
280 if (blocksize != nilfs->ns_blocksize) {
282 "blocksize differs between two super blocks (%d != %d)",
283 blocksize, nilf
208 nilfs_get_blocksize(struct super_block *sb, struct nilfs_super_block *sbp, int *blocksize) argument
588 nilfs_load_super_block(struct the_nilfs *nilfs, struct super_block *sb, int blocksize, struct nilfs_super_block **sbpp) argument
674 int blocksize; local
[all...]
/linux-master/include/linux/ssb/
H A Dssb_driver_mips.h28 u32 blocksize; member in struct:ssb_sflash
/linux-master/drivers/crypto/qce/
H A Dsha.c193 unsigned int blocksize; local
195 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
201 if (total <= blocksize) {
220 hash_later = total % blocksize;
238 hash_later = blocksize;
246 /* here nbytes is multiple of blocksize */
337 unsigned int blocksize; local
343 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
346 if (keylen <= blocksize) {
408 unsigned int blocksize; member in struct:qce_ahash_def
[all...]
H A Dskcipher.c262 unsigned int blocksize = crypto_skcipher_blocksize(tfm); local
279 if (!IS_ALIGNED(req->cryptlen, blocksize))
353 unsigned int blocksize; member in struct:qce_skcipher_def
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-master/drivers/mtd/devices/
H A Dbcm47xxsflash.c81 if (b47s->blocksize < (64 * 1024))
177 u32 mask = b47s->blocksize - 1;
183 if (byte || (len < b47s->blocksize)) {
199 if (byte == b47s->blocksize)
261 mtd->erasesize = b47s->blocksize;
340 b47s->blocksize = sflash->blocksize;
/linux-master/fs/ext4/
H A Dnamei.c314 int count, unsigned int blocksize);
316 unsigned int blocksize);
331 unsigned int blocksize)
333 struct ext4_dir_entry_tail *t = EXT4_DIRENT_TAIL(bh->b_data, blocksize);
337 sizeof(struct ext4_dir_entry_tail), blocksize);
346 int blocksize = EXT4_BLOCK_SIZE(inode->i_sb); local
353 (blocksize - sizeof(struct ext4_dir_entry_tail)));
354 while (d < top && ext4_rec_len_from_disk(d->rec_len, blocksize))
356 ext4_rec_len_from_disk(d->rec_len, blocksize));
367 (ext4_rec_len_from_disk(t->det_rec_len, blocksize) !
330 ext4_initialize_dirent_tail(struct buffer_head *bh, unsigned int blocksize) argument
449 int blocksize = EXT4_BLOCK_SIZE(inode->i_sb); local
557 ext4_next_entry(struct ext4_dir_entry_2 *p, unsigned long blocksize) argument
744 unsigned blocksize = dir->i_sb->s_blocksize; local
1320 int blocksize = EXT4_BLOCK_SIZE(dir->i_sb); local
1914 dx_move_dirents(struct inode *dir, char *from, char *to, struct dx_map_entry *map, int count, unsigned blocksize) argument
1946 dx_pack_dirents(struct inode *dir, char *base, unsigned int blocksize) argument
1977 unsigned blocksize = dir->i_sb->s_blocksize; local
2174 unsigned int blocksize = dir->i_sb->s_blocksize; local
2236 unsigned blocksize; local
2381 unsigned blocksize; local
2668 unsigned int blocksize = dir->i_sb->s_blocksize; local
2926 ext4_init_dot_dotdot(struct inode *inode, struct ext4_dir_entry_2 *de, int blocksize, int csum_size, unsigned int parent_ino, int dotdot_real_len) argument
2961 unsigned int blocksize = dir->i_sb->s_blocksize; local
[all...]
H A Dmove_extent.c176 unsigned int blocksize, block_start, block_end; local
184 blocksize = i_blocksize(inode);
187 head = create_empty_buffers(folio, blocksize, 0);
192 block_end = block_start + blocksize;
207 folio_zero_range(folio, block_start, blocksize);
260 unsigned long blocksize = orig_inode->i_sb->s_blocksize; local
292 tmp_data_size = orig_inode->i_size & (blocksize - 1);
295 * blocksize. So we set appropriate value.
298 tmp_data_size = blocksize;
459 unsigned int blocksize local
[all...]
/linux-master/drivers/usb/storage/
H A Dalauda.c88 unsigned int blocksize; /* number of pages per block */ member in struct:alauda_media_info
432 MEDIA_INFO(us).blocksize = 1 << media_info->blockshift;
436 MEDIA_INFO(us).blockmask = MEDIA_INFO(us).blocksize - 1;
777 * (pagesize+64)*blocksize bytes in length.
796 (MEDIA_INFO(us).pagesize + 64) * MEDIA_INFO(us).blocksize,
818 unsigned int blocksize = MEDIA_INFO(us).blocksize; local
846 blocksize, blockbuffer);
850 memset(blockbuffer, 0, blocksize * (pagesize + 64));
858 for (i = 0; i < blocksize;
921 unsigned int blocksize = MEDIA_INFO(us).blocksize; local
1015 unsigned int blocksize = MEDIA_INFO(us).blocksize; local
[all...]
/linux-master/drivers/crypto/ccp/
H A Dccp-crypto-aes.c245 unsigned int blocksize; member in struct:ccp_aes_def
256 .blocksize = AES_BLOCK_SIZE,
265 .blocksize = AES_BLOCK_SIZE,
274 .blocksize = 1,
283 .blocksize = 1,
310 alg->base.cra_blocksize = def->blocksize;
/linux-master/fs/
H A Dbuffer.c232 "device %pg blocksize: %d\n",
659 sector_t bblock, unsigned blocksize)
661 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize);
1645 unsigned long blocksize, unsigned long b_state)
1650 head = folio_alloc_buffers(folio, blocksize, gfp);
1802 size_t blocksize; local
1820 blocksize = bh->b_size;
1822 block = div_u64(folio_pos(folio), blocksize);
1823 last_block = div_u64(i_size_read(inode) - 1, blocksize);
1843 WARN_ON(bh->b_size != blocksize);
658 write_boundary_block(struct block_device *bdev, sector_t bblock, unsigned blocksize) argument
1644 create_empty_buffers(struct folio *folio, unsigned long blocksize, unsigned long b_state) argument
2079 size_t blocksize; local
2163 unsigned blocksize; local
2307 unsigned block_start, block_end, blocksize; local
2353 size_t blocksize; local
2475 unsigned int blocksize = i_blocksize(inode); local
2553 unsigned int blocksize = i_blocksize(inode); local
2638 unsigned blocksize; local
[all...]
/linux-master/drivers/crypto/marvell/cesa/
H A Dhash.c846 unsigned int blocksize; local
848 blocksize = crypto_ahash_blocksize(ahash);
852 memset(cache, 0, blocksize);
864 unsigned int blocksize; local
872 blocksize = crypto_ahash_blocksize(ahash);
873 if (len >= blocksize)
882 cache_ptr = do_div(len, blocksize);
1108 void *state, unsigned int blocksize)
1116 sg_init_one(&sg, pad, blocksize);
1117 ahash_request_set_crypt(req, &sg, pad, blocksize);
1107 mv_cesa_ahmac_iv_state_init(struct ahash_request *req, u8 *pad, void *state, unsigned int blocksize) argument
1136 mv_cesa_ahmac_pad_init(struct ahash_request *req, const u8 *key, unsigned int keylen, u8 *ipad, u8 *opad, unsigned int blocksize) argument
1188 unsigned int blocksize; local
[all...]

Completed in 289 milliseconds

1234567