Lines Matching refs:task

32 static int  mcp2120_reset(struct irda_task *task);
35 static int mcp2120_change_speed(struct irda_task *task);
88 static int mcp2120_change_speed(struct irda_task *task) in mcp2120_change_speed() argument
90 dongle_t *self = (dongle_t *) task->instance; in mcp2120_change_speed()
91 __u32 speed = (__u32) task->param; in mcp2120_change_speed()
95 self->speed_task = task; in mcp2120_change_speed()
97 switch (task->state) { in mcp2120_change_speed()
102 if (irda_task_execute(self, mcp2120_reset, NULL, task, in mcp2120_change_speed()
106 irda_task_next_state(task, IRDA_TASK_CHILD_WAIT); in mcp2120_change_speed()
149 irda_task_next_state(task, IRDA_TASK_WAIT); in mcp2120_change_speed()
156 irda_task_next_state(task, IRDA_TASK_DONE); in mcp2120_change_speed()
161 ERROR("%s(), unknown state %d\n", __FUNCTION__, task->state); in mcp2120_change_speed()
162 irda_task_next_state(task, IRDA_TASK_DONE); in mcp2120_change_speed()
186 static int mcp2120_reset(struct irda_task *task) in mcp2120_reset() argument
188 dongle_t *self = (dongle_t *) task->instance; in mcp2120_reset()
191 self->reset_task = task; in mcp2120_reset()
193 switch (task->state) { in mcp2120_reset()
198 irda_task_next_state(task, IRDA_TASK_WAIT1); in mcp2120_reset()
205 irda_task_next_state(task, IRDA_TASK_WAIT2); in mcp2120_reset()
212 irda_task_next_state(task, IRDA_TASK_DONE); in mcp2120_reset()
216 ERROR("%s(), unknown state %d\n", __FUNCTION__ , task->state); in mcp2120_reset()
217 irda_task_next_state(task, IRDA_TASK_DONE); in mcp2120_reset()