Lines Matching refs:zq
155 struct zcrypt_queue *zq = NULL; in zcrypt_cex2a_queue_probe() local
160 zq = zcrypt_queue_alloc(CEX2A_MAX_RESPONSE_SIZE); in zcrypt_cex2a_queue_probe()
161 if (!zq) in zcrypt_cex2a_queue_probe()
165 zq = zcrypt_queue_alloc(CEX3A_MAX_RESPONSE_SIZE); in zcrypt_cex2a_queue_probe()
166 if (!zq) in zcrypt_cex2a_queue_probe()
170 if (!zq) in zcrypt_cex2a_queue_probe()
172 zq->ops = zcrypt_msgtype(MSGTYPE50_NAME, MSGTYPE50_VARIANT_DEFAULT); in zcrypt_cex2a_queue_probe()
173 zq->queue = aq; in zcrypt_cex2a_queue_probe()
174 zq->online = 1; in zcrypt_cex2a_queue_probe()
175 atomic_set(&zq->load, 0); in zcrypt_cex2a_queue_probe()
177 ap_queue_init_reply(aq, &zq->reply); in zcrypt_cex2a_queue_probe()
179 aq->private = zq; in zcrypt_cex2a_queue_probe()
180 rc = zcrypt_queue_register(zq); in zcrypt_cex2a_queue_probe()
183 zcrypt_queue_free(zq); in zcrypt_cex2a_queue_probe()
196 struct zcrypt_queue *zq = aq->private; in zcrypt_cex2a_queue_remove() local
198 if (zq) in zcrypt_cex2a_queue_remove()
199 zcrypt_queue_unregister(zq); in zcrypt_cex2a_queue_remove()