Lines Matching refs:context
618 … otSysMainloopContext *context = reinterpret_cast<otSysMainloopContext *>(aMainloopContext); in UpdateFdSet() local
620 assert(context != nullptr); in UpdateFdSet()
631 if (context->mMaxFd < mIntGpioValueFd) in UpdateFdSet()
633 context->mMaxFd = mIntGpioValueFd; in UpdateFdSet()
647 FD_SET(mIntGpioValueFd, &context->mReadFdSet); in UpdateFdSet()
707 if (timercmp(&timeout, &context->mTimeout, <)) in UpdateFdSet()
709 context->mTimeout = timeout; in UpdateFdSet()
715 …const otSysMainloopContext *context = reinterpret_cast<const otSysMainloopContext *>(aMainloopCont… in Process() local
717 assert(context != nullptr); in Process()
719 if (FD_ISSET(mIntGpioValueFd, &context->mReadFdSet)) in Process()
747 otSysMainloopContext context; in WaitForFrame() local
750 context.mMaxFd = -1; in WaitForFrame()
751 context.mTimeout.tv_sec = static_cast<time_t>((end - now) / OT_US_PER_S); in WaitForFrame()
752 context.mTimeout.tv_usec = static_cast<suseconds_t>((end - now) % OT_US_PER_S); in WaitForFrame()
754 FD_ZERO(&context.mReadFdSet); in WaitForFrame()
755 FD_ZERO(&context.mWriteFdSet); in WaitForFrame()
757 UpdateFdSet(&context); in WaitForFrame()
759 …ret = select(context.mMaxFd + 1, &context.mReadFdSet, &context.mWriteFdSet, nullptr, &context.mTim… in WaitForFrame()
763 Process(&context); in WaitForFrame()