/linux-6.12.1/drivers/s390/char/ |
D | tape_char.c | 97 tapechar_check_idalbuffer(struct tape_device *device, size_t block_size) in tapechar_check_idalbuffer() argument 102 device->char_data.idal_buf->size == block_size) in tapechar_check_idalbuffer() 105 if (block_size > MAX_BLOCKSIZE) { in tapechar_check_idalbuffer() 107 block_size, MAX_BLOCKSIZE); in tapechar_check_idalbuffer() 112 new = idal_buffer_alloc(block_size, 0); in tapechar_check_idalbuffer() 132 size_t block_size; in tapechar_read() local 148 if (device->char_data.block_size != 0) { in tapechar_read() 149 if (count < device->char_data.block_size) { in tapechar_read() 154 block_size = device->char_data.block_size; in tapechar_read() 156 block_size = count; in tapechar_read() [all …]
|
/linux-6.12.1/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() 92 * block_shift and block_size encode the same information in befs_check_sb() 96 if ((1 << befs_sb->block_shift) != befs_sb->block_size) { in befs_check_sb() [all …]
|
/linux-6.12.1/sound/soc/intel/avs/ |
D | topology.c | 37 u32 block_size, u32 token, u32 *offset) in avs_tplg_vendor_array_lookup() argument 41 while (block_size > 0) { in avs_tplg_vendor_array_lookup() 45 if (tuples_size > block_size) in avs_tplg_vendor_array_lookup() 54 block_size -= tuples_size; in avs_tplg_vendor_array_lookup() 73 u32 block_size, u32 token, u32 *offset) in avs_tplg_vendor_array_lookup_next() argument 78 if (tuples_size > block_size) in avs_tplg_vendor_array_lookup_next() 82 block_size -= tuples_size; in avs_tplg_vendor_array_lookup_next() 84 ret = avs_tplg_vendor_array_lookup(tuples, block_size, token, offset); in avs_tplg_vendor_array_lookup_next() 95 * assigned to @block_size as the entire block belongs to the current 102 u32 block_size, u32 entry_id_token, u32 *size) in avs_tplg_vendor_entry_size() argument [all …]
|
/linux-6.12.1/tools/testing/selftests/riscv/hwprobe/ |
D | cbo.c | 90 __u64 block_size; in test_zicboz() local 95 block_size = pair.value; in test_zicboz() 97 is_power_of_2(block_size), "Zicboz block size\n"); in test_zicboz() 98 ksft_print_msg("Zicboz block size: %llu\n", block_size); in test_zicboz() 101 cbo_zero(&mem[block_size]); in test_zicboz() 104 if (illegal_insn || !is_power_of_2(block_size)) { in test_zicboz() 109 assert(block_size <= 1024); in test_zicboz() 111 for (i = 0; i < 4096 / block_size; ++i) { in test_zicboz() 113 cbo_zero(&mem[i * block_size]); in test_zicboz() 116 for (i = 0; i < 4096 / block_size; ++i) { in test_zicboz() [all …]
|
/linux-6.12.1/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.12.1/drivers/net/wireless/microchip/wilc1000/ |
D | sdio.c | 32 u32 block_size; member 53 u32 block_size; member 105 func->cur_blksize = cmd->block_size; in wilc_sdio_cmd53() 107 size = cmd->count * cmd->block_size; in wilc_sdio_cmd53() 325 u32 block_size) in wilc_sdio_set_block_size() argument 335 cmd.data = (u8)block_size; in wilc_sdio_set_block_size() 344 cmd.data = (u8)(block_size >> 8); in wilc_sdio_set_block_size() 398 cmd.block_size = sdio_priv->block_size; in wilc_sdio_write_reg() 412 u32 block_size = sdio_priv->block_size; in wilc_sdio_write() local 432 nblk = size / block_size; in wilc_sdio_write() [all …]
|
/linux-6.12.1/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.12.1/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.12.1/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.12.1/init/ |
D | do_mounts_rd.c | 85 pos = start_block * BLOCK_SIZE; in identify_ramdisk_image() 106 nblocks = (ntohl(romfsb->size)+BLOCK_SIZE-1)>>BLOCK_SIZE_BITS; in identify_ramdisk_image() 114 nblocks = (cramfsb->size + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; in identify_ramdisk_image() 123 nblocks = (le64_to_cpu(squashfsb->bytes_used) + BLOCK_SIZE - 1) in identify_ramdisk_image() 131 pos = start_block * BLOCK_SIZE + 0x200; in identify_ramdisk_image() 138 nblocks = (cramfsb->size + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; in identify_ramdisk_image() 145 pos = (start_block + 1) * BLOCK_SIZE; in identify_ramdisk_image() 206 in_pos = rd_image_start * BLOCK_SIZE; in rd_load_image() 241 buf = kmalloc(BLOCK_SIZE, GFP_KERNEL); in rd_load_image() 256 kernel_read(in_file, buf, BLOCK_SIZE, &in_pos); in rd_load_image() [all …]
|
/linux-6.12.1/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() 611 u32 block_size; in lzx_decompress() local [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hubbub/dcn20/ |
D | dcn20_hubbub.c | 336 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-6.12.1/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.12.1/drivers/mtd/ |
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 …]
|
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 …]
|
/linux-6.12.1/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() 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() 451 " block_size: %u\n", 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() [all …]
|
/linux-6.12.1/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.12.1/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()
|
/linux-6.12.1/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.12.1/sound/atmel/ |
D | ac97c.c | 189 int block_size = frames_to_bytes(runtime, runtime->period_size); in atmel_ac97c_playback_prepare() local 260 writel(block_size / 2, chip->regs + ATMEL_PDC_TCR); in atmel_ac97c_playback_prepare() 261 writel(runtime->dma_addr + block_size, chip->regs + ATMEL_PDC_TNPR); in atmel_ac97c_playback_prepare() 262 writel(block_size / 2, chip->regs + ATMEL_PDC_TNCR); in atmel_ac97c_playback_prepare() 271 int block_size = frames_to_bytes(runtime, runtime->period_size); in atmel_ac97c_capture_prepare() local 342 writel(block_size / 2, chip->regs + ATMEL_PDC_RCR); in atmel_ac97c_capture_prepare() 343 writel(runtime->dma_addr + block_size, chip->regs + ATMEL_PDC_RNPR); in atmel_ac97c_capture_prepare() 344 writel(block_size / 2, chip->regs + ATMEL_PDC_RNCR); in atmel_ac97c_capture_prepare() 475 int offset, next_period, block_size; in atmel_ac97c_interrupt() local 485 block_size = frames_to_bytes(runtime, runtime->period_size); in atmel_ac97c_interrupt() [all …]
|
/linux-6.12.1/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.12.1/drivers/cache/ |
D | starfive_starlink_cache.c | 106 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-6.12.1/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()
|
/linux-6.12.1/rust/kernel/block/mq/ |
D | gen_disk.rs | 63 pub fn logical_block_size(mut self, block_size: u32) -> Result<Self> { in logical_block_size() 64 Self::validate_block_size(block_size)?; in logical_block_size() 65 self.logical_block_size = block_size; in logical_block_size() 78 pub fn physical_block_size(mut self, block_size: u32) -> Result<Self> { in physical_block_size() 79 Self::validate_block_size(block_size)?; in physical_block_size() 80 self.physical_block_size = block_size; in physical_block_size()
|