Lines Matching refs:timer
74 /* timer granularity is in msecs */
101 #define SIP_SET_TIMEOUT(timer, time) { \
104 (timer).sip_timeout_val.tv_sec = mtime / MILLISEC; \
105 mtime -= (timer).sip_timeout_val.tv_sec * MILLISEC; \
106 (timer).sip_timeout_val.tv_usec = mtime * MILLISEC; \
110 #define SIP_INIT_TIMER(timer, time) { \
111 SIP_SET_TIMEOUT(timer, time); \
112 (timer).sip_timerid = 0; \
115 #define SIP_SCHED_TIMER(timer, obj, func) { \
116 (timer).sip_timerid = sip_stack_timeout((void *)(obj), \
117 (func), &((timer).sip_timeout_val)); \
120 #define SIP_CANCEL_TIMER(timer) { \
121 if ((timer).sip_timerid != 0) { \
122 sip_stack_untimeout((timer).sip_timerid); \
123 (timer).sip_timerid = 0; \
128 #define SIP_GET_TIMEOUT(timer) \
129 ((timer).sip_timeout_val.tv_sec * MILLISEC + \
130 (timer).sip_timeout_val.tv_usec / MILLISEC)
132 #define SIP_IS_TIMER_RUNNING(timer) ((timer).sip_timerid != 0)