Lines Matching full:ring
3 * K3 Ring Accelerator (RA) subsystem interface
18 * RA ring operational modes
20 * @K3_RINGACC_RING_MODE_RING: Exposed Ring mode for SW direct access
43 * RA ring element's sizes in bytes.
60 * enum k3_ring_cfg - RA ring configuration structure
62 * @size: Ring size, number of elements
63 * @elm_size: Ring element size
64 * @mode: Ring operational mode
65 * @flags: Ring configuration flags. Possible values:
66 * @K3_RINGACC_RING_SHARED: when set allows to request the same ring
67 * few times. It's usable when the same ring is used as Free Host PD ring
96 * k3_ringacc_request_ring - request ring from ringacc
98 * @id: ring id or K3_RINGACC_RING_ID_ANY for any general purpose ring
101 * used to access ring memory. Sopported only for rings in
104 * Returns pointer on the Ring - struct k3_ring
115 * k3_ringacc_ring_reset - ring reset
116 * @ring: pointer on Ring
118 * Resets ring internal state ((hw)occ, (hw)idx).
120 void k3_ringacc_ring_reset(struct k3_ring *ring);
122 * k3_ringacc_ring_reset - ring reset for DMA rings
123 * @ring: pointer on Ring
125 * Resets ring internal state ((hw)occ, (hw)idx). Should be used for rings
128 void k3_ringacc_ring_reset_dma(struct k3_ring *ring, u32 occ);
131 * k3_ringacc_ring_free - ring free
132 * @ring: pointer on Ring
134 * Resets ring and free all alocated resources.
136 int k3_ringacc_ring_free(struct k3_ring *ring);
139 * k3_ringacc_get_ring_id - Get the Ring ID
140 * @ring: pointer on ring
142 * Returns the Ring ID
144 u32 k3_ringacc_get_ring_id(struct k3_ring *ring);
147 * k3_ringacc_get_ring_irq_num - Get the irq number for the ring
148 * @ring: pointer on ring
152 int k3_ringacc_get_ring_irq_num(struct k3_ring *ring);
155 * k3_ringacc_ring_cfg - ring configure
156 * @ring: pointer on ring
157 * @cfg: Ring configuration parameters (see &struct k3_ring_cfg)
159 * Configures ring, including ring memory allocation.
162 int k3_ringacc_ring_cfg(struct k3_ring *ring, struct k3_ring_cfg *cfg);
165 * k3_ringacc_ring_get_size - get ring size
166 * @ring: pointer on ring
168 * Returns ring size in number of elements.
170 u32 k3_ringacc_ring_get_size(struct k3_ring *ring);
174 * @ring: pointer on ring
176 * Returns number of free elements in the ring.
178 u32 k3_ringacc_ring_get_free(struct k3_ring *ring);
181 * k3_ringacc_ring_get_occ - get ring occupancy
182 * @ring: pointer on ring
184 * Returns total number of valid entries on the ring
186 u32 k3_ringacc_ring_get_occ(struct k3_ring *ring);
189 * k3_ringacc_ring_is_full - checks if ring is full
190 * @ring: pointer on ring
192 * Returns true if the ring is full
194 u32 k3_ringacc_ring_is_full(struct k3_ring *ring);
197 * k3_ringacc_ring_push - push element to the ring tail
198 * @ring: pointer on ring
199 * @elem: pointer on ring element buffer
201 * Push one ring element to the ring tail. Size of the ring element is
202 * determined by ring configuration &struct k3_ring_cfg elm_size.
206 int k3_ringacc_ring_push(struct k3_ring *ring, void *elem);
209 * k3_ringacc_ring_pop - pop element from the ring head
210 * @ring: pointer on ring
211 * @elem: pointer on ring element buffer
213 * Push one ring element from the ring head. Size of the ring element is
214 * determined by ring configuration &struct k3_ring_cfg elm_size..
218 int k3_ringacc_ring_pop(struct k3_ring *ring, void *elem);
221 * k3_ringacc_ring_push_head - push element to the ring head
222 * @ring: pointer on ring
223 * @elem: pointer on ring element buffer
225 * Push one ring element to the ring head. Size of the ring element is
226 * determined by ring configuration &struct k3_ring_cfg elm_size.
229 * Not Supported by ring modes: K3_RINGACC_RING_MODE_RING
231 int k3_ringacc_ring_push_head(struct k3_ring *ring, void *elem);
234 * k3_ringacc_ring_pop_tail - pop element from the ring tail
235 * @ring: pointer on ring
236 * @elem: pointer on ring element buffer
238 * Push one ring element from the ring tail. Size of the ring element is
239 * determined by ring configuration &struct k3_ring_cfg elm_size.
242 * Not Supported by ring modes: K3_RINGACC_RING_MODE_RING
244 int k3_ringacc_ring_pop_tail(struct k3_ring *ring, void *elem);
246 u32 k3_ringacc_get_tisci_dev_id(struct k3_ring *ring);