Home
last modified time | relevance | path

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

12345678910>>...45

/kernel/linux/linux-6.6/drivers/gpu/drm/tests/
Ddrm_buddy_test.c1 // SPDX-License-Identifier: MIT
47 struct drm_buddy_block *block, bool buddy) in __dump_block() argument
49 …kunit_err(test, "block info: header=%llx, state=%u, order=%d, offset=%llx size=%llx root=%d buddy=… in __dump_block()
50 block->header, drm_buddy_block_state(block), in __dump_block()
51 drm_buddy_block_order(block), drm_buddy_block_offset(block), in __dump_block()
52 drm_buddy_block_size(mm, block), !block->parent, buddy); in __dump_block()
56 struct drm_buddy_block *block) in dump_block() argument
60 __dump_block(test, mm, block, false); in dump_block()
62 buddy = drm_get_buddy(block); in dump_block()
68 struct drm_buddy_block *block) in check_block() argument
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 struct snd_gf1_mem_block * block) in snd_gf1_mem_xalloc() argument
35 *nblock = *block; in snd_gf1_mem_xalloc()
36 pblock = alloc->first; in snd_gf1_mem_xalloc()
38 if (pblock->ptr > nblock->ptr) { in snd_gf1_mem_xalloc()
39 nblock->prev = pblock->prev; in snd_gf1_mem_xalloc()
40 nblock->next = pblock; in snd_gf1_mem_xalloc()
41 pblock->prev = nblock; in snd_gf1_mem_xalloc()
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Di915_buddy.c1 // SPDX-License-Identifier: MIT
12 struct i915_buddy_block *block, in __igt_dump_block() argument
15 pr_err("block info: header=%llx, state=%u, order=%d, offset=%llx size=%llx root=%s buddy=%s\n", in __igt_dump_block()
16 block->header, in __igt_dump_block()
17 i915_buddy_block_state(block), in __igt_dump_block()
18 i915_buddy_block_order(block), in __igt_dump_block()
19 i915_buddy_block_offset(block), in __igt_dump_block()
20 i915_buddy_block_size(mm, block), in __igt_dump_block()
21 yesno(!block->parent), in __igt_dump_block()
26 struct i915_buddy_block *block) in igt_dump_block() argument
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_buddy.c1 // SPDX-License-Identifier: MIT
39 return -ENOMEM; in i915_global_buddy_init()
49 struct i915_buddy_block *block; in i915_block_alloc() local
51 block = kmem_cache_zalloc(global.slab_blocks, GFP_KERNEL); in i915_block_alloc()
52 if (!block) in i915_block_alloc()
55 block->header = offset; in i915_block_alloc()
56 block->header |= order; in i915_block_alloc()
57 block->parent = parent; in i915_block_alloc()
59 return block; in i915_block_alloc()
62 static void i915_block_free(struct i915_buddy_block *block) in i915_block_free() argument
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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>
36 u64 size; member
61 struct drm_buddy_block *block; in amdgpu_is_vram_mgr_blocks_contiguous() local
62 u64 start, size; in amdgpu_is_vram_mgr_blocks_contiguous() local
64 block = amdgpu_vram_mgr_first_block(head); in amdgpu_is_vram_mgr_blocks_contiguous()
65 if (!block) in amdgpu_is_vram_mgr_blocks_contiguous()
68 while (head != block->link.next) { in amdgpu_is_vram_mgr_blocks_contiguous()
69 start = amdgpu_vram_mgr_block_start(block); in amdgpu_is_vram_mgr_blocks_contiguous()
70 size = amdgpu_vram_mgr_block_size(block); in amdgpu_is_vram_mgr_blocks_contiguous()
72 block = list_entry(block->link.next, struct drm_buddy_block, link); in amdgpu_is_vram_mgr_blocks_contiguous()
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-block1 What: /sys/block/<disk>/stat
5 The /sys/block/<disk>/stat files displays the I/O
28 For more details refer Documentation/admin-guide/iostats.rst
31 What: /sys/block/<disk>/<part>/stat
35 The /sys/block/<disk>/<part>/stat files display the
37 same as the above-written /sys/block/<disk>/stat
41 What: /sys/block/<disk>/integrity/format
45 Metadata format for integrity capable block device.
46 E.g. T10-DIF-TYPE1-CRC.
49 What: /sys/block/<disk>/integrity/read_verify
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/sound/pci/emu10k1/
Demu10k1_patch.c1 // SPDX-License-Identifier: GPL-2.0-or-later
22 * allocate a sample block and copy data from userspace
30 int truesize, size, blocksize; in snd_emu10k1_sample_new() local
36 emu = rec->hw; in snd_emu10k1_sample_new()
38 return -EINVAL; in snd_emu10k1_sample_new()
40 if (sp->v.size == 0) { in snd_emu10k1_sample_new()
41 dev_dbg(emu->card->dev, in snd_emu10k1_sample_new()
42 "emu: rom font for sample %d\n", sp->v.sample); in snd_emu10k1_sample_new()
47 sp->v.end -= sp->v.start; in snd_emu10k1_sample_new()
48 sp->v.loopstart -= sp->v.start; in snd_emu10k1_sample_new()
[all …]
/kernel/linux/linux-5.10/sound/pci/emu10k1/
Demu10k1_patch.c1 // SPDX-License-Identifier: GPL-2.0-or-later
22 * allocate a sample block and copy data from userspace
30 int truesize, size, blocksize; in snd_emu10k1_sample_new() local
36 emu = rec->hw; in snd_emu10k1_sample_new()
38 return -EINVAL; in snd_emu10k1_sample_new()
40 if (sp->v.size == 0) { in snd_emu10k1_sample_new()
41 dev_dbg(emu->card->dev, in snd_emu10k1_sample_new()
42 "emu: rom font for sample %d\n", sp->v.sample); in snd_emu10k1_sample_new()
47 sp->v.end -= sp->v.start; in snd_emu10k1_sample_new()
48 sp->v.loopstart -= sp->v.start; in snd_emu10k1_sample_new()
[all …]
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_trans_resv.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
44 * will be changed in a transaction. size is used to tell how many
50 uint size) in xfs_calc_buf_res() argument
52 return nbufs * (size + xfs_buf_log_overhead()); in xfs_calc_buf_res()
56 * Per-extent log reservation for the btree changes involved in freeing or
62 * num trees * ((2 blocks/level * max depth) - 1)
73 blocks = num_ops * 2 * (2 * mp->m_ag_maxlevels - 1); in xfs_allocfree_log_count()
74 if (xfs_sb_version_hasrmapbt(&mp->m_sb)) in xfs_allocfree_log_count()
75 blocks += num_ops * (2 * mp->m_rmap_maxlevels - 1); in xfs_allocfree_log_count()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]

12345678910>>...45