Lines Matching refs:net
110 EFI_SIMPLE_NETWORK *net; in efinet_probe() local
120 status = BS->OpenProtocol(h, &sn_guid, (void **)&net, in efinet_probe()
136 EFI_SIMPLE_NETWORK *net; in efinet_put() local
140 net = nif->nif_devdata; in efinet_put()
141 if (net == NULL) in efinet_put()
144 status = net->Transmit(net, 0, len, pkt, NULL, NULL, NULL); in efinet_put()
151 status = net->GetStatus(net, NULL, &buf); in efinet_put()
166 EFI_SIMPLE_NETWORK *net; in efinet_get() local
173 net = nif->nif_devdata; in efinet_get()
174 if (net == NULL) in efinet_get()
177 bufsz = net->Mode->MaxPacketSize + ETHER_HDR_LEN + ETHER_CRC_LEN; in efinet_get()
185 status = net->Receive(net, NULL, &bufsz, ptr, NULL, NULL, NULL); in efinet_get()
272 EFI_SIMPLE_NETWORK *net; in efinet_init() local
293 net = nif->nif_devdata; in efinet_init()
294 if (net->Mode->State == EfiSimpleNetworkStopped) { in efinet_init()
295 status = net->Start(net); in efinet_init()
303 if (net->Mode->State != EfiSimpleNetworkInitialized) { in efinet_init()
304 status = net->Initialize(net, 0, 0); in efinet_init()
315 status = net->ReceiveFilters(net, mask, 0, FALSE, 0, NULL); in efinet_init()
321 dump_mode(net->Mode); in efinet_init()
324 bcopy(net->Mode->CurrentAddress.Addr, desc->myea, 6); in efinet_init()
331 EFI_SIMPLE_NETWORK *net = nif->nif_devdata; in efinet_end() local
333 if (net == NULL) in efinet_end()
336 net->Shutdown(net); in efinet_end()