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