Home
last modified time | relevance | path

Searched refs:ue_eaddr (Results 1 – 18 of 18) sorted by relevance

/freebsd/sys/dev/usb/
H A Dusb_fdt_support.c102 uint8_t mac[sizeof(ue->ue_eaddr)]; in usb_fdt_get_mac_addr()
113 memcpy(ue->ue_eaddr, mac, sizeof(ue->ue_eaddr)); in usb_fdt_get_mac_addr()
/freebsd/sys/dev/usb/net/
H A Dif_smsc.c1362 if ((err = smsc_setmacaddress(sc, sc->sc_ue.ue_eaddr)) != 0) { in smsc_chip_init()
1564 ue->ue_eaddr[i] = values[i]; in smsc_get_smsc95xx_macaddr()
1567 "bootargs mac=%6D.\n", ue->ue_eaddr, ":"); in smsc_get_smsc95xx_macaddr()
1608 ue->ue_eaddr, ":"); in smsc_bootargs_get_mac_addr()
1641 memset(sc->sc_ue.ue_eaddr, 0xff, ETHER_ADDR_LEN); in smsc_attach_post()
1646 sc->sc_ue.ue_eaddr[5] = (uint8_t)((mac_h >> 8) & 0xff); in smsc_attach_post()
1647 sc->sc_ue.ue_eaddr[4] = (uint8_t)((mac_h) & 0xff); 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()
[all …]
H A Dif_muge.c987 if ((err = lan78xx_setmacaddress(sc, sc->sc_ue.ue_eaddr)) != 0) { in lan78xx_chip_init()
1468 memset(ue->ue_eaddr, 0xff, ETHER_ADDR_LEN); in muge_set_mac_addr()
1476 ue->ue_eaddr[5] = (uint8_t)((mac_h >> 8) & 0xff); in muge_set_mac_addr()
1477 ue->ue_eaddr[4] = (uint8_t)((mac_h) & 0xff); 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()
1489 if (ETHER_IS_VALID(ue->ue_eaddr)) { in muge_set_mac_addr()
1492 ETH_E2P_MAC_OFFSET, ue->ue_eaddr, ETHER_ADDR_LE in muge_set_mac_addr()
[all...]
H A Dusb_ethernet.h98 uint8_t ue_eaddr[ETHER_ADDR_LEN]; member
H A Dif_cdce.c731 sc->sc_ue.ue_eaddr[0] = 0x2a; in cdce_attach()
732 memcpy(&sc->sc_ue.ue_eaddr[1], &seed, sizeof(uint32_t)); in cdce_attach()
733 sc->sc_ue.ue_eaddr[5] = device_get_unit(dev); in cdce_attach()
736 memset(sc->sc_ue.ue_eaddr, 0, sizeof(sc->sc_ue.ue_eaddr)); in cdce_attach()
752 sc->sc_ue.ue_eaddr[i / 2] |= c; in cdce_attach()
759 sc->sc_ue.ue_eaddr[5] ^= 0xFF; in cdce_attach()
H A Dif_cdceem.c282 arc4rand(ue->ue_eaddr, ETHER_ADDR_LEN, 0); in cdceem_attach()
283 ue->ue_eaddr[0] &= ~0x01; /* unicast */ in cdceem_attach()
284 ue->ue_eaddr[0] |= 0x02; /* locally administered */ in cdceem_attach()
H A Dif_axe.c771 eaddr = ue->ue_eaddr; in axe_ax88772b_init()
838 axe_cmd(sc, AXE_178_CMD_READ_NODEID, 0, 0, ue->ue_eaddr); in axe_attach_post()
841 axe_cmd(sc, AXE_178_CMD_READ_NODEID, 0, 0, ue->ue_eaddr); in axe_attach_post()
844 axe_cmd(sc, AXE_178_CMD_READ_NODEID, 0, 0, ue->ue_eaddr); in axe_attach_post()
848 axe_cmd(sc, AXE_172_CMD_READ_NODEID, 0, 0, ue->ue_eaddr); in axe_attach_post()
H A Dif_kue.c442 memcpy(ue->ue_eaddr, sc->sc_desc.kue_macaddr, sizeof(ue->ue_eaddr)); in kue_attach_post()
H A Dif_ure.c970 ue->ue_eaddr, 8); in ure_attach_post()
973 ue->ue_eaddr, 8); in ure_attach_post()
975 if (ETHER_IS_ZERO(sc->sc_ue.ue_eaddr)) { in ure_attach_post()
977 arc4rand(sc->sc_ue.ue_eaddr, ETHER_ADDR_LEN, 0); in ure_attach_post()
978 sc->sc_ue.ue_eaddr[0] &= ~0x01; /* unicast */ in ure_attach_post()
979 sc->sc_ue.ue_eaddr[0] |= 0x02; /* locally administered */ in ure_attach_post()
H A Dif_mos.c739 err = mos_readmac(sc, ue->ue_eaddr); in mos_attach_post()
744 MOS_DPRINTFN("address: %s", ether_sprintf(ue->ue_eaddr)); in mos_attach_post()
H A Dif_ipheth.c203 memcpy(sc->sc_ue.ue_eaddr, sc->sc_data, ETHER_ADDR_LEN); in ipheth_get_mac_addr()
H A Dif_cue.c377 cue_getmac(sc, ue->ue_eaddr); in cue_attach_post()
H A Dusb_ethernet.c256 ether_ifattach(ifp, ue->ue_eaddr); in ue_attach_post_task()
H A Dif_rue.c558 rue_read_mem(sc, RUE_EEPROM_IDR0, ue->ue_eaddr, ETHER_ADDR_LEN); in rue_attach_post()
H A Dif_udav.c239 udav_csr_read(sc, UDAV_PAR, ue->ue_eaddr, ETHER_ADDR_LEN); in udav_attach_post()
H A Dif_aue.c644 aue_read_mac(sc, ue->ue_eaddr); in aue_attach_post()
H A Dif_axge.c466 ue->ue_eaddr, ETHER_ADDR_LEN); in axge_attach_post()
H A Dif_urndis.c295 memcpy(&sc->sc_ue.ue_eaddr, buf, ETHER_ADDR_LEN); in urndis_attach()