Lines Matching refs:zq
159 struct zcrypt_queue *zq = NULL; in zcrypt_cex2a_queue_probe() local
164 zq = zcrypt_queue_alloc(CEX2A_MAX_RESPONSE_SIZE); in zcrypt_cex2a_queue_probe()
165 if (!zq) in zcrypt_cex2a_queue_probe()
169 zq = zcrypt_queue_alloc(CEX3A_MAX_RESPONSE_SIZE); in zcrypt_cex2a_queue_probe()
170 if (!zq) in zcrypt_cex2a_queue_probe()
174 if (!zq) in zcrypt_cex2a_queue_probe()
176 zq->ops = zcrypt_msgtype(MSGTYPE50_NAME, MSGTYPE50_VARIANT_DEFAULT); in zcrypt_cex2a_queue_probe()
177 zq->queue = aq; in zcrypt_cex2a_queue_probe()
178 zq->online = 1; in zcrypt_cex2a_queue_probe()
179 atomic_set(&zq->load, 0); in zcrypt_cex2a_queue_probe()
180 ap_queue_init_reply(aq, &zq->reply); in zcrypt_cex2a_queue_probe()
182 aq->private = zq; in zcrypt_cex2a_queue_probe()
183 rc = zcrypt_queue_register(zq); in zcrypt_cex2a_queue_probe()
186 zcrypt_queue_free(zq); in zcrypt_cex2a_queue_probe()
199 struct zcrypt_queue *zq = aq->private; in zcrypt_cex2a_queue_remove() local
202 if (zq) in zcrypt_cex2a_queue_remove()
203 zcrypt_queue_unregister(zq); in zcrypt_cex2a_queue_remove()