Home
last modified time | relevance | path

Searched full:blocksize (Results 1 – 25 of 204) sorted by relevance

123456789

/linux/fs/nilfs2/
H A Dthe_nilfs.c200 * @blocksize: place to store block size
203 * exponent information written in @sbp and stores it in @blocksize,
209 struct nilfs_super_block *sbp, int *blocksize) in nilfs_get_blocksize() argument
215 nilfs_err(sb, "too large filesystem blocksize: 2 ^ %u KiB", in nilfs_get_blocksize()
219 *blocksize = BLOCK_SIZE << shift_bits; in nilfs_get_blocksize()
262 int blocksize; in load_nilfs() local
283 err = nilfs_get_blocksize(sb, sbp[0], &blocksize); in load_nilfs()
287 if (blocksize != nilfs->ns_blocksize) { in load_nilfs()
289 "blocksize differs between two super blocks (%d != %d)", in load_nilfs()
290 blocksize, nilfs->ns_blocksize); in load_nilfs()
[all …]
/linux/block/partitions/
H A Dibm.c108 int blocksize, in find_label() argument
132 testsect[0] = info->label_block * (blocksize >> 9); in find_label()
136 testsect[1] = (blocksize >> 9); in find_label()
137 testsect[2] = 2 * (blocksize >> 9); in find_label()
170 int blocksize, in find_vol1_partitions() argument
189 secperblk = blocksize >> 9; in find_vol1_partitions()
232 int blocksize, in find_lnx1_partitions() argument
245 secperblk = blocksize >> 9; in find_lnx1_partitions()
279 int blocksize, in find_cms1_partitions() argument
291 blocksize = label->cms.block_size; in find_cms1_partitions()
[all …]
/linux/lib/zstd/compress/
H A Dzstd_preSplit.c155 static size_t ZSTD_splitBlock_byChunks(const void* blockStart, size_t blockSize, in ZSTD_splitBlock_byChunks() argument
168 assert(blockSize == (128 << 10)); in ZSTD_splitBlock_byChunks()
176 for (pos = CHUNKSIZE; pos <= blockSize - CHUNKSIZE; pos += CHUNKSIZE) { in ZSTD_splitBlock_byChunks()
185 assert(pos == blockSize); in ZSTD_splitBlock_byChunks()
186 return blockSize; in ZSTD_splitBlock_byChunks()
199 static size_t ZSTD_splitBlock_fromBorders(const void* blockStart, size_t blockSize, in ZSTD_splitBlock_fromBorders() argument
205 assert(blockSize == (128 << 10)); in ZSTD_splitBlock_fromBorders()
213 …HIST_add(fpstats->newEvents.events, (const char*)blockStart + blockSize - SEGMENT_SIZE, SEGMENT_SI… in ZSTD_splitBlock_fromBorders()
216 return blockSize; in ZSTD_splitBlock_fromBorders()
218 …HIST_add(middleEvents->events, (const char*)blockStart + blockSize/2 - SEGMENT_SIZE/2, SEGMENT_SIZ… in ZSTD_splitBlock_fromBorders()
[all …]
H A Dzstd_compress.c1633 static size_t ZSTD_maxNbSeq(size_t blockSize, unsigned minMatch, int useSequenceProducer) { in ZSTD_maxNbSeq() argument
1635 return blockSize / divider; in ZSTD_maxNbSeq()
1650 size_t const blockSize = MIN(ZSTD_resolveMaxBlockSize(maxBlockSize), windowSize); in ZSTD_estimateCCtxSize_usingCCtxParams_internal() local
1651 size_t const maxNbSeq = ZSTD_maxNbSeq(blockSize, cParams->minMatch, useSequenceProducer); in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1652 size_t const tokenSpace = ZSTD_cwksp_alloc_size(WILDCOPY_OVERLENGTH + blockSize) in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1660 size_t const maxNbLdmSeq = ZSTD_ldm_getMaxNbSeq(*ldmParams, blockSize); in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1670 size_t const maxNbExternalSeq = ZSTD_sequenceBound(blockSize); in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1752 …size_t const blockSize = MIN(ZSTD_resolveMaxBlockSize(params->maxBlockSize), (size_t)1 << cParams.… in ZSTD_estimateCStreamSize_usingCCtxParams() local
1754 ? ((size_t)1 << cParams.windowLog) + blockSize in ZSTD_estimateCStreamSize_usingCCtxParams()
1757 ? ZSTD_compressBound(blockSize) + 1 in ZSTD_estimateCStreamSize_usingCCtxParams()
[all …]
H A Dzstd_preSplit.h26 * Therefore, @blockSize must be == 128 KB.
30 size_t ZSTD_splitBlock(const void* blockStart, size_t blockSize,
/linux/drivers/mtd/parsers/
H A Dbcm47xxpart.c95 uint32_t blocksize = master->erasesize; in bcm47xxpart_parse() local
105 if (blocksize < 0x1000) in bcm47xxpart_parse()
106 blocksize = 0x1000; in bcm47xxpart_parse()
121 for (offset = 0; offset <= master->size - blocksize; in bcm47xxpart_parse()
122 offset += blocksize) { in bcm47xxpart_parse()
206 trx_size = max(trx->length, last_subpart + blocksize); in bcm47xxpart_parse()
212 offset += roundup(trx_size, blocksize) - blocksize; in bcm47xxpart_parse()
228 if (offset != master->size - blocksize && in bcm47xxpart_parse()
236 err = mtd_read(master, offset + (blocksize / 2), 0x4, &bytes_read, in bcm47xxpart_parse()
240 offset + (blocksize / 2), err); in bcm47xxpart_parse()
[all …]
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmw_surface_cache.h81 desc->blockSize.width); in vmw_surface_get_size_in_blocks()
83 desc->blockSize.height); in vmw_surface_get_size_in_blocks()
85 desc->blockSize.depth); in vmw_surface_get_size_in_blocks()
203 const u32 bw = desc->blockSize.width, bh = desc->blockSize.height; in vmw_surface_get_pixel_offset()
204 const u32 bd = desc->blockSize.depth; in vmw_surface_get_pixel_offset()
406 desc->blockSize.width) * in vmw_surface_setup_cache()
413 desc->blockSize.height) * in vmw_surface_setup_cache()
462 loc->z *= desc->blockSize.depth; in vmw_surface_get_loc()
465 loc->y *= desc->blockSize.height; in vmw_surface_get_loc()
467 loc->x *= desc->blockSize.width; in vmw_surface_get_loc()
[all …]
/linux/sound/pci/emu10k1/
H A Demu10k1_patch.c33 int truesize, size, blocksize; in snd_emu10k1_sample_new() local
99 blocksize = truesize << shift; in snd_emu10k1_sample_new()
100 sp->block = snd_emu10k1_synth_alloc(emu, blocksize); in snd_emu10k1_sample_new()
103 "synth malloc failed (size=%d)\n", blocksize); in snd_emu10k1_sample_new()
108 sp->v.truesize = blocksize; in snd_emu10k1_sample_new()
140 if (offset < blocksize) in snd_emu10k1_sample_new()
141 snd_emu10k1_synth_memset(emu, sp->block, offset, blocksize - offset, fill); in snd_emu10k1_sample_new()
/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_keys.c154 size_t blocksize, keybytes, keylength, n; in krb5_DK() local
169 blocksize = crypto_sync_skcipher_blocksize(cipher); in krb5_DK()
174 inblockdata = kmalloc(blocksize, gfp_mask); in krb5_DK()
178 outblockdata = kmalloc(blocksize, gfp_mask); in krb5_DK()
183 inblock.len = blocksize; in krb5_DK()
186 outblock.len = blocksize; in krb5_DK()
376 unsigned int blocksize, offset; in krb5_kdf_feedback_cmac() local
395 blocksize = crypto_shash_digestsize(tfm); in krb5_kdf_feedback_cmac()
396 n = (outkey->len + blocksize - 1) / blocksize; in krb5_kdf_feedback_cmac()
400 step.len = blocksize; in krb5_kdf_feedback_cmac()
[all …]
/linux/fs/ext4/
H A Dnamei.c302 unsigned int blocksize) in ext4_initialize_dirent_tail() argument
304 struct ext4_dir_entry_tail *t = EXT4_DIRENT_TAIL(bh->b_data, blocksize); in ext4_initialize_dirent_tail()
308 sizeof(struct ext4_dir_entry_tail), blocksize); in ext4_initialize_dirent_tail()
317 int blocksize = EXT4_BLOCK_SIZE(inode->i_sb); in get_dirent_tail() local
324 (blocksize - sizeof(struct ext4_dir_entry_tail))); in get_dirent_tail()
325 while (d < top && ext4_rec_len_from_disk(d->rec_len, blocksize)) in get_dirent_tail()
327 ext4_rec_len_from_disk(d->rec_len, blocksize)); in get_dirent_tail()
338 (ext4_rec_len_from_disk(t->det_rec_len, blocksize) != in get_dirent_tail()
419 int blocksize = EXT4_BLOCK_SIZE(inode->i_sb); in get_dx_countlimit() local
420 unsigned int rlen = ext4_rec_len_from_disk(dirent->rec_len, blocksize); in get_dx_countlimit()
[all …]
/linux/drivers/ssb/
H A Ddriver_chipcommon_sflash.c28 u32 blocksize; member
149 sflash->blocksize = e->blocksize; in ssb_sflash_init()
151 sflash->size = sflash->blocksize * sflash->numblocks; in ssb_sflash_init()
154 pr_info("Found %s serial flash (size: %dKiB, blocksize: 0x%X, blocks: %d)\n", in ssb_sflash_init()
155 e->name, sflash->size / 1024, e->blocksize, e->numblocks); in ssb_sflash_init()
/linux/drivers/bcma/
H A Ddriver_chipcommon_sflash.c29 u32 blocksize; member
149 sflash->blocksize = e->blocksize; in bcma_sflash_init()
151 sflash->size = sflash->blocksize * sflash->numblocks; in bcma_sflash_init()
154 bcma_info(bus, "Found %s serial flash (size: %dKiB, blocksize: 0x%X, blocks: %d)\n", in bcma_sflash_init()
155 e->name, sflash->size / 1024, sflash->blocksize, in bcma_sflash_init()
/linux/fs/ocfs2/
H A Dblockcheck.c144 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) in ocfs2_hamming_encode_block() argument
146 return ocfs2_hamming_encode(0, data, blocksize * 8, 0); in ocfs2_hamming_encode_block()
212 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, in ocfs2_hamming_fix_block() argument
215 ocfs2_hamming_fix(data, blocksize * 8, 0, fix); in ocfs2_hamming_fix_block()
349 void ocfs2_block_check_compute(void *data, size_t blocksize, in ocfs2_block_check_compute() argument
357 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_compute()
358 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_compute()
378 int ocfs2_block_check_validate(void *data, size_t blocksize, in ocfs2_block_check_validate() argument
395 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_validate()
405 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_validate()
[all …]
H A Dblockcheck.h42 void ocfs2_block_check_compute(void *data, size_t blocksize,
44 int ocfs2_block_check_validate(void *data, size_t blocksize,
91 extern u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize);
92 extern void ocfs2_hamming_fix_block(void *data, unsigned int blocksize,
/linux/fs/
H A Dbuffer.c240 "device %pg blocksize: %d\n", in __find_get_block_slow()
666 sector_t bblock, unsigned blocksize) in write_boundary_block() argument
670 bh = __find_get_block_nonatomic(bdev, bblock + 1, blocksize); in write_boundary_block()
1692 unsigned long blocksize, unsigned long b_state) in create_empty_buffers() argument
1697 head = folio_alloc_buffers(folio, blocksize, gfp); in create_empty_buffers()
1849 size_t blocksize; in __block_write_full_folio() local
1867 blocksize = bh->b_size; in __block_write_full_folio()
1869 block = div_u64(folio_pos(folio), blocksize); in __block_write_full_folio()
1870 last_block = div_u64(i_size_read(inode) - 1, blocksize); in __block_write_full_folio()
1890 WARN_ON(bh->b_size != blocksize); in __block_write_full_folio()
[all …]
/linux/fs/befs/
H A Dsuper.c71 * Check blocksize of BEFS. in befs_check_sb()
73 * Blocksize of BEFS is 1024, 2048, 4096 or 8192. in befs_check_sb()
80 befs_error(sb, "invalid blocksize: %u", befs_sb->block_size); in befs_check_sb()
85 befs_error(sb, "blocksize(%u) cannot be larger " in befs_check_sb()
/linux/fs/ext2/
H A Dsuper.c890 int blocksize = BLOCK_SIZE; in ext2_fill_super() local
915 * See what the current blocksize for the device is, and in ext2_fill_super()
916 * use that as the blocksize. Otherwise (or if the blocksize in ext2_fill_super()
921 blocksize = sb_min_blocksize(sb, BLOCK_SIZE); in ext2_fill_super()
922 if (!blocksize) { in ext2_fill_super()
923 ext2_msg(sb, KERN_ERR, "error: unable to set blocksize"); in ext2_fill_super()
931 if (blocksize != BLOCK_SIZE) { in ext2_fill_super()
932 logic_sb_block = (sb_block*BLOCK_SIZE) / blocksize; in ext2_fill_super()
933 offset = (sb_block*BLOCK_SIZE) % blocksize; in ext2_fill_super()
992 blocksize = BLOCK_SIZE << le32_to_cpu(sbi->s_es->s_log_block_size); in ext2_fill_super()
[all …]
/linux/drivers/crypto/caam/
H A Dcaamhash.c429 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() local
437 if (keylen > blocksize) { in ahash_setkey()
829 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_ctx() local
836 *next_buflen = in_len & (blocksize - 1); in ahash_update_ctx()
844 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_ctx()
846 *next_buflen = blocksize; in ahash_update_ctx()
847 to_hash -= blocksize; in ahash_update_ctx()
1205 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_no_ctx() local
1212 *next_buflen = in_len & (blocksize - 1); in ahash_update_no_ctx()
1220 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_no_ctx()
[all …]
/linux/drivers/mtd/devices/
H A Dbcm47xxsflash.c81 if (b47s->blocksize < (64 * 1024)) in bcm47xxsflash_erase()
177 u32 mask = b47s->blocksize - 1; in bcm47xxsflash_write_at()
183 if (byte || (len < b47s->blocksize)) { in bcm47xxsflash_write_at()
199 if (byte == b47s->blocksize) in bcm47xxsflash_write_at()
261 mtd->erasesize = b47s->blocksize; in bcm47xxsflash_fill_mtd()
340 b47s->blocksize = sflash->blocksize; in bcm47xxsflash_bcma_probe()
/linux/drivers/scsi/mpt3sas/
H A Dmpt3sas_warpdrive.c200 le16_to_cpu(vol_pg0->BlockSize)) / 1024, in mpt3sas_init_warpdrive_properties()
201 le16_to_cpu(vol_pg0->BlockSize)); in mpt3sas_init_warpdrive_properties()
211 le16_to_cpu(vol_pg0->BlockSize)) / 1024); in mpt3sas_init_warpdrive_properties()
215 block_sz = le16_to_cpu(vol_pg0->BlockSize); in mpt3sas_init_warpdrive_properties()
219 raid_device->handle, le16_to_cpu(vol_pg0->BlockSize)); in mpt3sas_init_warpdrive_properties()
233 raid_device->block_sz = le16_to_cpu(vol_pg0->BlockSize); in mpt3sas_init_warpdrive_properties()
/linux/fs/isofs/
H A Dinode.c160 unsigned int blocksize; member
430 popt->blocksize = n; in isofs_parse_param()
462 seq_printf(m, ",blocksize=%lu", root->d_sb->s_blocksize); in isofs_show_options()
598 * First of all, get the hardware blocksize for this device. in isofs_fill_super()
599 * If we don't know what it is, or the hardware blocksize is in isofs_fill_super()
600 * larger than the blocksize the user specified, then use in isofs_fill_super()
612 opt->blocksize = sb_min_blocksize(s, opt->blocksize); in isofs_fill_super()
737 if (orig_zonesize < opt->blocksize) in isofs_fill_super()
780 * we may need to change the device blocksize, and would in isofs_fill_super()
794 * to change the device blocksize, so release the buffer now. in isofs_fill_super()
[all …]
/linux/fs/cramfs/
H A DREADME157 2. Writer chooses blocksize; kernel adapts but rejects blocksize >
160 3. Writer chooses blocksize; kernel adapts even to blocksize >
/linux/fs/qnx6/
H A Dsuper_mmi.c71 /* set new blocksize */ in qnx6_mmi_fill_super()
73 pr_err("unable to set blocksize\n"); in qnx6_mmi_fill_super()
76 /* blocksize invalidates bh - pull it back in */ in qnx6_mmi_fill_super()
/linux/include/uapi/linux/
H A Dqnx4_fs.h30 #define QNX4_BLOCK_SIZE 0x200 /* blocksize of 512 bytes */
31 #define QNX4_BLOCK_SIZE_BITS 9 /* blocksize shift */
/linux/Documentation/devicetree/bindings/riscv/
H A Dcpus.yaml99 The blocksize in bytes for the Zicbom cache operations.
104 The blocksize in bytes for the Zicbop cache operations.
109 The blocksize in bytes for the Zicboz cache operations.

123456789