Lines Matching defs:pfd
284 int pfd;
293 for (pfd = fd; pfd >= 0; pfd = (pfd & (pfd + 1)) - 1)
294 fip->fi_list[pfd].uf_alloc += incr;
634 portfd_t *pfd;
782 pfd = ufp->uf_portfd;
791 if (pfd)
792 port_close_fd(pfd);
896 portfd_t *pfd;
898 pfd = ufp->uf_portfd;
900 port_close_fd(pfd);
1436 portfd_t *pfd;
1462 pfd = ufp->uf_portfd;
1469 if (pfd)
1470 port_close_fd(pfd);
1764 * fd is associated with a port. pfd is a pointer to the fd entry in the
1769 addfd_port(int fd, portfd_t *pfd)
1781 ufp->uf_portfd = pfd;
1782 pfd->pfd_next = NULL;
1784 pfd->pfd_next = ufp->uf_portfd;
1785 ufp->uf_portfd = pfd;
1786 pfd->pfd_next->pfd_prev = pfd;
1792 delfd_port(int fd, portfd_t *pfd)
1802 if (ufp->uf_portfd == pfd) {
1804 ufp->uf_portfd = pfd->pfd_next;
1806 pfd->pfd_prev->pfd_next = pfd->pfd_next;
1807 if (pfd->pfd_next != NULL)
1808 pfd->pfd_next->pfd_prev = pfd->pfd_prev;
1814 port_close_fd(portfd_t *pfd)
1824 for (; pfd != NULL; pfd = pfdn) {
1825 pfdn = pfd->pfd_next;
1826 port_close_pfd(pfd);