/linux/drivers/net/ethernet/marvell/prestera/ ! |
H A D | prestera_counter.c | 45 prestera_counter_is_ready(struct prestera_counter_block *block, u32 id) in prestera_counter_is_ready() argument 47 return block->counter_flag[id - block->offset] == COUNTER_FLAG_READY; in prestera_counter_is_ready() 60 static void prestera_counter_block_lock(struct prestera_counter_block *block) in prestera_counter_block_lock() argument 62 mutex_lock(&block->mtx); in prestera_counter_block_lock() 65 static void prestera_counter_block_unlock(struct prestera_counter_block *block) in prestera_counter_block_unlock() argument 67 mutex_unlock(&block->mtx); in prestera_counter_block_unlock() 70 static bool prestera_counter_block_incref(struct prestera_counter_block *block) in prestera_counter_block_incref() argument 72 return refcount_inc_not_zero(&block->refcnt); in prestera_counter_block_incref() 75 static bool prestera_counter_block_decref(struct prestera_counter_block *block) in prestera_counter_block_decref() argument 77 return refcount_dec_and_test(&block->refcnt); in prestera_counter_block_decref() [all …]
|
H A D | prestera_flow.c | 16 static int prestera_flow_block_mall_cb(struct prestera_flow_block *block, in prestera_flow_block_mall_cb() argument 21 return prestera_mall_replace(block, f); in prestera_flow_block_mall_cb() 23 prestera_mall_destroy(block); in prestera_flow_block_mall_cb() 30 static int prestera_flow_block_flower_cb(struct prestera_flow_block *block, in prestera_flow_block_flower_cb() argument 35 return prestera_flower_replace(block, f); in prestera_flow_block_flower_cb() 37 prestera_flower_destroy(block, f); in prestera_flow_block_flower_cb() 40 return prestera_flower_stats(block, f); in prestera_flow_block_flower_cb() 42 return prestera_flower_tmplt_create(block, f); in prestera_flow_block_flower_cb() 44 prestera_flower_tmplt_destroy(block, f); in prestera_flow_block_flower_cb() 54 struct prestera_flow_block *block = cb_priv; in prestera_flow_block_cb() local [all …]
|
H A D | prestera_matchall.c | 14 static int prestera_mall_prio_check(struct prestera_flow_block *block, in prestera_mall_prio_check() argument 21 err = prestera_flower_prio_get(block, f->common.chain_index, in prestera_mall_prio_check() 32 if (f->common.prio <= flower_prio_max && !block->ingress) { in prestera_mall_prio_check() 36 if (f->common.prio >= flower_prio_min && block->ingress) { in prestera_mall_prio_check() 44 int prestera_mall_prio_get(struct prestera_flow_block *block, in prestera_mall_prio_get() argument 47 if (!block->mall.bound) in prestera_mall_prio_get() 50 *prio_min = block->mall.prio_min; in prestera_mall_prio_get() 51 *prio_max = block->mall.prio_max; in prestera_mall_prio_get() 55 static void prestera_mall_prio_update(struct prestera_flow_block *block, in prestera_mall_prio_update() argument 58 block->mall.prio_min = min(block->mall.prio_min, f->common.prio); in prestera_mall_prio_update() [all …]
|
/linux/sound/isa/gus/ ! |
H A D | gus_mem.c | 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() 70 int snd_gf1_mem_xfree(struct snd_gf1_mem * alloc, struct snd_gf1_mem_block * block) in snd_gf1_mem_xfree() argument 72 if (block->share) { /* ok.. shared block */ in snd_gf1_mem_xfree() 73 block->share--; in snd_gf1_mem_xfree() 77 if (alloc->first == block) { in snd_gf1_mem_xfree() 78 alloc->first = block->next; in snd_gf1_mem_xfree() 79 if (block->next) in snd_gf1_mem_xfree() 80 block->next->prev = NULL; in snd_gf1_mem_xfree() 82 block->prev->next = block->next; in snd_gf1_mem_xfree() [all …]
|
/linux/drivers/gpu/drm/ ! |
H A D | drm_buddy.c | 22 struct drm_buddy_block *block; in drm_block_alloc() local 26 block = kmem_cache_zalloc(slab_blocks, GFP_KERNEL); in drm_block_alloc() 27 if (!block) in drm_block_alloc() 30 block->header = offset; in drm_block_alloc() 31 block->header |= order; in drm_block_alloc() 32 block->parent = parent; in drm_block_alloc() 34 BUG_ON(block->header & DRM_BUDDY_HEADER_UNUSED); in drm_block_alloc() 35 return block; in drm_block_alloc() 39 struct drm_buddy_block *block) in drm_block_free() argument 41 kmem_cache_free(slab_blocks, block); in drm_block_free() [all …]
|
/linux/Documentation/filesystems/ext4/ ! |
H A D | blockgroup.rst | 3 Block Groups 9 The layout of a standard block group is approximately as follows (each 17 - ext4 Super Block 20 - Data Block Bitmap 25 - 1 block 28 - 1 block 29 - 1 block 33 For the special case of block group 0, the first 1024 bytes are unused, 35 The superblock will start at offset 1024 bytes, whichever block that 36 happens to be (usually 0). However, if for some reason the block size = [all …]
|
/linux/fs/lockd/ ! |
H A D | svclock.c | 42 static void nlmsvc_release_block(struct nlm_block *block); 43 static void nlmsvc_insert_block(struct nlm_block *block, unsigned long); 44 static void nlmsvc_remove_block(struct nlm_block *block); 89 nlmsvc_insert_block_locked(struct nlm_block *block, unsigned long when) in nlmsvc_insert_block_locked() argument 94 dprintk("lockd: nlmsvc_insert_block(%p, %ld)\n", block, when); in nlmsvc_insert_block_locked() 95 if (list_empty(&block->b_list)) { in nlmsvc_insert_block_locked() 96 kref_get(&block->b_count); in nlmsvc_insert_block_locked() 98 list_del_init(&block->b_list); in nlmsvc_insert_block_locked() 115 list_add_tail(&block->b_list, pos); in nlmsvc_insert_block_locked() 116 block->b_when = when; in nlmsvc_insert_block_locked() [all …]
|
/linux/drivers/iio/buffer/ ! |
H A D | industrialio-buffer-dma.c | 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 31 * sample the overhead will be x for each sample. Whereas when using a block 39 * them with data. Block on the outgoing queue have been filled with data and 42 * A block can be in one of the following states: 44 * the block. 47 * * Owned by the DMA controller: The DMA controller is processing the block 52 * * Dead: A block that is dead has been marked as to be freed. It might still 55 * incoming or outgoing queue the block will be freed. [all …]
|
/linux/Documentation/ABI/stable/ ! |
H A D | sysfs-block | 1 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 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 42 What: /sys/block/<disk>/atomic_write_unit_min_bytes 46 [RO] This parameter specifies the smallest block which can 53 What: /sys/block/<disk>/atomic_write_unit_max_bytes 57 [RO] This parameter defines the largest block which can be [all …]
|
/linux/drivers/mtd/ ! |
H A 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 …]
|
H A D | inftlmount.c | 35 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/drivers/gpio/ ! |
H A 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 …]
|
/linux/drivers/md/dm-vdo/ ! |
H A D | recovery-journal.c | 15 #include "block-map.h" 31 * block write from overwriting a block which appears to still be a valid head block of the 129 * block. 131 * @sequence_number: The journal sequence number of the referenced block. 195 * pop_free_list() - Get a block from the end of the free list. 198 * Return: The block or NULL if the list is empty. 202 struct recovery_journal_block *block; in pop_free_list() local 207 block = list_last_entry(&journal->free_tail_blocks, in pop_free_list() 209 list_del_init(&block->list_node); in pop_free_list() 210 return block; in pop_free_list() [all …]
|
H A D | recovery-journal.h | 24 * The recovery_journal provides a log of all block mapping and reference count changes which have 25 * not yet been stably written to the block map or slab journals. This log helps to reduce the 26 * write amplification of writes by providing amortization of slab journal and block map page 35 * journal. The 'head' is the oldest active block in the journal. The 'tail' is the end of the 36 * half-open interval containing the active blocks. 'active' is the number of the block actively 42 * less than the on-disk size. Each in-memory block is also a vdo_completion. Each in-memory block 43 * has a vio which is used to commit that block to disk. The vio's data is the on-disk 44 * representation of the journal block. In addition each in-memory block has a buffer which is used 45 * to accumulate entries while a partial commit of the block is in progress. In-memory blocks are 46 * kept on two lists. Free blocks live on the 'free_tail_blocks' list. When a block becomes active [all …]
|
/linux/net/sched/ ! |
H A D | cls_api.c | 181 struct tcf_block *block = chain->block; in tcf_proto_signal_destroying() local 183 mutex_lock(&block->proto_destroy_lock); in tcf_proto_signal_destroying() 184 hash_add_rcu(block->proto_destroy_ht, &tp->destroy_ht_node, in tcf_proto_signal_destroying() 186 mutex_unlock(&block->proto_destroy_lock); in tcf_proto_signal_destroying() 205 hash_for_each_possible_rcu(chain->block->proto_destroy_ht, iter, in tcf_proto_exists_destroying() 220 struct tcf_block *block = chain->block; in tcf_proto_signal_destroyed() local 222 mutex_lock(&block->proto_destroy_lock); in tcf_proto_signal_destroyed() 225 mutex_unlock(&block->proto_destroy_lock); in tcf_proto_signal_destroyed() 417 struct tcf_block *block = tp->chain->block; in tcf_proto_count_usesw() local 422 if (!atomic_dec_return(&block->useswcnt)) in tcf_proto_count_usesw() [all …]
|
/linux/drivers/pinctrl/qcom/ ! |
H A D | Kconfig.msm | 9 Qualcomm TLMM block found in the Qualcomm APQ8064 platform. 16 Qualcomm TLMM block found in the Qualcomm APQ8084 platform. 23 Qualcomm TLMM block found in the Qualcomm IPQ4019 platform. 30 the Qualcomm Technologies Inc. TLMM block found on the 39 Qualcomm TLMM block found in the Qualcomm IPQ8064 platform. 46 Qualcomm Technologies Inc TLMM block found on the Qualcomm 54 the Qualcomm Technologies Inc. TLMM block found on the 63 the Qualcomm Technologies Inc. TLMM block found on the 72 the Qualcomm Technologies Inc. TLMM block found on the 81 the Qualcomm Technologies Inc. TLMM block found on the [all …]
|
/linux/sound/pci/ctxfi/ ! |
H A 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 …]
|
/linux/fs/xfs/libxfs/ ! |
H A D | xfs_btree.c | 127 struct xfs_btree_block *block, in __xfs_btree_check_lblock_hdr() argument 134 if (!uuid_equal(&block->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid)) in __xfs_btree_check_lblock_hdr() 136 if (block->bb_u.l.bb_blkno != in __xfs_btree_check_lblock_hdr() 139 if (block->bb_u.l.bb_pad != cpu_to_be32(0)) in __xfs_btree_check_lblock_hdr() 143 if (be32_to_cpu(block->bb_magic) != xfs_btree_magic(mp, cur->bc_ops)) in __xfs_btree_check_lblock_hdr() 145 if (be16_to_cpu(block->bb_level) != level) in __xfs_btree_check_lblock_hdr() 147 if (be16_to_cpu(block->bb_numrecs) > in __xfs_btree_check_lblock_hdr() 155 * Check a long btree block header. Return the address of the failing check, 161 struct xfs_btree_block *block, in __xfs_btree_check_fsblock() argument 169 fa = __xfs_btree_check_lblock_hdr(cur, block, level, bp); in __xfs_btree_check_fsblock() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ ! |
H A D | spectrum_flow.c | 15 struct mlxsw_sp_flow_block *block; in mlxsw_sp_flow_block_create() local 17 block = kzalloc(sizeof(*block), GFP_KERNEL); in mlxsw_sp_flow_block_create() 18 if (!block) in mlxsw_sp_flow_block_create() 20 INIT_LIST_HEAD(&block->binding_list); in mlxsw_sp_flow_block_create() 21 INIT_LIST_HEAD(&block->mall.list); in mlxsw_sp_flow_block_create() 22 block->mlxsw_sp = mlxsw_sp; in mlxsw_sp_flow_block_create() 23 block->net = net; in mlxsw_sp_flow_block_create() 24 return block; in mlxsw_sp_flow_block_create() 27 void mlxsw_sp_flow_block_destroy(struct mlxsw_sp_flow_block *block) in mlxsw_sp_flow_block_destroy() argument 29 WARN_ON(!list_empty(&block->binding_list)); in mlxsw_sp_flow_block_destroy() [all …]
|
/linux/drivers/misc/ ! |
H A D | sram.c | 57 static int sram_add_pool(struct sram_dev *sram, struct sram_reserve *block, in sram_add_pool() argument 63 NUMA_NO_NODE, block->label); in sram_add_pool() 68 block->size, NUMA_NO_NODE); in sram_add_pool() 77 static int sram_add_export(struct sram_dev *sram, struct sram_reserve *block, in sram_add_export() argument 90 part->battr.size = block->size; in sram_add_export() 95 static int sram_add_partition(struct sram_dev *sram, struct sram_reserve *block, in sram_add_partition() argument 107 virt_base = devm_ioremap_resource(sram->dev, &block->res); in sram_add_partition() 109 virt_base = devm_ioremap_resource_wc(sram->dev, &block->res); in sram_add_partition() 112 dev_err(sram->dev, "could not map SRAM at %pr\n", &block->res); in sram_add_partition() 118 part->base = sram->virt_base + block->start; in sram_add_partition() [all …]
|
/linux/drivers/video/fbdev/ ! |
H A D | edid.h | 72 #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/fs/afs/ ! |
H A D | dir_edit.c | 18 * Find a number of contiguous clear bits in a directory block bitmask. 21 * variable. The first bit doesn't count as it corresponds to the block header 24 static int afs_find_contig_bits(union afs_xdr_dir_block *block, unsigned int nr_slots) in afs_find_contig_bits() argument 30 bitmap = (u64)block->hdr.bitmap[0] << 0 * 8; in afs_find_contig_bits() 31 bitmap |= (u64)block->hdr.bitmap[1] << 1 * 8; in afs_find_contig_bits() 32 bitmap |= (u64)block->hdr.bitmap[2] << 2 * 8; in afs_find_contig_bits() 33 bitmap |= (u64)block->hdr.bitmap[3] << 3 * 8; in afs_find_contig_bits() 34 bitmap |= (u64)block->hdr.bitmap[4] << 4 * 8; in afs_find_contig_bits() 35 bitmap |= (u64)block->hdr.bitmap[5] << 5 * 8; in afs_find_contig_bits() 36 bitmap |= (u64)block->hdr.bitmap[6] << 6 * 8; in afs_find_contig_bits() [all …]
|
/linux/Documentation/admin-guide/device-mapper/ ! |
H A D | dm-dust.rst | 15 in the "bad block list" will fail with EIO ("Input/output error"). 17 Writes of blocks in the "bad block list will result in the following: 19 1. Remove the block from the "bad block list". 40 Path to the block device. 46 Block size in bytes 59 (For a device with a block size of 512 bytes) 65 (For a device with a block size of 4096 bytes) 73 bad block additions, removals, and remaps will be verbosely logged):: 89 At any time (i.e.: whether the device has the "bad block" emulation 94 kernel: device-mapper: dust: badblock added at block 60 [all …]
|
/linux/arch/riscv/boot/dts/sophgo/ ! |
H A D | sg2044-cpus.dtsi | 18 i-cache-block-size = <64>; 21 d-cache-block-size = <64>; 40 riscv,cbom-block-size = <64>; 41 riscv,cbop-block-size = <64>; 42 riscv,cboz-block-size = <64>; 54 i-cache-block-size = <64>; 57 d-cache-block-size = <64>; 76 riscv,cbom-block-size = <64>; 77 riscv,cbop-block-size = <64>; 78 riscv,cboz-block-size = <64>; [all …]
|
/linux/drivers/block/ ! |
H A D | Kconfig | 3 # Block device driver configuration 7 bool "Block devices" 8 depends on BLOCK 11 Say Y here to get to see options for various different block device 19 source "drivers/block/null_blk/Kconfig" 106 source "drivers/block/mtip32xx/Kconfig" 108 source "drivers/block/zram/Kconfig" 111 bool "Virtual block device" 115 you access arbitrary files on the host computer as block devices. 116 Unless you know that you do not need such virtual block devices say [all …]
|