Home
last modified time | relevance | path

Searched refs:table (Results 1 – 25 of 1540) sorted by relevance

12345678910>>...62

/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
A Ddevlink.c125 if (!table) in mlx5_sf_table_try_get()
181 if (!table) in mlx5_devlink_sf_port_fn_state_get()
266 if (!table) { in mlx5_devlink_sf_port_fn_state_set()
353 if (!table) { in mlx5_devlink_sf_port_new()
392 if (!table) { in mlx5_devlink_sf_port_del()
436 table = mlx5_sf_table_try_get(table->dev); in mlx5_sf_vhca_event()
437 if (!table) in mlx5_sf_vhca_event()
528 table = kzalloc(sizeof(*table), GFP_KERNEL); in mlx5_sf_table_init()
529 if (!table) in mlx5_sf_table_init()
553 kfree(table); in mlx5_sf_table_init()
[all …]
A Dhw_table.c67 fn_id < (table->hwc[i].start_fn_id + table->hwc[i].max_fn)) in mlx5_sf_table_fn_to_hwc()
68 return &table->hwc[i]; in mlx5_sf_table_fn_to_hwc()
118 if (!table) in mlx5_sf_hw_table_sf_alloc()
268 table = kzalloc(sizeof(*table), GFP_KERNEL); in mlx5_sf_hw_table_init()
269 if (!table) in mlx5_sf_hw_table_init()
273 table->dev = dev; in mlx5_sf_hw_table_init()
293 kfree(table); in mlx5_sf_hw_table_init()
301 if (!table) in mlx5_sf_hw_table_cleanup()
307 kfree(table); in mlx5_sf_hw_table_cleanup()
342 if (!table) in mlx5_sf_hw_table_create()
[all …]
/linux/arch/s390/mm/
A Dpgalloc.c160 u64 *table; in page_table_alloc_pgste() local
207 if (table) in page_table_alloc()
234 return table; in page_table_alloc()
275 table = (unsigned long *) ((unsigned long)table | 3); in page_table_free_rcu()
327 u64 *table; in base_pgt_alloc() local
330 if (table) in base_pgt_alloc()
345 if (table) in base_crst_alloc()
578 if (!table) in base_asce_alloc()
584 if (!table) in base_asce_alloc()
590 if (!table) in base_asce_alloc()
[all …]
/linux/drivers/net/wireguard/
A Dpeerlookup.c19 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/drivers/net/wireless/realtek/rtw89/
A Dfw.h290 #define SET_CTRL_INFO_MACID(table, val) \ argument
309 #define SET_CMC_TBL_DATA_BW(table, val) \ argument
470 #define SET_CMC_TBL_RTS_EN(table, val) \ argument
582 #define SET_CMC_TBL_BMC(table, val) \ argument
785 #define SET_CMC_TBL_PAID(table, val) \ argument
792 #define SET_CMC_TBL_ULDL(table, val) \ argument
832 #define SET_CMC_TBL_NC(table, val) \ argument
839 #define SET_CMC_TBL_NR(table, val) \ argument
846 #define SET_CMC_TBL_NG(table, val) \ argument
853 #define SET_CMC_TBL_CB(table, val) \ argument
[all …]
/linux/tools/power/acpi/tools/acpidump/
A Dapdump.c40 *(u32 *)table->signature); in ap_is_valid_header()
48 table->length); in ap_is_valid_header()
81 status = acpi_tb_verify_checksum(table, table->length); in ap_is_valid_checksum()
86 table->signature); in ap_is_valid_checksum()
121 return (table->length); in ap_get_table_length()
222 ACPI_FREE(table); in ap_dump_all_tables()
273 ACPI_FREE(table); in ap_dump_table_by_address()
323 &table, &address); in ap_dump_table_by_name()
339 ACPI_FREE(table); in ap_dump_table_by_name()
372 if (!table) { in ap_dump_table_from_file()
[all …]
/linux/drivers/gpu/drm/i915/gt/
A Dintel_mocs.c432 table->table = dg2_mocs_table; in get_mocs_settings()
439 table->table = xehpsdv_mocs_table; in get_mocs_settings()
445 table->table = dg1_mocs_table; in get_mocs_settings()
453 table->table = tgl_mocs_table; in get_mocs_settings()
458 table->table = gen12_mocs_table; in get_mocs_settings()
464 table->table = icl_mocs_table; in get_mocs_settings()
469 table->table = skl_mocs_table; in get_mocs_settings()
514 if (index < table->size && table->table[index].used) in get_entry_control()
516 return table->table[table->unused_entries_index].control_value; in get_entry_control()
566 if (index < table->size && table->table[index].used) in get_entry_l3cc()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/fw/
A Ddump.c156 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_umac_error_log()
158 if (table.valid) in iwl_fwrt_dump_umac_error_log()
159 fwrt->dump.umac_err_id = table.error_id; in iwl_fwrt_dump_umac_error_log()
164 fwrt->trans->status, table.valid); in iwl_fwrt_dump_umac_error_log()
187 struct iwl_error_event_table table = {}; in iwl_fwrt_dump_lmac_error_log() local
222 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_lmac_error_log()
224 if (table.valid) in iwl_fwrt_dump_lmac_error_log()
230 fwrt->trans->status, table.valid); in iwl_fwrt_dump_lmac_error_log()
310 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_tcm_error_log()
327 table.hw_status[i], i); in iwl_fwrt_dump_tcm_error_log()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Drl.c165 return (rate <= table->max_rate && rate >= table->min_rate); in mlx5_rl_is_in_range()
184 if (table->rl_entry) { in mlx5_rl_table_get()
185 table->refcount++; in mlx5_rl_table_get()
189 table->rl_entry = kcalloc(table->max_size, sizeof(struct mlx5_rl_entry), in mlx5_rl_table_get()
191 if (!table->rl_entry) in mlx5_rl_table_get()
200 table->refcount++; in mlx5_rl_table_get()
207 if (--table->refcount) in mlx5_rl_table_put()
218 if (!table->rl_entry) in mlx5_rl_table_free()
249 if (!table->max_size) in mlx5_rl_add_rate_raw()
255 rate, table->min_rate, table->max_rate); in mlx5_rl_add_rate_raw()
[all …]
/linux/drivers/infiniband/hw/hns/
A Dhns_roce_hem.c379 table->type, index->buf, table->num_hem); in calc_hem_config()
580 i = obj / (table->table_chunk_size / table->obj_size); in hns_roce_table_get()
698 i = obj / (table->table_chunk_size / table->obj_size); in hns_roce_table_put()
735 obj_per_chunk = table->table_chunk_size / table->obj_size; in hns_roce_table_find()
798 table->hem = kcalloc(num_hem, sizeof(*table->hem), GFP_KERNEL); in hns_roce_init_hem_table()
799 if (!table->hem) in hns_roce_init_hem_table()
824 table->hem = kcalloc(num_hem, sizeof(*table->hem), in hns_roce_init_hem_table()
826 if (!table->hem) in hns_roce_init_hem_table()
849 table->bt_l0 = kcalloc(num_bt_l0, sizeof(*table->bt_l0), in hns_roce_init_hem_table()
883 kfree(table->hem); in hns_roce_init_hem_table()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
A Dicm.c266 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/core/
A Dcache.c49 u16 table[]; member
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()
785 table->sz = sz; in alloc_gid_table()
787 return table; in alloc_gid_table()
790 kfree(table); in alloc_gid_table()
800 if (!table) in release_gid_table()
818 kfree(table); in release_gid_table()
826 if (!table) in cleanup_gid_table_port()
[all …]
/linux/drivers/media/i2c/
A Dks0127.c208 u8 *table = reg_defaults; in init_reg_defaults() local
218 table[KS_CMDD] = 0x01; in init_reg_defaults()
239 table[KS_VERTIB] = 0x12; in init_reg_defaults()
246 table[KS_OFMTA] = 0x30; in init_reg_defaults()
249 table[KS_VBICTL] = 0x5d; in init_reg_defaults()
277 table[KS_SHS1B] = 0x80; in init_reg_defaults()
283 table[KS_CMDF] = 0x02; in init_reg_defaults()
359 u8 *table = reg_defaults; in ks0127_init() local
369 ks0127_write(sd, i, table[i]); in ks0127_init()
372 ks0127_write(sd, i, table[i]); in ks0127_init()
[all …]
/linux/net/sched/
A Dsch_gred.c106 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()
381 if (!table->tab[i]) in gred_offload_dump_stats()
594 if (table->red_flags && table->red_flags != red_flags) { in gred_vq_validate()
693 if (table->tab[table->def]) in gred_change()
694 def_prio = table->tab[table->def]->prio; in gred_change()
761 table->opt = kzalloc(sizeof(*table->opt), GFP_KERNEL); in gred_init()
762 if (!table->opt) in gred_init()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
A Ddev.c112 if (!table->max_sfs) { in mlx5_sf_dev_add()
118 sf_dev->bar_base_addr = table->base_address + (sf_index * table->sf_bar_length); in mlx5_sf_dev_add()
230 table = kzalloc(sizeof(*table), GFP_KERNEL); in mlx5_sf_dev_table_create()
231 if (!table) { in mlx5_sf_dev_table_create()
237 table->dev = dev; in mlx5_sf_dev_table_create()
244 table->max_sfs = max_sfs; in mlx5_sf_dev_table_create()
245 xa_init(&table->devices); in mlx5_sf_dev_table_create()
260 table->max_sfs = 0; in mlx5_sf_dev_table_create()
261 kfree(table); in mlx5_sf_dev_table_create()
282 if (!table) in mlx5_sf_dev_table_destroy()
[all …]
/linux/drivers/clk/
A Dclk-divider.c75 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/arch/powerpc/boot/
A Dplanetcore.c26 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/arch/x86/lib/
A Dinat.c29 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/tools/arch/x86/lib/
A Dinat.c29 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/drivers/gpu/drm/amd/pm/powerplay/smumgr/
A Dvegam_smumgr.c465 table->Smio[level] |= in vegam_populate_smc_mvdd_table()
1209 table->VceBootLevel = 0; in vegam_populate_smc_vce_level()
1322 table->UvdBootLevel = 0; in vegam_populate_smc_uvd_level()
1941 table->SystemFlags = 0; in vegam_init_smc_table()
2030 table->MemoryInterval = 1; in vegam_init_smc_table()
2038 table->PCIeBootLinkLevel = in vegam_init_smc_table()
2041 table->VRConfig = 0; in vegam_init_smc_table()
2047 table->ThermGpio = 17; in vegam_init_smc_table()
2054 table->VRHotLevel = in vegam_init_smc_table()
2112 table->Ulv.BifSclkDfs = in vegam_init_smc_table()
[all …]
A Dpolaris10_smumgr.c680 table->Smio[level] |= in polaris10_populate_smc_mvdd_table()
1379 table->VceBootLevel = 0; in polaris10_populate_smc_vce_level()
1429 table->SamuBootLevel = 0; in polaris10_populate_smc_samu_level()
1534 table->UvdBootLevel = 0; in polaris10_populate_smc_uvd_level()
1584 table->MemoryBootLevel = 0; in polaris10_populate_smc_boot_level()
1932 table->SystemFlags = 0; in polaris10_init_smc_table()
2026 table->MemoryInterval = 1; in polaris10_init_smc_table()
2032 table->VRConfig = 0; in polaris10_init_smc_table()
2038 table->ThermGpio = 17; in polaris10_init_smc_table()
2087 table->ThermOutGpio = 17; in polaris10_init_smc_table()
[all …]
A Dci_smumgr.c1445 table->MemoryACPILevel.MinVddc = table->ACPILevel.MinVddc; in ci_populate_smc_acpi_level()
1446 table->MemoryACPILevel.MinVddcPhases = table->ACPILevel.MinVddcPhases; in ci_populate_smc_acpi_level()
1449 table->MemoryACPILevel.MinVddci = table->MemoryACPILevel.MinVddc; in ci_populate_smc_acpi_level()
2093 table->VddcVddciDelta = PP_HOST_TO_SMC_US(table->VddcVddciDelta); in ci_init_smc_table()
2097 table->BootVddc = PP_HOST_TO_SMC_US(table->BootVddc * VOLTAGE_SCALE); in ci_init_smc_table()
2098 table->BootVddci = PP_HOST_TO_SMC_US(table->BootVddci * VOLTAGE_SCALE); in ci_init_smc_table()
2099 table->BootMVdd = PP_HOST_TO_SMC_US(table->BootMVdd * VOLTAGE_SCALE); in ci_init_smc_table()
2588 for (i = 0, j = table->last; i < table->last; i++) { in ci_set_mc_special_registers()
2652 table->last = j; in ci_set_mc_special_registers()
2684 if (NULL == table) in ci_initialize_mc_reg_table()
[all …]
A Dtonga_smumgr.c353 table->Smio[count] |= in tonga_populate_smc_vdd_ci_table()
380 table->Smio[count] |= in tonga_populate_smc_mvdd_table()
1321 table->UvdBootLevel = 0; in tonga_populate_smc_uvd_level()
1381 table->VceBootLevel = 0; in tonga_populate_smc_vce_level()
1426 table->AcpBootLevel = 0; in tonga_populate_smc_acp_level()
2358 table->ThermGpio = 17; in tonga_init_smc_table()
2423 table->Smio[i] = PP_HOST_TO_SMC_UL(table->Smio[i]); in tonga_init_smc_table()
2981 for (i = 0, j = table->last; i < table->last; i++) { in tonga_set_mc_special_registers()
3045 table->last = j; in tonga_set_mc_special_registers()
3077 if (table == NULL) in tonga_initialize_mc_reg_table()
[all …]
/linux/drivers/net/ethernet/sfc/
A Dmcdi_filters.c1022 if (table->mc_chaining && table->mc_promisc_last != table->mc_promisc) in efx_mcdi_filter_vlan_sync_rx_mode()
1309 table = kzalloc(sizeof(*table), GFP_KERNEL); in efx_mcdi_filter_table_probe()
1310 if (!table) in efx_mcdi_filter_table_probe()
1351 kfree(table); in efx_mcdi_filter_table_probe()
1359 if (table) { in efx_mcdi_filter_table_reset_mc_allocations()
1383 if (!table || !table->must_restore_filters) in efx_mcdi_filter_table_restore()
1470 if (!table) in efx_mcdi_filter_table_down()
1513 if (!table) in efx_mcdi_filter_table_remove()
1674 if (!table) in efx_mcdi_filter_cleanup_vlans()
1741 if (!table) in efx_mcdi_filter_sync_rx_mode()
[all …]
/linux/drivers/infiniband/hw/mthca/
A Dmthca_memfree.c244 mthca_free_icm(dev, table->icm[i], table->coherent); in mthca_table_get()
271 mthca_free_icm(dev, table->icm[i], table->coherent); in mthca_table_put()
290 idx = (obj & (table->num_obj - 1)) * table->obj_size; in mthca_table_find()
370 table = kmalloc(struct_size(table, icm, num_icm), GFP_KERNEL); in mthca_alloc_icm_table()
371 if (!table) in mthca_alloc_icm_table()
397 mthca_free_icm(dev, table->icm[i], table->coherent); in mthca_alloc_icm_table()
409 return table; in mthca_alloc_icm_table()
416 mthca_free_icm(dev, table->icm[i], table->coherent); in mthca_alloc_icm_table()
419 kfree(table); in mthca_alloc_icm_table()
433 mthca_free_icm(dev, table->icm[i], table->coherent); in mthca_free_icm_table()
[all …]

Completed in 110 milliseconds

12345678910>>...62