Lines Matching refs:undi_info_p
379 t_PXENV_UNDI_GET_INFORMATION *undi_info_p; in pxe_netif_init() local
384 undi_info_p = bio_alloc(sizeof(*undi_info_p)); in pxe_netif_init()
385 if (undi_info_p == NULL) in pxe_netif_init()
388 bzero(undi_info_p, sizeof(*undi_info_p)); in pxe_netif_init()
389 pxe_call(PXENV_UNDI_GET_INFORMATION, undi_info_p); in pxe_netif_init()
390 if (undi_info_p->Status != 0) { in pxe_netif_init()
391 printf("undi get info failed: %x\n", undi_info_p->Status); in pxe_netif_init()
392 bio_free(undi_info_p, sizeof(*undi_info_p)); in pxe_netif_init()
397 for (i = 0; i < undi_info_p->HwAddrLen; ++i) { in pxe_netif_init()
398 if (undi_info_p->CurrentNodeAddress[i] != 0) in pxe_netif_init()
401 if (i < undi_info_p->HwAddrLen) { in pxe_netif_init()
402 for (i = 0; i < undi_info_p->HwAddrLen; ++i) { in pxe_netif_init()
403 if (undi_info_p->CurrentNodeAddress[i] != 0xff) in pxe_netif_init()
407 if (i < undi_info_p->HwAddrLen) in pxe_netif_init()
408 mac = undi_info_p->CurrentNodeAddress; in pxe_netif_init()
410 mac = undi_info_p->PermNodeAddress; in pxe_netif_init()
412 len = min(sizeof (desc->myea), undi_info_p->HwAddrLen); in pxe_netif_init()
421 bio_free(undi_info_p, sizeof(*undi_info_p)); in pxe_netif_init()