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