Home
last modified time | relevance | path

Searched refs:newmac (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/arch/xtensa/platforms/xtfpga/
Dsetup.c105 struct property *newmac; in update_local_mac() local
113 newmac = kzalloc(sizeof(*newmac) + MAC_LEN, GFP_KERNEL); in update_local_mac()
114 if (newmac == NULL) in update_local_mac()
117 newmac->value = newmac + 1; in update_local_mac()
118 newmac->length = MAC_LEN; in update_local_mac()
119 newmac->name = kstrdup("local-mac-address", GFP_KERNEL); in update_local_mac()
120 if (newmac->name == NULL) { in update_local_mac()
121 kfree(newmac); in update_local_mac()
125 memcpy(newmac->value, macaddr, MAC_LEN); in update_local_mac()
126 ((u8*)newmac->value)[5] = (*(u32*)DIP_SWITCHES_VADDR) & 0x3f; in update_local_mac()
[all …]
/linux-5.19.10/arch/arm/mach-mxs/
Dmach-mxs.c165 struct property *newmac; in update_fec_mac_prop() local
181 newmac = kzalloc(sizeof(*newmac) + 6, GFP_KERNEL); in update_fec_mac_prop()
182 if (!newmac) in update_fec_mac_prop()
184 newmac->value = newmac + 1; in update_fec_mac_prop()
185 newmac->length = 6; in update_fec_mac_prop()
187 newmac->name = kstrdup("local-mac-address", GFP_KERNEL); in update_fec_mac_prop()
188 if (!newmac->name) { in update_fec_mac_prop()
189 kfree(newmac); in update_fec_mac_prop()
197 macaddr = newmac->value; in update_fec_mac_prop()
230 of_update_property(np, newmac); in update_fec_mac_prop()