Lines Matching refs:active
47 bool active; member
170 if (!data->wakeup && !data->active) { in sirf_receive_buf()
171 data->active = true; in sirf_receive_buf()
199 data->active = ret; in sirf_wakeup_handler()
206 bool active, in sirf_wait_for_power_state_nowakeup() argument
215 data->active = false; in sirf_wait_for_power_state_nowakeup()
217 data->active, msecs_to_jiffies(SIRF_REPORT_CYCLE)); in sirf_wait_for_power_state_nowakeup()
221 if (ret > 0 && !active) in sirf_wait_for_power_state_nowakeup()
224 if (ret == 0 && active) in sirf_wait_for_power_state_nowakeup()
230 static int sirf_wait_for_power_state(struct sirf_data *data, bool active, in sirf_wait_for_power_state() argument
236 return sirf_wait_for_power_state_nowakeup(data, active, timeout); in sirf_wait_for_power_state()
239 data->active == active, msecs_to_jiffies(timeout)); in sirf_wait_for_power_state()
245 active); in sirf_wait_for_power_state()
259 static int sirf_set_active(struct sirf_data *data, bool active) in sirf_set_active() argument
265 if (active) in sirf_set_active()
278 ret = sirf_wait_for_power_state(data, active, timeout); in sirf_set_active()
467 data->active = ret; in sirf_probe()
483 data->active = false; in sirf_probe()
494 if (data->active) { in sirf_probe()