Home
last modified time | relevance | path

Searched refs:pDst (Results 1 – 2 of 2) sorted by relevance

/openbmc/openbmc-tools/pwmtachtool/src/
H A DEINTR_wrappers.c39 static void sigwrap_InitTimeout(SIGWRAP_TIMEOUT *pDst, const struct timespec *timeout) in sigwrap_InitTimeout() argument
41 pDst->Timeout = *timeout; in sigwrap_InitTimeout()
45 pDst->OnePoll = 1; in sigwrap_InitTimeout()
49 pDst->OnePoll = 0; in sigwrap_InitTimeout()
55pDst->EndTime.tv_sec = Now.tv_sec + pDst->Timeout.tv_sec; // Check necessary in 2038… in sigwrap_InitTimeout()
56 pDst->EndTime.tv_nsec = Now.tv_nsec + pDst->Timeout.tv_nsec; in sigwrap_InitTimeout()
58 if (pDst->EndTime.tv_nsec >= OneSecondasNS) in sigwrap_InitTimeout()
60 pDst->EndTime.tv_sec += (pDst->EndTime.tv_nsec / OneSecondasNS); in sigwrap_InitTimeout()
61 pDst->EndTime.tv_nsec = (pDst->EndTime.tv_nsec % OneSecondasNS); in sigwrap_InitTimeout()
/openbmc/openbmc-tools/adcapp/src/
H A DEINTR_wrappers.c39 static void sigwrap_InitTimeout(SIGWRAP_TIMEOUT *pDst, const struct timespec *timeout) in sigwrap_InitTimeout() argument
41 pDst->Timeout = *timeout; in sigwrap_InitTimeout()
45 pDst->OnePoll = 1; in sigwrap_InitTimeout()
49 pDst->OnePoll = 0; in sigwrap_InitTimeout()
55pDst->EndTime.tv_sec = Now.tv_sec + pDst->Timeout.tv_sec; // Check necessary in 2038… in sigwrap_InitTimeout()
56 pDst->EndTime.tv_nsec = Now.tv_nsec + pDst->Timeout.tv_nsec; in sigwrap_InitTimeout()
58 if (pDst->EndTime.tv_nsec >= OneSecondasNS) in sigwrap_InitTimeout()
60 pDst->EndTime.tv_sec += (pDst->EndTime.tv_nsec / OneSecondasNS); in sigwrap_InitTimeout()
61 pDst->EndTime.tv_nsec = (pDst->EndTime.tv_nsec % OneSecondasNS); in sigwrap_InitTimeout()