Lines Matching refs:alloc_flag

230 static int create_md5_pad(int alloc_flag, unsigned long long hashed_length, char **pad, size_t *pad…
232 static int create_sha1_pad(int alloc_flag, unsigned long long hashed_length, char **pad, size_t *pa…
307 static struct cryptocop_dma_desc *alloc_cdesc(int alloc_flag) in alloc_cdesc() argument
309 int use_pool = (alloc_flag & GFP_ATOMIC) ? 1 : 0; in alloc_cdesc()
326 cdesc = kmalloc(sizeof(struct cryptocop_dma_desc), alloc_flag); in alloc_cdesc()
368 …pad_descriptor(struct cryptocop_tfrm_ctx *tc, struct cryptocop_dma_desc **pad_desc, int alloc_flag) in create_pad_descriptor() argument
384 cdesc = alloc_cdesc(alloc_flag); in create_pad_descriptor()
391 error = create_md5_pad(alloc_flag, tc->consumed, &pad, &plen); in create_pad_descriptor()
402 error = create_sha1_pad(alloc_flag, tc->consumed, &pad, &plen); in create_pad_descriptor()
439 …nt setup_key_dl_desc(struct cryptocop_tfrm_ctx *tc, struct cryptocop_dma_desc **kd, int alloc_flag) in setup_key_dl_desc() argument
441 struct cryptocop_dma_desc *key_desc = alloc_cdesc(alloc_flag); in setup_key_dl_desc()
497 …setup_cipher_iv_desc(struct cryptocop_tfrm_ctx *tc, struct cryptocop_dma_desc **id, int alloc_flag) in setup_cipher_iv_desc() argument
499 struct cryptocop_dma_desc *iv_desc = alloc_cdesc(alloc_flag); in setup_cipher_iv_desc()
529 …peration *operation, struct cryptocop_tfrm_ctx *tc, struct cryptocop_dma_desc **id, int alloc_flag) in create_input_descriptors() argument
562 outdesc->next = alloc_cdesc(alloc_flag); in create_input_descriptors()
611 …n, struct cryptocop_dma_desc **current_out_cdesc, struct strcop_meta_out *meta_out, int alloc_flag) in create_output_descriptors() argument
618 cdesc = alloc_cdesc(alloc_flag); in create_output_descriptors()
651 …desc, struct cryptocop_dma_desc **current_out_cdesc, struct cryptocop_tfrm_ctx *tc, int alloc_flag) in append_input_descriptors() argument
675 (*current_in_cdesc)->next = alloc_cdesc(alloc_flag); in append_input_descriptors()
690 failed = create_input_descriptors(operation, tc, &idescs, alloc_flag); in append_input_descriptors()
708 …ist(struct cryptocop_operation *operation, struct cryptocop_int_operation **int_op, int alloc_flag) in cryptocop_setup_dma_list() argument
806 iop_alloc_ptr = kmalloc(DESCR_ALLOC_PAD + sizeof(struct cryptocop_int_operation), alloc_flag); in cryptocop_setup_dma_list()
956 failed = setup_key_dl_desc(&cipher_ctx, &key_desc, alloc_flag); in cryptocop_setup_dma_list()
971 failed = setup_cipher_iv_desc(&cipher_ctx, &iv_desc, alloc_flag); in cryptocop_setup_dma_list()
1175 failed = create_pad_descriptor(&digest_ctx, &digest_ctx.pad_descs, alloc_flag); in cryptocop_setup_dma_list()
1190 failed = create_pad_descriptor(&csum_ctx, &csum_ctx.pad_descs, alloc_flag); in cryptocop_setup_dma_list()
1201 …criptors(operation, &iniov_ix, &iniov_offset, desc_len, &current_out_cdesc, &meta_out, alloc_flag); in cryptocop_setup_dma_list()
1216 struct cryptocop_dma_desc *ed = alloc_cdesc(alloc_flag); in cryptocop_setup_dma_list()
1276 …ppend_input_descriptors(operation, &current_in_cdesc, &current_out_cdesc, &cipher_ctx, alloc_flag); in cryptocop_setup_dma_list()
1281 …ppend_input_descriptors(operation, &current_in_cdesc, &current_out_cdesc, &digest_ctx, alloc_flag); in cryptocop_setup_dma_list()
1286 … append_input_descriptors(operation, &current_in_cdesc, &current_out_cdesc, &csum_ctx, alloc_flag); in cryptocop_setup_dma_list()
1388 static int create_md5_pad(int alloc_flag, unsigned long long hashed_length, char **pad, size_t *pad… in create_md5_pad() argument
1397 p = kzalloc(padlen, alloc_flag); in create_md5_pad()
1419 static int create_sha1_pad(int alloc_flag, unsigned long long hashed_length, char **pad, size_t *pa… in create_sha1_pad() argument
1428 p = kzalloc(padlen, alloc_flag); in create_sha1_pad()
1504 …ocop_new_session(cryptocop_session_id *sid, struct cryptocop_transform_init *tinit, int alloc_flag) in cryptocop_new_session() argument
1529 sess = kmalloc(sizeof(struct cryptocop_session), alloc_flag); in cryptocop_new_session()
1535 sess->tfrm_ctx = kmalloc(no_tfrms * sizeof(struct cryptocop_transform_ctx), alloc_flag); in cryptocop_new_session()
2245 int alloc_flag = operation->in_interrupt ? GFP_ATOMIC : GFP_KERNEL; in cryptocop_job_setup() local
2248 *pj = kmalloc(sizeof (struct cryptocop_prio_job), alloc_flag); in cryptocop_job_setup()
2263 iop_alloc_ptr = kmalloc(DESCR_ALLOC_PAD + sizeof(struct cryptocop_int_operation), alloc_flag); in cryptocop_job_setup()
2291 if ((err = cryptocop_setup_dma_list(operation, &(*pj)->iop, alloc_flag))) { in cryptocop_job_setup()