/linux-6.6.21/drivers/net/ethernet/marvell/prestera/ |
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 …]
|
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 …]
|
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-6.6.21/sound/isa/gus/ |
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 …]
|
D | gus_dma.c | 82 struct snd_gf1_dma_block *block; in snd_gf1_dma_next_block() local 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() 105 gus->gf1.dma_ack = block->ack; in snd_gf1_dma_next_block() [all …]
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_buddy.c | 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 38 kmem_cache_free(slab_blocks, block); in drm_block_free() [all …]
|
/linux-6.6.21/drivers/iio/buffer/ |
D | industrialio-buffer-dma.c | 95 struct iio_dma_buffer_block *block = container_of(kref, in iio_buffer_block_release() local 98 WARN_ON(block->state != IIO_BLOCK_STATE_DEAD); in iio_buffer_block_release() 100 dma_free_coherent(block->queue->dev, PAGE_ALIGN(block->size), in iio_buffer_block_release() 101 block->vaddr, block->phys_addr); in iio_buffer_block_release() 103 iio_buffer_put(&block->queue->buffer); in iio_buffer_block_release() 104 kfree(block); in iio_buffer_block_release() 107 static void iio_buffer_block_get(struct iio_dma_buffer_block *block) in iio_buffer_block_get() argument 109 kref_get(&block->kref); in iio_buffer_block_get() 112 static void iio_buffer_block_put(struct iio_dma_buffer_block *block) in iio_buffer_block_put() argument 114 kref_put(&block->kref, iio_buffer_block_release); in iio_buffer_block_put() [all …]
|
/linux-6.6.21/fs/lockd/ |
D | svclock.c | 44 static void nlmsvc_release_block(struct nlm_block *block); 45 static void nlmsvc_insert_block(struct nlm_block *block, unsigned long); 46 static void nlmsvc_remove_block(struct nlm_block *block); 91 nlmsvc_insert_block_locked(struct nlm_block *block, unsigned long when) in nlmsvc_insert_block_locked() argument 96 dprintk("lockd: nlmsvc_insert_block(%p, %ld)\n", block, when); in nlmsvc_insert_block_locked() 97 if (list_empty(&block->b_list)) { in nlmsvc_insert_block_locked() 98 kref_get(&block->b_count); in nlmsvc_insert_block_locked() 100 list_del_init(&block->b_list); in nlmsvc_insert_block_locked() 117 list_add_tail(&block->b_list, pos); in nlmsvc_insert_block_locked() 118 block->b_when = when; in nlmsvc_insert_block_locked() [all …]
|
/linux-6.6.21/drivers/gpio/ |
D | gpio-sch311x.c | 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 163 spin_lock(&block->lock); in sch311x_gpio_get() 164 data = inb(block->runtime_reg + block->data_reg); in sch311x_gpio_get() [all …]
|
/linux-6.6.21/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() 62 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); 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() 100 ret = mtd->read(mtd, block * nftl->EraseSize, SECTORSIZE, in find_boot_record() 104 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record() [all …]
|
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() 72 block * inftl->EraseSize, 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() 280 inftl->PUtable[block] = BLOCK_RESERVED; in find_boot_record() 294 inftl->MediaUnit = block; in find_boot_record() [all …]
|
/linux-6.6.21/drivers/video/fbdev/ |
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-6.6.21/drivers/w1/ |
D | w1_netlink.c | 41 struct w1_cb_block *block; member 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, in w1_unref_block() 71 kfree(block); in w1_unref_block() [all …]
|
/linux-6.6.21/drivers/s390/block/ |
D | dasd_genhd.c | 40 int dasd_gendisk_alloc(struct dasd_block *block) in dasd_gendisk_alloc() argument 47 base = block->base; in dasd_gendisk_alloc() 51 block->tag_set.ops = &dasd_mq_ops; in dasd_gendisk_alloc() 52 block->tag_set.cmd_size = sizeof(struct dasd_ccw_req); in dasd_gendisk_alloc() 53 block->tag_set.nr_hw_queues = nr_hw_queues; in dasd_gendisk_alloc() 54 block->tag_set.queue_depth = queue_depth; in dasd_gendisk_alloc() 55 block->tag_set.flags = BLK_MQ_F_SHOULD_MERGE; in dasd_gendisk_alloc() 56 block->tag_set.numa_node = NUMA_NO_NODE; in dasd_gendisk_alloc() 57 rc = blk_mq_alloc_tag_set(&block->tag_set); in dasd_gendisk_alloc() 61 gdp = blk_mq_alloc_disk(&block->tag_set, block); in dasd_gendisk_alloc() [all …]
|
/linux-6.6.21/crypto/ |
D | cast6_generic.c | 153 static inline void Q(u32 *block, const u8 *Kr, const u32 *Km) in Q() argument 156 block[2] ^= F1(block[3], Kr[0], Km[0]); in Q() 157 block[1] ^= F2(block[2], Kr[1], Km[1]); in Q() 158 block[0] ^= F3(block[1], Kr[2], Km[2]); in Q() 159 block[3] ^= F1(block[0], Kr[3], Km[3]); in Q() 163 static inline void QBAR(u32 *block, const u8 *Kr, const u32 *Km) in QBAR() argument 166 block[3] ^= F1(block[0], Kr[3], Km[3]); in QBAR() 167 block[0] ^= F3(block[1], Kr[2], Km[2]); in QBAR() 168 block[1] ^= F2(block[2], Kr[1], Km[1]); in QBAR() 169 block[2] ^= F1(block[3], Kr[0], Km[0]); in QBAR() [all …]
|
/linux-6.6.21/sound/pci/ctxfi/ |
D | ctvmem.c | 32 struct ct_vm_block *block = NULL, *entry; in get_vm_block() local 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() 75 static void put_vm_block(struct ct_vm *vm, struct ct_vm_block *block) in put_vm_block() argument 80 block->size = CT_PAGE_ALIGN(block->size); in put_vm_block() [all …]
|
/linux-6.6.21/fs/afs/ |
D | dir_edit.c | 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() 36 bitmap |= (u64)block->hdr.bitmap[7] << 7 * 8; in afs_find_contig_bits() 68 static void afs_set_contig_bits(union afs_xdr_dir_block *block, in afs_set_contig_bits() argument [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_acl_flex_actions.c | 381 void (*destructor)(struct mlxsw_afa_block *block, 385 static void mlxsw_afa_resource_add(struct mlxsw_afa_block *block, in mlxsw_afa_resource_add() argument 388 list_add(&resource->list, &block->resource_list); in mlxsw_afa_resource_add() 396 static void mlxsw_afa_resources_destroy(struct mlxsw_afa_block *block) in mlxsw_afa_resources_destroy() argument 400 list_for_each_entry_safe(resource, tmp, &block->resource_list, list) { in mlxsw_afa_resources_destroy() 401 resource->destructor(block, resource); in mlxsw_afa_resources_destroy() 407 struct mlxsw_afa_block *block; in mlxsw_afa_block_create() local 409 block = kzalloc(sizeof(*block), GFP_KERNEL); in mlxsw_afa_block_create() 410 if (!block) in mlxsw_afa_block_create() 412 INIT_LIST_HEAD(&block->resource_list); in mlxsw_afa_block_create() [all …]
|
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 …]
|
D | core_acl_flex_actions.h | 47 void mlxsw_afa_block_destroy(struct mlxsw_afa_block *block); 48 int mlxsw_afa_block_commit(struct mlxsw_afa_block *block); 49 char *mlxsw_afa_block_first_set(struct mlxsw_afa_block *block); 50 char *mlxsw_afa_block_cur_set(struct mlxsw_afa_block *block); 51 u32 mlxsw_afa_block_first_kvdl_index(struct mlxsw_afa_block *block); 52 int mlxsw_afa_block_activity_get(struct mlxsw_afa_block *block, bool *activity); 53 int mlxsw_afa_block_continue(struct mlxsw_afa_block *block); 54 int mlxsw_afa_block_jump(struct mlxsw_afa_block *block, u16 group_id); 55 int mlxsw_afa_block_terminate(struct mlxsw_afa_block *block); 58 int mlxsw_afa_block_append_drop(struct mlxsw_afa_block *block, bool ingress, [all …]
|
/linux-6.6.21/drivers/gpu/drm/tests/ |
D | drm_buddy_test.c | 47 struct drm_buddy_block *block, bool buddy) in __dump_block() argument 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 76 block_state = drm_buddy_block_state(block); in check_block() 84 block_size = drm_buddy_block_size(mm, block); in check_block() [all …]
|
/linux-6.6.21/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 105 virt_base = devm_ioremap_resource(sram->dev, &block->res); in sram_add_partition() 107 virt_base = devm_ioremap_resource_wc(sram->dev, &block->res); in sram_add_partition() 110 dev_err(sram->dev, "could not map SRAM at %pr\n", &block->res); in sram_add_partition() 116 part->base = sram->virt_base + block->start; in sram_add_partition() [all …]
|
/linux-6.6.21/drivers/video/fbdev/core/ |
D | fbmon.c | 96 static int edid_is_serial_block(unsigned char *block) in edid_is_serial_block() argument 98 if ((block[0] == 0x00) && (block[1] == 0x00) && in edid_is_serial_block() 99 (block[2] == 0x00) && (block[3] == 0xff) && in edid_is_serial_block() 100 (block[4] == 0x00)) in edid_is_serial_block() 106 static int edid_is_ascii_block(unsigned char *block) in edid_is_ascii_block() argument 108 if ((block[0] == 0x00) && (block[1] == 0x00) && in edid_is_ascii_block() 109 (block[2] == 0x00) && (block[3] == 0xfe) && in edid_is_ascii_block() 110 (block[4] == 0x00)) in edid_is_ascii_block() 116 static int edid_is_limits_block(unsigned char *block) in edid_is_limits_block() argument 118 if ((block[0] == 0x00) && (block[1] == 0x00) && in edid_is_limits_block() [all …]
|
/linux-6.6.21/net/sched/ |
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() 460 #define ASSERT_BLOCK_LOCKED(block) \ argument 461 lockdep_assert_held(&(block)->lock) [all …]
|
/linux-6.6.21/Documentation/filesystems/ext4/ |
D | blockgroup.rst | 6 The layout of a standard block group is approximately as follows (each 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. 35 For all other block groups, there is no padding. 38 descriptors that are found in block group 0. Redundant copies of the [all …]
|