Lines Matching refs:timer
1111 * This is an older (?) timer init routine which doesn't
1117 NdisInitializeTimer(timer, func, ctx)
1118 ndis_timer *timer;
1122 KeInitializeTimer(&timer->nt_ktimer);
1123 KeInitializeDpc(&timer->nt_kdpc, func, ctx);
1124 KeSetImportanceDpc(&timer->nt_kdpc, KDPC_IMPORTANCE_LOW);
1128 ndis_timercall(dpc, timer, sysarg1, sysarg2)
1130 ndis_miniport_timer *timer;
1140 if (NDIS_SERIALIZED(timer->nmt_block))
1141 KeAcquireSpinLockAtDpcLevel(&timer->nmt_block->nmb_lock);
1143 MSCALL4(timer->nmt_timerfunc, dpc, timer->nmt_timerctx,
1146 if (NDIS_SERIALIZED(timer->nmt_block))
1147 KeReleaseSpinLockFromDpcLevel(&timer->nmt_block->nmb_lock);
1151 * For a long time I wondered why there were two NDIS timer initialization
1155 * allows for another level of indirection: when the timer fires, we
1156 * can have our own timer function invoked, and from there we can call
1158 * me: for serialized miniports, the timer callouts are not re-entrant.
1168 NdisMInitializeTimer(timer, handle, func, ctx)
1169 ndis_miniport_timer *timer;
1182 timer->nmt_timerfunc = func;
1183 timer->nmt_timerctx = ctx;
1184 timer->nmt_block = handle;
1187 * Set up the timer so it will call our intermediate DPC.
1192 KeInitializeTimer(&timer->nmt_ktimer);
1193 KeInitializeDpc(&timer->nmt_kdpc,
1194 ndis_findwrap((funcptr)ndis_timercall), timer);
1195 timer->nmt_ktimer.k_dpc = &timer->nmt_kdpc;
1203 NdisSetTimer(timer, msecs)
1204 ndis_timer *timer;
1211 KeSetTimer(&timer->nt_ktimer,
1212 ((int64_t)msecs * -10000), &timer->nt_kdpc);
1216 NdisMSetPeriodicTimer(timer, msecs)
1217 ndis_miniport_timer *timer;
1220 KeSetTimerEx(&timer->nmt_ktimer,
1221 ((int64_t)msecs * -10000), msecs, &timer->nmt_kdpc);
1228 * structure just to cancel a timer.
1232 NdisMCancelTimer(timer, cancelled)
1233 ndis_timer *timer;
1237 *cancelled = KeCancelTimer(&timer->nt_ktimer);
2410 ktimer timer;
2421 KeInitializeTimer(&timer);
2422 KeSetTimer(&timer, ((int64_t)usecs * -10), NULL);
2423 KeWaitForSingleObject(&timer, 0, 0, FALSE, NULL);