Lines Matching defs:task
165 * state until the discovery task has run for the first time.
232 printf("%s: can't create task thread\n", DEVNAME(sc));
240 struct sdmmc_task *task;
248 for (task = TAILQ_FIRST(&sc->sc_tskq); task != NULL;
249 task = TAILQ_FIRST(&sc->sc_tskq)) {
251 sdmmc_del_task(task);
252 task->func(task->arg);
280 sdmmc_add_task(struct sdmmc_softc *sc, struct sdmmc_task *task)
285 TAILQ_INSERT_TAIL(&sc->sc_tskq, task, next);
286 task->onqueue = 1;
287 task->sc = sc;
293 sdmmc_del_task(struct sdmmc_task *task)
295 struct sdmmc_softc *sc = task->sc;
302 task->sc = NULL;
303 task->onqueue = 0;
304 TAILQ_REMOVE(&sc->sc_tskq, task, next);