Lines Matching defs:mac
171 static void ftgmac100_write_mac_addr(struct ftgmac100 *priv, const u8 *mac)
173 unsigned int maddr = mac[0] << 8 | mac[1];
174 unsigned int laddr = mac[2] << 24 | mac[3] << 16 | mac[4] << 8 | mac[5];
182 u8 mac[ETH_ALEN];
199 mac[0] = (m >> 8) & 0xff;
200 mac[1] = m & 0xff;
201 mac[2] = (l >> 24) & 0xff;
202 mac[3] = (l >> 16) & 0xff;
203 mac[4] = (l >> 8) & 0xff;
204 mac[5] = l & 0xff;
206 if (is_valid_ether_addr(mac)) {
207 eth_hw_addr_set(priv->netdev, mac);
208 dev_info(priv->dev, "Read MAC address %pM from chip\n", mac);
1668 if (of_device_is_compatible(np, "aspeed,ast2400-mac") ||
1669 of_device_is_compatible(np, "aspeed,ast2500-mac")) {
1857 if (np && (of_device_is_compatible(np, "aspeed,ast2400-mac") ||
1858 of_device_is_compatible(np, "aspeed,ast2500-mac") ||
1859 of_device_is_compatible(np, "aspeed,ast2600-mac"))) {
1909 if (of_device_is_compatible(np, "aspeed,ast2400-mac") ||
1910 of_device_is_compatible(np, "aspeed,ast2500-mac")) {
1956 if (of_device_is_compatible(np, "aspeed,ast2600-mac"))
1974 if (np && (of_device_is_compatible(np, "aspeed,ast2400-mac")))
1978 if (priv->use_ncsi && of_device_is_compatible(np, "aspeed,ast2600-mac"))