Lines Matching refs:prepcblk
231 struct CPRBX *preqcblk, *prepcblk; in alloc_and_prep_cprbmem() local
242 prepcblk = (struct CPRBX *)(cprbmem + cprbplusparamblen); in alloc_and_prep_cprbmem()
253 ((u8 __user *)prepcblk) + sizeof(struct CPRBX); in alloc_and_prep_cprbmem()
258 *p_rep_cprb = prepcblk; in alloc_and_prep_cprbmem()
282 struct CPRBX *prepcblk) in prep_xcrb() argument
291 pxcrb->reply_control_blk_addr = (void __user *)prepcblk; in prep_xcrb()
303 struct CPRBX *preqcblk, *prepcblk; in cca_genseckey() local
340 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_genseckey()
384 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_genseckey()
395 if (prepcblk->ccp_rtcode != 0) { in cca_genseckey()
398 (int)prepcblk->ccp_rtcode, in cca_genseckey()
399 (int)prepcblk->ccp_rscode); in cca_genseckey()
405 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in cca_genseckey()
406 prepcblk->rpl_parmb = (u8 __user *)ptr; in cca_genseckey()
445 struct CPRBX *preqcblk, *prepcblk; in cca_clr2seckey() local
481 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_clr2seckey()
522 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_clr2seckey()
533 if (prepcblk->ccp_rtcode != 0) { in cca_clr2seckey()
536 (int)prepcblk->ccp_rtcode, in cca_clr2seckey()
537 (int)prepcblk->ccp_rscode); in cca_clr2seckey()
543 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in cca_clr2seckey()
544 prepcblk->rpl_parmb = (u8 __user *)ptr; in cca_clr2seckey()
585 struct CPRBX *preqcblk, *prepcblk; in cca_sec2protkey() local
627 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_sec2protkey()
649 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_sec2protkey()
660 if (prepcblk->ccp_rtcode != 0) { in cca_sec2protkey()
663 (int)prepcblk->ccp_rtcode, in cca_sec2protkey()
664 (int)prepcblk->ccp_rscode); in cca_sec2protkey()
665 if (prepcblk->ccp_rtcode == 8 && prepcblk->ccp_rscode == 2290) in cca_sec2protkey()
671 if (prepcblk->ccp_rscode != 0) { in cca_sec2protkey()
674 (int)prepcblk->ccp_rtcode, in cca_sec2protkey()
675 (int)prepcblk->ccp_rscode); in cca_sec2protkey()
679 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in cca_sec2protkey()
680 prepcblk->rpl_parmb = (u8 __user *)ptr; in cca_sec2protkey()
749 struct CPRBX *preqcblk, *prepcblk; in cca_gencipherkey() local
821 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_gencipherkey()
878 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_gencipherkey()
890 if (prepcblk->ccp_rtcode != 0) { in cca_gencipherkey()
894 (int)prepcblk->ccp_rtcode, in cca_gencipherkey()
895 (int)prepcblk->ccp_rscode); in cca_gencipherkey()
901 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in cca_gencipherkey()
902 prepcblk->rpl_parmb = (u8 __user *)ptr; in cca_gencipherkey()
953 struct CPRBX *preqcblk, *prepcblk; in _ip_cprb_helper() local
1000 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in _ip_cprb_helper()
1046 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in _ip_cprb_helper()
1058 if (prepcblk->ccp_rtcode != 0) { in _ip_cprb_helper()
1062 (int)prepcblk->ccp_rtcode, in _ip_cprb_helper()
1063 (int)prepcblk->ccp_rscode); in _ip_cprb_helper()
1069 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in _ip_cprb_helper()
1070 prepcblk->rpl_parmb = (u8 __user *)ptr; in _ip_cprb_helper()
1188 struct CPRBX *preqcblk, *prepcblk; in cca_cipher2protkey() local
1236 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_cipher2protkey()
1263 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_cipher2protkey()
1275 if (prepcblk->ccp_rtcode != 0) { in cca_cipher2protkey()
1279 (int)prepcblk->ccp_rtcode, in cca_cipher2protkey()
1280 (int)prepcblk->ccp_rscode); in cca_cipher2protkey()
1281 if (prepcblk->ccp_rtcode == 8 && prepcblk->ccp_rscode == 2290) in cca_cipher2protkey()
1287 if (prepcblk->ccp_rscode != 0) { in cca_cipher2protkey()
1291 (int)prepcblk->ccp_rtcode, in cca_cipher2protkey()
1292 (int)prepcblk->ccp_rscode); in cca_cipher2protkey()
1296 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in cca_cipher2protkey()
1297 prepcblk->rpl_parmb = (u8 __user *)ptr; in cca_cipher2protkey()
1357 struct CPRBX *preqcblk, *prepcblk; in cca_ecc2protkey() local
1403 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_ecc2protkey()
1430 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_ecc2protkey()
1442 if (prepcblk->ccp_rtcode != 0) { in cca_ecc2protkey()
1446 (int)prepcblk->ccp_rtcode, in cca_ecc2protkey()
1447 (int)prepcblk->ccp_rscode); in cca_ecc2protkey()
1448 if (prepcblk->ccp_rtcode == 8 && prepcblk->ccp_rscode == 2290) in cca_ecc2protkey()
1454 if (prepcblk->ccp_rscode != 0) { in cca_ecc2protkey()
1458 (int)prepcblk->ccp_rtcode, in cca_ecc2protkey()
1459 (int)prepcblk->ccp_rscode); in cca_ecc2protkey()
1463 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in cca_ecc2protkey()
1464 prepcblk->rpl_parmb = (u8 __user *)ptr; in cca_ecc2protkey()
1511 struct CPRBX *preqcblk, *prepcblk; in cca_query_crypto_facility() local
1530 rc = alloc_and_prep_cprbmem(parmbsize, &mem, &preqcblk, &prepcblk); in cca_query_crypto_facility()
1548 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_query_crypto_facility()
1559 if (prepcblk->ccp_rtcode != 0) { in cca_query_crypto_facility()
1562 (int)prepcblk->ccp_rtcode, in cca_query_crypto_facility()
1563 (int)prepcblk->ccp_rscode); in cca_query_crypto_facility()
1569 ptr = ((u8 *)prepcblk) + sizeof(struct CPRBX); in cca_query_crypto_facility()
1570 prepcblk->rpl_parmb = (u8 __user *)ptr; in cca_query_crypto_facility()