Lines Matching refs:ret
225 int ret;
228 ret = readl_poll_timeout(priv->io + ICMCR, val, !(val & FSDA), 10,
230 if (ret) {
233 ret = i2c_recover_bus(&priv->adap);
236 return ret;
601 int ret;
604 ret = i2c_slave_event(priv->slave, I2C_SLAVE_WRITE_RECEIVED, &value);
606 rcar_i2c_write(priv, ICSCR, SIE | SDBS | (ret < 0 ? FNA : 0));
718 int ret;
737 ret = dmaengine_slave_config(chan, &cfg);
738 if (ret) {
740 chan_name, ret);
742 return ERR_PTR(ret);
788 int ret;
790 ret = reset_control_reset(priv->rstc);
791 if (ret)
792 return ret;
794 return read_poll_timeout_atomic(reset_control_status, ret, ret == 0, 1,
804 int i, ret;
810 ret = rcar_i2c_bus_barrier(priv);
811 if (ret < 0)
818 ret = rcar_i2c_do_reset(priv);
819 if (ret == 0)
844 ret = -ETIMEDOUT;
846 ret = -ENXIO;
848 ret = -EAGAIN;
850 ret = num - priv->msgs_left; /* The number of transfer */
855 if (ret < 0 && ret != -ENXIO)
856 dev_err(dev, "error %d : %x\n", ret, priv->flags);
858 return ret;
959 int ret;
1001 ret = rcar_i2c_clock_calculate(priv);
1002 if (ret < 0) {
1017 ret = reset_control_status(priv->rstc);
1018 if (ret < 0)
1032 ret = platform_get_irq(pdev, 0);
1033 if (ret < 0)
1035 priv->irq = ret;
1036 ret = devm_request_irq(dev, priv->irq, irqhandler, irqflags, dev_name(dev), priv);
1037 if (ret < 0) {
1044 ret = i2c_add_numbered_adapter(adap);
1045 if (ret < 0)
1051 ret = PTR_ERR(priv->host_notify_client);
1067 return ret;