Lines Matching refs:match

124 	int match, rc;
146 match = sja1105_is_vlan_configured(priv, pvid);
148 if (match < 0 || !(vlan[match].vmemb_port & BIT(port)))
1466 int rc, match;
1470 match = sja1105_find_static_fdb_entry(priv, port, requested);
1471 if (match < 0) {
1476 /* No match => new entry */
1481 match = table->entry_count - 1;
1487 /* We have a match.
1494 l2_lookup[match] = *requested;
1501 l2_lookup[match] = l2_lookup[table->entry_count - 1];
1518 struct sja1105_l2_lookup_entry *match,
1539 if (match)
1540 *match = l2_lookup;
1734 * because the static FDB entry will match first, and the dynamic one
2487 int match, rc;
2491 match = sja1105_is_vlan_configured(priv, vid);
2492 if (match < 0) {
2496 match = table->entry_count - 1;
2502 vlan[match].type_entry = SJA1110_VLAN_D_TAG;
2503 vlan[match].vlanid = vid;
2504 vlan[match].vlan_bc |= BIT(port);
2507 vlan[match].vmemb_port |= BIT(port);
2509 vlan[match].vmemb_port &= ~BIT(port);
2512 vlan[match].tag_port &= ~BIT(port);
2514 vlan[match].tag_port |= BIT(port);
2517 &vlan[match], true);
2525 int match, rc;
2529 match = sja1105_is_vlan_configured(priv, vid);
2531 if (match < 0)
2537 vlan[match].vlanid = vid;
2538 vlan[match].vlan_bc &= ~BIT(port);
2539 vlan[match].vmemb_port &= ~BIT(port);
2543 vlan[match].tag_port &= ~BIT(port);
2548 if (!vlan[match].vmemb_port)
2552 &vlan[match], keep);
2557 return sja1105_table_delete_entry(table, match);
2704 * cleared when a match is found. The host can use this
2712 * frame may not match on it by mistake.
2983 int match, rc;
2990 for (match = 0; match < table->entry_count; match++)
2991 if (l2_lookup[match].macaddr == SJA1105_UNKNOWN_MULTICAST &&
2992 l2_lookup[match].mask_macaddr == SJA1105_UNKNOWN_MULTICAST)
2995 if (match == table->entry_count) {
3003 l2_lookup[match].destports |= BIT(to);
3005 l2_lookup[match].destports &= ~BIT(to);
3008 l2_lookup[match].index,
3009 &l2_lookup[match], true);
3255 const struct of_device_id *match;
3272 for (match = sja1105_dt_ids; match->compatible[0]; match++) {
3273 const struct sja1105_info *info = match->data;
3275 /* Is what's been probed in our match table at all? */