Lines Matching refs:task
31 static int act200l_reset(struct irda_task *task);
34 static int act200l_change_speed(struct irda_task *task);
137 static int act200l_change_speed(struct irda_task *task) in act200l_change_speed() argument
139 dongle_t *self = (dongle_t *) task->instance; in act200l_change_speed()
140 __u32 speed = (__u32) task->param; in act200l_change_speed()
146 self->speed_task = task; in act200l_change_speed()
148 switch (task->state) { in act200l_change_speed()
150 if (irda_task_execute(self, act200l_reset, NULL, task, in act200l_change_speed()
154 irda_task_next_state(task, IRDA_TASK_CHILD_WAIT); in act200l_change_speed()
195 irda_task_next_state(task, IRDA_TASK_WAIT); in act200l_change_speed()
202 irda_task_next_state(task, IRDA_TASK_DONE); in act200l_change_speed()
206 ERROR("%s(), unknown state %d\n", __FUNCTION__, task->state); in act200l_change_speed()
207 irda_task_next_state(task, IRDA_TASK_DONE); in act200l_change_speed()
220 static int act200l_reset(struct irda_task *task) in act200l_reset() argument
222 dongle_t *self = (dongle_t *) task->instance; in act200l_reset()
238 self->reset_task = task; in act200l_reset()
240 switch (task->state) { in act200l_reset()
245 irda_task_next_state(task, IRDA_TASK_WAIT1); in act200l_reset()
252 irda_task_next_state(task, IRDA_TASK_WAIT2); in act200l_reset()
261 irda_task_next_state(task, IRDA_TASK_WAIT3); in act200l_reset()
268 irda_task_next_state(task, IRDA_TASK_DONE); in act200l_reset()
272 ERROR("%s(), unknown state %d\n", __FUNCTION__, task->state); in act200l_reset()
273 irda_task_next_state(task, IRDA_TASK_DONE); in act200l_reset()