Lines Matching refs:ring_control
140 struct p54p_ring_control *ring_control = priv->ring_control;
143 idx = le32_to_cpu(ring_control->host_idx[ring_index]);
184 ring_control->host_idx[ring_index] = cpu_to_le32(idx);
192 struct p54p_ring_control *ring_control = priv->ring_control;
197 (*index) = idx = le32_to_cpu(ring_control->device_idx[ring_index]);
245 struct p54p_ring_control *ring_control = priv->ring_control;
251 (*index) = idx = le32_to_cpu(ring_control->device_idx[ring_index]);
280 struct p54p_ring_control *ring_control = priv->ring_control;
282 p54p_check_tx_ring(dev, &priv->tx_idx_mgmt, 3, ring_control->tx_mgmt,
283 ARRAY_SIZE(ring_control->tx_mgmt),
286 p54p_check_tx_ring(dev, &priv->tx_idx_data, 1, ring_control->tx_data,
287 ARRAY_SIZE(ring_control->tx_data),
290 p54p_check_rx_ring(dev, &priv->rx_idx_mgmt, 2, ring_control->rx_mgmt,
291 ARRAY_SIZE(ring_control->rx_mgmt), priv->rx_buf_mgmt);
293 p54p_check_rx_ring(dev, &priv->rx_idx_data, 0, ring_control->rx_data,
294 ARRAY_SIZE(ring_control->rx_data), priv->rx_buf_data);
327 struct p54p_ring_control *ring_control = priv->ring_control;
333 device_idx = le32_to_cpu(ring_control->device_idx[1]);
334 idx = le32_to_cpu(ring_control->host_idx[1]);
335 i = idx % ARRAY_SIZE(ring_control->tx_data);
347 desc = &ring_control->tx_data[i];
354 ring_control->host_idx[1] = cpu_to_le32(idx + 1);
364 struct p54p_ring_control *ring_control = priv->ring_control;
379 desc = &ring_control->rx_data[i];
390 desc = &ring_control->rx_mgmt[i];
401 desc = &ring_control->tx_data[i];
413 desc = &ring_control->tx_mgmt[i];
424 memset(ring_control, 0, sizeof(*ring_control));
440 memset(priv->ring_control, 0, sizeof(*priv->ring_control));
449 p54p_refill_rx_ring(dev, 0, priv->ring_control->rx_data,
450 ARRAY_SIZE(priv->ring_control->rx_data), priv->rx_buf_data, 0);
452 p54p_refill_rx_ring(dev, 2, priv->ring_control->rx_mgmt,
453 ARRAY_SIZE(priv->ring_control->rx_mgmt), priv->rx_buf_mgmt, 0);
546 priv->ring_control = pci_alloc_consistent(pdev, sizeof(*priv->ring_control),
548 if (!priv->ring_control) {
586 pci_free_consistent(pdev, sizeof(*priv->ring_control),
587 priv->ring_control, priv->ring_control_dma);
614 pci_free_consistent(pdev, sizeof(*priv->ring_control),
615 priv->ring_control, priv->ring_control_dma);