• Home
  • Raw
  • Download

Lines Matching refs:ap_dev

84 static int zcrypt_pcixcc_probe(struct ap_device *ap_dev);
85 static void zcrypt_pcixcc_remove(struct ap_device *ap_dev);
175 msg->cprbx.domain = AP_QID_QUEUE(zdev->ap_dev->qid); in ICAMEX_msg_to_type6MEX_msgX()
243 msg->cprbx.domain = AP_QID_QUEUE(zdev->ap_dev->qid); in ICACRT_msg_to_type6CRT_msgX()
338 static void rng_type6CPRB_msgX(struct ap_device *ap_dev, in rng_type6CPRB_msgX() argument
372 msg->cprbx.domain = AP_QID_QUEUE(ap_dev->qid); in rng_type6CPRB_msgX()
637 static void zcrypt_pcixcc_receive(struct ap_device *ap_dev, in zcrypt_pcixcc_receive() argument
708 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcixcc_modexpo()
715 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_pcixcc_modexpo()
748 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcixcc_modexpo_crt()
755 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_pcixcc_modexpo_crt()
788 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcixcc_send_cprb()
794 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_pcixcc_send_cprb()
824 rng_type6CPRB_msgX(zdev->ap_dev, &ap_msg, ZCRYPT_RNG_BUFFER_SIZE); in zcrypt_pcixcc_rng()
826 ap_queue_message(zdev->ap_dev, &ap_msg); in zcrypt_pcixcc_rng()
832 ap_cancel_message(zdev->ap_dev, &ap_msg); in zcrypt_pcixcc_rng()
858 static int zcrypt_pcixcc_mcl(struct ap_device *ap_dev) in zcrypt_pcixcc_mcl() argument
939 rc = ap_send(ap_dev->qid, 0x0102030405060708ULL, msg, sizeof(msg)); in zcrypt_pcixcc_mcl()
946 rc = ap_recv(ap_dev->qid, &psmid, reply, 4096); in zcrypt_pcixcc_mcl()
974 static int zcrypt_pcixcc_rng_supported(struct ap_device *ap_dev) in zcrypt_pcixcc_rng_supported() argument
990 rng_type6CPRB_msgX(ap_dev, &ap_msg, 4); in zcrypt_pcixcc_rng_supported()
991 rc = ap_send(ap_dev->qid, 0x0102030405060708ULL, ap_msg.message, in zcrypt_pcixcc_rng_supported()
999 rc = ap_recv(ap_dev->qid, &psmid, ap_msg.message, 4096); in zcrypt_pcixcc_rng_supported()
1027 static int zcrypt_pcixcc_probe(struct ap_device *ap_dev) in zcrypt_pcixcc_probe() argument
1035 zdev->ap_dev = ap_dev; in zcrypt_pcixcc_probe()
1037 switch (ap_dev->device_type) { in zcrypt_pcixcc_probe()
1039 rc = zcrypt_pcixcc_mcl(ap_dev); in zcrypt_pcixcc_probe()
1079 rc = zcrypt_pcixcc_rng_supported(ap_dev); in zcrypt_pcixcc_probe()
1088 ap_dev->reply = &zdev->reply; in zcrypt_pcixcc_probe()
1089 ap_dev->private = zdev; in zcrypt_pcixcc_probe()
1096 ap_dev->private = NULL; in zcrypt_pcixcc_probe()
1105 static void zcrypt_pcixcc_remove(struct ap_device *ap_dev) in zcrypt_pcixcc_remove() argument
1107 struct zcrypt_device *zdev = ap_dev->private; in zcrypt_pcixcc_remove()