Home
last modified time | relevance | path

Searched refs:nifs (Results 1 – 5 of 5) sorted by relevance

/trueos/sys/boot/efi/libefi/
HDefinet.c262 int err, i, nifs; in efinet_dev_init() local
276 nifs = sz / sizeof(EFI_HANDLE); in efinet_dev_init()
277 err = efi_register_handles(&efinet_dev, handles, NULL, nifs); in efinet_dev_init()
282 efinetif.netif_nifs = nifs; in efinet_dev_init()
283 efinetif.netif_ifs = calloc(nifs, sizeof(struct netif_dif)); in efinet_dev_init()
285 stats = calloc(nifs, sizeof(struct netif_stats)); in efinet_dev_init()
287 for (i = 0; i < nifs; i++) { in efinet_dev_init()
/trueos/usr.sbin/wake/
HDwake.c111 int nifs; in find_ether() local
120 for (nifs = 0, ifa = ifap; ifa; ifa = ifa->ifa_next) in find_ether()
126 nifs++; in find_ether()
131 return (nifs == 1 ? 0 : -1); in find_ether()
/trueos/contrib/ipfilter/
HDip_fil.c22 static int nifs = 0; variable
313 nifs = 1;
316 nifs++;
318 (nifs + 1) * sizeof(ifp));
321 nifs = 0;
324 ifneta[nifs] = NULL;
325 ifneta[nifs - 1] = (struct ifnet *)malloc(sizeof(*ifp));
326 if (!ifneta[nifs - 1]) {
327 nifs--;
331 ifp = ifneta[nifs - 1];
/trueos/sys/dev/oce/
HDoce_hw.c412 atomic_inc_32(&sc->nifs); in oce_create_nw_interface()
441 if (sc->nifs > 0) { in oce_delete_nw_interface()
443 atomic_dec_32(&sc->nifs); in oce_delete_nw_interface()
HDoce_if.h856 uint32_t nifs; /* number of adapter interfaces, 0 or 1 */ member