Lines Matching refs:dma_descr
55 dma_descr_data *dma_descr; member
333 …cdesc->dma_descr = (dma_descr_data*)(((unsigned long int)cdesc + offsetof(struct cryptocop_dma_des… in alloc_cdesc()
338 cdesc->dma_descr->out_eop = 0; in alloc_cdesc()
339 cdesc->dma_descr->in_eop = 0; in alloc_cdesc()
340 cdesc->dma_descr->intr = 0; in alloc_cdesc()
341 cdesc->dma_descr->eol = 0; in alloc_cdesc()
342 cdesc->dma_descr->wait = 0; in alloc_cdesc()
343 cdesc->dma_descr->buf = NULL; in alloc_cdesc()
344 cdesc->dma_descr->after = NULL; in alloc_cdesc()
346 …esc: return 0x%p, cdesc->dma_descr=0x%p, from_pool=%d\n", cdesc, cdesc->dma_descr, cdesc->from_poo… in alloc_cdesc()
356 cd->dma_descr->next = (dma_descr_data*)virt_to_phys(cd->next->dma_descr); in setup_descr_chain()
358 cd->dma_descr->next = NULL; in setup_descr_chain()
423 cdesc->dma_descr->wait = 1; in create_pad_descriptor()
424 …cdesc->dma_descr->out_eop = 1; /* Since this is a pad output is pushed. EOP is ok here since the … in create_pad_descriptor()
425 cdesc->dma_descr->buf = (char*)virt_to_phys((char*)pad); in create_pad_descriptor()
426 cdesc->dma_descr->after = cdesc->dma_descr->buf + plen; in create_pad_descriptor()
428 cdesc->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_out, mo); in create_pad_descriptor()
458 key_desc->dma_descr->buf = (char*)virt_to_phys(tc->tctx->dec_key); in setup_key_dl_desc()
459 key_desc->dma_descr->after = key_desc->dma_descr->buf + tc->tctx->init.keylen/8; in setup_key_dl_desc()
461 key_desc->dma_descr->buf = (char*)virt_to_phys(tc->tctx->init.key); in setup_key_dl_desc()
462 key_desc->dma_descr->after = key_desc->dma_descr->buf + tc->tctx->init.keylen/8; in setup_key_dl_desc()
487 key_desc->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_out, mo); in setup_key_dl_desc()
489 key_desc->dma_descr->out_eop = 1; in setup_key_dl_desc()
490 key_desc->dma_descr->wait = 1; in setup_key_dl_desc()
491 key_desc->dma_descr->intr = 0; in setup_key_dl_desc()
509 iv_desc->dma_descr->buf = (char*)virt_to_phys(tc->tcfg->iv); in setup_cipher_iv_desc()
510 iv_desc->dma_descr->after = iv_desc->dma_descr->buf + tc->blocklength; in setup_cipher_iv_desc()
518 iv_desc->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_out, mo); in setup_cipher_iv_desc()
520 iv_desc->dma_descr->out_eop = 0; in setup_cipher_iv_desc()
521 iv_desc->dma_descr->wait = 1; in setup_cipher_iv_desc()
522 iv_desc->dma_descr->intr = 0; in setup_cipher_iv_desc()
578 …outdesc->dma_descr->buf = (char*)virt_to_phys(operation->tfrm_op.outdata[outiov_ix].iov_base + iov… in create_input_descriptors()
579 outdesc->dma_descr->after = outdesc->dma_descr->buf + dlength; in create_input_descriptors()
580 outdesc->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_in, mi); in create_input_descriptors()
596 outdesc->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_in, mi); in create_input_descriptors()
628 …cdesc->dma_descr->buf = (char*)virt_to_phys(operation->tfrm_op.indata[*iniov_ix].iov_base + *iniov… in create_output_descriptors()
629 cdesc->dma_descr->after = cdesc->dma_descr->buf + dlength; in create_output_descriptors()
642 cdesc->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_out, (*meta_out)); in create_output_descriptors()
645 …(*current_out_cdesc)->dma_descr->wait = 1; /* This will set extraneous WAIT in some situations, e.… in create_output_descriptors()
681 (*current_in_cdesc)->dma_descr->buf = (char*)virt_to_phys(mem2mem_discard_buf); in append_input_descriptors()
682 (*current_in_cdesc)->dma_descr->after = (*current_in_cdesc)->dma_descr->buf + desclen; in append_input_descriptors()
683 … (*current_in_cdesc)->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_in, mi); in append_input_descriptors()
687 … (*current_in_cdesc)->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_in, mi); in append_input_descriptors()
963 indata_ix += (unsigned int)(key_desc->dma_descr->after - key_desc->dma_descr->buf); in cryptocop_setup_dma_list()
978 indata_ix += (unsigned int)(iv_desc->dma_descr->after - iv_desc->dma_descr->buf); in cryptocop_setup_dma_list()
1237 ed->dma_descr->wait = 1; in cryptocop_setup_dma_list()
1238 ed->dma_descr->out_eop = 1; in cryptocop_setup_dma_list()
1240 …ed->dma_descr->buf = (char*)virt_to_phys(&ed); /* Use any valid physical address for zero length d… in cryptocop_setup_dma_list()
1241 ed->dma_descr->after = ed->dma_descr->buf; in cryptocop_setup_dma_list()
1242 ed->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_out, ed_mo); in cryptocop_setup_dma_list()
1249 current_out_cdesc->dma_descr->out_eop = 1; in cryptocop_setup_dma_list()
1303 current_in_cdesc->dma_descr->intr = 1; in cryptocop_setup_dma_list()
1304 current_in_cdesc->dma_descr->eol = 1; in cryptocop_setup_dma_list()
1305 current_out_cdesc->dma_descr->eol = 1; in cryptocop_setup_dma_list()
1319 (*int_op)->ctx_out.saved_data = (dma_descr_data*)virt_to_phys((*int_op)->cdesc_out->dma_descr); in cryptocop_setup_dma_list()
1320 …(*int_op)->ctx_out.saved_data_buf = (*int_op)->cdesc_out->dma_descr->buf; /* Already physical addr… in cryptocop_setup_dma_list()
1334 (*int_op)->ctx_in.saved_data = (dma_descr_data*)virt_to_phys((*int_op)->cdesc_in->dma_descr); in cryptocop_setup_dma_list()
1335 …(*int_op)->ctx_in.saved_data_buf = (*int_op)->cdesc_in->dma_descr->buf; /* Already physical addres… in cryptocop_setup_dma_list()
3184 printk("cdesc_out %d, desc=0x%p\n", i, cdesc_out->dma_descr); in print_dma_descriptors()
3185 printk("\n\tvirt_to_phys(desc): 0x%p\n", (char*)virt_to_phys(cdesc_out->dma_descr)); in print_dma_descriptors()
3186 td = cdesc_out->dma_descr; in print_dma_descriptors()
3212 printk("cdesc_in %d, desc=0x%p\n", i, cdesc_in->dma_descr); in print_dma_descriptors()
3213 printk("\n\tvirt_to_phys(desc): 0x%p\n", (char*)virt_to_phys(cdesc_in->dma_descr)); in print_dma_descriptors()
3214 td = cdesc_in->dma_descr; in print_dma_descriptors()