Lines Matching refs:status

92     int status;  in ext_ppus_set_state()  local
95 status = system_power_ctx.ext_ppu_apis[i]->set_state( in ext_ppus_set_state()
97 if (status != FWK_SUCCESS) { in ext_ppus_set_state()
108 int status; in ext_ppus_shutdown() local
116 status = api->shutdown(ppu_id, system_shutdown); in ext_ppus_shutdown()
118 status = api->set_state(ppu_id, MOD_PD_STATE_OFF); in ext_ppus_shutdown()
120 if (status != FWK_SUCCESS) { in ext_ppus_shutdown()
128 int status; in set_system_power_state() local
138 status = dev_ctx->sys_ppu_api->set_state(dev_ctx->config->sys_ppu_id, in set_system_power_state()
140 if (status != FWK_SUCCESS) { in set_system_power_state()
141 return status; in set_system_power_state()
156 int status; in shutdown_system_power_ppus() local
165 status = api->shutdown(ppu_id, system_shutdown); in shutdown_system_power_ppus()
169 status = api->set_state(ppu_id, state); in shutdown_system_power_ppus()
171 if (status != FWK_SUCCESS) { in shutdown_system_power_ppus()
172 return status; in shutdown_system_power_ppus()
181 int status = FWK_SUCCESS; in disable_all_irqs() local
184 status = fwk_interrupt_disable(system_power_ctx.config->soc_wakeup_irq); in disable_all_irqs()
185 if (status != FWK_SUCCESS) { in disable_all_irqs()
191 status = system_power_ctx.driver_api->platform_interrupts( in disable_all_irqs()
193 if (status != FWK_SUCCESS) { in disable_all_irqs()
194 status = FWK_E_DEVICE; in disable_all_irqs()
198 return status; in disable_all_irqs()
205 int status; in shutdown() local
207 status = disable_all_irqs(); in shutdown()
208 if (status != FWK_SUCCESS) { in shutdown()
209 return status; in shutdown()
218 status = shutdown_system_power_ppus(system_shutdown); in shutdown()
219 if (status != FWK_SUCCESS) { in shutdown()
220 return status; in shutdown()
232 int status; in system_power_set_state() local
245 status = disable_all_irqs(); in system_power_set_state()
246 if (status != FWK_SUCCESS) { in system_power_set_state()
247 return status; in system_power_set_state()
250 status = set_system_power_state(state); in system_power_set_state()
251 if (status != FWK_SUCCESS) { in system_power_set_state()
252 return status; in system_power_set_state()
262 status = fwk_interrupt_clear_pending(soc_wakeup_irq); in system_power_set_state()
263 if (status != FWK_SUCCESS) { in system_power_set_state()
264 return status; in system_power_set_state()
268 status = in system_power_set_state()
271 if (status != FWK_SUCCESS) { in system_power_set_state()
276 status = set_system_power_state(state); in system_power_set_state()
277 if (status != FWK_SUCCESS) { in system_power_set_state()
278 return status; in system_power_set_state()
282 status = system_power_ctx.pd_driver_input_api->get_last_core_pd_id( in system_power_set_state()
284 if (status != FWK_SUCCESS) { in system_power_set_state()
285 return status; in system_power_set_state()
288 status = fwk_interrupt_enable(soc_wakeup_irq); in system_power_set_state()
289 if (status != FWK_SUCCESS) { in system_power_set_state()
290 return status; in system_power_set_state()
294 status = system_power_ctx.driver_api->platform_interrupts( in system_power_set_state()
296 if (status != FWK_SUCCESS) { in system_power_set_state()
304 status = disable_all_irqs(); in system_power_set_state()
305 if (status != FWK_SUCCESS) { in system_power_set_state()
306 return status; in system_power_set_state()
311 status = set_system_power_state(state); in system_power_set_state()
312 if (status != FWK_SUCCESS) { in system_power_set_state()
313 return status; in system_power_set_state()
340 int status; in system_power_shutdown() local
342 status = shutdown(pd_id, system_shutdown); in system_power_shutdown()
343 if (status != FWK_SUCCESS) { in system_power_shutdown()
344 return status; in system_power_shutdown()
352 int status; in soc_wakeup_handler() local
355 status = disable_all_irqs(); in soc_wakeup_handler()
356 if (status != FWK_SUCCESS) { in soc_wakeup_handler()
360 status = system_power_ctx.pd_restricted_api->set_state( in soc_wakeup_handler()
362 fwk_check(status == FWK_SUCCESS); in soc_wakeup_handler()
457 int status; in system_power_bind() local
485 status = fwk_module_bind( in system_power_bind()
489 if (status != FWK_SUCCESS) { in system_power_bind()
490 return status; in system_power_bind()
494 status = fwk_module_bind(config->driver_id, in system_power_bind()
497 if (status != FWK_SUCCESS) { in system_power_bind()
498 return status; in system_power_bind()
556 int status; in system_power_start() local
559 status = system_power_ctx.driver_api->platform_interrupts( in system_power_start()
561 if (status != FWK_SUCCESS) { in system_power_start()
562 return status; in system_power_start()