| /kernel/linux/linux-5.10/sound/isa/gus/ |
| D | gus_mem.c | 28 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 …]
|
| D | gus_dma.c | 82 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 …]
|
| /kernel/linux/linux-5.10/Documentation/filesystems/ext4/ |
| D | blockgroup.rst | 6 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 …]
|
| /kernel/linux/linux-4.19/Documentation/filesystems/ext4/ondisk/ |
| D | blockgroup.rst | 6 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 …]
|
| D | journal.rst | 34 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 …]
|
| /kernel/linux/linux-4.19/sound/isa/gus/ |
| D | gus_mem.c | 43 struct snd_gf1_mem_block * block) in snd_gf1_mem_xalloc() argument 50 *nblock = *block; in snd_gf1_mem_xalloc() 78 int snd_gf1_mem_xfree(struct snd_gf1_mem * alloc, struct snd_gf1_mem_block * block) in snd_gf1_mem_xfree() argument 80 if (block->share) { /* ok.. shared block */ in snd_gf1_mem_xfree() 81 block->share--; in snd_gf1_mem_xfree() 85 if (alloc->first == block) { in snd_gf1_mem_xfree() 86 alloc->first = block->next; in snd_gf1_mem_xfree() 87 if (block->next) in snd_gf1_mem_xfree() 88 block->next->prev = NULL; in snd_gf1_mem_xfree() 90 block->prev->next = block->next; in snd_gf1_mem_xfree() [all …]
|
| D | gus_dma.c | 97 struct snd_gf1_dma_block *block; in snd_gf1_dma_next_block() local 99 /* PCM block have bigger priority than synthesizer one */ in snd_gf1_dma_next_block() 101 block = gus->gf1.dma_data_pcm; in snd_gf1_dma_next_block() 102 if (gus->gf1.dma_data_pcm_last == block) { in snd_gf1_dma_next_block() 106 gus->gf1.dma_data_pcm = block->next; in snd_gf1_dma_next_block() 109 block = gus->gf1.dma_data_synth; in snd_gf1_dma_next_block() 110 if (gus->gf1.dma_data_synth_last == block) { in snd_gf1_dma_next_block() 114 gus->gf1.dma_data_synth = block->next; in snd_gf1_dma_next_block() 117 block = NULL; in snd_gf1_dma_next_block() 119 if (block) { in snd_gf1_dma_next_block() [all …]
|
| /kernel/linux/linux-5.10/fs/lockd/ |
| D | svclock.c | 43 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 …]
|
| /kernel/linux/linux-4.19/fs/lockd/ |
| D | svclock.c | 43 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
| D | i915_buddy.c | 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 64 kmem_cache_free(global.slab_blocks, block); in i915_block_free() 67 static void mark_allocated(struct i915_buddy_block *block) in mark_allocated() argument [all …]
|
| /kernel/linux/linux-4.19/drivers/iio/buffer/ |
| D | industrialio-buffer-dma.c | 23 * For DMA buffers the storage is sub-divided into so called blocks. Each block 24 * has its own memory buffer. The size of the block is the granularity at which 26 * basic unit of data exchange from one sample to one block decreases the 29 * sample the overhead will be x for each sample. Whereas when using a block 37 * them with data. Block on the outgoing queue have been filled with data and 40 * A block can be in one of the following states: 42 * the block. 45 * * Owned by the DMA controller: The DMA controller is processing the block 50 * * Dead: A block that is dead has been marked as to be freed. It might still 53 * incoming or outgoing queue the block will be freed. [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/buffer/ |
| D | industrialio-buffer-dma.c | 21 * For DMA buffers the storage is sub-divided into so called blocks. Each block 22 * has its own memory buffer. The size of the block is the granularity at which 24 * basic unit of data exchange from one sample to one block decreases the 27 * sample the overhead will be x for each sample. Whereas when using a block 35 * them with data. Block on the outgoing queue have been filled with data and 38 * A block can be in one of the following states: 40 * the block. 43 * * Owned by the DMA controller: The DMA controller is processing the block 48 * * Dead: A block that is dead has been marked as to be freed. It might still 51 * incoming or outgoing queue the block will be freed. [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/ |
| D | i915_buddy.c | 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 30 __igt_dump_block(mm, block, false); in igt_dump_block() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpio/ |
| D | gpio-sch311x.c | 39 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 …]
|
| /kernel/linux/linux-5.10/drivers/mtd/ |
| D | nftlmount.c | 28 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 …]
|
| /kernel/linux/linux-5.10/drivers/w1/ |
| D | w1_netlink.c | 41 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 …]
|
| /kernel/linux/linux-4.19/drivers/w1/ |
| D | w1_netlink.c | 50 struct w1_cb_block *block; member 58 * @block: block to calculate 64 static u16 w1_reply_len(struct w1_cb_block *block) in w1_reply_len() argument 66 if (!block->cn) in w1_reply_len() 68 return (u8 *)block->cn - (u8 *)block->first_cn + block->cn->len; in w1_reply_len() 71 static void w1_unref_block(struct w1_cb_block *block) in w1_unref_block() argument 73 if (atomic_sub_return(1, &block->refcnt) == 0) { in w1_unref_block() 74 u16 len = w1_reply_len(block); in w1_unref_block() 76 cn_netlink_send_mult(block->first_cn, len, in w1_unref_block() 77 block->portid, 0, GFP_KERNEL); in w1_unref_block() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpio/ |
| D | gpio-sch311x.c | 43 struct sch311x_gpio_block { /* one GPIO block runtime data */ 48 spinlock_t lock; /* lock for this GPIO block */ 138 struct sch311x_gpio_block *block = gpiochip_get_data(chip); in sch311x_gpio_request() local 140 if (block->config_regs[offset] == 0) /* GPIO is not available */ in sch311x_gpio_request() 143 if (!request_region(block->runtime_reg + block->config_regs[offset], in sch311x_gpio_request() 146 block->runtime_reg + block->config_regs[offset]); in sch311x_gpio_request() 154 struct sch311x_gpio_block *block = gpiochip_get_data(chip); in sch311x_gpio_free() local 156 if (block->config_regs[offset] == 0) /* GPIO is not available */ in sch311x_gpio_free() 159 release_region(block->runtime_reg + block->config_regs[offset], 1); in sch311x_gpio_free() 164 struct sch311x_gpio_block *block = gpiochip_get_data(chip); in sch311x_gpio_get() local [all …]
|
| /kernel/linux/linux-4.19/drivers/mtd/ |
| D | nftlmount.c | 41 unsigned int block, boot_record_count = 0; in find_boot_record() local 61 for (block = 0; block < nftl->nb_blocks; block++) { in find_boot_record() 66 ret = mtd_read(mtd, block * nftl->EraseSize, SECTORSIZE, in find_boot_record() 74 printk(KERN_WARNING "Block read at 0x%x of mtd%d failed: %d\n", in find_boot_record() 75 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record() 77 printk(KERN_WARNING "Further failures for this block will not be printed\n"); in find_boot_record() 86 block * nftl->EraseSize, nftl->mbd.mtd->index); in find_boot_record() 92 ret = nftl_read_oob(mtd, block * nftl->EraseSize + in find_boot_record() 97 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record() 107 block * nftl->EraseSize, nftl->mbd.mtd->index, in find_boot_record() [all …]
|
| /kernel/linux/linux-5.10/block/ |
| D | Kconfig | 3 # 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 39 bool "Block layer SG support v4" 44 for any block device. [all …]
|
| /kernel/liteos_a/fs/vfs/bcache/src/ |
| D | bcache.c | 69 PRINTK(" block number: %u\n", g_blockNum); in BcacheAnalyse() 140 OsBcacheBlock *block = NULL; in RbFindBlock() local 143 for (; node != NULL; node = (block->num < num) ? node->rb_right : node->rb_left) { in RbFindBlock() 144 block = rb_entry(node, OsBcacheBlock, rbNode); in RbFindBlock() 145 if (block->num == num) { in RbFindBlock() 146 return block; in RbFindBlock() 152 static VOID RbAddBlock(OsBcache *bc, OsBcacheBlock *block) in RbAddBlock() argument 159 rb_link_node(&block->rbNode, NULL, &bc->rbRoot.rb_node); in RbAddBlock() 161 …for (; node != NULL; link = (b->num > block->num) ? &node->rb_left : &node->rb_right, node = *link… in RbAddBlock() 163 if (b->num == block->num) { in RbAddBlock() [all …]
|
| /kernel/linux/linux-4.19/block/ |
| D | Kconfig | 3 # 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 30 bool "Support for large (2TB+) block devices and files" 34 Enable block devices or files of size 2TB and larger. [all …]
|
| /kernel/linux/linux-4.19/arch/mips/include/asm/octeon/ |
| D | cvmx-bootmem.h | 45 /* 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 passed 153 * @size: Size in bytes of block to allocate 156 * Returns pointer to block of memory, NULL on error 161 * Allocate a block of memory from the free list that was [all …]
|
| /kernel/linux/linux-5.10/drivers/misc/ |
| D | sram.c | 55 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 …]
|
| /kernel/linux/linux-5.10/sound/pci/ctxfi/ |
| D | ctvmem.c | 26 * 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 …]
|