Lines Matching refs:way
1518 static int sja1105et_fdb_index(int bin, int way) in sja1105et_fdb_index() argument
1520 return bin * SJA1105ET_FDB_BIN_SIZE + way; in sja1105et_fdb_index()
1528 int way; in sja1105et_is_fdb_entry_in_bin() local
1530 for (way = 0; way < SJA1105ET_FDB_BIN_SIZE; way++) { in sja1105et_is_fdb_entry_in_bin()
1532 int index = sja1105et_fdb_index(bin, way); in sja1105et_is_fdb_entry_in_bin()
1540 *last_unused = way; in sja1105et_is_fdb_entry_in_bin()
1548 return way; in sja1105et_is_fdb_entry_in_bin()
1563 int bin, way, rc; in sja1105et_fdb_add() local
1567 way = sja1105et_is_fdb_entry_in_bin(priv, bin, addr, vid, in sja1105et_fdb_add()
1569 if (way >= 0) { in sja1105et_fdb_add()
1578 int index = sja1105et_fdb_index(bin, way); in sja1105et_fdb_add()
1588 way = last_unused; in sja1105et_fdb_add()
1596 get_random_bytes(&way, sizeof(u8)); in sja1105et_fdb_add()
1597 way %= SJA1105ET_FDB_BIN_SIZE; in sja1105et_fdb_add()
1599 bin, addr, way); in sja1105et_fdb_add()
1606 l2_lookup.index = sja1105et_fdb_index(bin, way); in sja1105et_fdb_add()
1616 end = sja1105et_fdb_index(bin, way); in sja1105et_fdb_add()
1645 int index, bin, way, rc; in sja1105et_fdb_del() local
1649 way = sja1105et_is_fdb_entry_in_bin(priv, bin, addr, vid, in sja1105et_fdb_del()
1651 if (way < 0) in sja1105et_fdb_del()
1653 index = sja1105et_fdb_index(bin, way); in sja1105et_fdb_del()