Lines Matching defs:message
346 * @next_msg_cs_active: the next message in the queue has been examined
348 * message, so we left it active after the previous transfer, and it's
419 * This would be set according to the current message that would be served
478 * giveback - current spi_message is over, schedule next message and call
479 * callback of this message. Assumes that caller already
480 * set message->status; dma and pio irqs are blocked
503 * enabled if there is message in the queue and it is
508 * sent the current message could be unloaded, which
511 /* get a pointer to the next message, if any */
770 * next_transfer - Move to the Next transfer in the current spi message
774 * current spi message and returns with the state of current spi
775 * message i.e whether its last transfer is done(STATE_DONE) or
1249 * current message's state as STATE_ERROR and schedule the tasklet
1250 * pump_transfers which will do the postprocessing of the current message by
1263 "bad message state in interrupt handler");
1291 * mark message with bad status so it can be
1301 /* Schedule message queue handler */
1344 * This sets up the pointers to memory for the next message to
1352 /* Sanity check the message for this bus width */
1356 "message of %u bytes to transmit but the current "
1360 dev_err(&pl022->adev->dev, "skipping this message\n");
1382 struct spi_message *message = NULL;
1387 message = pl022->cur_msg;
1391 if (message->state == STATE_ERROR) {
1392 message->status = -EIO;
1397 /* Handle end of message */
1398 if (message->state == STATE_DONE) {
1399 message->status = 0;
1405 if (message->state == STATE_RUNNING) {
1420 message->state = STATE_RUNNING;
1424 message->state = STATE_ERROR;
1425 message->status = -EIO;
1509 struct spi_message *message = NULL;
1514 message = pl022->cur_msg;
1516 while (message->state != STATE_DONE) {
1518 if (message->state == STATE_ERROR)
1523 if (message->state == STATE_RUNNING) {
1532 message->state = STATE_RUNNING;
1540 message->state = STATE_ERROR;
1557 message->state = STATE_TIMEOUT;
1565 message->actual_length += pl022->cur_transfer->len;
1567 message->state = next_transfer(pl022);
1568 if (message->state != STATE_DONE
1573 /* Handle end of message */
1574 if (message->state == STATE_DONE)
1575 message->status = 0;
1576 else if (message->state == STATE_TIMEOUT)
1577 message->status = -EAGAIN;
1579 message->status = -EIO;
1590 /* Initial message state */