Lines Matching defs:message
345 * @next_msg_cs_active: the next message in the queue has been examined
347 * message, so we left it active after the previous transfer, and it's
417 * This would be set according to the current message that would be served
469 * giveback - current spi_message is over, schedule next message and call
470 * callback of this message. Assumes that caller already
471 * set message->status; dma and pio irqs are blocked
494 * enabled if there is message in the queue and it is
499 * sent the current message could be unloaded, which
502 /* get a pointer to the next message, if any */
761 * next_transfer - Move to the Next transfer in the current spi message
765 * current spi message and returns with the state of current spi
766 * message i.e whether its last transfer is done(STATE_DONE) or
1240 * current message's state as STATE_ERROR and schedule the tasklet
1241 * pump_transfers which will do the postprocessing of the current message by
1254 "bad message state in interrupt handler");
1282 * mark message with bad status so it can be
1292 /* Schedule message queue handler */
1335 * This sets up the pointers to memory for the next message to
1343 /* Sanity check the message for this bus width */
1347 "message of %u bytes to transmit but the current "
1351 dev_err(&pl022->adev->dev, "skipping this message\n");
1373 struct spi_message *message = NULL;
1378 message = pl022->cur_msg;
1382 if (message->state == STATE_ERROR) {
1383 message->status = -EIO;
1388 /* Handle end of message */
1389 if (message->state == STATE_DONE) {
1390 message->status = 0;
1396 if (message->state == STATE_RUNNING) {
1411 message->state = STATE_RUNNING;
1415 message->state = STATE_ERROR;
1416 message->status = -EIO;
1500 struct spi_message *message = NULL;
1505 message = pl022->cur_msg;
1507 while (message->state != STATE_DONE) {
1509 if (message->state == STATE_ERROR)
1514 if (message->state == STATE_RUNNING) {
1523 message->state = STATE_RUNNING;
1531 message->state = STATE_ERROR;
1548 message->state = STATE_TIMEOUT;
1556 message->actual_length += pl022->cur_transfer->len;
1558 message->state = next_transfer(pl022);
1559 if (message->state != STATE_DONE
1564 /* Handle end of message */
1565 if (message->state == STATE_DONE)
1566 message->status = 0;
1567 else if (message->state == STATE_TIMEOUT)
1568 message->status = -EAGAIN;
1570 message->status = -EIO;
1581 /* Initial message state */