Lines Matching full:online
45 int online = aq->config && zq->online ? 1 : 0; in online_show() local
47 return scnprintf(buf, PAGE_SIZE, "%d\n", online); in online_show()
57 int online; in online_store() local
59 if (sscanf(buf, "%d\n", &online) != 1 || online < 0 || online > 1) in online_store()
62 if (online && (!aq->config || !aq->card->config)) in online_store()
64 if (online && !zc->online) in online_store()
66 zq->online = online; in online_store()
68 ZCRYPT_DBF_INFO("%s queue=%02x.%04x online=%d\n", in online_store()
70 AP_QID_QUEUE(zq->queue->qid), online); in online_store()
72 ap_send_online_uevent(&aq->ap_dev, online); in online_store()
74 if (!online) in online_store()
79 static DEVICE_ATTR_RW(online);
102 bool zcrypt_queue_force_online(struct zcrypt_queue *zq, int online) in zcrypt_queue_force_online() argument
104 if (!!zq->online != !!online) { in zcrypt_queue_force_online()
105 zq->online = online; in zcrypt_queue_force_online()
106 if (!online) in zcrypt_queue_force_online()
175 zq->online = 1; /* New devices are online by default. */ in zcrypt_queue_register()
177 ZCRYPT_DBF_INFO("%s queue=%02x.%04x register online=1\n", in zcrypt_queue_register()