Lines Matching refs:ret
33 int ret, err; in tegra186_bpmp_call() local
45 ret = tegra_ivc_write_get_next_frame(&priv->ivc, &ivc_frame); in tegra186_bpmp_call()
46 if (ret) { in tegra186_bpmp_call()
47 pr_err("tegra_ivc_write_get_next_frame() failed: %d\n", ret); in tegra186_bpmp_call()
48 return ret; in tegra186_bpmp_call()
56 ret = tegra_ivc_write_advance(&priv->ivc); in tegra186_bpmp_call()
57 if (ret) { in tegra186_bpmp_call()
58 pr_err("tegra_ivc_write_advance() failed: %d\n", ret); in tegra186_bpmp_call()
59 return ret; in tegra186_bpmp_call()
64 ret = tegra_ivc_channel_notified(&priv->ivc); in tegra186_bpmp_call()
65 if (ret) { in tegra186_bpmp_call()
66 pr_err("tegra_ivc_channel_notified() failed: %d\n", ret); in tegra186_bpmp_call()
67 return ret; in tegra186_bpmp_call()
70 ret = tegra_ivc_read_get_next_frame(&priv->ivc, &ivc_frame); in tegra186_bpmp_call()
71 if (!ret) in tegra186_bpmp_call()
77 ret); in tegra186_bpmp_call()
87 ret = tegra_ivc_read_advance(&priv->ivc); in tegra186_bpmp_call()
88 if (ret) { in tegra186_bpmp_call()
89 pr_err("tegra_ivc_write_advance() failed: %d\n", ret); in tegra186_bpmp_call()
90 return ret; in tegra186_bpmp_call()
109 int ret; in tegra186_bpmp_bind() local
114 ret = device_bind_driver_to_node(dev, "tegra186_clk", "tegra186_clk", in tegra186_bpmp_bind()
116 if (ret) in tegra186_bpmp_bind()
117 return ret; in tegra186_bpmp_bind()
119 ret = device_bind_driver_to_node(dev, "tegra186_reset", in tegra186_bpmp_bind()
122 if (ret) in tegra186_bpmp_bind()
123 return ret; in tegra186_bpmp_bind()
125 ret = device_bind_driver_to_node(dev, "tegra186_power_domain", in tegra186_bpmp_bind()
128 if (ret) in tegra186_bpmp_bind()
129 return ret; in tegra186_bpmp_bind()
131 ret = dm_scan_fdt_dev(dev); in tegra186_bpmp_bind()
132 if (ret) in tegra186_bpmp_bind()
133 return ret; in tegra186_bpmp_bind()
140 int ret; in tegra186_bpmp_get_shmem() local
144 ret = fdtdec_parse_phandle_with_args(gd->fdt_blob, dev_of_offset(dev), in tegra186_bpmp_get_shmem()
146 if (ret < 0) { in tegra186_bpmp_get_shmem()
147 pr_err("fdtdec_parse_phandle_with_args() failed: %d\n", ret); in tegra186_bpmp_get_shmem()
148 return ret; in tegra186_bpmp_get_shmem()
165 int ret; in tegra186_bpmp_ivc_notify() local
167 ret = mbox_send(&priv->mbox, NULL); in tegra186_bpmp_ivc_notify()
168 if (ret) in tegra186_bpmp_ivc_notify()
169 pr_err("mbox_send() failed: %d\n", ret); in tegra186_bpmp_ivc_notify()
175 int ret; in tegra186_bpmp_probe() local
180 ret = mbox_get_by_index(dev, 0, &priv->mbox); in tegra186_bpmp_probe()
181 if (ret) { in tegra186_bpmp_probe()
182 pr_err("mbox_get_by_index() failed: %d\n", ret); in tegra186_bpmp_probe()
183 return ret; in tegra186_bpmp_probe()
198 ret = tegra_ivc_init(&priv->ivc, rx_base, tx_base, BPMP_IVC_FRAME_COUNT, in tegra186_bpmp_probe()
200 if (ret) { in tegra186_bpmp_probe()
201 pr_err("tegra_ivc_init() failed: %d\n", ret); in tegra186_bpmp_probe()
202 return ret; in tegra186_bpmp_probe()
208 ret = tegra_ivc_channel_notified(&priv->ivc); in tegra186_bpmp_probe()
209 if (!ret) in tegra186_bpmp_probe()
214 pr_err("Initial IVC reset timed out (%d)\n", ret); in tegra186_bpmp_probe()
215 ret = -ETIMEDOUT; in tegra186_bpmp_probe()
225 return ret; in tegra186_bpmp_probe()