Lines Matching refs:zq
114 struct zcrypt_queue *zq = to_ap_queue(dev)->private; in cca_mkvps_show() local
120 cca_get_info(AP_QID_CARD(zq->queue->qid), in cca_mkvps_show()
121 AP_QID_QUEUE(zq->queue->qid), in cca_mkvps_show()
122 &ci, zq->online); in cca_mkvps_show()
317 struct zcrypt_queue *zq = to_ap_queue(dev)->private; in ep11_mkvps_show() local
324 if (zq->online) in ep11_mkvps_show()
325 ep11_get_domain_info(AP_QID_CARD(zq->queue->qid), in ep11_mkvps_show()
326 AP_QID_QUEUE(zq->queue->qid), in ep11_mkvps_show()
365 struct zcrypt_queue *zq = to_ap_queue(dev)->private; in ep11_queue_op_modes_show() local
369 if (zq->online) in ep11_queue_op_modes_show()
370 ep11_get_domain_info(AP_QID_CARD(zq->queue->qid), in ep11_queue_op_modes_show()
371 AP_QID_QUEUE(zq->queue->qid), in ep11_queue_op_modes_show()
604 struct zcrypt_queue *zq; in zcrypt_cex4_queue_probe() local
608 zq = zcrypt_queue_alloc(CEX4A_MAX_MESSAGE_SIZE); in zcrypt_cex4_queue_probe()
609 if (!zq) in zcrypt_cex4_queue_probe()
611 zq->ops = zcrypt_msgtype(MSGTYPE50_NAME, in zcrypt_cex4_queue_probe()
614 zq = zcrypt_queue_alloc(CEX4C_MAX_MESSAGE_SIZE); in zcrypt_cex4_queue_probe()
615 if (!zq) in zcrypt_cex4_queue_probe()
617 zq->ops = zcrypt_msgtype(MSGTYPE06_NAME, in zcrypt_cex4_queue_probe()
620 zq = zcrypt_queue_alloc(CEX4C_MAX_MESSAGE_SIZE); in zcrypt_cex4_queue_probe()
621 if (!zq) in zcrypt_cex4_queue_probe()
623 zq->ops = zcrypt_msgtype(MSGTYPE06_NAME, in zcrypt_cex4_queue_probe()
629 zq->queue = aq; in zcrypt_cex4_queue_probe()
630 zq->online = 1; in zcrypt_cex4_queue_probe()
631 atomic_set(&zq->load, 0); in zcrypt_cex4_queue_probe()
633 ap_queue_init_reply(aq, &zq->reply); in zcrypt_cex4_queue_probe()
635 aq->private = zq; in zcrypt_cex4_queue_probe()
636 rc = zcrypt_queue_register(zq); in zcrypt_cex4_queue_probe()
639 zcrypt_queue_free(zq); in zcrypt_cex4_queue_probe()
647 zcrypt_queue_unregister(zq); in zcrypt_cex4_queue_probe()
649 zcrypt_queue_free(zq); in zcrypt_cex4_queue_probe()
655 zcrypt_queue_unregister(zq); in zcrypt_cex4_queue_probe()
657 zcrypt_queue_free(zq); in zcrypt_cex4_queue_probe()
671 struct zcrypt_queue *zq = aq->private; in zcrypt_cex4_queue_remove() local
677 if (zq) in zcrypt_cex4_queue_remove()
678 zcrypt_queue_unregister(zq); in zcrypt_cex4_queue_remove()