Home
last modified time | relevance | path

Searched +full:block +full:- +full:size (Results 1 – 25 of 1159) sorted by relevance

12345678910>>...47

/linux-6.12.1/drivers/gpu/drm/
Ddrm_buddy.c1 // SPDX-License-Identifier: MIT
19 struct drm_buddy_block *block; in drm_block_alloc() local
23 block = kmem_cache_zalloc(slab_blocks, GFP_KERNEL); in drm_block_alloc()
24 if (!block) in drm_block_alloc()
27 block->header = offset; in drm_block_alloc()
28 block->header |= order; in drm_block_alloc()
29 block->parent = parent; in drm_block_alloc()
31 BUG_ON(block->header & DRM_BUDDY_HEADER_UNUSED); in drm_block_alloc()
32 return block; in drm_block_alloc()
36 struct drm_buddy_block *block) in drm_block_free() argument
[all …]
/linux-6.12.1/sound/pci/ctxfi/
Dctvmem.c1 // SPDX-License-Identifier: GPL-2.0-only
26 * Find or create vm block based on requested @size.
27 * @size must be page aligned.
30 get_vm_block(struct ct_vm *vm, unsigned int size, struct ct_atc *atc) in get_vm_block() argument
32 struct ct_vm_block *block = NULL, *entry; in get_vm_block() local
35 size = CT_PAGE_ALIGN(size); in get_vm_block()
36 if (size > vm->size) { in get_vm_block()
37 dev_err(atc->card->dev, in get_vm_block()
42 mutex_lock(&vm->lock); in get_vm_block()
43 list_for_each(pos, &vm->unused) { in get_vm_block()
[all …]
/linux-6.12.1/sound/isa/gus/
Dgus_mem.c1 // SPDX-License-Identifier: GPL-2.0-or-later
21 mutex_lock(&alloc->memory_mutex); in snd_gf1_mem_lock()
23 mutex_unlock(&alloc->memory_mutex); in snd_gf1_mem_lock()
28 snd_gf1_mem_xalloc(struct snd_gf1_mem *alloc, struct snd_gf1_mem_block *block, in snd_gf1_mem_xalloc() argument
36 *nblock = *block; in snd_gf1_mem_xalloc()
37 nblock->name = kstrdup(name, GFP_KERNEL); in snd_gf1_mem_xalloc()
38 if (!nblock->name) { in snd_gf1_mem_xalloc()
43 pblock = alloc->first; in snd_gf1_mem_xalloc()
45 if (pblock->ptr > nblock->ptr) { in snd_gf1_mem_xalloc()
46 nblock->prev = pblock->prev; in snd_gf1_mem_xalloc()
[all …]
/linux-6.12.1/arch/riscv/boot/dts/sophgo/
Dsg2042-cpus.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
8 #address-cells = <1>;
9 #size-cells = <0>;
10 timebase-frequency = <50000000>;
12 cpu-map {
260 riscv,isa-base = "rv64i";
261 riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
265 i-cache-block-size = <64>;
266 i-cache-size = <65536>;
267 i-cache-sets = <512>;
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_res_cursor.h1 // SPDX-License-Identifier: GPL-2.0 OR MIT
38 uint64_t size; member
45 * amdgpu_res_first - initialize a amdgpu_res_cursor
49 * @size: Size of the range
52 * Start walking over the range of allocations between @start and @size.
55 uint64_t start, uint64_t size, in amdgpu_res_first() argument
58 struct drm_buddy_block *block; in amdgpu_res_first() local
65 BUG_ON(start + size > res->size); in amdgpu_res_first()
67 cur->mem_type = res->mem_type; in amdgpu_res_first()
69 switch (cur->mem_type) { in amdgpu_res_first()
[all …]
Damdgpu_vram_mgr.c25 #include <linux/dma-mapping.h>
38 u64 size; member
63 struct drm_buddy_block *block; in amdgpu_is_vram_mgr_blocks_contiguous() local
64 u64 start, size; in amdgpu_is_vram_mgr_blocks_contiguous() local
66 block = amdgpu_vram_mgr_first_block(head); in amdgpu_is_vram_mgr_blocks_contiguous()
67 if (!block) in amdgpu_is_vram_mgr_blocks_contiguous()
70 while (head != block->link.next) { in amdgpu_is_vram_mgr_blocks_contiguous()
71 start = amdgpu_vram_mgr_block_start(block); in amdgpu_is_vram_mgr_blocks_contiguous()
72 size = amdgpu_vram_mgr_block_size(block); in amdgpu_is_vram_mgr_blocks_contiguous()
74 block = list_entry(block->link.next, struct drm_buddy_block, link); in amdgpu_is_vram_mgr_blocks_contiguous()
[all …]
/linux-6.12.1/drivers/gpu/drm/tests/
Ddrm_buddy_test.c1 // SPDX-License-Identifier: MIT
26 u32 mm_size, size, ps, bias_size, bias_start, bias_end, bias_rem; in drm_test_buddy_alloc_range_bias() local
29 struct drm_buddy_block *block; in drm_test_buddy_alloc_range_bias() local
37 mm_size = (SZ_8M-1) & ~(ps-1); /* Multiple roots */ in drm_test_buddy_alloc_range_bias()
57 u32 size; in drm_test_buddy_alloc_range_bias() local
69 "buddy_alloc failed with bias(%x-%x), size=%u, ps=%u\n", in drm_test_buddy_alloc_range_bias()
72 /* size too big */ in drm_test_buddy_alloc_range_bias()
78 "buddy_alloc didn't fail with bias(%x-%x), size=%u, ps=%u\n", in drm_test_buddy_alloc_range_bias()
81 /* bias range too small for size */ in drm_test_buddy_alloc_range_bias()
87 "buddy_alloc didn't fail with bias(%x-%x), size=%u, ps=%u\n", in drm_test_buddy_alloc_range_bias()
[all …]
/linux-6.12.1/arch/mips/include/asm/octeon/
Dcvmx-bootmem.h7 * Copyright (c) 2003-2008 Cavium Networks
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
45 /* Allocate from end of block instead of beginning */
51 /* First bytes of each free physical block of memory contain this structure,
64 uint64_t size; member
76 /* Base address of named block */
79 * Size actually allocated for named block (may differ from
82 uint64_t size; member
83 /* name of named block */
[all …]
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_res_cursor.h1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */
42 u64 size; member
54 mgr = ttm_manager_type(res->bo->bdev, res->mem_type); in xe_res_get_buddy()
55 return &to_xe_ttm_vram_mgr(mgr)->mm; in xe_res_get_buddy()
59 * xe_res_first - initialize a xe_res_cursor
63 * @size: Size of the range
66 * Start walking over the range of allocations between @start and @size.
69 u64 start, u64 size, in xe_res_first() argument
72 cur->sgl = NULL; in xe_res_first()
76 XE_WARN_ON(start + size > res->size); in xe_res_first()
[all …]
Dxe_ttm_vram_mgr.c1 // SPDX-License-Identifier: MIT
3 * Copyright © 2021-2022 Intel Corporation
4 * Copyright (C) 2021-2002 Red Hat
27 struct drm_buddy_block *block; in xe_is_vram_mgr_blocks_contiguous() local
28 u64 start, size; in xe_is_vram_mgr_blocks_contiguous() local
30 block = xe_ttm_vram_mgr_first_block(head); in xe_is_vram_mgr_blocks_contiguous()
31 if (!block) in xe_is_vram_mgr_blocks_contiguous()
34 while (head != block->link.next) { in xe_is_vram_mgr_blocks_contiguous()
35 start = drm_buddy_block_offset(block); in xe_is_vram_mgr_blocks_contiguous()
36 size = drm_buddy_block_size(mm, block); in xe_is_vram_mgr_blocks_contiguous()
[all …]
/linux-6.12.1/sound/soc/sof/
Dipc3-loader.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
9 #include "sof-priv.h"
10 #include "sof-audio.h"
11 #include "ipc3-priv.h"
20 memcpy(&sdev->fw_ready.version, &v->version, sizeof(v->version)); in ipc3_fw_ext_man_get_version()
21 sdev->fw_ready.flags = v->flags; in ipc3_fw_ext_man_get_version()
34 return sof_ipc3_get_ext_windows(sdev, &w->ipc_window.ext_hdr); in ipc3_fw_ext_man_get_windows()
44 return sof_ipc3_get_cc_info(sdev, &cc->cc_version.ext_hdr); in ipc3_fw_ext_man_get_cc_info()
53 if (sdev->first_boot) in ipc3_fw_ext_man_get_dbg_abi_info()
54 dev_dbg(sdev->dev, in ipc3_fw_ext_man_get_dbg_abi_info()
[all …]
/linux-6.12.1/mm/
Ddmapool.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * This allocator returns small blocks of a given size which are DMA-able by
11 * new pages, then splits them up into blocks of the required size.
15 * represented by the 'struct dma_pool' which keeps a doubly-linked list of
17 * least 'size' bytes. Free blocks are tracked in an unsorted singly-linked
23 #include <linux/dma-mapping.h>
56 unsigned int size; member
75 unsigned size; in pools_show() local
77 size = sysfs_emit(buf, "poolinfo - 0.1\n"); in pools_show()
80 list_for_each_entry(pool, &dev->dma_pools, pools) { in pools_show()
[all …]
/linux-6.12.1/Documentation/filesystems/ext4/
Dblockgroup.rst1 .. SPDX-License-Identifier: GPL-2.0
4 ------
6 The layout of a standard block group is approximately as follows (each
9 .. list-table::
11 :header-rows: 1
13 * - Group 0 Padding
14 - ext4 Super Block
15 - Group Descriptors
16 - Reserved GDT Blocks
17 - Data Block Bitmap
[all …]
Dblocks.rst1 .. SPDX-License-Identifier: GPL-2.0
4 ------
6 ext4 allocates storage space in units of “blocks”. A block is a group of
9 block groups. Block size is specified at mkfs time and typically is
10 4KiB. You may experience mounting problems if block size is greater than
11 page size (i.e. 64KiB blocks on a i386 which only has 4KiB memory
14 of structures is stored in terms of the block number the structure lives
17 For 32-bit filesystems, limits are as follows:
19 .. list-table::
21 :header-rows: 1
[all …]
/linux-6.12.1/Documentation/ABI/stable/
Dsysfs-block1 What: /sys/block/<disk>/alignment_offset
5 Storage devices may report a physical block size that is
6 bigger than the logical block size (for instance a drive
7 with 4KB physical sectors exposing 512-byte logical
13 What: /sys/block/<disk>/discard_alignment
19 the exported logical block size. The discard_alignment
24 What: /sys/block/<disk>/atomic_write_max_bytes
29 size reported by the device. This parameter is relevant
35 power-of-two and atomic_write_unit_max_bytes may also be
37 This parameter - along with atomic_write_unit_min_bytes
[all …]
/linux-6.12.1/arch/powerpc/lib/
Drheap.c35 pp = (unsigned long *)&l->next; in fixup()
39 pp = (unsigned long *)&l->prev; in fixup()
47 rh_block_t *block, *blk; in grow() local
52 if (max_blocks <= info->max_blocks) in grow()
53 return -EINVAL; in grow()
55 new_blocks = max_blocks - info->max_blocks; in grow()
57 block = kmalloc_array(max_blocks, sizeof(rh_block_t), GFP_ATOMIC); in grow()
58 if (block == NULL) in grow()
59 return -ENOMEM; in grow()
61 if (info->max_blocks > 0) { in grow()
[all …]
/linux-6.12.1/lib/xz/
Dxz_dec_stream.c1 // SPDX-License-Identifier: 0BSD
34 /* Position in variable-length integers and Check fields */
37 /* Variable-length integer decoded by dec_vli() */
44 /* CRC32 value in Block or Index */
59 /* Information stored in Block Header */
62 * Value stored in the Compressed Size field, or
63 * VLI_UNKNOWN if Compressed Size is not present.
68 * Value stored in the Uncompressed Size field, or
69 * VLI_UNKNOWN if Uncompressed Size is not present.
73 /* Size of the Block Header field */
[all …]
/linux-6.12.1/Documentation/admin-guide/device-mapper/
Ddm-ebs.rst2 dm-ebs
7 a smaller logical block size on a device with a larger logical block
8 size. Its main purpose is to provide emulation of 512 byte sectors on
11 Supported emulated logical block sizes 512, 1024, 2048 and 4096.
13 Underlying block size can be set to > 4K to test buffering larger units.
17 ----------------
23 Full pathname to the underlying block-device,
24 or a "major:minor" device-number.
29 Number of sectors defining the logical block size to be emulated;
35 Number of sectors defining the logical block size of <dev path>.
[all …]
/linux-6.12.1/drivers/iio/buffer/
Dindustrialio-buffer-dma.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2013-2015 Analog Devices Inc.
4 * Author: Lars-Peter Clausen <lars@metafoo.de>
18 #include <linux/iio/buffer-dma.h>
19 #include <linux/dma-buf.h>
20 #include <linux/dma-fence.h>
21 #include <linux/dma-mapping.h>
25 * For DMA buffers the storage is sub-divided into so called blocks. Each block
26 * has its own memory buffer. The size of the block is the granularity at which
28 * basic unit of data exchange from one sample to one block decreases the
[all …]
/linux-6.12.1/sound/pci/emu10k1/
Demu10k1_patch.c1 // SPDX-License-Identifier: GPL-2.0-or-later
22 * allocate a sample block and copy data from userspace
33 int truesize, size, blocksize; in snd_emu10k1_sample_new() local
37 emu = rec->hw; in snd_emu10k1_sample_new()
39 return -EINVAL; in snd_emu10k1_sample_new()
41 if (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP | SNDRV_SFNT_SAMPLE_REVERSE_LOOP)) { in snd_emu10k1_sample_new()
42 /* should instead return -ENOTSUPP; but compatibility */ in snd_emu10k1_sample_new()
43 dev_warn(emu->card->dev, in snd_emu10k1_sample_new()
45 sp->v.sample); in snd_emu10k1_sample_new()
48 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS) { in snd_emu10k1_sample_new()
[all …]
/linux-6.12.1/drivers/misc/
Dsram.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Generic on-chip SRAM allocation driver
19 #include <soc/at91/atmel-secumod.h>
33 mutex_lock(&part->lock); in sram_read()
34 memcpy_fromio(buf, part->base + pos, count); in sram_read()
35 mutex_unlock(&part->lock); in sram_read()
48 mutex_lock(&part->lock); in sram_write()
49 memcpy_toio(part->base + pos, buf, count); in sram_write()
50 mutex_unlock(&part->lock); in sram_write()
55 static int sram_add_pool(struct sram_dev *sram, struct sram_reserve *block, in sram_add_pool() argument
[all …]
/linux-6.12.1/fs/cramfs/
DREADME2 --------------------------
9 All data is currently in host-endian format; neither mkcramfs nor the
10 kernel ever do swabbing. (See section `Block Size' below.)
22 Filename. Not generally null-terminated, but it is
23 null-padded to a multiple of 4 bytes.
25 The order of inode traversal is described as "width-first" (not to be
26 confused with breadth-first); i.e. like depth-first but listing all of
28 same order as `ls -AUR' (but without the /^\..*:$/ directory header
29 lines); put another way, the same order as `find -type d -exec
30 ls -AU1 {} \;'.
[all …]
/linux-6.12.1/arch/mips/cavium-octeon/executive/
Dcvmx-bootmem.c7 * Copyright (c) 2003-2008 Cavium Networks
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
37 #include <asm/octeon/cvmx-spinlock.h>
38 #include <asm/octeon/cvmx-bootmem.h>
71 * @param size Size of the structure member.
76 int size) in __cvmx_bootmem_desc_get() argument
79 switch (size) { in __cvmx_bootmem_desc_get()
90 * Wrapper functions are provided for reading/writing the size and
91 * next block values as these may not be directly addressible (in 32
[all …]
/linux-6.12.1/fs/ocfs2/
Docfs2_fs.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * On-disk structures for OCFS2.
23 * Block OCFS2_SUPER_BLOCK_BLKNO: OCFS2 superblock.
33 * Cluster size limits. The maximum is kept arbitrarily at 1 MB, and could
41 * minimum cluster size.
59 ( OCFS2_SB(sb)->s_feature_compat & (mask) )
61 ( OCFS2_SB(sb)->s_feature_ro_compat & (mask) )
63 ( OCFS2_SB(sb)->s_feature_incompat & (mask) )
65 OCFS2_SB(sb)->s_feature_compat |= (mask)
67 OCFS2_SB(sb)->s_feature_ro_compat |= (mask)
[all …]
/linux-6.12.1/fs/xfs/libxfs/
Dxfs_trans_resv.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
47 * will be changed in a transaction. size is used to tell how many
53 uint size) in xfs_calc_buf_res() argument
55 return nbufs * (size + xfs_buf_log_overhead()); in xfs_calc_buf_res()
59 * Per-extent log reservation for the btree changes involved in freeing or
64 * num trees * ((2 blocks/level * max depth) - 1)
75 blocks = num_ops * 2 * (2 * mp->m_alloc_maxlevels - 1); in xfs_allocfree_block_count()
77 blocks += num_ops * (2 * mp->m_rmap_maxlevels - 1); in xfs_allocfree_block_count()
83 * Per-extent log reservation for refcount btree changes. These are never done
[all …]

12345678910>>...47