Lines Matching refs:ndp
264 struct efi_device_path *ndp; in efi_dp_dup() local
270 ndp = dp_alloc(sz); in efi_dp_dup()
271 if (!ndp) in efi_dp_dup()
273 memcpy(ndp, dp, sz); in efi_dp_dup()
275 return ndp; in efi_dp_dup()
853 struct efi_device_path_mac_addr *ndp; in efi_dp_from_eth() local
864 dpsize += sizeof(*ndp); in efi_dp_from_eth()
877 ndp = buf; in efi_dp_from_eth()
878 ndp->dp.type = DEVICE_PATH_TYPE_MESSAGING_DEVICE; in efi_dp_from_eth()
879 ndp->dp.sub_type = DEVICE_PATH_SUB_TYPE_MSG_MAC_ADDR; in efi_dp_from_eth()
880 ndp->dp.length = sizeof(*ndp); in efi_dp_from_eth()
881 ndp->if_type = 1; /* Ethernet */ in efi_dp_from_eth()
882 memcpy(ndp->mac.addr, eth_get_ethaddr(), ARP_HLEN); in efi_dp_from_eth()
883 buf = &ndp[1]; in efi_dp_from_eth()