• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/cris/arch-v32/drivers/

Lines Matching defs:cdesc

276 static void free_cdesc(struct cryptocop_dma_desc *cdesc)
278 DEBUG(printk("free_cdesc: cdesc 0x%p, from_pool=%d\n", cdesc, cdesc->from_pool));
279 kfree(cdesc->free_buf);
281 if (cdesc->from_pool) {
284 cdesc->next = descr_pool_free_list;
285 descr_pool_free_list = cdesc;
289 kfree(cdesc);
297 struct cryptocop_dma_desc *cdesc;
307 cdesc = descr_pool_free_list;
311 cdesc->from_pool = 1;
313 cdesc = kmalloc(sizeof(struct cryptocop_dma_desc), alloc_flag);
314 if (!cdesc) {
318 cdesc->from_pool = 0;
320 cdesc->dma_descr = (dma_descr_data*)(((unsigned long int)cdesc + offsetof(struct cryptocop_dma_desc, dma_descr_buf) + DESCR_ALLOC_PAD) & ~0x0000001F);
322 cdesc->next = NULL;
324 cdesc->free_buf = NULL;
325 cdesc->dma_descr->out_eop = 0;
326 cdesc->dma_descr->in_eop = 0;
327 cdesc->dma_descr->intr = 0;
328 cdesc->dma_descr->eol = 0;
329 cdesc->dma_descr->wait = 0;
330 cdesc->dma_descr->buf = NULL;
331 cdesc->dma_descr->after = NULL;
333 DEBUG_API(printk("alloc_cdesc: return 0x%p, cdesc->dma_descr=0x%p, from_pool=%d\n", cdesc, cdesc->dma_descr, cdesc->from_pool));
334 return cdesc;
357 struct cryptocop_dma_desc *cdesc = NULL;
371 cdesc = alloc_cdesc(alloc_flag);
372 if (!cdesc){
383 cdesc->free_buf = pad;
394 cdesc->free_buf = pad;
404 pad = (char*)cdesc; /* Use any pointer. */
410 cdesc->dma_descr->wait = 1;
411 cdesc->dma_descr->out_eop = 1; /* Since this is a pad output is pushed. EOP is ok here since the padded unit is the only one active. */
412 cdesc->dma_descr->buf = (char*)virt_to_phys((char*)pad);
413 cdesc->dma_descr->after = cdesc->dma_descr->buf + plen;
415 cdesc->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_out, mo);
416 *pad_desc = cdesc;
421 if (cdesc) free_cdesc(cdesc);
601 struct cryptocop_dma_desc *cdesc;
605 cdesc = alloc_cdesc(alloc_flag);
606 if (!cdesc) {
610 (*current_out_cdesc)->next = cdesc;
611 (*current_out_cdesc) = cdesc;
613 cdesc->free_buf = NULL;
615 cdesc->dma_descr->buf = (char*)virt_to_phys(operation->tfrm_op.indata[*iniov_ix].iov_base + *iniov_offset);
616 cdesc->dma_descr->after = cdesc->dma_descr->buf + dlength;
629 cdesc->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_out, (*meta_out));