Lines Matching defs:table

37  * @entries:	table of tables of ports currently offloaded
145 const struct udp_tunnel_nic_table_info *table;
152 table = &dev->udp_tunnel_nic_info->tables[i];
156 for (j = 0; j < table->n_entries; j++)
165 __udp_tunnel_nic_get_port(struct net_device *dev, unsigned int table,
172 entry = &utn->entries[table][idx];
179 __udp_tunnel_nic_set_port_priv(struct net_device *dev, unsigned int table,
182 dev->udp_tunnel_nic->entries[table][idx].hw_priv = priv;
211 unsigned int table, unsigned int idx)
217 entry = &utn->entries[table][idx];
223 err = dev->udp_tunnel_nic_info->set_port(dev, table, idx, &ti);
225 err = dev->udp_tunnel_nic_info->unset_port(dev, table, idx,
258 /* Find something that needs sync in this table */
267 netdev_warn(dev, "UDP tunnel port sync failed for table %d: %d\n",
320 udp_tunnel_nic_table_is_capable(const struct udp_tunnel_nic_table_info *table,
323 return table->tunnel_types & ti->type;
368 unsigned int table, unsigned int idx, int use_cnt_adj)
370 struct udp_tunnel_nic_table_entry *entry = &utn->entries[table][idx];
406 unsigned int table, unsigned int idx,
409 struct udp_tunnel_nic_table_entry *entry = &utn->entries[table][idx];
419 udp_tunnel_nic_entry_adj(utn, table, idx, use_cnt_adj);
432 const struct udp_tunnel_nic_table_info *table;
436 table = &dev->udp_tunnel_nic_info->tables[i];
437 if (!udp_tunnel_nic_table_is_capable(table, ti))
440 for (j = 0; j < table->n_entries; j++)
467 const struct udp_tunnel_nic_table_info *table;
471 table = &dev->udp_tunnel_nic_info->tables[i];
472 if (!udp_tunnel_nic_table_is_capable(table, ti))
475 for (j = 0; j < table->n_entries; j++) {
490 /* The different table may still fit this port in, but there
585 __udp_tunnel_nic_dump_size(struct net_device *dev, unsigned int table)
597 for (j = 0; j < info->tables[table].n_entries; j++) {
598 if (!udp_tunnel_nic_entry_is_present(&utn->entries[table][j]))
610 __udp_tunnel_nic_dump_write(struct net_device *dev, unsigned int table,
622 for (j = 0; j < info->tables[table].n_entries; j++) {
623 if (!udp_tunnel_nic_entry_is_present(&utn->entries[table][j]))
629 utn->entries[table][j].port) ||
631 ilog2(utn->entries[table][j].type)))
840 /* For a shared table remove this dev from the list of sharing devices