Home
last modified time | relevance | path

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

12345678910>>...14

/kernel/linux/linux-5.10/Documentation/filesystems/ext4/
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…
/kernel/linux/linux-5.10/drivers/s390/char/
Dtape_char.c98 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 …]
/kernel/linux/linux-5.10/fs/befs/
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()
/kernel/linux/linux-5.10/drivers/staging/comedi/
Dcomedi_buf.c379 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()
565 unsigned int block_size; in comedi_buf_memcpy_to() local
568 block_size = async->prealloc_bufsz - write_ptr; in comedi_buf_memcpy_to()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_region.c61 u64 block_size, offset; in i915_gem_object_get_pages_buddy() local
63 block_size = min_t(u64, size, in i915_gem_object_get_pages_buddy()
67 GEM_BUG_ON(overflows_type(block_size, sg->length)); in i915_gem_object_get_pages_buddy()
70 add_overflows_t(typeof(sg->length), sg->length, block_size)) { in i915_gem_object_get_pages_buddy()
77 sg_dma_len(sg) = block_size; in i915_gem_object_get_pages_buddy()
79 sg->length = block_size; in i915_gem_object_get_pages_buddy()
83 sg->length += block_size; in i915_gem_object_get_pages_buddy()
84 sg_dma_len(sg) += block_size; in i915_gem_object_get_pages_buddy()
87 prev_end = offset + block_size; in i915_gem_object_get_pages_buddy()
/kernel/linux/linux-5.10/drivers/net/wireless/microchip/wilc1000/
Dsdio.c28 u32 block_size; member
48 u32 block_size; member
97 func->cur_blksize = cmd->block_size; in wilc_sdio_cmd53()
99 size = cmd->count * cmd->block_size; in wilc_sdio_cmd53()
295 u32 block_size) in wilc_sdio_set_block_size() argument
305 cmd.data = (u8)block_size; in wilc_sdio_set_block_size()
314 cmd.data = (u8)(block_size >> 8); in wilc_sdio_set_block_size()
367 cmd.block_size = sdio_priv->block_size; in wilc_sdio_write_reg()
381 u32 block_size = sdio_priv->block_size; in wilc_sdio_write() local
401 nblk = size / block_size; in wilc_sdio_write()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dccp-crypto-sha.c64 unsigned int block_size = in ccp_do_sha_update() local
73 if (!final && (len <= block_size)) { in ccp_do_sha_update()
85 rctx->hash_rem = final ? 0 : len & (block_size - 1); in ccp_do_sha_update()
89 rctx->hash_cnt -= block_size; in ccp_do_sha_update()
90 rctx->hash_rem = block_size; in ccp_do_sha_update()
188 unsigned int block_size = in ccp_sha_init() local
198 memcpy(rctx->buf, ctx->u.sha.ipad, block_size); in ccp_sha_init()
199 rctx->buf_count = block_size; in ccp_sha_init()
276 unsigned int block_size = crypto_shash_blocksize(shash); in ccp_sha_setkey() local
288 if (key_len > block_size) { in ccp_sha_setkey()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/device_include/
Dsvga3d_surfacedefs.h387 surf_size_struct block_size; member
1201 surf_size_struct *block_size) in svga3dsurface_get_size_in_blocks() argument
1203 block_size->width = __KERNEL_DIV_ROUND_UP(pixel_size->width, in svga3dsurface_get_size_in_blocks()
1204 desc->block_size.width); in svga3dsurface_get_size_in_blocks()
1205 block_size->height = __KERNEL_DIV_ROUND_UP(pixel_size->height, in svga3dsurface_get_size_in_blocks()
1206 desc->block_size.height); in svga3dsurface_get_size_in_blocks()
1207 block_size->depth = __KERNEL_DIV_ROUND_UP(pixel_size->depth, in svga3dsurface_get_size_in_blocks()
1208 desc->block_size.depth); in svga3dsurface_get_size_in_blocks()
1326 const u32 bw = desc->block_size.width, bh = desc->block_size.height; in svga3dsurface_get_pixel_offset()
1327 const u32 bd = desc->block_size.depth; in svga3dsurface_get_pixel_offset()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/spi-nor/controllers/
Dintel-spi.c641 size_t block_size, retlen = 0; in intel_spi_read() local
663 block_size = min_t(size_t, len, INTEL_SPI_FIFO_SZ); in intel_spi_read()
666 block_size = min_t(loff_t, from + block_size, in intel_spi_read()
674 val |= (block_size - 1) << HSFSTS_CTL_FDBC_SHIFT; in intel_spi_read()
695 ret = intel_spi_read_block(ispi, read_buf, block_size); in intel_spi_read()
699 len -= block_size; in intel_spi_read()
700 from += block_size; in intel_spi_read()
701 retlen += block_size; in intel_spi_read()
702 read_buf += block_size; in intel_spi_read()
712 size_t block_size, retlen = 0; in intel_spi_write() local
[all …]
/kernel/linux/linux-5.10/fs/nfsd/
Dblocklayoutxdr.c107 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()
/kernel/linux/linux-5.10/drivers/target/
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()
447 unsigned int block_size = dev->dev_attrib.block_size; in compare_and_write_callback() local
448 unsigned int compare_len = (nlbas * block_size); in compare_and_write_callback()
526 len = cmd->t_task_nolb * block_size; in compare_and_write_callback()
534 if (block_size < PAGE_SIZE) { in compare_and_write_callback()
535 sg_set_page(&write_sg[i], m.page, block_size, in compare_and_write_callback()
536 m.piter.sg->offset + block_size); in compare_and_write_callback()
539 sg_set_page(&write_sg[i], m.page, block_size, in compare_and_write_callback()
[all …]
Dtarget_core_file.c297 aio_cmd->iocb.ki_pos = cmd->t_task_lba * dev->dev_attrib.block_size; in fd_execute_rw_aio()
319 u32 block_size, struct scatterlist *sgl, in fd_do_rw() argument
326 loff_t pos = (cmd->t_task_lba * block_size); in fd_do_rw()
414 start = cmd->t_task_lba * dev->dev_attrib.block_size; in fd_execute_sync_cache()
441 loff_t pos = cmd->t_task_lba * se_dev->dev_attrib.block_size; in fd_execute_write_same()
459 cmd->t_data_sg[0].length != cmd->se_dev->dev_attrib.block_size) { in fd_execute_write_same()
464 cmd->se_dev->dev_attrib.block_size); in fd_execute_write_same()
477 len += se_dev->dev_attrib.block_size; in fd_execute_write_same()
577 loff_t pos = lba * se_dev->dev_attrib.block_size; in fd_execute_unmap()
578 unsigned int len = nolb * se_dev->dev_attrib.block_size; in fd_execute_unmap()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/
Dsm_ftl.c197 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()
383 for (boffset = 0; boffset < ftl->block_size; in sm_write_block()
452 for (boffset = 0; boffset < ftl->block_size; boffset += SM_SECTOR_SIZE) in sm_mark_block_bad()
468 erase.len = ftl->block_size; in sm_erase_block()
509 for (boffset = 0; boffset < ftl->block_size; in sm_check_block()
574 ftl->block_size = 8 * SM_SECTOR_SIZE; in sm_get_media_info()
583 ftl->block_size = 8 * SM_SECTOR_SIZE; in sm_get_media_info()
593 ftl->block_size = 16 * SM_SECTOR_SIZE; in sm_get_media_info()
[all …]
Drfd_ftl.c26 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()
205 rc = mtd_read(part->mbd.mtd, i * part->block_size, in scan_header()
281 erase->len = part->block_size; in erase_block()
421 old_sector_block = *old_sector / part->block_size; in reclaim_block()
[all …]
/kernel/linux/linux-5.10/drivers/md/
Ddm-writecache.c69 __le32 block_size; member
154 unsigned block_size; member
535 region.count = max(4096U, wc->block_size) >> SECTOR_SHIFT; in ssd_commit_superblock()
763 writecache_flush_region(wc, memory_data(wc, e), wc->block_size); in writecache_flush_entry()
1211 unsigned remaining_size = wc->block_size; in bio_copy_block()
1318 (wc->block_size / 512 - 1)) != 0)) { in writecache_map()
1321 bio->bi_iter.bi_size, wc->block_size); in writecache_map()
1347 dm_accept_partial_bio(bio, wc->block_size >> SECTOR_SHIFT); in writecache_map()
1410 unsigned bio_size = wc->block_size; in writecache_map()
1432 read_original_sector(wc, e) + (wc->block_size >> SECTOR_SHIFT)) in writecache_map()
[all …]
Ddm-bufio.c89 unsigned block_size; member
332 diff = (long)b->c->block_size; in adjust_total_allocated()
409 if (c->block_size <= KMALLOC_MAX_SIZE && in alloc_buffer_data()
429 void *ptr = __vmalloc(c->block_size, gfp_mask); in alloc_buffer_data()
435 return __vmalloc(c->block_size, gfp_mask); in alloc_buffer_data()
625 vec_size = b->c->block_size >> PAGE_SHIFT; in use_bio()
667 sector = block * (c->block_size >> SECTOR_SHIFT); in block_to_sector()
684 n_sectors = b->c->block_size >> SECTOR_SHIFT; in submit_io()
694 if (unlikely(end > b->c->block_size)) in submit_io()
695 end = b->c->block_size; in submit_io()
[all …]
/kernel/linux/linux-5.10/fs/squashfs/
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()
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()
Dsuper.c169 msblk->block_size = le32_to_cpu(sblk->block_size); in squashfs_fill_super()
170 if (msblk->block_size > SQUASHFS_FILE_MAX_SIZE) in squashfs_fill_super()
177 if (PAGE_SIZE > msblk->block_size) { in squashfs_fill_super()
179 "currently not supported!", msblk->block_size); in squashfs_fill_super()
189 if (msblk->block_size != (1 << msblk->block_log)) in squashfs_fill_super()
210 TRACE("Block size %d\n", msblk->block_size); in squashfs_fill_super()
236 squashfs_max_decompressors(), msblk->block_size); in squashfs_fill_super()
305 SQUASHFS_CACHED_FRAGMENTS, msblk->block_size); in squashfs_fill_super()
409 buf->f_bsize = msblk->block_size; in squashfs_statfs()
/kernel/linux/linux-5.10/fs/verity/
Dhash_algs.c18 .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()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_fw_update.c273 u16 block_size, u8 *block, bool last_cmd, in ice_write_one_nvm_block() argument
287 block_size, module, offset); in ice_write_one_nvm_block()
289 status = ice_aq_update_nvm(hw, module, offset, block_size, block, in ice_write_one_nvm_block()
293 module, block_size, offset, ice_stat_str(status), in ice_write_one_nvm_block()
308 module, block_size, offset, err); in ice_write_one_nvm_block()
335 module, block_size, offset, in ice_write_one_nvm_block()
385 u32 block_size; in ice_write_nvm_module() local
387 block_size = min_t(u32, ICE_AQ_MAX_BUF_LEN, length - offset); in ice_write_nvm_module()
388 last_cmd = !(offset + block_size < length); in ice_write_nvm_module()
394 memcpy(block, image + offset, block_size); in ice_write_nvm_module()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Di2c.c78 u16 block_size; member
327 tran_buf = kmalloc(mlxsw_i2c->block_size + MLXSW_I2C_ADDR_BUF_SIZE, in mlxsw_i2c_write()
334 chunk_size = (in_mbox_size > mlxsw_i2c->block_size) ? in mlxsw_i2c_write()
335 mlxsw_i2c->block_size : in_mbox_size; in mlxsw_i2c_write()
339 mlxsw_i2c->block_size * i, chunk_size); in mlxsw_i2c_write()
410 num = reg_size / mlxsw_i2c->block_size; in mlxsw_i2c_cmd()
411 if (reg_size % mlxsw_i2c->block_size) in mlxsw_i2c_cmd()
431 num = reg_size / mlxsw_i2c->block_size; in mlxsw_i2c_cmd()
447 chunk_size = (reg_size > mlxsw_i2c->block_size) ? in mlxsw_i2c_cmd()
448 mlxsw_i2c->block_size : reg_size; in mlxsw_i2c_cmd()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/core/
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()
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/
Dsgl.c59 u32 sgl_size, block_size, sgl_num_per_block, block_num, remain_sgl = 0; in hisi_acc_create_sgl_pool() local
69 block_size = 1 << (PAGE_SHIFT + MAX_ORDER <= 32 ? in hisi_acc_create_sgl_pool()
71 sgl_num_per_block = block_size / sgl_size; in hisi_acc_create_sgl_pool()
85 block[i].sgl = dma_alloc_coherent(dev, block_size, in hisi_acc_create_sgl_pool()
91 block[i].size = block_size; in hisi_acc_create_sgl_pool()
114 dma_free_coherent(dev, block_size, block[j].sgl, in hisi_acc_create_sgl_pool()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/bnlm/
Dia_css_bnlm.host.c49 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()

12345678910>>...14