Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/packetengines/
Dyellowfin.c380 void *ring_space; in yellowfin_init_one() local
439 ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, &ring_dma, in yellowfin_init_one()
441 if (!ring_space) in yellowfin_init_one()
443 np->tx_ring = ring_space; in yellowfin_init_one()
446 ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, &ring_dma, in yellowfin_init_one()
448 if (!ring_space) in yellowfin_init_one()
450 np->rx_ring = ring_space; in yellowfin_init_one()
453 ring_space = dma_alloc_coherent(&pdev->dev, STATUS_TOTAL_SIZE, in yellowfin_init_one()
455 if (!ring_space) in yellowfin_init_one()
457 np->tx_status = ring_space; in yellowfin_init_one()
Dhamachi.c592 void *ring_space; in hamachi_init_one() local
651 ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, &ring_dma, in hamachi_init_one()
653 if (!ring_space) in hamachi_init_one()
655 hmp->tx_ring = ring_space; in hamachi_init_one()
658 ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, &ring_dma, in hamachi_init_one()
660 if (!ring_space) in hamachi_init_one()
662 hmp->rx_ring = ring_space; in hamachi_init_one()
/Linux-v6.6/drivers/video/fbdev/intelfb/
Dintelfbhw.c1486 u32 ring_space; in get_ring_space() local
1489 ring_space = dinfo->ring.size - in get_ring_space()
1492 ring_space = dinfo->ring_head - dinfo->ring_tail; in get_ring_space()
1494 if (ring_space > RING_MIN_FREE) in get_ring_space()
1495 ring_space -= RING_MIN_FREE; in get_ring_space()
1497 ring_space = 0; in get_ring_space()
1499 return ring_space; in get_ring_space()
1513 while (dinfo->ring_space < n) { in wait_ring()
1515 dinfo->ring_space = get_ring_space(dinfo); in wait_ring()
1532 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
/Linux-v6.6/drivers/net/ethernet/smsc/
Depic100.c329 void *ring_space; in epic_init_one() local
378 ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, &ring_dma, in epic_init_one()
380 if (!ring_space) in epic_init_one()
382 ep->tx_ring = ring_space; in epic_init_one()
385 ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, &ring_dma, in epic_init_one()
387 if (!ring_space) in epic_init_one()
389 ep->rx_ring = ring_space; in epic_init_one()
/Linux-v6.6/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
547 ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, in sundance_probe1()
549 if (!ring_space) in sundance_probe1()
551 np->tx_ring = (struct netdev_desc *)ring_space; in sundance_probe1()
554 ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, in sundance_probe1()
556 if (!ring_space) in sundance_probe1()
558 np->rx_ring = (struct netdev_desc *)ring_space; in sundance_probe1()
/Linux-v6.6/drivers/net/ethernet/
Dfealnx.c483 void *ring_space; in fealnx_init_one() local
548 ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, &ring_dma, in fealnx_init_one()
550 if (!ring_space) { in fealnx_init_one()
554 np->rx_ring = ring_space; in fealnx_init_one()
557 ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, &ring_dma, in fealnx_init_one()
559 if (!ring_space) { in fealnx_init_one()
563 np->tx_ring = ring_space; in fealnx_init_one()
/Linux-v6.6/drivers/net/ethernet/sis/
Dsis900.c439 void *ring_space; in sis900_probe() local
491 ring_space = dma_alloc_coherent(&pci_dev->dev, TX_TOTAL_SIZE, in sis900_probe()
493 if (!ring_space) { in sis900_probe()
497 sis_priv->tx_ring = ring_space; in sis900_probe()
500 ring_space = dma_alloc_coherent(&pci_dev->dev, RX_TOTAL_SIZE, in sis900_probe()
502 if (!ring_space) { in sis900_probe()
506 sis_priv->rx_ring = ring_space; in sis900_probe()
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns/
Dhns_enet.c220 if (ring_space(ring) < 1) in hns_nic_maybe_stop_tx()
230 } else if (buf_num > ring_space(ring)) { in hns_nic_maybe_stop_tx()
261 if (ring_space(ring) < buf_num) in hns_nic_maybe_stop_tso()
270 } else if (ring_space(ring) < buf_num) { in hns_nic_maybe_stop_tso()
987 (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
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.h622 static inline int ring_space(struct hns3_enet_ring *ring) in ring_space() function
Dhns3_enet.c1949 if (likely(ring_space(ring) >= bd_num)) in hns3_nic_maybe_stop_tx()
1959 if (ring_space(ring) >= bd_num && netif_carrier_ok(netdev) && in hns3_nic_maybe_stop_tx()
3655 ring_space(ring) > HNS3_MAX_TSO_BD_NUM)) { in hns3_clean_tx_ring()