Lines Matching refs:portentry
180 dispportentry_t *portentry;
715 dispportentry_t *portentry;
719 portentry = ISC_LIST_HEAD(disp->port_table[port %
721 while (portentry != NULL) {
722 if (portentry->port == port)
723 return (portentry);
724 portentry = ISC_LIST_NEXT(portentry, link);
732 dispportentry_t *portentry;
736 portentry = isc_mempool_get(disp->portpool);
737 if (portentry == NULL)
738 return (portentry);
740 portentry->port = port;
741 portentry->refs = 0;
742 ISC_LINK_INIT(portentry, link);
744 portentry, link);
746 return (portentry);
754 dispportentry_t *portentry = *portentryp;
758 REQUIRE(portentry != NULL && portentry->refs > 0);
762 portentry->refs--;
763 if (portentry->refs == 0) {
764 ISC_LIST_UNLINK(disp->port_table[portentry->port %
766 portentry, link);
767 isc_mempool_put(disp->portpool, portentry);
789 if (dispsock->portentry != NULL &&
790 dispsock->portentry->port == port &&
820 dispportentry_t *portentry = NULL;
846 dispsock->portentry = NULL;
870 portentry = port_search(disp, port);
871 if (portentry != NULL)
875 if (portentry == NULL) {
876 portentry = new_portentry(disp, port);
877 if (portentry == NULL) {
882 portentry->refs++;
897 dispsock->portentry = portentry;
934 if (dispsock->portentry != NULL)
935 deref_portentry(disp, &dispsock->portentry);
970 INSIST(dispsock->portentry != NULL);
971 deref_portentry(disp, &dispsock->portentry);