Lines Matching refs:ndp
194 struct efi_device_path *ndp; in efi_dp_dup() local
200 ndp = dp_alloc(sz); in efi_dp_dup()
201 memcpy(ndp, dp, sz); in efi_dp_dup()
203 return ndp; in efi_dp_dup()
506 struct efi_device_path_mac_addr *ndp; in efi_dp_from_eth() local
517 dpsize += sizeof(*ndp); in efi_dp_from_eth()
528 ndp = buf; in efi_dp_from_eth()
529 ndp->dp.type = DEVICE_PATH_TYPE_MESSAGING_DEVICE; in efi_dp_from_eth()
530 ndp->dp.sub_type = DEVICE_PATH_SUB_TYPE_MSG_MAC_ADDR; in efi_dp_from_eth()
531 ndp->dp.length = sizeof(*ndp); in efi_dp_from_eth()
532 memcpy(ndp->mac.addr, eth_get_ethaddr(), ARP_HLEN); in efi_dp_from_eth()
533 buf = &ndp[1]; in efi_dp_from_eth()