Searched refs:mac_l (Results 1 – 5 of 5) sorted by relevance
| /freebsd/sys/dev/usb/net/ |
| H A D | if_smsc.c | 1627 uint32_t mac_h, mac_l; in smsc_attach_post() local 1643 if ((smsc_read_reg(sc, SMSC_MAC_ADDRL, &mac_l) == 0) && in smsc_attach_post() 1647 sc->sc_ue.ue_eaddr[3] = (uint8_t)((mac_l >> 24) & 0xff); in smsc_attach_post() 1648 sc->sc_ue.ue_eaddr[2] = (uint8_t)((mac_l >> 16) & 0xff); in smsc_attach_post() 1649 sc->sc_ue.ue_eaddr[1] = (uint8_t)((mac_l >> 8) & 0xff); in smsc_attach_post() 1650 sc->sc_ue.ue_eaddr[0] = (uint8_t)((mac_l) & 0xff); in smsc_attach_post()
|
| H A D | if_muge.c | 1465 uint32_t mac_h, mac_l; in muge_set_mac_addr() local 1473 if ((lan78xx_read_reg(sc, ETH_RX_ADDRL, &mac_l) == 0) && in muge_set_mac_addr() 1477 ue->ue_eaddr[3] = (uint8_t)((mac_l >> 24) & 0xff); in muge_set_mac_addr() 1478 ue->ue_eaddr[2] = (uint8_t)((mac_l >> 16) & 0xff); in muge_set_mac_addr() 1479 ue->ue_eaddr[1] = (uint8_t)((mac_l >> 8) & 0xff); in muge_set_mac_addr() 1480 ue->ue_eaddr[0] = (uint8_t)((mac_l) & 0xff); in muge_set_mac_addr()
|
| /freebsd/sys/dev/mge/ |
| H A D | if_mge.c | 333 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() 420 uint32_t mac_l, mac_h; in mge_set_mac_address() local 426 mac_l = (if_mac[4] << 8) | (if_mac[5]); in mge_set_mac_address() 430 MGE_WRITE(sc, MGE_MAC_ADDR_L, mac_l); in mge_set_mac_address()
|
| /freebsd/sys/dev/neta/ |
| H A D | if_mvneta.c | 348 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()
|
| /freebsd/sys/contrib/dev/broadcom/brcm80211/brcmsmac/ |
| H A D | main.c | 1491 u16 mac_l; in brcms_b_set_addrmatch() local 1497 mac_l = addr[0] | (addr[1] << 8); in brcms_b_set_addrmatch() 1504 bcma_write16(core, D11REGOFFS(rcm_mat_data), mac_l); in brcms_b_set_addrmatch()
|