Home
last modified time | relevance | path

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

/linux-4.4.14/fs/hfsplus/
Dwrapper.c162 u32 blocksize; in hfsplus_read_wrapper() local
166 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE); in hfsplus_read_wrapper()
167 if (!blocksize) in hfsplus_read_wrapper()
226 blocksize = be32_to_cpu(sbi->s_vhdr->blocksize); in hfsplus_read_wrapper()
231 if (blocksize < HFSPLUS_SECTOR_SIZE || ((blocksize - 1) & blocksize)) in hfsplus_read_wrapper()
233 sbi->alloc_blksz = blocksize; in hfsplus_read_wrapper()
234 sbi->alloc_blksz_shift = ilog2(blocksize); in hfsplus_read_wrapper()
235 blocksize = min_t(u32, sbi->alloc_blksz, PAGE_SIZE); in hfsplus_read_wrapper()
240 while (part_start & ((blocksize >> HFSPLUS_SECTOR_SHIFT) - 1)) in hfsplus_read_wrapper()
241 blocksize >>= 1; in hfsplus_read_wrapper()
[all …]
Dhfsplus_raw.h118 __be32 blocksize; member
/linux-4.4.14/block/partitions/
Dibm.c66 int blocksize, in find_label() argument
92 testsect[0] = info->label_block * (blocksize >> 9); in find_label()
96 testsect[1] = (blocksize >> 9); in find_label()
97 testsect[2] = 2 * (blocksize >> 9); in find_label()
134 int blocksize, in find_vol1_partitions() argument
153 secperblk = blocksize >> 9; in find_vol1_partitions()
196 int blocksize, in find_lnx1_partitions() argument
209 secperblk = blocksize >> 9; in find_lnx1_partitions()
243 int blocksize, in find_cms1_partitions() argument
255 blocksize = label->cms.block_size; in find_cms1_partitions()
[all …]
/linux-4.4.14/sound/pci/emu10k1/
Demu10k1_patch.c43 int truesize, size, loopsize, blocksize; in snd_emu10k1_sample_new() local
91 blocksize = truesize; in snd_emu10k1_sample_new()
93 blocksize *= 2; in snd_emu10k1_sample_new()
94 sp->block = snd_emu10k1_synth_alloc(emu, blocksize); in snd_emu10k1_sample_new()
97 "synth malloc failed (size=%d)\n", blocksize); in snd_emu10k1_sample_new()
102 sp->v.truesize = blocksize; in snd_emu10k1_sample_new()
109 if (offset + size > blocksize) in snd_emu10k1_sample_new()
118 if (offset + size > blocksize) in snd_emu10k1_sample_new()
136 if (offset + loopsize * 2 > blocksize) in snd_emu10k1_sample_new()
142 if (offset + loopsize > blocksize) in snd_emu10k1_sample_new()
[all …]
/linux-4.4.14/fs/nilfs2/
Dthe_nilfs.c236 int blocksize; in load_nilfs() local
259 blocksize = BLOCK_SIZE << le32_to_cpu(sbp[0]->s_log_block_size); in load_nilfs()
260 if (blocksize != nilfs->ns_blocksize) { in load_nilfs()
264 blocksize, nilfs->ns_blocksize); in load_nilfs()
497 struct super_block *sb, int blocksize, in nilfs_load_super_block() argument
505 sbp[0] = nilfs_read_super_block(sb, NILFS_SB_OFFSET_BYTES, blocksize, in nilfs_load_super_block()
507 sbp[1] = nilfs_read_super_block(sb, sb2off, blocksize, &sbh[1]); in nilfs_load_super_block()
516 "(blocksize = %d)\n", blocksize); in nilfs_load_super_block()
520 "(blocksize = %d)\n", blocksize); in nilfs_load_super_block()
549 "using spare superblock (blocksize = %d).\n", blocksize); in nilfs_load_super_block()
[all …]
Drecovery.c109 unsigned int blocksize = nilfs->ns_blocksize; in nilfs_compute_checksum() local
113 BUG_ON(offset >= blocksize); in nilfs_compute_checksum()
115 size = min_t(u64, check_bytes, blocksize - offset); in nilfs_compute_checksum()
122 bh = __bread(nilfs->ns_bdev, ++start, blocksize); in nilfs_compute_checksum()
126 size = min_t(u64, check_bytes, blocksize); in nilfs_compute_checksum()
511 unsigned blocksize = nilfs->ns_blocksize; in nilfs_recover_dsync_blocks() local
525 err = block_write_begin(inode->i_mapping, pos, blocksize, in nilfs_recover_dsync_blocks()
529 if (pos + blocksize > isize) in nilfs_recover_dsync_blocks()
531 pos + blocksize); in nilfs_recover_dsync_blocks()
543 block_write_end(NULL, inode->i_mapping, pos, blocksize, in nilfs_recover_dsync_blocks()
[all …]
Dinode.c729 unsigned int blocksize; in nilfs_truncate() local
739 blocksize = sb->s_blocksize; in nilfs_truncate()
740 blkoff = (inode->i_size + blocksize - 1) >> sb->s_blocksize_bits; in nilfs_truncate()
Dsysfs.c934 NILFS_DEV_RO_ATTR(blocksize);
943 NILFS_DEV_ATTR_LIST(blocksize),
Dsuper.c861 u64 pos, int blocksize, in nilfs_read_super_block() argument
867 offset = do_div(sb_index, blocksize); in nilfs_read_super_block()
Dsegment.c403 unsigned blocksize = sci->sc_super->s_blocksize; in nilfs_segctor_map_segsum_entry() local
406 if (unlikely(ssp->offset + bytes > blocksize)) { in nilfs_segctor_map_segsum_entry()
477 unsigned blocksize = sci->sc_super->s_blocksize; in nilfs_segctor_segsum_block_required() local
482 blocksize; in nilfs_segctor_segsum_block_required()
/linux-4.4.14/drivers/crypto/qce/
Dsha.c148 unsigned int blocksize = in qce_ahash_export() local
157 memcpy(out_state->buffer, rctx->buf, blocksize); in qce_ahash_export()
164 memcpy(out_state->buf, rctx->buf, blocksize); in qce_ahash_export()
178 unsigned int blocksize; in qce_import_common() local
181 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_import_common()
183 memcpy(rctx->buf, buffer, blocksize); in qce_import_common()
185 if (in_count <= blocksize) { in qce_import_common()
202 rctx->buflen = (unsigned int)(in_count & (blocksize - 1)); in qce_import_common()
239 unsigned int blocksize; in qce_ahash_update() local
241 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_update()
[all …]
Dablkcipher.c255 unsigned int blocksize; member
266 .blocksize = AES_BLOCK_SIZE,
275 .blocksize = AES_BLOCK_SIZE,
284 .blocksize = AES_BLOCK_SIZE,
293 .blocksize = AES_BLOCK_SIZE,
302 .blocksize = DES_BLOCK_SIZE,
311 .blocksize = DES_BLOCK_SIZE,
320 .blocksize = DES3_EDE_BLOCK_SIZE,
329 .blocksize = DES3_EDE_BLOCK_SIZE,
353 alg->cra_blocksize = def->blocksize; in qce_ablkcipher_register_one()
Dcommon.c239 unsigned int blocksize = crypto_tfm_alg_blocksize(async_req->tfm); in qce_setup_regs_ahash() local
246 if (!rctx->last_blk && req->nbytes % blocksize) in qce_setup_regs_ahash()
/linux-4.4.14/fs/affs/
Dsuper.c192 int *blocksize, char **prefix, char *volume, unsigned long *mount_opts) in parse_options() argument
203 *blocksize = -1; in parse_options()
225 *blocksize = n; in parse_options()
306 int size, blocksize; in affs_fill_super() local
338 &blocksize,&sbi->s_prefix, in affs_fill_super()
364 if (blocksize > 0) { in affs_fill_super()
365 i = j = blocksize; in affs_fill_super()
366 size = size / (blocksize / 512); in affs_fill_super()
369 for (blocksize = i; blocksize <= j; blocksize <<= 1, size >>= 1) { in affs_fill_super()
373 pr_debug("setting blocksize to %d\n", blocksize); in affs_fill_super()
[all …]
DChanges25 a multiple of the blocksize, the rest of the
144 - The original blocksize of the device is
/linux-4.4.14/net/sunrpc/auth_gss/
Dgss_krb5_wrap.c43 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_blkcipher_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 …]
Dgss_krb5_keys.c147 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()
Dgss_krb5_crypto.c651 int blocksize; in gss_krb5_aes_encrypt() local
669 blocksize = crypto_blkcipher_blocksize(cipher); in gss_krb5_aes_encrypt()
714 nblocks = (nbytes + blocksize - 1) / blocksize; in gss_krb5_aes_encrypt()
717 cbcbytes = (nblocks - 2) * blocksize; in gss_krb5_aes_encrypt()
770 int nblocks, blocksize, cbcbytes; in gss_krb5_aes_decrypt() local
785 blocksize = crypto_blkcipher_blocksize(cipher); in gss_krb5_aes_decrypt()
793 nblocks = (subbuf.len + blocksize - 1) / blocksize; in gss_krb5_aes_decrypt()
797 cbcbytes = (nblocks - 2) * blocksize; in gss_krb5_aes_decrypt()
Dgss_krb5_mech.c71 .blocksize = 8,
92 .blocksize = 1,
113 .blocksize = 8,
136 .blocksize = 16,
159 .blocksize = 16,
/linux-4.4.14/fs/ocfs2/
Dblockcheck.c154 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 …]
Docfs2_fs.h1271 static inline struct ocfs2_disk_dqtrailer *ocfs2_block_dqtrailer(int blocksize, in ocfs2_block_dqtrailer() argument
1275 ptr += blocksize - OCFS2_QBLK_RESERVED_SPACE; in ocfs2_block_dqtrailer()
1480 static inline int ocfs2_fast_symlink_chars(int blocksize) in ocfs2_fast_symlink_chars() argument
1482 return blocksize - offsetof(struct ocfs2_dinode, id2.i_symlink); in ocfs2_fast_symlink_chars()
1485 static inline int ocfs2_max_inline_data_with_xattr(int blocksize, in ocfs2_max_inline_data_with_xattr() argument
1489 return blocksize - in ocfs2_max_inline_data_with_xattr()
1493 return blocksize - in ocfs2_max_inline_data_with_xattr()
1497 static inline int ocfs2_extent_recs_per_inode(int blocksize) in ocfs2_extent_recs_per_inode() argument
1501 size = blocksize - in ocfs2_extent_recs_per_inode()
1507 static inline int ocfs2_chain_recs_per_inode(int blocksize) in ocfs2_chain_recs_per_inode() argument
[all …]
Dblockcheck.h55 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,
Ddir.h114 struct ocfs2_dir_block_trailer *ocfs2_dir_trailer_from_size(int blocksize,
Dxattr.c466 int blocksize = src->bu_inode->i_sb->s_blocksize; in ocfs2_xattr_bucket_copy_data() local
473 blocksize); in ocfs2_xattr_bucket_copy_data()
1093 size_t cplen, blocksize; in ocfs2_xattr_get_value_outside() local
1100 blocksize = inode->i_sb->s_blocksize; in ocfs2_xattr_get_value_outside()
1121 cplen = len >= blocksize ? blocksize : len; in ocfs2_xattr_get_value_outside()
1337 u16 blocksize = inode->i_sb->s_blocksize; in __ocfs2_xattr_set_value_outside() local
1378 cp_len = value_len > blocksize ? blocksize : value_len; in __ocfs2_xattr_set_value_outside()
1382 if (cp_len < blocksize) in __ocfs2_xattr_set_value_outside()
1384 blocksize - cp_len); in __ocfs2_xattr_set_value_outside()
4174 int i, blocksize = inode->i_sb->s_blocksize; in ocfs2_cp_xattr_block_to_bucket() local
[all …]
Ddir.c123 struct ocfs2_dir_block_trailer *ocfs2_dir_trailer_from_size(int blocksize, in ocfs2_dir_trailer_from_size() argument
128 p += blocksize - sizeof(struct ocfs2_dir_block_trailer); in ocfs2_dir_trailer_from_size()
3443 int blocksize = dir->i_sb->s_blocksize; in ocfs2_find_dir_space_el() local
3483 if (ocfs2_skip_dir_trailer(dir, de, offset % blocksize, in ocfs2_find_dir_space_el()
3484 blocksize)) in ocfs2_find_dir_space_el()
Daops.c435 unsigned blocksize = head->b_size; in walk_page_buffers() local
444 block_end = block_start + blocksize; in walk_page_buffers()
Dalloc.c6809 unsigned int blocksize = 1 << inode->i_sb->s_blocksize_bits; in ocfs2_zero_dinode_id2_with_xattr() local
6813 memset(&di->id2, 0, blocksize - in ocfs2_zero_dinode_id2_with_xattr()
6817 memset(&di->id2, 0, blocksize - in ocfs2_zero_dinode_id2_with_xattr()
/linux-4.4.14/drivers/mtd/
Dbcm47xxpart.c93 uint32_t blocksize = master->erasesize; in bcm47xxpart_parse() local
103 if (blocksize < 0x1000) in bcm47xxpart_parse()
104 blocksize = 0x1000; in bcm47xxpart_parse()
119 for (offset = 0; offset <= master->size - blocksize; in bcm47xxpart_parse()
120 offset += blocksize) { in bcm47xxpart_parse()
233 offset = rounddown(offset + trx->length, blocksize); in bcm47xxpart_parse()
249 if (offset != master->size - blocksize && in bcm47xxpart_parse()
290 master->size - blocksize, 0); in bcm47xxpart_parse()
/linux-4.4.14/include/uapi/linux/
Dcryptouser.h69 unsigned int blocksize; member
75 unsigned int blocksize; member
83 unsigned int blocksize; member
92 unsigned int blocksize; member
Dfuse.h620 uint32_t blocksize; member
/linux-4.4.14/drivers/ssb/
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-4.4.14/fs/
Dbuffer.c593 sector_t bblock, unsigned blocksize) in write_boundary_block() argument
595 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize); in write_boundary_block()
1589 unsigned long blocksize, unsigned long b_state) in create_empty_buffers() argument
1593 head = alloc_page_buffers(page, blocksize, 1); in create_empty_buffers()
1658 static inline int block_size_bits(unsigned int blocksize) in block_size_bits() argument
1660 return ilog2(blocksize); in block_size_bits()
1709 unsigned int blocksize, bbits; in __block_write_full_page() local
1727 blocksize = bh->b_size; in __block_write_full_page()
1728 bbits = block_size_bits(blocksize); in __block_write_full_page()
1751 WARN_ON(bh->b_size != blocksize); in __block_write_full_page()
[all …]
Dmpage.c148 const unsigned blocksize = 1 << blkbits; in do_mpage_readpage() local
166 last_block_in_file = (i_size_read(inode) + blocksize - 1) >> blkbits; in do_mpage_readpage()
/linux-4.4.14/drivers/bcma/
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-4.4.14/fs/ext4/
Dnamei.c260 unsigned blocksize, struct dx_hash_info *hinfo,
264 struct dx_map_entry *offsets, int count, unsigned blocksize);
265 static struct ext4_dir_entry_2* dx_pack_dirents(char *base, unsigned blocksize);
280 unsigned int blocksize) in initialize_dirent_tail() argument
284 sizeof(struct ext4_dir_entry_tail), blocksize); in initialize_dirent_tail()
504 ext4_next_entry(struct ext4_dir_entry_2 *p, unsigned long blocksize) in ext4_next_entry() argument
507 ext4_rec_len_from_disk(p->rec_len, blocksize)); in ext4_next_entry()
688 unsigned blocksize = dir->i_sb->s_blocksize; in dx_show_entries() local
706 bh->b_data, blocksize, 0); in dx_show_entries()
715 (space/bcount)*100/blocksize); in dx_show_entries()
[all …]
Dmove_extent.c182 unsigned int blocksize, block_start, block_end; in mext_page_mkuptodate() local
190 blocksize = 1 << inode->i_blkbits; in mext_page_mkuptodate()
192 create_empty_buffers(page, blocksize, 0); in mext_page_mkuptodate()
198 block_end = block_start + blocksize; in mext_page_mkuptodate()
213 zero_user(page, block_start, blocksize); in mext_page_mkuptodate()
266 unsigned long blocksize = orig_inode->i_sb->s_blocksize; in move_extent_per_page() local
298 tmp_data_size = orig_inode->i_size & (blocksize - 1); in move_extent_per_page()
304 tmp_data_size = blocksize; in move_extent_per_page()
463 unsigned int blocksize = 1 << blkbits; in mext_check_arguments() local
465 orig_eof = (i_size_read(orig_inode) + blocksize - 1) >> blkbits; in mext_check_arguments()
[all …]
Dsuper.c1750 int blocksize = in parse_options() local
1753 if (blocksize < PAGE_CACHE_SIZE) { in parse_options()
3117 int blocksize, clustersize; in ext4_fill_super() local
3149 blocksize = sb_min_blocksize(sb, EXT4_MIN_BLOCK_SIZE); in ext4_fill_super()
3150 if (!blocksize) { in ext4_fill_super()
3159 if (blocksize != EXT4_MIN_BLOCK_SIZE) { in ext4_fill_super()
3161 offset = do_div(logical_sb_block, blocksize); in ext4_fill_super()
3367 blocksize = BLOCK_SIZE << le32_to_cpu(es->s_log_block_size); in ext4_fill_super()
3368 if (blocksize < EXT4_MIN_BLOCK_SIZE || in ext4_fill_super()
3369 blocksize > EXT4_MAX_BLOCK_SIZE) { in ext4_fill_super()
[all …]
Dreadpage.c144 const unsigned blocksize = 1 << blkbits; in ext4_mpage_readpages() local
178 last_block_in_file = (i_size_read(inode) + blocksize - 1) >> blkbits; in ext4_mpage_readpages()
Dinode.c840 unsigned blocksize = head->b_size; in ext4_walk_page_buffers() local
848 block_end = block_start + blocksize; in ext4_walk_page_buffers()
923 unsigned blocksize = inode->i_sb->s_blocksize; in ext4_block_write_begin() local
934 create_empty_buffers(page, blocksize, 0); in ext4_block_write_begin()
936 bbits = ilog2(blocksize); in ext4_block_write_begin()
941 block_end = block_start + blocksize; in ext4_block_write_begin()
952 WARN_ON(bh->b_size != blocksize); in ext4_block_write_begin()
3409 unsigned blocksize, pos; in __ext4_block_zero_page_range() local
3421 blocksize = inode->i_sb->s_blocksize; in __ext4_block_zero_page_range()
3426 create_empty_buffers(page, blocksize, 0); in __ext4_block_zero_page_range()
[all …]
Dindirect.c1216 unsigned blocksize = inode->i_sb->s_blocksize; in ext4_ind_truncate() local
1218 last_block = (inode->i_size + blocksize-1) in ext4_ind_truncate()
1220 max_block = (EXT4_SB(inode->i_sb)->s_bitmap_maxbytes + blocksize-1) in ext4_ind_truncate()
1329 unsigned blocksize = inode->i_sb->s_blocksize; in ext4_ind_remove_space() local
1331 max_block = (EXT4_SB(inode->i_sb)->s_bitmap_maxbytes + blocksize-1) in ext4_ind_remove_space()
Dext4.h1900 #define EXT4_DIRENT_TAIL(block, blocksize) \ argument
1902 ((blocksize) - \
1938 ext4_rec_len_from_disk(__le16 dlen, unsigned blocksize) in ext4_rec_len_from_disk() argument
1944 return blocksize; in ext4_rec_len_from_disk()
1951 static inline __le16 ext4_rec_len_to_disk(unsigned len, unsigned blocksize) in ext4_rec_len_to_disk() argument
1953 if ((len > blocksize) || (blocksize > (1 << 18)) || (len & 3)) in ext4_rec_len_to_disk()
1958 if (len == blocksize) { in ext4_rec_len_to_disk()
1959 if (blocksize == 65536) in ext4_rec_len_to_disk()
3074 int blocksize, int csum_size,
3077 unsigned int blocksize);
Dpage-io.c424 unsigned block_start, blocksize; in ext4_bio_write_page() local
430 blocksize = 1 << inode->i_blkbits; in ext4_bio_write_page()
Dmballoc.c821 int blocksize; in ext4_mb_init_cache() local
841 blocksize = 1 << inode->i_blkbits; in ext4_mb_init_cache()
842 blocks_per_page = PAGE_CACHE_SIZE / blocksize; in ext4_mb_init_cache()
918 data = page_address(page) + (i * blocksize); in ext4_mb_init_cache()
929 group, page->index, i * blocksize); in ext4_mb_init_cache()
941 memset(data, 0xff, blocksize); in ext4_mb_init_cache()
949 group, page->index, i * blocksize); in ext4_mb_init_cache()
954 memcpy(data, bitmap, blocksize); in ext4_mb_init_cache()
Dxattr.c1232 void *from, size_t n, int blocksize) in ext4_xattr_shift_entries() argument
1243 > blocksize); in ext4_xattr_shift_entries()
/linux-4.4.14/drivers/mtd/devices/
Dbcm47xxsflash.c80 if (b47s->blocksize < (64 * 1024)) in bcm47xxsflash_erase()
168 u32 mask = b47s->blocksize - 1; in bcm47xxsflash_write_at()
174 if (byte || (len < b47s->blocksize)) { in bcm47xxsflash_write_at()
190 if (byte == b47s->blocksize) in bcm47xxsflash_write_at()
252 mtd->erasesize = b47s->blocksize; in bcm47xxsflash_fill_mtd()
301 b47s->blocksize = sflash->blocksize; in bcm47xxsflash_bcma_probe()
Dbcm47xxsflash.h69 u32 blocksize; member
Dmtd_dataflash.c155 unsigned blocksize = priv->page_size << 3; in dataflash_erase() local
186 do_block = (pageaddr & 0x7) == 0 && instr->len >= blocksize; in dataflash_erase()
212 instr->addr += blocksize; in dataflash_erase()
213 instr->len -= blocksize; in dataflash_erase()
/linux-4.4.14/drivers/crypto/ccp/
Dccp-crypto-aes.c264 unsigned int blocksize; member
274 .blocksize = AES_BLOCK_SIZE,
282 .blocksize = AES_BLOCK_SIZE,
290 .blocksize = AES_BLOCK_SIZE,
298 .blocksize = 1,
306 .blocksize = 1,
314 .blocksize = 1,
341 alg->cra_blocksize = def->blocksize; in ccp_register_aes_alg()
/linux-4.4.14/drivers/usb/storage/
Dalauda.c100 unsigned int blocksize; /* number of pages per block */ member
443 MEDIA_INFO(us).blocksize = 1 << media_info->blockshift; in alauda_init_media()
447 MEDIA_INFO(us).blockmask = MEDIA_INFO(us).blocksize - 1; in alauda_init_media()
801 (MEDIA_INFO(us).pagesize + 64) * MEDIA_INFO(us).blocksize, in alauda_write_block()
823 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 …]
Dsddr55.c102 int blocksize; /* Size of block in pages */ member
219 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_read_data()
238 info->blocksize - page); in sddr55_read_data()
346 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_write_data()
365 info->blocksize - page); in sddr55_write_data()
588 info->blocksize = 16; in sddr55_get_capacity()
619 info->blocksize = 32; in sddr55_get_capacity()
625 info->blocksize = 32; in sddr55_get_capacity()
631 info->blocksize = 32; in sddr55_get_capacity()
637 info->blocksize = 32; in sddr55_get_capacity()
Dsddr09.c262 int blocksize; /* Size of block in pages */ member
766 len = min(sectors, (unsigned int) info->blocksize) * info->pagesize; in sddr09_read_data()
783 pages = min(sectors, info->blocksize - page); in sddr09_read_data()
903 result = sddr09_read22(us, address>>1, info->blocksize, in sddr09_write_lba()
909 for (i = 0; i < info->blocksize; i++) { in sddr09_write_lba()
943 result = sddr09_write_inplace(us, address>>1, info->blocksize, in sddr09_write_lba()
1007 len = min(sectors, (unsigned int) info->blocksize) * info->pagesize; in sddr09_write_data()
1023 pages = min(sectors, info->blocksize - page); in sddr09_write_data()
1605 info->blocksize = (1 << info->blockshift); in sddr09_transport()
1606 info->blockmask = info->blocksize - 1; in sddr09_transport()
/linux-4.4.14/Documentation/DocBook/
Dcrypto-API.xml.db12 API-crypto-ablkcipher-blocksize
27 API-crypto-aead-blocksize
44 API-crypto-blkcipher-blocksize
55 API-crypto-cipher-blocksize
62 API-crypto-hash-blocksize
91 API-crypto-shash-blocksize
/linux-4.4.14/drivers/crypto/marvell/
Dhash.c806 unsigned int blocksize; in mv_cesa_ahash_export() local
808 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_export()
812 memset(cache, 0, blocksize); in mv_cesa_ahash_export()
825 unsigned int blocksize; in mv_cesa_ahash_import() local
833 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_import()
834 if (len >= blocksize) in mv_cesa_ahash_import()
843 cache_ptr = do_div(len, blocksize); in mv_cesa_ahash_import()
1064 void *state, unsigned int blocksize) in mv_cesa_ahmac_iv_state_init() argument
1072 sg_init_one(&sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init()
1073 ahash_request_set_crypt(req, &sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init()
[all …]
/linux-4.4.14/fs/ntfs/
Daops.c197 unsigned int blocksize, vcn_ofs; in ntfs_read_block() local
208 blocksize = vol->sb->s_blocksize; in ntfs_read_block()
212 create_empty_buffers(page, blocksize, 0); in ntfs_read_block()
234 lblock = (ni->allocated_size + blocksize - 1) >> blocksize_bits; in ntfs_read_block()
242 zblock = (init_size + blocksize - 1) >> blocksize_bits; in ntfs_read_block()
341 zero_user(page, i * blocksize, blocksize); in ntfs_read_block()
563 unsigned int blocksize, vcn_ofs; in ntfs_write_block() local
577 blocksize = vol->sb->s_blocksize; in ntfs_write_block()
581 create_empty_buffers(page, blocksize, in ntfs_write_block()
610 dblock = (i_size + blocksize - 1) >> blocksize_bits; in ntfs_write_block()
[all …]
Dfile.c602 unsigned blocksize, u; in ntfs_prepare_pages_for_non_resident_write() local
623 blocksize = vol->sb->s_blocksize; in ntfs_prepare_pages_for_non_resident_write()
634 create_empty_buffers(page, blocksize, 0); in ntfs_prepare_pages_for_non_resident_write()
666 bh_end = bh_pos + blocksize; in ntfs_prepare_pages_for_non_resident_write()
704 blocksize); in ntfs_prepare_pages_for_non_resident_write()
780 blocksize); in ntfs_prepare_pages_for_non_resident_write()
799 blocksize); in ntfs_prepare_pages_for_non_resident_write()
838 zero_user(page, bh_offset(bh), blocksize); in ntfs_prepare_pages_for_non_resident_write()
963 blocksize); in ntfs_prepare_pages_for_non_resident_write()
1189 } while (bh_pos += blocksize, (bh = bh->b_this_page) != head); in ntfs_prepare_pages_for_non_resident_write()
[all …]
Dsuper.c2719 int blocksize, result; in ntfs_fill_super() local
2783 blocksize = sb_min_blocksize(sb, NTFS_BLOCK_SIZE); in ntfs_fill_super()
2784 if (blocksize < NTFS_BLOCK_SIZE) { in ntfs_fill_super()
2789 BUG_ON(blocksize != sb->s_blocksize); in ntfs_fill_super()
2791 blocksize, sb->s_blocksize_bits); in ntfs_fill_super()
2827 if (vol->sector_size > blocksize) { in ntfs_fill_super()
2828 blocksize = sb_set_blocksize(sb, vol->sector_size); in ntfs_fill_super()
2829 if (blocksize != vol->sector_size) { in ntfs_fill_super()
2836 BUG_ON(blocksize != sb->s_blocksize); in ntfs_fill_super()
2841 blocksize, sb->s_blocksize_bits); in ntfs_fill_super()
Dmft.c469 unsigned int blocksize = vol->sb->s_blocksize; in ntfs_sync_mft_mirror() local
470 int max_bhs = vol->mft_record_size / blocksize; in ntfs_sync_mft_mirror()
509 bh = head = alloc_page_buffers(page, blocksize, 1); in ntfs_sync_mft_mirror()
526 block_end = block_start + blocksize; in ntfs_sync_mft_mirror()
673 unsigned int blocksize = vol->sb->s_blocksize; in write_mft_record_nolock() local
675 int max_bhs = vol->mft_record_size / blocksize; in write_mft_record_nolock()
702 block_end = block_start + blocksize; in write_mft_record_nolock()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723com/
Dfw_common.c60 u32 blocksize = sizeof(u32); in rtl8723_fw_block_write() local
65 blockcount = size / blocksize; in rtl8723_fw_block_write()
66 remainsize = size % blocksize; in rtl8723_fw_block_write()
69 offset = i * blocksize; in rtl8723_fw_block_write()
74 offset = blockcount * blocksize; in rtl8723_fw_block_write()
/linux-4.4.14/fs/reiserfs/
Dfile.c181 unsigned blocksize; in reiserfs_commit_page() local
192 blocksize = 1 << inode->i_blkbits; in reiserfs_commit_page()
207 block_end = block_start + blocksize; in reiserfs_commit_page()
Dioctl.c178 unsigned long blocksize = inode->i_sb->s_blocksize; in reiserfs_unpack() local
194 write_from = inode->i_size & (blocksize - 1); in reiserfs_unpack()
Dstree.c389 static int is_leaf(char *buf, int blocksize, struct buffer_head *bh) in is_leaf() argument
406 if (nr < 1 || nr > ((blocksize - BLKH_SIZE) / (IH_SIZE + MIN_ITEM_LEN))) { in is_leaf()
413 used_space = BLKH_SIZE + IH_SIZE * nr + (blocksize - ih_location(ih)); in is_leaf()
416 if (used_space != blocksize - blkh_free_space(blkh)) { in is_leaf()
428 prev_location = blocksize; in is_leaf()
436 if (ih_location(ih) >= blocksize in is_leaf()
444 || ih_item_len(ih) > MAX_ITEM_LEN(blocksize)) { in is_leaf()
464 static int is_internal(char *buf, int blocksize, struct buffer_head *bh) in is_internal() argument
481 if (nr > (blocksize - BLKH_SIZE - DC_SIZE) / (KEY_SIZE + DC_SIZE)) { in is_internal()
488 if (used_space != blocksize - blkh_free_space(blkh)) { in is_internal()
Dinode.c1176 loff_t blocksize = inode->i_sb->s_blocksize; in real_space_diff() local
1192 (blocksize - 1)) >> inode->i_sb->s_blocksize_bits) * UNFM_P_SIZE + in real_space_diff()
2194 unsigned long blocksize = inode->i_sb->s_blocksize; in grab_tail_page() local
2207 if ((offset & (blocksize - 1)) == 0) { in grab_tail_page()
2216 start = (offset / blocksize) * blocksize; in grab_tail_page()
2230 pos += blocksize; in grab_tail_page()
2268 unsigned blocksize = inode->i_sb->s_blocksize; in reiserfs_truncate_file() local
2337 length = offset & (blocksize - 1); in reiserfs_truncate_file()
2340 length = blocksize - length; in reiserfs_truncate_file()
Dfix_node.c2249 unsigned long blocksize = sb->s_blocksize; in get_virtual_node_size() local
2253 max_num_of_items = (blocksize - BLKH_SIZE) / (IH_SIZE + MIN_ITEM_LEN); in get_virtual_node_size()
2254 max_num_of_entries = (blocksize - BLKH_SIZE - IH_SIZE) / in get_virtual_node_size()
Dreiserfs.h2702 #define journal_trans_half(blocksize) \ argument
2703 ((blocksize - sizeof (struct reiserfs_journal_desc) + sizeof (__u32) - 12) / sizeof (__u32))
/linux-4.4.14/fs/ext2/
Dsuper.c794 int blocksize = BLOCK_SIZE; in ext2_fill_super() local
823 blocksize = sb_min_blocksize(sb, BLOCK_SIZE); in ext2_fill_super()
824 if (!blocksize) { in ext2_fill_super()
833 if (blocksize != BLOCK_SIZE) { in ext2_fill_super()
834 logic_sb_block = (sb_block*BLOCK_SIZE) / blocksize; in ext2_fill_super()
835 offset = (sb_block*BLOCK_SIZE) % blocksize; in ext2_fill_super()
919 blocksize = BLOCK_SIZE << le32_to_cpu(sbi->s_es->s_log_block_size); in ext2_fill_super()
922 if (blocksize != PAGE_SIZE) { in ext2_fill_super()
935 if (sb->s_blocksize != blocksize) { in ext2_fill_super()
938 if (!sb_set_blocksize(sb, blocksize)) { in ext2_fill_super()
[all …]
Dinode.c477 int blocksize = inode->i_sb->s_blocksize; in ext2_alloc_branch() local
507 memset(bh->b_data, 0, blocksize); in ext2_alloc_branch()
1100 unsigned blocksize; in __ext2_truncate_blocks() local
1101 blocksize = inode->i_sb->s_blocksize; in __ext2_truncate_blocks()
1102 iblock = (offset + blocksize-1) >> EXT2_BLOCK_SIZE_BITS(inode->i_sb); in __ext2_truncate_blocks()
/linux-4.4.14/drivers/atm/
Dsolos-pci.c634 int blocksize = 0; in flash_upgrade() local
642 blocksize = ATMEL_FPGA_BLOCK; in flash_upgrade()
644 blocksize = SPI_FLASH_BLOCK; in flash_upgrade()
649 blocksize = ATMEL_SOLOS_BLOCK; in flash_upgrade()
651 blocksize = SPI_FLASH_BLOCK; in flash_upgrade()
657 blocksize = ATMEL_FPGA_BLOCK; in flash_upgrade()
659 blocksize = SPI_FLASH_BLOCK; in flash_upgrade()
670 blocksize = ATMEL_SOLOS_BLOCK; in flash_upgrade()
672 blocksize = SPI_FLASH_BLOCK; in flash_upgrade()
691 numblocks = fw->size / blocksize; in flash_upgrade()
[all …]
/linux-4.4.14/fs/minix/
Dminix.h90 static inline unsigned minix_blocks_needed(unsigned bits, unsigned blocksize) in minix_blocks_needed() argument
92 return DIV_ROUND_UP(bits, blocksize * 8); in minix_blocks_needed()
Dbitmap.c26 static __u32 count_free(struct buffer_head *map[], unsigned blocksize, __u32 numbits) in count_free() argument
29 unsigned blocks = DIV_ROUND_UP(numbits, blocksize * 8); in count_free()
32 unsigned words = blocksize / 2; in count_free()
/linux-4.4.14/fs/sysv/
Ditree.c129 int blocksize = inode->i_sb->s_blocksize; in alloc_branch() local
148 memset(bh->b_data, 0, blocksize); in alloc_branch()
372 unsigned blocksize; in sysv_truncate() local
378 blocksize = inode->i_sb->s_blocksize; in sysv_truncate()
379 iblock = (inode->i_size + blocksize-1) in sysv_truncate()
/linux-4.4.14/arch/ia64/lib/
Dmemcpy_mck.S270 #define blocksize r23 macro
287 mov blocksize=BLOCK_SIZE
289 cmp.lt p6,p7=blocksize,in2
292 (p6) mov in2=blocksize
366 cmp.gt p8,p0=saved_in2,blocksize
368 (p8) add dst0=saved_in0,blocksize
369 (p8) add src0=saved_in1,blocksize
370 (p8) sub in2=saved_in2,blocksize
/linux-4.4.14/fs/fat/
Dcache.c309 const unsigned long blocksize = sb->s_blocksize; in fat_bmap() local
324 last_block = (i_size_read(inode) + (blocksize - 1)) >> blocksize_bits; in fat_bmap()
333 last_block = (MSDOS_I(inode)->mmu_private + (blocksize - 1)) in fat_bmap()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dfw.c60 u32 blocksize = sizeof(u32); in _rtl88e_fw_block_write() local
65 blockcount = size / blocksize; in _rtl88e_fw_block_write()
66 remainsize = size % blocksize; in _rtl88e_fw_block_write()
69 offset = i * blocksize; in _rtl88e_fw_block_write()
75 offset = blockcount * blocksize; in _rtl88e_fw_block_write()
/linux-4.4.14/drivers/crypto/ux500/cryp/
Dcryp_core.c83 u32 blocksize; member
217 if (ctx->outlen / ctx->blocksize > 0) { in cryp_interrupt_handler()
218 count = ctx->blocksize / 4; in cryp_interrupt_handler()
231 if (ctx->datalen / ctx->blocksize > 0) { in cryp_interrupt_handler()
232 count = ctx->blocksize / 4; in cryp_interrupt_handler()
284 int num_of_regs = ctx->blocksize / 8; in cfg_ivs()
296 __func__, ctx->blocksize); in cfg_ivs()
300 for (i = 0; i < ctx->blocksize / 4; i++) in cfg_ivs()
649 int len = ctx->blocksize / BYTES_PER_WORD; in cryp_polling_mode()
915 ctx->datalen = nbytes - (nbytes % ctx->blocksize); in ablk_crypt()
[all …]
/linux-4.4.14/include/linux/ssb/
Dssb_driver_mips.h27 u32 blocksize; member
/linux-4.4.14/arch/m68k/emu/
Dnfblock.c42 u32 *blocksize) in nfhd_get_capacity() argument
45 virt_to_phys(blocks), virt_to_phys(blocksize)); in nfhd_get_capacity()
/linux-4.4.14/include/crypto/
Dalgapi.h128 unsigned int blocksize; member
200 unsigned int blocksize);
204 unsigned int blocksize);
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dfw.c55 u32 blocksize = sizeof(u32); in _rtl92ee_fw_block_write() local
60 blockcount = size / blocksize; in _rtl92ee_fw_block_write()
61 remainsize = size % blocksize; in _rtl92ee_fw_block_write()
64 offset = i * blocksize; in _rtl92ee_fw_block_write()
70 offset = blockcount * blocksize; in _rtl92ee_fw_block_write()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dfw.c70 u32 blocksize = sizeof(u32); in _rtl92d_fw_block_write() local
75 blockCount = size / blocksize; in _rtl92d_fw_block_write()
76 remainSize = size % blocksize; in _rtl92d_fw_block_write()
78 offset = i * blocksize; in _rtl92d_fw_block_write()
83 offset = blockCount * blocksize; in _rtl92d_fw_block_write()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192c/
Dfw_common.c75 u32 blocksize = sizeof(u32); in _rtl92c_fw_block_write() local
80 blockcount = size / blocksize; in _rtl92c_fw_block_write()
81 remainsize = size % blocksize; in _rtl92c_fw_block_write()
84 offset = i * blocksize; in _rtl92c_fw_block_write()
90 offset = blockcount * blocksize; in _rtl92c_fw_block_write()
/linux-4.4.14/drivers/mmc/host/
Dsh_mmcif.c247 size_t blocksize; member
614 host->sg_blkidx += host->blocksize; in sh_mmcif_next_block()
633 host->blocksize = (sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_single_read()
655 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_read_block()
673 host->blocksize = sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_multi_read()
699 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_mread_block()
713 host->blocksize = (sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_single_write()
735 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_write_block()
753 host->blocksize = sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_multi_write()
779 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_mwrite_block()
Dcb710-mmc.c212 size_t count, size_t blocksize) in cb710_mmc_set_transfer_size() argument
216 ((count - 1) << 16)|(blocksize - 1)); in cb710_mmc_set_transfer_size()
219 count, count == 1 ? "" : "s", blocksize); in cb710_mmc_set_transfer_size()
/linux-4.4.14/fs/udf/
Dinode.c896 unsigned long blocksize = inode->i_sb->s_blocksize; in udf_split_extents() local
904 blocksize - 1) >> blocksize_bits; in udf_split_extents()
941 blocksize; in udf_split_extents()
1057 unsigned long blocksize = inode->i_sb->s_blocksize; in udf_merge_extents() local
1070 blocksize - 1) >> blocksize_bits)))) { in udf_merge_extents()
1074 blocksize - 1) & ~UDF_EXTENT_LENGTH_MASK) { in udf_merge_extents()
1079 ~(blocksize - 1); in udf_merge_extents()
1083 blocksize; in udf_merge_extents()
1093 blocksize - 1) & ~(blocksize - 1)); in udf_merge_extents()
1108 blocksize - 1) >> blocksize_bits); in udf_merge_extents()
[all …]
Dsuper.c214 unsigned int blocksize; member
522 uopt->blocksize = n; in udf_parse_options()
1927 if (!sb_set_blocksize(sb, uopt->blocksize)) { in udf_load_vrs()
2139 uopt.blocksize = bdev_logical_block_size(sb->s_bdev); in udf_fill_super()
2141 if (ret == -EAGAIN && uopt.blocksize != UDF_DEFAULT_BLOCKSIZE) { in udf_fill_super()
2147 uopt.blocksize = UDF_DEFAULT_BLOCKSIZE; in udf_fill_super()
/linux-4.4.14/fs/cramfs/
DREADME128 2. Writer chooses blocksize; kernel adapts but rejects blocksize >
131 3. Writer chooses blocksize; kernel adapts even to blocksize >
/linux-4.4.14/crypto/
Dablkcipher.c193 unsigned bs = walk->blocksize; in ablkcipher_copy_iv()
243 bsize = min(walk->blocksize, n); in ablkcipher_walk_next()
302 walk->blocksize = crypto_tfm_alg_blocksize(req->base.tfm); in ablkcipher_walk_phys()
393 rblkcipher.blocksize = alg->cra_blocksize; in crypto_ablkcipher_report()
474 rblkcipher.blocksize = alg->cra_blocksize; in crypto_givcipher_report()
Dblkcipher.c350 unsigned int blocksize) in blkcipher_walk_virt_block() argument
353 walk->walk_blocksize = blocksize; in blkcipher_walk_virt_block()
364 unsigned int blocksize) in blkcipher_aead_walk_virt_block() argument
367 walk->walk_blocksize = blocksize; in blkcipher_aead_walk_virt_block()
520 rblkcipher.blocksize = alg->cra_blocksize; in crypto_blkcipher_report()
Daead.c115 raead.blocksize = alg->cra_blocksize; in crypto_aead_report()
Dcrypto_user.c87 rcipher.blocksize = alg->cra_blocksize; in crypto_report_cipher()
Dahash.c495 rhash.blocksize = alg->cra_blocksize; in crypto_ahash_report()
Dshash.c532 rhash.blocksize = alg->cra_blocksize; in crypto_shash_report()
/linux-4.4.14/drivers/usb/atm/
Dueagle-atm.c768 u16 blocksize; in check_dsp_e1() local
802 blocksize = get_unaligned_le16(dsp + pp); in check_dsp_e1()
806 if (pp + blocksize > len) in check_dsp_e1()
809 pp += blocksize; in check_dsp_e1()
950 u16 blockaddr, blocksize; in uea_load_page_e1() local
991 blocksize = get_unaligned_le16(p); in uea_load_page_e1()
994 bi.wSize = cpu_to_le16(blocksize); in uea_load_page_e1()
1003 if (uea_idma_write(sc, p, blocksize)) in uea_load_page_e1()
1006 p += blocksize; in uea_load_page_e1()
1032 unsigned int blocksize; in __uea_load_page_e4() local
[all …]
/linux-4.4.14/drivers/gpu/drm/radeon/
Dr600_cs.c98 unsigned blocksize; member
207 return color_formats_table[format].blocksize; in r600_fmt_get_blocksize()
244 u32 blocksize; member
258 u32 tile_bytes = tile_width * tile_height * values->blocksize * values->nsamples; in r600_get_array_mode_alignment()
270 *pitch_align = max((u32)64, (u32)(values->group_size / values->blocksize)); in r600_get_array_mode_alignment()
278 (tile_height * values->blocksize * values->nsamples))); in r600_get_array_mode_alignment()
286 (values->blocksize * values->nsamples * tile_width))); in r600_get_array_mode_alignment()
290 (*pitch_align) * values->blocksize * (*height_align) * values->nsamples); in r600_get_array_mode_alignment()
385 array_check.blocksize = r600_fmt_get_blocksize(format); in r600_cs_track_validate_cb()
581 array_check.blocksize = bpe; in r600_cs_track_validate_db()
[all …]
/linux-4.4.14/fs/gfs2/
Dbmap.c937 unsigned blocksize, iblock, length, pos; in gfs2_block_truncate_page() local
946 blocksize = inode->i_sb->s_blocksize; in gfs2_block_truncate_page()
947 length = blocksize - (offset & (blocksize - 1)); in gfs2_block_truncate_page()
951 create_empty_buffers(page, blocksize, 0); in gfs2_block_truncate_page()
955 pos = blocksize; in gfs2_block_truncate_page()
959 pos += blocksize; in gfs2_block_truncate_page()
/linux-4.4.14/fs/isofs/
Dinode.c162 unsigned int blocksize; member
352 popt->blocksize = 1024; in parse_options()
465 popt->blocksize = n; in parse_options()
607 opt.blocksize = sb_min_blocksize(s, opt.blocksize); in isofs_fill_super()
725 if (orig_zonesize < opt.blocksize) in isofs_fill_super()
951 orig_zonesize, opt.blocksize); in isofs_fill_super()
Drock.c87 int blocksize = 1 << rs->inode->i_blkbits; in rock_continue() local
93 if ((unsigned)rs->cont_offset > blocksize - min_de_size || in rock_continue()
94 (unsigned)rs->cont_size > blocksize || in rock_continue()
95 (unsigned)(rs->cont_offset + rs->cont_size) > blocksize) { in rock_continue()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dsdio.c441 uint blocksize; /* Block size of SDIO transfers */ member
1426 (roundup(len, bus->blocksize) != rd->len)) { in brcmf_sdio_hdparse()
1593 (roundup(totlen, bus->blocksize) - totlen); in brcmf_sdio_rxglom()
1594 totlen = roundup(totlen, bus->blocksize); in brcmf_sdio_rxglom()
1821 if (bus->roundup && bus->blocksize && (rdlen > bus->blocksize)) { in brcmf_sdio_read_control()
1822 pad = bus->blocksize - (rdlen % bus->blocksize); in brcmf_sdio_read_control()
1823 if ((pad <= bus->roundup) && (pad < bus->blocksize) && in brcmf_sdio_read_control()
1886 if (bus->roundup && bus->blocksize && *rdlen > bus->blocksize) { in brcmf_sdio_pad()
1887 *pad = bus->blocksize - (*rdlen % bus->blocksize); in brcmf_sdio_pad()
1888 if (*pad <= bus->roundup && *pad < bus->blocksize && in brcmf_sdio_pad()
[all …]
/linux-4.4.14/fs/btrfs/
Drelocation.c1774 u32 blocksize; local
1823 blocksize = dest->nodesize;
1901 ret = btrfs_inc_extent_ref(trans, src, old_bytenr, blocksize,
1905 ret = btrfs_inc_extent_ref(trans, dest, new_bytenr, blocksize,
1910 ret = btrfs_free_extent(trans, src, new_bytenr, blocksize,
1915 ret = btrfs_free_extent(trans, dest, old_bytenr, blocksize,
2647 u32 blocksize; local
2711 blocksize = root->nodesize;
2743 node->eb->start, blocksize,
2812 u64 bytenr, u32 blocksize) argument
[all …]
Dreada.c329 u32 blocksize; in reada_find_extent() local
350 blocksize = root->nodesize; in reada_find_extent()
360 length = blocksize; in reada_find_extent()
363 if (ret || !bbio || length < blocksize) in reada_find_extent()
Dctree.c1576 static int close_blocks(u64 blocknr, u64 other, u32 blocksize) in close_blocks() argument
1578 if (blocknr < other && other - (blocknr + blocksize) < 32768) in close_blocks()
1580 if (blocknr > other && blocknr - (other + blocksize) < 32768) in close_blocks()
1639 u32 blocksize; in btrfs_realloc_node() local
1649 blocksize = root->nodesize; in btrfs_realloc_node()
1672 close = close_blocks(blocknr, other, blocksize); in btrfs_realloc_node()
1676 close = close_blocks(blocknr, other, blocksize); in btrfs_realloc_node()
1712 min(16 * blocksize, in btrfs_realloc_node()
1713 (end_slot - i) * blocksize)); in btrfs_realloc_node()
2254 u32 blocksize; in reada_for_search() local
[all …]
Dscrub.c2488 u32 blocksize; in scrub_extent() local
2491 blocksize = sctx->sectorsize; in scrub_extent()
2497 blocksize = sctx->nodesize; in scrub_extent()
2503 blocksize = sctx->sectorsize; in scrub_extent()
2508 u64 l = min_t(u64, len, blocksize); in scrub_extent()
2629 u32 blocksize; in scrub_extent_for_parity() local
2637 blocksize = sctx->sectorsize; in scrub_extent_for_parity()
2639 blocksize = sctx->nodesize; in scrub_extent_for_parity()
2641 blocksize = sctx->sectorsize; in scrub_extent_for_parity()
2646 u64 l = min_t(u64, len, blocksize); in scrub_extent_for_parity()
Dextent-tree.c7866 struct btrfs_root *root, u32 blocksize) in use_block_rsv() argument
7878 ret = block_rsv_use_bytes(block_rsv, blocksize); in use_block_rsv()
7900 ret = reserve_metadata_bytes(root, block_rsv, blocksize, in use_block_rsv()
7911 ret = block_rsv_use_bytes(global_rsv, blocksize); in use_block_rsv()
7919 struct btrfs_block_rsv *block_rsv, u32 blocksize) in unuse_block_rsv() argument
7921 block_rsv_add_bytes(block_rsv, blocksize, 0); in unuse_block_rsv()
7941 u32 blocksize = root->nodesize; in btrfs_alloc_tree_block() local
7949 root->alloc_bytenr += blocksize; in btrfs_alloc_tree_block()
7953 block_rsv = use_block_rsv(trans, root, blocksize); in btrfs_alloc_tree_block()
7957 ret = btrfs_reserve_extent(root, blocksize, blocksize, in btrfs_alloc_tree_block()
[all …]
Dextent_io.c2999 size_t blocksize = inode->i_sb->s_blocksize; in __do_readpage() local
3007 BUG_ON(blocksize != PAGE_SIZE); in __do_readpage()
3066 iosize = ALIGN(iosize, blocksize); in __do_readpage()
3455 size_t blocksize; in __extent_writepage_io() local
3491 blocksize = inode->i_sb->s_blocksize; in __extent_writepage_io()
3514 iosize = ALIGN(iosize, blocksize); in __extent_writepage_io()
4323 size_t blocksize = page->mapping->host->i_sb->s_blocksize; in extent_invalidatepage() local
4325 start += ALIGN(offset, blocksize); in extent_invalidatepage()
Dinode.c408 u64 blocksize = root->sectorsize; in compress_file_range() local
454 if (total_compressed <= blocksize && in compress_file_range()
469 num_bytes = ALIGN(end - start + 1, blocksize); in compress_file_range()
470 num_bytes = max(blocksize, num_bytes); in compress_file_range()
571 total_compressed = ALIGN(total_compressed, blocksize); in compress_file_range()
930 u64 blocksize = root->sectorsize; in cow_file_range() local
942 num_bytes = ALIGN(end - start + 1, blocksize); in cow_file_range()
943 num_bytes = max(blocksize, num_bytes); in cow_file_range()
4622 u32 blocksize = root->sectorsize; in btrfs_truncate_page() local
4631 if ((offset & (blocksize - 1)) == 0 && in btrfs_truncate_page()
[all …]
Dfile.c2641 int blocksize = BTRFS_I(inode)->root->sectorsize; in btrfs_fallocate() local
2644 alloc_start = round_down(offset, blocksize); in btrfs_fallocate()
2645 alloc_end = round_up(offset + len, blocksize); in btrfs_fallocate()
2748 last_byte = ALIGN(last_byte, blocksize); in btrfs_fallocate()
Dtree-log.c2399 u32 blocksize; in walk_down_log_tree() local
2418 blocksize = root->nodesize; in walk_down_log_tree()
2454 bytenr, blocksize); in walk_down_log_tree()
/linux-4.4.14/drivers/net/wireless/p54/
Deeprom.c952 size_t eeprom_size = 0x2020, offset = 0, blocksize, maxblocksize; in p54_read_eeprom() local
967 blocksize = min(eeprom_size, maxblocksize); in p54_read_eeprom()
969 offset, blocksize); in p54_read_eeprom()
973 offset += blocksize; in p54_read_eeprom()
974 eeprom_size -= blocksize; in p54_read_eeprom()
/linux-4.4.14/drivers/crypto/caam/
Dcaamhash.c527 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() local
536 if (keylen > blocksize) { in ahash_setkey()
1609 unsigned int blocksize; member
1622 .blocksize = SHA1_BLOCK_SIZE,
1644 .blocksize = SHA224_BLOCK_SIZE,
1666 .blocksize = SHA256_BLOCK_SIZE,
1688 .blocksize = SHA384_BLOCK_SIZE,
1710 .blocksize = SHA512_BLOCK_SIZE,
1732 .blocksize = MD5_BLOCK_WORDS * 4,
1882 alg->cra_blocksize = template->blocksize; in caam_hash_alloc()
Dcaamalg.c2871 unsigned int blocksize; member
2886 .blocksize = AES_BLOCK_SIZE,
2903 .blocksize = DES3_EDE_BLOCK_SIZE,
2920 .blocksize = DES_BLOCK_SIZE,
2937 .blocksize = 1,
2953 .blocksize = 1,
2972 .blocksize = AES_BLOCK_SIZE,
4442 alg->cra_blocksize = template->blocksize; in caam_alg_alloc()
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_fs.h160 __u32 blocksize; /* filesystem (data) block size */ member
186 __u32 blocksize; /* filesystem (data) block size */ member
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dfw.c58 u32 blocksize = sizeof(u32); in _rtl8821ae_fw_block_write() local
63 blockcount = size / blocksize; in _rtl8821ae_fw_block_write()
64 remainsize = size % blocksize; in _rtl8821ae_fw_block_write()
67 offset = i * blocksize; in _rtl8821ae_fw_block_write()
73 offset = blockcount * blocksize; in _rtl8821ae_fw_block_write()
/linux-4.4.14/fs/f2fs/
Dsuper.c623 buf->f_bsize = sbi->blocksize; in f2fs_statfs()
924 unsigned int blocksize; in sanity_check_raw_super() local
942 blocksize = 1 << le32_to_cpu(raw_super->log_blocksize); in sanity_check_raw_super()
943 if (blocksize != F2FS_BLKSIZE) { in sanity_check_raw_super()
946 blocksize); in sanity_check_raw_super()
1002 sbi->blocksize = 1 << sbi->log_blocksize; in init_sb_info()
Ddata.c882 const unsigned blocksize = 1 << blkbits; in f2fs_mpage_readpages() local
908 last_block_in_file = (i_size_read(inode) + blocksize - 1) >> in f2fs_mpage_readpages()
988 if (bio_add_page(bio, page, blocksize, 0) < blocksize) in f2fs_mpage_readpages()
Dcheckpoint.c608 unsigned long blk_size = sbi->blocksize; in validate_checkpoint()
661 unsigned long blk_size = sbi->blocksize; in get_valid_checkpoint()
Dfile.c535 unsigned int blocksize = inode->i_sb->s_blocksize; in truncate_blocks() local
544 free_from = (pgoff_t)F2FS_BYTES_TO_BLK(from + blocksize - 1); in truncate_blocks()
Df2fs.h762 unsigned int blocksize; /* block size */ member
Dsegment.c1138 if (start >= MAX_BLKADDR(sbi) || range->len < sbi->blocksize) in f2fs_trim_fs()
/linux-4.4.14/drivers/cdrom/
Dcdrom.c2064 int blocksize, int nblocks) in cdrom_read_cd() argument
2077 cgc->buflen = blocksize * nblocks; in cdrom_read_cd()
2935 int blocksize = 0, format = 0, lba; in mmc_ioctl_cdrom_read_data() local
2940 blocksize = CD_FRAMESIZE_RAW; in mmc_ioctl_cdrom_read_data()
2943 blocksize = CD_FRAMESIZE; in mmc_ioctl_cdrom_read_data()
2947 blocksize = CD_FRAMESIZE_RAW0; in mmc_ioctl_cdrom_read_data()
2957 cgc->buffer = kzalloc(blocksize, GFP_KERNEL); in mmc_ioctl_cdrom_read_data()
2964 ret = cdrom_read_block(cdi, cgc, lba, 1, format, blocksize); in mmc_ioctl_cdrom_read_data()
2973 ret = cdrom_switch_blocksize(cdi, blocksize); in mmc_ioctl_cdrom_read_data()
2977 ret = cdrom_read_cd(cdi, cgc, lba, blocksize, 1); in mmc_ioctl_cdrom_read_data()
[all …]
/linux-4.4.14/sound/isa/wavefront/
Dwavefront_synth.c876 unsigned int blocksize; in wavefront_send_sample() local
1069 blocksize = max_blksize; in wavefront_send_sample()
1072 blocksize = ALIGN(length - written, 8); in wavefront_send_sample()
1081 for (i = 0; i < blocksize; i++) { in wavefront_send_sample()
1123 if (i < blocksize - 1) { in wavefront_send_sample()
/linux-4.4.14/drivers/target/
Dtarget_core_pscsi.c685 u32 blocksize; in pscsi_transport_complete() local
702 blocksize = (buf[9] << 16) | (buf[10] << 8) | in pscsi_transport_complete()
705 blocksize = (buf[13] << 16) | (buf[14] << 8) | in pscsi_transport_complete()
708 sd->sector_size = blocksize; in pscsi_transport_complete()
/linux-4.4.14/fs/xfs/
Dxfs_ioctl32.h191 __u32 blocksize; /* filesystem (data) block size */ member
Dxfs_fsops.c57 geo->blocksize = mp->m_sb.sb_blocksize; in xfs_fs_geometry()
/linux-4.4.14/fs/befs/
DChangeLog150 * Anton also told me that the blocksize is not allowed to be larger than
152 (blocksize > PAGE_SIZE), and refuse to mount in that case. What this
153 practically means is that 8k blocksize volumes won't work without a major
318 Changed to blocksize of filesystem.
/linux-4.4.14/include/linux/sunrpc/
Dgss_krb5.h66 const u32 blocksize; /* encryption blocksize */ member
/linux-4.4.14/drivers/s390/block/
Ddasd_diag.c104 mdsk_init_io(struct dasd_device *device, unsigned int blocksize, in mdsk_init_io() argument
116 iib->block_size = blocksize; in mdsk_init_io()
/linux-4.4.14/Documentation/filesystems/
Dqnx6.txt54 addressing block holds up to blocksize / 4 bytes pointers to data blocks.
71 blocksize of the filesystem.
Daffs.txt63 bs=blksize Sets the blocksize to blksize. Valid block sizes are 512,
Dvfs.txt763 pagecache when the underlying blocksize != pagesize. If the required
Dcoda.txt495 long va_blocksize; /* blocksize preferred for i/o */
/linux-4.4.14/drivers/crypto/
Dn2_core.c911 this_len = cipher_descriptor_len(nbytes, walk->blocksize); in n2_compute_chunks()
960 memcpy(rctx->walk.iv, final_iv, rctx->walk.blocksize); in n2_chunk_complete()
1053 iv_paddr = c->dest_final - rctx->walk.blocksize; in n2_do_chaining()
1067 rctx->walk.blocksize); in n2_do_chaining()
1074 rctx->walk.blocksize); in n2_do_chaining()
1077 rctx->walk.blocksize); in n2_do_chaining()
Dtalitos.c1852 unsigned int blocksize = in ahash_process_req() local
1858 if (!req_ctx->last && (nbytes + req_ctx->nbuf <= blocksize)) { in ahash_process_req()
1869 to_hash_later = nbytes_to_hash & (blocksize - 1); in ahash_process_req()
1878 nbytes_to_hash -= blocksize; in ahash_process_req()
1879 to_hash_later = blocksize; in ahash_process_req()
2070 unsigned int blocksize = in ahash_setkey() local
2077 if (keylen <= blocksize) in ahash_setkey()
/linux-4.4.14/Documentation/s390/
DDASD51 disk is formatted to a blocksize of 1024 bytes. Otherwise start_unit
DDebugging390.txt1560 def vfb-<blocksize> <subchannel> <number blocks>
1561 blocksize is commonly 4096 for linux.
1563 format <subchannel> <driver letter e.g. x> (blksize <blocksize>
/linux-4.4.14/include/linux/
Dbuffer_head.h197 sector_t bblock, unsigned blocksize);
Dnfs_xdr.h54 __u32 blocksize; member
/linux-4.4.14/drivers/staging/lustre/
Dsysfs-fs-lustre146 What: /sys/fs/lustre/llite/<fsname>-<uuid>/blocksize
150 Biggest blocksize on object storage server for this filesystem.
443 What: /sys/fs/lustre/{obdtype}/{connection_name}/blocksize
448 device (or biggest blocksize for compound devices like lov
/linux-4.4.14/drivers/staging/lustre/lustre/osc/
Dosc_cache.c840 int blocksize = cli->cl_import->imp_obd->obd_osfs.os_bsize ? : 4096; in osc_extent_finish() local
864 } else if (blocksize < PAGE_CACHE_SIZE && in osc_extent_finish()
870 int count = oap->oap_count + (offset & (blocksize - 1)); in osc_extent_finish()
871 int end = (offset + oap->oap_count) & (blocksize - 1); in osc_extent_finish()
874 count += blocksize - end; in osc_extent_finish()
/linux-4.4.14/include/linux/bcma/
Dbcma_driver_chipcommon.h585 u32 blocksize; member
/linux-4.4.14/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu.c1093 int blocksize = priv->fops->writeN_block_size; in rtl8xxxu_writeN() local
1096 count = len / blocksize; in rtl8xxxu_writeN()
1097 remainder = len % blocksize; in rtl8xxxu_writeN()
1102 addr, 0, buf, blocksize, in rtl8xxxu_writeN()
1104 if (ret != blocksize) in rtl8xxxu_writeN()
1107 addr += blocksize; in rtl8xxxu_writeN()
1108 buf += blocksize; in rtl8xxxu_writeN()
1125 __func__, addr, blocksize); in rtl8xxxu_writeN()
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-fs-nilfs224 What: /sys/fs/nilfs2/<device>/blocksize
/linux-4.4.14/Documentation/filesystems/pohmelfs/
Dnetwork_protocol.txt150 unsigned int blocksize;
/linux-4.4.14/fs/nfs/
Dnfs2xdr.c301 fattr->du.nfs2.blocksize = be32_to_cpup(p++); in decode_fattr()
Dnfs4xdr.c4988 uint32_t limit_type, nblocks, blocksize; in decode_space_limit() local
5001 blocksize = be32_to_cpup(p); in decode_space_limit()
5002 maxsize = (uint64_t)nblocks * (uint64_t)blocksize; in decode_space_limit()
/linux-4.4.14/fs/jbd2/
Djournal.c1134 unsigned long long start, int len, int blocksize) in jbd2_journal_init_dev() argument
1144 journal->j_blocksize = blocksize; in jbd2_journal_init_dev()
/linux-4.4.14/drivers/s390/char/
Dtape_core.c167 DEVICE_ATTR(blocksize, 0444, tape_blocksize_show, NULL);
/linux-4.4.14/Documentation/vm/
Dcleancache.txt233 - Currently, the FS blocksize must be the same as PAGESIZE. This
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
Dlprocfs_status.c384 LUSTRE_RO_ATTR(blocksize);
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dlproc_llite.c67 LUSTRE_RO_ATTR(blocksize);
/linux-4.4.14/Documentation/cdrom/
Dide-cd324 blocksize of 2048 when mounting. (Note that you won't be able to
/linux-4.4.14/Documentation/filesystems/cifs/
DCHANGES232 EINVAL on readdir when filldir fails due to overwritten blocksize
527 blocksize of 512 is required for calculating number of blocks in inode).
/linux-4.4.14/Documentation/scsi/
DChangeLog.1992-19971808 dma_pool. Store blocksize information for each partition.
1812 * sr.c: Set up blocksize array for all discs. Fix bug in freeing
/linux-4.4.14/fs/fuse/
Dfile.c2225 inarg.blocksize = inode->i_sb->s_blocksize; in fuse_bmap()