/Linux-v4.19/fs/hfsplus/ |
D | wrapper.c | 165 u32 blocksize; in hfsplus_read_wrapper() local 169 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE); in hfsplus_read_wrapper() 170 if (!blocksize) in hfsplus_read_wrapper() 230 blocksize = be32_to_cpu(sbi->s_vhdr->blocksize); in hfsplus_read_wrapper() 235 if (blocksize < HFSPLUS_SECTOR_SIZE || ((blocksize - 1) & blocksize)) in hfsplus_read_wrapper() 237 sbi->alloc_blksz = blocksize; in hfsplus_read_wrapper() 238 sbi->alloc_blksz_shift = ilog2(blocksize); in hfsplus_read_wrapper() 239 blocksize = min_t(u32, sbi->alloc_blksz, PAGE_SIZE); in hfsplus_read_wrapper() 244 while (part_start & ((blocksize >> HFSPLUS_SECTOR_SHIFT) - 1)) in hfsplus_read_wrapper() 245 blocksize >>= 1; in hfsplus_read_wrapper() [all …]
|
/Linux-v4.19/block/partitions/ |
D | ibm.c | 67 int blocksize, in find_label() argument 93 testsect[0] = info->label_block * (blocksize >> 9); in find_label() 97 testsect[1] = (blocksize >> 9); in find_label() 98 testsect[2] = 2 * (blocksize >> 9); in find_label() 135 int blocksize, in find_vol1_partitions() argument 154 secperblk = blocksize >> 9; in find_vol1_partitions() 197 int blocksize, in find_lnx1_partitions() argument 210 secperblk = blocksize >> 9; in find_lnx1_partitions() 244 int blocksize, in find_cms1_partitions() argument 256 blocksize = label->cms.block_size; in find_cms1_partitions() [all …]
|
/Linux-v4.19/sound/pci/emu10k1/ |
D | emu10k1_patch.c | 43 int truesize, size, loopsize, blocksize; in snd_emu10k1_sample_new() local 88 blocksize = truesize; in snd_emu10k1_sample_new() 90 blocksize *= 2; in snd_emu10k1_sample_new() 91 sp->block = snd_emu10k1_synth_alloc(emu, blocksize); in snd_emu10k1_sample_new() 94 "synth malloc failed (size=%d)\n", blocksize); in snd_emu10k1_sample_new() 99 sp->v.truesize = blocksize; in snd_emu10k1_sample_new() 106 if (offset + size > blocksize) in snd_emu10k1_sample_new() 115 if (offset + size > blocksize) in snd_emu10k1_sample_new() 133 if (offset + loopsize * 2 > blocksize) in snd_emu10k1_sample_new() 139 if (offset + loopsize > blocksize) in snd_emu10k1_sample_new() [all …]
|
/Linux-v4.19/drivers/mtd/ |
D | bcm47xxpart.c | 99 uint32_t blocksize = master->erasesize; in bcm47xxpart_parse() local 109 if (blocksize < 0x1000) in bcm47xxpart_parse() 110 blocksize = 0x1000; in bcm47xxpart_parse() 125 for (offset = 0; offset <= master->size - blocksize; in bcm47xxpart_parse() 126 offset += blocksize) { in bcm47xxpart_parse() 210 trx_size = max(trx->length, last_subpart + blocksize); in bcm47xxpart_parse() 216 offset += roundup(trx_size, blocksize) - blocksize; in bcm47xxpart_parse() 232 if (offset != master->size - blocksize && in bcm47xxpart_parse() 275 master->size - blocksize, 0); in bcm47xxpart_parse()
|
/Linux-v4.19/drivers/crypto/qce/ |
D | sha.c | 153 unsigned int blocksize = in qce_ahash_export() local 162 memcpy(out_state->buffer, rctx->buf, blocksize); in qce_ahash_export() 169 memcpy(out_state->buf, rctx->buf, blocksize); in qce_ahash_export() 183 unsigned int blocksize; in qce_import_common() local 186 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_import_common() 188 memcpy(rctx->buf, buffer, blocksize); in qce_import_common() 190 if (in_count <= blocksize) { in qce_import_common() 207 rctx->buflen = (unsigned int)(in_count & (blocksize - 1)); in qce_import_common() 244 unsigned int blocksize; in qce_ahash_update() local 246 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_update() [all …]
|
D | ablkcipher.c | 265 unsigned int blocksize; member 276 .blocksize = AES_BLOCK_SIZE, 285 .blocksize = AES_BLOCK_SIZE, 294 .blocksize = AES_BLOCK_SIZE, 303 .blocksize = AES_BLOCK_SIZE, 312 .blocksize = DES_BLOCK_SIZE, 321 .blocksize = DES_BLOCK_SIZE, 330 .blocksize = DES3_EDE_BLOCK_SIZE, 339 .blocksize = DES3_EDE_BLOCK_SIZE, 363 alg->cra_blocksize = def->blocksize; in qce_ablkcipher_register_one()
|
/Linux-v4.19/fs/nilfs2/ |
D | the_nilfs.c | 227 int blocksize; in load_nilfs() local 249 blocksize = BLOCK_SIZE << le32_to_cpu(sbp[0]->s_log_block_size); in load_nilfs() 250 if (blocksize != nilfs->ns_blocksize) { in load_nilfs() 253 blocksize, nilfs->ns_blocksize); in load_nilfs() 492 struct super_block *sb, int blocksize, in nilfs_load_super_block() argument 500 sbp[0] = nilfs_read_super_block(sb, NILFS_SB_OFFSET_BYTES, blocksize, in nilfs_load_super_block() 502 sbp[1] = nilfs_read_super_block(sb, sb2off, blocksize, &sbh[1]); in nilfs_load_super_block() 511 blocksize); in nilfs_load_super_block() 515 blocksize); in nilfs_load_super_block() 544 blocksize); in nilfs_load_super_block() [all …]
|
/Linux-v4.19/fs/ocfs2/ |
D | blockcheck.c | 154 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) in ocfs2_hamming_encode_block() argument 156 return ocfs2_hamming_encode(0, data, blocksize * 8, 0); in ocfs2_hamming_encode_block() 222 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, in ocfs2_hamming_fix_block() argument 225 ocfs2_hamming_fix(data, blocksize * 8, 0, fix); in ocfs2_hamming_fix_block() 391 void ocfs2_block_check_compute(void *data, size_t blocksize, in ocfs2_block_check_compute() argument 399 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_compute() 400 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_compute() 420 int ocfs2_block_check_validate(void *data, size_t blocksize, in ocfs2_block_check_validate() argument 437 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_validate() 447 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_validate() [all …]
|
D | ocfs2_fs.h | 1270 static inline struct ocfs2_disk_dqtrailer *ocfs2_block_dqtrailer(int blocksize, in ocfs2_block_dqtrailer() argument 1274 ptr += blocksize - OCFS2_QBLK_RESERVED_SPACE; in ocfs2_block_dqtrailer() 1479 static inline int ocfs2_fast_symlink_chars(int blocksize) in ocfs2_fast_symlink_chars() argument 1481 return blocksize - offsetof(struct ocfs2_dinode, id2.i_symlink); in ocfs2_fast_symlink_chars() 1484 static inline int ocfs2_max_inline_data_with_xattr(int blocksize, in ocfs2_max_inline_data_with_xattr() argument 1488 return blocksize - in ocfs2_max_inline_data_with_xattr() 1492 return blocksize - in ocfs2_max_inline_data_with_xattr() 1496 static inline int ocfs2_extent_recs_per_inode(int blocksize) in ocfs2_extent_recs_per_inode() argument 1500 size = blocksize - in ocfs2_extent_recs_per_inode() 1506 static inline int ocfs2_chain_recs_per_inode(int blocksize) in ocfs2_chain_recs_per_inode() argument [all …]
|
D | blockcheck.h | 55 void ocfs2_block_check_compute(void *data, size_t blocksize, 57 int ocfs2_block_check_validate(void *data, size_t blocksize, 104 extern u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize); 105 extern void ocfs2_hamming_fix_block(void *data, unsigned int blocksize,
|
/Linux-v4.19/net/sunrpc/auth_gss/ |
D | gss_krb5_keys.c | 147 size_t blocksize, keybytes, keylength, n; in krb5_derive_key() local 153 blocksize = gk5e->blocksize; in krb5_derive_key() 170 inblockdata = kmalloc(blocksize, gfp_mask); in krb5_derive_key() 174 outblockdata = kmalloc(blocksize, gfp_mask); in krb5_derive_key() 183 inblock.len = blocksize; in krb5_derive_key() 186 outblock.len = blocksize; in krb5_derive_key() 235 memset(outblockdata, 0, blocksize); in krb5_derive_key() 238 memset(inblockdata, 0, blocksize); in krb5_derive_key()
|
D | gss_krb5_wrap.c | 43 gss_krb5_padding(int blocksize, int length) in gss_krb5_padding() argument 45 return blocksize - (length % blocksize); in gss_krb5_padding() 49 gss_krb5_add_padding(struct xdr_buf *buf, int offset, int blocksize) in gss_krb5_add_padding() argument 51 int padding = gss_krb5_padding(blocksize, buf->len - offset); in gss_krb5_add_padding() 66 gss_krb5_remove_padding(struct xdr_buf *buf, int blocksize) in gss_krb5_remove_padding() argument 107 if (pad > blocksize) in gss_krb5_remove_padding() 164 int blocksize = 0, plainlen; in gss_wrap_kerberos_v1() local 177 blocksize = crypto_skcipher_blocksize(kctx->enc); in gss_wrap_kerberos_v1() 178 gss_krb5_add_padding(buf, offset, blocksize); in gss_wrap_kerberos_v1() 179 BUG_ON((buf->len - offset) % blocksize); in gss_wrap_kerberos_v1() [all …]
|
/Linux-v4.19/fs/affs/ |
D | super.c | 196 int *blocksize, char **prefix, char *volume, unsigned long *mount_opts) in parse_options() argument 207 *blocksize = -1; in parse_options() 229 *blocksize = n; in parse_options() 345 int size, blocksize; in affs_fill_super() local 375 &blocksize,&sbi->s_prefix, in affs_fill_super() 401 if (blocksize > 0) { in affs_fill_super() 402 i = j = blocksize; in affs_fill_super() 403 size = size / (blocksize / 512); in affs_fill_super() 406 for (blocksize = i; blocksize <= j; blocksize <<= 1, size >>= 1) { in affs_fill_super() 410 pr_debug("setting blocksize to %d\n", blocksize); in affs_fill_super() [all …]
|
/Linux-v4.19/include/uapi/linux/ |
D | cryptouser.h | 74 unsigned int blocksize; member 80 unsigned int blocksize; member 88 unsigned int blocksize; member 97 unsigned int blocksize; member
|
/Linux-v4.19/fs/ |
D | buffer.c | 533 sector_t bblock, unsigned blocksize) in write_boundary_block() argument 535 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize); in write_boundary_block() 1512 unsigned long blocksize, unsigned long b_state) in create_empty_buffers() argument 1516 head = alloc_page_buffers(page, blocksize, true); in create_empty_buffers() 1623 static inline int block_size_bits(unsigned int blocksize) in block_size_bits() argument 1625 return ilog2(blocksize); in block_size_bits() 1675 unsigned int blocksize, bbits; in __block_write_full_page() local 1693 blocksize = bh->b_size; in __block_write_full_page() 1694 bbits = block_size_bits(blocksize); in __block_write_full_page() 1717 WARN_ON(bh->b_size != blocksize); in __block_write_full_page() [all …]
|
/Linux-v4.19/drivers/crypto/ccree/ |
D | cc_cipher.c | 806 .blocksize = AES_BLOCK_SIZE, 822 .blocksize = AES_BLOCK_SIZE, 839 .blocksize = AES_BLOCK_SIZE, 856 .blocksize = AES_BLOCK_SIZE, 872 .blocksize = AES_BLOCK_SIZE, 889 .blocksize = AES_BLOCK_SIZE, 906 .blocksize = AES_BLOCK_SIZE, 922 .blocksize = AES_BLOCK_SIZE, 939 .blocksize = AES_BLOCK_SIZE, 956 .blocksize = AES_BLOCK_SIZE, [all …]
|
/Linux-v4.19/drivers/ssb/ |
D | driver_chipcommon_sflash.c | 28 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-v4.19/drivers/bcma/ |
D | driver_chipcommon_sflash.c | 29 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-v4.19/fs/ext4/ |
D | namei.c | 262 unsigned blocksize, struct dx_hash_info *hinfo, 266 struct dx_map_entry *offsets, int count, unsigned blocksize); 267 static struct ext4_dir_entry_2* dx_pack_dirents(char *base, unsigned blocksize); 282 unsigned int blocksize) in initialize_dirent_tail() argument 286 sizeof(struct ext4_dir_entry_tail), blocksize); in initialize_dirent_tail() 505 ext4_next_entry(struct ext4_dir_entry_2 *p, unsigned long blocksize) in ext4_next_entry() argument 508 ext4_rec_len_from_disk(p->rec_len, blocksize)); in ext4_next_entry() 692 unsigned blocksize = dir->i_sb->s_blocksize; in dx_show_entries() local 710 bh->b_data, blocksize, 0); in dx_show_entries() 719 (space/bcount)*100/blocksize); in dx_show_entries() [all …]
|
D | move_extent.c | 172 unsigned int blocksize, block_start, block_end; in mext_page_mkuptodate() local 180 blocksize = i_blocksize(inode); in mext_page_mkuptodate() 182 create_empty_buffers(page, blocksize, 0); in mext_page_mkuptodate() 188 block_end = block_start + blocksize; in mext_page_mkuptodate() 203 zero_user(page, block_start, blocksize); in mext_page_mkuptodate() 256 unsigned long blocksize = orig_inode->i_sb->s_blocksize; in move_extent_per_page() local 288 tmp_data_size = orig_inode->i_size & (blocksize - 1); in move_extent_per_page() 294 tmp_data_size = blocksize; in move_extent_per_page() 453 unsigned int blocksize = 1 << blkbits; in mext_check_arguments() local 455 orig_eof = (i_size_read(orig_inode) + blocksize - 1) >> blkbits; in mext_check_arguments() [all …]
|
/Linux-v4.19/drivers/crypto/ccp/ |
D | ccp-crypto-aes.c | 265 unsigned int blocksize; member 276 .blocksize = AES_BLOCK_SIZE, 285 .blocksize = AES_BLOCK_SIZE, 294 .blocksize = AES_BLOCK_SIZE, 303 .blocksize = 1, 312 .blocksize = 1, 321 .blocksize = 1, 348 alg->cra_blocksize = def->blocksize; in ccp_register_aes_alg()
|
/Linux-v4.19/drivers/mtd/devices/ |
D | bcm47xxsflash.c | 80 if (b47s->blocksize < (64 * 1024)) in bcm47xxsflash_erase() 176 u32 mask = b47s->blocksize - 1; in bcm47xxsflash_write_at() 182 if (byte || (len < b47s->blocksize)) { in bcm47xxsflash_write_at() 198 if (byte == b47s->blocksize) in bcm47xxsflash_write_at() 260 mtd->erasesize = b47s->blocksize; in bcm47xxsflash_fill_mtd() 339 b47s->blocksize = sflash->blocksize; in bcm47xxsflash_bcma_probe()
|
/Linux-v4.19/drivers/usb/storage/ |
D | alauda.c | 87 unsigned int blocksize; /* number of pages per block */ member 430 MEDIA_INFO(us).blocksize = 1 << media_info->blockshift; in alauda_init_media() 434 MEDIA_INFO(us).blockmask = MEDIA_INFO(us).blocksize - 1; in alauda_init_media() 788 (MEDIA_INFO(us).pagesize + 64) * MEDIA_INFO(us).blocksize, in alauda_write_block() 810 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_write_lba() local 838 blocksize, blockbuffer); in alauda_write_lba() 842 memset(blockbuffer, 0, blocksize * (pagesize + 64)); in alauda_write_lba() 850 for (i = 0; i < blocksize; i++) { in alauda_write_lba() 913 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_read_data() local 927 len = min(sectors, blocksize) * (pagesize + 64); in alauda_read_data() [all …]
|
/Linux-v4.19/drivers/crypto/marvell/ |
D | hash.c | 816 unsigned int blocksize; in mv_cesa_ahash_export() local 818 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_export() 822 memset(cache, 0, blocksize); in mv_cesa_ahash_export() 834 unsigned int blocksize; in mv_cesa_ahash_import() local 842 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_import() 843 if (len >= blocksize) in mv_cesa_ahash_import() 852 cache_ptr = do_div(len, blocksize); in mv_cesa_ahash_import() 1092 void *state, unsigned int blocksize) in mv_cesa_ahmac_iv_state_init() argument 1100 sg_init_one(&sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init() 1101 ahash_request_set_crypt(req, &sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init() [all …]
|
/Linux-v4.19/include/linux/ |
D | dax.h | 70 bool __bdev_dax_supported(struct block_device *bdev, int blocksize); 71 static inline bool bdev_dax_supported(struct block_device *bdev, int blocksize) in bdev_dax_supported() argument 73 return __bdev_dax_supported(bdev, blocksize); in bdev_dax_supported() 95 int blocksize) in bdev_dax_supported() argument
|