Lines Matching defs:mesg
150 static int spi_sh_send(struct spi_sh_data *ss, struct spi_message *mesg,
197 if (list_is_last(&t->transfer_list, &mesg->transfers)) {
215 static int spi_sh_receive(struct spi_sh_data *ss, struct spi_message *mesg,
272 struct spi_message *mesg)
282 list_for_each_entry(t, &mesg->transfers, transfer_list) {
289 ret = spi_sh_send(ss, mesg, t);
294 ret = spi_sh_receive(ss, mesg, t);
298 mesg->actual_length += t->len;
301 mesg->status = 0;
316 mesg->status = ret;
318 if (mesg->complete)
319 mesg->complete(mesg->context);