Home
last modified time | relevance | path

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

/linux-6.6.21/arch/xtensa/platforms/xtfpga/
Dsetup.c112 struct property *newmac; in update_local_mac() local
120 newmac = kzalloc(sizeof(*newmac) + MAC_LEN, GFP_KERNEL); in update_local_mac()
121 if (newmac == NULL) in update_local_mac()
124 newmac->value = newmac + 1; in update_local_mac()
125 newmac->length = MAC_LEN; in update_local_mac()
126 newmac->name = kstrdup("local-mac-address", GFP_KERNEL); in update_local_mac()
127 if (newmac->name == NULL) { in update_local_mac()
128 kfree(newmac); in update_local_mac()
132 memcpy(newmac->value, macaddr, MAC_LEN); in update_local_mac()
133 ((u8*)newmac->value)[5] = (*(u32*)DIP_SWITCHES_VADDR) & 0x3f; in update_local_mac()
[all …]
/linux-6.6.21/arch/arm/mach-mxs/
Dmach-mxs.c163 struct property *newmac; in update_fec_mac_prop() local
179 newmac = kzalloc(sizeof(*newmac) + 6, GFP_KERNEL); in update_fec_mac_prop()
180 if (!newmac) in update_fec_mac_prop()
182 newmac->value = newmac + 1; in update_fec_mac_prop()
183 newmac->length = 6; in update_fec_mac_prop()
185 newmac->name = kstrdup("local-mac-address", GFP_KERNEL); in update_fec_mac_prop()
186 if (!newmac->name) { in update_fec_mac_prop()
187 kfree(newmac); in update_fec_mac_prop()
195 macaddr = newmac->value; in update_fec_mac_prop()
228 of_update_property(np, newmac); in update_fec_mac_prop()