Lines Matching refs:phd
2369 struct inpcbport *phd; in in_pcblookup_local() local
2379 LIST_FOREACH(phd, porthash, phd_hash) { in in_pcblookup_local()
2380 if (phd->phd_port == lport) { in in_pcblookup_local()
2384 if (phd != NULL) { in in_pcblookup_local()
2389 LIST_FOREACH(inp, &phd->phd_pcblist, inp_portlist) { in in_pcblookup_local()
2720 struct inpcbport *phd; in in_pcbinshash() local
2766 LIST_FOREACH(phd, pcbporthash, phd_hash) { in in_pcbinshash()
2767 if (phd->phd_port == inp->inp_lport) { in in_pcbinshash()
2775 if (phd == NULL) { in in_pcbinshash()
2776 phd = kalloc_type(struct inpcbport, Z_WAITOK | Z_NOFAIL); in in_pcbinshash()
2777 phd->phd_port = inp->inp_lport; in in_pcbinshash()
2778 LIST_INIT(&phd->phd_pcblist); in in_pcbinshash()
2779 LIST_INSERT_HEAD(pcbporthash, phd, phd_hash); in in_pcbinshash()
2809 inp->inp_phd = phd; in in_pcbinshash()
2810 LIST_INSERT_HEAD(&phd->phd_pcblist, inp, inp_portlist); in in_pcbinshash()
2915 struct inpcbport *phd = inp->inp_phd; in in_pcbremlists() local
2917 VERIFY(phd != NULL && inp->inp_lport > 0); in in_pcbremlists()
2926 if (LIST_EMPTY(&phd->phd_pcblist)) { in in_pcbremlists()
2927 LIST_REMOVE(phd, phd_hash); in in_pcbremlists()
2928 kfree_type(struct inpcbport, phd); in in_pcbremlists()