Searched refs:mac_l (Results 1 – 4 of 4) sorted by relevance
| /freebsd-13.1/sys/dev/usb/net/ |
| H A D | if_smsc.c | 1557 uint32_t mac_h, mac_l; in smsc_attach_post() local 1572 if ((smsc_read_reg(sc, SMSC_MAC_ADDRL, &mac_l) == 0) && in smsc_attach_post() 1576 sc->sc_ue.ue_eaddr[3] = (uint8_t)((mac_l >> 24) & 0xff); in smsc_attach_post() 1577 sc->sc_ue.ue_eaddr[2] = (uint8_t)((mac_l >> 16) & 0xff); in smsc_attach_post() 1578 sc->sc_ue.ue_eaddr[1] = (uint8_t)((mac_l >> 8) & 0xff); in smsc_attach_post() 1579 sc->sc_ue.ue_eaddr[0] = (uint8_t)((mac_l) & 0xff); in smsc_attach_post()
|
| H A D | if_muge.c | 1473 uint32_t mac_h, mac_l; in muge_set_mac_addr() local 1481 if ((lan78xx_read_reg(sc, ETH_RX_ADDRL, &mac_l) == 0) && in muge_set_mac_addr() 1485 ue->ue_eaddr[3] = (uint8_t)((mac_l >> 24) & 0xff); in muge_set_mac_addr() 1486 ue->ue_eaddr[2] = (uint8_t)((mac_l >> 16) & 0xff); in muge_set_mac_addr() 1487 ue->ue_eaddr[1] = (uint8_t)((mac_l >> 8) & 0xff); in muge_set_mac_addr() 1488 ue->ue_eaddr[0] = (uint8_t)((mac_l) & 0xff); in muge_set_mac_addr()
|
| /freebsd-13.1/sys/dev/mge/ |
| H A D | if_mge.c | 337 uint32_t mac_l, mac_h; in mge_get_mac_address() local 362 mac_l = MGE_READ(sc, MGE_MAC_ADDR_L); in mge_get_mac_address() 369 addr[4] = (mac_l & 0x0000ff00) >> 8; in mge_get_mac_address() 370 addr[5] = (mac_l & 0x000000ff); in mge_get_mac_address() 441 uint32_t mac_l, mac_h; in mge_set_mac_address() local 447 mac_l = (if_mac[4] << 8) | (if_mac[5]); in mge_set_mac_address() 451 MGE_WRITE(sc, MGE_MAC_ADDR_L, mac_l); in mge_set_mac_address()
|
| /freebsd-13.1/sys/dev/neta/ |
| H A D | if_mvneta.c | 366 unsigned int mac_l; in mvneta_set_mac_address() local 368 mac_l = (addr[4] << 8) | (addr[5]); in mvneta_set_mac_address() 372 MVNETA_WRITE(sc, MVNETA_MACAL, mac_l); in mvneta_set_mac_address() 380 uint32_t mac_l, mac_h; in mvneta_get_mac_address() local 389 mac_l = MVNETA_READ(sc, MVNETA_MACAL); in mvneta_get_mac_address() 391 if (mac_l == 0 && mac_h == 0) { in mvneta_get_mac_address() 396 mac_l = arc4random() & ~0xff; in mvneta_get_mac_address() 397 mac_l |= device_get_unit(sc->dev) & 0xff; in mvneta_get_mac_address() 411 addr[4] = (mac_l & 0x0000ff00) >> 8; in mvneta_get_mac_address() 412 addr[5] = (mac_l & 0x000000ff); in mvneta_get_mac_address()
|