Lines Matching refs:phd
2257 struct inpcbport *phd; in in_pcblookup_local() local
2267 LIST_FOREACH(phd, porthash, phd_hash) { in in_pcblookup_local()
2268 if (phd->phd_port == lport) { in in_pcblookup_local()
2272 if (phd != NULL) { in in_pcblookup_local()
2277 LIST_FOREACH(inp, &phd->phd_pcblist, inp_portlist) { in in_pcblookup_local()
2586 struct inpcbport *phd; in in_pcbinshash() local
2632 LIST_FOREACH(phd, pcbporthash, phd_hash) { in in_pcbinshash()
2633 if (phd->phd_port == inp->inp_lport) { in in_pcbinshash()
2641 if (phd == NULL) { in in_pcbinshash()
2642 phd = kalloc_type(struct inpcbport, Z_WAITOK | Z_NOFAIL); in in_pcbinshash()
2643 phd->phd_port = inp->inp_lport; in in_pcbinshash()
2644 LIST_INIT(&phd->phd_pcblist); in in_pcbinshash()
2645 LIST_INSERT_HEAD(pcbporthash, phd, phd_hash); in in_pcbinshash()
2675 inp->inp_phd = phd; in in_pcbinshash()
2676 LIST_INSERT_HEAD(&phd->phd_pcblist, inp, inp_portlist); in in_pcbinshash()
2781 struct inpcbport *phd = inp->inp_phd; in in_pcbremlists() local
2783 VERIFY(phd != NULL && inp->inp_lport > 0); in in_pcbremlists()
2792 if (LIST_EMPTY(&phd->phd_pcblist)) { in in_pcbremlists()
2793 LIST_REMOVE(phd, phd_hash); in in_pcbremlists()
2794 kfree_type(struct inpcbport, phd); in in_pcbremlists()