Lines Matching refs:argcnt
180 u32 nbytes, u32 *argcnt) in update_input_data() argument
188 req_info->in[*argcnt].vptr = (void *)ptr; in update_input_data()
189 req_info->in[*argcnt].size = len; in update_input_data()
191 ++(*argcnt); in update_input_data()
198 u32 offset, u32 nbytes, u32 *argcnt) in update_output_data() argument
210 req_info->out[*argcnt].vptr = (void *) (ptr + offset); in update_output_data()
211 req_info->out[*argcnt].size = len; in update_output_data()
213 ++(*argcnt); in update_output_data()
220 u32 *argcnt) in create_ctx_hdr() argument
275 req_info->in[*argcnt].vptr = (u8 *)&rctx->ctrl_word; in create_ctx_hdr()
276 req_info->in[*argcnt].size = CONTROL_WORD_LEN; in create_ctx_hdr()
278 ++(*argcnt); in create_ctx_hdr()
280 req_info->in[*argcnt].vptr = (u8 *)fctx; in create_ctx_hdr()
281 req_info->in[*argcnt].size = sizeof(struct otx2_cpt_fc_ctx); in create_ctx_hdr()
284 ++(*argcnt); in create_ctx_hdr()
294 u32 argcnt = 0; in create_input_list() local
297 ret = create_ctx_hdr(req, enc, &argcnt); in create_input_list()
301 update_input_data(req_info, req->src, req->cryptlen, &argcnt); in create_input_list()
302 req_info->in_cnt = argcnt; in create_input_list()
312 u32 argcnt = 0; in create_output_list() local
322 update_output_data(req_info, req->dst, 0, req->cryptlen, &argcnt); in create_output_list()
323 req_info->out_cnt = argcnt; in create_output_list()
940 u32 *argcnt) in create_aead_ctx_hdr() argument
1017 req_info->in[*argcnt].vptr = (u8 *)&rctx->ctrl_word; in create_aead_ctx_hdr()
1018 req_info->in[*argcnt].size = CONTROL_WORD_LEN; in create_aead_ctx_hdr()
1020 ++(*argcnt); in create_aead_ctx_hdr()
1022 req_info->in[*argcnt].vptr = (u8 *)fctx; in create_aead_ctx_hdr()
1023 req_info->in[*argcnt].size = sizeof(struct otx2_cpt_fc_ctx); in create_aead_ctx_hdr()
1025 ++(*argcnt); in create_aead_ctx_hdr()
1030 static inline void create_hmac_ctx_hdr(struct aead_request *req, u32 *argcnt, in create_hmac_ctx_hdr() argument
1049 req_info->in[*argcnt].vptr = ctx->key; in create_hmac_ctx_hdr()
1050 req_info->in[*argcnt].size = round_up(ctx->auth_key_len, 8); in create_hmac_ctx_hdr()
1052 ++(*argcnt); in create_hmac_ctx_hdr()
1060 u32 status, argcnt = 0; in create_aead_input_list() local
1062 status = create_aead_ctx_hdr(req, enc, &argcnt); in create_aead_input_list()
1065 update_input_data(req_info, req->src, inputlen, &argcnt); in create_aead_input_list()
1066 req_info->in_cnt = argcnt; in create_aead_input_list()
1076 u32 argcnt = 0, outputlen = 0; in create_aead_output_list() local
1083 update_output_data(req_info, req->dst, 0, outputlen, &argcnt); in create_aead_output_list()
1084 req_info->out_cnt = argcnt; in create_aead_output_list()
1092 u32 inputlen, argcnt = 0; in create_aead_null_input_list() local
1099 create_hmac_ctx_hdr(req, &argcnt, enc); in create_aead_null_input_list()
1100 update_input_data(req_info, req->src, inputlen, &argcnt); in create_aead_null_input_list()
1101 req_info->in_cnt = argcnt; in create_aead_null_input_list()
1111 int argcnt = 0, status, offset; in create_aead_null_output_list() local
1160 update_output_data(req_info, dst, offset, mac_len, &argcnt); in create_aead_null_output_list()
1172 req_info->out[argcnt].vptr = rctx->fctx.hmac.s.hmac_calc; in create_aead_null_output_list()
1173 req_info->out[argcnt].size = mac_len; in create_aead_null_output_list()
1174 argcnt++; in create_aead_null_output_list()
1177 req_info->out_cnt = argcnt; in create_aead_null_output_list()