Lines Matching refs:task

38 static int  tekram_change_speed(struct irda_task *task);
39 static int tekram_reset(struct irda_task *task);
110 static int tekram_change_speed(struct irda_task *task) in tekram_change_speed() argument
112 dongle_t *self = (dongle_t *) task->instance; in tekram_change_speed()
113 __u32 speed = (__u32) task->param; in tekram_change_speed()
119 ASSERT(task != NULL, return -1;); in tekram_change_speed()
121 if (self->speed_task && self->speed_task != task) { in tekram_change_speed()
125 self->speed_task = task; in tekram_change_speed()
146 switch (task->state) { in tekram_change_speed()
153 if (irda_task_execute(self, tekram_reset, NULL, task, in tekram_change_speed()
157 irda_task_next_state(task, IRDA_TASK_CHILD_WAIT); in tekram_change_speed()
162 irda_task_next_state(task, IRDA_TASK_CHILD_DONE); in tekram_change_speed()
178 irda_task_next_state(task, IRDA_TASK_WAIT); in tekram_change_speed()
187 irda_task_next_state(task, IRDA_TASK_DONE); in tekram_change_speed()
191 ERROR("%s(), unknown state %d\n", __FUNCTION__, task->state); in tekram_change_speed()
192 irda_task_next_state(task, IRDA_TASK_DONE); in tekram_change_speed()
213 int tekram_reset(struct irda_task *task) in tekram_reset() argument
215 dongle_t *self = (dongle_t *) task->instance; in tekram_reset()
220 ASSERT(task != NULL, return -1;); in tekram_reset()
222 if (self->reset_task && self->reset_task != task) { in tekram_reset()
226 self->reset_task = task; in tekram_reset()
232 switch (task->state) { in tekram_reset()
234 irda_task_next_state(task, IRDA_TASK_WAIT1); in tekram_reset()
243 irda_task_next_state(task, IRDA_TASK_WAIT2); in tekram_reset()
255 irda_task_next_state(task, IRDA_TASK_DONE); in tekram_reset()
259 ERROR("%s(), unknown state %d\n", __FUNCTION__, task->state); in tekram_reset()
260 irda_task_next_state(task, IRDA_TASK_DONE); in tekram_reset()