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()
2762 struct inpcbport *phd; in in_pcbinshash() local
2808 LIST_FOREACH(phd, pcbporthash, phd_hash) { in in_pcbinshash()
2809 if (phd->phd_port == inp->inp_lport) { in in_pcbinshash()
2817 if (phd == NULL) { in in_pcbinshash()
2818 phd = kalloc_type(struct inpcbport, Z_WAITOK | Z_NOFAIL); in in_pcbinshash()
2819 phd->phd_port = inp->inp_lport; in in_pcbinshash()
2820 LIST_INIT(&phd->phd_pcblist); in in_pcbinshash()
2821 LIST_INSERT_HEAD(pcbporthash, phd, phd_hash); in in_pcbinshash()
2851 inp->inp_phd = phd; in in_pcbinshash()
2852 LIST_INSERT_HEAD(&phd->phd_pcblist, inp, inp_portlist); in in_pcbinshash()
2957 struct inpcbport *phd = inp->inp_phd; in in_pcbremlists() local
2959 VERIFY(phd != NULL && inp->inp_lport > 0); in in_pcbremlists()
2968 if (LIST_EMPTY(&phd->phd_pcblist)) { in in_pcbremlists()
2969 LIST_REMOVE(phd, phd_hash); in in_pcbremlists()
2970 kfree_type(struct inpcbport, phd); in in_pcbremlists()