Home
last modified time | relevance | path

Searched full:block (Results 1 – 25 of 4062) sorted by relevance

12345678910>>...163

/Linux-v5.4/sound/isa/gus/
Dgus_mem.c28 struct snd_gf1_mem_block * block) in snd_gf1_mem_xalloc() argument
35 *nblock = *block; in snd_gf1_mem_xalloc()
63 int snd_gf1_mem_xfree(struct snd_gf1_mem * alloc, struct snd_gf1_mem_block * block) in snd_gf1_mem_xfree() argument
65 if (block->share) { /* ok.. shared block */ in snd_gf1_mem_xfree()
66 block->share--; in snd_gf1_mem_xfree()
70 if (alloc->first == block) { in snd_gf1_mem_xfree()
71 alloc->first = block->next; in snd_gf1_mem_xfree()
72 if (block->next) in snd_gf1_mem_xfree()
73 block->next->prev = NULL; in snd_gf1_mem_xfree()
75 block->prev->next = block->next; in snd_gf1_mem_xfree()
[all …]
Dgus_dma.c82 struct snd_gf1_dma_block *block; in snd_gf1_dma_next_block() local
84 /* PCM block have bigger priority than synthesizer one */ in snd_gf1_dma_next_block()
86 block = gus->gf1.dma_data_pcm; in snd_gf1_dma_next_block()
87 if (gus->gf1.dma_data_pcm_last == block) { in snd_gf1_dma_next_block()
91 gus->gf1.dma_data_pcm = block->next; in snd_gf1_dma_next_block()
94 block = gus->gf1.dma_data_synth; in snd_gf1_dma_next_block()
95 if (gus->gf1.dma_data_synth_last == block) { in snd_gf1_dma_next_block()
99 gus->gf1.dma_data_synth = block->next; in snd_gf1_dma_next_block()
102 block = NULL; in snd_gf1_dma_next_block()
104 if (block) { in snd_gf1_dma_next_block()
[all …]
/Linux-v5.4/Documentation/filesystems/ext4/
Dblockgroup.rst6 The layout of a standard block group is approximately as follows (each
14 - ext4 Super Block
17 - Data Block Bitmap
22 - 1 block
25 - 1 block
26 - 1 block
30 For the special case of block group 0, the first 1024 bytes are unused,
32 The superblock will start at offset 1024 bytes, whichever block that
33 happens to be (usually 0). However, if for some reason the block size =
34 1024, then block 0 is marked in use and the superblock goes in block 1.
[all …]
Djournal.rst34 consumes an entire block group, though mke2fs tries to put it in the
63 or a block revocation list. A finished transaction always ends with a
74 will be an ext4 super block in the usual place, with a matching UUID.
75 The journal superblock will be in the next full block after the
94 Block Header
97 Every block in the journal starts with a common 12-byte header
115 - Description of what this block contains. See the jbd2_blocktype_ table
120 - The transaction ID that goes with this block.
124 The journal block type can be any one of:
133 - Descriptor. This block precedes a series of data blocks that were
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/
Di915_buddy.c48 struct i915_buddy_block *block; in i915_block_alloc() local
50 block = kmem_cache_zalloc(global.slab_blocks, GFP_KERNEL); in i915_block_alloc()
51 if (!block) in i915_block_alloc()
54 block->header = offset; in i915_block_alloc()
55 block->header |= order; in i915_block_alloc()
56 block->parent = parent; in i915_block_alloc()
58 return block; in i915_block_alloc()
61 static void i915_block_free(struct i915_buddy_block *block) in i915_block_free() argument
63 kmem_cache_free(global.slab_blocks, block); in i915_block_free()
66 static void mark_allocated(struct i915_buddy_block *block) in mark_allocated() argument
[all …]
/Linux-v5.4/drivers/iio/buffer/
Dindustrialio-buffer-dma.c22 * For DMA buffers the storage is sub-divided into so called blocks. Each block
23 * has its own memory buffer. The size of the block is the granularity at which
25 * basic unit of data exchange from one sample to one block decreases the
28 * sample the overhead will be x for each sample. Whereas when using a block
36 * them with data. Block on the outgoing queue have been filled with data and
39 * A block can be in one of the following states:
41 * the block.
44 * * Owned by the DMA controller: The DMA controller is processing the block
49 * * Dead: A block that is dead has been marked as to be freed. It might still
52 * incoming or outgoing queue the block will be freed.
[all …]
/Linux-v5.4/fs/lockd/
Dsvclock.c43 static void nlmsvc_release_block(struct nlm_block *block);
44 static void nlmsvc_insert_block(struct nlm_block *block, unsigned long);
45 static void nlmsvc_remove_block(struct nlm_block *block);
90 nlmsvc_insert_block_locked(struct nlm_block *block, unsigned long when) in nlmsvc_insert_block_locked() argument
95 dprintk("lockd: nlmsvc_insert_block(%p, %ld)\n", block, when); in nlmsvc_insert_block_locked()
96 if (list_empty(&block->b_list)) { in nlmsvc_insert_block_locked()
97 kref_get(&block->b_count); in nlmsvc_insert_block_locked()
99 list_del_init(&block->b_list); in nlmsvc_insert_block_locked()
116 list_add_tail(&block->b_list, pos); in nlmsvc_insert_block_locked()
117 block->b_when = when; in nlmsvc_insert_block_locked()
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/selftests/
Di915_buddy.c14 struct i915_buddy_block *block, in __igt_dump_block() argument
17 pr_err("block info: header=%llx, state=%u, order=%d, offset=%llx size=%llx root=%s buddy=%s\n", in __igt_dump_block()
18 block->header, in __igt_dump_block()
19 i915_buddy_block_state(block), in __igt_dump_block()
20 i915_buddy_block_order(block), in __igt_dump_block()
21 i915_buddy_block_offset(block), in __igt_dump_block()
22 i915_buddy_block_size(mm, block), in __igt_dump_block()
23 yesno(!block->parent), in __igt_dump_block()
28 struct i915_buddy_block *block) in igt_dump_block() argument
32 __igt_dump_block(mm, block, false); in igt_dump_block()
[all …]
/Linux-v5.4/drivers/gpio/
Dgpio-sch311x.c39 struct sch311x_gpio_block { /* one GPIO block runtime data */
44 spinlock_t lock; /* lock for this GPIO block */
134 struct sch311x_gpio_block *block = gpiochip_get_data(chip); in sch311x_gpio_request() local
136 if (block->config_regs[offset] == 0) /* GPIO is not available */ in sch311x_gpio_request()
139 if (!request_region(block->runtime_reg + block->config_regs[offset], in sch311x_gpio_request()
142 block->runtime_reg + block->config_regs[offset]); in sch311x_gpio_request()
150 struct sch311x_gpio_block *block = gpiochip_get_data(chip); in sch311x_gpio_free() local
152 if (block->config_regs[offset] == 0) /* GPIO is not available */ in sch311x_gpio_free()
155 release_region(block->runtime_reg + block->config_regs[offset], 1); in sch311x_gpio_free()
160 struct sch311x_gpio_block *block = gpiochip_get_data(chip); in sch311x_gpio_get() local
[all …]
/Linux-v5.4/drivers/mtd/
Dnftlmount.c28 unsigned int block, boot_record_count = 0; in find_boot_record() local
48 for (block = 0; block < nftl->nb_blocks; block++) { in find_boot_record()
53 ret = mtd_read(mtd, block * nftl->EraseSize, SECTORSIZE, in find_boot_record()
61 printk(KERN_WARNING "Block read at 0x%x of mtd%d failed: %d\n", in find_boot_record()
62 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record()
64 printk(KERN_WARNING "Further failures for this block will not be printed\n"); in find_boot_record()
73 block * nftl->EraseSize, nftl->mbd.mtd->index); in find_boot_record()
79 ret = nftl_read_oob(mtd, block * nftl->EraseSize + in find_boot_record()
84 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record()
94 block * nftl->EraseSize, nftl->mbd.mtd->index, in find_boot_record()
[all …]
Dinftlmount.c35 unsigned int i, block; in find_boot_record() local
55 for (block = 0; block < inftl->nb_blocks; block++) { in find_boot_record()
62 ret = mtd_read(mtd, block * inftl->EraseSize, SECTORSIZE, in find_boot_record()
70 printk(KERN_WARNING "INFTL: block read at 0x%x " in find_boot_record()
72 block * inftl->EraseSize, in find_boot_record()
76 "failures for this block will " in find_boot_record()
89 block * inftl->EraseSize + SECTORSIZE + 8, in find_boot_record()
94 "(err %d)\n", block * inftl->EraseSize, in find_boot_record()
107 mtd_read(mtd, block * inftl->EraseSize + 4096, SECTORSIZE, in find_boot_record()
172 block >>= mh->BlockMultiplierBits; in find_boot_record()
[all …]
/Linux-v5.4/drivers/w1/
Dw1_netlink.c41 struct w1_cb_block *block; member
49 * @block: block to calculate
55 static u16 w1_reply_len(struct w1_cb_block *block) in w1_reply_len() argument
57 if (!block->cn) in w1_reply_len()
59 return (u8 *)block->cn - (u8 *)block->first_cn + block->cn->len; in w1_reply_len()
62 static void w1_unref_block(struct w1_cb_block *block) in w1_unref_block() argument
64 if (atomic_sub_return(1, &block->refcnt) == 0) { in w1_unref_block()
65 u16 len = w1_reply_len(block); in w1_unref_block()
67 cn_netlink_send_mult(block->first_cn, len, in w1_unref_block()
68 block->portid, 0, GFP_KERNEL); in w1_unref_block()
[all …]
/Linux-v5.4/net/sched/
Dcls_api.c60 struct tcf_block *block = chain->block; in tcf_proto_signal_destroying() local
62 mutex_lock(&block->proto_destroy_lock); in tcf_proto_signal_destroying()
63 hash_add_rcu(block->proto_destroy_ht, &tp->destroy_ht_node, in tcf_proto_signal_destroying()
65 mutex_unlock(&block->proto_destroy_lock); in tcf_proto_signal_destroying()
84 hash_for_each_possible_rcu(chain->block->proto_destroy_ht, iter, in tcf_proto_exists_destroying()
99 struct tcf_block *block = chain->block; in tcf_proto_signal_destroyed() local
101 mutex_lock(&block->proto_destroy_lock); in tcf_proto_signal_destroyed()
104 mutex_unlock(&block->proto_destroy_lock); in tcf_proto_signal_destroyed()
359 #define ASSERT_BLOCK_LOCKED(block) \ argument
360 lockdep_assert_held(&(block)->lock)
[all …]
/Linux-v5.4/block/
DKconfig3 # Block layer core configuration
5 menuconfig BLOCK config
6 bool "Enable the block layer" if EXPERT
11 Provide block layer support for the kernel.
13 Disable this option to remove the block layer support from the
18 - block device files will become unusable
22 they make use of various block layer definitions and facilities.
27 if BLOCK
36 bool "Block layer SG support v4"
41 for any block device.
[all …]
/Linux-v5.4/sound/pci/ctxfi/
Dctvmem.c26 * Find or create vm block based on requested @size.
32 struct ct_vm_block *block = NULL, *entry; in get_vm_block() local
46 break; /* found a block that is big enough */ in get_vm_block()
55 block = entry; in get_vm_block()
59 block = kzalloc(sizeof(*block), GFP_KERNEL); in get_vm_block()
60 if (!block) in get_vm_block()
63 block->addr = entry->addr; in get_vm_block()
64 block->size = size; in get_vm_block()
65 list_add(&block->list, &vm->used); in get_vm_block()
72 return block; in get_vm_block()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dcore_acl_flex_actions.c272 /* Block structure holds a list of action sets. One action block
283 * in this block.
289 void (*destructor)(struct mlxsw_afa_block *block,
293 static void mlxsw_afa_resource_add(struct mlxsw_afa_block *block, in mlxsw_afa_resource_add() argument
296 list_add(&resource->list, &block->resource_list); in mlxsw_afa_resource_add()
304 static void mlxsw_afa_resources_destroy(struct mlxsw_afa_block *block) in mlxsw_afa_resources_destroy() argument
308 list_for_each_entry_safe(resource, tmp, &block->resource_list, list) { in mlxsw_afa_resources_destroy()
309 resource->destructor(block, resource); in mlxsw_afa_resources_destroy()
315 struct mlxsw_afa_block *block; in mlxsw_afa_block_create() local
317 block = kzalloc(sizeof(*block), GFP_KERNEL); in mlxsw_afa_block_create()
[all …]
Dspectrum_acl.c49 struct mlxsw_sp_acl_block *block; member
95 struct mlxsw_sp *mlxsw_sp_acl_block_mlxsw_sp(struct mlxsw_sp_acl_block *block) in mlxsw_sp_acl_block_mlxsw_sp() argument
97 return block->mlxsw_sp; in mlxsw_sp_acl_block_mlxsw_sp()
100 unsigned int mlxsw_sp_acl_block_rule_count(struct mlxsw_sp_acl_block *block) in mlxsw_sp_acl_block_rule_count() argument
102 return block ? block->rule_count : 0; in mlxsw_sp_acl_block_rule_count()
105 void mlxsw_sp_acl_block_disable_inc(struct mlxsw_sp_acl_block *block) in mlxsw_sp_acl_block_disable_inc() argument
107 if (block) in mlxsw_sp_acl_block_disable_inc()
108 block->disable_count++; in mlxsw_sp_acl_block_disable_inc()
111 void mlxsw_sp_acl_block_disable_dec(struct mlxsw_sp_acl_block *block) in mlxsw_sp_acl_block_disable_dec() argument
113 if (block) in mlxsw_sp_acl_block_disable_dec()
[all …]
/Linux-v5.4/Documentation/ABI/testing/
Dsysfs-block1 What: /sys/block/<disk>/stat
5 The /sys/block/<disk>/stat files displays the I/O
21 What: /sys/block/<disk>/<part>/stat
25 The /sys/block/<disk>/<part>/stat files display the
27 same as the above-written /sys/block/<disk>/stat
31 What: /sys/block/<disk>/integrity/format
35 Metadata format for integrity capable block device.
39 What: /sys/block/<disk>/integrity/read_verify
43 Indicates whether the block layer should verify the
48 What: /sys/block/<disk>/integrity/tag_size
[all …]
/Linux-v5.4/fs/xfs/libxfs/
Dxfs_btree.c53 * Check a long btree block header. Return the address of the failing check,
59 struct xfs_btree_block *block, in __xfs_btree_check_lblock() argument
68 if (!uuid_equal(&block->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid)) in __xfs_btree_check_lblock()
70 if (block->bb_u.l.bb_blkno != in __xfs_btree_check_lblock()
73 if (block->bb_u.l.bb_pad != cpu_to_be32(0)) in __xfs_btree_check_lblock()
77 if (be32_to_cpu(block->bb_magic) != xfs_btree_magic(crc, btnum)) in __xfs_btree_check_lblock()
79 if (be16_to_cpu(block->bb_level) != level) in __xfs_btree_check_lblock()
81 if (be16_to_cpu(block->bb_numrecs) > in __xfs_btree_check_lblock()
84 if (block->bb_u.l.bb_leftsib != cpu_to_be64(NULLFSBLOCK) && in __xfs_btree_check_lblock()
85 !xfs_btree_check_lptr(cur, be64_to_cpu(block->bb_u.l.bb_leftsib), in __xfs_btree_check_lblock()
[all …]
/Linux-v5.4/drivers/video/fbdev/
Dedid.h72 #define PIXEL_CLOCK_LO (unsigned)block[ 0 ]
73 #define PIXEL_CLOCK_HI (unsigned)block[ 1 ]
75 #define H_ACTIVE_LO (unsigned)block[ 2 ]
76 #define H_BLANKING_LO (unsigned)block[ 3 ]
77 #define H_ACTIVE_HI UPPER_NIBBLE( (unsigned)block[ 4 ] )
79 #define H_BLANKING_HI LOWER_NIBBLE( (unsigned)block[ 4 ] )
82 #define V_ACTIVE_LO (unsigned)block[ 5 ]
83 #define V_BLANKING_LO (unsigned)block[ 6 ]
84 #define V_ACTIVE_HI UPPER_NIBBLE( (unsigned)block[ 7 ] )
86 #define V_BLANKING_HI LOWER_NIBBLE( (unsigned)block[ 7 ] )
[all …]
/Linux-v5.4/drivers/misc/
Dsram.c55 static int sram_add_pool(struct sram_dev *sram, struct sram_reserve *block, in sram_add_pool() argument
61 NUMA_NO_NODE, block->label); in sram_add_pool()
66 block->size, NUMA_NO_NODE); in sram_add_pool()
75 static int sram_add_export(struct sram_dev *sram, struct sram_reserve *block, in sram_add_export() argument
88 part->battr.size = block->size; in sram_add_export()
93 static int sram_add_partition(struct sram_dev *sram, struct sram_reserve *block, in sram_add_partition() argument
100 part->base = sram->virt_base + block->start; in sram_add_partition()
102 if (block->pool) { in sram_add_partition()
103 ret = sram_add_pool(sram, block, start, part); in sram_add_partition()
107 if (block->export) { in sram_add_partition()
[all …]
/Linux-v5.4/fs/afs/
Ddir_edit.c17 * Find a number of contiguous clear bits in a directory block bitmask.
20 * variable. The first bit doesn't count as it corresponds to the block header
23 static int afs_find_contig_bits(union afs_xdr_dir_block *block, unsigned int nr_slots) in afs_find_contig_bits() argument
29 bitmap = (u64)block->hdr.bitmap[0] << 0 * 8; in afs_find_contig_bits()
30 bitmap |= (u64)block->hdr.bitmap[1] << 1 * 8; in afs_find_contig_bits()
31 bitmap |= (u64)block->hdr.bitmap[2] << 2 * 8; in afs_find_contig_bits()
32 bitmap |= (u64)block->hdr.bitmap[3] << 3 * 8; in afs_find_contig_bits()
33 bitmap |= (u64)block->hdr.bitmap[4] << 4 * 8; in afs_find_contig_bits()
34 bitmap |= (u64)block->hdr.bitmap[5] << 5 * 8; in afs_find_contig_bits()
35 bitmap |= (u64)block->hdr.bitmap[6] << 6 * 8; in afs_find_contig_bits()
[all …]
/Linux-v5.4/sound/soc/intel/common/
Dsst-firmware.c123 struct sst_mem_block *block, *tmp; in block_list_remove() local
126 /* disable each block */ in block_list_remove()
127 list_for_each_entry(block, block_list, module_list) { in block_list_remove()
129 if (block->ops && block->ops->disable) { in block_list_remove()
130 err = block->ops->disable(block); in block_list_remove()
133 "error: cant disable block %d:%d\n", in block_list_remove()
134 block->type, block->index); in block_list_remove()
138 /* mark each block as free */ in block_list_remove()
139 list_for_each_entry_safe(block, tmp, block_list, module_list) { in block_list_remove()
140 list_del(&block->module_list); in block_list_remove()
[all …]
/Linux-v5.4/arch/mips/include/asm/octeon/
Dcvmx-bootmem.h45 /* Allocate from end of block instead of beginning */
51 /* First bytes of each free physical block of memory contain this structure,
76 /* Base address of named block */
79 * Size actually allocated for named block (may differ from
83 /* name of named block */
122 /* address of named memory block descriptors */
149 * Allocate a block of memory from the free list that was
155 * @size: Size in bytes of block to allocate
159 * Returns pointer to block of memory, NULL on error
165 * Frees a previously allocated named bootmem block.
[all …]
/Linux-v5.4/drivers/net/ethernet/marvell/octeontx2/af/
Drvu.c29 struct rvu_block *block, int lf);
31 struct rvu_block *block, int lf);
59 /* Poll a RVU block's register 'offset', for a 'zero'
62 int rvu_poll_reg(struct rvu *rvu, u64 block, u64 offset, u64 mask, bool zero) in rvu_poll_reg() argument
68 reg = rvu->afreg_base + ((block << 28) | offset); in rvu_poll_reg()
164 /* Get block LF's HW index from a PF_FUNC's block slot number */
165 int rvu_get_lf(struct rvu *rvu, struct rvu_block *block, u16 pcifunc, u16 slot) in rvu_get_lf() argument
171 for (lf = 0; lf < block->lf.max; lf++) { in rvu_get_lf()
172 if (block->fn_map[lf] == pcifunc) { in rvu_get_lf()
260 struct rvu_block *block, u16 pcifunc, in rvu_update_rsrc_map() argument
[all …]

12345678910>>...163