/drivers/net/ethernet/packetengines/ |
D | yellowfin.c | 380 void *ring_space; in yellowfin_init_one() local 437 ring_space = pci_alloc_consistent(pdev, TX_TOTAL_SIZE, &ring_dma); in yellowfin_init_one() 438 if (!ring_space) in yellowfin_init_one() 440 np->tx_ring = ring_space; in yellowfin_init_one() 443 ring_space = pci_alloc_consistent(pdev, RX_TOTAL_SIZE, &ring_dma); in yellowfin_init_one() 444 if (!ring_space) in yellowfin_init_one() 446 np->rx_ring = ring_space; in yellowfin_init_one() 449 ring_space = pci_alloc_consistent(pdev, STATUS_TOTAL_SIZE, &ring_dma); in yellowfin_init_one() 450 if (!ring_space) in yellowfin_init_one() 452 np->tx_status = ring_space; in yellowfin_init_one()
|
D | hamachi.c | 589 void *ring_space; in hamachi_init_one() local 647 ring_space = pci_alloc_consistent(pdev, TX_TOTAL_SIZE, &ring_dma); in hamachi_init_one() 648 if (!ring_space) in hamachi_init_one() 650 hmp->tx_ring = ring_space; in hamachi_init_one() 653 ring_space = pci_alloc_consistent(pdev, RX_TOTAL_SIZE, &ring_dma); in hamachi_init_one() 654 if (!ring_space) in hamachi_init_one() 656 hmp->rx_ring = ring_space; in hamachi_init_one()
|
/drivers/video/fbdev/intelfb/ |
D | intelfbhw.c | 1488 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 …]
|
D | intelfbhw.h | 541 if (dinfo->ring_space < (n) * 4) \ 543 dinfo->ring_space -= (n) * 4; \
|
D | intelfb.h | 308 u32 ring_space; member
|
/drivers/net/ethernet/smsc/ |
D | epic100.c | 327 void *ring_space; in epic_init_one() local 376 ring_space = pci_alloc_consistent(pdev, TX_TOTAL_SIZE, &ring_dma); in epic_init_one() 377 if (!ring_space) in epic_init_one() 379 ep->tx_ring = ring_space; in epic_init_one() 382 ring_space = pci_alloc_consistent(pdev, RX_TOTAL_SIZE, &ring_dma); in epic_init_one() 383 if (!ring_space) in epic_init_one() 385 ep->rx_ring = ring_space; in epic_init_one()
|
/drivers/net/ethernet/ |
D | fealnx.c | 490 void *ring_space; in fealnx_init_one() local 560 ring_space = pci_alloc_consistent(pdev, RX_TOTAL_SIZE, &ring_dma); in fealnx_init_one() 561 if (!ring_space) { in fealnx_init_one() 565 np->rx_ring = ring_space; in fealnx_init_one() 568 ring_space = pci_alloc_consistent(pdev, TX_TOTAL_SIZE, &ring_dma); in fealnx_init_one() 569 if (!ring_space) { in fealnx_init_one() 573 np->tx_ring = ring_space; in fealnx_init_one()
|
/drivers/net/ethernet/dlink/ |
D | dl2k.c | 117 void *ring_space; in rio_probe1() local 234 ring_space = pci_alloc_consistent (pdev, TX_TOTAL_SIZE, &ring_dma); in rio_probe1() 235 if (!ring_space) in rio_probe1() 237 np->tx_ring = ring_space; in rio_probe1() 240 ring_space = pci_alloc_consistent (pdev, RX_TOTAL_SIZE, &ring_dma); in rio_probe1() 241 if (!ring_space) in rio_probe1() 243 np->rx_ring = ring_space; in rio_probe1()
|
D | sundance.c | 510 void *ring_space; in sundance_probe1() local 558 ring_space = dma_alloc_coherent(&pdev->dev, TX_TOTAL_SIZE, in sundance_probe1() 560 if (!ring_space) in sundance_probe1() 562 np->tx_ring = (struct netdev_desc *)ring_space; in sundance_probe1() 565 ring_space = dma_alloc_coherent(&pdev->dev, RX_TOTAL_SIZE, in sundance_probe1() 567 if (!ring_space) in sundance_probe1() 569 np->rx_ring = (struct netdev_desc *)ring_space; in sundance_probe1()
|
/drivers/net/ethernet/sis/ |
D | sis900.c | 432 void *ring_space; in sis900_probe() local 484 ring_space = pci_alloc_consistent(pci_dev, TX_TOTAL_SIZE, &ring_dma); in sis900_probe() 485 if (!ring_space) { in sis900_probe() 489 sis_priv->tx_ring = ring_space; in sis900_probe() 492 ring_space = pci_alloc_consistent(pci_dev, RX_TOTAL_SIZE, &ring_dma); in sis900_probe() 493 if (!ring_space) { in sis900_probe() 497 sis_priv->rx_ring = ring_space; in sis900_probe()
|
/drivers/net/ethernet/hisilicon/hns/ |
D | hns_enet.c | 221 if (ring_space(ring) < 1) in hns_nic_maybe_stop_tx() 231 } else if (buf_num > ring_space(ring)) { in hns_nic_maybe_stop_tx() 262 if (ring_space(ring) < buf_num) in hns_nic_maybe_stop_tso() 271 } 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()
|
D | hnae.h | 324 static inline int ring_space(struct hnae_ring *ring) in ring_space() function
|
/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.h | 560 static inline int ring_space(struct hns3_enet_ring *ring) in ring_space() function
|
D | hns3_enet.c | 1283 if (unlikely(ring_space(ring) < bd_num)) in hns3_nic_maybe_stop_tx() 2370 (ring_space(ring) > HNS3_MAX_BD_PER_PKT))) { in hns3_clean_tx_ring()
|