Lines Matching refs:phd
2411 struct inpcbport *phd; in in_pcblookup_local() local
2421 LIST_FOREACH(phd, porthash, phd_hash) { in in_pcblookup_local()
2422 if (phd->phd_port == lport) { in in_pcblookup_local()
2426 if (phd != NULL) { in in_pcblookup_local()
2431 LIST_FOREACH(inp, &phd->phd_pcblist, inp_portlist) { in in_pcblookup_local()
2741 struct inpcbport *phd; in in_pcbinshash() local
2787 LIST_FOREACH(phd, pcbporthash, phd_hash) { in in_pcbinshash()
2788 if (phd->phd_port == inp->inp_lport) { in in_pcbinshash()
2796 if (phd == NULL) { in in_pcbinshash()
2797 phd = kalloc_type(struct inpcbport, Z_WAITOK | Z_NOFAIL); in in_pcbinshash()
2798 phd->phd_port = inp->inp_lport; in in_pcbinshash()
2799 LIST_INIT(&phd->phd_pcblist); in in_pcbinshash()
2800 LIST_INSERT_HEAD(pcbporthash, phd, phd_hash); in in_pcbinshash()
2830 inp->inp_phd = phd; in in_pcbinshash()
2831 LIST_INSERT_HEAD(&phd->phd_pcblist, inp, inp_portlist); in in_pcbinshash()
2936 struct inpcbport *phd = inp->inp_phd; in in_pcbremlists() local
2938 VERIFY(phd != NULL && inp->inp_lport > 0); in in_pcbremlists()
2947 if (LIST_EMPTY(&phd->phd_pcblist)) { in in_pcbremlists()
2948 LIST_REMOVE(phd, phd_hash); in in_pcbremlists()
2949 kfree_type(struct inpcbport, phd); in in_pcbremlists()