Lines Matching refs:a
1668 bool dsa_db_equal(const struct dsa_db *a, const struct dsa_db *b) in dsa_db_equal() argument
1670 if (a->type != b->type) in dsa_db_equal()
1673 switch (a->type) { in dsa_db_equal()
1675 return a->dp == b->dp; in dsa_db_equal()
1677 return a->lag.dev == b->lag.dev; in dsa_db_equal()
1679 return a->bridge.num == b->bridge.num; in dsa_db_equal()
1691 struct dsa_mac_addr *a; in dsa_fdb_present_in_other_db() local
1695 list_for_each_entry(a, &dp->fdbs, list) { in dsa_fdb_present_in_other_db()
1696 if (!ether_addr_equal(a->addr, addr) || a->vid != vid) in dsa_fdb_present_in_other_db()
1699 if (a->db.type == db.type && !dsa_db_equal(&a->db, &db)) in dsa_fdb_present_in_other_db()
1712 struct dsa_mac_addr *a; in dsa_mdb_present_in_other_db() local
1716 list_for_each_entry(a, &dp->mdbs, list) { in dsa_mdb_present_in_other_db()
1717 if (!ether_addr_equal(a->addr, mdb->addr) || a->vid != mdb->vid) in dsa_mdb_present_in_other_db()
1720 if (a->db.type == db.type && !dsa_db_equal(&a->db, &db)) in dsa_mdb_present_in_other_db()