Lines Matching refs:phd
2334 struct inpcbport *phd; in in_pcblookup_local() local
2344 LIST_FOREACH(phd, porthash, phd_hash) { in in_pcblookup_local()
2345 if (phd->phd_port == lport) { in in_pcblookup_local()
2349 if (phd != NULL) { in in_pcblookup_local()
2354 LIST_FOREACH(inp, &phd->phd_pcblist, inp_portlist) { in in_pcblookup_local()
2663 struct inpcbport *phd; in in_pcbinshash() local
2709 LIST_FOREACH(phd, pcbporthash, phd_hash) { in in_pcbinshash()
2710 if (phd->phd_port == inp->inp_lport) { in in_pcbinshash()
2718 if (phd == NULL) { in in_pcbinshash()
2719 phd = kalloc_type(struct inpcbport, Z_WAITOK | Z_NOFAIL); in in_pcbinshash()
2720 phd->phd_port = inp->inp_lport; in in_pcbinshash()
2721 LIST_INIT(&phd->phd_pcblist); in in_pcbinshash()
2722 LIST_INSERT_HEAD(pcbporthash, phd, phd_hash); in in_pcbinshash()
2752 inp->inp_phd = phd; in in_pcbinshash()
2753 LIST_INSERT_HEAD(&phd->phd_pcblist, inp, inp_portlist); in in_pcbinshash()
2858 struct inpcbport *phd = inp->inp_phd; in in_pcbremlists() local
2860 VERIFY(phd != NULL && inp->inp_lport > 0); in in_pcbremlists()
2869 if (LIST_EMPTY(&phd->phd_pcblist)) { in in_pcbremlists()
2870 LIST_REMOVE(phd, phd_hash); in in_pcbremlists()
2871 kfree_type(struct inpcbport, phd); in in_pcbremlists()