Lines Matching refs:req_info

34 static inline void update_input_iv(struct cpt_request_info *req_info,  in update_input_iv()  argument
39 req_info->in[*argcnt].vptr = (void *)iv; in update_input_iv()
40 req_info->in[*argcnt].size = enc_iv_len; in update_input_iv()
41 req_info->req.dlen += enc_iv_len; in update_input_iv()
46 static inline void update_output_iv(struct cpt_request_info *req_info, in update_output_iv() argument
51 req_info->out[*argcnt].vptr = (void *)iv; in update_output_iv()
52 req_info->out[*argcnt].size = enc_iv_len; in update_output_iv()
53 req_info->rlen += enc_iv_len; in update_output_iv()
58 static inline void update_input_data(struct cpt_request_info *req_info, in update_input_data() argument
62 req_info->req.dlen += nbytes; in update_input_data()
68 req_info->in[*argcnt].vptr = (void *)ptr; in update_input_data()
69 req_info->in[*argcnt].size = len; in update_input_data()
77 static inline void update_output_data(struct cpt_request_info *req_info, in update_output_data() argument
81 req_info->rlen += nbytes; in update_output_data()
87 req_info->out[*argcnt].vptr = (void *)ptr; in update_output_data()
88 req_info->out[*argcnt].size = len; in update_output_data()
103 struct cpt_request_info *req_info = &rctx->cpt_req; in create_ctx_hdr() local
107 req_info->ctrl.s.grp = 0; in create_ctx_hdr()
108 req_info->ctrl.s.dma_mode = DMA_GATHER_SCATTER; in create_ctx_hdr()
109 req_info->ctrl.s.se_req = SE_CORE_REQ; in create_ctx_hdr()
111 req_info->req.opcode.s.major = MAJOR_OP_FC | in create_ctx_hdr()
114 req_info->req.opcode.s.minor = 2; in create_ctx_hdr()
116 req_info->req.opcode.s.minor = 3; in create_ctx_hdr()
118 req_info->req.param1 = req->cryptlen; /* Encryption Data length */ in create_ctx_hdr()
119 req_info->req.param2 = 0; /*Auth data length */ in create_ctx_hdr()
137 req_info->in[*argcnt].vptr = (u8 *)offset_control; in create_ctx_hdr()
138 req_info->in[*argcnt].size = CONTROL_WORD_LEN; in create_ctx_hdr()
139 req_info->req.dlen += CONTROL_WORD_LEN; in create_ctx_hdr()
142 req_info->in[*argcnt].vptr = (u8 *)fctx; in create_ctx_hdr()
143 req_info->in[*argcnt].size = sizeof(struct fc_context); in create_ctx_hdr()
144 req_info->req.dlen += sizeof(struct fc_context); in create_ctx_hdr()
155 struct cpt_request_info *req_info = &rctx->cpt_req; in create_input_list() local
159 update_input_iv(req_info, req->iv, enc_iv_len, &argcnt); in create_input_list()
160 update_input_data(req_info, req->src, req->cryptlen, &argcnt); in create_input_list()
161 req_info->incnt = argcnt; in create_input_list()
167 struct cpt_request_info *req_info) in store_cb_info() argument
169 req_info->callback = (void *)cvm_callback; in store_cb_info()
170 req_info->callback_arg = (void *)&req->base; in store_cb_info()
177 struct cpt_request_info *req_info = &rctx->cpt_req; in create_output_list() local
188 update_output_iv(req_info, req->iv, enc_iv_len, &argcnt); in create_output_list()
189 update_output_data(req_info, req->dst, req->cryptlen, &argcnt); in create_output_list()
190 req_info->outcnt = argcnt; in create_output_list()
199 struct cpt_request_info *req_info = &rctx->cpt_req; in cvm_enc_dec() local
203 memset(req_info, 0, sizeof(struct cpt_request_info)); in cvm_enc_dec()
204 req_info->may_sleep = (req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP) != 0; in cvm_enc_dec()
208 store_cb_info(req, req_info); in cvm_enc_dec()
210 status = cptvf_do_request(cdev, req_info); in cvm_enc_dec()