Lines Matching refs:phd
2415 struct inpcbport *phd; in in_pcblookup_local() local
2425 LIST_FOREACH(phd, porthash, phd_hash) { in in_pcblookup_local()
2426 if (phd->phd_port == lport) { in in_pcblookup_local()
2430 if (phd != NULL) { in in_pcblookup_local()
2435 LIST_FOREACH(inp, &phd->phd_pcblist, inp_portlist) { in in_pcblookup_local()
2745 struct inpcbport *phd; in in_pcbinshash() local
2791 LIST_FOREACH(phd, pcbporthash, phd_hash) { in in_pcbinshash()
2792 if (phd->phd_port == inp->inp_lport) { in in_pcbinshash()
2800 if (phd == NULL) { in in_pcbinshash()
2801 phd = kalloc_type(struct inpcbport, Z_WAITOK | Z_NOFAIL); in in_pcbinshash()
2802 phd->phd_port = inp->inp_lport; in in_pcbinshash()
2803 LIST_INIT(&phd->phd_pcblist); in in_pcbinshash()
2804 LIST_INSERT_HEAD(pcbporthash, phd, phd_hash); in in_pcbinshash()
2834 inp->inp_phd = phd; in in_pcbinshash()
2835 LIST_INSERT_HEAD(&phd->phd_pcblist, inp, inp_portlist); in in_pcbinshash()
2940 struct inpcbport *phd = inp->inp_phd; in in_pcbremlists() local
2942 VERIFY(phd != NULL && inp->inp_lport > 0); in in_pcbremlists()
2951 if (LIST_EMPTY(&phd->phd_pcblist)) { in in_pcbremlists()
2952 LIST_REMOVE(phd, phd_hash); in in_pcbremlists()
2953 kfree_type(struct inpcbport, phd); in in_pcbremlists()