• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/isci/

Lines Matching refs:timer

43 	struct ISCI_TIMER *timer = (struct ISCI_TIMER *)arg;
45 isci_log_message(3, "TIMER", "timeout %p\n", timer);
47 /* callout_stop() will *not* keep the timer from running if it is
51 * the timer routine should actually be run or not.
53 if (timer->is_started == TRUE)
54 timer->callback(timer->cookie);
58 * @brief This callback method asks the user to start the supplied timer.
62 * removes the timer from it's list when a timer actually fires.
64 * calls from the SCI Framework to stop a timer that may already
68 * which this timer is to associated.
69 * @param[in] timer This parameter specifies the timer to be started.
77 scif_cb_timer_start(SCI_CONTROLLER_HANDLE_T controller, void *timer,
80 struct ISCI_TIMER *isci_timer = (struct ISCI_TIMER *)timer;
83 isci_log_message(3, "TIMER", "start %p %d\n", timer, milliseconds);
85 isci_timer_timeout, timer, 0);
89 * @brief This callback method asks the user to stop the supplied timer.
92 * which this timer is to associated.
93 * @param[in] timer This parameter specifies the timer to be stopped.
98 scif_cb_timer_stop(SCI_CONTROLLER_HANDLE_T controller, void *timer)
100 struct ISCI_TIMER *isci_timer = (struct ISCI_TIMER *)timer;
102 isci_log_message(3, "TIMER", "stop %p\n", timer);
108 * @brief This callback method asks the user to create a timer and provide
109 * a handle for this timer for use in further timer interactions.
116 * to be invoked whenever the timer expires.
118 * which this timer is to be associated.
121 * user anytime a timeout occurs for the created timer.
123 * @return This method returns a handle to a timer object created by the
125 * relating to this timer.
133 struct ISCI_TIMER *timer;
135 sci_pool_get(isci_controller->timer_pool, timer);
137 callout_init_mtx(&timer->callout, &isci_controller->lock, FALSE);
139 timer->callback = timer_callback;
140 timer->cookie = cookie;
141 timer->is_started = FALSE;
143 isci_log_message(3, "TIMER", "create %p %p %p\n", timer, timer_callback, cookie);
145 return (timer);
149 * @brief This callback method asks the user to destroy the supplied timer.
152 * which this timer is to associated.
153 * @param[in] timer This parameter specifies the timer to be destroyed.