/linux-6.1.9/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.1.9/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.1.9/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.1.9/sound/soc/intel/avs/ |
D | topology.c | 35 u32 block_size, u32 token, u32 *offset) in avs_tplg_vendor_array_lookup() argument 39 while (block_size > 0) { in avs_tplg_vendor_array_lookup() 43 if (tuples_size > block_size) in avs_tplg_vendor_array_lookup() 52 block_size -= tuples_size; in avs_tplg_vendor_array_lookup() 71 u32 block_size, u32 token, u32 *offset) in avs_tplg_vendor_array_lookup_next() argument 76 if (tuples_size > block_size) in avs_tplg_vendor_array_lookup_next() 80 block_size -= tuples_size; in avs_tplg_vendor_array_lookup_next() 82 ret = avs_tplg_vendor_array_lookup(tuples, block_size, token, offset); in avs_tplg_vendor_array_lookup_next() 100 u32 block_size, u32 entry_id_token, u32 *size) in avs_tplg_vendor_entry_size() argument 104 ret = avs_tplg_vendor_array_lookup_next(tuples, block_size, entry_id_token, size); in avs_tplg_vendor_entry_size() [all …]
|
/linux-6.1.9/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.1.9/drivers/staging/r8188eu/core/ |
D | rtw_fw.c | 79 u32 blocks, block_size, remain; in block_write() local 83 block_size = MAX_REG_BLOCK_SIZE; in block_write() 85 blocks = size / block_size; in block_write() 86 remain = size % block_size; in block_write() 89 addr = FW_8188E_START_ADDRESS + i * block_size; in block_write() 90 data = buffer + i * block_size; in block_write() 92 ret = rtw_writeN(padapter, addr, block_size, data); in block_write() 98 offset = blocks * block_size; in block_write() 99 block_size = 8; in block_write() 101 blocks = remain / block_size; in block_write() [all …]
|
/linux-6.1.9/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.1.9/drivers/net/wireless/microchip/wilc1000/ |
D | sdio.c | 29 u32 block_size; member 51 u32 block_size; member 103 func->cur_blksize = cmd->block_size; in wilc_sdio_cmd53() 105 size = cmd->count * cmd->block_size; in wilc_sdio_cmd53() 332 u32 block_size) in wilc_sdio_set_block_size() argument 342 cmd.data = (u8)block_size; in wilc_sdio_set_block_size() 351 cmd.data = (u8)(block_size >> 8); in wilc_sdio_set_block_size() 405 cmd.block_size = sdio_priv->block_size; in wilc_sdio_write_reg() 419 u32 block_size = sdio_priv->block_size; in wilc_sdio_write() local 439 nblk = size / block_size; in wilc_sdio_write() [all …]
|
/linux-6.1.9/drivers/gpu/drm/i915/ |
D | i915_scatterlist.c | 86 u64 block_size, offset, prev_end; in i915_rsgt_from_mm_node() local 108 block_size = node->size << PAGE_SHIFT; in i915_rsgt_from_mm_node() 111 while (block_size) { in i915_rsgt_from_mm_node() 126 len = min_t(u64, block_size, max_segment - sg->length); in i915_rsgt_from_mm_node() 131 block_size -= len; in i915_rsgt_from_mm_node() 190 u64 block_size, offset; in i915_rsgt_from_buddy_resource() local 192 block_size = min_t(u64, size, drm_buddy_block_size(mm, block)); in i915_rsgt_from_buddy_resource() 195 while (block_size) { in i915_rsgt_from_buddy_resource() 210 len = min_t(u64, block_size, max_segment - sg->length); in i915_rsgt_from_buddy_resource() 215 block_size -= len; in i915_rsgt_from_buddy_resource()
|
/linux-6.1.9/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.1.9/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() 451 unsigned int block_size = dev->dev_attrib.block_size; in compare_and_write_callback() local 452 unsigned int compare_len = (cmd->t_task_nolb * block_size); in compare_and_write_callback() 515 if (block_size < PAGE_SIZE) { in compare_and_write_callback() 516 sg_set_page(&write_sg[i], m.page, block_size, in compare_and_write_callback() 517 m.piter.sg->offset + block_size); in compare_and_write_callback() 520 sg_set_page(&write_sg[i], m.page, block_size, in compare_and_write_callback() 523 len -= block_size; in compare_and_write_callback() [all …]
|
D | target_core_file.c | 296 aio_cmd->iocb.ki_pos = cmd->t_task_lba * dev->dev_attrib.block_size; in fd_execute_rw_aio() 316 u32 block_size, struct scatterlist *sgl, in fd_do_rw() argument 323 loff_t pos = (cmd->t_task_lba * block_size); in fd_do_rw() 411 start = cmd->t_task_lba * dev->dev_attrib.block_size; in fd_execute_sync_cache() 438 loff_t pos = cmd->t_task_lba * se_dev->dev_attrib.block_size; in fd_execute_write_same() 455 cmd->t_data_sg[0].length != cmd->se_dev->dev_attrib.block_size) { in fd_execute_write_same() 460 cmd->se_dev->dev_attrib.block_size); in fd_execute_write_same() 473 len += se_dev->dev_attrib.block_size; in fd_execute_write_same() 573 loff_t pos = lba * se_dev->dev_attrib.block_size; in fd_execute_unmap() 574 unsigned int len = nolb * se_dev->dev_attrib.block_size; in fd_execute_unmap() [all …]
|
/linux-6.1.9/fs/nfsd/ |
D | blocklayoutxdr.c | 107 u32 block_size) in nfsd4_block_decode_layoutupdate() argument 142 if (bex.foff & (block_size - 1)) { in nfsd4_block_decode_layoutupdate() 148 if (bex.len & (block_size - 1)) { in nfsd4_block_decode_layoutupdate() 154 if (bex.soff & (block_size - 1)) { in nfsd4_block_decode_layoutupdate() 179 u32 block_size) in nfsd4_scsi_decode_layoutupdate() argument 207 if (val & (block_size - 1)) { in nfsd4_scsi_decode_layoutupdate() 214 if (val & (block_size - 1)) { in nfsd4_scsi_decode_layoutupdate()
|
/linux-6.1.9/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.1.9/drivers/md/ |
D | dm-writecache.c | 72 __le32 block_size; member 158 unsigned block_size; member 557 region.count = max(4096U, wc->block_size) >> SECTOR_SHIFT; in ssd_commit_superblock() 783 writecache_flush_region(wc, memory_data(wc, e), wc->block_size); in writecache_flush_entry() 1243 unsigned remaining_size = wc->block_size; in bio_copy_block() 1355 dm_accept_partial_bio(bio, wc->block_size >> SECTOR_SHIFT); in writecache_map_read() 1364 wc->stats.reads += (bio->bi_iter.bi_size - wc->block_size) >> wc->block_size_bits; in writecache_map_read() 1374 unsigned bio_size = wc->block_size; in writecache_bio_copy_ssd() 1396 read_original_sector(wc, e) + (wc->block_size >> SECTOR_SHIFT)) in writecache_bio_copy_ssd() 1404 bio_size += wc->block_size; in writecache_bio_copy_ssd() [all …]
|
D | dm-bufio.c | 92 unsigned block_size; member 345 diff = (long)b->c->block_size; in adjust_total_allocated() 422 if (c->block_size <= KMALLOC_MAX_SIZE && in alloc_buffer_data() 442 void *ptr = __vmalloc(c->block_size, gfp_mask); in alloc_buffer_data() 448 return __vmalloc(c->block_size, gfp_mask); in alloc_buffer_data() 638 vec_size = b->c->block_size >> PAGE_SHIFT; in use_bio() 678 sector = block * (c->block_size >> SECTOR_SHIFT); in block_to_sector() 696 n_sectors = b->c->block_size >> SECTOR_SHIFT; in submit_io() 706 if (unlikely(end > b->c->block_size)) in submit_io() 707 end = b->c->block_size; in submit_io() [all …]
|
/linux-6.1.9/drivers/crypto/aspeed/ |
D | aspeed-hace-hash.c | 134 remain = length % rctx->block_size; in aspeed_ahash_dma_prepare() 185 remain = (rctx->total + rctx->bufcnt) % rctx->block_size; in aspeed_ahash_dma_prepare_sg() 216 rctx->block_size * 2, in aspeed_ahash_dma_prepare_sg() 271 rctx->block_size * 2, DMA_TO_DEVICE); in aspeed_ahash_dma_prepare_sg() 312 rctx->block_size * 2, DMA_TO_DEVICE); in aspeed_ahash_transfer() 373 rctx->block_size * 2, DMA_TO_DEVICE); in aspeed_ahash_hmac_resume() 376 memcpy(rctx->buffer, bctx->opad, rctx->block_size); in aspeed_ahash_hmac_resume() 377 memcpy(rctx->buffer + rctx->block_size, rctx->digest, rctx->digsize); in aspeed_ahash_hmac_resume() 379 rctx->bufcnt = rctx->block_size + rctx->digsize; in aspeed_ahash_hmac_resume() 380 rctx->digcnt[0] = rctx->block_size + rctx->digsize; in aspeed_ahash_hmac_resume() [all …]
|
/linux-6.1.9/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.1.9/fs/verity/ |
D | hash_algs.c | 18 .block_size = SHA256_BLOCK_SIZE, 23 .block_size = SHA512_BLOCK_SIZE, 87 if (WARN_ON(alg->block_size != crypto_ahash_blocksize(tfm))) in fsverity_get_hash_alg() 184 padded_salt_size = round_up(salt_size, alg->block_size); in fsverity_prepare_hash_state() 241 if (WARN_ON(params->block_size != PAGE_SIZE)) in fsverity_hash_page() 326 BUG_ON(!is_power_of_2(alg->block_size)); in fsverity_check_hash_algs()
|
/linux-6.1.9/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.1.9/drivers/net/ethernet/mellanox/mlxsw/ |
D | i2c.c | 91 u16 block_size; member 343 tran_buf = kmalloc(mlxsw_i2c->block_size + MLXSW_I2C_ADDR_BUF_SIZE, in mlxsw_i2c_write() 350 chunk_size = (in_mbox_size > mlxsw_i2c->block_size) ? in mlxsw_i2c_write() 351 mlxsw_i2c->block_size : in_mbox_size; in mlxsw_i2c_write() 355 mlxsw_i2c->block_size * i, chunk_size); in mlxsw_i2c_write() 426 num = reg_size / mlxsw_i2c->block_size; in mlxsw_i2c_cmd() 427 if (reg_size % mlxsw_i2c->block_size) in mlxsw_i2c_cmd() 447 num = reg_size / mlxsw_i2c->block_size; in mlxsw_i2c_cmd() 463 chunk_size = (reg_size > mlxsw_i2c->block_size) ? in mlxsw_i2c_cmd() 464 mlxsw_i2c->block_size : reg_size; in mlxsw_i2c_cmd() [all …]
|
/linux-6.1.9/drivers/gpu/drm/tiny/ |
D | gm12u320.c | 168 int i, block_size; in gm12u320_usb_alloc() local 177 block_size = DATA_LAST_BLOCK_SIZE; in gm12u320_usb_alloc() 180 block_size = DATA_BLOCK_SIZE; in gm12u320_usb_alloc() 185 block_size, GFP_KERNEL); in gm12u320_usb_alloc() 191 (block_size - DATA_BLOCK_FOOTER_SIZE), in gm12u320_usb_alloc() 326 int block, block_size, len; in gm12u320_fb_update_work() local 333 block_size = DATA_LAST_BLOCK_SIZE; in gm12u320_fb_update_work() 335 block_size = DATA_BLOCK_SIZE; in gm12u320_fb_update_work() 339 gm12u320->cmd_buf[8] = block_size & 0xff; in gm12u320_fb_update_work() 340 gm12u320->cmd_buf[9] = block_size >> 8; in gm12u320_fb_update_work() [all …]
|
/linux-6.1.9/drivers/staging/media/atomisp/pci/isp/kernels/bnlm/ |
D | ia_css_bnlm.host.c | 49 const u32 block_size = 16; in bnlm_lut_encode() local 50 const u32 total_blocks = ISP_VEC_NELEMS / block_size; in bnlm_lut_encode() 62 assert((lut_size >= 2) && (lut_size <= block_size)); in bnlm_lut_encode() 70 for (i = 0; i < total_blocks * block_size; i++) { in bnlm_lut_encode() 84 u32 blk_offset = blk * block_size; in bnlm_lut_encode()
|