Lines Matching refs:mac

366 	u16 mac;  in ks8842_read_mac_addr()  local
377 mac = ks8842_read16(adapter, 2, REG_MARL); in ks8842_read_mac_addr()
378 ks8842_write16(adapter, 39, mac, REG_MACAR3); in ks8842_read_mac_addr()
379 mac = ks8842_read16(adapter, 2, REG_MARM); in ks8842_read_mac_addr()
380 ks8842_write16(adapter, 39, mac, REG_MACAR2); in ks8842_read_mac_addr()
381 mac = ks8842_read16(adapter, 2, REG_MARH); in ks8842_read_mac_addr()
382 ks8842_write16(adapter, 39, mac, REG_MACAR1); in ks8842_read_mac_addr()
386 mac = ks8842_read16(adapter, 2, REG_MARL); in ks8842_read_mac_addr()
387 ks8842_write16(adapter, 39, mac, REG_MACAR1); in ks8842_read_mac_addr()
388 mac = ks8842_read16(adapter, 2, REG_MARM); in ks8842_read_mac_addr()
389 ks8842_write16(adapter, 39, mac, REG_MACAR2); in ks8842_read_mac_addr()
390 mac = ks8842_read16(adapter, 2, REG_MARH); in ks8842_read_mac_addr()
391 ks8842_write16(adapter, 39, mac, REG_MACAR3); in ks8842_read_mac_addr()
395 static void ks8842_write_mac_addr(struct ks8842_adapter *adapter, u8 *mac) in ks8842_write_mac_addr() argument
402 ks8842_write8(adapter, 2, mac[ETH_ALEN - i - 1], REG_MARL + i); in ks8842_write_mac_addr()
404 ks8842_write8(adapter, 39, mac[ETH_ALEN - i - 1], in ks8842_write_mac_addr()
414 u16 mac; in ks8842_write_mac_addr() local
416 mac = ks8842_read16(adapter, 2, REG_MARL); in ks8842_write_mac_addr()
417 ks8842_write16(adapter, 39, mac, REG_MACAR3); in ks8842_write_mac_addr()
418 mac = ks8842_read16(adapter, 2, REG_MARM); in ks8842_write_mac_addr()
419 ks8842_write16(adapter, 39, mac, REG_MACAR2); in ks8842_write_mac_addr()
420 mac = ks8842_read16(adapter, 2, REG_MARH); in ks8842_write_mac_addr()
421 ks8842_write16(adapter, 39, mac, REG_MACAR1); in ks8842_write_mac_addr()
1074 char *mac = (u8 *)addr->sa_data; in ks8842_set_mac() local
1081 memcpy(netdev->dev_addr, mac, netdev->addr_len); in ks8842_set_mac()
1083 ks8842_write_mac_addr(adapter, mac); in ks8842_set_mac()