Lines Matching refs:entr
526 struct lan9303_alr_cache_entry *entr = chip->alr_cache;
528 for (i = 0; i < LAN9303_NUM_ALR_RECORDS; i++, entr++)
529 if (entr->port_map == 0)
530 return entr;
540 struct lan9303_alr_cache_entry *entr = chip->alr_cache;
545 for (i = 0; i < LAN9303_NUM_ALR_RECORDS; i++, entr++)
546 if (ether_addr_equal(entr->mac_addr, mac_addr))
547 return entr;
704 struct lan9303_alr_cache_entry *entr;
707 entr = lan9303_alr_cache_find_mac(chip, mac);
708 if (!entr) { /*New entry */
709 entr = lan9303_alr_cache_find_free(chip);
710 if (!entr) {
714 ether_addr_copy(entr->mac_addr, mac);
716 entr->port_map |= BIT(port);
717 entr->stp_override = stp_override;
718 lan9303_alr_set_entry(chip, mac, entr->port_map, stp_override);
727 struct lan9303_alr_cache_entry *entr;
730 entr = lan9303_alr_cache_find_mac(chip, mac);
731 if (!entr)
734 entr->port_map &= ~BIT(port);
735 if (entr->port_map == 0) /* zero means its free again */
736 eth_zero_addr(entr->mac_addr);
737 lan9303_alr_set_entry(chip, mac, entr->port_map, entr->stp_override);