Lines Matching defs:mac
355 u16 mac;
363 the sequence of saving mac addr between MAC and Switch is
367 mac = ks8842_read16(adapter, 2, REG_MARL);
368 ks8842_write16(adapter, 39, mac, REG_MACAR3);
369 mac = ks8842_read16(adapter, 2, REG_MARM);
370 ks8842_write16(adapter, 39, mac, REG_MACAR2);
371 mac = ks8842_read16(adapter, 2, REG_MARH);
372 ks8842_write16(adapter, 39, mac, REG_MACAR1);
376 mac = ks8842_read16(adapter, 2, REG_MARL);
377 ks8842_write16(adapter, 39, mac, REG_MACAR1);
378 mac = ks8842_read16(adapter, 2, REG_MARM);
379 ks8842_write16(adapter, 39, mac, REG_MACAR2);
380 mac = ks8842_read16(adapter, 2, REG_MARH);
381 ks8842_write16(adapter, 39, mac, REG_MACAR3);
385 static void ks8842_write_mac_addr(struct ks8842_adapter *adapter, const u8 *mac)
392 ks8842_write8(adapter, 2, mac[ETH_ALEN - i - 1], REG_MARL + i);
394 ks8842_write8(adapter, 39, mac[ETH_ALEN - i - 1],
400 the sequence of saving mac addr between MAC and Switch is
404 u16 mac;
406 mac = ks8842_read16(adapter, 2, REG_MARL);
407 ks8842_write16(adapter, 39, mac, REG_MACAR3);
408 mac = ks8842_read16(adapter, 2, REG_MARM);
409 ks8842_write16(adapter, 39, mac, REG_MACAR2);
410 mac = ks8842_read16(adapter, 2, REG_MARH);
411 ks8842_write16(adapter, 39, mac, REG_MACAR1);
1062 char *mac = (u8 *)addr->sa_data;
1069 eth_hw_addr_set(netdev, mac);
1071 ks8842_write_mac_addr(adapter, mac);
1187 /* Check if a mac address was given */