Lines Matching refs:aq
181 static int zcrypt_cex2c_rng_supported(struct ap_queue *aq) in zcrypt_cex2c_rng_supported() argument
210 msg->cprbx.domain = AP_QID_QUEUE(aq->qid); in zcrypt_cex2c_rng_supported()
212 rc = ap_send(aq->qid, 0x0102030405060708ULL, ap_msg.msg, ap_msg.len); in zcrypt_cex2c_rng_supported()
219 rc = ap_recv(aq->qid, &psmid, ap_msg.msg, 4096); in zcrypt_cex2c_rng_supported()
337 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex2c_queue_probe() local
344 zq->queue = aq; in zcrypt_cex2c_queue_probe()
347 ap_rapq(aq->qid); in zcrypt_cex2c_queue_probe()
348 rc = zcrypt_cex2c_rng_supported(aq); in zcrypt_cex2c_queue_probe()
359 ap_queue_init_state(aq); in zcrypt_cex2c_queue_probe()
360 ap_queue_init_reply(aq, &zq->reply); in zcrypt_cex2c_queue_probe()
361 aq->request_timeout = CEX2C_CLEANUP_TIME; in zcrypt_cex2c_queue_probe()
362 aq->private = zq; in zcrypt_cex2c_queue_probe()
365 aq->private = NULL; in zcrypt_cex2c_queue_probe()
370 if (ap_test_bit(&aq->card->functions, AP_FUNC_COPRO)) { in zcrypt_cex2c_queue_probe()
375 aq->private = NULL; in zcrypt_cex2c_queue_probe()
389 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex2c_queue_remove() local
390 struct zcrypt_queue *zq = aq->private; in zcrypt_cex2c_queue_remove()
392 if (ap_test_bit(&aq->card->functions, AP_FUNC_COPRO)) in zcrypt_cex2c_queue_remove()