Lines Matching refs:hp
788 struct hookpriv *hp; in ngs_rehash() local
799 hp = NG_HOOK_PRIVATE(hook); in ngs_rehash()
801 LIST_REMOVE(hp, next); in ngs_rehash()
804 LIST_INSERT_HEAD(&new[h], hp, next); in ngs_rehash()
820 struct hookpriv *hp; in ngs_newhook() local
823 hp = malloc(sizeof(*hp), M_NETGRAPH_SOCK, M_NOWAIT); in ngs_newhook()
824 if (hp == NULL) in ngs_newhook()
828 hp->hook = hook; in ngs_newhook()
830 LIST_INSERT_HEAD(&priv->hash[h], hp, next); in ngs_newhook()
831 NG_HOOK_SET_PRIVATE(hook, hp); in ngs_newhook()
859 struct hookpriv *hp; in ngs_findhook() local
879 LIST_FOREACH(hp, &priv->hash[h], next) in ngs_findhook()
880 if (strcmp(NG_HOOK_NAME(hp->hook), name) == 0) in ngs_findhook()
881 return (hp->hook); in ngs_findhook()
1060 struct hookpriv *hp = NG_HOOK_PRIVATE(hook); in ngs_disconnect() local
1062 LIST_REMOVE(hp, next); in ngs_disconnect()
1063 free(hp, M_NETGRAPH_SOCK); in ngs_disconnect()