Home
last modified time | relevance | path

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

/freebsd-12-stable/sys/dev/mge/
Dif_mge.c337 uint32_t mac_l, mac_h; in mge_get_mac_address() local
363 mac_h = MGE_READ(sc, MGE_MAC_ADDR_H); in mge_get_mac_address()
365 addr[0] = (mac_h & 0xff000000) >> 24; in mge_get_mac_address()
366 addr[1] = (mac_h & 0x00ff0000) >> 16; in mge_get_mac_address()
367 addr[2] = (mac_h & 0x0000ff00) >> 8; in mge_get_mac_address()
368 addr[3] = (mac_h & 0x000000ff); in mge_get_mac_address()
441 uint32_t mac_l, mac_h; in mge_set_mac_address() local
448 mac_h = (if_mac[0] << 24)| (if_mac[1] << 16) | in mge_set_mac_address()
452 MGE_WRITE(sc, MGE_MAC_ADDR_H, mac_h); in mge_set_mac_address()
/freebsd-12-stable/sys/dev/neta/
Dif_mvneta.c364 unsigned int mac_h; in mvneta_set_mac_address() local
368 mac_h = (addr[0] << 24) | (addr[1] << 16) | in mvneta_set_mac_address()
372 MVNETA_WRITE(sc, MVNETA_MACAH, mac_h); in mvneta_set_mac_address()
379 uint32_t mac_l, mac_h; in mvneta_get_mac_address() local
389 mac_h = MVNETA_READ(sc, MVNETA_MACAH); in mvneta_get_mac_address()
390 if (mac_l == 0 && mac_h == 0) { in mvneta_get_mac_address()
397 mac_h = arc4random(); in mvneta_get_mac_address()
398 mac_h &= ~(3 << 24); /* Clear multicast and LAA bits */ in mvneta_get_mac_address()
406 addr[0] = (mac_h & 0xff000000) >> 24; in mvneta_get_mac_address()
407 addr[1] = (mac_h & 0x00ff0000) >> 16; in mvneta_get_mac_address()
[all …]
/freebsd-12-stable/sys/dev/usb/net/
Dif_smsc.c1586 uint32_t mac_h, mac_l; in smsc_attach_post() local
1603 (smsc_read_reg(sc, SMSC_MAC_ADDRH, &mac_h) == 0)) { in smsc_attach_post()
1604 sc->sc_ue.ue_eaddr[5] = (uint8_t)((mac_h >> 8) & 0xff); in smsc_attach_post()
1605 sc->sc_ue.ue_eaddr[4] = (uint8_t)((mac_h) & 0xff); in smsc_attach_post()
Dif_muge.c1471 uint32_t mac_h, mac_l; in muge_set_mac_addr() local
1480 (lan78xx_read_reg(sc, ETH_RX_ADDRH, &mac_h) == 0)) { in muge_set_mac_addr()
1481 ue->ue_eaddr[5] = (uint8_t)((mac_h >> 8) & 0xff); in muge_set_mac_addr()
1482 ue->ue_eaddr[4] = (uint8_t)((mac_h) & 0xff); in muge_set_mac_addr()