Lines Matching refs:task

36 static int  girbil_reset(struct irda_task *task);
39 static int girbil_change_speed(struct irda_task *task);
109 static int girbil_change_speed(struct irda_task *task) in girbil_change_speed() argument
111 dongle_t *self = (dongle_t *) task->instance; in girbil_change_speed()
112 __u32 speed = (__u32) task->param; in girbil_change_speed()
116 self->speed_task = task; in girbil_change_speed()
118 switch (task->state) { in girbil_change_speed()
122 if (irda_task_execute(self, girbil_reset, NULL, task, in girbil_change_speed()
126 irda_task_next_state(task, IRDA_TASK_CHILD_WAIT); in girbil_change_speed()
162 irda_task_next_state(task, IRDA_TASK_WAIT); in girbil_change_speed()
168 irda_task_next_state(task, IRDA_TASK_DONE); in girbil_change_speed()
172 ERROR("%s(), unknown state %d\n", __FUNCTION__, task->state); in girbil_change_speed()
173 irda_task_next_state(task, IRDA_TASK_DONE); in girbil_change_speed()
190 static int girbil_reset(struct irda_task *task) in girbil_reset() argument
192 dongle_t *self = (dongle_t *) task->instance; in girbil_reset()
196 self->reset_task = task; in girbil_reset()
198 switch (task->state) { in girbil_reset()
202 irda_task_next_state(task, IRDA_TASK_WAIT1); in girbil_reset()
209 irda_task_next_state(task, IRDA_TASK_WAIT2); in girbil_reset()
215 irda_task_next_state(task, IRDA_TASK_WAIT3); in girbil_reset()
221 irda_task_next_state(task, IRDA_TASK_DONE); in girbil_reset()
225 ERROR("%s(), unknown state %d\n", __FUNCTION__, task->state); in girbil_reset()
226 irda_task_next_state(task, IRDA_TASK_DONE); in girbil_reset()