4 static void RxTimerHandler(unsigned long data
)
9 void vRxTimerInit(struct wbsoft_priv
*adapter
)
11 init_timer(&adapter
->Mds
.timer
);
12 adapter
->Mds
.timer
.function
= RxTimerHandler
;
13 adapter
->Mds
.timer
.data
= (unsigned long) adapter
;
16 void vRxTimerStart(struct wbsoft_priv
*adapter
, int timeout_value
)
18 if (timeout_value
< MIN_TIMEOUT_VAL
)
19 timeout_value
= MIN_TIMEOUT_VAL
;
21 adapter
->Mds
.timer
.expires
= jiffies
+ msecs_to_jiffies(timeout_value
);
22 add_timer(&adapter
->Mds
.timer
);
25 void vRxTimerStop(struct wbsoft_priv
*adapter
)
27 del_timer_sync(&adapter
->Mds
.timer
);