| /linux/tools/perf/util/ |
| A D | threads.c | 26 struct threads_table_entry *table = &threads->table[i]; in threads__init() local 29 init_rwsem(&table->lock); in threads__init() 38 struct threads_table_entry *table = &threads->table[i]; in threads__exit() local 50 struct threads_table_entry *table = &threads->table[i]; in threads__nr() local 54 up_read(&table->lock); in threads__nr() 69 th = table->last_match; in __threads_table_entry__get_last_match() 89 up_write(&table->lock); in threads_table_entry__set_last_match() 103 up_read(&table->lock); in threads__find() 138 struct threads_table_entry *table = &threads->table[i]; in threads__remove_all_threads() local 160 if (table->last_match && RC_CHK_EQUAL(table->last_match, thread)) in threads__remove() [all …]
|
| /linux/drivers/net/wireguard/ |
| A D | peerlookup.c | 19 return &table->hashtable[hash & (HASH_SIZE(table->hashtable) - 1)]; in pubkey_bucket() 24 struct pubkey_hashtable *table = kvmalloc(sizeof(*table), GFP_KERNEL); in wg_pubkey_hashtable_alloc() local 26 if (!table) in wg_pubkey_hashtable_alloc() 29 get_random_bytes(&table->key, sizeof(table->key)); in wg_pubkey_hashtable_alloc() 31 mutex_init(&table->lock); in wg_pubkey_hashtable_alloc() 32 return table; in wg_pubkey_hashtable_alloc() 38 mutex_lock(&table->lock); in wg_pubkey_hashtable_add() 47 mutex_lock(&table->lock); in wg_pubkey_hashtable_remove() 85 struct index_hashtable *table = kvmalloc(sizeof(*table), GFP_KERNEL); in wg_index_hashtable_alloc() local 87 if (!table) in wg_index_hashtable_alloc() [all …]
|
| /linux/arch/s390/mm/ |
| A D | pgalloc.c | 53 return table; in crst_table_alloc() 58 if (!table) in crst_table_free() 143 u64 *table; in page_table_alloc_pgste() local 180 return table; in page_table_alloc() 242 if (table) in base_pgt_alloc() 244 return table; in base_pgt_alloc() 262 return table; in base_crst_alloc() 267 if (!table) in base_crst_free() 495 if (!table) in base_asce_alloc() 501 if (!table) in base_asce_alloc() [all …]
|
| /linux/tools/power/acpi/tools/acpidump/ |
| A D | apdump.c | 40 *(u32 *)table->signature); in ap_is_valid_header() 48 table->length); in ap_is_valid_header() 83 status = acpi_ut_verify_checksum(table, table->length); in ap_is_valid_checksum() 88 table->signature); in ap_is_valid_checksum() 123 return (table->length); in ap_get_table_length() 224 ACPI_FREE(table); in ap_dump_all_tables() 275 ACPI_FREE(table); in ap_dump_table_by_address() 325 &table, &address); in ap_dump_table_by_name() 341 ACPI_FREE(table); in ap_dump_table_by_name() 374 if (!table) { in ap_dump_table_from_file() [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/fw/ |
| A D | dump.c | 129 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_umac_error_log() 131 if (table.valid) in iwl_fwrt_dump_umac_error_log() 211 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_lmac_error_log() 213 if (table.valid) in iwl_fwrt_dump_lmac_error_log() 306 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_tcm_error_log() 308 if (table.valid) in iwl_fwrt_dump_tcm_error_log() 333 table.hw_status[i], i); in iwl_fwrt_dump_tcm_error_log() 336 table.sw_status[i], i); in iwl_fwrt_dump_tcm_error_log() 379 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_rcm_error_log() 381 if (table.valid) in iwl_fwrt_dump_rcm_error_log() [all …]
|
| /linux/drivers/gpu/drm/i915/gt/ |
| A D | intel_mocs.c | 463 table->table = mtl_mocs_table; in get_mocs_settings() 469 table->table = dg2_mocs_table; in get_mocs_settings() 475 table->table = dg1_mocs_table; in get_mocs_settings() 483 table->table = tgl_mocs_table; in get_mocs_settings() 488 table->table = gen12_mocs_table; in get_mocs_settings() 494 table->table = icl_mocs_table; in get_mocs_settings() 499 table->table = skl_mocs_table; in get_mocs_settings() 544 if (index < table->size && table->table[index].used) in get_entry_control() 546 return table->table[table->unused_entries_index].control_value; in get_entry_control() 596 if (index < table->size && table->table[index].used) in get_entry_l3cc() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | rl.c | 164 return (rate <= table->max_rate && rate >= table->min_rate); in mlx5_rl_is_in_range() 183 if (table->rl_entry) { in mlx5_rl_table_get() 184 table->refcount++; in mlx5_rl_table_get() 188 table->rl_entry = kcalloc(table->max_size, sizeof(struct mlx5_rl_entry), in mlx5_rl_table_get() 190 if (!table->rl_entry) in mlx5_rl_table_get() 199 table->refcount++; in mlx5_rl_table_get() 206 if (--table->refcount) in mlx5_rl_table_put() 217 if (!table->rl_entry) in mlx5_rl_table_free() 248 if (!table->max_size) in mlx5_rl_add_rate_raw() 254 rate, table->min_rate, table->max_rate); in mlx5_rl_add_rate_raw() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
| A D | devlink.c | 260 mlx5_sf_free(table, sf); in mlx5_sf_add() 372 mlx5_sf_del(table, sf); in mlx5_devlink_sf_port_del() 422 mlx5_sf_del(table, sf); in mlx5_sf_del_all() 474 table = kzalloc(sizeof(*table), GFP_KERNEL); in mlx5_sf_table_init() 475 if (!table) in mlx5_sf_table_init() 479 table->dev = dev; in mlx5_sf_table_init() 488 err = mlx5_vhca_event_notifier_register(table->dev, &table->vhca_nb); in mlx5_sf_table_init() 501 kfree(table); in mlx5_sf_table_init() 510 if (!table) in mlx5_sf_table_cleanup() 514 mlx5_vhca_event_notifier_unregister(table->dev, &table->vhca_nb); in mlx5_sf_table_cleanup() [all …]
|
| A D | hw_table.c | 68 fn_id < (table->hwc[i].start_fn_id + table->hwc[i].max_fn)) in mlx5_sf_table_fn_to_hwc() 69 return &table->hwc[i]; in mlx5_sf_table_fn_to_hwc() 119 if (!table) in mlx5_sf_hw_table_sf_alloc() 297 table = kzalloc(sizeof(*table), GFP_KERNEL); in mlx5_sf_hw_table_init() 298 if (!table) { in mlx5_sf_hw_table_init() 304 table->dev = dev; in mlx5_sf_hw_table_init() 324 kfree(table); in mlx5_sf_hw_table_init() 334 if (!table) in mlx5_sf_hw_table_cleanup() 340 kfree(table); in mlx5_sf_hw_table_cleanup() 377 if (!table) in mlx5_sf_hw_table_create() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/ |
| A D | dev.c | 42 return table && !xa_empty(&table->devices); in mlx5_sf_dev_allocated() 119 sf_dev->bar_base_addr = table->base_address + (sf_index * table->sf_bar_length); in mlx5_sf_dev_add() 286 work_ctx->table = table; in mlx5_sf_dev_queue_active_works() 303 if (!table->active_wq) in mlx5_sf_dev_create_active_works() 306 queue_work(table->active_wq, &table->work); in mlx5_sf_dev_create_active_works() 326 table = kzalloc(sizeof(*table), GFP_KERNEL); in mlx5_sf_dev_table_create() 327 if (!table) { in mlx5_sf_dev_table_create() 333 table->dev = dev; in mlx5_sf_dev_table_create() 358 kfree(table); in mlx5_sf_dev_table_create() 379 if (!table) in mlx5_sf_dev_table_destroy() [all …]
|
| /linux/drivers/md/dm-vdo/ |
| A D | priority-table.c | 56 struct priority_table *table; in vdo_make_priority_table() local 75 table->max_priority = max_priority; in vdo_make_priority_table() 76 table->search_vector = 0; in vdo_make_priority_table() 78 *table_ptr = table; in vdo_make_priority_table() 90 if (table == NULL) in vdo_free_priority_table() 97 vdo_reset_priority_table(table); in vdo_free_priority_table() 99 vdo_free(table); in vdo_free_priority_table() 114 table->search_vector = 0; in vdo_reset_priority_table() 161 if (table->search_vector == 0) { in vdo_priority_table_dequeue() 179 mark_bucket_empty(table, bucket); in vdo_priority_table_dequeue() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| A D | icm.c | 266 if (table->icm[i]) { in mlx4_table_get() 279 if (mlx4_MAP_ICM(dev, table->icm[i], table->virt + in mlx4_table_get() 281 mlx4_free_icm(dev, table->icm[i], table->coherent); in mlx4_table_get() 307 mlx4_free_icm(dev, table->icm[i], table->coherent); in mlx4_table_put() 323 if (!table->lowmem) in mlx4_table_find() 328 idx = (u64) (obj & (table->num_obj - 1)) * table->obj_size; in mlx4_table_find() 430 table->icm = kvcalloc(num_icm, sizeof(*table->icm), GFP_KERNEL); in mlx4_init_icm_table() 431 if (!table->icm) in mlx4_init_icm_table() 476 kvfree(table->icm); in mlx4_init_icm_table() 489 mlx4_free_icm(dev, table->icm[i], table->coherent); in mlx4_cleanup_icm_table() [all …]
|
| /linux/drivers/infiniband/hw/hns/ |
| A D | hns_roce_hem.c | 341 table->type, index->buf, table->num_hem); in calc_hem_config() 540 i = obj / (table->table_chunk_size / table->obj_size); in hns_roce_table_get() 667 i = obj / (table->table_chunk_size / table->obj_size); in hns_roce_table_put() 701 obj_per_chunk = table->table_chunk_size / table->obj_size; in hns_roce_table_find() 748 table->hem = kcalloc(num_hem, sizeof(*table->hem), GFP_KERNEL); in hns_roce_init_hem_table() 749 if (!table->hem) in hns_roce_init_hem_table() 774 table->hem = kcalloc(num_hem, sizeof(*table->hem), in hns_roce_init_hem_table() 776 if (!table->hem) in hns_roce_init_hem_table() 799 table->bt_l0 = kcalloc(num_bt_l0, sizeof(*table->bt_l0), in hns_roce_init_hem_table() 832 kfree(table->hem); in hns_roce_init_hem_table() [all …]
|
| /linux/drivers/media/i2c/ |
| A D | ks0127.c | 200 u8 *table = reg_defaults; in init_reg_defaults() local 210 table[KS_CMDD] = 0x01; in init_reg_defaults() 231 table[KS_VERTIB] = 0x12; in init_reg_defaults() 238 table[KS_OFMTA] = 0x30; in init_reg_defaults() 241 table[KS_VBICTL] = 0x5d; in init_reg_defaults() 269 table[KS_SHS1B] = 0x80; in init_reg_defaults() 275 table[KS_CMDF] = 0x02; in init_reg_defaults() 351 u8 *table = reg_defaults; in ks0127_init() local 361 ks0127_write(sd, i, table[i]); in ks0127_init() 364 ks0127_write(sd, i, table[i]); in ks0127_init() [all …]
|
| /linux/tools/arch/x86/lib/ |
| A D | inat.c | 29 const insn_attr_t *table; in inat_get_escape_attribute() local 35 if (!table) in inat_get_escape_attribute() 39 if (!table) in inat_get_escape_attribute() 42 return table[opcode]; in inat_get_escape_attribute() 48 const insn_attr_t *table; in inat_get_group_attribute() local 54 if (!table) in inat_get_group_attribute() 58 if (!table) in inat_get_group_attribute() 68 const insn_attr_t *table; in inat_get_avx_attribute() local 73 if (!table) in inat_get_avx_attribute() 78 if (!table) in inat_get_avx_attribute() [all …]
|
| /linux/arch/x86/lib/ |
| A D | inat.c | 29 const insn_attr_t *table; in inat_get_escape_attribute() local 35 if (!table) in inat_get_escape_attribute() 39 if (!table) in inat_get_escape_attribute() 42 return table[opcode]; in inat_get_escape_attribute() 48 const insn_attr_t *table; in inat_get_group_attribute() local 54 if (!table) in inat_get_group_attribute() 58 if (!table) in inat_get_group_attribute() 68 const insn_attr_t *table; in inat_get_avx_attribute() local 73 if (!table) in inat_get_avx_attribute() 78 if (!table) in inat_get_avx_attribute() [all …]
|
| /linux/arch/powerpc/boot/ |
| A D | planetcore.c | 26 void planetcore_prepare_table(char *table) in planetcore_prepare_table() argument 29 if (*table == '\n') in planetcore_prepare_table() 30 *table = 0; in planetcore_prepare_table() 32 table++; in planetcore_prepare_table() 33 } while (*(table - 1) || *table != '\n'); in planetcore_prepare_table() 35 *table = 0; in planetcore_prepare_table() 43 if (!strncmp(table, key, keylen) && table[keylen] == '=') in planetcore_get_key() 44 return table + keylen + 1; in planetcore_get_key() 46 table += strlen(table) + 1; in planetcore_get_key() 47 } while (strlen(table) != 0); in planetcore_get_key() [all …]
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| A D | rvu_npc_hash.c | 471 table = rvu->hw->table; in rvu_npc_exact_alloc_mem_table_entry() 506 table = rvu->hw->table; in rvu_npc_exact_free_id() 524 table = rvu->hw->table; in rvu_npc_exact_alloc_id() 557 table = rvu->hw->table; in rvu_npc_exact_alloc_cam_table_entry() 725 table = rvu->hw->table; in rvu_npc_exact_get_max_entries() 910 table = rvu->hw->table; in rvu_npc_exact_dealloc_table_entry() 980 table = rvu->hw->table; in rvu_npc_exact_alloc_table_entry() 1024 table = rvu->hw->table; in rvu_npc_exact_save_drop_rule_chan_and_mask() 1096 table = rvu->hw->table; in rvu_npc_exact_drop_rule_to_pcifunc() 1134 table = rvu->hw->table; in rvu_npc_exact_get_drop_rule_info() [all …]
|
| /linux/net/sched/ |
| A D | sch_gred.c | 106 if (table->tab[n] && table->tab[n]->prio == q->prio) in gred_wred_mode_check() 157 if (table->red_flags) in gred_per_vq_red_flags_used() 160 if (table->tab[i] && table->tab[i]->red_flags) in gred_per_vq_red_flags_used() 372 if (table->tab[i]) in gred_offload_dump_stats() 382 if (!table->tab[i]) in gred_offload_dump_stats() 596 if (table->red_flags && table->red_flags != red_flags) { in gred_vq_validate() 692 if (table->tab[table->def]) in gred_change() 693 def_prio = table->tab[table->def]->prio; in gred_change() 760 table->opt = kzalloc(sizeof(*table->opt), GFP_KERNEL); in gred_init() 761 if (!table->opt) in gred_init() [all …]
|
| /linux/drivers/infiniband/core/ |
| A D | cache.c | 774 struct ib_gid_table *table = kzalloc(sizeof(*table), GFP_KERNEL); in alloc_gid_table() local 776 if (!table) in alloc_gid_table() 779 table->data_vec = kcalloc(sz, sizeof(*table->data_vec), GFP_KERNEL); in alloc_gid_table() 780 if (!table->data_vec) in alloc_gid_table() 785 table->sz = sz; in alloc_gid_table() 787 return table; in alloc_gid_table() 790 kfree(table); in alloc_gid_table() 799 if (!table) in release_gid_table() 814 kfree(table); in release_gid_table() 822 if (!table) in cleanup_gid_table_port() [all …]
|
| /linux/drivers/clk/ |
| A D | clk-divider.c | 75 if (table) in _get_maxdiv() 100 if (table) in _get_div() 101 return _get_table_div(table, val); in _get_div() 125 if (table) in _get_val() 178 if (table) in _is_valid_div() 227 if (table) in _div_round_up() 246 } else if (table) { in _div_round_closest() 247 up = _round_up_table(table, up); in _div_round_closest() 283 if (table) in _next_div() 582 div->table = table; in __clk_hw_register_divider() [all …]
|
| /linux/scripts/mod/ |
| A D | symsearch.c | 27 struct syminfo table[]; member 69 struct syminfo *table, in symsearch_populate() argument 80 table->addr = sym->st_value; in symsearch_populate() 88 table->addr &= ~1; in symsearch_populate() 90 table++; in symsearch_populate() 117 if (table[i].addr == table[i - 1].addr && in symsearch_fixup() 118 table[i].section_index == table[i - 1].section_index) { in symsearch_fixup() 119 table[i].symbol_index = table[i - 1].symbol_index; in symsearch_fixup() 133 qsort(elf->symsearch->table, table_size, in symsearch_init() 159 struct syminfo *table = elf->symsearch->table; in symsearch_find_nearest() local [all …]
|
| /linux/scripts/include/ |
| A D | hashtable.h | 16 #define hash_head(table, key) (&(table)[(key) % HASH_SIZE(table)]) argument 33 #define hash_init(table) __hash_init(table, HASH_SIZE(table)) argument 41 #define hash_add(table, node, key) \ argument 42 hlist_add_head(node, hash_head(table, key)) 59 #define hash_for_each(table, obj, member) \ argument 60 for (int _bkt = 0; _bkt < HASH_SIZE(table); _bkt++) \ 61 hlist_for_each_entry(obj, &table[_bkt], member) 71 #define hash_for_each_safe(table, obj, tmp, member) \ argument 72 for (int _bkt = 0; _bkt < HASH_SIZE(table); _bkt++) \ 73 hlist_for_each_entry_safe(obj, tmp, &table[_bkt], member) [all …]
|
| /linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
| A D | vegam_smumgr.c | 464 table->Smio[level] |= in vegam_populate_smc_mvdd_table() 1208 table->VceBootLevel = 0; in vegam_populate_smc_vce_level() 1321 table->UvdBootLevel = 0; in vegam_populate_smc_uvd_level() 1940 table->SystemFlags = 0; in vegam_init_smc_table() 2029 table->MemoryInterval = 1; in vegam_init_smc_table() 2037 table->PCIeBootLinkLevel = in vegam_init_smc_table() 2040 table->VRConfig = 0; in vegam_init_smc_table() 2046 table->ThermGpio = 17; in vegam_init_smc_table() 2053 table->VRHotLevel = in vegam_init_smc_table() 2111 table->Ulv.BifSclkDfs = in vegam_init_smc_table() [all …]
|
| /linux/drivers/net/ethernet/sfc/ |
| A D | mcdi_filters.c | 1026 if (table->mc_chaining && table->mc_promisc_last != table->mc_promisc) in efx_mcdi_filter_vlan_sync_rx_mode() 1313 table = kzalloc(sizeof(*table), GFP_KERNEL); in efx_mcdi_filter_table_probe() 1314 if (!table) in efx_mcdi_filter_table_probe() 1355 kfree(table); in efx_mcdi_filter_table_probe() 1363 if (table) { in efx_mcdi_filter_table_reset_mc_allocations() 1387 if (!table || !table->must_restore_filters) in efx_mcdi_filter_table_restore() 1474 if (!table) in efx_mcdi_filter_table_down() 1517 if (!table) in efx_mcdi_filter_table_remove() 1678 if (!table) in efx_mcdi_filter_cleanup_vlans() 1745 if (!table) in efx_mcdi_filter_sync_rx_mode() [all …]
|