Lines Matching refs:phd
1304 struct inpcbport *phd;
1314 LIST_FOREACH(phd, porthash, phd_hash) {
1315 if (phd->phd_port == lport)
1318 if (phd != NULL) {
1323 LIST_FOREACH(inp, &phd->phd_pcblist, inp_portlist) {
1628 struct inpcbport *phd;
1662 LIST_FOREACH(phd, pcbporthash, phd_hash) {
1663 if (phd->phd_port == inp->inp_lport)
1672 if (phd == NULL) {
1673 MALLOC(phd, struct inpcbport *, sizeof(struct inpcbport), M_PCB, M_WAITOK);
1674 if (phd == NULL) {
1679 phd->phd_port = inp->inp_lport;
1680 LIST_INIT(&phd->phd_pcblist);
1681 LIST_INSERT_HEAD(pcbporthash, phd, phd_hash);
1683 inp->inp_phd = phd;
1684 LIST_INSERT_HEAD(&phd->phd_pcblist, inp, inp_portlist);
1728 struct inpcbport *phd = inp->inp_phd;
1732 if (phd != NULL && (LIST_FIRST(&phd->phd_pcblist) == NULL)) {
1733 LIST_REMOVE(phd, phd_hash);
1734 FREE(phd, M_PCB);