Searched refs:nifs (Results 1 – 5 of 5) sorted by relevance
/freebsd/stand/efi/libefi/ |
H A D | efinet.c | 363 int err, i, nifs; in efinet_dev_init() local 385 nifs = 0; in efinet_dev_init() 397 handles2[nifs] = handles[i]; in efinet_dev_init() 398 nifs++; in efinet_dev_init() 401 if (nifs == 0) { in efinet_dev_init() 406 err = efi_register_handles(&efinet_dev, handles2, NULL, nifs); in efinet_dev_init() 410 efinetif.netif_ifs = calloc(nifs, sizeof(struct netif_dif)); in efinet_dev_init() 411 stats = calloc(nifs, sizeof(struct netif_stats)); in efinet_dev_init() 419 efinetif.netif_nifs = nifs; in efinet_dev_init() 421 for (i = 0; i < nifs; i++) { in efinet_dev_init()
|
/freebsd/usr.sbin/wake/ |
H A D | wake.c | 111 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()
|
/freebsd/sbin/ipf/ipftest/ |
H A D | ip_fil.c | 17 static int nifs = 0; variable 261 nifs = 1; 264 nifs++; 265 ifneta = (struct ifnet **)reallocarray(ifneta, nifs + 1, 269 nifs = 0; 272 ifneta[nifs] = NULL; 273 ifneta[nifs - 1] = (struct ifnet *)malloc(sizeof(*ifp)); 274 if (!ifneta[nifs - 1]) { 275 nifs--; 279 ifp = ifneta[nifs - 1];
|
/freebsd/sys/dev/oce/ |
H A D | oce_hw.c | 402 atomic_inc_32(&sc->nifs); in oce_create_nw_interface() 431 if (sc->nifs > 0) { in oce_delete_nw_interface() 433 atomic_dec_32(&sc->nifs); in oce_delete_nw_interface()
|
H A D | oce_if.h | 861 uint32_t nifs; /* number of adapter interfaces, 0 or 1 */ member
|