ofdpa 194 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa; ofdpa 741 drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa_flow_tbl_find(const struct ofdpa *ofdpa, ofdpa 747 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_for_each_possible(ofdpa->flow_tbl, found, ofdpa 759 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = ofdpa_port->ofdpa; ofdpa 766 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->flow_tbl_lock, lock_flags); ofdpa 768 drivers/net/ethernet/rocker/rocker_ofdpa.c found = ofdpa_flow_tbl_find(ofdpa, match); ofdpa 778 drivers/net/ethernet/rocker/rocker_ofdpa.c found->cookie = ofdpa->flow_tbl_next_cookie++; ofdpa 782 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_add(ofdpa->flow_tbl, &found->entry, found->key_crc32); ofdpa 783 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->flow_tbl_lock, lock_flags); ofdpa 794 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = ofdpa_port->ofdpa; ofdpa 802 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->flow_tbl_lock, lock_flags); ofdpa 804 drivers/net/ethernet/rocker/rocker_ofdpa.c found = ofdpa_flow_tbl_find(ofdpa, match); ofdpa 811 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->flow_tbl_lock, lock_flags); ofdpa 1048 drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa_group_tbl_find(const struct ofdpa *ofdpa, ofdpa 1053 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_for_each_possible(ofdpa->group_tbl, found, ofdpa 1078 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = ofdpa_port->ofdpa; ofdpa 1082 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->group_tbl_lock, lock_flags); ofdpa 1084 drivers/net/ethernet/rocker/rocker_ofdpa.c found = ofdpa_group_tbl_find(ofdpa, match); ofdpa 1096 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_add(ofdpa->group_tbl, &found->entry, found->group_id); ofdpa 1098 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->group_tbl_lock, lock_flags); ofdpa 1109 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = ofdpa_port->ofdpa; ofdpa 1114 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->group_tbl_lock, lock_flags); ofdpa 1116 drivers/net/ethernet/rocker/rocker_ofdpa.c found = ofdpa_group_tbl_find(ofdpa, match); ofdpa 1123 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->group_tbl_lock, lock_flags); ofdpa 1219 drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa_neigh_tbl_find(const struct ofdpa *ofdpa, __be32 ip_addr) ofdpa 1223 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_for_each_possible(ofdpa->neigh_tbl, found, ofdpa 1231 drivers/net/ethernet/rocker/rocker_ofdpa.c static void ofdpa_neigh_add(struct ofdpa *ofdpa, ofdpa 1234 drivers/net/ethernet/rocker/rocker_ofdpa.c entry->index = ofdpa->neigh_tbl_next_index++; ofdpa 1236 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_add(ofdpa->neigh_tbl, &entry->entry, ofdpa 1262 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = ofdpa_port->ofdpa; ofdpa 1280 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->neigh_tbl_lock, lock_flags); ofdpa 1282 drivers/net/ethernet/rocker/rocker_ofdpa.c found = ofdpa_neigh_tbl_find(ofdpa, ip_addr); ofdpa 1293 drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa_neigh_add(ofdpa, entry); ofdpa 1304 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->neigh_tbl_lock, lock_flags); ofdpa 1379 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = ofdpa_port->ofdpa; ofdpa 1393 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->neigh_tbl_lock, lock_flags); ofdpa 1395 drivers/net/ethernet/rocker/rocker_ofdpa.c found = ofdpa_neigh_tbl_find(ofdpa, ip_addr); ofdpa 1404 drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa_neigh_add(ofdpa, entry); ofdpa 1418 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->neigh_tbl_lock, lock_flags); ofdpa 1434 drivers/net/ethernet/rocker/rocker_ofdpa.c static struct ofdpa_port *ofdpa_port_get(const struct ofdpa *ofdpa, ofdpa 1439 drivers/net/ethernet/rocker/rocker_ofdpa.c rocker_port = ofdpa->rocker->ports[port_index]; ofdpa 1447 drivers/net/ethernet/rocker/rocker_ofdpa.c const struct ofdpa *ofdpa = ofdpa_port->ofdpa; ofdpa 1448 drivers/net/ethernet/rocker/rocker_ofdpa.c unsigned int port_count = ofdpa->rocker->port_count; ofdpa 1465 drivers/net/ethernet/rocker/rocker_ofdpa.c p = ofdpa_port_get(ofdpa, i); ofdpa 1493 drivers/net/ethernet/rocker/rocker_ofdpa.c const struct ofdpa *ofdpa = ofdpa_port->ofdpa; ofdpa 1494 drivers/net/ethernet/rocker/rocker_ofdpa.c unsigned int port_count = ofdpa->rocker->port_count; ofdpa 1524 drivers/net/ethernet/rocker/rocker_ofdpa.c p = ofdpa_port_get(ofdpa, i); ofdpa 1884 drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa_fdb_tbl_find(const struct ofdpa *ofdpa, ofdpa 1889 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_for_each_possible(ofdpa->fdb_tbl, found, entry, match->key_crc32) ofdpa 1900 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = ofdpa_port->ofdpa; ofdpa 1917 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->fdb_tbl_lock, lock_flags); ofdpa 1919 drivers/net/ethernet/rocker/rocker_ofdpa.c found = ofdpa_fdb_tbl_find(ofdpa, fdb); ofdpa 1928 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_add(ofdpa->fdb_tbl, &fdb->entry, ofdpa 1932 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->fdb_tbl_lock, lock_flags); ofdpa 1948 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = ofdpa_port->ofdpa; ofdpa 1961 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->fdb_tbl_lock, lock_flags); ofdpa 1963 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_for_each_safe(ofdpa->fdb_tbl, bkt, tmp, found, entry) { ofdpa 1977 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->fdb_tbl_lock, lock_flags); ofdpa 1984 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = from_timer(ofdpa, t, fdb_cleanup_timer); ofdpa 1988 drivers/net/ethernet/rocker/rocker_ofdpa.c unsigned long next_timer = jiffies + ofdpa->ageing_time; ofdpa 1995 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->fdb_tbl_lock, lock_flags); ofdpa 1997 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_for_each_safe(ofdpa->fdb_tbl, bkt, tmp, entry, entry) { ofdpa 2012 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->fdb_tbl_lock, lock_flags); ofdpa 2014 drivers/net/ethernet/rocker/rocker_ofdpa.c mod_timer(&ofdpa->fdb_cleanup_timer, round_jiffies_up(next_timer)); ofdpa 2212 drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa_internal_vlan_tbl_find(const struct ofdpa *ofdpa, int ifindex) ofdpa 2216 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_for_each_possible(ofdpa->internal_vlan_tbl, found, ofdpa 2228 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = ofdpa_port->ofdpa; ofdpa 2240 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->internal_vlan_tbl_lock, lock_flags); ofdpa 2242 drivers/net/ethernet/rocker/rocker_ofdpa.c found = ofdpa_internal_vlan_tbl_find(ofdpa, ifindex); ofdpa 2249 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_add(ofdpa->internal_vlan_tbl, &found->entry, found->ifindex); ofdpa 2252 drivers/net/ethernet/rocker/rocker_ofdpa.c if (test_and_set_bit(i, ofdpa->internal_vlan_bitmap)) ofdpa 2262 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->internal_vlan_tbl_lock, lock_flags); ofdpa 2316 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = ofdpa_port->ofdpa; ofdpa 2321 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->internal_vlan_tbl_lock, lock_flags); ofdpa 2323 drivers/net/ethernet/rocker/rocker_ofdpa.c found = ofdpa_internal_vlan_tbl_find(ofdpa, ifindex); ofdpa 2333 drivers/net/ethernet/rocker/rocker_ofdpa.c clear_bit(bit, ofdpa->internal_vlan_bitmap); ofdpa 2339 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->internal_vlan_tbl_lock, lock_flags); ofdpa 2348 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = rocker->wpriv; ofdpa 2350 drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa->rocker = rocker; ofdpa 2352 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_init(ofdpa->flow_tbl); ofdpa 2353 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_init(&ofdpa->flow_tbl_lock); ofdpa 2355 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_init(ofdpa->group_tbl); ofdpa 2356 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_init(&ofdpa->group_tbl_lock); ofdpa 2358 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_init(ofdpa->fdb_tbl); ofdpa 2359 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_init(&ofdpa->fdb_tbl_lock); ofdpa 2361 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_init(ofdpa->internal_vlan_tbl); ofdpa 2362 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_init(&ofdpa->internal_vlan_tbl_lock); ofdpa 2364 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_init(ofdpa->neigh_tbl); ofdpa 2365 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_init(&ofdpa->neigh_tbl_lock); ofdpa 2367 drivers/net/ethernet/rocker/rocker_ofdpa.c timer_setup(&ofdpa->fdb_cleanup_timer, ofdpa_fdb_cleanup, 0); ofdpa 2368 drivers/net/ethernet/rocker/rocker_ofdpa.c mod_timer(&ofdpa->fdb_cleanup_timer, jiffies); ofdpa 2370 drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa->ageing_time = BR_DEFAULT_AGEING_TIME; ofdpa 2377 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = rocker->wpriv; ofdpa 2388 drivers/net/ethernet/rocker/rocker_ofdpa.c del_timer_sync(&ofdpa->fdb_cleanup_timer); ofdpa 2391 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->flow_tbl_lock, flags); ofdpa 2392 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_for_each_safe(ofdpa->flow_tbl, bkt, tmp, flow_entry, entry) ofdpa 2394 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->flow_tbl_lock, flags); ofdpa 2396 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->group_tbl_lock, flags); ofdpa 2397 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_for_each_safe(ofdpa->group_tbl, bkt, tmp, group_entry, entry) ofdpa 2399 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->group_tbl_lock, flags); ofdpa 2401 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->fdb_tbl_lock, flags); ofdpa 2402 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_for_each_safe(ofdpa->fdb_tbl, bkt, tmp, fdb_entry, entry) ofdpa 2404 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->fdb_tbl_lock, flags); ofdpa 2406 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->internal_vlan_tbl_lock, flags); ofdpa 2407 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_for_each_safe(ofdpa->internal_vlan_tbl, bkt, ofdpa 2410 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->internal_vlan_tbl_lock, flags); ofdpa 2412 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->neigh_tbl_lock, flags); ofdpa 2413 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_for_each_safe(ofdpa->neigh_tbl, bkt, tmp, neigh_entry, entry) ofdpa 2415 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->neigh_tbl_lock, flags); ofdpa 2422 drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa_port->ofdpa = rocker_port->rocker->wpriv; ofdpa 2527 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = ofdpa_port->ofdpa; ofdpa 2531 drivers/net/ethernet/rocker/rocker_ofdpa.c if (ofdpa_port->ageing_time < ofdpa->ageing_time) ofdpa 2532 drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa->ageing_time = ofdpa_port->ageing_time; ofdpa 2533 drivers/net/ethernet/rocker/rocker_ofdpa.c mod_timer(&ofdpa_port->ofdpa->fdb_cleanup_timer, jiffies); ofdpa 2735 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = rocker->wpriv; ofdpa 2740 drivers/net/ethernet/rocker/rocker_ofdpa.c if (ofdpa->fib_aborted) ofdpa 2758 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = rocker->wpriv; ofdpa 2762 drivers/net/ethernet/rocker/rocker_ofdpa.c if (ofdpa->fib_aborted) ofdpa 2776 drivers/net/ethernet/rocker/rocker_ofdpa.c struct ofdpa *ofdpa = rocker->wpriv; ofdpa 2783 drivers/net/ethernet/rocker/rocker_ofdpa.c if (ofdpa->fib_aborted) ofdpa 2786 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_lock_irqsave(&ofdpa->flow_tbl_lock, flags); ofdpa 2787 drivers/net/ethernet/rocker/rocker_ofdpa.c hash_for_each_safe(ofdpa->flow_tbl, bkt, tmp, flow_entry, entry) { ofdpa 2801 drivers/net/ethernet/rocker/rocker_ofdpa.c spin_unlock_irqrestore(&ofdpa->flow_tbl_lock, flags); ofdpa 2802 drivers/net/ethernet/rocker/rocker_ofdpa.c ofdpa->fib_aborted = true; ofdpa 2807 drivers/net/ethernet/rocker/rocker_ofdpa.c .priv_size = sizeof(struct ofdpa),