Lines Matching refs:zq
113 struct zcrypt_queue *zq = dev_get_drvdata(dev); in cca_mkvps_show() local
121 cca_get_info(AP_QID_CARD(zq->queue->qid), in cca_mkvps_show()
122 AP_QID_QUEUE(zq->queue->qid), in cca_mkvps_show()
123 &ci, zq->online); in cca_mkvps_show()
344 struct zcrypt_queue *zq = dev_get_drvdata(dev); in ep11_mkvps_show() local
353 if (zq->online) in ep11_mkvps_show()
354 ep11_get_domain_info(AP_QID_CARD(zq->queue->qid), in ep11_mkvps_show()
355 AP_QID_QUEUE(zq->queue->qid), in ep11_mkvps_show()
394 struct zcrypt_queue *zq = dev_get_drvdata(dev); in ep11_queue_op_modes_show() local
400 if (zq->online) in ep11_queue_op_modes_show()
401 ep11_get_domain_info(AP_QID_CARD(zq->queue->qid), in ep11_queue_op_modes_show()
402 AP_QID_QUEUE(zq->queue->qid), in ep11_queue_op_modes_show()
659 struct zcrypt_queue *zq; in zcrypt_cex4_queue_probe() local
663 zq = zcrypt_queue_alloc(aq->card->maxmsgsize); in zcrypt_cex4_queue_probe()
664 if (!zq) in zcrypt_cex4_queue_probe()
666 zq->ops = zcrypt_msgtype(MSGTYPE50_NAME, in zcrypt_cex4_queue_probe()
669 zq = zcrypt_queue_alloc(aq->card->maxmsgsize); in zcrypt_cex4_queue_probe()
670 if (!zq) in zcrypt_cex4_queue_probe()
672 zq->ops = zcrypt_msgtype(MSGTYPE06_NAME, in zcrypt_cex4_queue_probe()
675 zq = zcrypt_queue_alloc(aq->card->maxmsgsize); in zcrypt_cex4_queue_probe()
676 if (!zq) in zcrypt_cex4_queue_probe()
678 zq->ops = zcrypt_msgtype(MSGTYPE06_NAME, in zcrypt_cex4_queue_probe()
684 zq->queue = aq; in zcrypt_cex4_queue_probe()
685 zq->online = 1; in zcrypt_cex4_queue_probe()
686 atomic_set(&zq->load, 0); in zcrypt_cex4_queue_probe()
688 ap_queue_init_reply(aq, &zq->reply); in zcrypt_cex4_queue_probe()
690 dev_set_drvdata(&ap_dev->device, zq); in zcrypt_cex4_queue_probe()
691 rc = zcrypt_queue_register(zq); in zcrypt_cex4_queue_probe()
693 zcrypt_queue_free(zq); in zcrypt_cex4_queue_probe()
701 zcrypt_queue_unregister(zq); in zcrypt_cex4_queue_probe()
702 zcrypt_queue_free(zq); in zcrypt_cex4_queue_probe()
708 zcrypt_queue_unregister(zq); in zcrypt_cex4_queue_probe()
709 zcrypt_queue_free(zq); in zcrypt_cex4_queue_probe()
722 struct zcrypt_queue *zq = dev_get_drvdata(&ap_dev->device); in zcrypt_cex4_queue_remove() local
730 zcrypt_queue_unregister(zq); in zcrypt_cex4_queue_remove()