Lines Matching refs:mac

89 	struct sja1105_mac_config_entry *mac;  in sja1105_drop_untagged()  local
91 mac = priv->static_config.tables[BLK_IDX_MAC_CONFIG].entries; in sja1105_drop_untagged()
93 if (mac[port].drpuntag == drop) in sja1105_drop_untagged()
96 mac[port].drpuntag = drop; in sja1105_drop_untagged()
99 &mac[port], true); in sja1105_drop_untagged()
104 struct sja1105_mac_config_entry *mac; in sja1105_pvid_apply() local
106 mac = priv->static_config.tables[BLK_IDX_MAC_CONFIG].entries; in sja1105_pvid_apply()
108 if (mac[port].vlanid == pvid) in sja1105_pvid_apply()
111 mac[port].vlanid = pvid; in sja1105_pvid_apply()
114 &mac[port], true); in sja1105_pvid_apply()
199 struct sja1105_mac_config_entry *mac; in sja1105_init_mac_settings() local
219 mac = table->entries; in sja1105_init_mac_settings()
225 mac[dp->index] = default_mac; in sja1105_init_mac_settings()
241 mac[dp->index].drpuntag = true; in sja1105_init_mac_settings()
1283 struct sja1105_mac_config_entry *mac; in sja1105_adjust_port_config() local
1294 mac = priv->static_config.tables[BLK_IDX_MAC_CONFIG].entries; in sja1105_adjust_port_config()
1332 mac[port].speed = priv->info->port_speed[SJA1105_SPEED_1000MBPS]; in sja1105_adjust_port_config()
1334 mac[port].speed = priv->info->port_speed[SJA1105_SPEED_2500MBPS]; in sja1105_adjust_port_config()
1336 mac[port].speed = speed; in sja1105_adjust_port_config()
1340 &mac[port], true); in sja1105_adjust_port_config()
2072 struct sja1105_mac_config_entry *mac; in sja1105_bridge_stp_state_set() local
2074 mac = priv->static_config.tables[BLK_IDX_MAC_CONFIG].entries; in sja1105_bridge_stp_state_set()
2084 mac[port].ingress = false; in sja1105_bridge_stp_state_set()
2085 mac[port].egress = false; in sja1105_bridge_stp_state_set()
2086 mac[port].dyn_learn = false; in sja1105_bridge_stp_state_set()
2089 mac[port].ingress = true; in sja1105_bridge_stp_state_set()
2090 mac[port].egress = false; in sja1105_bridge_stp_state_set()
2091 mac[port].dyn_learn = false; in sja1105_bridge_stp_state_set()
2094 mac[port].ingress = true; in sja1105_bridge_stp_state_set()
2095 mac[port].egress = false; in sja1105_bridge_stp_state_set()
2096 mac[port].dyn_learn = dp->learning; in sja1105_bridge_stp_state_set()
2099 mac[port].ingress = true; in sja1105_bridge_stp_state_set()
2100 mac[port].egress = true; in sja1105_bridge_stp_state_set()
2101 mac[port].dyn_learn = dp->learning; in sja1105_bridge_stp_state_set()
2109 &mac[port], true); in sja1105_bridge_stp_state_set()
2293 struct sja1105_mac_config_entry *mac; in sja1105_static_config_reload() local
2303 mac = priv->static_config.tables[BLK_IDX_MAC_CONFIG].entries; in sja1105_static_config_reload()
2312 mac[i].speed); in sja1105_static_config_reload()
2313 mac[i].speed = priv->info->port_speed[SJA1105_SPEED_AUTO]; in sja1105_static_config_reload()
2843 struct sja1105_mac_config_entry *mac; in sja1105_mirror_apply() local
2853 mac = priv->static_config.tables[BLK_IDX_MAC_CONFIG].entries; in sja1105_mirror_apply()
2870 if (mac[port].ing_mirr || mac[port].egr_mirr) { in sja1105_mirror_apply()
2889 mac[from].ing_mirr = enabled; in sja1105_mirror_apply()
2891 mac[from].egr_mirr = enabled; in sja1105_mirror_apply()
2894 &mac[from], true); in sja1105_mirror_apply()
2947 struct sja1105_mac_config_entry *mac; in sja1105_port_set_learning() local
2949 mac = priv->static_config.tables[BLK_IDX_MAC_CONFIG].entries; in sja1105_port_set_learning()
2951 mac[port].dyn_learn = enabled; in sja1105_port_set_learning()
2954 &mac[port], true); in sja1105_port_set_learning()