Lines Matching refs:mesg
240 static int rspi_send_pio(struct rspi_data *rspi, struct spi_message *mesg, in rspi_send_pio() argument
268 static int rspi_receive_pio(struct rspi_data *rspi, struct spi_message *mesg, in rspi_receive_pio() argument
313 struct spi_message *mesg; in rspi_work() local
320 mesg = list_entry(rspi->queue.next, struct spi_message, queue); in rspi_work()
321 list_del_init(&mesg->queue); in rspi_work()
326 list_for_each_entry(t, &mesg->transfers, transfer_list) { in rspi_work()
328 ret = rspi_send_pio(rspi, mesg, t); in rspi_work()
333 ret = rspi_receive_pio(rspi, mesg, t); in rspi_work()
337 mesg->actual_length += t->len; in rspi_work()
341 mesg->status = 0; in rspi_work()
342 mesg->complete(mesg->context); in rspi_work()
350 mesg->status = ret; in rspi_work()
351 mesg->complete(mesg->context); in rspi_work()
367 static int rspi_transfer(struct spi_device *spi, struct spi_message *mesg) in rspi_transfer() argument
372 mesg->actual_length = 0; in rspi_transfer()
373 mesg->status = -EINPROGRESS; in rspi_transfer()
376 list_add_tail(&mesg->queue, &rspi->queue); in rspi_transfer()