Lines Matching refs:retval
261 int retval; in i2c_sam0_dma_write_start() local
291 retval = dma_config(cfg->dma_dev, cfg->dma_channel, &dma_cfg); in i2c_sam0_dma_write_start()
292 if (retval != 0) { in i2c_sam0_dma_write_start()
294 dev->name, retval); in i2c_sam0_dma_write_start()
298 retval = dma_start(cfg->dma_dev, cfg->dma_channel); in i2c_sam0_dma_write_start()
299 if (retval != 0) { in i2c_sam0_dma_write_start()
301 dev->name, retval); in i2c_sam0_dma_write_start()
353 int retval; in i2c_sam0_dma_read_start() local
384 retval = dma_config(cfg->dma_dev, cfg->dma_channel, &dma_cfg); in i2c_sam0_dma_read_start()
385 if (retval != 0) { in i2c_sam0_dma_read_start()
387 dev->name, retval); in i2c_sam0_dma_read_start()
391 retval = dma_start(cfg->dma_dev, cfg->dma_channel); in i2c_sam0_dma_read_start()
392 if (retval != 0) { in i2c_sam0_dma_read_start()
394 dev->name, retval); in i2c_sam0_dma_read_start()
673 int retval; in i2c_sam0_configure() local
683 retval = i2c_sam0_set_apply_bitrate(dev, config); in i2c_sam0_configure()
688 if (retval != 0) { in i2c_sam0_configure()
689 return retval; in i2c_sam0_configure()
701 int retval; in i2c_sam0_initialize() local
720 retval = pinctrl_apply_state(cfg->pcfg, PINCTRL_STATE_DEFAULT); in i2c_sam0_initialize()
721 if (retval < 0) { in i2c_sam0_initialize()
722 return retval; in i2c_sam0_initialize()
737 retval = i2c_sam0_set_apply_bitrate(dev, in i2c_sam0_initialize()
739 if (retval != 0) { in i2c_sam0_initialize()
740 return retval; in i2c_sam0_initialize()