Lines Matching defs:phyi
314 struct physical_interface *phyi;
325 for (phyi = HFIRST(&ihash_tbl, &ifindex);
326 phyi != NULL; phyi = phyi->phyi_link.hl_next) {
327 if (phyi->phyi_index == ifindex)
330 if (phyi == NULL) {
333 phyi = rtmalloc(sizeof (*phyi), "physical_interface");
334 (void) memset(phyi, 0, sizeof (*phyi));
335 phyi->phyi_index = ifindex;
340 (void) strncpy(phyi->phyi_name, ifp->int_name,
342 phyi->phyi_name[size] = '\0';
343 HADD(&ihash_tbl, phyi);
345 link_in((void **)&phyi->phyi_interface, ifp,
347 ifp->int_phys = phyi;
420 struct physical_interface *phyi;
424 for (phyi = ihash_tbl.htbl_ptrs[i]; phyi != NULL;
425 phyi = phyi->phyi_link.hl_next) {
426 if (strncmp(phyi->phyi_name, name, nlen) == 0 &&
427 phyi->phyi_name[nlen] == '\0')
428 return (phyi);
469 struct physical_interface *phyi;
472 for (phyi = HFIRST(&ihash_tbl, &index); phyi != NULL;
473 phyi = phyi->phyi_link.hl_next) {
474 if (phyi->phyi_index == index)
475 return (phyi->phyi_interface);
779 struct physical_interface *phyi;
793 if ((phyi = ifp->int_phys) != NULL) {
795 if (phyi->phyi_interface == NULL) {
796 hash_unlink(&ihash_tbl, phyi);
797 free(phyi);
1048 struct physical_interface *phyi;
1437 if ((phyi = ifp->int_phys) == NULL ||
1438 now.tv_sec < phyi->phyi_data.ts +
1447 phyi->phyi_name);
1454 if (phyi->phyi_data.ts == 0) {
1455 phyi->phyi_data = newstats;
1459 in = newstats.ipackets - phyi->phyi_data.ipackets;
1460 ierr = newstats.ierrors - phyi->phyi_data.ierrors;
1461 out = newstats.opackets - phyi->phyi_data.opackets;
1462 oerr = newstats.oerrors - phyi->phyi_data.oerrors;
1463 phyi->phyi_data = newstats;
1926 struct physical_interface *phyi = ifp->int_phys;
1931 if (phyi->phyi_data.ts == now.tv_sec) {
1932 if (newdata != &phyi->phyi_data)
1933 *newdata = phyi->phyi_data;
1944 if (((ksp = kstat_lookup(kc, "link", 0, phyi->phyi_name)) == NULL) &&
1945 ((ksp = kstat_lookup(kc, NULL, -1, phyi->phyi_name)) == NULL)) {