Home
last modified time | relevance | path

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

12345678910>>...37

/drivers/net/wireless/intel/iwlwifi/fw/
A Ddump.c129 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 …]
/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 …]
/drivers/gpu/drm/i915/gt/
A Dintel_mocs.c462 table->table = mtl_mocs_table; in get_mocs_settings()
468 table->table = dg2_mocs_table; in get_mocs_settings()
474 table->table = dg1_mocs_table; in get_mocs_settings()
482 table->table = tgl_mocs_table; in get_mocs_settings()
487 table->table = gen12_mocs_table; in get_mocs_settings()
493 table->table = icl_mocs_table; in get_mocs_settings()
498 table->table = skl_mocs_table; in get_mocs_settings()
543 if (index < table->size && table->table[index].used) in get_entry_control()
545 return table->table[table->unused_entries_index].control_value; in get_entry_control()
595 if (index < table->size && table->table[index].used) in get_entry_l3cc()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
A Ddev.c42 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 …]
/drivers/net/ethernet/mellanox/mlx5/core/sf/
A Ddevlink.c261 mlx5_sf_free(table, sf); in mlx5_sf_add()
373 mlx5_sf_del(table, sf); in mlx5_devlink_sf_port_del()
423 mlx5_sf_del(table, sf); in mlx5_sf_del_all()
475 table = kzalloc(sizeof(*table), GFP_KERNEL); in mlx5_sf_table_init()
476 if (!table) in mlx5_sf_table_init()
480 table->dev = dev; in mlx5_sf_table_init()
489 err = mlx5_vhca_event_notifier_register(table->dev, &table->vhca_nb); in mlx5_sf_table_init()
502 kfree(table); in mlx5_sf_table_init()
511 if (!table) in mlx5_sf_table_cleanup()
515 mlx5_vhca_event_notifier_unregister(table->dev, &table->vhca_nb); in mlx5_sf_table_cleanup()
[all …]
A Dhw_table.c68 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 …]
/drivers/net/ethernet/mellanox/mlx5/core/
A Drl.c226 return (rate <= table->max_rate && rate >= table->min_rate); in mlx5_rl_is_in_range()
245 if (table->rl_entry) { in mlx5_rl_table_get()
246 table->refcount++; in mlx5_rl_table_get()
250 table->rl_entry = kcalloc(table->max_size, sizeof(struct mlx5_rl_entry), in mlx5_rl_table_get()
252 if (!table->rl_entry) in mlx5_rl_table_get()
261 table->refcount++; in mlx5_rl_table_get()
268 if (--table->refcount) in mlx5_rl_table_put()
279 if (!table->rl_entry) in mlx5_rl_table_free()
310 if (!table->max_size) in mlx5_rl_add_rate_raw()
316 rate, table->min_rate, table->max_rate); in mlx5_rl_add_rate_raw()
[all …]
/drivers/infiniband/hw/hns/
A Dhns_roce_hem.c337 table->type, index->buf, table->num_hem); in calc_hem_config()
534 i = obj / (table->table_chunk_size / table->obj_size); in hns_roce_table_get()
543 table->hem[i] = hns_roce_alloc_hem(hr_dev, table->table_chunk_size); in hns_roce_table_get()
659 i = obj / (table->table_chunk_size / table->obj_size); in hns_roce_table_put()
693 obj_per_chunk = table->table_chunk_size / table->obj_size; in hns_roce_table_find()
740 table->hem = kcalloc(num_hem, sizeof(*table->hem), GFP_KERNEL); in hns_roce_init_hem_table()
741 if (!table->hem) in hns_roce_init_hem_table()
766 table->hem = kcalloc(num_hem, sizeof(*table->hem), in hns_roce_init_hem_table()
768 if (!table->hem) in hns_roce_init_hem_table()
791 table->bt_l0 = kcalloc(num_bt_l0, sizeof(*table->bt_l0), in hns_roce_init_hem_table()
[all …]
/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 …]
/drivers/infiniband/core/
A Dcache.c774 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 …]
/drivers/md/dm-vdo/
A Dpriority-table.c56 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 …]
/drivers/media/i2c/
A Dks0127.c200 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 …]
/drivers/net/ethernet/marvell/octeontx2/af/
A Drvu_npc_hash.c471 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 …]
/drivers/gpu/drm/amd/pm/powerplay/smumgr/
A Dvegam_smumgr.c464 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 …]
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.c1446 table->MemoryACPILevel.MinVddc = table->ACPILevel.MinVddc; in ci_populate_smc_acpi_level()
1447 table->MemoryACPILevel.MinVddcPhases = table->ACPILevel.MinVddcPhases; in ci_populate_smc_acpi_level()
1450 table->MemoryACPILevel.MinVddci = table->MemoryACPILevel.MinVddc; in ci_populate_smc_acpi_level()
2094 table->VddcVddciDelta = PP_HOST_TO_SMC_US(table->VddcVddciDelta); in ci_init_smc_table()
2098 table->BootVddc = PP_HOST_TO_SMC_US(table->BootVddc * VOLTAGE_SCALE); in ci_init_smc_table()
2099 table->BootVddci = PP_HOST_TO_SMC_US(table->BootVddci * VOLTAGE_SCALE); in ci_init_smc_table()
2100 table->BootMVdd = PP_HOST_TO_SMC_US(table->BootMVdd * VOLTAGE_SCALE); in ci_init_smc_table()
2590 for (i = 0, j = table->last; i < table->last; i++) { in ci_set_mc_special_registers()
2654 table->last = j; in ci_set_mc_special_registers()
2686 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 …]
A Diceland_smumgr.c1492 table->MemoryACPILevel.MinVddc = table->ACPILevel.MinVddc; in iceland_populate_smc_acpi_level()
1493 table->MemoryACPILevel.MinVddcPhases = table->ACPILevel.MinVddcPhases; in iceland_populate_smc_acpi_level()
1496 table->MemoryACPILevel.MinVddci = table->MemoryACPILevel.MinVddc; in iceland_populate_smc_acpi_level()
1679 table->BootVddci = table->BootVddc; in iceland_populate_smc_boot_level()
2052 table->BootVddc = PP_HOST_TO_SMC_US(table->BootVddc * VOLTAGE_SCALE); in iceland_init_smc_table()
2053 table->BootVddci = PP_HOST_TO_SMC_US(table->BootVddci * VOLTAGE_SCALE); in iceland_init_smc_table()
2054 table->BootMVdd = PP_HOST_TO_SMC_US(table->BootMVdd * VOLTAGE_SCALE); in iceland_init_smc_table()
2517 for (i = 0, j = table->last; i < table->last; i++) { in iceland_set_mc_special_registers()
2582 table->last = j; in iceland_set_mc_special_registers()
2613 if (NULL == table) in iceland_initialize_mc_reg_table()
[all …]
A Dfiji_smumgr.c1430 table->VceBootLevel = 0; in fiji_populate_smc_vce_level()
1469 table->AcpBootLevel = 0; in fiji_populate_smc_acp_level()
1565 table->UvdBootLevel = 0; in fiji_populate_smc_uvd_level()
1606 table->MemoryBootLevel = 0; in fiji_populate_smc_boot_level()
1829 table->VRConfig |= config; in fiji_populate_vr_config()
1934 table->SystemFlags = 0; in fiji_init_smc_table()
2023 table->MemoryInterval = 1; in fiji_init_smc_table()
2029 table->VRConfig = 0; in fiji_init_smc_table()
2035 table->ThermGpio = 17; in fiji_init_smc_table()
2085 table->ThermOutGpio = 17; in fiji_init_smc_table()
[all …]
/drivers/clk/
A Dclk-divider.c77 if (table) in _get_maxdiv()
104 if (table) in _get_div()
105 return _get_table_div(table, val); in _get_div()
131 if (table) in _get_val()
184 if (table) in _is_valid_div()
233 if (table) in _div_round_up()
252 } else if (table) { in _div_round_closest()
253 up = _round_up_table(table, up); in _div_round_closest()
289 if (table) in _next_div()
589 div->table = table; in __clk_hw_register_divider()
[all …]
/drivers/net/ethernet/sfc/
A Dmcdi_filters.c1026 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 …]
/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 …]
/drivers/gpu/drm/radeon/
A Drv730_dpm.c227 RV770_SMC_STATETABLE *table) in rv730_populate_smc_acpi_state() argument
239 table->ACPIState = table->initialState; in rv730_populate_smc_acpi_state()
244 &table->ACPIState.levels[0].vddc); in rv730_populate_smc_acpi_state()
247 table->ACPIState.levels[0].gen2XSP = in rv730_populate_smc_acpi_state()
251 &table->ACPIState.levels[0].vddc); in rv730_populate_smc_acpi_state()
310 table->ACPIState.levels[1] = table->ACPIState.levels[0]; in rv730_populate_smc_acpi_state()
311 table->ACPIState.levels[2] = table->ACPIState.levels[0]; in rv730_populate_smc_acpi_state()
318 RV770_SMC_STATETABLE *table) in rv730_populate_smc_initial_state() argument
358 table->initialState.levels[0].seqValue = in rv730_populate_smc_initial_state()
382 table->initialState.levels[1] = table->initialState.levels[0]; in rv730_populate_smc_initial_state()
[all …]
/drivers/acpi/
A Dtables.c344 if (table) { in acpi_table_parse()
345 handler(table); in acpi_table_parse()
346 acpi_put_table(table); in acpi_table_parse()
362 if (table) { in check_multiple_madt()
368 acpi_put_table(table); in check_multiple_madt()
379 table->signature, table->oem_table_id); in acpi_table_taint()
456 table = file.data; in acpi_table_upgrade()
479 table->signature, cpio_path, file.name, table->length); in acpi_table_upgrade()
592 table->signature, table->oem_id, in acpi_table_initrd_override()
593 table->oem_table_id); in acpi_table_initrd_override()
[all …]
/drivers/net/ethernet/sfc/siena/
A Dfarch.c1943 table = &state->table[EFX_FARCH_FILTER_TABLE_RX_IP]; in efx_farch_filter_push_rx_config()
2519 table->offset + table->step * ins_index); in efx_farch_filter_insert()
2604 table = &state->table[table_id]; in efx_farch_filter_remove_safe()
2633 table = &state->table[table_id]; in efx_farch_filter_get_safe()
2695 table = &state->table[table_id]; in efx_farch_filter_count_rx_used()
2723 table = &state->table[table_id]; in efx_farch_filter_get_rx_ids()
2754 table = &state->table[table_id]; in efx_farch_filter_table_restore()
2765 table->offset + table->step * filter_idx); in efx_farch_filter_table_restore()
2822 table = &state->table[table_id]; in efx_farch_filter_table_probe()
2871 table = &state->table[table_id]; in efx_farch_filter_update_rx_scatter()
[all …]

Completed in 126 milliseconds

12345678910>>...37