Lines Matching refs:prepcblk

226 	struct CPRBX *preqcblk, *prepcblk;  in alloc_and_prep_cprbmem()  local
237 prepcblk = (struct CPRBX *)(cprbmem + cprbplusparamblen); in alloc_and_prep_cprbmem()
248 ((u8 __user *)prepcblk) + sizeof(struct CPRBX); in alloc_and_prep_cprbmem()
253 *p_rep_cprb = prepcblk; in alloc_and_prep_cprbmem()
277 struct CPRBX *prepcblk) in prep_xcrb() argument
286 pxcrb->reply_control_blk_addr = (void __user *)prepcblk; in prep_xcrb()
298 struct CPRBX *preqcblk, *prepcblk; in cca_genseckey() local
335 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_genseckey()
379 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_genseckey()
390 if (prepcblk->ccp_rtcode != 0) { in cca_genseckey()
393 (int)prepcblk->ccp_rtcode, in cca_genseckey()
394 (int)prepcblk->ccp_rscode); in cca_genseckey()
400 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in cca_genseckey()
401 prepcblk->rpl_parmb = (u8 __user *)ptr; in cca_genseckey()
440 struct CPRBX *preqcblk, *prepcblk; in cca_clr2seckey() local
476 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_clr2seckey()
517 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_clr2seckey()
528 if (prepcblk->ccp_rtcode != 0) { in cca_clr2seckey()
531 (int)prepcblk->ccp_rtcode, in cca_clr2seckey()
532 (int)prepcblk->ccp_rscode); in cca_clr2seckey()
538 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in cca_clr2seckey()
539 prepcblk->rpl_parmb = (u8 __user *)ptr; in cca_clr2seckey()
580 struct CPRBX *preqcblk, *prepcblk; in cca_sec2protkey() local
622 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_sec2protkey()
644 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_sec2protkey()
655 if (prepcblk->ccp_rtcode != 0) { in cca_sec2protkey()
658 (int)prepcblk->ccp_rtcode, in cca_sec2protkey()
659 (int)prepcblk->ccp_rscode); in cca_sec2protkey()
660 if (prepcblk->ccp_rtcode == 8 && prepcblk->ccp_rscode == 2290) in cca_sec2protkey()
666 if (prepcblk->ccp_rscode != 0) { in cca_sec2protkey()
669 (int)prepcblk->ccp_rtcode, in cca_sec2protkey()
670 (int)prepcblk->ccp_rscode); in cca_sec2protkey()
674 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in cca_sec2protkey()
675 prepcblk->rpl_parmb = (u8 __user *)ptr; in cca_sec2protkey()
744 struct CPRBX *preqcblk, *prepcblk; in cca_gencipherkey() local
816 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_gencipherkey()
872 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_gencipherkey()
883 if (prepcblk->ccp_rtcode != 0) { in cca_gencipherkey()
886 (int)prepcblk->ccp_rtcode, in cca_gencipherkey()
887 (int)prepcblk->ccp_rscode); in cca_gencipherkey()
893 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in cca_gencipherkey()
894 prepcblk->rpl_parmb = (u8 __user *)ptr; in cca_gencipherkey()
945 struct CPRBX *preqcblk, *prepcblk; in _ip_cprb_helper() local
992 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in _ip_cprb_helper()
1038 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in _ip_cprb_helper()
1049 if (prepcblk->ccp_rtcode != 0) { in _ip_cprb_helper()
1052 (int)prepcblk->ccp_rtcode, in _ip_cprb_helper()
1053 (int)prepcblk->ccp_rscode); in _ip_cprb_helper()
1059 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in _ip_cprb_helper()
1060 prepcblk->rpl_parmb = (u8 __user *)ptr; in _ip_cprb_helper()
1174 struct CPRBX *preqcblk, *prepcblk; in cca_cipher2protkey() local
1222 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_cipher2protkey()
1249 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_cipher2protkey()
1260 if (prepcblk->ccp_rtcode != 0) { in cca_cipher2protkey()
1263 (int)prepcblk->ccp_rtcode, in cca_cipher2protkey()
1264 (int)prepcblk->ccp_rscode); in cca_cipher2protkey()
1265 if (prepcblk->ccp_rtcode == 8 && prepcblk->ccp_rscode == 2290) in cca_cipher2protkey()
1271 if (prepcblk->ccp_rscode != 0) { in cca_cipher2protkey()
1274 (int)prepcblk->ccp_rtcode, in cca_cipher2protkey()
1275 (int)prepcblk->ccp_rscode); in cca_cipher2protkey()
1279 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in cca_cipher2protkey()
1280 prepcblk->rpl_parmb = (u8 __user *)ptr; in cca_cipher2protkey()
1339 struct CPRBX *preqcblk, *prepcblk; in cca_ecc2protkey() local
1385 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_ecc2protkey()
1412 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_ecc2protkey()
1423 if (prepcblk->ccp_rtcode != 0) { in cca_ecc2protkey()
1426 (int)prepcblk->ccp_rtcode, in cca_ecc2protkey()
1427 (int)prepcblk->ccp_rscode); in cca_ecc2protkey()
1428 if (prepcblk->ccp_rtcode == 8 && prepcblk->ccp_rscode == 2290) in cca_ecc2protkey()
1434 if (prepcblk->ccp_rscode != 0) { in cca_ecc2protkey()
1437 (int)prepcblk->ccp_rtcode, in cca_ecc2protkey()
1438 (int)prepcblk->ccp_rscode); in cca_ecc2protkey()
1442 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in cca_ecc2protkey()
1443 prepcblk->rpl_parmb = (u8 __user *)ptr; in cca_ecc2protkey()
1489 struct CPRBX *preqcblk, *prepcblk; in cca_query_crypto_facility() local
1508 rc = alloc_and_prep_cprbmem(parmbsize, &mem, &preqcblk, &prepcblk); in cca_query_crypto_facility()
1526 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_query_crypto_facility()
1537 if (prepcblk->ccp_rtcode != 0) { in cca_query_crypto_facility()
1540 (int)prepcblk->ccp_rtcode, in cca_query_crypto_facility()
1541 (int)prepcblk->ccp_rscode); in cca_query_crypto_facility()
1547 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in cca_query_crypto_facility()
1548 prepcblk->rpl_parmb = (u8 __user *)ptr; in cca_query_crypto_facility()