Lines Matching refs:retval
267 int retval; in i2c_sam0_dma_write_start() local
297 retval = dma_config(cfg->dma_dev, cfg->dma_channel, &dma_cfg); in i2c_sam0_dma_write_start()
298 if (retval != 0) { in i2c_sam0_dma_write_start()
300 dev->name, retval); in i2c_sam0_dma_write_start()
304 retval = dma_start(cfg->dma_dev, cfg->dma_channel); in i2c_sam0_dma_write_start()
305 if (retval != 0) { in i2c_sam0_dma_write_start()
307 dev->name, retval); in i2c_sam0_dma_write_start()
359 int retval; in i2c_sam0_dma_read_start() local
390 retval = dma_config(cfg->dma_dev, cfg->dma_channel, &dma_cfg); in i2c_sam0_dma_read_start()
391 if (retval != 0) { in i2c_sam0_dma_read_start()
393 dev->name, retval); in i2c_sam0_dma_read_start()
397 retval = dma_start(cfg->dma_dev, cfg->dma_channel); in i2c_sam0_dma_read_start()
398 if (retval != 0) { in i2c_sam0_dma_read_start()
400 dev->name, retval); in i2c_sam0_dma_read_start()
684 int retval; in i2c_sam0_configure() local
694 retval = i2c_sam0_set_apply_bitrate(dev, config); in i2c_sam0_configure()
699 if (retval != 0) { in i2c_sam0_configure()
700 return retval; in i2c_sam0_configure()
712 int retval; in i2c_sam0_initialize() local
731 retval = pinctrl_apply_state(cfg->pcfg, PINCTRL_STATE_DEFAULT); in i2c_sam0_initialize()
732 if (retval < 0) { in i2c_sam0_initialize()
733 return retval; in i2c_sam0_initialize()
748 retval = i2c_sam0_set_apply_bitrate(dev, in i2c_sam0_initialize()
750 if (retval != 0) { in i2c_sam0_initialize()
751 return retval; in i2c_sam0_initialize()