Home
last modified time | relevance | path

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

1234567891011

/OK3568_Linux_fs/kernel/fs/hfsplus/
H A Dwrapper.c168 u32 blocksize; in hfsplus_read_wrapper() local
172 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE); in hfsplus_read_wrapper()
173 if (!blocksize) in hfsplus_read_wrapper()
233 blocksize = be32_to_cpu(sbi->s_vhdr->blocksize); in hfsplus_read_wrapper()
238 if (blocksize < HFSPLUS_SECTOR_SIZE || ((blocksize - 1) & blocksize)) in hfsplus_read_wrapper()
240 sbi->alloc_blksz = blocksize; in hfsplus_read_wrapper()
241 sbi->alloc_blksz_shift = ilog2(blocksize); in hfsplus_read_wrapper()
242 blocksize = min_t(u32, sbi->alloc_blksz, PAGE_SIZE); in hfsplus_read_wrapper()
247 while (part_start & ((blocksize >> HFSPLUS_SECTOR_SHIFT) - 1)) in hfsplus_read_wrapper()
248 blocksize >>= 1; in hfsplus_read_wrapper()
[all …]
/OK3568_Linux_fs/buildroot/package/vtun/
H A D0003-openssl11.patch33 blocksize = 16;
44 blocksize = 16;
56 blocksize = 16;
66 blocksize = 16;
78 blocksize = 8;
90 blocksize = 8;
103 blocksize = 8;
115 blocksize = 8;
158 if (pad == blocksize)
159 RAND_bytes(in_ptr+len, blocksize-1);
[all …]
/OK3568_Linux_fs/kernel/block/partitions/
H A Dibm.c67 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 …]
/OK3568_Linux_fs/u-boot/cmd/
H A Donenand.c66 int blocksize = (1 << this->erase_shift); in onenand_block_read() local
74 ops.ooblen = blocksize; in onenand_block_read()
76 ops.len = blocksize; in onenand_block_read()
83 ofs += blocksize; in onenand_block_read()
96 ofs += blocksize; in onenand_block_read()
99 ofs += blocksize; in onenand_block_read()
100 buf += blocksize; in onenand_block_read()
137 int blocksize = (1 << this->erase_shift); in onenand_block_write() local
162 skip_ofs += blocksize; in onenand_block_write()
167 ret = mtd_write(mtd, ofs, blocksize, &_retlen, buf); in onenand_block_write()
[all …]
/OK3568_Linux_fs/u-boot/fs/ext4/
H A Dext4fs.c57 int blocksize = (1 << (log2_fs_blocksize + log2blksz)); in ext4fs_read_file() local
67 if (blocksize <= 0) in ext4fs_read_file()
74 blockcnt = lldiv(((len + pos) + blocksize - 1), blocksize); in ext4fs_read_file()
76 for (i = lldiv(pos, blocksize); i < blockcnt; i++) { in ext4fs_read_file()
78 int blockoff = pos - (blocksize * i); in ext4fs_read_file()
79 int blockend = blocksize; in ext4fs_read_file()
89 blockend = (len + pos) - (blocksize * i); in ext4fs_read_file()
93 blockend = blocksize; in ext4fs_read_file()
97 if (i == lldiv(pos, blocksize)) { in ext4fs_read_file()
145 n = blocksize - skipfirst; in ext4fs_read_file()
[all …]
/OK3568_Linux_fs/kernel/drivers/mtd/parsers/
H A Dbcm47xxpart.c95 uint32_t blocksize = master->erasesize; in bcm47xxpart_parse() local
105 if (blocksize < 0x1000) in bcm47xxpart_parse()
106 blocksize = 0x1000; in bcm47xxpart_parse()
121 for (offset = 0; offset <= master->size - blocksize; in bcm47xxpart_parse()
122 offset += blocksize) { in bcm47xxpart_parse()
206 trx_size = max(trx->length, last_subpart + blocksize); in bcm47xxpart_parse()
212 offset += roundup(trx_size, blocksize) - blocksize; in bcm47xxpart_parse()
228 if (offset != master->size - blocksize && in bcm47xxpart_parse()
236 err = mtd_read(master, offset + (blocksize / 2), 0x4, &bytes_read, in bcm47xxpart_parse()
240 offset + (blocksize / 2), err); in bcm47xxpart_parse()
[all …]
/OK3568_Linux_fs/kernel/sound/pci/emu10k1/
H A Demu10k1_patch.c30 int truesize, size, blocksize; in snd_emu10k1_sample_new() local
76 blocksize = truesize; in snd_emu10k1_sample_new()
78 blocksize *= 2; in snd_emu10k1_sample_new()
79 sp->block = snd_emu10k1_synth_alloc(emu, blocksize); in snd_emu10k1_sample_new()
82 "synth malloc failed (size=%d)\n", blocksize); in snd_emu10k1_sample_new()
87 sp->v.truesize = blocksize; in snd_emu10k1_sample_new()
94 if (offset + size > blocksize) in snd_emu10k1_sample_new()
103 if (offset + size > blocksize) in snd_emu10k1_sample_new()
121 if (offset + loopsize * 2 > blocksize) in snd_emu10k1_sample_new()
127 if (offset + loopsize > blocksize) in snd_emu10k1_sample_new()
[all …]
/OK3568_Linux_fs/kernel/fs/nilfs2/
H A Dthe_nilfs.c227 int blocksize; in load_nilfs() local
248 blocksize = BLOCK_SIZE << le32_to_cpu(sbp[0]->s_log_block_size); in load_nilfs()
249 if (blocksize != nilfs->ns_blocksize) { in load_nilfs()
252 blocksize, nilfs->ns_blocksize); in load_nilfs()
487 struct super_block *sb, int blocksize, in nilfs_load_super_block() argument
495 sbp[0] = nilfs_read_super_block(sb, NILFS_SB_OFFSET_BYTES, blocksize, in nilfs_load_super_block()
497 sbp[1] = nilfs_read_super_block(sb, sb2off, blocksize, &sbh[1]); in nilfs_load_super_block()
506 blocksize); in nilfs_load_super_block()
510 blocksize); in nilfs_load_super_block()
539 blocksize); in nilfs_load_super_block()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/qce/
H A Dsha.c146 unsigned int blocksize = in qce_ahash_export() local
155 memcpy(out_state->buffer, rctx->buf, blocksize); in qce_ahash_export()
162 memcpy(out_state->buf, rctx->buf, blocksize); in qce_ahash_export()
176 unsigned int blocksize; in qce_import_common() local
179 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_import_common()
181 memcpy(rctx->buf, buffer, blocksize); in qce_import_common()
183 if (in_count <= blocksize) { in qce_import_common()
200 rctx->buflen = (unsigned int)(in_count & (blocksize - 1)); in qce_import_common()
245 unsigned int blocksize; in qce_ahash_update() local
247 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_update()
[all …]
/OK3568_Linux_fs/u-boot/drivers/fpga/
H A Dzynqpl.c321 size_t bsize, u32 blocksize, u32 *swap, in zynq_validate_bitstream() argument
327 buf_start = check_data((u8 *)buf, blocksize, swap); in zynq_validate_bitstream()
405 loff_t blocksize, actread; in zynq_loadfs() local
410 blocksize = fsinfo->blocksize; in zynq_loadfs()
419 if (fs_read(filename, (u32) buf, pos, blocksize, &actread) < 0) in zynq_loadfs()
422 if (zynq_validate_bitstream(desc, buf, bsize, blocksize, &swap, in zynq_loadfs()
429 buf = zynq_align_dma_buffer((u32 *)buf, blocksize, swap); in zynq_loadfs()
431 if (zynq_dma_transfer((u32)buf | 1, blocksize >> 2, in zynq_loadfs()
435 bsize -= blocksize; in zynq_loadfs()
436 pos += blocksize; in zynq_loadfs()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Ddax.h62 int blocksize, sector_t start, sector_t len);
110 struct block_device *bdev, int blocksize, sector_t start, in dax_supported() argument
125 bool __bdev_dax_supported(struct block_device *bdev, int blocksize);
126 static inline bool bdev_dax_supported(struct block_device *bdev, int blocksize) in bdev_dax_supported() argument
128 return __bdev_dax_supported(bdev, blocksize); in bdev_dax_supported()
132 struct block_device *bdev, int blocksize, sector_t start,
135 struct block_device *bdev, int blocksize, sector_t start, in generic_fsdax_supported() argument
138 return __generic_fsdax_supported(dax_dev, bdev, blocksize, start, in generic_fsdax_supported()
157 int blocksize) in bdev_dax_supported() argument
163 struct block_device *bdev, int blocksize, sector_t start, in generic_fsdax_supported() argument
/OK3568_Linux_fs/kernel/fs/ocfs2/
H A Docfs2_fs.h1231 static inline struct ocfs2_disk_dqtrailer *ocfs2_block_dqtrailer(int blocksize, in ocfs2_block_dqtrailer() argument
1235 ptr += blocksize - OCFS2_QBLK_RESERVED_SPACE; in ocfs2_block_dqtrailer()
1440 static inline int ocfs2_fast_symlink_chars(int blocksize) in ocfs2_fast_symlink_chars() argument
1442 return blocksize - offsetof(struct ocfs2_dinode, id2.i_symlink); in ocfs2_fast_symlink_chars()
1445 static inline int ocfs2_max_inline_data_with_xattr(int blocksize, in ocfs2_max_inline_data_with_xattr() argument
1449 return blocksize - in ocfs2_max_inline_data_with_xattr()
1453 return blocksize - in ocfs2_max_inline_data_with_xattr()
1457 static inline int ocfs2_extent_recs_per_inode(int blocksize) in ocfs2_extent_recs_per_inode() argument
1461 size = blocksize - in ocfs2_extent_recs_per_inode()
1467 static inline int ocfs2_chain_recs_per_inode(int blocksize) in ocfs2_chain_recs_per_inode() argument
[all …]
H A Dblockcheck.c146 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) in ocfs2_hamming_encode_block() argument
148 return ocfs2_hamming_encode(0, data, blocksize * 8, 0); in ocfs2_hamming_encode_block()
214 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, in ocfs2_hamming_fix_block() argument
217 ocfs2_hamming_fix(data, blocksize * 8, 0, fix); in ocfs2_hamming_fix_block()
351 void ocfs2_block_check_compute(void *data, size_t blocksize, in ocfs2_block_check_compute() argument
359 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_compute()
360 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_compute()
380 int ocfs2_block_check_validate(void *data, size_t blocksize, in ocfs2_block_check_validate() argument
397 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_validate()
407 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_validate()
[all …]
H A Dblockcheck.h44 void ocfs2_block_check_compute(void *data, size_t blocksize,
46 int ocfs2_block_check_validate(void *data, size_t blocksize,
93 extern u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize);
94 extern void ocfs2_hamming_fix_block(void *data, unsigned int blocksize,
/OK3568_Linux_fs/kernel/fs/affs/
H A Dsuper.c191 int *blocksize, char **prefix, char *volume, unsigned long *mount_opts) in parse_options() argument
202 *blocksize = -1; in parse_options()
224 *blocksize = n; in parse_options()
340 int size, blocksize; in affs_fill_super() local
374 &blocksize,&sbi->s_prefix, in affs_fill_super()
400 if (blocksize > 0) { in affs_fill_super()
401 i = j = blocksize; in affs_fill_super()
402 size = size / (blocksize / 512); in affs_fill_super()
405 for (blocksize = i; blocksize <= j; blocksize <<= 1, size >>= 1) { in affs_fill_super()
409 pr_debug("setting blocksize to %d\n", blocksize); in affs_fill_super()
[all …]
/OK3568_Linux_fs/kernel/fs/
H A Dbuffer.c560 sector_t bblock, unsigned blocksize) in write_boundary_block() argument
562 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize); in write_boundary_block()
1585 unsigned long blocksize, unsigned long b_state) in create_empty_buffers() argument
1589 head = alloc_page_buffers(page, blocksize, true); in create_empty_buffers()
1696 static inline int block_size_bits(unsigned int blocksize) in block_size_bits() argument
1698 return ilog2(blocksize); in block_size_bits()
1748 unsigned int blocksize, bbits; in __block_write_full_page() local
1766 blocksize = bh->b_size; in __block_write_full_page()
1767 bbits = block_size_bits(blocksize); in __block_write_full_page()
1790 WARN_ON(bh->b_size != blocksize); in __block_write_full_page()
[all …]
/OK3568_Linux_fs/kernel/include/crypto/
H A Dctr.h25 int blocksize = crypto_skcipher_chunksize(tfm); in crypto_ctr_encrypt_walk() local
31 if (WARN_ON_ONCE(!is_power_of_2(blocksize))) in crypto_ctr_encrypt_walk()
43 tail = walk.nbytes & (blocksize - 1); in crypto_ctr_encrypt_walk()
48 int bsize = min(nbytes, blocksize); in crypto_ctr_encrypt_walk()
53 crypto_inc(walk.iv, blocksize); in crypto_ctr_encrypt_walk()
/OK3568_Linux_fs/u-boot/env/
H A Dnand.c131 size_t blocksize, len; in writeenv() local
139 blocksize = mtd->erasesize; in writeenv()
140 len = min(blocksize, (size_t)CONFIG_ENV_SIZE); in writeenv()
144 offset += blocksize; in writeenv()
150 offset += blocksize; in writeenv()
252 size_t blocksize, len; in readenv() local
260 blocksize = mtd->erasesize; in readenv()
261 len = min(blocksize, (size_t)CONFIG_ENV_SIZE); in readenv()
265 offset += blocksize; in readenv()
273 offset += blocksize; in readenv()
/OK3568_Linux_fs/kernel/net/sunrpc/auth_gss/
H A 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_sync_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 …]
/OK3568_Linux_fs/u-boot/drivers/mmc/
H A Dsh_sdhi.c273 unsigned short blocksize, i; in sh_sdhi_single_read() local
295 blocksize = sh_sdhi_readw(host, SDHI_SIZE); in sh_sdhi_single_read()
297 for (i = 0; i < blocksize / 8; i++) in sh_sdhi_single_read()
300 for (i = 0; i < blocksize / 2; i++) in sh_sdhi_single_read()
314 unsigned short blocksize, i, sec; in sh_sdhi_multi_read() local
325 __func__, data->blocks, data->blocksize); in sh_sdhi_multi_read()
338 blocksize = sh_sdhi_readw(host, SDHI_SIZE); in sh_sdhi_multi_read()
340 for (i = 0; i < blocksize / 8; i++) in sh_sdhi_multi_read()
343 for (i = 0; i < blocksize / 2; i++) in sh_sdhi_multi_read()
354 unsigned short blocksize, i; in sh_sdhi_single_write() local
[all …]
H A Dsh_mmcif.c181 u32 blocksize, i; in sh_mmcif_single_read() local
198 blocksize = (BLOCK_SIZE_MASK & in sh_mmcif_single_read()
200 for (i = 0; i < blocksize / 4; i++) in sh_mmcif_single_read()
217 u32 blocksize, i, j; in sh_mmcif_multi_read() local
226 blocksize = BLOCK_SIZE_MASK & sh_mmcif_read(&host->regs->ce_block_set); in sh_mmcif_multi_read()
234 for (i = 0; i < blocksize / 4; i++) in sh_mmcif_multi_read()
246 u32 blocksize, i; in sh_mmcif_single_write() local
262 blocksize = (BLOCK_SIZE_MASK & in sh_mmcif_single_write()
264 for (i = 0; i < blocksize / 4; i++) in sh_mmcif_single_write()
282 u32 i, j, blocksize; in sh_mmcif_multi_write() local
[all …]
/OK3568_Linux_fs/u-boot/fs/reiserfs/
H A Dreiserfs.c311 INFO->blocksize = sb_blocksize(&super); in reiserfs_mount()
319 INFO->version, INFO->blocksize); in reiserfs_mount()
346 if (! block_read (sb_root_block(&super), 0, INFO->blocksize, (char*) ROOT)) in reiserfs_mount()
363 memcpy (LEAF, ROOT, INFO->blocksize); in reiserfs_mount()
412 if (! block_read (blockNr, 0, INFO->blocksize, cache)) in read_tree_node()
589 unsigned int blocksize; in reiserfs_read() local
613 blocksize = __le16_to_cpu(INFO->current_ih->ih_item_len); in reiserfs_read()
617 filepos, len, offset, blocksize); in reiserfs_read()
621 && offset < blocksize) in reiserfs_read()
625 offset, blocksize); in reiserfs_read()
[all …]
/OK3568_Linux_fs/kernel/fs/crypto/
H A Dcrypto.c180 const unsigned int blocksize = 1 << blockbits; in fscrypt_encrypt_pagecache_blocks() local
190 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_encrypt_pagecache_blocks()
197 for (i = offs; i < offs + len; i += blocksize, lblk_num++) { in fscrypt_encrypt_pagecache_blocks()
200 blocksize, i, gfp_flags); in fscrypt_encrypt_pagecache_blocks()
260 const unsigned int blocksize = 1 << blockbits; in fscrypt_decrypt_pagecache_blocks() local
269 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_decrypt_pagecache_blocks()
272 for (i = offs; i < offs + len; i += blocksize, lblk_num++) { in fscrypt_decrypt_pagecache_blocks()
274 page, blocksize, i, GFP_NOFS); in fscrypt_decrypt_pagecache_blocks()
/OK3568_Linux_fs/kernel/drivers/bcma/
H A Ddriver_chipcommon_sflash.c29 u32 blocksize; member
149 sflash->blocksize = e->blocksize; in bcma_sflash_init()
151 sflash->size = sflash->blocksize * sflash->numblocks; in bcma_sflash_init()
155 e->name, sflash->size / 1024, sflash->blocksize, in bcma_sflash_init()
/OK3568_Linux_fs/kernel/drivers/ssb/
H A Ddriver_chipcommon_sflash.c28 u32 blocksize; member
149 sflash->blocksize = e->blocksize; in ssb_sflash_init()
151 sflash->size = sflash->blocksize * sflash->numblocks; in ssb_sflash_init()
155 e->name, sflash->size / 1024, e->blocksize, e->numblocks); in ssb_sflash_init()

1234567891011