/linux-6.6.21/Documentation/filesystems/ext4/ |
D | blockmap.rst | 8 | 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-6.6.21/drivers/s390/char/ |
D | tape_char.c | 98 tapechar_check_idalbuffer(struct tape_device *device, size_t block_size) in tapechar_check_idalbuffer() argument 103 device->char_data.idal_buf->size == block_size) in tapechar_check_idalbuffer() 106 if (block_size > MAX_BLOCKSIZE) { in tapechar_check_idalbuffer() 108 block_size, MAX_BLOCKSIZE); in tapechar_check_idalbuffer() 113 new = idal_buffer_alloc(block_size, 0); in tapechar_check_idalbuffer() 133 size_t block_size; in tapechar_read() local 149 if (device->char_data.block_size != 0) { in tapechar_read() 150 if (count < device->char_data.block_size) { in tapechar_read() 155 block_size = device->char_data.block_size; in tapechar_read() 157 block_size = count; in tapechar_read() [all …]
|
/linux-6.6.21/fs/befs/ |
D | super.c | 34 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-6.6.21/fs/ntfs3/lib/ |
D | lzx_decompress.c | 352 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() 612 u32 block_size; in lzx_decompress() local [all …]
|
/linux-6.6.21/sound/soc/intel/avs/ |
D | topology.c | 36 u32 block_size, u32 token, u32 *offset) in avs_tplg_vendor_array_lookup() argument 40 while (block_size > 0) { in avs_tplg_vendor_array_lookup() 44 if (tuples_size > block_size) in avs_tplg_vendor_array_lookup() 53 block_size -= tuples_size; in avs_tplg_vendor_array_lookup() 72 u32 block_size, u32 token, u32 *offset) in avs_tplg_vendor_array_lookup_next() argument 77 if (tuples_size > block_size) in avs_tplg_vendor_array_lookup_next() 81 block_size -= tuples_size; in avs_tplg_vendor_array_lookup_next() 83 ret = avs_tplg_vendor_array_lookup(tuples, block_size, token, offset); in avs_tplg_vendor_array_lookup_next() 101 u32 block_size, u32 entry_id_token, u32 *size) in avs_tplg_vendor_entry_size() argument 105 ret = avs_tplg_vendor_array_lookup_next(tuples, block_size, entry_id_token, size); in avs_tplg_vendor_entry_size() [all …]
|
/linux-6.6.21/drivers/net/wireless/microchip/wilc1000/ |
D | sdio.c | 29 u32 block_size; member 50 u32 block_size; member 102 func->cur_blksize = cmd->block_size; in wilc_sdio_cmd53() 104 size = cmd->count * cmd->block_size; in wilc_sdio_cmd53() 331 u32 block_size) in wilc_sdio_set_block_size() argument 341 cmd.data = (u8)block_size; in wilc_sdio_set_block_size() 350 cmd.data = (u8)(block_size >> 8); in wilc_sdio_set_block_size() 404 cmd.block_size = sdio_priv->block_size; in wilc_sdio_write_reg() 418 u32 block_size = sdio_priv->block_size; in wilc_sdio_write() local 438 nblk = size / block_size; in wilc_sdio_write() [all …]
|
/linux-6.6.21/drivers/comedi/ |
D | comedi_buf.c | 379 int block_size = num_bytes - count; in comedi_buf_munge() local 383 if (block_size > buf_end) in comedi_buf_munge() 384 block_size = buf_end; in comedi_buf_munge() 388 block_size, async->munge_chan); in comedi_buf_munge() 396 async->munge_chan += block_size / num_sample_bytes; in comedi_buf_munge() 398 async->munge_count += block_size; in comedi_buf_munge() 399 async->munge_ptr += block_size; in comedi_buf_munge() 401 count += block_size; in comedi_buf_munge() 564 unsigned int block_size; in comedi_buf_memcpy_to() local 567 block_size = async->prealloc_bufsz - write_ptr; in comedi_buf_memcpy_to() [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/ |
D | i915_scatterlist.c | 86 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-6.6.21/drivers/crypto/ccp/ |
D | ccp-crypto-sha.c | 65 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-6.6.21/fs/verity/ |
D | hash_algs.c | 17 .block_size = SHA256_BLOCK_SIZE, 23 .block_size = SHA512_BLOCK_SIZE, 84 if (WARN_ON_ONCE(alg->block_size != crypto_shash_blocksize(tfm))) in fsverity_get_hash_alg() 136 padded_salt_size = round_up(salt_size, alg->block_size); in fsverity_prepare_hash_state() 191 err = crypto_shash_finup(desc, data, params->block_size, out); in fsverity_hash_block() 193 err = crypto_shash_digest(desc, data, params->block_size, out); in fsverity_hash_block() 245 BUG_ON(!is_power_of_2(alg->block_size)); in fsverity_check_hash_algs()
|
D | verify.c | 130 if (memchr_inv(data, 0, params->block_size)) { in verify_data_block() 170 (params->block_size - 1); in verify_data_block() 251 const unsigned int block_size = vi->tree_params.block_size; in verify_data_blocks() local 254 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offset, block_size))) in verify_data_blocks() 269 offset += block_size; in verify_data_blocks() 270 len -= block_size; in verify_data_blocks()
|
D | enable.c | 38 memset(&cur->data[cur->filled], 0, params->block_size - cur->filled); in hash_one_block() 57 params->block_size); in write_merkle_tree_block() 98 buffers[level].data = kzalloc(params->block_size, GFP_KERNEL); in build_merkle_tree() 111 for (offset = 0; offset < data_size; offset += params->block_size) { in build_merkle_tree() 115 buffers[-1].filled = min_t(u64, params->block_size, in build_merkle_tree() 134 params->block_size) { in build_merkle_tree() 200 desc->log_blocksize = ilog2(arg->block_size); in enable_verity() 334 if (!is_power_of_2(arg.block_size)) in fsverity_ioctl_enable()
|
/linux-6.6.21/arch/powerpc/mm/ |
D | init_64.c | 509 static void update_memory_block_size(unsigned long *block_size, unsigned long mem_size) in update_memory_block_size() argument 513 for (; *block_size > min_memory_block_size; *block_size >>= 2) { in update_memory_block_size() 514 if ((mem_size & *block_size) == 0) in update_memory_block_size() 523 unsigned long *block_size = (unsigned long *)data; in probe_memory_block_size() local 543 *block_size = DEFAULT_MEMORY_BLOCK_SIZE; in probe_memory_block_size() 545 *block_size = of_read_number(prop, dt_root_size_cells); in probe_memory_block_size() 582 update_memory_block_size(block_size, size); in probe_memory_block_size() 594 if (*block_size > SZ_256M) in probe_memory_block_size() 595 *block_size = SZ_256M; in probe_memory_block_size()
|
/linux-6.6.21/drivers/target/ |
D | target_core_sbc.c | 62 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 …]
|
D | target_core_file.c | 293 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() 407 start = cmd->t_task_lba * dev->dev_attrib.block_size; in fd_execute_sync_cache() 434 loff_t pos = cmd->t_task_lba * se_dev->dev_attrib.block_size; in fd_execute_write_same() 451 cmd->t_data_sg[0].length != cmd->se_dev->dev_attrib.block_size) { in fd_execute_write_same() 456 cmd->se_dev->dev_attrib.block_size); in fd_execute_write_same() 468 len += se_dev->dev_attrib.block_size; in fd_execute_write_same() 570 loff_t pos = lba * se_dev->dev_attrib.block_size; in fd_execute_unmap() 571 unsigned int len = nolb * se_dev->dev_attrib.block_size; in fd_execute_unmap() [all …]
|
/linux-6.6.21/arch/riscv/mm/ |
D | cacheflush.c | 101 const char *name, u32 *block_size, in cbo_get_block_size() argument 113 if (!*block_size) { in cbo_get_block_size() 114 *block_size = val; in cbo_get_block_size() 116 } else if (*block_size != val) { in cbo_get_block_size()
|
/linux-6.6.21/fs/nfsd/ |
D | blocklayoutxdr.c | 117 u32 block_size) in nfsd4_block_decode_layoutupdate() argument 152 if (bex.foff & (block_size - 1)) { in nfsd4_block_decode_layoutupdate() 158 if (bex.len & (block_size - 1)) { in nfsd4_block_decode_layoutupdate() 164 if (bex.soff & (block_size - 1)) { in nfsd4_block_decode_layoutupdate() 189 u32 block_size) in nfsd4_scsi_decode_layoutupdate() argument 217 if (val & (block_size - 1)) { in nfsd4_scsi_decode_layoutupdate() 224 if (val & (block_size - 1)) { in nfsd4_scsi_decode_layoutupdate()
|
/linux-6.6.21/drivers/mtd/ |
D | sm_ftl.c | 197 WARN_ON(boffset >= ftl->block_size); in sm_mkoffset() 202 return (zone * SM_MAX_ZONE_SIZE + block) * ftl->block_size + boffset; in sm_mkoffset() 210 *boffset = do_div(offset, ftl->block_size); in sm_break_offset() 385 for (boffset = 0; boffset < ftl->block_size; in sm_write_block() 456 for (boffset = 0; boffset < ftl->block_size; boffset += SM_SECTOR_SIZE) in sm_mark_block_bad() 472 erase.len = ftl->block_size; in sm_erase_block() 514 for (boffset = 0; boffset < ftl->block_size; in sm_check_block() 580 ftl->block_size = 8 * SM_SECTOR_SIZE; in sm_get_media_info() 589 ftl->block_size = 8 * SM_SECTOR_SIZE; in sm_get_media_info() 599 ftl->block_size = 16 * SM_SECTOR_SIZE; in sm_get_media_info() [all …]
|
D | rfd_ftl.c | 26 static int block_size = 0; variable 27 module_param(block_size, int, 0); 28 MODULE_PARM_DESC(block_size, "Block size to use by RFD, defaults to erase unit size"); 74 u_int block_size; /* size of erase unit */ member 98 block->offset = part->block_size * block_no; in build_block_map() 158 sectors_per_block = part->block_size / SECTOR_SIZE; in scan_header() 159 part->total_blocks = (u32)part->mbd.mtd->size / part->block_size; in scan_header() 202 rc = mtd_read(part->mbd.mtd, i * part->block_size, in scan_header() 278 erase->len = part->block_size; in erase_block() 418 old_sector_block = *old_sector / part->block_size; in reclaim_block() [all …]
|
/linux-6.6.21/drivers/md/ |
D | dm-writecache.c | 72 __le32 block_size; member 155 unsigned int block_size; member 557 region.count = max(4096U, wc->block_size) >> SECTOR_SHIFT; in ssd_commit_superblock() 786 writecache_flush_region(wc, memory_data(wc, e), wc->block_size); in writecache_flush_entry() 1252 unsigned int remaining_size = wc->block_size; in bio_copy_block() 1366 dm_accept_partial_bio(bio, wc->block_size >> SECTOR_SHIFT); in writecache_map_read() 1375 wc->stats.reads += (bio->bi_iter.bi_size - wc->block_size) >> wc->block_size_bits; in writecache_map_read() 1385 unsigned int bio_size = wc->block_size; in writecache_bio_copy_ssd() 1409 read_original_sector(wc, e) + (wc->block_size >> SECTOR_SHIFT)) in writecache_bio_copy_ssd() 1417 bio_size += wc->block_size; in writecache_bio_copy_ssd() [all …]
|
/linux-6.6.21/fs/squashfs/ |
D | lzo_wrapper.c | 30 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()
|
D | lz4_wrapper.c | 54 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-6.6.21/drivers/gpu/drm/nouveau/nvkm/core/ |
D | mm.c | 131 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()
|
/linux-6.6.21/drivers/crypto/aspeed/ |
D | aspeed-hace-hash.c | 123 remain = length % rctx->block_size; in aspeed_ahash_dma_prepare() 174 remain = (rctx->total + rctx->bufcnt) % rctx->block_size; in aspeed_ahash_dma_prepare_sg() 205 rctx->block_size * 2, in aspeed_ahash_dma_prepare_sg() 260 rctx->block_size * 2, DMA_TO_DEVICE); in aspeed_ahash_dma_prepare_sg() 301 rctx->block_size * 2, DMA_TO_DEVICE); in aspeed_ahash_transfer() 362 rctx->block_size * 2, DMA_TO_DEVICE); in aspeed_ahash_hmac_resume() 365 memcpy(rctx->buffer, bctx->opad, rctx->block_size); in aspeed_ahash_hmac_resume() 366 memcpy(rctx->buffer + rctx->block_size, rctx->digest, rctx->digsize); in aspeed_ahash_hmac_resume() 368 rctx->bufcnt = rctx->block_size + rctx->digsize; in aspeed_ahash_hmac_resume() 369 rctx->digcnt[0] = rctx->block_size + rctx->digsize; in aspeed_ahash_hmac_resume() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | i2c.c | 92 u16 block_size; member 344 tran_buf = kmalloc(mlxsw_i2c->block_size + MLXSW_I2C_ADDR_BUF_SIZE, in mlxsw_i2c_write() 351 chunk_size = (in_mbox_size > mlxsw_i2c->block_size) ? in mlxsw_i2c_write() 352 mlxsw_i2c->block_size : in_mbox_size; in mlxsw_i2c_write() 356 mlxsw_i2c->block_size * i, chunk_size); in mlxsw_i2c_write() 427 num = reg_size / mlxsw_i2c->block_size; in mlxsw_i2c_cmd() 428 if (reg_size % mlxsw_i2c->block_size) in mlxsw_i2c_cmd() 448 num = DIV_ROUND_UP(reg_size, mlxsw_i2c->block_size); in mlxsw_i2c_cmd() 464 chunk_size = (reg_size > mlxsw_i2c->block_size) ? in mlxsw_i2c_cmd() 465 mlxsw_i2c->block_size : reg_size; in mlxsw_i2c_cmd() [all …]
|