Lines Matching defs:active
47 bool active;
170 if (!data->wakeup && !data->active) {
171 data->active = true;
199 data->active = ret;
206 bool active,
215 data->active = false;
217 data->active, msecs_to_jiffies(SIRF_REPORT_CYCLE));
221 if (ret > 0 && !active)
224 if (ret == 0 && active)
230 static int sirf_wait_for_power_state(struct sirf_data *data, bool active,
236 return sirf_wait_for_power_state_nowakeup(data, active, timeout);
239 data->active == active, msecs_to_jiffies(timeout));
244 dev_warn(&data->serdev->dev, "timeout waiting for active state = %d\n",
245 active);
259 static int sirf_set_active(struct sirf_data *data, bool active)
265 if (active)
278 ret = sirf_wait_for_power_state(data, active, timeout);
467 data->active = ret;
483 data->active = false;
493 /* Force hibernate mode if already active. */
494 if (data->active) {