Home
last modified time | relevance | path

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

1234567

/drivers/net/mlx4/
Dport.c46 void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table) in mlx4_init_mac_table() argument
50 mutex_init(&table->mutex); in mlx4_init_mac_table()
52 table->entries[i] = 0; in mlx4_init_mac_table()
53 table->refs[i] = 0; in mlx4_init_mac_table()
55 table->max = 1 << dev->caps.log_num_macs; in mlx4_init_mac_table()
56 table->total = 0; in mlx4_init_mac_table()
59 void mlx4_init_vlan_table(struct mlx4_dev *dev, struct mlx4_vlan_table *table) in mlx4_init_vlan_table() argument
63 mutex_init(&table->mutex); in mlx4_init_vlan_table()
65 table->entries[i] = 0; in mlx4_init_vlan_table()
66 table->refs[i] = 0; in mlx4_init_vlan_table()
[all …]
Dicm.c253 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, int obj) in mlx4_table_get() argument
255 int i = (obj & (table->num_obj - 1)) / (MLX4_TABLE_CHUNK_SIZE / table->obj_size); in mlx4_table_get()
258 mutex_lock(&table->mutex); in mlx4_table_get()
260 if (table->icm[i]) { in mlx4_table_get()
261 ++table->icm[i]->refcount; in mlx4_table_get()
265 table->icm[i] = mlx4_alloc_icm(dev, MLX4_TABLE_CHUNK_SIZE >> PAGE_SHIFT, in mlx4_table_get()
266 (table->lowmem ? GFP_KERNEL : GFP_HIGHUSER) | in mlx4_table_get()
267 __GFP_NOWARN, table->coherent); in mlx4_table_get()
268 if (!table->icm[i]) { in mlx4_table_get()
273 if (mlx4_MAP_ICM(dev, table->icm[i], table->virt + in mlx4_table_get()
[all …]
Dicm.h74 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, int obj);
75 void mlx4_table_put(struct mlx4_dev *dev, struct mlx4_icm_table *table, int obj);
76 int mlx4_table_get_range(struct mlx4_dev *dev, struct mlx4_icm_table *table,
78 void mlx4_table_put_range(struct mlx4_dev *dev, struct mlx4_icm_table *table,
80 int mlx4_init_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table,
83 void mlx4_cleanup_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table);
84 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, int obj);
85 void mlx4_table_put(struct mlx4_dev *dev, struct mlx4_icm_table *table, int obj);
86 void *mlx4_table_find(struct mlx4_icm_table *table, int obj, dma_addr_t *dma_handle);
87 int mlx4_table_get_range(struct mlx4_dev *dev, struct mlx4_icm_table *table,
[all …]
/drivers/media/video/
Dks0127.c220 u8 *table = reg_defaults; in init_reg_defaults() local
226 table[KS_CMDA] = 0x2c; /* VSE=0, CCIR 601, autodetect standard */ in init_reg_defaults()
227 table[KS_CMDB] = 0x12; /* VALIGN=0, AGC control and input */ in init_reg_defaults()
228 table[KS_CMDC] = 0x00; /* Test options */ in init_reg_defaults()
230 table[KS_CMDD] = 0x01; in init_reg_defaults()
231 table[KS_HAVB] = 0x00; /* HAV Start Control */ in init_reg_defaults()
232 table[KS_HAVE] = 0x00; /* HAV End Control */ in init_reg_defaults()
233 table[KS_HS1B] = 0x10; /* HS1 Start Control */ in init_reg_defaults()
234 table[KS_HS1E] = 0x00; /* HS1 End Control */ in init_reg_defaults()
235 table[KS_HS2B] = 0x00; /* HS2 Start Control */ in init_reg_defaults()
[all …]
/drivers/acpi/acpica/
Dtbutils.c73 struct acpi_table_header *table; in acpi_tb_check_xsdt() local
80 table = acpi_os_map_memory(address, sizeof(struct acpi_table_header)); in acpi_tb_check_xsdt()
81 if (!table) in acpi_tb_check_xsdt()
84 length = table->length; in acpi_tb_check_xsdt()
85 acpi_os_unmap_memory(table, sizeof(struct acpi_table_header)); in acpi_tb_check_xsdt()
89 table = acpi_os_map_memory(address, length); in acpi_tb_check_xsdt()
90 if (!table) in acpi_tb_check_xsdt()
95 (u32) ((table->length - in acpi_tb_check_xsdt()
98 ACPI_CAST_PTR(u8, table) + sizeof(struct acpi_table_header); in acpi_tb_check_xsdt()
107 acpi_os_unmap_memory(table, length); in acpi_tb_check_xsdt()
[all …]
Dexconfig.c135 struct acpi_table_header *table; in acpi_ex_load_table_op() local
236 status = acpi_get_table_by_index(table_index, &table); in acpi_ex_load_table_op()
240 table->signature, table->oem_id, in acpi_ex_load_table_op()
241 table->oem_table_id)); in acpi_ex_load_table_op()
247 (void)acpi_gbl_table_handler(ACPI_TABLE_EVENT_LOAD, table, in acpi_ex_load_table_op()
282 struct acpi_table_header *table; in acpi_ex_load_op() local
321 table = acpi_os_map_memory(obj_desc->region.address, in acpi_ex_load_op()
323 if (!table) { in acpi_ex_load_op()
327 length = table->length; in acpi_ex_load_op()
328 acpi_os_unmap_memory(table, sizeof(struct acpi_table_header)); in acpi_ex_load_op()
[all …]
Dtbfadt.c187 struct acpi_table_header *table; in acpi_tb_parse_fadt() local
198 table = in acpi_tb_parse_fadt()
201 if (!table) { in acpi_tb_parse_fadt()
209 (void)acpi_tb_verify_checksum(table, length); in acpi_tb_parse_fadt()
213 acpi_tb_create_local_fadt(table, length); in acpi_tb_parse_fadt()
217 acpi_os_unmap_memory(table, length); in acpi_tb_parse_fadt()
244 void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length) in acpi_tb_create_local_fadt() argument
256 table->revision, (unsigned)length, in acpi_tb_create_local_fadt()
266 ACPI_MEMCPY(&acpi_gbl_FADT, table, in acpi_tb_create_local_fadt()
Dnsparse.c76 struct acpi_table_header *table; in acpi_ns_one_complete_parse() local
101 status = acpi_get_table_by_index(table_index, &table); in acpi_ns_one_complete_parse()
110 if (table->length < sizeof(struct acpi_table_header)) { in acpi_ns_one_complete_parse()
113 aml_start = (u8 *) table + sizeof(struct acpi_table_header); in acpi_ns_one_complete_parse()
114 aml_length = table->length - sizeof(struct acpi_table_header); in acpi_ns_one_complete_parse()
Dtbxface.c438 acpi_get_table_by_index(u32 table_index, struct acpi_table_header **table) in ACPI_EXPORT_SYMBOL()
446 if (!table) { in ACPI_EXPORT_SYMBOL()
472 *table = acpi_gbl_root_table_list.tables[table_index].pointer; in ACPI_EXPORT_SYMBOL()
494 struct acpi_table_header *table; in ACPI_EXPORT_SYMBOL() local
524 &table); in ACPI_EXPORT_SYMBOL()
525 if (ACPI_SUCCESS(status) && table) { in ACPI_EXPORT_SYMBOL()
532 table; in ACPI_EXPORT_SYMBOL()
534 table->length; in ACPI_EXPORT_SYMBOL()
539 acpi_tb_print_table_header(0, table); in ACPI_EXPORT_SYMBOL()
/drivers/infiniband/hw/mthca/
Dmthca_memfree.c221 int mthca_table_get(struct mthca_dev *dev, struct mthca_icm_table *table, int obj) in mthca_table_get() argument
223 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], table->virt + i * MTHCA_TABLE_CHUNK_SIZE, in mthca_table_get()
[all …]
Dmthca_allocator.c47 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last); in mthca_alloc()
50 obj = find_first_zero_bit(alloc->table, alloc->max); in mthca_alloc()
54 set_bit(obj, alloc->table); in mthca_alloc()
72 clear_bit(obj, alloc->table); in mthca_free()
93 alloc->table = kmalloc(BITS_TO_LONGS(num) * sizeof (long), in mthca_alloc_init()
95 if (!alloc->table) in mthca_alloc_init()
98 bitmap_zero(alloc->table, num); in mthca_alloc_init()
100 set_bit(i, alloc->table); in mthca_alloc_init()
107 kfree(alloc->table); in mthca_alloc_cleanup()
Dmthca_memfree.h90 void mthca_free_icm_table(struct mthca_dev *dev, struct mthca_icm_table *table);
91 int mthca_table_get(struct mthca_dev *dev, struct mthca_icm_table *table, int obj);
92 void mthca_table_put(struct mthca_dev *dev, struct mthca_icm_table *table, int obj);
93 void *mthca_table_find(struct mthca_icm_table *table, int obj, dma_addr_t *dma_handle);
94 int mthca_table_get_range(struct mthca_dev *dev, struct mthca_icm_table *table,
96 void mthca_table_put_range(struct mthca_dev *dev, struct mthca_icm_table *table,
/drivers/cpufreq/
Dfreq_table.c25 struct cpufreq_frequency_table *table) in cpufreq_frequency_table_cpuinfo() argument
31 for (i=0; (table[i].frequency != CPUFREQ_TABLE_END); i++) { in cpufreq_frequency_table_cpuinfo()
32 unsigned int freq = table[i].frequency; in cpufreq_frequency_table_cpuinfo()
39 i, freq, table[i].index); in cpufreq_frequency_table_cpuinfo()
58 struct cpufreq_frequency_table *table) in cpufreq_frequency_table_verify() argument
73 for (i=0; (table[i].frequency != CPUFREQ_TABLE_END); i++) { in cpufreq_frequency_table_verify()
74 unsigned int freq = table[i].frequency; in cpufreq_frequency_table_verify()
98 struct cpufreq_frequency_table *table, in cpufreq_frequency_table_target() argument
128 for (i=0; (table[i].frequency != CPUFREQ_TABLE_END); i++) { in cpufreq_frequency_table_target()
129 unsigned int freq = table[i].frequency; in cpufreq_frequency_table_target()
[all …]
Dcpufreq_stats.c188 struct cpufreq_frequency_table *table) in cpufreq_stats_create_table() argument
212 for (i=0; table[i].frequency != CPUFREQ_TABLE_END; i++) { in cpufreq_stats_create_table()
213 unsigned int freq = table[i].frequency; in cpufreq_stats_create_table()
236 for (i = 0; table[i].frequency != CPUFREQ_TABLE_END; i++) { in cpufreq_stats_create_table()
237 unsigned int freq = table[i].frequency; in cpufreq_stats_create_table()
264 struct cpufreq_frequency_table *table; in cpufreq_stat_notifier_policy() local
268 table = cpufreq_frequency_get_table(cpu); in cpufreq_stat_notifier_policy()
269 if (!table) in cpufreq_stat_notifier_policy()
271 if ((ret = cpufreq_stats_create_table(policy, table))) in cpufreq_stat_notifier_policy()
/drivers/gpu/drm/
Ddrm_hashtab.c46 ht->table = NULL; in drm_ht_create()
47 ht->use_vmalloc = ((ht->size * sizeof(*ht->table)) > PAGE_SIZE); in drm_ht_create()
49 ht->table = drm_calloc(ht->size, sizeof(*ht->table), in drm_ht_create()
52 if (!ht->table) { in drm_ht_create()
54 ht->table = vmalloc(ht->size*sizeof(*ht->table)); in drm_ht_create()
56 if (!ht->table) { in drm_ht_create()
61 INIT_HLIST_HEAD(&ht->table[i]); in drm_ht_create()
76 h_list = &ht->table[hashed_key]; in drm_ht_verbose_list()
92 h_list = &ht->table[hashed_key]; in drm_ht_find_key()
113 h_list = &ht->table[hashed_key]; in drm_ht_insert_item()
[all …]
/drivers/net/wireless/b43/
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 …]
Dtables_nphy.h69 #define B43_NTAB8(table, offset) (((table) << 10) | (offset) | B43_NTAB_8BIT) argument
70 #define B43_NTAB16(table, offset) (((table) << 10) | (offset) | B43_NTAB_16BIT) argument
71 #define B43_NTAB32(table, offset) (((table) << 10) | (offset) | B43_NTAB_32BIT) argument
/drivers/md/
Ddm-ioctl.c222 struct dm_table *table; in __hash_remove() local
229 table = dm_get_table(hc->md); in __hash_remove()
230 if (table) { in __hash_remove()
231 dm_table_event(table); in __hash_remove()
232 dm_table_put(table); in __hash_remove()
283 struct dm_table *table; in dm_hash_rename() local
330 table = dm_get_table(hc->md); in dm_hash_rename()
331 if (table) { in dm_hash_rename()
332 dm_table_event(table); in dm_hash_rename()
333 dm_table_put(table); in dm_hash_rename()
[all …]
/drivers/infiniband/hw/amso1100/
Dc2_pd.c48 obj = find_next_zero_bit(c2dev->pd_table.table, c2dev->pd_table.max, in c2_pd_alloc()
51 obj = find_first_zero_bit(c2dev->pd_table.table, in c2_pd_alloc()
55 __set_bit(obj, c2dev->pd_table.table); in c2_pd_alloc()
68 __clear_bit(pd->pd_id, c2dev->pd_table.table); in c2_pd_free()
78 c2dev->pd_table.table = kmalloc(BITS_TO_LONGS(c2dev->props.max_pd) * in c2_init_pd_table()
80 if (!c2dev->pd_table.table) in c2_init_pd_table()
82 bitmap_zero(c2dev->pd_table.table, c2dev->props.max_pd); in c2_init_pd_table()
88 kfree(c2dev->pd_table.table); in c2_cleanup_pd_table()
/drivers/rapidio/switches/
Dtsi500.c19 tsi500_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, u16 table, u16 route_desti… in tsi500_route_add_entry() argument
25 if (table == 0xff) { in tsi500_route_add_entry()
32 rio_mport_read_config_32(mport, destid, hopcount, offset + (0x20000*table), &result); in tsi500_route_add_entry()
34 …rio_mport_write_config_32(mport, destid, hopcount, offset + (0x20000*table), result | (route_port … in tsi500_route_add_entry()
41 tsi500_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, u16 table, u16 route_desti… in tsi500_route_get_entry() argument
47 if (table == 0xff) in tsi500_route_get_entry()
50 rio_mport_read_config_32(mport, destid, hopcount, offset + (0x20000*table), &result); in tsi500_route_get_entry()
/drivers/char/agp/
Duninorth-agp.c377 char *table; in uninorth_create_gatt_table() local
390 table = NULL; in uninorth_create_gatt_table()
400 table = (char *) __get_free_pages(GFP_KERNEL, page_order); in uninorth_create_gatt_table()
402 if (table == NULL) { in uninorth_create_gatt_table()
408 } while (!table && (i < bridge->driver->num_aperture_sizes)); in uninorth_create_gatt_table()
410 if (table == NULL) in uninorth_create_gatt_table()
413 table_end = table + ((PAGE_SIZE * (1 << page_order)) - 1); in uninorth_create_gatt_table()
415 for (page = virt_to_page(table); page <= virt_to_page(table_end); page++) in uninorth_create_gatt_table()
418 bridge->gatt_table_real = (u32 *) table; in uninorth_create_gatt_table()
419 bridge->gatt_table = (u32 *)table; in uninorth_create_gatt_table()
[all …]
/drivers/acpi/
Dtables.c243 struct acpi_table_header *table = NULL; in acpi_table_parse() local
249 acpi_get_table(id, acpi_apic_instance, &table); in acpi_table_parse()
251 acpi_get_table(id, 0, &table); in acpi_table_parse()
253 if (table) { in acpi_table_parse()
254 handler(table); in acpi_table_parse()
267 struct acpi_table_header *table = NULL; in check_multiple_madt() local
269 acpi_get_table(ACPI_SIG_MADT, 2, &table); in check_multiple_madt()
270 if (table) { in check_multiple_madt()
/drivers/pci/hotplug/
Dacpiphp_ibm.c148 char *table; in ibm_slot_from_id() local
150 size = ibm_get_table_from_acpi(&table); in ibm_slot_from_id()
151 des = (union apci_descriptor *)table; in ibm_slot_from_id()
155 des = (union apci_descriptor *)&table[ind += des->header.len]; in ibm_slot_from_id()
158 des = (union apci_descriptor *)&table[ind += des->generic.len]; in ibm_slot_from_id()
169 kfree(table); in ibm_slot_from_id()
371 char *table = NULL; in ibm_read_apci_table() local
376 bytes_read = ibm_get_table_from_acpi(&table); in ibm_read_apci_table()
378 memcpy(buffer, table, bytes_read); in ibm_read_apci_table()
379 kfree(table); in ibm_read_apci_table()
/drivers/parport/
Dprocfs.c34 static int do_active_device(ctl_table *table, int write, struct file *filp, in do_active_device() argument
37 struct parport *port = (struct parport *)table->extra1; in do_active_device()
71 static int do_autoprobe(ctl_table *table, int write, struct file *filp, in do_autoprobe() argument
74 struct parport_device_info *info = table->extra2; in do_autoprobe()
113 static int do_hardware_base_addr (ctl_table *table, int write, in do_hardware_base_addr() argument
117 struct parport *port = (struct parport *)table->extra1; in do_hardware_base_addr()
141 static int do_hardware_irq (ctl_table *table, int write, in do_hardware_irq() argument
145 struct parport *port = (struct parport *)table->extra1; in do_hardware_irq()
169 static int do_hardware_dma (ctl_table *table, int write, in do_hardware_dma() argument
173 struct parport *port = (struct parport *)table->extra1; in do_hardware_dma()
[all …]
/drivers/infiniband/core/
Dcache.c47 u16 table[0]; member
52 union ib_gid table[0]; member
91 *gid = cache->table[index]; in ib_get_cached_gid()
118 if (!memcmp(gid, &cache->table[i], sizeof *gid)) { in ib_find_cached_gid()
153 *pkey = cache->table[index]; in ib_get_cached_pkey()
181 if ((cache->table[i] & 0x7fff) == (pkey & 0x7fff)) { in ib_find_cached_pkey()
232 sizeof *pkey_cache->table, GFP_KERNEL); in ib_cache_update()
239 sizeof *gid_cache->table, GFP_KERNEL); in ib_cache_update()
246 ret = ib_query_pkey(device, port, i, pkey_cache->table + i); in ib_cache_update()
255 ret = ib_query_gid(device, port, i, gid_cache->table + i); in ib_cache_update()

1234567