Lines Matching refs:reqp

492 xcppm_detach_ctlop(dev_info_t *dip, power_req_t *reqp)  in xcppm_detach_ctlop()  argument
497 if (ppmd == NULL || reqp->req.ppm_config_req.result != DDI_SUCCESS) in xcppm_detach_ctlop()
512 xcppm_resume_ctlop(dev_info_t *dip, power_req_t *reqp) in xcppm_resume_ctlop() argument
908 xcppm_manage_cpus(dev_info_t *dip, power_req_t *reqp, int *result) in xcppm_manage_cpus() argument
920 switch (reqp->request_type) { in xcppm_manage_cpus()
931 old = reqp->req.ppm_set_power_req.old_level; in xcppm_manage_cpus()
932 new = reqp->req.ppm_set_power_req.new_level; in xcppm_manage_cpus()
992 if (reqp->req.ppm_set_power_req.canblock == PM_CANBLOCK_BLOCK) in xcppm_manage_cpus()
1013 reqp->req.ppm_set_power_req.cookie = (void *) devlist; in xcppm_manage_cpus()
1030 xcppm_manage_fet(dev_info_t *dip, power_req_t *reqp, int *result) in xcppm_manage_fet() argument
1041 ppmd->path, ppm_get_ctlstr(reqp->request_type, ~0))); in xcppm_manage_fet()
1044 switch (reqp->request_type) { in xcppm_manage_fet()
1047 old = reqp->req.ppm_set_power_req.old_level; in xcppm_manage_fet()
1048 new = reqp->req.ppm_set_power_req.new_level; in xcppm_manage_fet()
1049 cmpt = reqp->req.ppm_set_power_req.cmpt; in xcppm_manage_fet()
1053 old = reqp->req.ppm_notify_level_req.old_level; in xcppm_manage_fet()
1054 new = reqp->req.ppm_notify_level_req.new_level; in xcppm_manage_fet()
1055 cmpt = reqp->req.ppm_notify_level_req.cmpt; in xcppm_manage_fet()
1130 xcppm_manage_pciupa(dev_info_t *dip, power_req_t *reqp, int *result) in xcppm_manage_pciupa() argument
1142 ppmd->path, ppm_get_ctlstr(reqp->request_type, ~0))); in xcppm_manage_pciupa()
1146 switch (reqp->request_type) { in xcppm_manage_pciupa()
1149 new = reqp->req.ppm_set_power_req.new_level; in xcppm_manage_pciupa()
1150 cmpt = reqp->req.ppm_set_power_req.cmpt; in xcppm_manage_pciupa()
1154 new = reqp->req.ppm_notify_level_req.new_level; in xcppm_manage_pciupa()
1155 cmpt = reqp->req.ppm_notify_level_req.cmpt; in xcppm_manage_pciupa()
1255 xcppm_manage_1394(dev_info_t *dip, power_req_t *reqp, int *result) in xcppm_manage_1394() argument
1266 ppmd->path, ppm_get_ctlstr(reqp->request_type, ~0))); in xcppm_manage_1394()
1268 switch (reqp->request_type) { in xcppm_manage_1394()
1271 old = reqp->req.ppm_set_power_req.old_level; in xcppm_manage_1394()
1272 new = reqp->req.ppm_set_power_req.new_level; in xcppm_manage_1394()
1273 cmpt = reqp->req.ppm_set_power_req.cmpt; in xcppm_manage_1394()
1277 old = reqp->req.ppm_notify_level_req.old_level; in xcppm_manage_1394()
1278 new = reqp->req.ppm_notify_level_req.new_level; in xcppm_manage_1394()
1279 cmpt = reqp->req.ppm_notify_level_req.cmpt; in xcppm_manage_1394()
1344 xcppm_lock_one(ppm_dev_t *ppmd, power_req_t *reqp, int *iresp) in xcppm_lock_one() argument
1346 switch (reqp->request_type) { in xcppm_lock_one()
1349 reqp->req.ppm_lock_power_req.circp); in xcppm_lock_one()
1354 reqp->req.ppm_unlock_power_req.circ); in xcppm_lock_one()
1359 reqp->req.ppm_lock_power_req.circp); in xcppm_lock_one()
1369 xcppm_lock_all(ppm_domain_t *domp, power_req_t *reqp, int *iresp) in xcppm_lock_all() argument
1378 if (reqp->request_type == PMR_PPM_LOCK_POWER) { in xcppm_lock_all()
1384 reqp->req.ppm_lock_power_req.circp); in xcppm_lock_all()
1387 } else if (reqp->request_type == PMR_PPM_UNLOCK_POWER) { in xcppm_lock_all()
1391 reqp->req.ppm_unlock_power_req.circ); in xcppm_lock_all()
1397 ASSERT(reqp->request_type == PMR_PPM_TRY_LOCK_POWER); in xcppm_lock_all()
1404 reqp->req.ppm_lock_power_req.circp); in xcppm_lock_all()
1424 power_req_t *reqp = arg; in xcppm_ctlops() local
1432 if (mask && (ctlstr = ppm_get_ctlstr(reqp->request_type, mask))) { in xcppm_ctlops()
1441 switch (reqp->request_type) { in xcppm_ctlops()
1459 str, reqp->req.ppm_all_lowest_req.mode)); in xcppm_ctlops()
1460 if (reqp->req.ppm_all_lowest_req.mode == PM_ALL_LOWEST) { in xcppm_ctlops()
1486 if (reqp->req.ppm_config_req.result != DDI_SUCCESS) { in xcppm_ctlops()
1497 xcppm_detach_ctlop(rdip, reqp); in xcppm_ctlops()
1502 xcppm_resume_ctlop(rdip, reqp); in xcppm_ctlops()
1511 else if (reqp->request_type != PMR_PPM_UNLOCK_POWER) { in xcppm_ctlops()
1521 ppmd->path, ppm_get_ctlstr(reqp->request_type, D_LOCKS))); in xcppm_ctlops()
1524 xcppm_lock_all(domp, reqp, result); in xcppm_ctlops()
1526 xcppm_lock_one(ppmd, reqp, result); in xcppm_ctlops()
1530 ASSERT(reqp->req.ppm_power_lock_owner_req.who == rdip); in xcppm_ctlops()
1546 reqp->req.ppm_power_lock_owner_req.owner = in xcppm_ctlops()
1549 reqp->req.ppm_power_lock_owner_req.owner = in xcppm_ctlops()
1563 if ((reqp->request_type == PMR_PPM_SET_POWER) && in xcppm_ctlops()
1571 return (xcppm_manage_cpus(rdip, reqp, result)); in xcppm_ctlops()
1573 return (xcppm_manage_fet(rdip, reqp, result)); in xcppm_ctlops()
1575 return (xcppm_manage_pciupa(rdip, reqp, result)); in xcppm_ctlops()
1578 return (xcppm_manage_1394(rdip, reqp, result)); in xcppm_ctlops()