Lines Matching refs:eui
132 static inline void addrconf_addr_eui48_base(u8 *eui, const char *const addr) in addrconf_addr_eui48_base() argument
134 memcpy(eui, addr, 3); in addrconf_addr_eui48_base()
135 eui[3] = 0xFF; in addrconf_addr_eui48_base()
136 eui[4] = 0xFE; in addrconf_addr_eui48_base()
137 memcpy(eui + 5, addr + 3, 3); in addrconf_addr_eui48_base()
140 static inline void addrconf_addr_eui48(u8 *eui, const char *const addr) in addrconf_addr_eui48() argument
142 addrconf_addr_eui48_base(eui, addr); in addrconf_addr_eui48()
143 eui[0] ^= 2; in addrconf_addr_eui48()
146 static inline int addrconf_ifid_eui48(u8 *eui, struct net_device *dev) in addrconf_ifid_eui48() argument
165 addrconf_addr_eui48_base(eui, dev->dev_addr); in addrconf_ifid_eui48()
168 eui[3] = (dev->dev_id >> 8) & 0xFF; in addrconf_ifid_eui48()
169 eui[4] = dev->dev_id & 0xFF; in addrconf_ifid_eui48()
171 eui[0] ^= 2; in addrconf_ifid_eui48()