Lines Matching refs:phd
2251 struct inpcbport *phd; in in_pcblookup_local() local
2261 LIST_FOREACH(phd, porthash, phd_hash) { in in_pcblookup_local()
2262 if (phd->phd_port == lport) { in in_pcblookup_local()
2266 if (phd != NULL) { in in_pcblookup_local()
2271 LIST_FOREACH(inp, &phd->phd_pcblist, inp_portlist) { in in_pcblookup_local()
2580 struct inpcbport *phd; in in_pcbinshash() local
2626 LIST_FOREACH(phd, pcbporthash, phd_hash) { in in_pcbinshash()
2627 if (phd->phd_port == inp->inp_lport) { in in_pcbinshash()
2635 if (phd == NULL) { in in_pcbinshash()
2636 phd = kalloc_type(struct inpcbport, Z_WAITOK | Z_NOFAIL); in in_pcbinshash()
2637 phd->phd_port = inp->inp_lport; in in_pcbinshash()
2638 LIST_INIT(&phd->phd_pcblist); in in_pcbinshash()
2639 LIST_INSERT_HEAD(pcbporthash, phd, phd_hash); in in_pcbinshash()
2669 inp->inp_phd = phd; in in_pcbinshash()
2670 LIST_INSERT_HEAD(&phd->phd_pcblist, inp, inp_portlist); in in_pcbinshash()
2775 struct inpcbport *phd = inp->inp_phd; in in_pcbremlists() local
2777 VERIFY(phd != NULL && inp->inp_lport > 0); in in_pcbremlists()
2786 if (LIST_EMPTY(&phd->phd_pcblist)) { in in_pcbremlists()
2787 LIST_REMOVE(phd, phd_hash); in in_pcbremlists()
2788 kfree_type(struct inpcbport, phd); in in_pcbremlists()