Home
last modified time | relevance | path

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

12345678910>>...27

/kernel/linux/linux-6.6/fs/hfsplus/
Dwrapper.c166 u32 blocksize; in hfsplus_read_wrapper() local
170 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE); in hfsplus_read_wrapper()
171 if (!blocksize) in hfsplus_read_wrapper()
174 sbi->min_io_size = blocksize; in hfsplus_read_wrapper()
232 blocksize = be32_to_cpu(sbi->s_vhdr->blocksize); in hfsplus_read_wrapper()
237 if (blocksize < HFSPLUS_SECTOR_SIZE || ((blocksize - 1) & blocksize)) in hfsplus_read_wrapper()
239 sbi->alloc_blksz = blocksize; in hfsplus_read_wrapper()
240 sbi->alloc_blksz_shift = ilog2(blocksize); in hfsplus_read_wrapper()
241 blocksize = min_t(u32, sbi->alloc_blksz, PAGE_SIZE); in hfsplus_read_wrapper()
246 while (part_start & ((blocksize >> HFSPLUS_SECTOR_SHIFT) - 1)) in hfsplus_read_wrapper()
[all …]
/kernel/linux/linux-5.10/fs/hfsplus/
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 …]
/kernel/linux/linux-5.10/fs/nilfs2/
Dthe_nilfs.c199 * @blocksize: place to store block size
202 * exponent information written in @sbp and stores it in @blocksize,
209 struct nilfs_super_block *sbp, int *blocksize) 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()
255 int blocksize; in load_nilfs() local
276 err = nilfs_get_blocksize(sb, sbp[0], &blocksize); in load_nilfs()
280 if (blocksize != nilfs->ns_blocksize) { in load_nilfs()
282 "blocksize differs between two super blocks (%d != %d)", in load_nilfs()
283 blocksize, nilfs->ns_blocksize); in load_nilfs()
[all …]
/kernel/linux/linux-6.6/fs/nilfs2/
Dthe_nilfs.c199 * @blocksize: place to store block size
202 * exponent information written in @sbp and stores it in @blocksize,
209 struct nilfs_super_block *sbp, int *blocksize) 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()
255 int blocksize; in load_nilfs() local
276 err = nilfs_get_blocksize(sb, sbp[0], &blocksize); in load_nilfs()
280 if (blocksize != nilfs->ns_blocksize) { in load_nilfs()
282 "blocksize differs between two super blocks (%d != %d)", in load_nilfs()
283 blocksize, nilfs->ns_blocksize); in load_nilfs()
[all …]
/kernel/linux/linux-6.6/block/partitions/
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 …]
/kernel/linux/linux-5.10/block/partitions/
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 …]
/kernel/linux/linux-6.6/sound/pci/emu10k1/
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 …]
/kernel/linux/linux-5.10/sound/pci/emu10k1/
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 …]
/kernel/linux/linux-6.6/include/crypto/
Dctr.h25 int blocksize = crypto_skcipher_chunksize(tfm); in crypto_ctr_encrypt_walk() local
30 /* avoid integer division due to variable blocksize parameter */ in crypto_ctr_encrypt_walk()
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()
/kernel/linux/linux-5.10/include/crypto/
Dctr.h25 int blocksize = crypto_skcipher_chunksize(tfm); in crypto_ctr_encrypt_walk() local
30 /* avoid integer division due to variable blocksize parameter */ in crypto_ctr_encrypt_walk()
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()
/kernel/linux/linux-5.10/drivers/crypto/qce/
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 …]
/kernel/linux/linux-5.10/fs/affs/
Dsuper.c191 int *blocksize, char **prefix, char *volume, unsigned long *mount_opts) in parse_options() argument
202 *blocksize = -1; in parse_options()
221 pr_warn("Invalid blocksize (512, 1024, 2048, 4096 allowed)\n"); 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()
393 pr_debug("initial blocksize=%d, #blocks=%d\n", 512, size); 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()
[all …]
/kernel/linux/linux-6.6/fs/affs/
Dsuper.c191 int *blocksize, char **prefix, char *volume, unsigned long *mount_opts) in parse_options() argument
202 *blocksize = -1; in parse_options()
221 pr_warn("Invalid blocksize (512, 1024, 2048, 4096 allowed)\n"); 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()
393 pr_debug("initial blocksize=%d, #blocks=%d\n", 512, size); 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()
[all …]
/kernel/linux/linux-5.10/include/linux/
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
/kernel/linux/linux-6.6/drivers/mtd/parsers/
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 …]
/kernel/linux/linux-5.10/drivers/mtd/parsers/
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 …]
/kernel/linux/linux-6.6/drivers/crypto/qce/
Dsha.c193 unsigned int blocksize; in qce_ahash_update() local
195 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_update()
201 if (total <= blocksize) { in qce_ahash_update()
220 hash_later = total % blocksize; in qce_ahash_update()
238 hash_later = blocksize; in qce_ahash_update()
246 /* here nbytes is multiple of blocksize */ in qce_ahash_update()
337 unsigned int blocksize; in qce_ahash_hmac_setkey() local
343 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_hmac_setkey()
346 if (keylen <= blocksize) { in qce_ahash_hmac_setkey()
408 unsigned int blocksize; member
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/
Dvmw_surface_cache.h75 desc->blockSize.width); in vmw_surface_get_size_in_blocks()
77 desc->blockSize.height); in vmw_surface_get_size_in_blocks()
79 desc->blockSize.depth); in vmw_surface_get_size_in_blocks()
197 const u32 bw = desc->blockSize.width, bh = desc->blockSize.height; in vmw_surface_get_pixel_offset()
198 const u32 bd = desc->blockSize.depth; in vmw_surface_get_pixel_offset()
400 desc->blockSize.width) * in vmw_surface_setup_cache()
407 desc->blockSize.height) * in vmw_surface_setup_cache()
456 loc->z *= desc->blockSize.depth; in vmw_surface_get_loc()
459 loc->y *= desc->blockSize.height; in vmw_surface_get_loc()
461 loc->x *= desc->blockSize.width; in vmw_surface_get_loc()
[all …]
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dcryptouser.h49 unsigned int blocksize; member
54 unsigned int blocksize; member
61 unsigned int blocksize; member
69 unsigned int blocksize; member
/kernel/linux/linux-5.10/fs/ocfs2/
Docfs2_fs.h30 * blocksize of 2K, it is 4096 bytes into disk.
42 * Blocks cannot be bigger than clusters, so the maximum blocksize is the
414 on the blocksize. OCFS2's maximum
415 blocksize, 4K, requires 16 parity bits,
535 * 255 * sizeof(__le16) == 512B, within the 512B block minimum blocksize.
601 __le32 s_blocksize_bits; /* Blocksize for this fs */
626 * our smallest blocksize, which is 512 bytes. To ensure this,
628 * will not be available on the smallest blocksize.
1231 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()
[all …]
/kernel/linux/linux-6.6/fs/ocfs2/
Docfs2_fs.h28 * blocksize of 2K, it is 4096 bytes into disk.
40 * Blocks cannot be bigger than clusters, so the maximum blocksize is the
412 on the blocksize. OCFS2's maximum
413 blocksize, 4K, requires 16 parity bits,
533 * 255 * sizeof(__le16) == 512B, within the 512B block minimum blocksize.
599 __le32 s_blocksize_bits; /* Blocksize for this fs */
624 * our smallest blocksize, which is 512 bytes. To ensure this,
626 * will not be available on the smallest blocksize.
1229 static inline struct ocfs2_disk_dqtrailer *ocfs2_block_dqtrailer(int blocksize, in ocfs2_block_dqtrailer() argument
1233 ptr += blocksize - OCFS2_QBLK_RESERVED_SPACE; in ocfs2_block_dqtrailer()
[all …]
/kernel/liteos_a/fs/vfs/bcache/src/
Dbcache.c311 … if (memcpy_s(block->data + pos, bc->blockSize - pos, bc->rwBuffer + pos, currentSize) != EOK) { in BcacheGetFlag()
719 UINT32 blockSize) in BcacheInitCache() argument
731 if (!GetValLog2(blockSize)) { in BcacheInitCache()
732 PRINT_ERR("GetValLog2(%u) return 0.\n", blockSize); in BcacheInitCache()
738 bc->blockSize = blockSize; in BcacheInitCache()
739 bc->blockSizeLog2 = GetValLog2(blockSize); in BcacheInitCache()
745 blockNum = (memSize - DMA_ALLGN) / (sizeof(OsBcacheBlock) + bc->blockSize); in BcacheInitCache()
753 g_dataSize = bc->blockSize; in BcacheInitCache()
769 dataMem += bc->blockSize; in BcacheInitCache()
803 UINT32 blockSize, in BlockCacheDrvCreate() argument
[all …]
/kernel/linux/linux-6.6/net/sunrpc/auth_gss/
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 …]
/kernel/linux/linux-5.10/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()
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()
/kernel/linux/linux-6.6/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()
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()

12345678910>>...27