Lines Matching refs:tr

638 			       struct zcrypt_track *tr,  in zcrypt_rsa_modexpo()  argument
688 cpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo()
689 AP_QID_CARD(tr->last_qid) == zc->card->id) ? in zcrypt_rsa_modexpo()
703 qpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo()
704 tr->last_qid == zq->queue->qid) ? in zcrypt_rsa_modexpo()
732 if (tr) { in zcrypt_rsa_modexpo()
733 tr->last_rc = rc; in zcrypt_rsa_modexpo()
734 tr->last_qid = qid; in zcrypt_rsa_modexpo()
742 struct zcrypt_track *tr, in zcrypt_rsa_crt() argument
792 cpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_crt()
793 AP_QID_CARD(tr->last_qid) == zc->card->id) ? in zcrypt_rsa_crt()
807 qpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_crt()
808 tr->last_qid == zq->queue->qid) ? in zcrypt_rsa_crt()
836 if (tr) { in zcrypt_rsa_crt()
837 tr->last_rc = rc; in zcrypt_rsa_crt()
838 tr->last_qid = qid; in zcrypt_rsa_crt()
846 struct zcrypt_track *tr, in _zcrypt_send_cprb() argument
911 cpen = (tr && tr->again_counter && tr->last_qid && in _zcrypt_send_cprb()
912 AP_QID_CARD(tr->last_qid) == zc->card->id) ? in _zcrypt_send_cprb()
928 qpen = (tr && tr->again_counter && tr->last_qid && in _zcrypt_send_cprb()
929 tr->last_qid == zq->queue->qid) ? in _zcrypt_send_cprb()
966 if (tr) { in _zcrypt_send_cprb()
967 tr->last_rc = rc; in _zcrypt_send_cprb()
968 tr->last_qid = qid; in _zcrypt_send_cprb()
977 struct zcrypt_track tr; in zcrypt_send_cprb() local
980 memset(&tr, 0, sizeof(tr)); in zcrypt_send_cprb()
983 rc = _zcrypt_send_cprb(false, &ap_perms, &tr, xcrb); in zcrypt_send_cprb()
984 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in zcrypt_send_cprb()
989 rc = _zcrypt_send_cprb(false, &ap_perms, &tr, xcrb); in zcrypt_send_cprb()
990 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in zcrypt_send_cprb()
991 if (rc == -EAGAIN && tr.again_counter >= TRACK_AGAIN_MAX) in zcrypt_send_cprb()
1028 struct zcrypt_track *tr, in _zcrypt_send_ep11_cprb() argument
1107 cpen = (tr && tr->again_counter && tr->last_qid && in _zcrypt_send_ep11_cprb()
1108 AP_QID_CARD(tr->last_qid) == zc->card->id) ? in _zcrypt_send_ep11_cprb()
1125 qpen = (tr && tr->again_counter && tr->last_qid && in _zcrypt_send_ep11_cprb()
1126 tr->last_qid == zq->queue->qid) ? in _zcrypt_send_ep11_cprb()
1168 if (tr) { in _zcrypt_send_ep11_cprb()
1169 tr->last_rc = rc; in _zcrypt_send_ep11_cprb()
1170 tr->last_qid = qid; in _zcrypt_send_ep11_cprb()
1179 struct zcrypt_track tr; in zcrypt_send_ep11_cprb() local
1182 memset(&tr, 0, sizeof(tr)); in zcrypt_send_ep11_cprb()
1185 rc = _zcrypt_send_ep11_cprb(false, &ap_perms, &tr, xcrb); in zcrypt_send_ep11_cprb()
1186 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in zcrypt_send_ep11_cprb()
1191 rc = _zcrypt_send_ep11_cprb(false, &ap_perms, &tr, xcrb); in zcrypt_send_ep11_cprb()
1192 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in zcrypt_send_ep11_cprb()
1193 if (rc == -EAGAIN && tr.again_counter >= TRACK_AGAIN_MAX) in zcrypt_send_ep11_cprb()
1466 struct zcrypt_track tr; in icarsamodexpo_ioctl() local
1470 memset(&tr, 0, sizeof(tr)); in icarsamodexpo_ioctl()
1475 rc = zcrypt_rsa_modexpo(perms, &tr, &mex); in icarsamodexpo_ioctl()
1476 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in icarsamodexpo_ioctl()
1481 rc = zcrypt_rsa_modexpo(perms, &tr, &mex); in icarsamodexpo_ioctl()
1482 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in icarsamodexpo_ioctl()
1483 if (rc == -EAGAIN && tr.again_counter >= TRACK_AGAIN_MAX) in icarsamodexpo_ioctl()
1495 struct zcrypt_track tr; in icarsacrt_ioctl() local
1499 memset(&tr, 0, sizeof(tr)); in icarsacrt_ioctl()
1504 rc = zcrypt_rsa_crt(perms, &tr, &crt); in icarsacrt_ioctl()
1505 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in icarsacrt_ioctl()
1510 rc = zcrypt_rsa_crt(perms, &tr, &crt); in icarsacrt_ioctl()
1511 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in icarsacrt_ioctl()
1512 if (rc == -EAGAIN && tr.again_counter >= TRACK_AGAIN_MAX) in icarsacrt_ioctl()
1525 struct zcrypt_track tr; in zsecsendcprb_ioctl() local
1528 memset(&tr, 0, sizeof(tr)); in zsecsendcprb_ioctl()
1533 rc = _zcrypt_send_cprb(true, perms, &tr, &xcrb); in zsecsendcprb_ioctl()
1534 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in zsecsendcprb_ioctl()
1539 rc = _zcrypt_send_cprb(true, perms, &tr, &xcrb); in zsecsendcprb_ioctl()
1540 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in zsecsendcprb_ioctl()
1541 if (rc == -EAGAIN && tr.again_counter >= TRACK_AGAIN_MAX) in zsecsendcprb_ioctl()
1555 struct zcrypt_track tr; in zsendep11cprb_ioctl() local
1558 memset(&tr, 0, sizeof(tr)); in zsendep11cprb_ioctl()
1563 rc = _zcrypt_send_ep11_cprb(true, perms, &tr, &xcrb); in zsendep11cprb_ioctl()
1564 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in zsendep11cprb_ioctl()
1569 rc = _zcrypt_send_ep11_cprb(true, perms, &tr, &xcrb); in zsendep11cprb_ioctl()
1570 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in zsendep11cprb_ioctl()
1571 if (rc == -EAGAIN && tr.again_counter >= TRACK_AGAIN_MAX) in zsendep11cprb_ioctl()
1727 struct zcrypt_track tr; in trans_modexpo32() local
1730 memset(&tr, 0, sizeof(tr)); in trans_modexpo32()
1740 rc = zcrypt_rsa_modexpo(perms, &tr, &mex64); in trans_modexpo32()
1741 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in trans_modexpo32()
1746 rc = zcrypt_rsa_modexpo(perms, &tr, &mex64); in trans_modexpo32()
1747 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in trans_modexpo32()
1748 if (rc == -EAGAIN && tr.again_counter >= TRACK_AGAIN_MAX) in trans_modexpo32()
1774 struct zcrypt_track tr; in trans_modexpo_crt32() local
1777 memset(&tr, 0, sizeof(tr)); in trans_modexpo_crt32()
1790 rc = zcrypt_rsa_crt(perms, &tr, &crt64); in trans_modexpo_crt32()
1791 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in trans_modexpo_crt32()
1796 rc = zcrypt_rsa_crt(perms, &tr, &crt64); in trans_modexpo_crt32()
1797 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in trans_modexpo_crt32()
1798 if (rc == -EAGAIN && tr.again_counter >= TRACK_AGAIN_MAX) in trans_modexpo_crt32()
1831 struct zcrypt_track tr; in trans_xcrb32() local
1835 memset(&tr, 0, sizeof(tr)); in trans_xcrb32()
1859 rc = _zcrypt_send_cprb(true, perms, &tr, &xcrb64); in trans_xcrb32()
1860 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in trans_xcrb32()
1865 rc = _zcrypt_send_cprb(true, perms, &tr, &xcrb64); in trans_xcrb32()
1866 } while (rc == -EAGAIN && ++tr.again_counter < TRACK_AGAIN_MAX); in trans_xcrb32()
1867 if (rc == -EAGAIN && tr.again_counter >= TRACK_AGAIN_MAX) in trans_xcrb32()