Lines Matching refs:busy
130 static void retry_erase(erase_busy_t *busy, u_int cause) in retry_erase() argument
132 eraseq_entry_t *erase = busy->erase; in retry_erase()
138 DEBUG(2, "cs: trying erase request 0x%p...\n", busy); in retry_erase()
139 if (busy->next) in retry_erase()
140 remove_queue(busy); in retry_erase()
154 insert_queue(&mtd->erase_busy, busy); in retry_erase()
159 insert_queue(&s->erase_busy, busy); in retry_erase()
160 mod_timer(&busy->timeout, jiffies + req.Timeout*HZ/1000); in retry_erase()
180 busy->client->event_callback_args.info = erase; in retry_erase()
181 EVENT(busy->client, CS_EVENT_ERASE_COMPLETE, CS_EVENT_PRI_LOW); in retry_erase()
182 kfree(busy); in retry_erase()
216 erase_busy_t *busy; in setup_erase_request() local
231 busy = kmalloc(sizeof(erase_busy_t), GFP_KERNEL); in setup_erase_request()
232 if (!busy) { in setup_erase_request()
236 busy->erase = erase; in setup_erase_request()
237 busy->client = handle; in setup_erase_request()
238 init_timer(&busy->timeout); in setup_erase_request()
239 busy->timeout.data = (u_long)busy; in setup_erase_request()
240 busy->timeout.function = &handle_erase_timeout; in setup_erase_request()
241 busy->prev = busy->next = NULL; in setup_erase_request()
242 retry_erase(busy, 0); in setup_erase_request()