Home
last modified time | relevance | path

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

/freebsd/sys/dev/usb/net/
H A Dif_smsc.c1628 uint32_t mac_h, mac_l; in smsc_attach_post() local
1644 if ((smsc_read_reg(sc, SMSC_MAC_ADDRL, &mac_l) == 0) && in smsc_attach_post()
1648 sc->sc_ue.ue_eaddr[3] = (uint8_t)((mac_l >> 24) & 0xff); in smsc_attach_post()
1649 sc->sc_ue.ue_eaddr[2] = (uint8_t)((mac_l >> 16) & 0xff); in smsc_attach_post()
1650 sc->sc_ue.ue_eaddr[1] = (uint8_t)((mac_l >> 8) & 0xff); in smsc_attach_post()
1651 sc->sc_ue.ue_eaddr[0] = (uint8_t)((mac_l) & 0xff); in smsc_attach_post()
H A Dif_muge.c1466 uint32_t mac_h, mac_l; in muge_set_mac_addr() local
1474 if ((lan78xx_read_reg(sc, ETH_RX_ADDRL, &mac_l) == 0) && in muge_set_mac_addr()
1478 ue->ue_eaddr[3] = (uint8_t)((mac_l >> 24) & 0xff); in muge_set_mac_addr()
1479 ue->ue_eaddr[2] = (uint8_t)((mac_l >> 16) & 0xff); in muge_set_mac_addr()
1480 ue->ue_eaddr[1] = (uint8_t)((mac_l >> 8) & 0xff); in muge_set_mac_addr()
1481 ue->ue_eaddr[0] = (uint8_t)((mac_l) & 0xff); in muge_set_mac_addr()
/freebsd/sys/dev/mge/
H A Dif_mge.c333 uint32_t mac_l, mac_h; in mge_get_mac_address() local
358 mac_l = MGE_READ(sc, MGE_MAC_ADDR_L); in mge_get_mac_address()
365 addr[4] = (mac_l & 0x0000ff00) >> 8; in mge_get_mac_address()
366 addr[5] = (mac_l & 0x000000ff); in mge_get_mac_address()
437 uint32_t mac_l, mac_h; in mge_set_mac_address() local
443 mac_l = (if_mac[4] << 8) | (if_mac[5]); in mge_set_mac_address()
447 MGE_WRITE(sc, MGE_MAC_ADDR_L, mac_l); in mge_set_mac_address()
/freebsd/sys/dev/neta/
H A Dif_mvneta.c348 unsigned int mac_l; in mvneta_set_mac_address() local
350 mac_l = (addr[4] << 8) | (addr[5]); in mvneta_set_mac_address()
354 MVNETA_WRITE(sc, MVNETA_MACAL, mac_l); in mvneta_set_mac_address()
362 uint32_t mac_l, mac_h; in mvneta_get_mac_address() local
371 mac_l = MVNETA_READ(sc, MVNETA_MACAL); in mvneta_get_mac_address()
373 if (mac_l == 0 && mac_h == 0) { in mvneta_get_mac_address()
378 mac_l = arc4random() & ~0xff; in mvneta_get_mac_address()
379 mac_l |= device_get_unit(sc->dev) & 0xff; in mvneta_get_mac_address()
393 addr[4] = (mac_l & 0x0000ff00) >> 8; in mvneta_get_mac_address()
394 addr[5] = (mac_l & 0x000000ff); in mvneta_get_mac_address()