Home
last modified time | relevance | path

Searched refs:block_size (Results 1 – 25 of 246) sorted by relevance

12345678910

/linux/Documentation/filesystems/ext4/
H A Dblockmap.rst8 | 12 | Indirect block: (file blocks 12 to (``$block_size`` / 4) + 11, or 12 to 103…
13 | | | 0 to (``$block_size`` / 4) | Direct map to (``$block_size`` / 4) blocks…
16 … | Double-indirect block: (file blocks ``$block_size``/4 + 12 to (``$block_size`` / 4) ^ 2 + (``…
21 | | | 0 to (``$block_size`` / 4) | Map to (``$block_size`` / 4) indirect bl…
26 … | | | | 0 to (``$block_size`` / 4) | Direct map to (``$block_s…
30 …le blocks (``$block_size`` / 4) ^ 2 + (``$block_size`` / 4) + 12 to (``$block_size`` / 4) ^ 3 + (`…
35 | | | 0 to (``$block_size`` / 4) | Map to (``$block_size`` / 4) double indi…
40 … | | | | 0 to (``$block_size`` / 4) | Map to (``$block_siz…
45 … | | | | 0 to (``$block_size`` / 4) | Direct map to (``$block_s…
/linux/tools/testing/selftests/riscv/hwprobe/
H A Dcbo.c120 __u64 block_size; in test_zicbop() local
129 block_size = pair.value; in test_zicbop()
131 is_power_of_2(block_size), "Zicbop block size\n"); in test_zicbop()
132 ksft_print_msg("Zicbop block size: %llu\n", block_size); in test_zicbop()
158 __u64 block_size; in test_zicbom() local
162 block_size = pair.value; in test_zicbom()
164 is_power_of_2(block_size), "Zicbom block size\n"); in test_zicbom()
165 ksft_print_msg("Zicbom block size: %llu\n", block_size); in test_zicbom()
168 cbo_clean(&mem[block_size]); in test_zicbom()
172 cbo_flush(&mem[block_size]); in test_zicbom()
[all …]
/linux/lib/crypto/
H A Dsha3.c183 size_t nblocks, size_t block_size) in sha3_absorb_blocks_generic() argument
186 for (size_t i = 0; i < block_size; i += 8) in sha3_absorb_blocks_generic()
189 data += block_size; in sha3_absorb_blocks_generic()
202 const size_t block_size = ctx->block_size; in __sha3_update() local
206 WARN_ON_ONCE(absorb_offset >= block_size); in __sha3_update()
208 if (absorb_offset && absorb_offset + in_len >= block_size) { in __sha3_update()
210 block_size - absorb_offset); in __sha3_update()
211 in += block_size - absorb_offset; in __sha3_update()
212 in_len -= block_size - absorb_offset; in __sha3_update()
217 if (in_len >= block_size) { in __sha3_update()
[all …]
/linux/fs/befs/
H A Dsuper.c34 befs_sb->block_size = fs32_to_cpu(sb, disk_sb->block_size); in befs_load_sb()
76 if ((befs_sb->block_size != 1024) in befs_check_sb()
77 && (befs_sb->block_size != 2048) in befs_check_sb()
78 && (befs_sb->block_size != 4096) in befs_check_sb()
79 && (befs_sb->block_size != 8192)) { in befs_check_sb()
80 befs_error(sb, "invalid blocksize: %u", befs_sb->block_size); in befs_check_sb()
84 if (befs_sb->block_size > PAGE_SIZE) { in befs_check_sb()
86 "than system pagesize(%lu)", befs_sb->block_size, in befs_check_sb()
96 if ((1 << befs_sb->block_shift) != befs_sb->block_size) { in befs_check_sb()
/linux/fs/ntfs3/lib/
H A Dlzx_decompress.c352 u32 block_size; in lzx_read_block_header() local
364 block_size = LZX_DEFAULT_BLOCK_SIZE; in lzx_read_block_header()
366 block_size = 0; in lzx_read_block_header()
367 block_size |= bitstream_read_bits(is, 8); in lzx_read_block_header()
368 block_size <<= 8; in lzx_read_block_header()
369 block_size |= bitstream_read_bits(is, 8); in lzx_read_block_header()
466 *block_size_ret = block_size; in lzx_read_block_header()
473 int block_type, u32 block_size, in lzx_decompress_block() argument
477 u8 * const block_end = out_next + block_size; in lzx_decompress_block()
611 u32 block_size; in lzx_decompress() local
[all …]
/linux/drivers/s390/char/
H A Dsclp_mem.c192 unsigned long addr, block_size; in sclp_config_mem_store() local
203 block_size = memory_block_size_bytes(); in sclp_config_mem_store()
204 addr = sclp_mem->id * block_size; in sclp_config_mem_store()
218 rc = sclp_mem_change_state(addr, block_size, 1); in sclp_config_mem_store()
226 __arch_set_page_nodat((void *)__va(addr), block_size >> PAGE_SHIFT); in sclp_config_mem_store()
227 rc = __add_memory(0, addr, block_size, in sclp_config_mem_store()
231 sclp_mem_change_state(addr, block_size, 0); in sclp_config_mem_store()
248 sclp_mem_change_state(addr, block_size, 0); in sclp_config_mem_store()
249 __remove_memory(addr, block_size); in sclp_config_mem_store()
255 end = start + (block_size >> KASAN_SHADOW_SCALE_SHIFT); in sclp_config_mem_store()
[all …]
/linux/drivers/gpu/drm/i915/
H A Di915_scatterlist.c86 u64 block_size, offset, prev_end; in i915_rsgt_from_mm_node() local
115 block_size = node->size << PAGE_SHIFT; in i915_rsgt_from_mm_node()
118 while (block_size) { in i915_rsgt_from_mm_node()
133 len = min_t(u64, block_size, max_segment - sg->length); in i915_rsgt_from_mm_node()
138 block_size -= len; in i915_rsgt_from_mm_node()
203 u64 block_size, offset; in i915_rsgt_from_buddy_resource() local
205 block_size = min_t(u64, size, drm_buddy_block_size(mm, block)); in i915_rsgt_from_buddy_resource()
208 while (block_size) { in i915_rsgt_from_buddy_resource()
223 len = min_t(u64, block_size, max_segment - sg->length); in i915_rsgt_from_buddy_resource()
228 block_size -= len; in i915_rsgt_from_buddy_resource()
/linux/drivers/crypto/ccp/
H A Dccp-crypto-sha.c65 unsigned int block_size = in ccp_do_sha_update() local
74 if (!final && (len <= block_size)) { in ccp_do_sha_update()
86 rctx->hash_rem = final ? 0 : len & (block_size - 1); in ccp_do_sha_update()
90 rctx->hash_cnt -= block_size; in ccp_do_sha_update()
91 rctx->hash_rem = block_size; in ccp_do_sha_update()
189 unsigned int block_size = in ccp_sha_init() local
199 memcpy(rctx->buf, ctx->u.sha.ipad, block_size); in ccp_sha_init()
200 rctx->buf_count = block_size; in ccp_sha_init()
277 unsigned int block_size = crypto_shash_blocksize(shash); in ccp_sha_setkey() local
289 if (key_len > block_size) { in ccp_sha_setkey()
[all …]
/linux/arch/openrisc/kernel/
H A Dcacheinfo.c22 this_leaf->coherency_line_size = cache->block_size; in ci_leaf_init()
47 cpuinfo->dcache.block_size = 16 << ((dccfgr & SPR_DCCFGR_CBS) >> 7); in init_cache_level()
49 cpuinfo->dcache.sets * cpuinfo->dcache.ways * cpuinfo->dcache.block_size; in init_cache_level()
53 cpuinfo->dcache.size, cpuinfo->dcache.block_size, in init_cache_level()
62 cpuinfo->icache.block_size = 16 << ((iccfgr & SPR_ICCFGR_CBS) >> 7); in init_cache_level()
64 cpuinfo->icache.sets * cpuinfo->icache.ways * cpuinfo->icache.block_size; in init_cache_level()
68 cpuinfo->icache.size, cpuinfo->icache.block_size, in init_cache_level()
/linux/lib/crypto/arm64/
H A Dsha3.h16 size_t nblocks, size_t block_size);
19 size_t nblocks, size_t block_size) in sha3_absorb_blocks() argument
27 block_size); in sha3_absorb_blocks()
28 data += (nblocks - rem) * block_size; in sha3_absorb_blocks()
32 sha3_absorb_blocks_generic(state, data, nblocks, block_size); in sha3_absorb_blocks()
/linux/fs/verity/
H A Dhash_algs.c15 .block_size = SHA256_BLOCK_SIZE,
21 .block_size = SHA512_BLOCK_SIZE,
70 padded_salt_size = round_up(salt_size, alg->block_size); in fsverity_prepare_hash_state()
109 fsverity_hash_buffer(params->hash_alg, data, params->block_size, in fsverity_hash_block()
117 sha256_update(&ctx.sha256, data, params->block_size); in fsverity_hash_block()
122 sha512_update(&ctx.sha512, data, params->block_size); in fsverity_hash_block()
182 BUG_ON(!is_power_of_2(alg->block_size)); in fsverity_check_hash_algs()
H A Dverify.c160 if (memchr_inv(dblock->data, 0, params->block_size)) { in verify_data_block()
200 (params->block_size - 1); in verify_data_block()
315 ctx->pending_blocks[1].data, params->block_size, in fsverity_verify_pending_blocks()
339 const unsigned int block_size = params->block_size; in fsverity_add_data_blocks() local
342 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offset, block_size))) in fsverity_add_data_blocks()
354 offset += block_size; in fsverity_add_data_blocks()
355 len -= block_size; in fsverity_add_data_blocks()
H A Denable.c36 memset(&cur->data[cur->filled], 0, params->block_size - cur->filled); in hash_one_block()
52 params->block_size); in write_merkle_tree_block()
93 buffers[level].data = kzalloc(params->block_size, GFP_KERNEL); in build_merkle_tree()
106 for (offset = 0; offset < data_size; offset += params->block_size) { in build_merkle_tree()
110 buffers[-1].filled = min_t(u64, params->block_size, in build_merkle_tree()
129 params->block_size) { in build_merkle_tree()
195 desc->log_blocksize = ilog2(arg->block_size); in enable_verity()
329 if (!is_power_of_2(arg.block_size)) in fsverity_ioctl_enable()
/linux/include/crypto/
H A Dsha3.h62 u8 block_size; /* Block size in bytes */ member
120 .ctx.block_size = SHA3_224_BLOCK_SIZE, in sha3_224_init()
136 .ctx.block_size = SHA3_256_BLOCK_SIZE, in sha3_256_init()
152 .ctx.block_size = SHA3_384_BLOCK_SIZE, in sha3_384_init()
168 .ctx.block_size = SHA3_512_BLOCK_SIZE, in sha3_512_init()
213 .ctx.block_size = SHAKE128_BLOCK_SIZE, in shake128_init()
228 .ctx.block_size = SHAKE256_BLOCK_SIZE, in shake256_init()
/linux/lib/crypto/s390/
H A Dsha3.h14 size_t nblocks, size_t block_size) in sha3_absorb_blocks() argument
22 switch (block_size) { in sha3_absorb_blocks()
25 data, nblocks * block_size); in sha3_absorb_blocks()
33 data, nblocks * block_size); in sha3_absorb_blocks()
37 data, nblocks * block_size); in sha3_absorb_blocks()
41 data, nblocks * block_size); in sha3_absorb_blocks()
45 sha3_absorb_blocks_generic(state, data, nblocks, block_size); in sha3_absorb_blocks()
/linux/drivers/comedi/
H A Dcomedi_buf.c346 unsigned int block_size = in comedi_buf_munge() local
350 block_size, async->munge_chan); in comedi_buf_munge()
358 async->munge_chan += block_size / num_sample_bytes; in comedi_buf_munge()
360 async->munge_count += block_size; in comedi_buf_munge()
361 async->munge_ptr += block_size; in comedi_buf_munge()
364 count += block_size; in comedi_buf_munge()
583 unsigned int block_size = min(num_bytes, PAGE_SIZE - offset); in comedi_buf_memcpy_to() local
586 data, block_size); in comedi_buf_memcpy_to()
588 data += block_size; in comedi_buf_memcpy_to()
589 num_bytes -= block_size; in comedi_buf_memcpy_to()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/hubbub/dcn20/
H A Ddcn20_hubbub.c336 enum dcn_hubbub_page_table_block_size block_size = 0; in page_table_block_size_to_hw() local
340 block_size = DCN_PAGE_TABLE_BLOCK_SIZE_4KB; in page_table_block_size_to_hw()
343 block_size = DCN_PAGE_TABLE_BLOCK_SIZE_8KB; in page_table_block_size_to_hw()
346 block_size = DCN_PAGE_TABLE_BLOCK_SIZE_16KB; in page_table_block_size_to_hw()
349 block_size = DCN_PAGE_TABLE_BLOCK_SIZE_32KB; in page_table_block_size_to_hw()
352 block_size = DCN_PAGE_TABLE_BLOCK_SIZE_64KB; in page_table_block_size_to_hw()
355 block_size = DCN_PAGE_TABLE_BLOCK_SIZE_128KB; in page_table_block_size_to_hw()
358 block_size = DCN_PAGE_TABLE_BLOCK_SIZE_256KB; in page_table_block_size_to_hw()
361 block_size = DCN_PAGE_TABLE_BLOCK_SIZE_512KB; in page_table_block_size_to_hw()
364 block_size = DCN_PAGE_TABLE_BLOCK_SIZE_1024KB; in page_table_block_size_to_hw()
[all …]
/linux/drivers/target/
H A Dtarget_core_sbc.c62 put_unaligned_be32(dev->dev_attrib.block_size, &buf[4]); in sbc_emulate_readcapacity()
87 put_unaligned_be32(dev->dev_attrib.block_size, &buf[8]); in sbc_emulate_readcapacity_16()
218 return cmd->se_dev->dev_attrib.block_size * sectors; in sbc_get_size()
444 unsigned int block_size = dev->dev_attrib.block_size; in compare_and_write_callback() local
445 unsigned int compare_len = (cmd->t_task_nolb * block_size); in compare_and_write_callback()
518 if (block_size < PAGE_SIZE) { in compare_and_write_callback()
519 sg_set_page(&write_sg[i], m.page, block_size, in compare_and_write_callback()
520 m.piter.sg->offset + block_size); in compare_and_write_callback()
523 sg_set_page(&write_sg[i], m.page, block_size, in compare_and_write_callback()
526 len -= block_size; in compare_and_write_callback()
[all …]
H A Dtarget_core_file.c293 aio_cmd->iocb.ki_pos = cmd->t_task_lba * dev->dev_attrib.block_size; in fd_execute_rw_aio()
313 u32 block_size, struct scatterlist *sgl, in fd_do_rw() argument
320 loff_t pos = (cmd->t_task_lba * block_size); in fd_do_rw()
405 start = cmd->t_task_lba * dev->dev_attrib.block_size; in fd_execute_sync_cache()
432 loff_t pos = cmd->t_task_lba * se_dev->dev_attrib.block_size; in fd_execute_write_same()
449 cmd->t_data_sg[0].length != cmd->se_dev->dev_attrib.block_size) { in fd_execute_write_same()
454 cmd->se_dev->dev_attrib.block_size); in fd_execute_write_same()
466 len += se_dev->dev_attrib.block_size; in fd_execute_write_same()
566 loff_t pos = lba * se_dev->dev_attrib.block_size; in fd_execute_unmap()
567 unsigned int len = nolb * se_dev->dev_attrib.block_size; in fd_execute_unmap()
[all …]
/linux/drivers/md/
H A Ddm-writecache.c71 __le32 block_size; member
154 unsigned int block_size; member
556 region.count = max(4096U, wc->block_size) >> SECTOR_SHIFT; in ssd_commit_superblock()
785 writecache_flush_region(wc, memory_data(wc, e), wc->block_size); in writecache_flush_entry()
1251 unsigned int remaining_size = wc->block_size; in bio_copy_block()
1365 dm_accept_partial_bio(bio, wc->block_size >> SECTOR_SHIFT); in writecache_map_read()
1374 wc->stats.reads += (bio->bi_iter.bi_size - wc->block_size) >> wc->block_size_bits; in writecache_map_read()
1384 unsigned int bio_size = wc->block_size; in writecache_bio_copy_ssd()
1408 read_original_sector(wc, e) + (wc->block_size >> SECTOR_SHIFT)) in writecache_bio_copy_ssd()
1416 bio_size += wc->block_size; in writecache_bio_copy_ssd()
[all …]
/linux/fs/nfsd/
H A Dblocklayoutxdr.c153 int *nr_iomapsp, u32 block_size) in nfsd4_block_decode_layoutupdate() argument
183 if (bex.foff & (block_size - 1)) { in nfsd4_block_decode_layoutupdate()
192 if (bex.len & (block_size - 1)) { in nfsd4_block_decode_layoutupdate()
201 if (bex.soff & (block_size - 1)) { in nfsd4_block_decode_layoutupdate()
247 int *nr_iomapsp, u32 block_size) in nfsd4_scsi_decode_layoutupdate() argument
272 if (val & (block_size - 1)) { in nfsd4_scsi_decode_layoutupdate()
282 if (val & (block_size - 1)) { in nfsd4_scsi_decode_layoutupdate()
/linux/drivers/cache/
H A Dstarfive_starlink_cache.c106 u32 block_size; in starlink_cache_init() local
113 ret = of_property_read_u32(np, "cache-block-size", &block_size); in starlink_cache_init()
117 if (block_size % STARLINK_CACHE_ALIGN) in starlink_cache_init()
124 riscv_cbom_block_size = block_size; in starlink_cache_init()
/linux/fs/squashfs/
H A Dlzo_wrapper.c30 int block_size = max_t(int, msblk->block_size, SQUASHFS_METADATA_SIZE); in lzo_init() local
35 stream->input = vmalloc(block_size); in lzo_init()
38 stream->output = vmalloc(block_size); in lzo_init()
H A Dlz4_wrapper.c54 int block_size = max_t(int, msblk->block_size, SQUASHFS_METADATA_SIZE); in lz4_init() local
60 stream->input = vmalloc(block_size); in lz4_init()
63 stream->output = vmalloc(block_size); in lz4_init()
/linux/drivers/gpu/drm/nouveau/nvkm/core/
H A Dmm.c131 s = roundup(s, mm->block_size); in nvkm_mm_head()
135 e = rounddown(e, mm->block_size); in nvkm_mm_head()
205 s = roundup(s, mm->block_size); in nvkm_mm_tail()
209 e = rounddown(e, mm->block_size); in nvkm_mm_tail()
257 BUG_ON(block != mm->block_size); in nvkm_mm_init()
261 mm->block_size = block; in nvkm_mm_init()
270 node->offset = roundup(offset, mm->block_size); in nvkm_mm_init()
271 node->length = rounddown(offset + length, mm->block_size); in nvkm_mm_init()

12345678910