Lines Matching refs:task

65 static int  ma600_change_speed(struct irda_task *task);
66 static int ma600_reset(struct irda_task *task);
179 static int ma600_change_speed(struct irda_task *task) in ma600_change_speed() argument
181 dongle_t *self = (dongle_t *) task->instance; in ma600_change_speed()
182 __u32 speed = (__u32) task->param; in ma600_change_speed()
189 ASSERT(task != NULL, return -1;); in ma600_change_speed()
191 if (self->speed_task && self->speed_task != task) { in ma600_change_speed()
195 self->speed_task = task; in ma600_change_speed()
198 switch (task->state) { in ma600_change_speed()
205 if (irda_task_execute(self, ma600_reset, NULL, task, in ma600_change_speed()
208 irda_task_next_state(task, IRDA_TASK_CHILD_WAIT); in ma600_change_speed()
213 irda_task_next_state(task, IRDA_TASK_CHILD_DONE); in ma600_change_speed()
227 irda_task_next_state(task, IRDA_TASK_WAIT); in ma600_change_speed()
231 speed = (__u32) task->param; in ma600_change_speed()
237 irda_task_next_state(task, IRDA_TASK_WAIT1); in ma600_change_speed()
264 irda_task_next_state(task, IRDA_TASK_WAIT2); in ma600_change_speed()
271 irda_task_next_state(task, IRDA_TASK_DONE); in ma600_change_speed()
276 ERROR("%s(), unknown state %d\n", __FUNCTION__, task->state); in ma600_change_speed()
277 irda_task_next_state(task, IRDA_TASK_DONE); in ma600_change_speed()
296 int ma600_reset(struct irda_task *task) in ma600_reset() argument
298 dongle_t *self = (dongle_t *) task->instance; in ma600_reset()
303 ASSERT(task != NULL, return -1;); in ma600_reset()
305 if (self->reset_task && self->reset_task != task) { in ma600_reset()
309 self->reset_task = task; in ma600_reset()
311 switch (task->state) { in ma600_reset()
315 irda_task_next_state(task, IRDA_TASK_WAIT1); in ma600_reset()
321 irda_task_next_state(task, IRDA_TASK_WAIT2); in ma600_reset()
325 irda_task_next_state(task, IRDA_TASK_DONE); in ma600_reset()
329 ERROR("%s(), unknown state %d\n", __FUNCTION__, task->state); in ma600_reset()
330 irda_task_next_state(task, IRDA_TASK_DONE); in ma600_reset()