Lines Matching refs:phd
1661 struct inpcbport *phd;
1671 LIST_FOREACH(phd, porthash, phd_hash) {
1672 if (phd->phd_port == lport)
1675 if (phd != NULL) {
1680 LIST_FOREACH(inp, &phd->phd_pcblist, inp_portlist) {
1983 struct inpcbport *phd;
2024 LIST_FOREACH(phd, pcbporthash, phd_hash) {
2025 if (phd->phd_port == inp->inp_lport)
2034 if (phd == NULL) {
2035 MALLOC(phd, struct inpcbport *, sizeof (struct inpcbport),
2037 if (phd == NULL) {
2042 phd->phd_port = inp->inp_lport;
2043 LIST_INIT(&phd->phd_pcblist);
2044 LIST_INSERT_HEAD(pcbporthash, phd, phd_hash);
2046 inp->inp_phd = phd;
2047 LIST_INSERT_HEAD(&phd->phd_pcblist, inp, inp_portlist);
2091 struct inpcbport *phd = inp->inp_phd;
2095 if (phd != NULL && (LIST_FIRST(&phd->phd_pcblist) == NULL)) {
2096 LIST_REMOVE(phd, phd_hash);
2097 FREE(phd, M_PCB);