Lines Matching defs:ret
109 typedef void (*sii8620_cb)(struct sii8620 *ctx, int ret);
114 u8 ret;
139 int ret = ctx->error;
142 return ret;
164 int ret;
169 ret = i2c_transfer(client->adapter, msg, 2);
170 dev_dbg(dev, "read at %04x: %*ph, %d\n", addr, len, buf, ret);
172 if (ret != 2) {
174 addr, len, ret);
175 ctx->error = ret < 0 ? ret : -EIO;
181 u8 ret = 0;
183 sii8620_read_buf(ctx, addr, &ret, 1);
184 return ret;
198 int ret;
217 ret = i2c_transfer(client->adapter, &msg, 1);
218 dev_dbg(dev, "write at %04x: %*ph, %d\n", addr, len, buf, ret);
220 if (ret != 1) {
222 addr, len, buf, ret);
223 ctx->error = ret ?: -EIO;
295 msg->continuation(ctx, msg->ret);
580 ctx->xdevcap[reg] = msg->ret;
582 ctx->devcap[reg] = msg->ret;
936 int ret;
938 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies);
939 if (ret)
940 return ret;
943 ret = clk_prepare_enable(ctx->clk_xtal);
944 if (ret)
945 return ret;
1102 int ret;
1104 ret = drm_hdmi_avi_infoframe_from_display_mode(&frm.avi,
1109 if (!ret)
1110 ret = hdmi_avi_infoframe_pack(&frm.avi, buf, ARRAY_SIZE(buf));
1111 if (ret > 0)
1112 sii8620_write_buf(ctx, REG_TPI_AVI_CHSUM, buf + 3, ret - 3);
1136 ret = mhl3_infoframe_init(&mhl_frm);
1137 if (!ret)
1138 ret = mhl3_infoframe_pack(&mhl_frm, buf, ARRAY_SIZE(buf));
1139 sii8620_write_buf(ctx, REG_TPI_INFO_B0, buf, ret);
1434 int ret;
1476 ret = sii8620_wait_for_fsm_state(ctx, 0x03);
1481 if (!ret)
1719 static void sii8620_ecbus_up(struct sii8620 *ctx, int ret)
1721 if (ret < 0)
1727 static void sii8620_got_ecbus_speed(struct sii8620 *ctx, int ret)
1729 if (ret < 0)
1822 msg->ret = sii8620_readb(ctx, REG_MSC_MT_RCVD_DATA0);
1838 msg->ret = buf[1];
1945 static void sii8620_got_xdevcap(struct sii8620 *ctx, int ret)
1947 if (ret < 0)
2029 int i, ret;
2042 ret = sii8620_clear_error(ctx);
2043 if (ret) {
2044 dev_err(ctx->dev, "Error during IRQ handling, %d.\n", ret);
2056 int ret;
2058 ret = sii8620_hw_on(ctx);
2059 if (ret) {
2060 dev_err(dev, "Error powering on, %d.\n", ret);
2065 ret = sii8620_clear_error(ctx);
2066 if (ret) {
2067 dev_err(dev, "Error accessing I2C bus, %d.\n", ret);
2087 ret = sii8620_clear_error(ctx);
2088 if (ret) {
2089 dev_err(dev, "Error accessing I2C bus, %d.\n", ret);
2099 int ret;
2118 ret = rc_register_device(rc_dev);
2120 if (ret) {
2122 ctx->error = ret;
2167 int ret;
2191 ret = extcon_register_notifier(edev, EXTCON_DISP_MHL, &ctx->extcon_nb);
2192 if (ret) {
2194 return ret;
2291 int ret;
2311 ret = devm_request_threaded_irq(dev, client->irq, NULL,
2315 if (ret < 0)
2316 return dev_err_probe(dev, ret,
2326 ret = devm_regulator_bulk_get(dev, 2, ctx->supplies);
2327 if (ret)
2328 return ret;
2330 ret = sii8620_extcon_init(ctx);
2331 if (ret < 0) {
2333 return ret;