Lines Matching refs:rp
326 fc_add_resource(fco_handle_t rp, struct fc_resource *ip)
328 ASSERT(rp);
333 if (rp->head != NULL)
334 ip->next = rp->head;
335 rp->head = ip;
340 fc_rem_resource(fco_handle_t rp, struct fc_resource *ip)
344 ASSERT(rp);
347 if (rp->head == NULL) {
353 if (rp->head == ip) {
354 rp->head = ip->next;
359 for (fp = rp->head; fp && (fp->next != ip); fp = fp->next)
374 fc_lock_resource_list(fco_handle_t rp)
381 fc_unlock_resource_list(fco_handle_t rp)
439 fc_handle_to_phandle_head(fco_handle_t rp)
441 while (rp->next_handle)
442 rp = rp->next_handle;
444 return (&rp->ptable);
571 fc_handle_to_dtree_head(fco_handle_t rp)
573 while (rp->next_handle)
574 rp = rp->next_handle;
576 return (&rp->dtree);
580 fc_handle_to_dtree(fco_handle_t rp)
582 struct fc_device_tree **head = fc_handle_to_dtree_head(rp);