Lines Matching refs:pep
3083 proc_edge_t *pep, *ppep;
3108 for (pep = start_vertex->edge; pep != NULL; pep = pep->next) {
3109 if (pep->to_proc == adj_proc) {
3110 ASSERT(pep->refcount);
3111 pep->refcount++;
3115 if (pep == NULL) {
3116 pep = flk_get_proc_edge();
3117 pep->to_proc = adj_proc;
3118 pep->refcount = 1;
3120 pep->next = start_vertex->edge;
3121 start_vertex->edge = pep;
3133 for (pep = in_proc->edge; pep != NULL; pep = pep->next) {
3134 if (pep->to_proc == start_vertex) {
3135 ASSERT(pep->refcount);
3136 pep->refcount++;
3140 if (pep == NULL) {
3141 pep = flk_get_proc_edge();
3142 pep->to_proc = start_vertex;
3143 pep->refcount = 1;
3145 pep->next = in_proc->edge;
3146 in_proc->edge = pep;
3163 for (pep = pvertex->p_sedge; pep != NULL; pep = pep->next) {
3164 dvertex = pep->to_proc;
3169 pvertex->p_sedge = pep->next;
3175 if (pep == NULL) {
3196 for (pep = start_vertex->edge; pep != NULL; ppep = pep,
3197 pep = ppep->next) {
3198 if (pep->to_proc == adj_proc) {
3199 pep->refcount--;
3200 if (pep->refcount == 0) {
3201 if (pep == ppep) {
3202 start_vertex->edge = pep->next;
3204 ppep->next = pep->next;
3208 flk_free_proc_edge(pep);
3224 for (pep = in_proc->edge; pep != NULL; ppep = pep,
3225 pep = ppep->next) {
3226 if (pep->to_proc == start_vertex) {
3227 pep->refcount--;
3228 if (pep->refcount == 0) {
3229 if (pep == ppep) {
3230 in_proc->edge = pep->next;
3232 ppep->next = pep->next;
3236 flk_free_proc_edge(pep);
3315 proc_edge_t *pep;
3317 pep = kmem_zalloc(sizeof (proc_edge_t), KM_SLEEP);
3319 return (pep);
3327 flk_free_proc_edge(proc_edge_t *pep)
3329 ASSERT(pep->refcount == 0);
3330 kmem_free((void *)pep, sizeof (proc_edge_t));
3384 proc_edge_t *pep, *prevpep;
3402 pep = prevpep = fromproc->edge;
3404 ASSERT(pep != NULL);
3405 while (pep != NULL) {
3406 if (pep->to_proc == toproc) {
3407 ASSERT(pep->refcount > 0);
3408 pep->refcount--;
3409 if (pep->refcount == 0) {
3410 if (pep == prevpep) {
3411 fromproc->edge = pep->next;
3413 prevpep->next = pep->next;
3417 flk_free_proc_edge(pep);
3421 prevpep = pep;
3422 pep = pep->next;
3429 pep = fromproc->edge;
3431 while (pep != NULL) {
3432 if (pep->to_proc == toproc) {
3433 ASSERT(pep->refcount > 0);
3434 pep->refcount++;
3437 pep = pep->next;
3439 if (pep == NULL) {
3440 pep = flk_get_proc_edge();
3441 pep->to_proc = toproc;
3442 pep->refcount = 1;
3444 pep->next = fromproc->edge;
3445 fromproc->edge = pep;