Lines Matching refs:if_index
313 static int if_index; variable
329 for (int i = 1; i <= if_index; i++) in sysctl_ifcount()
372 if (__predict_false(idx > if_index)) in ifnet_byindex()
403 if (__predict_false(idx > if_index)) in ifnet_byindexgen()
581 for (idx = 1; idx <= if_index; idx++) { in if_alloc_domain()
600 if (idx > if_index) in if_alloc_domain()
601 if_index = idx; in if_alloc_domain()
603 ifp->if_index = idx; in if_alloc_domain()
680 MPASS(ifindex_table[ifp->if_index].ife_ifnet == ifp); in if_free()
681 ck_pr_store_ptr(&ifindex_table[ifp->if_index].ife_ifnet, NULL); in if_free()
682 ifindex_table[ifp->if_index].ife_gencnt++; in if_free()
683 while (if_index > 0 && ifindex_table[if_index].ife_ifnet == NULL) in if_free()
684 if_index--; in if_free()
832 MPASS(ifindex_table[ifp->if_index].ife_ifnet == ifp); in if_attach_internal()
890 sdl->sdl_index = ifp->if_index; in if_attach_internal()
945 sdl->sdl_index = ifp->if_index; in if_attach_internal()
1306 MPASS(ifindex_table[ifp->if_index].ife_ifnet == ifp); in if_vmove_loan()
2096 sdl->sdl_index = ifp->if_index; in link_init_sdl()
2258 MPASS(ifindex_table[ifp->if_index].ife_ifnet == ifp); in ifunit_ref()
2451 ifr->ifr_index = ifp->if_index; in ifhwioctl()
4311 return (ifp->if_index); in if_getindex()
5175 IF_DB_PRINTF("%u", if_index); in if_show_ifnet()
5230 for (idx = 1; idx <= if_index; idx++) { in DB_SHOW_ALL_COMMAND()