Lines Matching defs:timer

41 	struct ISCI_TIMER *timer = (struct ISCI_TIMER *)arg;
43 isci_log_message(3, "TIMER", "timeout %p\n", timer);
45 /* callout_stop() will *not* keep the timer from running if it is
49 * the timer routine should actually be run or not.
51 if (timer->is_started == TRUE)
52 timer->callback(timer->cookie);
56 * @brief This callback method asks the user to start the supplied timer.
60 * removes the timer from it's list when a timer actually fires.
62 * calls from the SCI Framework to stop a timer that may already
66 * which this timer is to associated.
67 * @param[in] timer This parameter specifies the timer to be started.
75 scif_cb_timer_start(SCI_CONTROLLER_HANDLE_T controller, void *timer,
78 struct ISCI_TIMER *isci_timer = (struct ISCI_TIMER *)timer;
81 isci_log_message(3, "TIMER", "start %p %d\n", timer, milliseconds);
83 isci_timer_timeout, timer);
87 * @brief This callback method asks the user to stop the supplied timer.
90 * which this timer is to associated.
91 * @param[in] timer This parameter specifies the timer to be stopped.
96 scif_cb_timer_stop(SCI_CONTROLLER_HANDLE_T controller, void *timer)
98 struct ISCI_TIMER *isci_timer = (struct ISCI_TIMER *)timer;
100 isci_log_message(3, "TIMER", "stop %p\n", timer);
106 * @brief This callback method asks the user to create a timer and provide
107 * a handle for this timer for use in further timer interactions.
114 * to be invoked whenever the timer expires.
116 * which this timer is to be associated.
119 * user anytime a timeout occurs for the created timer.
121 * @return This method returns a handle to a timer object created by the
123 * relating to this timer.
131 struct ISCI_TIMER *timer;
133 sci_pool_get(isci_controller->timer_pool, timer);
135 callout_init_mtx(&timer->callout, &isci_controller->lock, FALSE);
137 timer->callback = timer_callback;
138 timer->cookie = cookie;
139 timer->is_started = FALSE;
141 isci_log_message(3, "TIMER", "create %p %p %p\n", timer, timer_callback, cookie);
143 return (timer);
147 * @brief This callback method asks the user to destory the supplied timer.
150 * which this timer is to associated.
151 * @param[in] timer This parameter specifies the timer to be destroyed.