Lines Matching refs:preqcblk

188 	struct CPRBX *preqcblk, *prepcblk;  in alloc_and_prep_cprbmem()  local
198 preqcblk = (struct CPRBX *) cprbmem; in alloc_and_prep_cprbmem()
202 preqcblk->cprb_len = sizeof(struct CPRBX); in alloc_and_prep_cprbmem()
203 preqcblk->cprb_ver_id = 0x02; in alloc_and_prep_cprbmem()
204 memcpy(preqcblk->func_id, "T2", 2); in alloc_and_prep_cprbmem()
205 preqcblk->rpl_msgbl = cprbplusparamblen; in alloc_and_prep_cprbmem()
207 preqcblk->req_parmb = in alloc_and_prep_cprbmem()
208 ((u8 *) preqcblk) + sizeof(struct CPRBX); in alloc_and_prep_cprbmem()
209 preqcblk->rpl_parmb = in alloc_and_prep_cprbmem()
214 *preqCPRB = preqcblk; in alloc_and_prep_cprbmem()
238 struct CPRBX *preqcblk, in prep_xcrb() argument
245 preqcblk->cprb_len + preqcblk->req_parml; in prep_xcrb()
246 pxcrb->request_control_blk_addr = (void __user *) preqcblk; in prep_xcrb()
247 pxcrb->reply_control_blk_length = preqcblk->rpl_msgbl; in prep_xcrb()
278 struct CPRBX *preqcblk, *prepcblk; in cca_genseckey() local
315 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_genseckey()
320 preqcblk->domain = domain; in cca_genseckey()
323 preqparm = (struct kgreqparm *) preqcblk->req_parmb; in cca_genseckey()
356 preqcblk->req_parml = sizeof(struct kgreqparm); in cca_genseckey()
359 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_genseckey()
419 struct CPRBX *preqcblk, *prepcblk; in cca_clr2seckey() local
455 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_clr2seckey()
460 preqcblk->domain = domain; in cca_clr2seckey()
463 preqparm = (struct cmreqparm *) preqcblk->req_parmb; in cca_clr2seckey()
493 preqcblk->req_parml = sizeof(struct cmreqparm) + keysize; in cca_clr2seckey()
496 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_clr2seckey()
558 struct CPRBX *preqcblk, *prepcblk; in cca_sec2protkey() local
600 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_sec2protkey()
605 preqcblk->domain = domain; in cca_sec2protkey()
608 preqparm = (struct uskreqparm *) preqcblk->req_parmb; in cca_sec2protkey()
619 preqcblk->req_parml = sizeof(struct uskreqparm) + SECKEYBLOBSIZE; in cca_sec2protkey()
622 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_sec2protkey()
717 struct CPRBX *preqcblk, *prepcblk; in cca_gencipherkey() local
789 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_gencipherkey()
794 preqcblk->domain = domain; in cca_gencipherkey()
795 preqcblk->req_parml = sizeof(struct gkreqparm); in cca_gencipherkey()
798 preqparm = (struct gkreqparm *) preqcblk->req_parmb; in cca_gencipherkey()
846 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_gencipherkey()
920 struct CPRBX *preqcblk, *prepcblk; in _ip_cprb_helper() local
967 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in _ip_cprb_helper()
972 preqcblk->domain = domain; in _ip_cprb_helper()
973 preqcblk->req_parml = 0; in _ip_cprb_helper()
976 preq_ra_block = (struct rule_array_block *) preqcblk->req_parmb; in _ip_cprb_helper()
981 preqcblk->req_parml = sizeof(struct rule_array_block) + 2 * 8; in _ip_cprb_helper()
985 preqcblk->req_parml += 8; in _ip_cprb_helper()
990 (preqcblk->req_parmb + preqcblk->req_parml); in _ip_cprb_helper()
1000 preqcblk->req_parml += preq_vud_block->len; in _ip_cprb_helper()
1004 (preqcblk->req_parmb + preqcblk->req_parml); in _ip_cprb_helper()
1010 preqcblk->req_parml += preq_key_block->len; in _ip_cprb_helper()
1013 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in _ip_cprb_helper()
1154 struct CPRBX *preqcblk, *prepcblk; in cca_cipher2protkey() local
1202 rc = alloc_and_prep_cprbmem(PARMBSIZE, &mem, &preqcblk, &prepcblk); in cca_cipher2protkey()
1207 preqcblk->domain = domain; in cca_cipher2protkey()
1210 preqparm = (struct aureqparm *) preqcblk->req_parmb; in cca_cipher2protkey()
1226 preqcblk->req_parml = sizeof(struct aureqparm) + keytoklen; in cca_cipher2protkey()
1229 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_cipher2protkey()
1322 struct CPRBX *preqcblk, *prepcblk; in cca_query_crypto_facility() local
1341 rc = alloc_and_prep_cprbmem(parmbsize, &mem, &preqcblk, &prepcblk); in cca_query_crypto_facility()
1346 preqcblk->domain = domain; in cca_query_crypto_facility()
1349 preqparm = (struct fqreqparm *) preqcblk->req_parmb; in cca_query_crypto_facility()
1356 preqcblk->req_parml = parmbsize; in cca_query_crypto_facility()
1359 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_query_crypto_facility()