Home
last modified time | relevance | path

Searched refs:xcrb (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/s390/crypto/
H A Dzcrypt_msgtype6.c333 struct ica_xcRB *xcrb, in xcrb_msg_to_type6cprb_msgx() argument
353 if (xcrb->request_control_blk_length < sizeof(struct CPRBX)) in xcrb_msg_to_type6cprb_msgx()
355 req_cblen = CEIL4((size_t)xcrb->request_control_blk_length); in xcrb_msg_to_type6cprb_msgx()
358 req_sumlen = req_cblen + xcrb->request_data_length; in xcrb_msg_to_type6cprb_msgx()
364 if (req_cblen <= xcrb->request_data_length ? in xcrb_msg_to_type6cprb_msgx()
365 req_sumlen < xcrb->request_data_length : in xcrb_msg_to_type6cprb_msgx()
371 if (xcrb->reply_control_blk_length < sizeof(struct CPRBX)) in xcrb_msg_to_type6cprb_msgx()
373 rep_cblen = CEIL4((size_t)xcrb->reply_control_blk_length); in xcrb_msg_to_type6cprb_msgx()
376 rep_sumlen = rep_cblen + xcrb->reply_data_length; in xcrb_msg_to_type6cprb_msgx()
379 if (rep_cblen <= xcrb->reply_data_length ? in xcrb_msg_to_type6cprb_msgx()
[all …]
H A Dzcrypt_api.c854 struct ica_xcRB *xcrb) in _zcrypt_send_cprb() argument
865 trace_s390_zcrypt_req(xcrb, TB_ZSECSENDCPRB); in _zcrypt_send_cprb()
867 xcrb->status = 0; in _zcrypt_send_cprb()
874 rc = prep_cca_ap_msg(userspace, xcrb, &ap_msg, &func_code, &domain); in _zcrypt_send_cprb()
903 card = xcrb->user_defined; in _zcrypt_send_cprb()
960 rc = pref_zq->ops->send_cprb(userspace, pref_zq, xcrb, &ap_msg); in _zcrypt_send_cprb()
976 trace_s390_zcrypt_rep(xcrb, func_code, rc, in _zcrypt_send_cprb()
982 long zcrypt_send_cprb(struct ica_xcRB *xcrb, u32 xflags) in zcrypt_send_cprb() argument
990 rc = _zcrypt_send_cprb(xflags, &ap_perms, &tr, xcrb); in zcrypt_send_cprb()
996 rc = _zcrypt_send_cprb(xflags, &ap_perms, &tr, xcrb); in zcrypt_send_cprb()
[all …]
H A Dzcrypt_ccamisc.c371 struct ica_xcRB xcrb; in cca_genseckey() local
452 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_genseckey()
455 rc = zcrypt_send_cprb(&xcrb, xflags); in cca_genseckey()
515 struct ica_xcRB xcrb; in cca_clr2seckey() local
592 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_clr2seckey()
595 rc = zcrypt_send_cprb(&xcrb, xflags); in cca_clr2seckey()
657 struct ica_xcRB xcrb; in cca_sec2protkey() local
721 prep_xcrb(&xcrb, cardnr, preqcblk, prepcblk); in cca_sec2protkey()
724 rc = zcrypt_send_cprb(&xcrb, xflags); in cca_sec2protkey()
822 struct ica_xcRB xcrb; in cca_gencipherkey() local
[all …]
H A Dzcrypt_msgtype6.h97 int prep_cca_ap_msg(bool userspace, struct ica_xcRB *xcrb,
100 int prep_ep11_ap_msg(bool userspace, struct ep11_urb *xcrb,