Lines Matching refs:cdr
14 struct safexcel_desc_ring *cdr, in safexcel_init_ring_descriptors() argument
22 cdr->offset = priv->config.cd_offset; in safexcel_init_ring_descriptors()
23 cdr->base = dmam_alloc_coherent(priv->dev, in safexcel_init_ring_descriptors()
24 cdr->offset * EIP197_DEFAULT_RING_SIZE, in safexcel_init_ring_descriptors()
25 &cdr->base_dma, GFP_KERNEL); in safexcel_init_ring_descriptors()
26 if (!cdr->base) in safexcel_init_ring_descriptors()
28 cdr->write = cdr->base; in safexcel_init_ring_descriptors()
29 cdr->base_end = cdr->base + cdr->offset * (EIP197_DEFAULT_RING_SIZE - 1); in safexcel_init_ring_descriptors()
30 cdr->read = cdr->base; in safexcel_init_ring_descriptors()
33 cdr->shoffset = priv->config.cdsh_offset; in safexcel_init_ring_descriptors()
34 cdr->shbase = dmam_alloc_coherent(priv->dev, in safexcel_init_ring_descriptors()
35 cdr->shoffset * in safexcel_init_ring_descriptors()
37 &cdr->shbase_dma, GFP_KERNEL); in safexcel_init_ring_descriptors()
38 if (!cdr->shbase) in safexcel_init_ring_descriptors()
40 cdr->shwrite = cdr->shbase; in safexcel_init_ring_descriptors()
41 cdr->shbase_end = cdr->shbase + cdr->shoffset * in safexcel_init_ring_descriptors()
48 cdesc = cdr->base; in safexcel_init_ring_descriptors()
49 atok = cdr->shbase_dma; in safexcel_init_ring_descriptors()
53 cdesc = (void *)cdesc + cdr->offset; in safexcel_init_ring_descriptors()
54 atok += cdr->shoffset; in safexcel_init_ring_descriptors()
189 cdesc = safexcel_ring_next_cwptr(priv, &priv->ring[ring_id].cdr, in safexcel_add_cdesc()