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()
335 struct zcrypt_queue *zq = dev_get_drvdata(dev); in ep11_mkvps_show() local
344 if (zq->online) in ep11_mkvps_show()
345 ep11_get_domain_info(AP_QID_CARD(zq->queue->qid), in ep11_mkvps_show()
346 AP_QID_QUEUE(zq->queue->qid), in ep11_mkvps_show()
385 struct zcrypt_queue *zq = dev_get_drvdata(dev); in ep11_queue_op_modes_show() local
391 if (zq->online) in ep11_queue_op_modes_show()
392 ep11_get_domain_info(AP_QID_CARD(zq->queue->qid), in ep11_queue_op_modes_show()
393 AP_QID_QUEUE(zq->queue->qid), in ep11_queue_op_modes_show()
650 struct zcrypt_queue *zq; in zcrypt_cex4_queue_probe() local
654 zq = zcrypt_queue_alloc(aq->card->maxmsgsize); in zcrypt_cex4_queue_probe()
655 if (!zq) in zcrypt_cex4_queue_probe()
657 zq->ops = zcrypt_msgtype(MSGTYPE50_NAME, in zcrypt_cex4_queue_probe()
660 zq = zcrypt_queue_alloc(aq->card->maxmsgsize); in zcrypt_cex4_queue_probe()
661 if (!zq) in zcrypt_cex4_queue_probe()
663 zq->ops = zcrypt_msgtype(MSGTYPE06_NAME, in zcrypt_cex4_queue_probe()
666 zq = zcrypt_queue_alloc(aq->card->maxmsgsize); in zcrypt_cex4_queue_probe()
667 if (!zq) in zcrypt_cex4_queue_probe()
669 zq->ops = zcrypt_msgtype(MSGTYPE06_NAME, in zcrypt_cex4_queue_probe()
675 zq->queue = aq; in zcrypt_cex4_queue_probe()
676 zq->online = 1; in zcrypt_cex4_queue_probe()
677 atomic_set(&zq->load, 0); in zcrypt_cex4_queue_probe()
679 ap_queue_init_reply(aq, &zq->reply); in zcrypt_cex4_queue_probe()
681 dev_set_drvdata(&ap_dev->device, zq); in zcrypt_cex4_queue_probe()
682 rc = zcrypt_queue_register(zq); in zcrypt_cex4_queue_probe()
684 zcrypt_queue_free(zq); in zcrypt_cex4_queue_probe()
692 zcrypt_queue_unregister(zq); in zcrypt_cex4_queue_probe()
693 zcrypt_queue_free(zq); in zcrypt_cex4_queue_probe()
699 zcrypt_queue_unregister(zq); in zcrypt_cex4_queue_probe()
700 zcrypt_queue_free(zq); in zcrypt_cex4_queue_probe()
713 struct zcrypt_queue *zq = dev_get_drvdata(&ap_dev->device); in zcrypt_cex4_queue_remove() local
721 zcrypt_queue_unregister(zq); in zcrypt_cex4_queue_remove()