Lines Matching refs:retval

414 	int retval;  in spi_sam0_dma_rx_load()  local
439 retval = dma_config(cfg->dma_dev, cfg->rx_dma_channel, in spi_sam0_dma_rx_load()
441 if (retval != 0) { in spi_sam0_dma_rx_load()
442 return retval; in spi_sam0_dma_rx_load()
455 int retval; in spi_sam0_dma_tx_load() local
478 retval = dma_config(cfg->dma_dev, cfg->tx_dma_channel, in spi_sam0_dma_tx_load()
481 if (retval != 0) { in spi_sam0_dma_tx_load()
482 return retval; in spi_sam0_dma_tx_load()
516 int retval; in spi_sam0_dma_advance_buffers() local
524 retval = spi_sam0_dma_rx_load(dev, data->ctx.rx_buf, in spi_sam0_dma_advance_buffers()
527 retval = spi_sam0_dma_rx_load(dev, NULL, data->dma_segment_len); in spi_sam0_dma_advance_buffers()
530 if (retval != 0) { in spi_sam0_dma_advance_buffers()
531 return retval; in spi_sam0_dma_advance_buffers()
536 retval = spi_sam0_dma_tx_load(dev, data->ctx.tx_buf, in spi_sam0_dma_advance_buffers()
539 retval = spi_sam0_dma_tx_load(dev, NULL, data->dma_segment_len); in spi_sam0_dma_advance_buffers()
542 if (retval != 0) { in spi_sam0_dma_advance_buffers()
543 return retval; in spi_sam0_dma_advance_buffers()
555 int retval; in spi_sam0_dma_rx_done() local
570 retval = spi_sam0_dma_advance_buffers(dev); in spi_sam0_dma_rx_done()
571 if (retval != 0) { in spi_sam0_dma_rx_done()
575 spi_context_complete(&data->ctx, dev, retval); in spi_sam0_dma_rx_done()
590 int retval; in spi_sam0_transceive_async() local
602 retval = spi_sam0_configure(dev, config); in spi_sam0_transceive_async()
603 if (retval != 0) { in spi_sam0_transceive_async()
612 retval = spi_sam0_dma_advance_buffers(dev); in spi_sam0_transceive_async()
613 if (retval != 0) { in spi_sam0_transceive_async()
626 spi_context_release(&data->ctx, retval); in spi_sam0_transceive_async()
627 return retval; in spi_sam0_transceive_async()