Lines Matching refs:queue
139 * @work: Reference to work queue handler
142 * @wait: Wait queue for waking up upon receiving an
147 * @queue: SPI Message queue
181 struct list_head queue;
574 /* add message to queue */
575 list_add_tail(&pmsg->queue, &data->queue);
580 /* schedule work queue to run */
582 dev_dbg(&pspi->dev, "%s - Invoked queue work\n", __func__);
657 /* flush queue and set status of all transfers to -ENOMEM */
659 list_for_each_entry(pmsg, data->queue.next, queue) {
665 /* delete from queue */
666 list_del_init(&pmsg->queue);
729 if ((list_empty(&data->queue) == 0) &&
741 "%s suspend/remove initiated, flushing queue\n",
743 list_for_each_entry(pmsg, data->queue.next, queue) {
749 /* delete from queue */
750 list_del_init(&pmsg->queue);
1198 /* check if suspend has been initiated;if yes flush queue */
1201 "flushing queue\n", __func__);
1202 list_for_each_entry(pmsg, data->queue.next, queue) {
1211 /* delete from queue */
1212 list_del_init(&pmsg->queue);
1223 /* Get the message from the queue and delete it from there. */
1224 data->current_msg = list_entry(data->queue.next, struct spi_message,
1225 queue);
1227 list_del_init(&data->current_msg->queue);
1454 INIT_LIST_HEAD(&data->queue);
1515 /* check for any pending messages; no action is taken if the queue
1520 while ((list_empty(&data->queue) == 0) && --count) {
1521 dev_dbg(&board_dat->pdev->dev, "%s :queue not empty\n",