Home
last modified time | relevance | path

Searched refs:mac_h (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/dev/mge/
H A Dif_mge.c333 uint32_t mac_l, mac_h; in mge_get_mac_address() local
359 mac_h = MGE_READ(sc, MGE_MAC_ADDR_H); in mge_get_mac_address()
361 addr[0] = (mac_h & 0xff000000) >> 24; in mge_get_mac_address()
362 addr[1] = (mac_h & 0x00ff0000) >> 16; in mge_get_mac_address()
363 addr[2] = (mac_h & 0x0000ff00) >> 8; in mge_get_mac_address()
364 addr[3] = (mac_h & 0x000000ff); in mge_get_mac_address()
437 uint32_t mac_l, mac_h; in mge_set_mac_address() local
444 mac_h = (if_mac[0] << 24)| (if_mac[1] << 16) | in mge_set_mac_address()
448 MGE_WRITE(sc, MGE_MAC_ADDR_H, mac_h); in mge_set_mac_address()
/freebsd/sys/dev/neta/
H A Dif_mvneta.c347 unsigned int mac_h; in mvneta_set_mac_address() local
351 mac_h = (addr[0] << 24) | (addr[1] << 16) | in mvneta_set_mac_address()
355 MVNETA_WRITE(sc, MVNETA_MACAH, mac_h); in mvneta_set_mac_address()
362 uint32_t mac_l, mac_h; in mvneta_get_mac_address() local
372 mac_h = MVNETA_READ(sc, MVNETA_MACAH); in mvneta_get_mac_address()
373 if (mac_l == 0 && mac_h == 0) { in mvneta_get_mac_address()
380 mac_h = arc4random(); in mvneta_get_mac_address()
381 mac_h &= ~(3 << 24); /* Clear multicast and LAA bits */ in mvneta_get_mac_address()
389 addr[0] = (mac_h & 0xff000000) >> 24; in mvneta_get_mac_address()
390 addr[1] = (mac_h & 0x00ff0000) >> 16; in mvneta_get_mac_address()
[all …]
/freebsd/sys/dev/usb/net/
H A Dif_smsc.c1627 uint32_t mac_h, mac_l; in smsc_attach_post() local
1644 (smsc_read_reg(sc, SMSC_MAC_ADDRH, &mac_h) == 0)) { in smsc_attach_post()
1645 sc->sc_ue.ue_eaddr[5] = (uint8_t)((mac_h >> 8) & 0xff); in smsc_attach_post()
1646 sc->sc_ue.ue_eaddr[4] = (uint8_t)((mac_h) & 0xff); in smsc_attach_post()
H A Dif_muge.c1465 uint32_t mac_h, mac_l; in muge_set_mac_addr() local
1474 (lan78xx_read_reg(sc, ETH_RX_ADDRH, &mac_h) == 0)) { in muge_set_mac_addr()
1475 ue->ue_eaddr[5] = (uint8_t)((mac_h >> 8) & 0xff); in muge_set_mac_addr()
1476 ue->ue_eaddr[4] = (uint8_t)((mac_h) & 0xff); in muge_set_mac_addr()