Lines Matching defs:pd
572 kern_return_t pmsBuild(pmsDef *pd, uint32_t pdsize, pmsSetFunc_t *functab, uint32_t platformData, pmsQueryFunc_t queryFunc) {
597 if(xdsply) kprintf(" %6d %6d %6d %08X %6d %20lld\n", pd[i].pmsStepID, pd[i].pmsDown,
598 pd[i].pmsNext, pd[i].pmsSetCmd,
599 pd[i].sf.pmsSetFuncInd, pd[i].pmsLimit);
601 if((pd[i].pmsLimit != 0) && (pd[i].pmsLimit < 100ULL)) {
606 if((pd[i].pmsLimit != 0xFFFFFFFFFFFFFFFFULL) && (pd[i].pmsLimit > (HalfwayToForever / 1000ULL))) {
611 if(pd[i].pmsStepID != i) {
612 if(xdsply) kprintf("error step %3d: step ID does not match (%d)\n", i, pd[i].pmsStepID);
616 if(pd[i].sf.pmsSetFuncInd >= pmsSetFuncMax) {
617 if(xdsply) kprintf("error step %3d: function invalid (%d)\n", i, pd[i].sf.pmsSetFuncInd);
621 if((pd[i].pmsDown != pmsParked) && pd[i].pmsDown >= steps) {
622 if(xdsply) kprintf("error step %3d: pmsDown out of range (%d)\n", i, pd[i].pmsDown);
626 if((pd[i].pmsNext != pmsParked) && pd[i].pmsNext >= steps) {
627 if(xdsply) kprintf("error step %3d: pmsNext out of range (%d)\n", i, pd[i].pmsNext);
631 if((pd[i].pmsSetCmd == pmsDelay) && (pd[i].pmsTDelay >= steps)) {
632 if(xdsply) kprintf("error step %3d: pmsTDelay out of range (%d)\n", i, pd[i].pmsTDelay);
636 if((pd[i].pmsSetCmd == pmsDelay) && (pd[i].pmsLimit == 0xFFFFFFFFFFFFFFFFULL)) {
653 if(pd[cstp].pmsSetCmd == pmsParkIt) break; /* Parking always terminates a chain so no endless loop here */
654 if(pd[cstp].pmsSetCmd == pmsDelay) break; /* Delayed steps always terminate a chain so no endless loop here */
655 if((pd[cstp].pmsLimit != 0) && ((pd[cstp].pmsSetCmd & pmsSync) != pmsSync)) break; /* If time limit is not 0 and not synchrouous, no endless loop */
656 if(pd[cstp].pmsNext == pmsParked) break; /* If the next step is parked, no endless loop */
658 cstp = pd[cstp].pmsNext; /* Chain to the next */
714 if(pd[i].pmsLimit == 0xFFFFFFFFFFFFFFFFULL) nlimit = century; /* Default to 100 years */
715 else nlimit = pd[i].pmsLimit; /* Otherwise use what was supplied */
719 setf = pd[i].sf.pmsSetFuncInd; /* Make convienient */
722 newpd[i].pmsStepID = pd[i].pmsStepID; /* Set the step ID */
723 newpd[i].pmsSetCmd = pd[i].pmsSetCmd; /* Set the hardware selector ID */
724 newpd[i].pmsDown = pd[i].pmsDown; /* Set the downward step */
725 newpd[i].pmsNext = pd[i].pmsNext; /* Set the next setp */
726 newpd[i].pmsTDelay = pd[i].pmsTDelay; /* Set the delayed setp */