Lines Matching refs:dip
71 cpr_suspend_devices(dev_info_t *dip)
76 for (; dip != NULL; dip = ddi_get_next_sibling(dip)) {
77 if (cpr_suspend_devices(ddi_get_child(dip)))
79 if (!cpr_is_real_device(dip))
82 devi_string(dip, buf));
83 ASSERT((DEVI(dip)->devi_cpr_flags & DCF_CPR_SUSPENDED) == 0);
86 i_cpr_save_configuration(dip);
90 if (!i_ddi_devi_attached(dip)) {
96 cpr_device == ddi_driver_major(dip))) {
98 error = devi_detach(dip, DDI_SUSPEND);
107 DEVI(dip)->devi_cpr_flags |= DCF_CPR_SUSPENDED;
113 devi_string(dip, buf));
115 devi_string(dip, buf));
127 DEVI(dip)->devi_cpr_flags |= DCF_CPR_SUSPENDED;
146 dev_info_t *dip, *next, *last = NULL;
152 dip = start;
153 next = ddi_get_next_sibling(dip);
155 dip = next;
156 next = ddi_get_next_sibling(dip);
164 did_suspend = DEVI(dip)->devi_cpr_flags & DCF_CPR_SUSPENDED;
166 DEVI(dip)->devi_cpr_flags &= ~DCF_CPR_SUSPENDED;
173 i_cpr_restore_configuration(dip);
191 devi_string(dip, buf));
198 if (!i_ddi_devi_attached(dip)) {
201 devi_string(dip, buf));
204 devi_string(dip, buf));
208 cpr_device == ddi_driver_major(dip))) {
212 if (devi_attach(dip, DDI_RESUME) !=
222 devi_string(dip, buf));
224 devi_string(dip, buf));
227 error = cpr_resume_devices(ddi_get_child(dip), error);
228 last = dip;
275 cpr_is_real_device(dev_info_t *dip)
281 if (ddi_get_driver(dip) == NULL)
287 if (DEVI(dip)->devi_pm_flags & (PMC_NEEDS_SR|PMC_PARENTAL_SR))
289 if (DEVI(dip)->devi_pm_flags & PMC_NO_SR)
295 rc = ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "reg",