Lines Matching refs:rc
75 int rc = 0, i; in wil_can_suspend() local
85 rc = -EBUSY; in wil_can_suspend()
89 rc = -EBUSY; in wil_can_suspend()
104 rc = -EBUSY; in wil_can_suspend()
109 rc = -EBUSY; in wil_can_suspend()
121 rc = -EBUSY; in wil_can_suspend()
130 is_runtime ? "runtime" : "system", rc ? "No" : "Yes", rc); in wil_can_suspend()
132 if (rc) in wil_can_suspend()
135 return rc; in wil_can_suspend()
140 int rc = 0; in wil_resume_keep_radio_on() local
153 rc = wmi_resume(wil); in wil_resume_keep_radio_on()
154 if (rc) { in wil_resume_keep_radio_on()
155 wil_err(wil, "device failed to resume (%d)\n", rc); in wil_resume_keep_radio_on()
158 rc = wil_down(wil); in wil_resume_keep_radio_on()
159 if (rc) { in wil_resume_keep_radio_on()
160 wil_err(wil, "wil_down failed (%d)\n", rc); in wil_resume_keep_radio_on()
163 rc = wil_up(wil); in wil_resume_keep_radio_on()
164 if (rc) { in wil_resume_keep_radio_on()
165 wil_err(wil, "wil_up failed (%d)\n", rc); in wil_resume_keep_radio_on()
174 if (rc) in wil_resume_keep_radio_on()
176 return rc; in wil_resume_keep_radio_on()
181 int rc = 0; in wil_suspend_keep_radio_on() local
187 rc = down_write_trylock(&wil->mem_lock); in wil_suspend_keep_radio_on()
188 if (!rc) { in wil_suspend_keep_radio_on()
191 rc); in wil_suspend_keep_radio_on()
220 rc = wmi_suspend(wil); in wil_suspend_keep_radio_on()
221 if (rc) { in wil_suspend_keep_radio_on()
223 rc); in wil_suspend_keep_radio_on()
262 rc = wil->platform_ops.suspend(wil->platform_handle, true); in wil_suspend_keep_radio_on()
263 if (rc) { in wil_suspend_keep_radio_on()
265 rc); in wil_suspend_keep_radio_on()
280 return rc; in wil_suspend_keep_radio_on()
285 rc = wmi_resume(wil); in wil_suspend_keep_radio_on()
287 if (!rc) { in wil_suspend_keep_radio_on()
288 rc = -EBUSY; in wil_suspend_keep_radio_on()
291 return rc; in wil_suspend_keep_radio_on()
301 int rc = 0; in wil_suspend_radio_off() local
306 rc = down_write_trylock(&wil->mem_lock); in wil_suspend_radio_off()
307 if (!rc) { in wil_suspend_radio_off()
310 rc); in wil_suspend_radio_off()
324 rc = wil_down(wil); in wil_suspend_radio_off()
325 if (rc) { in wil_suspend_radio_off()
326 wil_err(wil, "wil_down : %d\n", rc); in wil_suspend_radio_off()
337 rc = wil->platform_ops.suspend(wil->platform_handle, false); in wil_suspend_radio_off()
338 if (rc) { in wil_suspend_radio_off()
349 wil_dbg_pm(wil, "suspend radio off: %d\n", rc); in wil_suspend_radio_off()
351 return rc; in wil_suspend_radio_off()
356 int rc = 0; in wil_resume_radio_off() local
370 rc = wil_up(wil); in wil_resume_radio_off()
374 return rc; in wil_resume_radio_off()
379 int rc = 0; in wil_suspend() local
389 rc = wil_suspend_radio_off(wil); in wil_suspend()
391 rc = wil_suspend_keep_radio_on(wil); in wil_suspend()
394 is_runtime ? "runtime" : "system", rc); in wil_suspend()
396 return rc; in wil_suspend()
401 int rc = 0; in wil_resume() local
406 rc = wil->platform_ops.resume(wil->platform_handle, in wil_resume()
408 if (rc) { in wil_resume()
409 wil_err(wil, "platform_ops.resume : %d\n", rc); in wil_resume()
415 rc = wil_resume_keep_radio_on(wil); in wil_resume()
417 rc = wil_resume_radio_off(wil); in wil_resume()
421 rc); in wil_resume()
422 return rc; in wil_resume()
445 int rc; in wil_pm_runtime_get() local
448 rc = pm_runtime_get_sync(dev); in wil_pm_runtime_get()
449 if (rc < 0) { in wil_pm_runtime_get()
450 wil_err(wil, "pm_runtime_get_sync() failed, rc = %d\n", rc); in wil_pm_runtime_get()
452 return rc; in wil_pm_runtime_get()