Home
last modified time | relevance | path

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

12345678910>>...17

/drivers/net/wireless/iwlwifi/mvm/
Dutils.c455 struct iwl_umac_error_event_table table; in iwl_mvm_dump_umac_error_log() local
469 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_mvm_dump_umac_error_log()
471 if (ERROR_START_OFFSET <= table.valid * ERROR_ELEM_SIZE) { in iwl_mvm_dump_umac_error_log()
474 mvm->status, table.valid); in iwl_mvm_dump_umac_error_log()
477 IWL_ERR(mvm, "0x%08X | %s\n", table.error_id, in iwl_mvm_dump_umac_error_log()
478 desc_lookup(table.error_id)); in iwl_mvm_dump_umac_error_log()
479 IWL_ERR(mvm, "0x%08X | umac branchlink1\n", table.blink1); in iwl_mvm_dump_umac_error_log()
480 IWL_ERR(mvm, "0x%08X | umac branchlink2\n", table.blink2); in iwl_mvm_dump_umac_error_log()
481 IWL_ERR(mvm, "0x%08X | umac interruptlink1\n", table.ilink1); in iwl_mvm_dump_umac_error_log()
482 IWL_ERR(mvm, "0x%08X | umac interruptlink2\n", table.ilink2); in iwl_mvm_dump_umac_error_log()
[all …]
/drivers/infiniband/core/
Dcache.c49 u16 table[0]; member
116 struct ib_gid_table *table, int ix, in write_gid() argument
129 write_lock_irqsave(&table->data_vec[ix].lock, flags); in write_gid()
132 table->data_vec[ix].props |= GID_TABLE_ENTRY_INVALID; in write_gid()
133 write_unlock_irqrestore(&table->data_vec[ix].lock, flags); in write_gid()
139 &table->data_vec[ix].context); in write_gid()
142 &table->data_vec[ix].context); in write_gid()
143 write_lock_irqsave(&table->data_vec[ix].lock, flags); in write_gid()
146 old_net_dev = table->data_vec[ix].attr.ndev; in write_gid()
153 table->data_vec[ix].context = NULL; in write_gid()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Dicm.c254 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj, in mlx4_table_get() argument
257 u32 i = (obj & (table->num_obj - 1)) / in mlx4_table_get()
258 (MLX4_TABLE_CHUNK_SIZE / table->obj_size); in mlx4_table_get()
261 mutex_lock(&table->mutex); in mlx4_table_get()
263 if (table->icm[i]) { in mlx4_table_get()
264 ++table->icm[i]->refcount; in mlx4_table_get()
268 table->icm[i] = mlx4_alloc_icm(dev, MLX4_TABLE_CHUNK_SIZE >> PAGE_SHIFT, in mlx4_table_get()
269 (table->lowmem ? gfp : GFP_HIGHUSER) | in mlx4_table_get()
270 __GFP_NOWARN, table->coherent); in mlx4_table_get()
271 if (!table->icm[i]) { in mlx4_table_get()
[all …]
Dport.c56 void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table) in mlx4_init_mac_table() argument
60 mutex_init(&table->mutex); in mlx4_init_mac_table()
62 table->entries[i] = 0; in mlx4_init_mac_table()
63 table->refs[i] = 0; in mlx4_init_mac_table()
65 table->max = 1 << dev->caps.log_num_macs; in mlx4_init_mac_table()
66 table->total = 0; in mlx4_init_mac_table()
69 void mlx4_init_vlan_table(struct mlx4_dev *dev, struct mlx4_vlan_table *table) in mlx4_init_vlan_table() argument
73 mutex_init(&table->mutex); in mlx4_init_vlan_table()
75 table->entries[i] = 0; in mlx4_init_vlan_table()
76 table->refs[i] = 0; in mlx4_init_vlan_table()
[all …]
/drivers/media/i2c/
Dks0127.c221 u8 *table = reg_defaults; in init_reg_defaults() local
227 table[KS_CMDA] = 0x2c; /* VSE=0, CCIR 601, autodetect standard */ in init_reg_defaults()
228 table[KS_CMDB] = 0x12; /* VALIGN=0, AGC control and input */ in init_reg_defaults()
229 table[KS_CMDC] = 0x00; /* Test options */ in init_reg_defaults()
231 table[KS_CMDD] = 0x01; in init_reg_defaults()
232 table[KS_HAVB] = 0x00; /* HAV Start Control */ in init_reg_defaults()
233 table[KS_HAVE] = 0x00; /* HAV End Control */ in init_reg_defaults()
234 table[KS_HS1B] = 0x10; /* HS1 Start Control */ in init_reg_defaults()
235 table[KS_HS1E] = 0x00; /* HS1 End Control */ in init_reg_defaults()
236 table[KS_HS2B] = 0x00; /* HS2 Start Control */ in init_reg_defaults()
[all …]
/drivers/clk/
Dclk-divider.c35 static unsigned int _get_table_maxdiv(const struct clk_div_table *table) in _get_table_maxdiv() argument
40 for (clkt = table; clkt->div; clkt++) in _get_table_maxdiv()
46 static unsigned int _get_table_mindiv(const struct clk_div_table *table) in _get_table_mindiv() argument
51 for (clkt = table; clkt->div; clkt++) in _get_table_mindiv()
57 static unsigned int _get_maxdiv(const struct clk_div_table *table, u8 width, in _get_maxdiv() argument
64 if (table) in _get_maxdiv()
65 return _get_table_maxdiv(table); in _get_maxdiv()
69 static unsigned int _get_table_div(const struct clk_div_table *table, in _get_table_div() argument
74 for (clkt = table; clkt->div; clkt++) in _get_table_div()
80 static unsigned int _get_div(const struct clk_div_table *table, in _get_div() argument
[all …]
/drivers/gpu/drm/i915/
Dintel_mocs.c35 const struct drm_i915_mocs_entry *table; member
142 struct drm_i915_mocs_table *table) in get_mocs_settings() argument
147 table->size = ARRAY_SIZE(skylake_mocs_table); in get_mocs_settings()
148 table->table = skylake_mocs_table; in get_mocs_settings()
151 table->size = ARRAY_SIZE(broxton_mocs_table); in get_mocs_settings()
152 table->table = broxton_mocs_table; in get_mocs_settings()
174 const struct drm_i915_mocs_table *table, in emit_mocs_control_table() argument
181 if (WARN_ON(table->size > GEN9_NUM_MOCS_ENTRIES)) in emit_mocs_control_table()
193 for (index = 0; index < table->size; index++) { in emit_mocs_control_table()
196 table->table[index].control_value); in emit_mocs_control_table()
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_memfree.c222 int mthca_table_get(struct mthca_dev *dev, struct mthca_icm_table *table, int obj) in mthca_table_get() argument
224 int i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE; in mthca_table_get()
227 mutex_lock(&table->mutex); in mthca_table_get()
229 if (table->icm[i]) { in mthca_table_get()
230 ++table->icm[i]->refcount; in mthca_table_get()
234 table->icm[i] = mthca_alloc_icm(dev, MTHCA_TABLE_CHUNK_SIZE >> PAGE_SHIFT, in mthca_table_get()
235 (table->lowmem ? GFP_KERNEL : GFP_HIGHUSER) | in mthca_table_get()
236 __GFP_NOWARN, table->coherent); in mthca_table_get()
237 if (!table->icm[i]) { in mthca_table_get()
242 if (mthca_MAP_ICM(dev, table->icm[i], in mthca_table_get()
[all …]
/drivers/clk/ti/
Ddivider.c33 static unsigned int _get_table_maxdiv(const struct clk_div_table *table) in _get_table_maxdiv() argument
38 for (clkt = table; clkt->div; clkt++) in _get_table_maxdiv()
50 if (divider->table) in _get_maxdiv()
51 return _get_table_maxdiv(divider->table); in _get_maxdiv()
55 static unsigned int _get_table_div(const struct clk_div_table *table, in _get_table_div() argument
60 for (clkt = table; clkt->div; clkt++) in _get_table_div()
72 if (divider->table) in _get_div()
73 return _get_table_div(divider->table, val); in _get_div()
77 static unsigned int _get_table_val(const struct clk_div_table *table, in _get_table_val() argument
82 for (clkt = table; clkt->div; clkt++) in _get_table_val()
[all …]
/drivers/cpufreq/
Dfreq_table.c23 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in policy_has_boost_freq() local
25 if (!table) in policy_has_boost_freq()
28 cpufreq_for_each_valid_entry(pos, table) in policy_has_boost_freq()
37 struct cpufreq_frequency_table *table) in cpufreq_frequency_table_cpuinfo() argument
44 cpufreq_for_each_valid_entry(pos, table) { in cpufreq_frequency_table_cpuinfo()
51 pr_debug("table entry %u: %u kHz\n", (int)(pos - table), freq); in cpufreq_frequency_table_cpuinfo()
70 struct cpufreq_frequency_table *table) in cpufreq_frequency_table_verify() argument
81 cpufreq_for_each_valid_entry(pos, table) { in cpufreq_frequency_table_verify()
111 struct cpufreq_frequency_table *table = in cpufreq_generic_frequency_table_verify() local
113 if (!table) in cpufreq_generic_frequency_table_verify()
[all …]
Dqoriq-cpufreq.c35 struct cpufreq_frequency_table *table; member
171 struct cpufreq_frequency_table table; in freq_table_sort() local
187 table.driver_data = freq_table[i].driver_data; in freq_table_sort()
188 table.frequency = freq_table[i].frequency; in freq_table_sort()
191 freq_table[ind].driver_data = table.driver_data; in freq_table_sort()
192 freq_table[ind].frequency = table.frequency; in freq_table_sort()
203 struct cpufreq_frequency_table *table; in qoriq_cpufreq_cpu_init() local
235 table = kcalloc(count + 1, sizeof(*table), GFP_KERNEL); in qoriq_cpufreq_cpu_init()
236 if (!table) { in qoriq_cpufreq_cpu_init()
255 table[i].frequency = CPUFREQ_ENTRY_INVALID; in qoriq_cpufreq_cpu_init()
[all …]
/drivers/gpu/drm/radeon/
Drv730_dpm.c230 RV770_SMC_STATETABLE *table) in rv730_populate_smc_acpi_state() argument
242 table->ACPIState = table->initialState; in rv730_populate_smc_acpi_state()
243 table->ACPIState.flags &= ~PPSMC_SWSTATE_FLAG_DC; in rv730_populate_smc_acpi_state()
247 &table->ACPIState.levels[0].vddc); in rv730_populate_smc_acpi_state()
248 table->ACPIState.levels[0].gen2PCIE = pi->pcie_gen2 ? in rv730_populate_smc_acpi_state()
250 table->ACPIState.levels[0].gen2XSP = in rv730_populate_smc_acpi_state()
254 &table->ACPIState.levels[0].vddc); in rv730_populate_smc_acpi_state()
255 table->ACPIState.levels[0].gen2PCIE = 0; in rv730_populate_smc_acpi_state()
297 table->ACPIState.levels[0].mclk.mclk730.vMPLL_FUNC_CNTL = cpu_to_be32(mpll_func_cntl); in rv730_populate_smc_acpi_state()
298 table->ACPIState.levels[0].mclk.mclk730.vMPLL_FUNC_CNTL2 = cpu_to_be32(mpll_func_cntl_2); in rv730_populate_smc_acpi_state()
[all …]
Dci_dpm.c1302 SMU7_Discrete_DpmTable *table = &pi->smc_state_table; in ci_init_fps_limits() local
1308 table->FpsHighT = cpu_to_be16(tmp); in ci_init_fps_limits()
1311 table->FpsLowT = cpu_to_be16(tmp); in ci_init_fps_limits()
2195 SMU7_Discrete_DpmTable *table) in ci_populate_smc_vddc_table() argument
2200 table->VddcLevelCount = pi->vddc_voltage_table.count; in ci_populate_smc_vddc_table()
2201 for (count = 0; count < table->VddcLevelCount; count++) { in ci_populate_smc_vddc_table()
2204 &table->VddcLevel[count]); in ci_populate_smc_vddc_table()
2207 table->VddcLevel[count].Smio |= in ci_populate_smc_vddc_table()
2210 table->VddcLevel[count].Smio = 0; in ci_populate_smc_vddc_table()
2212 table->VddcLevelCount = cpu_to_be32(table->VddcLevelCount); in ci_populate_smc_vddc_table()
[all …]
Dbtc_dpm.c1174 …tc_get_max_clock_from_voltage_dependency_table(struct radeon_clock_voltage_dependency_table *table, in btc_get_max_clock_from_voltage_dependency_table() argument
1179 if ((table == NULL) || (table->count == 0)) { in btc_get_max_clock_from_voltage_dependency_table()
1184 for (i = 0; i < table->count; i++) { in btc_get_max_clock_from_voltage_dependency_table()
1185 if (clock < table->entries[i].clk) in btc_get_max_clock_from_voltage_dependency_table()
1186 clock = table->entries[i].clk; in btc_get_max_clock_from_voltage_dependency_table()
1191 void btc_apply_voltage_dependency_rules(struct radeon_clock_voltage_dependency_table *table, in btc_apply_voltage_dependency_rules() argument
1196 if ((table == NULL) || (table->count == 0)) in btc_apply_voltage_dependency_rules()
1199 for (i= 0; i < table->count; i++) { in btc_apply_voltage_dependency_rules()
1200 if (clock <= table->entries[i].clk) { in btc_apply_voltage_dependency_rules()
1201 if (*voltage < table->entries[i].v) in btc_apply_voltage_dependency_rules()
[all …]
/drivers/net/ethernet/sfc/
Dfarch.c1901 struct efx_farch_filter_table table[EFX_FARCH_FILTER_TABLE_COUNT]; member
1906 struct efx_farch_filter_table *table,
1955 struct efx_farch_filter_table *table; in efx_farch_filter_push_rx_config() local
1960 table = &state->table[EFX_FARCH_FILTER_TABLE_RX_IP]; in efx_farch_filter_push_rx_config()
1962 table->search_limit[EFX_FARCH_FILTER_TCP_FULL] + in efx_farch_filter_push_rx_config()
1965 table->search_limit[EFX_FARCH_FILTER_TCP_WILD] + in efx_farch_filter_push_rx_config()
1968 table->search_limit[EFX_FARCH_FILTER_UDP_FULL] + in efx_farch_filter_push_rx_config()
1971 table->search_limit[EFX_FARCH_FILTER_UDP_WILD] + in efx_farch_filter_push_rx_config()
1974 table = &state->table[EFX_FARCH_FILTER_TABLE_RX_MAC]; in efx_farch_filter_push_rx_config()
1975 if (table->size) { in efx_farch_filter_push_rx_config()
[all …]
/drivers/acpi/acpica/
Dutfileio.c60 acpi_ut_check_text_mode_corruption(u8 *table,
65 struct acpi_table_header **table, u32 *table_length);
84 acpi_ut_check_text_mode_corruption(u8 *table, u32 table_length, u32 file_length) in acpi_ut_check_text_mode_corruption() argument
98 if (table[i] == 0x0A) { in acpi_ut_check_text_mode_corruption()
99 if (table[i - 1] != 0x0D) { in acpi_ut_check_text_mode_corruption()
147 struct acpi_table_header **table, u32 *table_length) in acpi_ut_read_table() argument
230 *table = acpi_os_allocate((size_t) file_size); in acpi_ut_read_table()
231 if (!*table) { in acpi_ut_read_table()
241 actual = fread(*table, 1, (size_t) file_size, fp); in acpi_ut_read_table()
247 status = acpi_tb_verify_checksum((void *)*table, in acpi_ut_read_table()
[all …]
Dtbxfload.c108 struct acpi_table_desc *table; in ACPI_EXPORT_SYMBOL_INIT() local
120 table = &acpi_gbl_root_table_list.tables[acpi_gbl_dsdt_index]; in ACPI_EXPORT_SYMBOL_INIT()
123 !ACPI_COMPARE_NAME(table->signature.ascii, ACPI_SIG_DSDT) || in ACPI_EXPORT_SYMBOL_INIT()
124 ACPI_FAILURE(acpi_tb_validate_table(table))) { in ACPI_EXPORT_SYMBOL_INIT()
135 acpi_gbl_DSDT = table->pointer; in ACPI_EXPORT_SYMBOL_INIT()
173 table = &acpi_gbl_root_table_list.tables[i]; in ACPI_EXPORT_SYMBOL_INIT()
176 (!ACPI_COMPARE_NAME(table->signature.ascii, ACPI_SIG_SSDT) in ACPI_EXPORT_SYMBOL_INIT()
177 && !ACPI_COMPARE_NAME(table->signature.ascii, in ACPI_EXPORT_SYMBOL_INIT()
179 && !ACPI_COMPARE_NAME(table->signature.ascii, in ACPI_EXPORT_SYMBOL_INIT()
181 || ACPI_FAILURE(acpi_tb_validate_table(table))) { in ACPI_EXPORT_SYMBOL_INIT()
[all …]
Ddbfileio.c132 static acpi_status ae_local_load_table(struct acpi_table_header *table) in ae_local_load_table() argument
141 if (!table) { in ae_local_load_table()
145 table_info.pointer = table; in ae_local_load_table()
205 struct acpi_table_header *table; in acpi_db_get_table_from_file() local
208 status = acpi_ut_read_table_from_file(filename, &table); in acpi_db_get_table_from_file()
214 is_aml_table = acpi_ut_is_aml_table(table); in acpi_db_get_table_from_file()
219 table->signature)); in acpi_db_get_table_from_file()
228 status = ae_local_load_table(table); in acpi_db_get_table_from_file()
233 table->signature); in acpi_db_get_table_from_file()
242 acpi_tb_print_table_header(0, table); in acpi_db_get_table_from_file()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Dcq.c45 struct mlx5_cq_table *table = &dev->priv.cq_table; in mlx5_cq_completion() local
47 spin_lock(&table->lock); in mlx5_cq_completion()
48 cq = radix_tree_lookup(&table->tree, cqn); in mlx5_cq_completion()
51 spin_unlock(&table->lock); in mlx5_cq_completion()
68 struct mlx5_cq_table *table = &dev->priv.cq_table; in mlx5_cq_event() local
71 spin_lock(&table->lock); in mlx5_cq_event()
73 cq = radix_tree_lookup(&table->tree, cqn); in mlx5_cq_event()
77 spin_unlock(&table->lock); in mlx5_cq_event()
95 struct mlx5_cq_table *table = &dev->priv.cq_table; in mlx5_core_create_cq() local
115 spin_lock_irq(&table->lock); in mlx5_core_create_cq()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Dci_dpm.c1429 SMU7_Discrete_DpmTable *table = &pi->smc_state_table; in ci_init_fps_limits() local
1435 table->FpsHighT = cpu_to_be16(tmp); in ci_init_fps_limits()
1438 table->FpsLowT = cpu_to_be16(tmp); in ci_init_fps_limits()
2326 SMU7_Discrete_DpmTable *table) in ci_populate_smc_vddc_table() argument
2331 table->VddcLevelCount = pi->vddc_voltage_table.count; in ci_populate_smc_vddc_table()
2332 for (count = 0; count < table->VddcLevelCount; count++) { in ci_populate_smc_vddc_table()
2335 &table->VddcLevel[count]); in ci_populate_smc_vddc_table()
2338 table->VddcLevel[count].Smio |= in ci_populate_smc_vddc_table()
2341 table->VddcLevel[count].Smio = 0; in ci_populate_smc_vddc_table()
2343 table->VddcLevelCount = cpu_to_be32(table->VddcLevelCount); in ci_populate_smc_vddc_table()
[all …]
/drivers/staging/android/ion/
Dion_chunk_heap.c43 struct sg_table *table; in ion_chunk_heap_allocate() local
58 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_chunk_heap_allocate()
59 if (!table) in ion_chunk_heap_allocate()
61 ret = sg_alloc_table(table, num_chunks, GFP_KERNEL); in ion_chunk_heap_allocate()
63 kfree(table); in ion_chunk_heap_allocate()
67 sg = table->sgl; in ion_chunk_heap_allocate()
78 buffer->priv_virt = table; in ion_chunk_heap_allocate()
82 sg = table->sgl; in ion_chunk_heap_allocate()
88 sg_free_table(table); in ion_chunk_heap_allocate()
89 kfree(table); in ion_chunk_heap_allocate()
[all …]
Dion_carveout_heap.c63 struct sg_table *table = buffer->priv_virt; in ion_carveout_heap_phys() local
64 struct page *page = sg_page(table->sgl); in ion_carveout_heap_phys()
77 struct sg_table *table; in ion_carveout_heap_allocate() local
84 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_carveout_heap_allocate()
85 if (!table) in ion_carveout_heap_allocate()
87 ret = sg_alloc_table(table, 1, GFP_KERNEL); in ion_carveout_heap_allocate()
97 sg_set_page(table->sgl, pfn_to_page(PFN_DOWN(paddr)), size, 0); in ion_carveout_heap_allocate()
98 buffer->priv_virt = table; in ion_carveout_heap_allocate()
103 sg_free_table(table); in ion_carveout_heap_allocate()
105 kfree(table); in ion_carveout_heap_allocate()
[all …]
Dion_system_heap.c130 struct sg_table *table; in ion_system_heap_allocate() local
155 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_system_heap_allocate()
156 if (!table) in ion_system_heap_allocate()
159 if (sg_alloc_table(table, i, GFP_KERNEL)) in ion_system_heap_allocate()
162 sg = table->sgl; in ion_system_heap_allocate()
169 buffer->priv_virt = table; in ion_system_heap_allocate()
173 kfree(table); in ion_system_heap_allocate()
185 struct sg_table *table = buffer->sg_table; in ion_system_heap_free() local
198 for_each_sg(table->sgl, sg, table->nents, i) in ion_system_heap_free()
200 sg_free_table(table); in ion_system_heap_free()
[all …]
/drivers/gpu/drm/
Ddrm_hashtab.c46 ht->table = NULL; in drm_ht_create()
47 if (size <= PAGE_SIZE / sizeof(*ht->table)) in drm_ht_create()
48 ht->table = kcalloc(size, sizeof(*ht->table), GFP_KERNEL); in drm_ht_create()
50 ht->table = vzalloc(size*sizeof(*ht->table)); in drm_ht_create()
51 if (!ht->table) { in drm_ht_create()
68 h_list = &ht->table[hashed_key]; in drm_ht_verbose_list()
81 h_list = &ht->table[hashed_key]; in drm_ht_find_key()
99 h_list = &ht->table[hashed_key]; in drm_ht_find_key_rcu()
118 h_list = &ht->table[hashed_key]; in drm_ht_insert_item()
200 if (ht->table) { in drm_ht_remove()
[all …]
/drivers/thermal/
Drockchip_thermal.c104 int (*get_temp)(struct chip_tsadc_table table,
106 void (*set_tshut_temp)(struct chip_tsadc_table table,
111 struct chip_tsadc_table table; member
248 static u32 rk_tsadcv2_temp_to_code(struct chip_tsadc_table table, in rk_tsadcv2_temp_to_code() argument
254 high = table.length - 1; in rk_tsadcv2_temp_to_code()
257 if (temp < table.id[low].temp || temp > table.id[high].temp) in rk_tsadcv2_temp_to_code()
261 if (temp == table.id[mid].temp) in rk_tsadcv2_temp_to_code()
262 return table.id[mid].code; in rk_tsadcv2_temp_to_code()
263 else if (temp < table.id[mid].temp) in rk_tsadcv2_temp_to_code()
273 static int rk_tsadcv2_code_to_temp(struct chip_tsadc_table table, u32 code, in rk_tsadcv2_code_to_temp() argument
[all …]

12345678910>>...17