/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_counter.c | 84 memset(&block->stats[counter_id - block->offset], 0, in prestera_counter_stats_clear() 147 if (block) in prestera_counter_block_get() 150 block = kzalloc(sizeof(*block), GFP_KERNEL); in prestera_counter_block_get() 151 if (!block) in prestera_counter_block_get() 155 &block->id, &block->offset, in prestera_counter_block_get() 160 block->stats = kcalloc(block->num_counters, in prestera_counter_block_get() 167 block->counter_flag = kcalloc(block->num_counters, in prestera_counter_block_get() 178 idr_init_base(&block->counter_idr, block->offset); in prestera_counter_block_get() 236 block->offset + block->num_counters, in prestera_counter_get_vacant() 287 if (!block) in prestera_counter_put() [all …]
|
A D | prestera_flow.c | 75 kfree(block); in prestera_flow_block_destroy() 85 block = kzalloc(sizeof(*block), GFP_KERNEL); in prestera_flow_block_create() 86 if (!block) in prestera_flow_block_create() 91 block->net = net; in prestera_flow_block_create() 92 block->sw = sw; in prestera_flow_block_create() 98 return block; in prestera_flow_block_create() 185 if (!block) in prestera_flow_block_get() 189 sw, block, in prestera_flow_block_get() 205 return block; in prestera_flow_block_get() 229 if (IS_ERR(block)) in prestera_setup_flow_block_bind() [all …]
|
A D | prestera_matchall.c | 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() 58 block->mall.prio_min = min(block->mall.prio_min, f->common.prio); in prestera_mall_prio_update() 59 block->mall.prio_max = max(block->mall.prio_max, f->common.prio); in prestera_mall_prio_update() 105 prestera_mall_prio_update(block, f); in prestera_mall_replace() 107 block->mall.bound = true; in prestera_mall_replace() 112 &block->binding_list, list) in prestera_mall_replace() 124 block->mall.prio_min = UINT_MAX; in prestera_mall_destroy() 125 block->mall.prio_max = 0; in prestera_mall_destroy() [all …]
|
/linux-6.3-rc2/sound/isa/gus/ |
A D | gus_mem.c | 82 block->prev->next = block->next; in snd_gf1_mem_xfree() 84 block->next->prev = block->prev; in snd_gf1_mem_xfree() 91 block->next->prev = block->prev; in snd_gf1_mem_xfree() 93 block->prev->next = block->next; in snd_gf1_mem_xfree() 105 for (block = alloc->first; block; block = block->next) { in snd_gf1_mem_look() 121 for (block = alloc->first; block; block = block->next) in snd_gf1_mem_share() 143 block->share_id[0] = block->share_id[1] = in snd_gf1_mem_find() 144 block->share_id[2] = block->share_id[3] = 0; in snd_gf1_mem_find() 146 block->prev = block->next = NULL; in snd_gf1_mem_find() 240 memset(&block, 0, sizeof(block)); in snd_gf1_mem_init() [all …]
|
A D | gus_dma.c | 102 block = NULL; in snd_gf1_dma_next_block() 104 if (block) { in snd_gf1_dma_next_block() 108 return block; in snd_gf1_dma_next_block() 129 if (!block) in snd_gf1_dma_interrupt() 131 snd_gf1_dma_program(gus, block->addr, block->buf_addr, block->count, (unsigned short) block->cmd); in snd_gf1_dma_interrupt() 132 kfree(block); in snd_gf1_dma_interrupt() 136 block->addr, block->buf_addr, block->count, block->cmd); in snd_gf1_dma_interrupt() 191 if (!block) in snd_gf1_dma_transfer_block() 198 block->addr, (long) block->buffer, block->count, in snd_gf1_dma_transfer_block() 230 snd_gf1_dma_program(gus, block->addr, block->buf_addr, block->count, (unsigned short) block->cmd); in snd_gf1_dma_transfer_block() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/ |
A D | drm_buddy.c | 24 if (!block) in drm_block_alloc() 32 return block; in drm_block_alloc() 212 block->left = drm_block_alloc(mm, block, block_order, offset); in split_block() 216 block->right = drm_block_alloc(mm, block, block_order, in split_block() 353 if (!block) in alloc_range_bias() 444 if (block) in alloc_from_freelist() 453 if (block) in alloc_from_freelist() 459 if (!block) in alloc_from_freelist() 469 block = block->right; in alloc_from_freelist() 472 return block; in alloc_from_freelist() [all …]
|
/linux-6.3-rc2/fs/lockd/ |
A D | svclock.c | 164 return block; in nlmsvc_lookup_block() 198 return block; in nlmsvc_find_block() 229 block = kzalloc(sizeof(*block), GFP_KERNEL); in nlmsvc_create_block() 260 return block; in nlmsvc_create_block() 263 kfree(block); in nlmsvc_create_block() 299 kfree(block); in nlmsvc_free_block() 459 block, block->b_flags, ntohl(status)); in nlmsvc_defer_lock_rqst() 511 block, block->b_flags); in nlmsvc_lock() 740 block, block->b_flags); in nlmsvc_grant_deferred() 1017 block, block->b_when); in nlmsvc_retry_blocked() [all …]
|
A D | clntlock.c | 102 struct nlm_wait *block; in nlmclnt_prepare_block() local 104 block = kmalloc(sizeof(*block), GFP_KERNEL); in nlmclnt_prepare_block() 105 if (block != NULL) { in nlmclnt_prepare_block() 106 block->b_host = host; in nlmclnt_prepare_block() 107 block->b_lock = fl; in nlmclnt_prepare_block() 115 return block; in nlmclnt_prepare_block() 120 if (block == NULL) in nlmclnt_finish_block() 123 list_del(&block->b_list); in nlmclnt_finish_block() 125 kfree(block); in nlmclnt_finish_block() 138 if (block == NULL) in nlmclnt_block() [all …]
|
/linux-6.3-rc2/drivers/iio/buffer/ |
A D | industrialio-buffer-dma.c | 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() 104 kfree(block); in iio_buffer_block_release() 170 block = kzalloc(sizeof(*block), GFP_KERNEL); in iio_dma_buffer_alloc_block() 171 if (!block) in iio_dma_buffer_alloc_block() 177 kfree(block); in iio_dma_buffer_alloc_block() 189 return block; in iio_dma_buffer_alloc_block() 311 if (block && (!iio_dma_block_reusable(block) || !try_reuse)) in iio_dma_buffer_request_update() 336 block = NULL; in iio_dma_buffer_request_update() 339 if (!block) { in iio_dma_buffer_request_update() [all …]
|
/linux-6.3-rc2/drivers/gpio/ |
A D | gpio-sch311x.c | 142 block->runtime_reg + block->config_regs[offset]); in sch311x_gpio_request() 164 data = inb(block->runtime_reg + block->data_reg); in sch311x_gpio_get() 173 u8 data = inb(block->runtime_reg + block->data_reg); in __sch311x_gpio_set() 178 outb(data, block->runtime_reg + block->data_reg); in __sch311x_gpio_set() 197 data = inb(block->runtime_reg + block->config_regs[offset]); in sch311x_gpio_direction_in() 199 outb(data, block->runtime_reg + block->config_regs[offset]); in sch311x_gpio_direction_in() 213 data = inb(block->runtime_reg + block->config_regs[offset]); in sch311x_gpio_direction_out() 215 outb(data, block->runtime_reg + block->config_regs[offset]); in sch311x_gpio_direction_out() 228 data = inb(block->runtime_reg + block->config_regs[offset]); in sch311x_gpio_get_direction() 247 data = inb(block->runtime_reg + block->config_regs[offset]); in sch311x_gpio_set_config() [all …]
|
/linux-6.3-rc2/drivers/mtd/ |
A D | nftlmount.c | 48 for (block = 0; block < nftl->nb_blocks; block++) { in find_boot_record() 414 block = nftl->ReplUnitTable[block]; in check_sectors_in_chain() 415 if (!(block == BLOCK_NIL || block < nftl->nb_blocks)) in check_sectors_in_chain() 417 if (block == BLOCK_NIL || block >= nftl->nb_blocks) in check_sectors_in_chain() 436 block = nftl->ReplUnitTable[block]; in calc_chain_length() 437 if (!(block == BLOCK_NIL || block < nftl->nb_blocks)) in calc_chain_length() 439 if (block == BLOCK_NIL || block >= nftl->nb_blocks) in calc_chain_length() 473 block = block1; in format_chain() 475 if (!(block == BLOCK_NIL || block < nftl->nb_blocks)) in format_chain() 477 if (block == BLOCK_NIL || block >= nftl->nb_blocks) in format_chain() [all …]
|
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() 389 block); in INFTL_formatblock() 448 block = block1; in format_chain() 450 if (block == BLOCK_NIL || block >= inftl->lastEUN) in format_chain() 516 block = s->PUtable[block]; in INFTL_dumpVUchains() 572 block = first_block; in INFTL_mount() 664 last_block = block; in INFTL_mount() 736 block = s->PUtable[block]; in INFTL_mount() 758 for (block = s->firstEUN; block <= s->lastEUN; block++) { in INFTL_mount() [all …]
|
/linux-6.3-rc2/drivers/video/fbdev/ |
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 ] 82 #define V_ACTIVE_LO (unsigned)block[ 5 ] 83 #define V_BLANKING_LO (unsigned)block[ 6 ] 127 #define V_MIN_RATE block[ 5 ] 128 #define V_MAX_RATE block[ 6 ] 129 #define H_MIN_RATE block[ 7 ] 130 #define H_MAX_RATE block[ 8 ] [all …]
|
/linux-6.3-rc2/drivers/w1/ |
A D | w1_netlink.c | 59 return (u8 *)block->cn - (u8 *)block->first_cn + block->cn->len; in w1_reply_len() 98 w1_reply_make_space(block, block->maxlen); in w1_netlink_check_send() 112 if (block->cn && block->cn->ack == ack) { in w1_netlink_setup_msg() 113 block->msg = (struct w1_netlink_msg *)(block->cn->data + block->cn->len); in w1_netlink_setup_msg() 117 block->cn = (struct cn_msg *)(block->cn->data + in w1_netlink_setup_msg() 120 block->cn = block->first_cn; in w1_netlink_setup_msg() 122 memcpy(block->cn, &block->request_cn, sizeof(*block->cn)); in w1_netlink_setup_msg() 145 memcpy(block->msg, block->cur_msg, sizeof(*block->msg)); in w1_netlink_queue_cmd() 146 block->cn->len += sizeof(*block->msg); in w1_netlink_queue_cmd() 166 w1_netlink_setup_msg(block, block->request_cn.ack); in w1_netlink_queue_status() [all …]
|
/linux-6.3-rc2/drivers/s390/block/ |
A D | dasd_genhd.c | 47 base = block->base; in dasd_gendisk_alloc() 61 gdp = blk_mq_alloc_disk(&block->tag_set, block); in dasd_gendisk_alloc() 99 block->gdp = gdp; in dasd_gendisk_alloc() 104 dasd_gendisk_free(block); in dasd_gendisk_alloc() 116 if (block->gdp) { in dasd_gendisk_free() 117 del_gendisk(block->gdp); in dasd_gendisk_free() 119 put_disk(block->gdp); in dasd_gendisk_free() 120 block->gdp = NULL; in dasd_gendisk_free() 158 block->bdev = bdev; in dasd_scan_partitions() 174 bdev = block->bdev; in dasd_destroy_partitions() [all …]
|
/linux-6.3-rc2/crypto/ |
A D | cast6_generic.c | 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() 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() 175 u32 block[4]; in __cast6_encrypt() local 179 block[0] = get_unaligned_be32(inbuf); in __cast6_encrypt() [all …]
|
/linux-6.3-rc2/sound/pci/ctxfi/ |
A D | ctvmem.c | 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() 72 return block; in get_vm_block() 80 block->size = CT_PAGE_ALIGN(block->size); in put_vm_block() 88 if (entry->addr >= (block->addr + block->size)) in put_vm_block() 93 entry = block; in put_vm_block() 95 if ((block->addr + block->size) == entry->addr) { in put_vm_block() 98 kfree(block); in put_vm_block() 149 return block; in ct_vm_map() [all …]
|
/linux-6.3-rc2/fs/afs/ |
A D | dir_edit.c | 152 de = &block->dirents[d]; in afs_dir_scan_block() 177 memset(block, 0, sizeof(*block)); in afs_edit_init_block() 180 block->hdr.bitmap[0] = 1; in afs_edit_init_block() 290 kunmap_local(block); in afs_edit_dir_add() 318 de = &block->dirents[slot]; in afs_edit_dir_add() 329 kunmap_local(block); in afs_edit_dir_add() 353 kunmap_local(block); in afs_edit_dir_add() 432 kunmap_local(block); in afs_edit_dir_remove() 446 de = &block->dirents[slot]; in afs_edit_dir_remove() 456 kunmap_local(block); in afs_edit_dir_remove() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/ |
A D | core_acl_flex_actions.c | 409 block = kzalloc(sizeof(*block), GFP_KERNEL); in mlxsw_afa_block_create() 410 if (!block) in mlxsw_afa_block_create() 427 block->cur_set->prev = block->first_set; in mlxsw_afa_block_create() 428 block->first_set->next = block->cur_set; in mlxsw_afa_block_create() 430 block->cur_set = block->first_set; in mlxsw_afa_block_create() 433 return block; in mlxsw_afa_block_create() 438 kfree(block); in mlxsw_afa_block_create() 454 kfree(block); in mlxsw_afa_block_destroy() 684 block->afa->ops->counter_index_put(block->afa->ops_priv, in mlxsw_afa_counter_destroy() 1365 block->afa->ops->mirror_del(block->afa->ops_priv, in mlxsw_afa_mirror_destroy() [all …]
|
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() 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() 30 kfree(block); in mlxsw_sp_flow_block_destroy() 49 return block->ruleset_zero; in mlxsw_sp_flow_block_ruleset_bound() 95 block->egress_binding_count++; in mlxsw_sp_flow_block_bind() [all …]
|
A 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); 53 int mlxsw_afa_block_continue(struct mlxsw_afa_block *block); 55 int mlxsw_afa_block_terminate(struct mlxsw_afa_block *block); 64 int mlxsw_afa_block_append_mirror(struct mlxsw_afa_block *block, 69 int mlxsw_afa_block_append_fwd(struct mlxsw_afa_block *block, 83 int mlxsw_afa_block_append_qos_ecn(struct mlxsw_afa_block *block, 87 int mlxsw_afa_block_append_counter(struct mlxsw_afa_block *block, [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/tests/ |
A D | drm_buddy_test.c | 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() 148 block = NULL; in check_blocks() 179 prev = block; in check_blocks() 269 if (block != root) { in check_mm() 351 block = list_first_entry_or_null(&blocks, typeof(*block), link); in drm_test_buddy_alloc_pathological() 352 if (block) { in drm_test_buddy_alloc_pathological() 550 block = list_last_entry(&blocks, typeof(*block), link); in drm_test_buddy_alloc_pessimistic() 551 list_del(&block->link); in drm_test_buddy_alloc_pessimistic() [all …]
|
/linux-6.3-rc2/drivers/video/fbdev/core/ |
A D | fbmon.c | 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() 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() 139 (block[2] != 0x00) || (block[4] != 0x00)) in edid_is_timing_block() 157 model = block[2] + (block[3] << 8); in check_edid() 299 specs->model = block[2] + (block[3] << 8); in parse_vendor_block() 301 (block[6] << 16) + (block[7] << 24); in parse_vendor_block() 350 tmp = (block[5] & 3) | (block[0xa] << 2); in get_chroma() 374 tmp = (block[6] & 3) | (block[0xe] << 2); in get_chroma() [all …]
|
/linux-6.3-rc2/drivers/misc/ |
A D | sram.c | 119 if (block->pool) { in sram_add_partition() 124 if (block->export) { in sram_add_partition() 230 if ((block->export || block->pool || block->protect_exec) && in sram_reserve_regions() 231 block->size) { in sram_reserve_regions() 253 block->export ? "exported " : "", block->label, in sram_reserve_regions() 254 block->start, block->start + block->size); in sram_reserve_regions() 257 block->start, block->start + block->size); in sram_reserve_regions() 260 block++; in sram_reserve_regions() 293 if ((block->export || block->pool || block->protect_exec) && in sram_reserve_regions() 305 cur_start = block->start + block->size; in sram_reserve_regions() [all …]
|
/linux-6.3-rc2/net/sched/ |
A D | cls_api.c | 183 struct tcf_block *block = chain->block; in tcf_proto_signal_destroying() local 222 struct tcf_block *block = chain->block; in tcf_proto_signal_destroyed() local 483 chain->block = block; in tcf_chain_create() 502 struct tcf_block *block = chain->block; in tcf_chain0_head_change() local 517 struct tcf_block *block = chain->block; in tcf_chain_detach() local 541 struct tcf_block *block = chain->block; in tcf_chain_destroy() local 660 struct tcf_block *block = chain->block; in __tcf_chain_put() local 967 err = idr_alloc_u32(&tn->idr, block, &block->index, block->index, in tcf_block_insert() 1295 tcf_block_remove(block, block->net); in __tcf_block_put() 1518 tcf_block_put_ext(block, block->q, &ei); in tcf_block_put() [all …]
|