Lines Matching refs:argcnt
179 u32 nbytes, u32 *argcnt) in update_input_data() argument
187 req_info->in[*argcnt].vptr = (void *)ptr; in update_input_data()
188 req_info->in[*argcnt].size = len; in update_input_data()
190 ++(*argcnt); in update_input_data()
197 u32 offset, u32 nbytes, u32 *argcnt) in update_output_data() argument
209 req_info->out[*argcnt].vptr = (void *) (ptr + offset); in update_output_data()
210 req_info->out[*argcnt].size = len; in update_output_data()
212 ++(*argcnt); in update_output_data()
219 u32 *argcnt) in create_ctx_hdr() argument
274 req_info->in[*argcnt].vptr = (u8 *)&rctx->ctrl_word; in create_ctx_hdr()
275 req_info->in[*argcnt].size = CONTROL_WORD_LEN; in create_ctx_hdr()
277 ++(*argcnt); in create_ctx_hdr()
279 req_info->in[*argcnt].vptr = (u8 *)fctx; in create_ctx_hdr()
280 req_info->in[*argcnt].size = sizeof(struct otx2_cpt_fc_ctx); in create_ctx_hdr()
283 ++(*argcnt); in create_ctx_hdr()
293 u32 argcnt = 0; in create_input_list() local
296 ret = create_ctx_hdr(req, enc, &argcnt); in create_input_list()
300 update_input_data(req_info, req->src, req->cryptlen, &argcnt); in create_input_list()
301 req_info->in_cnt = argcnt; in create_input_list()
311 u32 argcnt = 0; in create_output_list() local
321 update_output_data(req_info, req->dst, 0, req->cryptlen, &argcnt); in create_output_list()
322 req_info->out_cnt = argcnt; in create_output_list()
1014 u32 *argcnt) in create_aead_ctx_hdr() argument
1091 req_info->in[*argcnt].vptr = (u8 *)&rctx->ctrl_word; in create_aead_ctx_hdr()
1092 req_info->in[*argcnt].size = CONTROL_WORD_LEN; in create_aead_ctx_hdr()
1094 ++(*argcnt); in create_aead_ctx_hdr()
1096 req_info->in[*argcnt].vptr = (u8 *)fctx; in create_aead_ctx_hdr()
1097 req_info->in[*argcnt].size = sizeof(struct otx2_cpt_fc_ctx); in create_aead_ctx_hdr()
1099 ++(*argcnt); in create_aead_ctx_hdr()
1104 static inline void create_hmac_ctx_hdr(struct aead_request *req, u32 *argcnt, in create_hmac_ctx_hdr() argument
1123 req_info->in[*argcnt].vptr = ctx->key; in create_hmac_ctx_hdr()
1124 req_info->in[*argcnt].size = round_up(ctx->auth_key_len, 8); in create_hmac_ctx_hdr()
1126 ++(*argcnt); in create_hmac_ctx_hdr()
1134 u32 status, argcnt = 0; in create_aead_input_list() local
1136 status = create_aead_ctx_hdr(req, enc, &argcnt); in create_aead_input_list()
1139 update_input_data(req_info, req->src, inputlen, &argcnt); in create_aead_input_list()
1140 req_info->in_cnt = argcnt; in create_aead_input_list()
1150 u32 argcnt = 0, outputlen = 0; in create_aead_output_list() local
1157 update_output_data(req_info, req->dst, 0, outputlen, &argcnt); in create_aead_output_list()
1158 req_info->out_cnt = argcnt; in create_aead_output_list()
1166 u32 inputlen, argcnt = 0; in create_aead_null_input_list() local
1173 create_hmac_ctx_hdr(req, &argcnt, enc); in create_aead_null_input_list()
1174 update_input_data(req_info, req->src, inputlen, &argcnt); in create_aead_null_input_list()
1175 req_info->in_cnt = argcnt; in create_aead_null_input_list()
1185 int argcnt = 0, status, offset; in create_aead_null_output_list() local
1234 update_output_data(req_info, dst, offset, mac_len, &argcnt); in create_aead_null_output_list()
1246 req_info->out[argcnt].vptr = rctx->fctx.hmac.s.hmac_calc; in create_aead_null_output_list()
1247 req_info->out[argcnt].size = mac_len; in create_aead_null_output_list()
1248 argcnt++; in create_aead_null_output_list()
1251 req_info->out_cnt = argcnt; in create_aead_null_output_list()