ring_space
void *ring_space;
ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, &ring_dma,
if (!ring_space)
np->tx_ring = ring_space;
ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, &ring_dma,
if (!ring_space)
np->rx_ring = ring_space;
void *ring_space;
ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE,
if (!ring_space)
np->tx_ring = (struct netdev_desc *)ring_space;
ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE,
if (!ring_space)
np->rx_ring = (struct netdev_desc *)ring_space;
void *ring_space;
ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, &ring_dma,
if (!ring_space) {
np->rx_ring = ring_space;
ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, &ring_dma,
if (!ring_space) {
np->tx_ring = ring_space;
(ring_space(ring) >= ring->max_desc_num_per_pkt * 2))) {
if (ring_space(ring) < 1)
} else if (buf_num > ring_space(ring)) {
if (ring_space(ring) < buf_num)
} else if (ring_space(ring) < buf_num) {
if (likely(ring_space(ring) >= bd_num))
if (ring_space(ring) >= bd_num && netif_carrier_ok(netdev) &&
ring_space(ring) > HNS3_MAX_TSO_BD_NUM)) {
void *ring_space;
ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, &ring_dma,
if (!ring_space)
hmp->tx_ring = ring_space;
ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, &ring_dma,
if (!ring_space)
hmp->rx_ring = ring_space;
void *ring_space;
ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, &ring_dma,
if (!ring_space)
np->tx_ring = ring_space;
ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, &ring_dma,
if (!ring_space)
np->rx_ring = ring_space;
ring_space = dma_alloc_coherent(&pdev->dev, STATUS_TOTAL_SIZE,
if (!ring_space)
np->tx_status = ring_space;
void *ring_space;
ring_space = dma_alloc_coherent(&pci_dev->dev, TX_TOTAL_SIZE,
if (!ring_space) {
sis_priv->tx_ring = ring_space;
ring_space = dma_alloc_coherent(&pci_dev->dev, RX_TOTAL_SIZE,
if (!ring_space) {
sis_priv->rx_ring = ring_space;
void *ring_space;
ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, &ring_dma,
if (!ring_space)
ep->tx_ring = ring_space;
ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, &ring_dma,
if (!ring_space)
ep->rx_ring = ring_space;