Lines Matching refs:ret

619 	int ret, retry, i;  in dw_hdmi_i2c_read()  local
670 ret = dw_hdmi_i2c_wait(hdmi); in dw_hdmi_i2c_read()
671 if (ret == -EAGAIN) { in dw_hdmi_i2c_read()
678 } else if (ret == -EIO) { in dw_hdmi_i2c_read()
711 int ret, retry; in dw_hdmi_i2c_write() local
741 ret = dw_hdmi_i2c_wait(hdmi); in dw_hdmi_i2c_write()
742 if (ret == -EAGAIN) { in dw_hdmi_i2c_write()
749 } else if (ret == -EIO) { in dw_hdmi_i2c_write()
779 int i, ret = 0; in dw_hdmi_i2c_xfer() local
832 ret = dw_hdmi_i2c_read(hdmi, msgs[i].buf, in dw_hdmi_i2c_xfer()
835 ret = dw_hdmi_i2c_write(hdmi, msgs[i].buf, in dw_hdmi_i2c_xfer()
838 if (ret < 0) in dw_hdmi_i2c_xfer()
842 if (!ret) in dw_hdmi_i2c_xfer()
843 ret = num; in dw_hdmi_i2c_xfer()
851 return ret; in dw_hdmi_i2c_xfer()
868 int ret; in dw_hdmi_i2c_adapter() local
885 ret = i2c_add_adapter(adap); in dw_hdmi_i2c_adapter()
886 if (ret) { in dw_hdmi_i2c_adapter()
889 return ERR_PTR(ret); in dw_hdmi_i2c_adapter()
1948 int ret; in hdmi_phy_configure() local
1966 ret = pdata->configure_phy(hdmi, pdata->priv_data, mpixelclock); in hdmi_phy_configure()
1968 ret = phy->configure(hdmi, pdata, mpixelclock); in hdmi_phy_configure()
1969 if (ret) { in hdmi_phy_configure()
1972 return ret; in hdmi_phy_configure()
1986 int i, ret; in dw_hdmi_phy_init() local
1993 ret = hdmi_phy_configure(hdmi, display); in dw_hdmi_phy_init()
1994 if (ret) in dw_hdmi_phy_init()
1995 return ret; in dw_hdmi_phy_init()
2721 int ret; in dw_hdmi_setup() local
2845 ret = hdmi->phy.ops->init(hdmi, hdmi->phy.data, in dw_hdmi_setup()
2848 if (ret) in dw_hdmi_setup()
2849 return ret; in dw_hdmi_setup()
3066 int ret; in dw_hdmi_update_hdr_property() local
3078 ret = drm_property_replace_global_blob(dev, &blob, size, metadata, in dw_hdmi_update_hdr_property()
3080 return ret; in dw_hdmi_update_hdr_property()
3093 int i, ret = 0; in dw_hdmi_connector_get_modes() local
3104 ret = drm_add_edid_modes(connector, edid); in dw_hdmi_connector_get_modes()
3134 ret++; in dw_hdmi_connector_get_modes()
3146 return ret; in dw_hdmi_connector_get_modes()
3163 bool ret = false; in dw_hdmi_color_changed() local
3166 ret = hdmi->plat_data->get_color_changed(data); in dw_hdmi_color_changed()
3168 return ret; in dw_hdmi_color_changed()
3176 int i, ret; in hdr_metadata_equal() local
3207 ret = !memcmp(old_blob->data, new_blob->data, old_blob->length); in hdr_metadata_equal()
3209 if (!ret && new_blob) { in hdr_metadata_equal()
3220 return ret; in hdr_metadata_equal()
3927 int ret; in dw_hdmi_bridge_attach() local
3934 ret = drm_bridge_attach(bridge->encoder, hdmi->next_bridge, bridge, flags); in dw_hdmi_bridge_attach()
3935 if (ret) { in dw_hdmi_bridge_attach()
3937 return ret; in dw_hdmi_bridge_attach()
4099 irqreturn_t ret = IRQ_NONE; in dw_hdmi_hardirq() local
4102 ret = dw_hdmi_i2c_irq(hdmi); in dw_hdmi_hardirq()
4117 return ret; in dw_hdmi_hardirq()
4724 int ret; in dw_hdmi_probe() local
4784 ret = PTR_ERR(hdmi->regs); in dw_hdmi_probe()
4791 ret = PTR_ERR(hdmi->regm); in dw_hdmi_probe()
4800 ret = PTR_ERR(hdmi->isfr_clk); in dw_hdmi_probe()
4801 dev_err(hdmi->dev, "Unable to get HDMI isfr clk: %d\n", ret); in dw_hdmi_probe()
4805 ret = clk_prepare_enable(hdmi->isfr_clk); in dw_hdmi_probe()
4806 if (ret) { in dw_hdmi_probe()
4807 dev_err(hdmi->dev, "Cannot enable HDMI isfr clock: %d\n", ret); in dw_hdmi_probe()
4813 ret = PTR_ERR(hdmi->iahb_clk); in dw_hdmi_probe()
4814 dev_err(hdmi->dev, "Unable to get HDMI iahb clk: %d\n", ret); in dw_hdmi_probe()
4818 ret = clk_prepare_enable(hdmi->iahb_clk); in dw_hdmi_probe()
4819 if (ret) { in dw_hdmi_probe()
4820 dev_err(hdmi->dev, "Cannot enable HDMI iahb clock: %d\n", ret); in dw_hdmi_probe()
4828 ret = PTR_ERR(hdmi->cec_clk); in dw_hdmi_probe()
4829 if (ret != -EPROBE_DEFER) in dw_hdmi_probe()
4831 ret); in dw_hdmi_probe()
4836 ret = clk_prepare_enable(hdmi->cec_clk); in dw_hdmi_probe()
4837 if (ret) { in dw_hdmi_probe()
4839 ret); in dw_hdmi_probe()
4854 ret = -ENODEV; in dw_hdmi_probe()
4858 ret = dw_hdmi_detect_phy(hdmi); in dw_hdmi_probe()
4859 if (ret < 0) in dw_hdmi_probe()
4867 ret = get_force_logo_property(hdmi); in dw_hdmi_probe()
4868 if (ret) in dw_hdmi_probe()
4873 ret = hdmi_readb(hdmi, HDMI_PHY_STAT0); in dw_hdmi_probe()
4874 if (((ret & HDMI_PHY_TX_PHY_LOCK) && (ret & HDMI_PHY_HPD) && in dw_hdmi_probe()
4885 } else if (ret & HDMI_PHY_TX_PHY_LOCK) { in dw_hdmi_probe()
4895 ret = irq; in dw_hdmi_probe()
4900 ret = devm_request_threaded_irq(dev, irq, dw_hdmi_hardirq, in dw_hdmi_probe()
4903 if (ret) in dw_hdmi_probe()
4965 ret = -ENODEV; in dw_hdmi_probe()
4973 ret = -EPROBE_DEFER; in dw_hdmi_probe()
5042 ret = PTR_ERR(hdmi->extcon); in dw_hdmi_probe()
5043 dev_err(hdmi->dev, "allocate extcon failed: %d\n", ret); in dw_hdmi_probe()
5047 ret = devm_extcon_dev_register(hdmi->dev, hdmi->extcon); in dw_hdmi_probe()
5048 if (ret) { in dw_hdmi_probe()
5050 ret); in dw_hdmi_probe()
5054 ret = extcon_set_property_capability(hdmi->extcon, EXTCON_DISP_HDMI, in dw_hdmi_probe()
5056 if (ret) { in dw_hdmi_probe()
5059 ret); in dw_hdmi_probe()
5088 return ERR_PTR(ret); in dw_hdmi_probe()
5143 int ret; in dw_hdmi_bind() local
5149 ret = drm_bridge_attach(encoder, &hdmi->bridge, NULL, 0); in dw_hdmi_bind()
5150 if (ret) { in dw_hdmi_bind()
5153 return ERR_PTR(ret); in dw_hdmi_bind()