Lines Matching refs:rp

800 	ipp_ref_t	*rp = NULL;  in ipp_action_destroy()  local
816 ap->ippa_condemned = &rp; in ipp_action_destroy()
824 for (tmp = rp; tmp != NULL; tmp = tmp->ippr_nextp) { in ipp_action_destroy()
826 ap->ippa_condemned = &rp; in ipp_action_destroy()
836 for (tmp = rp; tmp != NULL; tmp = tmp->ippr_nextp) { in ipp_action_destroy()
846 while (rp != NULL) { in ipp_action_destroy()
847 tmp = rp; in ipp_action_destroy()
848 rp = rp->ippr_nextp; in ipp_action_destroy()
1897 ipp_ref_t *rp; in ref_mod() local
1907 while ((rp = *rpp) != NULL) { in ref_mod()
1908 ASSERT(rp->ippr_action != ap); in ref_mod()
1909 rpp = &(rp->ippr_nextp); in ref_mod()
1916 if ((rp = kmem_zalloc(sizeof (ipp_ref_t), KM_NOSLEEP)) == NULL) in ref_mod()
1923 rp->ippr_action = ap; in ref_mod()
1924 *rpp = rp; in ref_mod()
1944 ipp_ref_t *rp; in unref_mod() local
1954 while ((rp = *rpp) != NULL) { in unref_mod()
1955 if (rp->ippr_action == ap) in unref_mod()
1957 rpp = &(rp->ippr_nextp); in unref_mod()
1959 ASSERT(rp != NULL); in unref_mod()
1965 *rpp = rp->ippr_nextp; in unref_mod()
1966 kmem_free(rp, sizeof (ipp_ref_t)); in unref_mod()
1997 ipp_ref_t *rp; in get_mod_ref() local
2010 for (rp = imp->ippm_action; rp != NULL; rp = rp->ippr_nextp) { in get_mod_ref()
2040 for (rp = imp->ippm_action; rp != NULL; rp = rp->ippr_nextp) { in get_mod_ref()
2041 ap = rp->ippr_action; in get_mod_ref()
2133 ipp_ref_t *rp; in find_mod() local
2154 rp = ipp_mod_byname[hb]; in find_mod()
2160 while (rp != NULL) { in find_mod()
2161 imp = rp->ippr_mod; in find_mod()
2164 rp = rp->ippr_nextp; in find_mod()
2167 if (rp == NULL) { in find_mod()
2192 ipp_ref_t *rp; in alloc_mod() local
2212 while ((rp = *rpp) != NULL) { in alloc_mod()
2213 imp = rp->ippr_mod; in alloc_mod()
2219 rpp = &(rp->ippr_nextp); in alloc_mod()
2226 if ((rp = kmem_zalloc(sizeof (ipp_ref_t), KM_NOSLEEP)) == NULL) { in alloc_mod()
2232 kmem_free(rp, sizeof (ipp_ref_t)); in alloc_mod()
2256 rp->ippr_mod = imp; in alloc_mod()
2257 *rpp = rp; in alloc_mod()
2277 ipp_ref_t *rp; in free_mod() local
2293 while ((rp = *rpp) != NULL) { in free_mod()
2294 if (rp->ippr_mod == imp) in free_mod()
2296 rpp = &(rp->ippr_nextp); in free_mod()
2298 ASSERT(rp != NULL); in free_mod()
2304 *rpp = rp->ippr_nextp; in free_mod()
2305 kmem_free(rp, sizeof (ipp_ref_t)); in free_mod()
2468 ipp_ref_t *rp; in condemn_action() local
2476 while ((rp = *rpp) != NULL) { in condemn_action()
2477 if (rp->ippr_action == ap) in condemn_action()
2479 rpp = &(rp->ippr_nextp); in condemn_action()
2486 if (rp == NULL) { in condemn_action()
2487 if ((rp = kmem_zalloc(sizeof (ipp_ref_t), KM_NOSLEEP)) == NULL) in condemn_action()
2490 rp->ippr_action = ap; in condemn_action()
2491 *rpp = rp; in condemn_action()
2619 ipp_ref_t *rp; in ref_action() local
2630 while ((rp = *rpp) != NULL) { in ref_action()
2631 if (rp->ippr_action == ref_ap) in ref_action()
2633 rpp = &(rp->ippr_nextp); in ref_action()
2636 if ((rp = *rpp) != NULL) { in ref_action()
2642 rp->ippr_count++; in ref_action()
2648 rp = ref_ap->ippa_refby; in ref_action()
2649 while (rp != NULL) { in ref_action()
2650 if (rp->ippr_action == refby_ap) in ref_action()
2652 rp = rp->ippr_nextp; in ref_action()
2654 ASSERT(rp != NULL); in ref_action()
2656 rp->ippr_count++; in ref_action()
2663 if ((rp = kmem_zalloc(sizeof (ipp_ref_t), KM_NOSLEEP)) == NULL) in ref_action()
2666 rp->ippr_action = ref_ap; in ref_action()
2667 rp->ippr_count = 1; in ref_action()
2668 *rpp = rp; in ref_action()
2677 while ((rp = *rpp) != NULL) { in ref_action()
2678 ASSERT(rp->ippr_action != refby_ap); in ref_action()
2679 rpp = &(rp->ippr_nextp); in ref_action()
2688 if ((rp = kmem_zalloc(sizeof (ipp_ref_t), in ref_action()
2691 rp = *rpp; in ref_action()
2693 kmem_free(rp, sizeof (ipp_ref_t)); in ref_action()
2703 rp->ippr_action = refby_ap; in ref_action()
2704 rp->ippr_count = 1; in ref_action()
2705 *rpp = rp; in ref_action()
2719 ipp_ref_t *rp; in unref_action() local
2729 while ((rp = *rpp) != NULL) { in unref_action()
2730 if (rp->ippr_action == ref_ap) in unref_action()
2732 rpp = &(rp->ippr_nextp); in unref_action()
2735 if (rp == NULL) in unref_action()
2738 if (rp->ippr_count > 1) { in unref_action()
2745 rp->ippr_count--; in unref_action()
2751 rp = ref_ap->ippa_refby; in unref_action()
2752 while (rp != NULL) { in unref_action()
2753 if (rp->ippr_action == refby_ap) in unref_action()
2755 rp = rp->ippr_nextp; in unref_action()
2757 ASSERT(rp != NULL); in unref_action()
2759 rp->ippr_count--; in unref_action()
2767 *rpp = rp->ippr_nextp; in unref_action()
2768 kmem_free(rp, sizeof (ipp_ref_t)); in unref_action()
2775 while ((rp = *rpp) != NULL) { in unref_action()
2776 if (rp->ippr_action == refby_ap) in unref_action()
2778 rpp = &(rp->ippr_nextp); in unref_action()
2780 ASSERT(rp != NULL); in unref_action()
2786 *rpp = rp->ippr_nextp; in unref_action()
2787 kmem_free(rp, sizeof (ipp_ref_t)); in unref_action()
2815 ipp_ref_t *rp; in find_action() local
2836 rp = ipp_action_byname[hb]; in find_action()
2842 while (rp != NULL) { in find_action()
2843 ap = rp->ippr_action; in find_action()
2846 rp = rp->ippr_nextp; in find_action()
2849 if (rp == NULL) { in find_action()
2874 ipp_ref_t *rp; in alloc_action() local
2897 while ((rp = *rpp) != NULL) { in alloc_action()
2898 ap = rp->ippr_action; in alloc_action()
2905 rpp = &(rp->ippr_nextp); in alloc_action()
2912 if ((rp = kmem_zalloc(sizeof (ipp_ref_t), KM_NOSLEEP)) == NULL) { in alloc_action()
2918 kmem_free(rp, sizeof (ipp_ref_t)); in alloc_action()
2947 rp->ippr_action = ap; in alloc_action()
2948 *rpp = rp; in alloc_action()
2968 ipp_ref_t *rp; in free_action() local
2987 while ((rp = *rpp) != NULL) { in free_action()
2988 if (rp->ippr_action == ap) in free_action()
2990 rpp = &(rp->ippr_nextp); in free_action()
2992 ASSERT(rp != NULL); in free_action()
2998 *rpp = rp->ippr_nextp; in free_action()
2999 kmem_free(rp, sizeof (ipp_ref_t)); in free_action()