Lines Matching refs:aq
603 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex4_queue_probe() local
607 if (ap_test_bit(&aq->card->functions, AP_FUNC_ACCEL)) { in zcrypt_cex4_queue_probe()
613 } else if (ap_test_bit(&aq->card->functions, AP_FUNC_COPRO)) { in zcrypt_cex4_queue_probe()
619 } else if (ap_test_bit(&aq->card->functions, AP_FUNC_EP11)) { in zcrypt_cex4_queue_probe()
629 zq->queue = aq; in zcrypt_cex4_queue_probe()
632 ap_queue_init_state(aq); in zcrypt_cex4_queue_probe()
633 ap_queue_init_reply(aq, &zq->reply); in zcrypt_cex4_queue_probe()
634 aq->request_timeout = CEX4_CLEANUP_TIME, in zcrypt_cex4_queue_probe()
635 aq->private = zq; in zcrypt_cex4_queue_probe()
638 aq->private = NULL; in zcrypt_cex4_queue_probe()
643 if (ap_test_bit(&aq->card->functions, AP_FUNC_COPRO)) { in zcrypt_cex4_queue_probe()
648 aq->private = NULL; in zcrypt_cex4_queue_probe()
651 } else if (ap_test_bit(&aq->card->functions, AP_FUNC_EP11)) { in zcrypt_cex4_queue_probe()
656 aq->private = NULL; in zcrypt_cex4_queue_probe()
670 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex4_queue_remove() local
671 struct zcrypt_queue *zq = aq->private; in zcrypt_cex4_queue_remove()
673 if (ap_test_bit(&aq->card->functions, AP_FUNC_COPRO)) in zcrypt_cex4_queue_remove()
675 else if (ap_test_bit(&aq->card->functions, AP_FUNC_EP11)) in zcrypt_cex4_queue_remove()