Lines Matching refs:phd
1152 struct inpcbport *phd;
1162 LIST_FOREACH(phd, porthash, phd_hash) {
1163 if (phd->phd_port == lport)
1166 if (phd != NULL) {
1171 LIST_FOREACH(inp, &phd->phd_pcblist, inp_portlist) {
1333 struct inpcbport *phd;
1362 LIST_FOREACH(phd, pcbporthash, phd_hash) {
1363 if (phd->phd_port == inp->inp_lport)
1369 if (phd == NULL) {
1370 MALLOC(phd, struct inpcbport *, sizeof(struct inpcbport), M_PCB, M_WAITOK);
1371 if (phd == NULL) {
1376 phd->phd_port = inp->inp_lport;
1377 LIST_INIT(&phd->phd_pcblist);
1378 LIST_INSERT_HEAD(pcbporthash, phd, phd_hash);
1380 inp->inp_phd = phd;
1381 LIST_INSERT_HEAD(&phd->phd_pcblist, inp, inp_portlist);
1424 struct inpcbport *phd = inp->inp_phd;
1428 if (phd != NULL && (LIST_FIRST(&phd->phd_pcblist) == NULL)) {
1429 LIST_REMOVE(phd, phd_hash);
1430 FREE(phd, M_PCB);
1673 struct inpcbport *phd;
1686 for (phd = porthash->lh_first; phd != NULL; phd = phd->phd_hash.le_next) {
1687 if (phd->phd_port == lport)
1691 if (phd == 0) {
1697 for (inp = phd->phd_pcblist.lh_first; inp != NULL;