Home
last modified time | relevance | path

Searched refs:ring_space (Results 1 – 14 of 14) sorted by relevance

/drivers/net/ethernet/packetengines/
Dyellowfin.c380 void *ring_space; in yellowfin_init_one() local
437 ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, &ring_dma, in yellowfin_init_one()
439 if (!ring_space) in yellowfin_init_one()
441 np->tx_ring = ring_space; in yellowfin_init_one()
444 ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, &ring_dma, in yellowfin_init_one()
446 if (!ring_space) in yellowfin_init_one()
448 np->rx_ring = ring_space; in yellowfin_init_one()
451 ring_space = dma_alloc_coherent(&pdev->dev, STATUS_TOTAL_SIZE, in yellowfin_init_one()
453 if (!ring_space) in yellowfin_init_one()
455 np->tx_status = ring_space; in yellowfin_init_one()
Dhamachi.c592 void *ring_space; in hamachi_init_one() local
650 ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, &ring_dma, in hamachi_init_one()
652 if (!ring_space) in hamachi_init_one()
654 hmp->tx_ring = ring_space; in hamachi_init_one()
657 ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, &ring_dma, in hamachi_init_one()
659 if (!ring_space) in hamachi_init_one()
661 hmp->rx_ring = ring_space; in hamachi_init_one()
/drivers/video/fbdev/intelfb/
Dintelfbhw.c1488 u32 ring_space; in get_ring_space() local
1491 ring_space = dinfo->ring.size - in get_ring_space()
1494 ring_space = dinfo->ring_head - dinfo->ring_tail; in get_ring_space()
1496 if (ring_space > RING_MIN_FREE) in get_ring_space()
1497 ring_space -= RING_MIN_FREE; in get_ring_space()
1499 ring_space = 0; in get_ring_space()
1501 return ring_space; in get_ring_space()
1515 while (dinfo->ring_space < n) { in wait_ring()
1517 dinfo->ring_space = get_ring_space(dinfo); in wait_ring()
1534 dinfo->ring_space, n); in wait_ring()
[all …]
Dintelfbhw.h541 if (dinfo->ring_space < (n) * 4) \
543 dinfo->ring_space -= (n) * 4; \
Dintelfb.h308 u32 ring_space; member
/drivers/net/ethernet/smsc/
Depic100.c328 void *ring_space; in epic_init_one() local
377 ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, &ring_dma, in epic_init_one()
379 if (!ring_space) in epic_init_one()
381 ep->tx_ring = ring_space; in epic_init_one()
384 ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, &ring_dma, in epic_init_one()
386 if (!ring_space) in epic_init_one()
388 ep->rx_ring = ring_space; in epic_init_one()
/drivers/net/ethernet/
Dfealnx.c483 void *ring_space; in fealnx_init_one() local
546 ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, &ring_dma, in fealnx_init_one()
548 if (!ring_space) { in fealnx_init_one()
552 np->rx_ring = ring_space; in fealnx_init_one()
555 ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, &ring_dma, in fealnx_init_one()
557 if (!ring_space) { in fealnx_init_one()
561 np->tx_ring = ring_space; in fealnx_init_one()
/drivers/net/ethernet/dlink/
Ddl2k.c111 void *ring_space; in rio_probe1() local
225 ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, &ring_dma, in rio_probe1()
227 if (!ring_space) in rio_probe1()
229 np->tx_ring = ring_space; in rio_probe1()
232 ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, &ring_dma, in rio_probe1()
234 if (!ring_space) in rio_probe1()
236 np->rx_ring = ring_space; in rio_probe1()
Dsundance.c503 void *ring_space; in sundance_probe1() local
545 ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, in sundance_probe1()
547 if (!ring_space) in sundance_probe1()
549 np->tx_ring = (struct netdev_desc *)ring_space; in sundance_probe1()
552 ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, in sundance_probe1()
554 if (!ring_space) in sundance_probe1()
556 np->rx_ring = (struct netdev_desc *)ring_space; in sundance_probe1()
/drivers/net/ethernet/sis/
Dsis900.c432 void *ring_space; in sis900_probe() local
484 ring_space = dma_alloc_coherent(&pci_dev->dev, TX_TOTAL_SIZE, in sis900_probe()
486 if (!ring_space) { in sis900_probe()
490 sis_priv->tx_ring = ring_space; in sis900_probe()
493 ring_space = dma_alloc_coherent(&pci_dev->dev, RX_TOTAL_SIZE, in sis900_probe()
495 if (!ring_space) { in sis900_probe()
499 sis_priv->rx_ring = ring_space; in sis900_probe()
/drivers/net/ethernet/hisilicon/hns/
Dhns_enet.c222 if (ring_space(ring) < 1) in hns_nic_maybe_stop_tx()
232 } else if (buf_num > ring_space(ring)) { in hns_nic_maybe_stop_tx()
263 if (ring_space(ring) < buf_num) in hns_nic_maybe_stop_tso()
272 } else if (ring_space(ring) < buf_num) { in hns_nic_maybe_stop_tso()
989 (ring_space(ring) >= ring->max_desc_num_per_pkt * 2))) { in hns_nic_tx_poll_one()
Dhnae.h324 static inline int ring_space(struct hnae_ring *ring) in ring_space() function
/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.h611 static inline int ring_space(struct hns3_enet_ring *ring) in ring_space() function
Dhns3_enet.c1890 if (likely(ring_space(ring) >= bd_num)) in hns3_nic_maybe_stop_tx()
1900 if (ring_space(ring) >= bd_num && netif_carrier_ok(netdev) && in hns3_nic_maybe_stop_tx()
3459 ring_space(ring) > HNS3_MAX_TSO_BD_NUM)) { in hns3_clean_tx_ring()