Lines Matching refs:ret

44 	int core, proc_id, device_id, ret;  in k3_pwr_domain_on()  local
55 ret = ti_sci_proc_request(proc_id); in k3_pwr_domain_on()
56 if (ret) { in k3_pwr_domain_on()
57 ERROR("Request for processor failed: %d\n", ret); in k3_pwr_domain_on()
61 ret = ti_sci_proc_set_boot_cfg(proc_id, k3_sec_entrypoint, 0, 0); in k3_pwr_domain_on()
62 if (ret) { in k3_pwr_domain_on()
63 ERROR("Request to set core boot address failed: %d\n", ret); in k3_pwr_domain_on()
68 ret = ti_sci_proc_set_boot_ctrl(proc_id, in k3_pwr_domain_on()
72 if (ret) { in k3_pwr_domain_on()
73 ERROR("Request to clear boot configuration failed: %d\n", ret); in k3_pwr_domain_on()
77 ret = ti_sci_device_get(device_id); in k3_pwr_domain_on()
78 if (ret) { in k3_pwr_domain_on()
79 ERROR("Request to start core failed: %d\n", ret); in k3_pwr_domain_on()
88 int core, cluster, proc_id, device_id, cluster_id, ret; in k3_pwr_domain_off() local
108 ret = ti_sci_device_get(cluster_id); in k3_pwr_domain_off()
109 if (ret) { in k3_pwr_domain_off()
110 ERROR("Request to get cluster failed: %d\n", ret); in k3_pwr_domain_off()
116 ret = ti_sci_proc_wait_boot_status_no_wait(proc_id, in k3_pwr_domain_off()
124 if (ret) { in k3_pwr_domain_off()
125 ERROR("Sending wait for WFI failed (%d)\n", ret); in k3_pwr_domain_off()
130 ret = ti_sci_device_put_no_wait(device_id); in k3_pwr_domain_off()
131 if (ret) { in k3_pwr_domain_off()
132 ERROR("Sending core shutdown message failed (%d)\n", ret); in k3_pwr_domain_off()
141 ret = ti_sci_proc_set_boot_ctrl_no_wait(proc_id, in k3_pwr_domain_off()
143 if (ret) { in k3_pwr_domain_off()
144 ERROR("Sending set control message failed (%d)\n", ret); in k3_pwr_domain_off()
149 ret = ti_sci_proc_set_boot_ctrl_no_wait(proc_id, in k3_pwr_domain_off()
151 if (ret) { in k3_pwr_domain_off()
152 ERROR("Sending set control message failed (%d)\n", ret); in k3_pwr_domain_off()
157 ret = ti_sci_proc_wait_boot_status_no_wait(proc_id, in k3_pwr_domain_off()
160 if (ret) { in k3_pwr_domain_off()
161 ERROR("Sending wait message failed (%d)\n", ret); in k3_pwr_domain_off()
166 ret = ti_sci_proc_set_boot_ctrl_no_wait(proc_id, in k3_pwr_domain_off()
168 if (ret) { in k3_pwr_domain_off()
169 ERROR("Sending set control message failed (%d)\n", ret); in k3_pwr_domain_off()
174 ret = ti_sci_proc_set_boot_ctrl_no_wait(proc_id, in k3_pwr_domain_off()
176 if (ret) { in k3_pwr_domain_off()
177 ERROR("Sending set control message failed (%d)\n", ret); in k3_pwr_domain_off()
182 ret = ti_sci_proc_wait_boot_status_no_wait(proc_id, in k3_pwr_domain_off()
185 if (ret) { in k3_pwr_domain_off()
186 ERROR("Sending wait message failed (%d)\n", ret); in k3_pwr_domain_off()
191 ret = ti_sci_device_put_no_wait(cluster_id); in k3_pwr_domain_off()
192 if (ret) { in k3_pwr_domain_off()
193 ERROR("Sending cluster shutdown message failed (%d)\n", ret); in k3_pwr_domain_off()
208 int ret; in k3_system_off() local
211 ret = ti_sci_device_put_no_wait(PLAT_BOARD_DEVICE_ID); in k3_system_off()
212 if (ret != 0) { in k3_system_off()
213 ERROR("Sending system shutdown message failed (%d)\n", ret); in k3_system_off()
270 int ret; in k3_pwr_domain_suspend_dm_managed() local
272 ret = ti_sci_lpm_get_next_sys_mode(&mode); in k3_pwr_domain_suspend_dm_managed()
273 if (ret != 0) { in k3_pwr_domain_suspend_dm_managed()
318 int ret; in plat_setup_psci_ops() local
322 ret = ti_sci_query_fw_caps(&fw_caps); in plat_setup_psci_ops()
323 if (ret) { in plat_setup_psci_ops()
324 ERROR("Unable to query firmware capabilities (%d)\n", ret); in plat_setup_psci_ops()