Lines Matching refs:phd
2377 struct inpcbport *phd; in in_pcblookup_local() local
2387 LIST_FOREACH(phd, porthash, phd_hash) { in in_pcblookup_local()
2388 if (phd->phd_port == lport) { in in_pcblookup_local()
2392 if (phd != NULL) { in in_pcblookup_local()
2397 LIST_FOREACH(inp, &phd->phd_pcblist, inp_portlist) { in in_pcblookup_local()
2706 struct inpcbport *phd; in in_pcbinshash() local
2752 LIST_FOREACH(phd, pcbporthash, phd_hash) { in in_pcbinshash()
2753 if (phd->phd_port == inp->inp_lport) { in in_pcbinshash()
2761 if (phd == NULL) { in in_pcbinshash()
2762 phd = kalloc_type(struct inpcbport, Z_WAITOK | Z_NOFAIL); in in_pcbinshash()
2763 phd->phd_port = inp->inp_lport; in in_pcbinshash()
2764 LIST_INIT(&phd->phd_pcblist); in in_pcbinshash()
2765 LIST_INSERT_HEAD(pcbporthash, phd, phd_hash); in in_pcbinshash()
2795 inp->inp_phd = phd; in in_pcbinshash()
2796 LIST_INSERT_HEAD(&phd->phd_pcblist, inp, inp_portlist); in in_pcbinshash()
2901 struct inpcbport *phd = inp->inp_phd; in in_pcbremlists() local
2903 VERIFY(phd != NULL && inp->inp_lport > 0); in in_pcbremlists()
2912 if (LIST_EMPTY(&phd->phd_pcblist)) { in in_pcbremlists()
2913 LIST_REMOVE(phd, phd_hash); in in_pcbremlists()
2914 kfree_type(struct inpcbport, phd); in in_pcbremlists()