Searched refs:newmac (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/arch/xtensa/platforms/xtfpga/
H A Dsetup.c113 struct property *newmac; update_local_mac() local
121 newmac = kzalloc(sizeof(*newmac) + MAC_LEN, GFP_KERNEL); update_local_mac()
122 if (newmac == NULL) update_local_mac()
125 newmac->value = newmac + 1; update_local_mac()
126 newmac->length = MAC_LEN; update_local_mac()
127 newmac->name = kstrdup("local-mac-address", GFP_KERNEL); update_local_mac()
128 if (newmac->name == NULL) { update_local_mac()
129 kfree(newmac); update_local_mac()
133 memcpy(newmac->value, macaddr, MAC_LEN); update_local_mac()
134 ((u8*)newmac->value)[5] = (*(u32*)DIP_SWITCHES_VADDR) & 0x3f; update_local_mac()
135 of_update_property(node, newmac); update_local_mac()
/linux-4.4.14/arch/arm/mach-mxs/
H A Dmach-mxs.c167 struct property *newmac; update_fec_mac_prop() local
183 newmac = kzalloc(sizeof(*newmac) + 6, GFP_KERNEL); update_fec_mac_prop()
184 if (!newmac) update_fec_mac_prop()
186 newmac->value = newmac + 1; update_fec_mac_prop()
187 newmac->length = 6; update_fec_mac_prop()
189 newmac->name = kstrdup("local-mac-address", GFP_KERNEL); update_fec_mac_prop()
190 if (!newmac->name) { update_fec_mac_prop()
191 kfree(newmac); update_fec_mac_prop()
199 macaddr = newmac->value; update_fec_mac_prop()
232 of_update_property(np, newmac); update_fec_mac_prop()
/linux-4.4.14/drivers/net/wireless/prism54/
H A Dislpci_dev.c149 /* Firmware version is at offset 40 (also for "newmac") */ isl_upload_firmware()

Completed in 314 milliseconds