/openbmc/linux/arch/arm/mach-mxs/ |
H A D | mach-mxs.c | 165 u8 *macaddr; in update_fec_mac_prop() local 198 macaddr[0] = 0x00; in update_fec_mac_prop() 199 macaddr[1] = 0x04; in update_fec_mac_prop() 200 macaddr[2] = 0x9f; in update_fec_mac_prop() 203 macaddr[0] = 0xc0; in update_fec_mac_prop() 204 macaddr[1] = 0xe5; in update_fec_mac_prop() 205 macaddr[2] = 0x4e; in update_fec_mac_prop() 208 macaddr[0] = 0x58; in update_fec_mac_prop() 209 macaddr[1] = 0xb9; in update_fec_mac_prop() 210 macaddr[2] = 0xe1; in update_fec_mac_prop() [all …]
|
/openbmc/qemu/net/ |
H A D | util.c | 28 int net_parse_macaddr(uint8_t *macaddr, const char *p) in net_parse_macaddr() argument 38 macaddr[3] = (offset & 0xFF0000) >> 16; in net_parse_macaddr() 39 macaddr[4] = (offset & 0xFF00) >> 8; in net_parse_macaddr() 40 macaddr[5] = offset & 0xFF; in net_parse_macaddr() 45 macaddr[i] = strtol(p, (char **)&p, 16); in net_parse_macaddr()
|
H A D | net.c | 147 macaddr[0], macaddr[1], macaddr[2], in qemu_mac_strdup_printf() 148 macaddr[3], macaddr[4], macaddr[5]); in qemu_mac_strdup_printf() 163 nc->model, macaddr[0], macaddr[1], macaddr[2], in qemu_format_nic_info_str() 164 macaddr[3], macaddr[4], macaddr[5]); in qemu_format_nic_info_str() 222 macaddr->a[0] = 0x52; in qemu_macaddr_default_if_unset() 223 macaddr->a[1] = 0x54; in qemu_macaddr_default_if_unset() 224 macaddr->a[2] = 0x00; in qemu_macaddr_default_if_unset() 225 macaddr->a[3] = 0x12; in qemu_macaddr_default_if_unset() 226 macaddr->a[4] = 0x34; in qemu_macaddr_default_if_unset() 1014 if (nic->macaddr && in net_init_nic() [all …]
|
/openbmc/linux/arch/arm/mach-mvebu/ |
H A D | kirkwood.c | 87 u8 *macaddr; in kirkwood_dt_eth_fixup() local 122 macaddr = pmac->value; in kirkwood_dt_eth_fixup() 124 macaddr[0] = (reg >> 24) & 0xff; in kirkwood_dt_eth_fixup() 125 macaddr[1] = (reg >> 16) & 0xff; in kirkwood_dt_eth_fixup() 126 macaddr[2] = (reg >> 8) & 0xff; in kirkwood_dt_eth_fixup() 127 macaddr[3] = reg & 0xff; in kirkwood_dt_eth_fixup() 130 macaddr[4] = (reg >> 8) & 0xff; in kirkwood_dt_eth_fixup() 131 macaddr[5] = reg & 0xff; in kirkwood_dt_eth_fixup()
|
/openbmc/qemu/include/hw/nvram/ |
H A D | sun_nvram.h | 9 uint8_t macaddr[6]; /* 6 byte ethernet address (first 3 bytes 08, 00, 20) */ member 16 Sun_init_header(struct Sun_nvram *header, const uint8_t *macaddr, int machine_id) in Sun_init_header() argument 23 memcpy(&header->macaddr, macaddr, 6); in Sun_init_header() 24 memcpy(&header->hostid , &macaddr[3], 3); in Sun_init_header()
|
/openbmc/linux/drivers/net/ethernet/amd/ |
H A D | mvme147.c | 77 u8 macaddr[ETH_ALEN]; in mvme147lance_probe() local 97 macaddr[0] = 0x08; in mvme147lance_probe() 98 macaddr[1] = 0x00; in mvme147lance_probe() 99 macaddr[2] = 0x3e; in mvme147lance_probe() 101 macaddr[5] = address&0xff; in mvme147lance_probe() 103 macaddr[4] = address&0xff; in mvme147lance_probe() 105 macaddr[3] = address&0xff; in mvme147lance_probe() 106 eth_hw_addr_set(dev, macaddr); in mvme147lance_probe()
|
/openbmc/qemu/hw/net/ |
H A D | etraxfs_eth.c | 337 uint8_t macaddr[2][6]; member 412 eth->macaddr[ma][i++] = eth->regs[reg]; in eth_update_ma() 413 eth->macaddr[ma][i++] = eth->regs[reg] >> 8; in eth_update_ma() 414 eth->macaddr[ma][i++] = eth->regs[reg] >> 16; in eth_update_ma() 415 eth->macaddr[ma][i++] = eth->regs[reg] >> 24; in eth_update_ma() 416 eth->macaddr[ma][i++] = eth->regs[reg + 1]; in eth_update_ma() 417 eth->macaddr[ma][i] = eth->regs[reg + 1] >> 8; in eth_update_ma() 420 eth->macaddr[ma][0], eth->macaddr[ma][1], in eth_update_ma() 421 eth->macaddr[ma][2], eth->macaddr[ma][3], in eth_update_ma() 422 eth->macaddr[ma][4], eth->macaddr[ma][5])); in eth_update_ma() [all …]
|
H A D | stellaris_enet.c | 328 return s->conf.macaddr.a[0] | (s->conf.macaddr.a[1] << 8) in stellaris_enet_read() 329 | (s->conf.macaddr.a[2] << 16) in stellaris_enet_read() 330 | ((uint32_t)s->conf.macaddr.a[3] << 24); in stellaris_enet_read() 332 return s->conf.macaddr.a[4] | (s->conf.macaddr.a[5] << 8); in stellaris_enet_read() 414 s->conf.macaddr.a[0] = value; in stellaris_enet_write() 415 s->conf.macaddr.a[1] = value >> 8; in stellaris_enet_write() 416 s->conf.macaddr.a[2] = value >> 16; in stellaris_enet_write() 417 s->conf.macaddr.a[3] = value >> 24; in stellaris_enet_write() 420 s->conf.macaddr.a[4] = value; in stellaris_enet_write() 421 s->conf.macaddr.a[5] = value >> 8; in stellaris_enet_write() [all …]
|
H A D | mcf_fec.c | 377 return (s->conf.macaddr.a[0] << 24) | (s->conf.macaddr.a[1] << 16) in mcf_fec_read() 378 | (s->conf.macaddr.a[2] << 8) | s->conf.macaddr.a[3]; in mcf_fec_read() 381 return (s->conf.macaddr.a[4] << 24) | (s->conf.macaddr.a[5] << 16) | 0x8808; in mcf_fec_read() 454 s->conf.macaddr.a[0] = value >> 24; in mcf_fec_write() 455 s->conf.macaddr.a[1] = value >> 16; in mcf_fec_write() 456 s->conf.macaddr.a[2] = value >> 8; in mcf_fec_write() 457 s->conf.macaddr.a[3] = value; in mcf_fec_write() 460 s->conf.macaddr.a[4] = value >> 24; in mcf_fec_write() 461 s->conf.macaddr.a[5] = value >> 16; in mcf_fec_write() 648 qemu_format_nic_info_str(qemu_get_queue(s->nic), s->conf.macaddr.a); in mcf_fec_realize()
|
H A D | xgmac.c | 403 qemu_macaddr_default_if_unset(&s->conf.macaddr); in xgmac_enet_realize() 407 qemu_format_nic_info_str(qemu_get_queue(s->nic), s->conf.macaddr.a); in xgmac_enet_realize() 409 s->regs[XGMAC_ADDR_HIGH(0)] = (s->conf.macaddr.a[5] << 8) | in xgmac_enet_realize() 410 s->conf.macaddr.a[4]; in xgmac_enet_realize() 411 s->regs[XGMAC_ADDR_LOW(0)] = (s->conf.macaddr.a[3] << 24) | in xgmac_enet_realize() 412 (s->conf.macaddr.a[2] << 16) | in xgmac_enet_realize() 413 (s->conf.macaddr.a[1] << 8) | in xgmac_enet_realize() 414 s->conf.macaddr.a[0]; in xgmac_enet_realize()
|
H A D | spapr_llan.c | 314 memcpy(&dev->nicconf.macaddr.a, &dev->perm_mac.a, in spapr_vlan_reset() 315 sizeof(dev->nicconf.macaddr.a)); in spapr_vlan_reset() 316 qemu_format_nic_info_str(qemu_get_queue(dev->nic), dev->nicconf.macaddr.a); in spapr_vlan_reset() 323 qemu_macaddr_default_if_unset(&dev->nicconf.macaddr); in spapr_vlan_realize() 325 memcpy(&dev->perm_mac.a, &dev->nicconf.macaddr.a, sizeof(dev->perm_mac.a)); in spapr_vlan_realize() 398 if ((vdev->nicconf.macaddr.a[0] & 0x3) == 0x2) { in spapr_vlan_devnode() 400 &vdev->nicconf.macaddr, ETH_ALEN); in spapr_vlan_devnode() 402 memcpy(&padded_mac[2], &vdev->nicconf.macaddr, ETH_ALEN); in spapr_vlan_devnode() 768 target_ulong macaddr = args[1]; in h_change_logical_lan_mac() local 780 dev->nicconf.macaddr.a[ETH_ALEN - i - 1] = macaddr & 0xff; in h_change_logical_lan_mac() [all …]
|
H A D | igb.c | 321 igb_init_net_peer(IGBState *s, PCIDevice *pci_dev, uint8_t *macaddr) in igb_init_net_peer() argument 332 trace_e1000e_mac_set_permanent(MAC_ARG(macaddr)); in igb_init_net_peer() 333 memcpy(s->core.permanent_mac, macaddr, sizeof(s->core.permanent_mac)); in igb_init_net_peer() 335 qemu_format_nic_info_str(qemu_get_queue(s->nic), macaddr); in igb_init_net_peer() 385 uint8_t *macaddr; in igb_pci_realize() local 421 qemu_macaddr_default_if_unset(&s->conf.macaddr); in igb_pci_realize() 422 macaddr = s->conf.macaddr.a; in igb_pci_realize() 460 igb_init_net_peer(s, pci_dev, macaddr); in igb_pci_realize() 468 macaddr); in igb_pci_realize()
|
H A D | e1000e.c | 316 e1000e_init_net_peer(E1000EState *s, PCIDevice *pci_dev, uint8_t *macaddr) in e1000e_init_net_peer() argument 327 trace_e1000e_mac_set_permanent(MAC_ARG(macaddr)); in e1000e_init_net_peer() 328 memcpy(s->core.permanent_mac, macaddr, sizeof(s->core.permanent_mac)); in e1000e_init_net_peer() 330 qemu_format_nic_info_str(qemu_get_queue(s->nic), macaddr); in e1000e_init_net_peer() 418 uint8_t *macaddr; in e1000e_pci_realize() local 460 qemu_macaddr_default_if_unset(&s->conf.macaddr); in e1000e_pci_realize() 461 macaddr = s->conf.macaddr.a; in e1000e_pci_realize() 485 e1000e_gen_dsn(macaddr)); in e1000e_pci_realize() 487 e1000e_init_net_peer(s, pci_dev, macaddr); in e1000e_pci_realize() 495 macaddr); in e1000e_pci_realize()
|
H A D | npcm_gmac.c | 759 gmac->conf.macaddr.a[0] = v >> 8; in npcm_gmac_write() 760 gmac->conf.macaddr.a[1] = v >> 0; in npcm_gmac_write() 765 gmac->conf.macaddr.a[2] = v >> 24; in npcm_gmac_write() 766 gmac->conf.macaddr.a[3] = v >> 16; in npcm_gmac_write() 767 gmac->conf.macaddr.a[4] = v >> 8; in npcm_gmac_write() 768 gmac->conf.macaddr.a[5] = v >> 0; in npcm_gmac_write() 886 qemu_macaddr_default_if_unset(&gmac->conf.macaddr); in npcm_gmac_realize() 891 gmac->regs[R_NPCM_GMAC_MAC0_ADDR_HI] = (gmac->conf.macaddr.a[0] << 8) + \ in npcm_gmac_realize() 892 gmac->conf.macaddr.a[1]; in npcm_gmac_realize() 895 (gmac->conf.macaddr.a[4] << 8) + \ in npcm_gmac_realize() [all …]
|
H A D | lan9118.c | 382 s->conf.macaddr.a[i] = s->eeprom[i + 1]; in lan9118_reload_eeprom() 519 hash = memcmp(addr, s->conf.macaddr.a, 6); in lan9118_filter() 911 s->conf.macaddr.a[4] = val & 0xff; in do_mac_write() 912 s->conf.macaddr.a[5] = (val >> 8) & 0xff; in do_mac_write() 916 s->conf.macaddr.a[0] = val & 0xff; in do_mac_write() 917 s->conf.macaddr.a[1] = (val >> 8) & 0xff; in do_mac_write() 918 s->conf.macaddr.a[2] = (val >> 16) & 0xff; in do_mac_write() 965 return s->conf.macaddr.a[4] | (s->conf.macaddr.a[5] << 8); in do_mac_read() 967 return s->conf.macaddr.a[0] | (s->conf.macaddr.a[1] << 8) in do_mac_read() 968 | (s->conf.macaddr.a[2] << 16) | (s->conf.macaddr.a[3] << 24); in do_mac_read() [all …]
|
H A D | xen_nic.c | 316 qemu_macaddr_default_if_unset(&netdev->conf.macaddr); in xen_netdev_realize() 319 netdev->conf.macaddr.a[0], in xen_netdev_realize() 320 netdev->conf.macaddr.a[1], in xen_netdev_realize() 321 netdev->conf.macaddr.a[2], in xen_netdev_realize() 322 netdev->conf.macaddr.a[3], in xen_netdev_realize() 323 netdev->conf.macaddr.a[4], in xen_netdev_realize() 324 netdev->conf.macaddr.a[5]); in xen_netdev_realize() 332 qemu_format_nic_info_str(nc, netdev->conf.macaddr.a); in xen_netdev_realize() 630 memcpy(&net->conf.macaddr, &mac, sizeof(mac)); in type_init()
|
/openbmc/qemu/hw/net/rocker/ |
H A D | rocker_fp.c | 67 void fp_port_get_macaddr(FpPort *port, MACAddr *macaddr) in fp_port_get_macaddr() argument 69 memcpy(macaddr->a, port->conf.macaddr.a, sizeof(macaddr->a)); in fp_port_get_macaddr() 72 void fp_port_set_macaddr(FpPort *port, MACAddr *macaddr) in fp_port_set_macaddr() argument 239 memcpy(port->conf.macaddr.a, start_mac, sizeof(port->conf.macaddr.a)); in fp_port_alloc() 240 port->conf.macaddr.a[5] += index; in fp_port_alloc() 247 port->conf.macaddr.a); in fp_port_alloc()
|
/openbmc/linux/arch/s390/include/uapi/asm/ |
H A D | qeth.h | 25 __u8 macaddr[6]; member 45 __u8 macaddr[6]; member 52 __u8 macaddr[6]; member 58 __u8 macaddr[6]; member 64 __u8 macaddr[6]; member
|
/openbmc/u-boot/drivers/net/ |
H A D | calxedaxgmac.c | 188 } macaddr[16]; member 360 u32 macaddr[2]; in xgmac_hwmacaddr() local 362 memcpy(macaddr, dev->enetaddr, 6); in xgmac_hwmacaddr() 363 writel(macaddr[1], ®s->macaddr[0].hi); in xgmac_hwmacaddr() 364 writel(macaddr[0], ®s->macaddr[0].lo); in xgmac_hwmacaddr() 505 u32 macaddr[2]; in calxedaxgmac_initialize() local 531 macaddr[1] = readl(®s->macaddr[0].hi); in calxedaxgmac_initialize() 532 macaddr[0] = readl(®s->macaddr[0].lo); in calxedaxgmac_initialize() 533 memcpy(dev->enetaddr, macaddr, 6); in calxedaxgmac_initialize()
|
/openbmc/linux/arch/xtensa/platforms/xtfpga/ |
H A D | setup.c | 113 const u8* macaddr; in update_local_mac() local 116 macaddr = of_get_property(node, "local-mac-address", &prop_len); in update_local_mac() 117 if (macaddr == NULL || prop_len != MAC_LEN) in update_local_mac() 132 memcpy(newmac->value, macaddr, MAC_LEN); in update_local_mac()
|
/openbmc/linux/include/linux/platform_data/ |
H A D | net-cw1200.h | 23 const u8 *macaddr; /* if NULL, use cw1200_mac_template module parameter */ member 40 const u8 *macaddr; /* if NULL, use cw1200_mac_template module parameter */ member
|
/openbmc/linux/drivers/staging/rtl8723bs/include/ |
H A D | rtw_event.h | 51 unsigned char macaddr[6]; member 58 unsigned char macaddr[6]; member
|
/openbmc/qemu/include/net/ |
H A D | net.h | 33 MACAddr macaddr; member 39 DEFINE_PROP_MACADDR("mac", _state, _conf.macaddr), \ 141 char *qemu_mac_strdup_printf(const uint8_t *macaddr); 186 void qemu_format_nic_info_str(NetClientState *nc, uint8_t macaddr[6]); 197 void qemu_macaddr_default_if_unset(MACAddr *macaddr); 286 MACAddr macaddr; member
|
/openbmc/linux/drivers/staging/rtl8712/ |
H A D | rtl871x_event.h | 55 unsigned char macaddr[6]; member 61 unsigned char macaddr[6]; member
|
/openbmc/linux/include/linux/ssb/ |
H A D | ssb_driver_gige.h | 102 static inline int ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr) in ssb_gige_get_macaddr() argument 108 memcpy(macaddr, dev->dev->bus->sprom.et0mac, 6); in ssb_gige_get_macaddr() 184 static inline int ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr) in ssb_gige_get_macaddr() argument
|