Lines Matching refs:rdr
15 struct safexcel_desc_ring *rdr) in safexcel_init_ring_descriptors() argument
57 rdr->offset = priv->config.rd_offset; in safexcel_init_ring_descriptors()
59 rdr->shoffset = priv->config.res_offset; in safexcel_init_ring_descriptors()
60 rdr->base = dmam_alloc_coherent(priv->dev, in safexcel_init_ring_descriptors()
61 rdr->offset * EIP197_DEFAULT_RING_SIZE, in safexcel_init_ring_descriptors()
62 &rdr->base_dma, GFP_KERNEL); in safexcel_init_ring_descriptors()
63 if (!rdr->base) in safexcel_init_ring_descriptors()
65 rdr->write = rdr->base; in safexcel_init_ring_descriptors()
66 rdr->base_end = rdr->base + rdr->offset * (EIP197_DEFAULT_RING_SIZE - 1); in safexcel_init_ring_descriptors()
67 rdr->read = rdr->base; in safexcel_init_ring_descriptors()
142 struct safexcel_desc_ring *rdr = &priv->ring[ring].rdr; in safexcel_ring_curr_rptr() local
144 return rdr->read; in safexcel_ring_curr_rptr()
150 struct safexcel_desc_ring *rdr = &priv->ring[ring].rdr; in safexcel_ring_first_rdr_index() local
152 return (rdr->read - rdr->base) / rdr->offset; in safexcel_ring_first_rdr_index()
159 struct safexcel_desc_ring *rdr = &priv->ring[ring].rdr; in safexcel_ring_rdr_rdesc_index() local
161 return ((void *)rdesc - rdr->base) / rdr->offset; in safexcel_ring_rdr_rdesc_index()
232 rdesc = safexcel_ring_next_rwptr(priv, &priv->ring[ring_id].rdr, in safexcel_add_rdesc()