Lines Matching refs:cf
238 static void fill_cfd_frame(struct fsl_re_cmpnd_frame *cf, u8 index, in fill_cfd_frame() argument
244 cf[index].efrl32 = efrl; in fill_cfd_frame()
245 cf[index].addr_high = upper_32_bits(addr); in fill_cfd_frame()
246 cf[index].addr_low = lower_32_bits(addr); in fill_cfd_frame()
251 void *cf, dma_addr_t paddr) in fsl_re_init_desc() argument
261 desc->cf_addr = cf; in fsl_re_init_desc()
264 desc->cdb_addr = (void *)(cf + FSL_RE_CF_DESC_SIZE); in fsl_re_init_desc()
274 void *cf; in fsl_re_chan_alloc_desc() local
296 cf = dma_pool_alloc(re_chan->re_dev->cf_desc_pool, GFP_NOWAIT, in fsl_re_chan_alloc_desc()
298 if (!cf) { in fsl_re_chan_alloc_desc()
303 desc = fsl_re_init_desc(re_chan, desc, cf, paddr); in fsl_re_chan_alloc_desc()
322 struct fsl_re_cmpnd_frame *cf; in fsl_re_prep_dma_genq() local
366 cf = desc->cf_addr; in fsl_re_prep_dma_genq()
367 fill_cfd_frame(cf, 0, sizeof(*xor), desc->cdb_paddr, 0); in fsl_re_prep_dma_genq()
370 fill_cfd_frame(cf, 1, len, dest, 0); in fsl_re_prep_dma_genq()
374 fill_cfd_frame(cf, i, len, src[j], 0); in fsl_re_prep_dma_genq()
377 fill_cfd_frame(cf, i++, len, dest, 0); in fsl_re_prep_dma_genq()
380 cf[i - 1].efrl32 |= 1 << FSL_RE_CF_FINAL_SHIFT; in fsl_re_prep_dma_genq()
409 struct fsl_re_cmpnd_frame *cf; in fsl_re_prep_dma_pq() local
487 cf = desc->cf_addr; in fsl_re_prep_dma_pq()
488 fill_cfd_frame(cf, 0, sizeof(struct fsl_re_pq_cdb), desc->cdb_paddr, 0); in fsl_re_prep_dma_pq()
492 fill_cfd_frame(cf, i, len, dest[j], 0); in fsl_re_prep_dma_pq()
496 fill_cfd_frame(cf, i, len, src[j], 0); in fsl_re_prep_dma_pq()
504 fill_cfd_frame(cf, i++, len, dest[0], 0); in fsl_re_prep_dma_pq()
505 fill_cfd_frame(cf, i++, len, dest[1], 0); in fsl_re_prep_dma_pq()
506 fill_cfd_frame(cf, i++, len, dest[1], 0); in fsl_re_prep_dma_pq()
514 cf[i - 1].efrl32 |= 1 << FSL_RE_CF_FINAL_SHIFT; in fsl_re_prep_dma_pq()
531 struct fsl_re_cmpnd_frame *cf; in fsl_re_prep_dma_memcpy() local
557 cf = desc->cf_addr; in fsl_re_prep_dma_memcpy()
558 fill_cfd_frame(cf, 0, sizeof(*move), desc->cdb_paddr, 0); in fsl_re_prep_dma_memcpy()
563 fill_cfd_frame(cf, 1, length, dest, 0); in fsl_re_prep_dma_memcpy()
566 fill_cfd_frame(cf, 2, length, src, 1); in fsl_re_prep_dma_memcpy()
575 void *cf; in fsl_re_alloc_chan_resources() local
585 cf = dma_pool_alloc(re_chan->re_dev->cf_desc_pool, GFP_KERNEL, in fsl_re_alloc_chan_resources()
587 if (!cf) { in fsl_re_alloc_chan_resources()
593 fsl_re_init_desc(re_chan, desc, cf, paddr); in fsl_re_alloc_chan_resources()