Lines Matching refs:rings

153  * @use_count: Use count for shared rings
194 * @rm_gp_range: general purpose rings range from tisci
198 * @rings: array of rings descriptors (struct @k3_ring)
200 * @req_lock: protect rings allocation
202 * @tisci_ring_ops: ti-sci rings ops
211 u32 num_rings; /* number of rings in Ringacc module */
219 struct k3_ring *rings;
221 struct mutex req_lock; /* protect rings allocation */
358 !(ringacc->rings[id].flags & K3_RING_FLAG_SHARED))
360 else if (ringacc->rings[id].flags & K3_RING_FLAG_SHARED)
372 ringacc->rings[id].proxy_id = proxy_id;
381 ringacc->rings[id].use_count++;
383 return &ringacc->rings[id];
401 * DMA rings must be requested by ID, completion ring is the reverse
419 *fwd_ring = &ringacc->rings[fwd_id];
420 *compl_ring = &ringacc->rings[fwd_id + ringacc->num_rings];
422 ringacc->rings[fwd_id].use_count++;
594 * DMA rings: rings shared memory and configuration, only forward ring
713 * DMA rings: rings shared memory and configuration, only forward ring
754 /* DMA rings: configure reverse ring */
755 reverse_ring = &ringacc->rings[ring->ring_id + ringacc->num_rings];
1105 * DMA rings: forward ring is always tied DMA channel and HW does not
1317 ret = of_property_read_u32(node, "ti,num-rings", &ringacc->num_rings);
1319 dev_err(dev, "ti,num-rings read failure %d\n", ret);
1343 "ti,sci-rm-range-gp-rings");
1409 ringacc->rings = devm_kzalloc(dev,
1410 sizeof(*ringacc->rings) *
1418 if (!ringacc->rings || !ringacc->rings_inuse || !ringacc->proxy_inuse)
1422 ringacc->rings[i].rt = base_rt +
1424 ringacc->rings[i].fifos = base_fifo +
1426 ringacc->rings[i].parent = ringacc;
1427 ringacc->rings[i].ring_id = i;
1428 ringacc->rings[i].proxy_id = K3_RINGACC_PROXY_NOT_USED;
1433 dev_info(dev, "Ring Accelerator probed rings:%u, gp-rings[%u,%u] sci-dev-id:%u\n",
1487 ringacc->rings = devm_kzalloc(dev,
1488 sizeof(*ringacc->rings) *
1494 if (!ringacc->rings || !ringacc->rings_inuse)
1498 struct k3_ring *ring = &ringacc->rings[i];
1505 ring = &ringacc->rings[ringacc->num_rings + i];
1516 dev_info(dev, "Number of rings: %u\n", ringacc->num_rings);