Home
last modified time | relevance | path

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

12345678910>>...42

/linux/arch/riscv/boot/dts/sophgo/
H A Dsg2044-cpus.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
7 #address-cells = <2>;
8 #size-cells = <2>;
11 #address-cells = <1>;
12 #size-cells = <0>;
13 timebase-frequency = <50000000>;
18 i-cache-block-size = <64>;
19 i-cache-size = <65536>;
20 i-cache-sets = <512>;
21 d-cache-block-size = <64>;
[all …]
/linux/sound/pci/ctxfi/
H A 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, *entry; in get_vm_block() local
35 size in get_vm_block()
75 put_vm_block(struct ct_vm * vm,struct ct_vm_block * block) put_vm_block() argument
124 ct_vm_map(struct ct_vm * vm,struct snd_pcm_substream * substream,int size) ct_vm_map() argument
126 struct ct_vm_block *block; ct_vm_map() local
152 ct_vm_unmap(struct ct_vm * vm,struct ct_vm_block * block) ct_vm_unmap() argument
172 struct ct_vm_block *block; ct_vm_create() local
[all...]
/linux/sound/isa/gus/
H A Dgus_mem.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 snd_gf1_mem_xalloc(struct snd_gf1_mem *alloc, struct snd_gf1_mem_block *block, in snd_gf1_mem_lock()
27 *nblock = *block;
28 nblock->name = kstrdup(name, GFP_KERNEL); in snd_gf1_mem_xalloc() argument
29 if (!nblock->name) { in snd_gf1_mem_xalloc()
34 pblock = alloc->firs in snd_gf1_mem_xalloc()
70 snd_gf1_mem_xfree(struct snd_gf1_mem * alloc,struct snd_gf1_mem_block * block) snd_gf1_mem_xfree() argument
103 struct snd_gf1_mem_block *block; snd_gf1_mem_look() local
116 struct snd_gf1_mem_block *block; snd_gf1_mem_share() local
129 snd_gf1_mem_find(struct snd_gf1_mem * alloc,struct snd_gf1_mem_block * block,unsigned int size,int w_16,int align) snd_gf1_mem_find() argument
130 snd_gf1_mem_find(struct snd_gf1_mem * alloc,struct snd_gf1_mem_block * block,unsigned int size,int w_16,int align) snd_gf1_mem_find() argument
181 snd_gf1_mem_alloc(struct snd_gf1_mem * alloc,int owner,char * name,int size,int w_16,int align,unsigned int * share_id) snd_gf1_mem_alloc() argument
184 struct snd_gf1_mem_block block, *nblock; snd_gf1_mem_alloc() local
216 struct snd_gf1_mem_block *block; snd_gf1_mem_free() local
232 struct snd_gf1_mem_block block; snd_gf1_mem_init() local
261 struct snd_gf1_mem_block *block, *nblock; snd_gf1_mem_done() local
279 struct snd_gf1_mem_block *block; snd_gf1_mem_info_read() local
[all...]
/linux/arch/mips/include/asm/octeon/
H A 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/mm/
H A 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-linke
56 unsigned int size; global() member
75 unsigned size; pools_show() local
95 pool_check_block(struct dma_pool * pool,struct dma_block * block,gfp_t mem_flags) pool_check_block() argument
135 struct dma_block *block = pool->next_block; pool_block_err() local
164 pool_check_block(struct dma_pool * pool,struct dma_block * block,gfp_t mem_flags) pool_check_block() argument
183 struct dma_block *block = pool->next_block; pool_block_pop() local
192 pool_block_push(struct dma_pool * pool,struct dma_block * block,dma_addr_t dma) pool_block_push() argument
225 dma_pool_create(const char * name,struct device * dev,size_t size,size_t align,size_t boundary) dma_pool_create() argument
303 struct dma_block *block, *first = NULL, *last = NULL; pool_initialise_page() local
407 struct dma_block *block; dma_pool_alloc() local
452 struct dma_block *block = vaddr; dma_pool_free() local
494 dmam_pool_create(const char * name,struct device * dev,size_t size,size_t align,size_t allocation) dmam_pool_create() argument
[all...]
H A Dpercpu.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * mm/percpu.c - percpu memory allocator
13 * a 1-to-1 mapping for units to possible cpus. These units are grouped
17 * ------------------- ------------------- ------------
19 * ------------------- ...... ------------------- .... ------------
23 * c1:u1, c1:u2, etc. On NUMA machines, the mapping may be non-linear
35 * linker. The reserved section, if non-zero, primarily manages static
39 * The allocator organizes chunks into lists according to free size and
40 * memcg-awareness. To make a percpu allocation memcg-aware the __GFP_ACCOUNT
41 * flag should be passed. All memcg-aware allocations are sharing one set
[all …]
/linux/arch/powerpc/lib/
H A 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/lib/xz/
H A 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/Documentation/filesystems/ext4/
H A 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 …]
H A Dbigalloc.rst1 .. SPDX-License-Identifier: GPL-2.0
4 --------
6 At the moment, the default size of a block is 4KiB, which is a commonly
7 supported page size on most MMU-capable hardware. This is fortunate, as
8 ext4 code is not prepared to handle the case where the block size
9 exceeds the page size. However, for a filesystem of mostly huge files,
15 use clustered allocation, so that each bit in the ext4 block allocation
17 file system is mainly going to be storing large files in the 4-32
18 megabyte range, it might make sense to set a cluster size of 1 megabyte.
19 This means that each bit in the block allocation bitmap now addresses
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A 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/Documentation/admin-guide/device-mapper/
H A 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 …]
H A Dcache.rst8 dm-cache is a device mapper target written by Joe Thornber, Heinz
11 It aims to improve performance of a block device (eg, a spindle) by
15 This device-mapper solution allows us to insert this caching at
17 a thin-provisioning pool. Caching solutions that are integrated more
20 The target reuses the metadata library used in the thin-provisioning
23 The decision as to what data to migrate and when is left to a plug-in
32 Movement of the primary copy of a logical block from one
39 The origin device always contains a copy of the logical block, which
46 Sub-devices
47 -----------
[all …]
/linux/drivers/misc/
H A Dsram.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Generic on-chip SRAM allocation driver
19 #include <soc/at91/atmel-secumod.h>
34 mutex_lock(&part->lock); in sram_read()
35 memcpy_fromio(buf, part->base + pos, count); in sram_read()
36 mutex_unlock(&part->lock); in sram_read()
50 mutex_lock(&part->lock); in sram_write()
51 memcpy_toio(part->base + pos, buf, count); in sram_write()
52 mutex_unlock(&part->lock); in sram_write()
57 static int sram_add_pool(struct sram_dev *sram, struct sram_reserve *block, in sram_add_pool() argument
[all …]
/linux/sound/pci/emu10k1/
H A 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/fs/ocfs2/
H A 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/arch/mips/cavium-octeon/executive/
H A 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/fs/cramfs/
H A 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/sound/synth/
H A Dutil_mem.c1 // SPDX-License-Identifier: GPL-2.0-or-later
32 hdr->size = memsize; in snd_util_memhdr_new()
33 mutex_init(&hdr->block_mutex); in snd_util_memhdr_new()
34 INIT_LIST_HEAD(&hdr->block); in snd_util_memhdr_new()
60 __snd_util_mem_alloc(struct snd_util_memhdr * hdr,int size) __snd_util_mem_alloc() argument
125 snd_util_mem_alloc(struct snd_util_memhdr * hdr,int size) snd_util_mem_alloc() argument
167 unsigned int size; snd_util_mem_avail() local
[all...]
/linux/drivers/md/dm-vdo/
H A Dmemory-alloc.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include "memory-alloc.h"
38 * @flag_ptr: Location of the allocation-allowed flag
71 * performance-critical stage for us, so a linked list should be fine.
75 size_t size; member
97 static void add_kmalloc_block(size_t size) in add_kmalloc_block() argument
103 memory_stats.kmalloc_bytes += size; in add_kmalloc_block()
108 static void remove_kmalloc_block(size_t size) in remove_kmalloc_block() argument
113 memory_stats.kmalloc_blocks--; in remove_kmalloc_block()
114 memory_stats.kmalloc_bytes -= size; in remove_kmalloc_block()
[all …]
/linux/include/linux/
H A Dbuffer_head.h1 /* SPDX-License-Identifier: GPL-2.0 */
30 BH_Boundary, /* Block is followed by a discontiguity */
52 * Historically, a buffer_head was used to map a single block
54 * filesystem and block layers. Nowadays the basic I/O unit
55 * is the bio, and buffer_heads are used for extracting block
68 sector_t b_blocknr; /* start block number */
69 size_t b_size; /* size of mapping */
93 if (!test_bit(BH_##bit, &(bh)->b_state)) \
94 set_bit(BH_##bit, &(bh)->b_state); \
98 clear_bit(BH_##bit, &(bh)->b_state); \
[all …]
H A Df2fs_fs.h1 // SPDX-License-Identifier: GPL-2.0
14 #define F2FS_SUPER_OFFSET 1024 /* byte-size offset */
16 #define F2FS_MAX_LOG_SECTOR_SIZE PAGE_SHIFT /* Max is Block Size */
17 #define F2FS_LOG_SECTORS_PER_BLOCK (PAGE_SHIFT - 9) /* log number for sector/blk */
18 #define F2FS_BLKSIZE PAGE_SIZE /* support only block == page */
21 #define F2FS_EXTENSION_LEN 8 /* max size of extension */
24 #define NEW_ADDR ((block_t)-1) /* used as block_t addresses */
25 #define COMPRESS_ADDR ((block_t)-2) /* used as compressed data flag */
27 #define F2FS_BLKSIZE_MASK (F2FS_BLKSIZE - 1)
30 #define F2FS_BLK_END_BYTES(blk) (F2FS_BLK_TO_BYTES(blk + 1) - 1)
[all …]
/linux/sound/soc/intel/atom/sst/
H A Dsst_loader.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * sst_dsp.c - Intel SST Driver for audio engine
5 * Copyright (C) 2008-14 Intel Corp
29 #include "../sst-mfld-platform.h"
34 /* __iowrite32_copy uses 32-bit count values so divide by 4 for in memcpy32_toio()
42 /* __ioread32_copy uses 32-bit count values so divide by 4 for in memcpy32_fromio()
49 * intel_sst_reset_dsp_mrfld - Resetting SST DSP
58 dev_dbg(sst_drv_ctx->dev, "sst: Resetting the DSP in mrfld\n"); in intel_sst_reset_dsp_mrfld()
59 csr.full = sst_shim_read64(sst_drv_ctx->shim, SST_CSR); in intel_sst_reset_dsp_mrfld()
61 dev_dbg(sst_drv_ctx->dev, "value:0x%llx\n", csr.full); in intel_sst_reset_dsp_mrfld()
[all …]
/linux/fs/ext2/
H A Dballoc.c1 // SPDX-License-Identifier: GPL-2.0
7 * Laboratoire MASI - Institut Blaise Pascal
10 * Enhanced block allocation by Stephen Tweedie (sct@redhat.com), 1993
11 * Big-endian to little-endian byte-swapping/bitmaps by
29 * blocks groups. Each group contains 1 bitmap block for blocks, 1 bitmap
30 * block for inodes, N blocks for the inode table and data blocks.
33 * super block. Each descriptor contains the number of the bitmap block and
34 * the free blocks count in the block. The descriptors are loaded in memory
48 if (block_group >= sbi->s_groups_count) { in ext2_get_group_desc()
49 WARN(1, "block_group >= groups_count - " in ext2_get_group_desc()
[all …]
H A Dxattr.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2001-2003 Andreas Gruenbacher <agruen@suse.de>
18 * block. If all extended attributes of an inode are identical, these
19 * inodes may share the same extended attribute block. Such situations
20 * are automatically detected by keeping a cache of recent attribute block
21 * numbers and hashes over the block's contents in memory.
24 * Extended attribute block layout:
26 * +------------------+
36 * +------------------+
38 * The block header is followed by multiple entry descriptors. These entry
[all …]

12345678910>>...42