Lines Matching refs:mesg
153 static int spi_sh_send(struct spi_sh_data *ss, struct spi_message *mesg, in spi_sh_send() argument
200 if (list_is_last(&t->transfer_list, &mesg->transfers)) { in spi_sh_send()
218 static int spi_sh_receive(struct spi_sh_data *ss, struct spi_message *mesg, in spi_sh_receive() argument
277 struct spi_message *mesg; in spi_sh_work() local
286 mesg = list_entry(ss->queue.next, struct spi_message, queue); in spi_sh_work()
287 list_del_init(&mesg->queue); in spi_sh_work()
290 list_for_each_entry(t, &mesg->transfers, transfer_list) { in spi_sh_work()
297 ret = spi_sh_send(ss, mesg, t); in spi_sh_work()
302 ret = spi_sh_receive(ss, mesg, t); in spi_sh_work()
306 mesg->actual_length += t->len; in spi_sh_work()
310 mesg->status = 0; in spi_sh_work()
311 if (mesg->complete) in spi_sh_work()
312 mesg->complete(mesg->context); in spi_sh_work()
329 mesg->status = ret; in spi_sh_work()
330 if (mesg->complete) in spi_sh_work()
331 mesg->complete(mesg->context); in spi_sh_work()
358 static int spi_sh_transfer(struct spi_device *spi, struct spi_message *mesg) in spi_sh_transfer() argument
368 mesg->actual_length = 0; in spi_sh_transfer()
369 mesg->status = -EINPROGRESS; in spi_sh_transfer()
373 list_add_tail(&mesg->queue, &ss->queue); in spi_sh_transfer()