Lines Matching refs:dp
60 static void rio_assert(di_retire_t *dp, const char *EXstr, int line,
92 rio_assert(di_retire_t *dp, const char *EXstr, int line, const char *file)
96 if (dp->rt_abort == NULL)
102 dp->rt_abort(dp->rt_hdl, buf);
110 di_retire_t *dp = rp->rcm_dp;
113 dp->rt_debug(dp->rt_hdl, "[INFO]: enclosure_minor: "
122 di_retire_t *dp = rp->rcm_dp;
124 rarg.rcm_dp = dp;
133 dp->rt_debug(dp->rt_hdl, "[INFO]: enclosure_select:"
139 dp->rt_debug(dp->rt_hdl, "[INFO]: enclosure_select:"
152 di_retire_t *dp = rp->rcm_dp;
155 dp->rt_debug(dp->rt_hdl, "[INFO]: smp_minor: "
164 di_retire_t *dp = rp->rcm_dp;
166 rarg.rcm_dp = dp;
174 dp->rt_debug(dp->rt_hdl, "[INFO]: smp_select:"
187 di_retire_t *dp = rp->rcm_dp;
191 dp->rt_debug(dp->rt_hdl, "[INFO]: disk_minor: is disk minor. "
196 dp->rt_debug(dp->rt_hdl, "[INFO]: disk_minor: Not a disk minor. "
205 di_retire_t *dp = rp->rcm_dp;
207 rarg.rcm_dp = dp;
215 dp->rt_debug(dp->rt_hdl, "[INFO]: disk_select: di_walk_minor "
229 di_retire_t *dp = rp->rcm_dp;
233 dp->rt_debug(dp->rt_hdl, "[INFO]: nexus_select: "
242 dp->rt_debug(dp->rt_hdl, "[INFO]: nexus_select: is nexus %s\n",
246 dp->rt_debug(dp->rt_hdl, "[INFO]: nexus_select: not nexus %s\n",
260 di_retire_t *dp;
266 dp = rp->rcm_dp;
272 dp->rt_debug(dp->rt_hdl, "[INFO]: node_select: "
290 dp->rt_debug(dp->rt_hdl, "[INFO]: node_select: device "
299 dp->rt_debug(dp->rt_hdl, "[INFO]: node_select: "
310 dp->rt_debug(dp->rt_hdl, "[INFO]: node_select: found "
319 dp->rt_debug(dp->rt_hdl, "[INFO]: node_select: This node supported. "
332 di_retire_t *dp;
335 dp = rp->rcm_dp;
340 RIO_ASSERT(dp, rnode != DI_NODE_NIL);
354 dp->rt_debug(dp->rt_hdl, "[ERROR]: retire_supported: "
360 dp->rt_debug(dp->rt_hdl, "[INFO]: retire IS supported\n");
374 di_retire_t *dp;
376 dp = rp->rcm_dp;
378 RIO_ASSERT(dp, retcode == 0 || retcode == -1);
380 dp->rt_debug(dp->rt_hdl, "[INFO]: rcm_finalize: retcode=%d: dev=%s\n",
390 dp->rt_debug(dp->rt_hdl, "[INFO]: rcm_finalize: cons_nodes NULL\n");
400 RIO_ASSERT(dp, retcode == -1);
406 dp->rt_debug(dp->rt_hdl, "[ERROR]: rcm_finalize: "
411 dp->rt_debug(dp->rt_hdl, "[INFO]: rcm_finalize: "
424 di_retire_t *dp = rp->rcm_dp;
431 dp->rt_debug(dp->rt_hdl, "[ERROR]: di_devfs_minor_path "
439 dp->rt_debug(dp->rt_hdl, "[ERROR]: calloc failed. "
458 dp->rt_debug(dp->rt_hdl, "[ERROR]: RCM OFFLINE failed "
464 dp->rt_debug(dp->rt_hdl, "[INFO]: RCM OFFLINE returned "
467 dp->rt_debug(dp->rt_hdl, "[ERROR]: RCM OFFLINE returned "
472 dp->rt_debug(dp->rt_hdl, "[INFO]: RCM OFFLINE returned "
484 di_retire_t *dp = rp->rcm_dp;
491 RIO_ASSERT(dp, rp->rcm_retcode == RCM_SUCCESS ||
494 dp->rt_debug(dp->rt_hdl, "[INFO]: offline_one: entered\n");
500 dp->rt_debug(dp->rt_hdl, "[ERROR]: rio_path_t calloc "
507 dp->rt_debug(dp->rt_hdl, "[ERROR]: di_devfs_path "
518 dp->rt_debug(dp->rt_hdl, "[ERROR]: di_walk_minor "
525 dp->rt_debug(dp->rt_hdl, "[ERROR]: di_walk_minor "
530 dp->rt_debug(dp->rt_hdl, "[INFO]: di_walk_minor "
535 dp->rt_debug(dp->rt_hdl, "[ERROR]: di_walk_minor "
541 dp->rt_debug(dp->rt_hdl, "[INFO]: di_walk_minor "
580 di_retire_t *dp;
583 dp = rp->rcm_dp;
585 dp->rt_debug(dp->rt_hdl, "[INFO]: rcm_notify() entered\n");
587 RIO_ASSERT(dp, rp->rcm_root);
593 dp->rt_debug(dp->rt_hdl, "[ERROR]: devinfo snapshot "
602 dp->rt_debug(dp->rt_hdl, "[ERROR]: di_walk_node "
611 dp->rt_debug(dp->rt_hdl, "[ERROR]: walk_node "
618 dp->rt_debug(dp->rt_hdl, "[ERROR]: di_walk_node "
622 dp->rt_debug(dp->rt_hdl, "[INFO]: walk_node: RCM_SUCCESS\n");
629 RIO_ASSERT(dp, p->rpt_path);
630 RIO_ASSERT(dp, strlen(p->rpt_path) > 0);
635 dp->rt_debug(dp->rt_hdl, "[INFO]: len of constraint str = %lu\n", len);
639 dp->rt_debug(dp->rt_hdl, "[ERROR]: fail to alloc "
652 RIO_ASSERT(dp, s - plistp < len);
656 RIO_ASSERT(dp, s - plistp == len - 1);
659 dp->rt_debug(dp->rt_hdl, "[INFO]: constraint str = %p\n", plistp);
672 di_retire_device(char *devpath, di_retire_t *dp, int flags)
684 if (dp == NULL || dp->rt_debug == NULL || dp->rt_hdl == NULL)
688 dp->rt_debug(dp->rt_hdl, "[ERROR]: NULL argument(s)\n");
695 dp->rt_debug(dp->rt_hdl, "[ERROR]: invalid devpath: %s\n",
701 dp->rt_debug(dp->rt_hdl, "[ERROR]: flags should be 0: %d\n",
716 dp->rt_debug(dp->rt_hdl, "[ERROR]: Cannot dlopen librcm: %s\n",
732 dp->rt_debug(dp->rt_hdl, "[ERROR]: dlsym failed\n");
744 dp->rt_debug(dp->rt_hdl, "[ERROR]: device doesn't attach, "
752 dp->rt_debug(dp->rt_hdl, "[ERROR]: failed to alloc "
759 rarg.rcm_dp = dp;
769 dp->rt_debug(dp->rt_hdl, "[ERROR]: detached or nonexistent "
772 dp->rt_debug(dp->rt_hdl, "[ERROR]: retire not supported for "
783 dp->rt_debug(dp->rt_hdl, "[ERROR]: RCM constraints block "
788 dp->rt_debug(dp->rt_hdl, "[INFO]: RCM constraints applied"
791 dp->rt_debug(dp->rt_hdl, "[INFO]: No RCM constraints applied"
794 dp->rt_debug(dp->rt_hdl, "[ERROR]: notify returned unknown "
802 dp->rt_debug(dp->rt_hdl, "[ERROR]: retire modctl() failed: "
808 dp->rt_debug(dp->rt_hdl, "[INFO]: retire modctl() succeeded: %s\n",
819 RIO_ASSERT(dp, rarg.rcm_cons_nodes == NULL);
820 RIO_ASSERT(dp, rarg.rcm_rsrc_minors == NULL);
834 di_unretire_device(char *devpath, di_retire_t *dp)
836 if (dp == NULL || dp->rt_debug == NULL || dp->rt_hdl == NULL)
840 dp->rt_debug(dp->rt_hdl, "[ERROR]: NULL devpath\n");
847 dp->rt_debug(dp->rt_hdl, "[ERROR]: invalid devpath: %s\n",
854 dp->rt_debug(dp->rt_hdl, "[ERROR]: unretire modctl() failed: "
859 dp->rt_debug(dp->rt_hdl, "[INFO]: unretire modctl() done: %s\n",