Lines Matching refs:nsec
76 uint64_t nsec; in computeTimeDeltaNS() local
80 absolutetime_to_nanoseconds(now, &nsec); in computeTimeDeltaNS()
81 return nsec; in computeTimeDeltaNS()
227 #define NS_TO_MS(nsec) ((int)((nsec) / 1000000ULL)) argument
228 #define NS_TO_US(nsec) ((int)((nsec) / 1000ULL)) argument
1597 uint64_t nsec = computeTimeDeltaNS(&informee->startTime); in handleAcknowledgePowerChange() local
1598 if (nsec > gIOPMSetPowerStateLogNS) { in handleAcknowledgePowerChange()
1601 fDriverCallReason, NS_TO_MS(nsec), informee->whatObject->getRegistryEntryID(), in handleAcknowledgePowerChange()
1705 uint64_t nsec = computeTimeDeltaNS(&fDriverCallStartTime); in handleAcknowledgeSetPowerState() local
1706 if (nsec > gIOPMSetPowerStateLogNS) { in handleAcknowledgeSetPowerState()
1709 fName, kDriverCallSetPowerState, NS_TO_MS(nsec), getRegistryEntryID(), in handleAcknowledgeSetPowerState()
4247 uint64_t nsec; in driverSetPowerState() local
4250 absolutetime_to_nanoseconds(end, &nsec); in driverSetPowerState()
4251 if (nsec > gIOPMSetPowerStateLogNS) { in driverSetPowerState()
4254 fName, kDriverCallSetPowerState, NS_TO_MS(nsec), getRegistryEntryID(), in driverSetPowerState()
4331 uint64_t nsec; in driverInformPowerChange() local
4334 absolutetime_to_nanoseconds(end, &nsec); in driverInformPowerChange()
4335 if (nsec > gIOPMSetPowerStateLogNS) { in driverInformPowerChange()
4338 fDriverCallReason, NS_TO_MS(nsec), driver->getRegistryEntryID(), in driverInformPowerChange()
5241 uint64_t nsec; in ParentChangeRootChangeDown() local
5258 absolutetime_to_nanoseconds(now, &nsec); in ParentChangeRootChangeDown()
5259 if (nsec >= kNoTickleCancelWindow) { in ParentChangeRootChangeDown()
5552 uint64_t nsec = computeTimeDeltaNS(&fDriverCallStartTime); in ackTimerTick() local
5556 fName, OBFUSCATE(this), fCurrentPowerState, fHeadNotePowerState, NS_TO_MS(nsec)); in ackTimerTick()
5575 fName, this, fCurrentPowerState, fHeadNotePowerState, NS_TO_MS(nsec)); in ackTimerTick()
5590 fName, this, fCurrentPowerState, fHeadNotePowerState, NS_TO_MS(nsec)); in ackTimerTick()
5607 fName, this, function_addr, fCurrentPowerState, fHeadNotePowerState, NS_TO_MS(nsec)); in ackTimerTick()
5634 uint64_t nsec = computeTimeDeltaNS(&nextObject->startTime); in ackTimerTick() local
5641 NS_TO_MS(nsec)); in ackTimerTick()
6467 uint64_t nsec; in pmTellClientWithResponse() local
6554 absolutetime_to_nanoseconds(end, &nsec); in pmTellClientWithResponse()
6556 if ((nsec > LOG_KEXT_RESPONSE_TIMES) || (notify.returnValue != 0)) { in pmTellClientWithResponse()
6557 …getPMRootDomain()->traceNotificationResponse(notifier, NS_TO_MS(nsec), (uint32_t) notify.returnVal… in pmTellClientWithResponse()
6701 uint64_t nsec; in pmTellCapabilityClientWithResponse() local
6784 absolutetime_to_nanoseconds(end, &nsec); in pmTellCapabilityClientWithResponse()
6786 if ((nsec > LOG_KEXT_RESPONSE_TIMES) || (msgArg.maxWaitForReply != 0)) { in pmTellCapabilityClientWithResponse()
6787 getPMRootDomain()->traceNotificationResponse(notifier, NS_TO_MS(nsec), msgArg.maxWaitForReply); in pmTellCapabilityClientWithResponse()
7059 uint64_t nsec; in responseValid() local
7065 absolutetime_to_nanoseconds(now, &nsec); in responseValid()
7071 if (nsec > LOG_APP_RESPONSE_TIMES) { in responseValid()
7072 IOLog("PM response took %d ms (%d, %s)\n", NS_TO_MS(nsec), in responseValid()
7076 if (nsec > LOG_APP_RESPONSE_MSG_TRACER) { in responseValid()
7080 name, 0, NS_TO_MS(nsec), pid, object); in responseValid()
7084 name, 0, NS_TO_MS(nsec), pid, object); in responseValid()
7087 getPMRootDomain()->traceNotificationAck(object, NS_TO_MS(nsec)); in responseValid()
7093 NS_TO_MS(nsec)); in responseValid()
7143 uint64_t nsec; in updateClientResponses() local
7152 absolutetime_to_nanoseconds(now, &nsec); in updateClientResponses()
7153 if (nsec >= timeRequestedNS) { in updateClientResponses()
7158 uint32_t timeToAckMS = NS_TO_MS(timeRequestedNS - nsec); in updateClientResponses()