Home
last modified time | relevance | path

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

12345678910>>...13

/drivers/net/ethernet/sfc/
Dfilter.c62 struct efx_filter_table table[EFX_FILTER_TABLE_COUNT]; member
70 struct efx_filter_table *table,
117 return &state->table[efx_filter_spec_table_id(spec)]; in efx_filter_spec_table()
120 static void efx_filter_table_reset_search_depth(struct efx_filter_table *table) in efx_filter_table_reset_search_depth() argument
122 memset(table->search_depth, 0, sizeof(table->search_depth)); in efx_filter_table_reset_search_depth()
128 struct efx_filter_table *table; in efx_filter_push_rx_config() local
133 table = &state->table[EFX_FILTER_TABLE_RX_IP]; in efx_filter_push_rx_config()
135 table->search_depth[EFX_FILTER_TCP_FULL] + in efx_filter_push_rx_config()
138 table->search_depth[EFX_FILTER_TCP_WILD] + in efx_filter_push_rx_config()
141 table->search_depth[EFX_FILTER_UDP_FULL] + in efx_filter_push_rx_config()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Dicm.c230 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj) in mlx4_table_get() argument
232 u32 i = (obj & (table->num_obj - 1)) / in mlx4_table_get()
233 (MLX4_TABLE_CHUNK_SIZE / table->obj_size); in mlx4_table_get()
236 mutex_lock(&table->mutex); in mlx4_table_get()
238 if (table->icm[i]) { in mlx4_table_get()
239 ++table->icm[i]->refcount; in mlx4_table_get()
243 table->icm[i] = mlx4_alloc_icm(dev, MLX4_TABLE_CHUNK_SIZE >> PAGE_SHIFT, in mlx4_table_get()
244 (table->lowmem ? GFP_KERNEL : GFP_HIGHUSER) | in mlx4_table_get()
245 __GFP_NOWARN, table->coherent); in mlx4_table_get()
246 if (!table->icm[i]) { in mlx4_table_get()
[all …]
Dport.c52 void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table) in mlx4_init_mac_table() argument
56 mutex_init(&table->mutex); in mlx4_init_mac_table()
58 table->entries[i] = 0; in mlx4_init_mac_table()
59 table->refs[i] = 0; in mlx4_init_mac_table()
61 table->max = 1 << dev->caps.log_num_macs; in mlx4_init_mac_table()
62 table->total = 0; in mlx4_init_mac_table()
65 void mlx4_init_vlan_table(struct mlx4_dev *dev, struct mlx4_vlan_table *table) in mlx4_init_vlan_table() argument
69 mutex_init(&table->mutex); in mlx4_init_vlan_table()
71 table->entries[i] = 0; in mlx4_init_vlan_table()
72 table->refs[i] = 0; in mlx4_init_vlan_table()
[all …]
/drivers/net/wireless/iwlwifi/mvm/
Dutils.c375 struct iwl_error_event_table table; in iwl_mvm_dump_nic_error_log() local
396 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_mvm_dump_nic_error_log()
398 if (ERROR_START_OFFSET <= table.valid * ERROR_ELEM_SIZE) { in iwl_mvm_dump_nic_error_log()
401 mvm->status, table.valid); in iwl_mvm_dump_nic_error_log()
404 trace_iwlwifi_dev_ucode_error(trans->dev, table.error_id, table.tsf_low, in iwl_mvm_dump_nic_error_log()
405 table.data1, table.data2, table.data3, in iwl_mvm_dump_nic_error_log()
406 table.blink1, table.blink2, table.ilink1, in iwl_mvm_dump_nic_error_log()
407 table.ilink2, table.bcon_time, table.gp1, in iwl_mvm_dump_nic_error_log()
408 table.gp2, table.gp3, table.ucode_ver, in iwl_mvm_dump_nic_error_log()
409 table.hw_ver, table.brd_ver); in iwl_mvm_dump_nic_error_log()
[all …]
/drivers/media/i2c/
Dks0127.c223 u8 *table = reg_defaults; in init_reg_defaults() local
229 table[KS_CMDA] = 0x2c; /* VSE=0, CCIR 601, autodetect standard */ in init_reg_defaults()
230 table[KS_CMDB] = 0x12; /* VALIGN=0, AGC control and input */ in init_reg_defaults()
231 table[KS_CMDC] = 0x00; /* Test options */ in init_reg_defaults()
233 table[KS_CMDD] = 0x01; in init_reg_defaults()
234 table[KS_HAVB] = 0x00; /* HAV Start Control */ in init_reg_defaults()
235 table[KS_HAVE] = 0x00; /* HAV End Control */ in init_reg_defaults()
236 table[KS_HS1B] = 0x10; /* HS1 Start Control */ in init_reg_defaults()
237 table[KS_HS1E] = 0x00; /* HS1 End Control */ in init_reg_defaults()
238 table[KS_HS2B] = 0x00; /* HS2 Start Control */ in init_reg_defaults()
[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/acpi/acpica/
Dtbutils.c79 struct acpi_table_header *table; in acpi_tb_check_xsdt() local
86 table = acpi_os_map_memory(address, sizeof(struct acpi_table_header)); in acpi_tb_check_xsdt()
87 if (!table) in acpi_tb_check_xsdt()
90 length = table->length; in acpi_tb_check_xsdt()
91 acpi_os_unmap_memory(table, sizeof(struct acpi_table_header)); in acpi_tb_check_xsdt()
95 table = acpi_os_map_memory(address, length); in acpi_tb_check_xsdt()
96 if (!table) in acpi_tb_check_xsdt()
101 (u32) ((table->length - in acpi_tb_check_xsdt()
104 ACPI_CAST_PTR(u8, table) + sizeof(struct acpi_table_header); in acpi_tb_check_xsdt()
113 acpi_os_unmap_memory(table, length); in acpi_tb_check_xsdt()
[all …]
Drsdump.c78 acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table);
94 acpi_rs_dump_descriptor(void *resource, struct acpi_rsdump_info *table) in acpi_rs_dump_descriptor() argument
103 count = table->offset; in acpi_rs_dump_descriptor()
107 target = ACPI_ADD_PTR(u8, resource, table->offset); in acpi_rs_dump_descriptor()
108 name = table->name; in acpi_rs_dump_descriptor()
110 switch (table->opcode) { in acpi_rs_dump_descriptor()
115 if (table->name) { in acpi_rs_dump_descriptor()
124 ACPI_CAST_PTR(char, table->pointer)); in acpi_rs_dump_descriptor()
134 if (table->pointer) { in acpi_rs_dump_descriptor()
136 table-> in acpi_rs_dump_descriptor()
[all …]
Dexconfig.c160 struct acpi_table_header *table; in acpi_ex_load_table_op() local
261 status = acpi_get_table_by_index(table_index, &table); in acpi_ex_load_table_op()
264 acpi_tb_print_table_header(0, table); in acpi_ex_load_table_op()
270 (void)acpi_gbl_table_handler(ACPI_TABLE_EVENT_LOAD, table, in acpi_ex_load_table_op()
346 struct acpi_table_header *table; in acpi_ex_load_op() local
383 table = ACPI_ALLOCATE(sizeof(struct acpi_table_header)); in acpi_ex_load_op()
384 if (!table) { in acpi_ex_load_op()
391 ACPI_CAST_PTR(u8, table)); in acpi_ex_load_op()
392 length = table->length; in acpi_ex_load_op()
393 ACPI_FREE(table); in acpi_ex_load_op()
[all …]
/drivers/cpufreq/
Dfreq_table.c24 struct cpufreq_frequency_table *table) in cpufreq_frequency_table_cpuinfo() argument
30 for (i = 0; (table[i].frequency != CPUFREQ_TABLE_END); i++) { in cpufreq_frequency_table_cpuinfo()
31 unsigned int freq = table[i].frequency; in cpufreq_frequency_table_cpuinfo()
38 i, freq, table[i].index); in cpufreq_frequency_table_cpuinfo()
57 struct cpufreq_frequency_table *table) in cpufreq_frequency_table_verify() argument
69 for (i = 0; (table[i].frequency != CPUFREQ_TABLE_END); i++) { in cpufreq_frequency_table_verify()
70 unsigned int freq = table[i].frequency; in cpufreq_frequency_table_verify()
94 struct cpufreq_frequency_table *table, in cpufreq_frequency_table_target() argument
121 for (i = 0; (table[i].frequency != CPUFREQ_TABLE_END); i++) { in cpufreq_frequency_table_target()
122 unsigned int freq = table[i].frequency; in cpufreq_frequency_table_target()
[all …]
Dsparc-us2e-cpufreq.c25 struct cpufreq_frequency_table table[6]; member
289 &us2e_freq_table[policy->cpu].table[0], in us2e_freq_target()
301 &us2e_freq_table[policy->cpu].table[0]); in us2e_freq_verify()
308 struct cpufreq_frequency_table *table = in us2e_freq_cpu_init() local
309 &us2e_freq_table[cpu].table[0]; in us2e_freq_cpu_init()
311 table[0].index = 0; in us2e_freq_cpu_init()
312 table[0].frequency = clock_tick / 1; in us2e_freq_cpu_init()
313 table[1].index = 1; in us2e_freq_cpu_init()
314 table[1].frequency = clock_tick / 2; in us2e_freq_cpu_init()
315 table[2].index = 2; in us2e_freq_cpu_init()
[all …]
Dsparc-us3-cpufreq.c24 struct cpufreq_frequency_table table[4]; member
148 &us3_freq_table[policy->cpu].table[0], in us3_freq_target()
162 &us3_freq_table[policy->cpu].table[0]); in us3_freq_verify()
169 struct cpufreq_frequency_table *table = in us3_freq_cpu_init() local
170 &us3_freq_table[cpu].table[0]; in us3_freq_cpu_init()
172 table[0].index = 0; in us3_freq_cpu_init()
173 table[0].frequency = clock_tick / 1; in us3_freq_cpu_init()
174 table[1].index = 1; in us3_freq_cpu_init()
175 table[1].frequency = clock_tick / 2; in us3_freq_cpu_init()
176 table[2].index = 2; in us3_freq_cpu_init()
[all …]
/drivers/net/wireless/b43/
Dradio_2057.c109 u16 *table = NULL; in r2057_upload_inittabs() local
113 table = r2057_rev4_init[0]; in r2057_upload_inittabs()
118 table = r2057_rev5_init[0]; in r2057_upload_inittabs()
121 table = r2057_rev5a_init[0]; in r2057_upload_inittabs()
125 table = r2057_rev7_init[0]; in r2057_upload_inittabs()
128 table = r2057_rev8_init[0]; in r2057_upload_inittabs()
133 if (table) { in r2057_upload_inittabs()
135 pr_info("radio_write 0x%X ", *table); in r2057_upload_inittabs()
136 table++; in r2057_upload_inittabs()
137 pr_info("0x%X\n", *table); in r2057_upload_inittabs()
[all …]
Dtables.c379 u16 b43_ofdmtab_read16(struct b43_wldev *dev, u16 table, u16 offset) in b43_ofdmtab_read16() argument
384 addr = table + offset; in b43_ofdmtab_read16()
399 void b43_ofdmtab_write16(struct b43_wldev *dev, u16 table, in b43_ofdmtab_write16() argument
405 addr = table + offset; in b43_ofdmtab_write16()
416 u32 b43_ofdmtab_read32(struct b43_wldev *dev, u16 table, u16 offset) in b43_ofdmtab_read32() argument
422 addr = table + offset; in b43_ofdmtab_read32()
437 void b43_ofdmtab_write32(struct b43_wldev *dev, u16 table, in b43_ofdmtab_write32() argument
443 addr = table + offset; in b43_ofdmtab_write32()
456 u16 b43_gtab_read(struct b43_wldev *dev, u16 table, u16 offset) in b43_gtab_read() argument
458 b43_phy_write(dev, B43_PHY_GTABCTL, table + offset); in b43_gtab_read()
[all …]
/drivers/staging/android/ion/
Dion_chunk_heap.c43 struct sg_table *table; in ion_chunk_heap_allocate() local
58 table = kzalloc(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 = kzalloc(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.c147 struct sg_table *table; in ion_system_heap_allocate() local
173 table = kzalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_system_heap_allocate()
174 if (!table) in ion_system_heap_allocate()
177 ret = sg_alloc_table(table, i, GFP_KERNEL); in ion_system_heap_allocate()
181 sg = table->sgl; in ion_system_heap_allocate()
190 buffer->priv_virt = table; in ion_system_heap_allocate()
193 kfree(table); in ion_system_heap_allocate()
208 struct sg_table *table = buffer->sg_table; in ion_system_heap_free() local
219 for_each_sg(table->sgl, sg, table->nents, i) in ion_system_heap_free()
222 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/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()
52 if (divider->table) in _get_maxdiv()
53 return _get_table_maxdiv(divider->table); in _get_maxdiv()
57 static unsigned int _get_table_div(const struct clk_div_table *table, in _get_table_div() argument
62 for (clkt = table; clkt->div; clkt++) in _get_table_div()
74 if (divider->table) in _get_div()
75 return _get_table_div(divider->table, val); in _get_div()
79 static unsigned int _get_table_val(const struct clk_div_table *table, in _get_table_val() argument
84 for (clkt = table; clkt->div; clkt++) in _get_table_val()
[all …]
/drivers/video/adf/
Dadf_memblock.c30 struct sg_table *table; in adf_memblock_map() local
33 table = kzalloc(sizeof(*table), GFP_KERNEL); in adf_memblock_map()
34 if (!table) in adf_memblock_map()
37 ret = sg_alloc_table(table, 1, GFP_KERNEL); in adf_memblock_map()
41 sg_set_page(table->sgl, page, attach->dmabuf->size, 0); in adf_memblock_map()
43 nents = dma_map_sg(attach->dev, table->sgl, 1, direction); in adf_memblock_map()
49 return table; in adf_memblock_map()
52 sg_free_table(table); in adf_memblock_map()
54 kfree(table); in adf_memblock_map()
59 struct sg_table *table, enum dma_data_direction direction) in adf_memblock_unmap() argument
[all …]
/drivers/rapidio/switches/
Dtsi568.c37 u16 table, u16 route_destid, u8 route_port) in tsi568_route_add_entry() argument
39 if (table == RIO_GLOBAL_TABLE) { in tsi568_route_add_entry()
46 SPP_ROUTE_CFG_DESTID(table), in tsi568_route_add_entry()
49 SPP_ROUTE_CFG_PORT(table), route_port); in tsi568_route_add_entry()
59 u16 table, u16 route_destid, u8 *route_port) in tsi568_route_get_entry() argument
64 if (table == RIO_GLOBAL_TABLE) { in tsi568_route_get_entry()
71 SPP_ROUTE_CFG_DESTID(table), in tsi568_route_get_entry()
74 SPP_ROUTE_CFG_PORT(table), &result); in tsi568_route_get_entry()
86 u16 table) in tsi568_route_clr_table() argument
93 if (table == RIO_GLOBAL_TABLE) { in tsi568_route_clr_table()
[all …]
/drivers/infiniband/hw/cxgb4/
Did_table.c51 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last); in c4iw_id_alloc()
53 obj = find_first_zero_bit(alloc->table, alloc->max); in c4iw_id_alloc()
62 set_bit(obj, alloc->table); in c4iw_id_alloc()
79 clear_bit(obj, alloc->table); in c4iw_id_free()
96 alloc->table = kmalloc(BITS_TO_LONGS(num) * sizeof(long), in c4iw_id_table_alloc()
98 if (!alloc->table) in c4iw_id_table_alloc()
101 bitmap_zero(alloc->table, num); in c4iw_id_table_alloc()
104 set_bit(i, alloc->table); in c4iw_id_table_alloc()
111 kfree(alloc->table); in c4iw_id_table_free()
/drivers/regulator/
Dtps65023-regulator.c131 const unsigned int *table; member
247 tps->desc[i].volt_table = info->table; in tps_65023_probe()
320 .table = DCDC_FIXED_3300000_VSEL_table,
325 .table = DCDC_FIXED_1800000_VSEL_table,
330 .table = VCORE_VSEL_table,
335 .table = TPS65020_LDO_VSEL_table,
340 .table = TPS65020_LDO_VSEL_table,
348 .table = DCDC_FIXED_3300000_VSEL_table,
353 .table = DCDC_FIXED_1800000_VSEL_table,
358 .table = VCORE_VSEL_table,
[all …]
/drivers/sh/clk/
Dcpg.c94 struct clk_div_mult_table *table = clk_to_div_mult_table(clk); in sh_clk_div_recalc() local
97 clk_rate_table_build(clk, clk->freq_table, table->nr_divisors, in sh_clk_div_recalc()
98 table, clk->arch_flags ? &clk->arch_flags : NULL); in sh_clk_div_recalc()
204 struct clk_div_table *table, struct sh_clk_ops *ops) in sh_clk_div_register_ops() argument
208 int nr_divs = table->div_mult_table->nr_divisors; in sh_clk_div_register_ops()
224 clkp->priv = table; in sh_clk_div_register_ops()
258 struct clk_div_mult_table *table = clk_to_div_mult_table(clk); in sh_clk_div6_set_parent() local
283 clk_rate_table_build(clk, clk->freq_table, table->nr_divisors, in sh_clk_div6_set_parent()
284 table, NULL); in sh_clk_div6_set_parent()
315 struct clk_div_mult_table *table = clk_to_div_mult_table(clk); in sh_clk_div4_set_parent() local
[all …]
/drivers/remoteproc/
Dste_modem_rproc.c53 struct ste_toc_entry table[SPROC_MAX_TOC_ENTRIES]; member
75 toc->table[i].start != 0xffffffff; i++) { in sproc_find_rsc_entry()
76 if (!strncmp(toc->table[i].name, SPROC_RESOURCE_NAME, in sproc_find_rsc_entry()
77 sizeof(toc->table[i].name))) in sproc_find_rsc_entry()
78 return &toc->table[i]; in sproc_find_rsc_entry()
90 struct resource_table *table; in sproc_find_rsc_table() local
102 table = (void *)(fw->data + entry->start); in sproc_find_rsc_table()
115 if (table->ver != 1) { in sproc_find_rsc_table()
116 sproc_err(sproc, "unsupported fw ver: %d\n", table->ver); in sproc_find_rsc_table()
121 if (table->reserved[0] || table->reserved[1]) { in sproc_find_rsc_table()
[all …]

12345678910>>...13