/drivers/net/ |
D | gianfar_ethtool.c | 423 rvals->rx_pending = priv->rx_ring_size; in gfar_gringparam() 424 rvals->rx_mini_pending = priv->rx_ring_size; in gfar_gringparam() 425 rvals->rx_jumbo_pending = priv->rx_ring_size; in gfar_gringparam() 469 gfar_clean_rx_ring(dev, priv->rx_ring_size); in gfar_sringparam() 476 priv->rx_ring_size = rvals->rx_pending; in gfar_sringparam() 508 gfar_clean_rx_ring(dev, priv->rx_ring_size); in gfar_set_rx_csum()
|
D | pcnet32.c | 272 unsigned int rx_ring_size; /* current rx ring size */ member 592 overlap = min(size, lp->rx_ring_size); in pcnet32_realloc_rx_ring() 620 for (; new < lp->rx_ring_size; new++) { in pcnet32_realloc_rx_ring() 632 lp->rx_ring_size, lp->rx_ring, in pcnet32_realloc_rx_ring() 635 lp->rx_ring_size = (1 << size); in pcnet32_realloc_rx_ring() 636 lp->rx_mod_mask = lp->rx_ring_size - 1; in pcnet32_realloc_rx_ring() 645 for (; --new >= lp->rx_ring_size; ) { in pcnet32_realloc_rx_ring() 670 for (i = 0; i < lp->rx_ring_size; i++) { in pcnet32_purge_rx_ring() 788 ering->rx_pending = lp->rx_ring_size; in pcnet32_get_ringparam() 826 if ((1 << i) != lp->rx_ring_size) in pcnet32_set_ringparam() [all …]
|
D | lib82596.c | 361 static int rx_ring_size = RX_RING_SIZE; variable 471 for (i = 0, rbd = dma->rbds; i < rx_ring_size; i++, rbd++) { in init_rx_bufs() 489 rbd = dma->rbds + rx_ring_size - 1; in init_rx_bufs() 495 for (i = 0, rfd = dma->rfds; i < rx_ring_size; i++, rfd++) { in init_rx_bufs() 506 rfd->v_prev = dma->rfds + rx_ring_size - 1; in init_rx_bufs() 507 rfd = dma->rfds + rx_ring_size - 1; in init_rx_bufs() 522 for (i = 0, rbd = lp->dma->rbds; i < rx_ring_size; i++, rbd++) { in remove_rx_bufs() 541 for (i = 0; i < rx_ring_size; i++) { in rebuild_rx_bufs() 545 dma->rfds[rx_ring_size-1].cmd = SWAP16(CMD_EOL|CMD_FLEX); in rebuild_rx_bufs()
|
D | 82596.c | 367 static int rx_ring_size = RX_RING_SIZE; variable 537 for (i = 0, rbd = lp->rbds; i < rx_ring_size; i++, rbd++) { in init_rx_bufs() 555 rbd = lp->rbds + rx_ring_size - 1; in init_rx_bufs() 561 for (i = 0, rfd = lp->rfds; i < rx_ring_size; i++, rfd++) { in init_rx_bufs() 572 rfd->v_prev = lp->rfds + rx_ring_size - 1; in init_rx_bufs() 573 rfd = lp->rfds + rx_ring_size - 1; in init_rx_bufs() 585 for (i = 0, rbd = lp->rbds; i < rx_ring_size; i++, rbd++) { in remove_rx_bufs() 600 for (i = 0; i < rx_ring_size; i++) { in rebuild_rx_bufs() 604 lp->rfds[rx_ring_size-1].cmd = CMD_EOL|CMD_FLEX; in rebuild_rx_bufs()
|
D | gianfar.c | 447 priv->rx_ring_size = DEFAULT_RX_RING_SIZE; in gfar_probe() 496 dev->name, priv->rx_ring_size, priv->tx_ring_size); in gfar_probe() 848 + sizeof(struct rxbd8)*priv->rx_ring_size, in stop_gfar() 888 for (i = 0; i < priv->rx_ring_size; i++) { in free_skb_resources() 958 sizeof (struct rxbd8) * priv->rx_ring_size, in startup_gfar() 997 priv->rx_ring_size, GFP_KERNEL); in startup_gfar() 1007 for (i = 0; i < priv->rx_ring_size; i++) in startup_gfar() 1030 for (i = 0; i < priv->rx_ring_size; i++) { in startup_gfar() 1170 + sizeof(struct rxbd8)*priv->rx_ring_size, in startup_gfar() 1662 if (bdp == priv->rx_bd_base + priv->rx_ring_size - 1) in gfar_new_rxbdp() [all …]
|
D | forcedeth.c | 779 int rx_ring_size; member 956 …writel(dma_low(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc)), base + NvRegTxRingPhysA… in setup_hw_rings() 964 …writel(dma_low(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc_ex)), base + NvRegTxRingPh… in setup_hw_rings() 965 …writel(dma_high(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc_ex)), base + NvRegTxRingP… in setup_hw_rings() 976 … pci_free_consistent(np->pci_dev, sizeof(struct ring_desc) * (np->rx_ring_size + np->tx_ring_size), in free_rings() 980 …pci_free_consistent(np->pci_dev, sizeof(struct ring_desc_ex) * (np->rx_ring_size + np->tx_ring_siz… in free_rings() 1809 np->last_rx.orig = &np->rx_ring.orig[np->rx_ring_size-1]; in nv_init_rx() 1811 np->last_rx.ex = &np->rx_ring.ex[np->rx_ring_size-1]; in nv_init_rx() 1813 np->last_rx_ctx = &np->rx_skb[np->rx_ring_size-1]; in nv_init_rx() 1815 for (i = 0; i < np->rx_ring_size; i++) { in nv_init_rx() [all …]
|
D | mv643xx_eth.c | 327 int rx_ring_size; member 520 if (rxq->rx_curr_desc == rxq->rx_ring_size) in rxq_process() 594 while (refilled < budget && rxq->rx_desc_count < rxq->rx_ring_size) { in rxq_refill() 618 if (rxq->rx_used_desc == rxq->rx_ring_size) in rxq_refill() 1640 rxq->rx_ring_size = mp->default_rx_ring_size; in rxq_init() 1646 size = rxq->rx_ring_size * sizeof(struct rx_desc); in rxq_init() 1666 rxq->rx_skb = kmalloc(rxq->rx_ring_size * sizeof(*rxq->rx_skb), in rxq_init() 1675 for (i = 0; i < rxq->rx_ring_size; i++) { in rxq_init() 1679 if (nexti == rxq->rx_ring_size) in rxq_init() 1708 for (i = 0; i < rxq->rx_ring_size; i++) { in rxq_deinit()
|
D | jme.c | 724 for (i = 0 ; i < jme->rx_ring_size ; ++i) in jme_free_rx_resources() 728 RX_RING_ALLOC_SIZE(jme->rx_ring_size), in jme_free_rx_resources() 747 RX_RING_ALLOC_SIZE(jme->rx_ring_size), in jme_setup_rx_resources() 769 for (i = 0 ; i < jme->rx_ring_size ; ++i) { in jme_setup_rx_resources() 801 jwrite32(jme, JME_RXQDC, jme->rx_ring_size); in jme_enable_rx_engine() 1245 jme_process_receive(jme, jme->rx_ring_size); in jme_rx_clean_tasklet() 2710 jme->rx_ring_size = 1 << 9; in jme_init_one() 2711 jme->rx_ring_mask = jme->rx_ring_size - 1; in jme_init_one() 2737 NETIF_NAPI_SET(netdev, &jme->napi, jme_poll, jme->rx_ring_size >> 2) in jme_init_one()
|
D | starfire.c | 927 size_t tx_done_q_size, rx_done_q_size, tx_ring_size, rx_ring_size; in netdev_open() local 947 rx_ring_size = sizeof(struct starfire_rx_desc) * RX_RING_SIZE; in netdev_open() 948 np->queue_mem_size = tx_done_q_size + rx_done_q_size + tx_ring_size + rx_ring_size; in netdev_open()
|
D | via-velocity.c | 1118 const unsigned int rx_ring_size = opt->numrx * sizeof(struct rx_desc); in velocity_init_dma_rings() local 1132 rx_ring_size, &pool_dma); in velocity_init_dma_rings() 1142 pool += rx_ring_size; in velocity_init_dma_rings() 1143 pool_dma += rx_ring_size; in velocity_init_dma_rings()
|
D | gianfar.h | 754 unsigned int rx_ring_size; member
|
D | jme.h | 443 u32 rx_ring_size; member
|
D | bnx2x.h | 836 int rx_ring_size; member
|
D | bnx2.c | 1101 if (lo_water >= bp->rx_ring_size) in bnx2_init_rx_context() 1104 hi_water = bp->rx_ring_size / 4; in bnx2_init_rx_context() 4893 for (i = 0; i < bp->rx_ring_size; i++) { in bnx2_init_rx_ring() 5009 bp->rx_ring_size = size; in bnx2_set_rx_ring_size() 6700 ering->rx_pending = bp->rx_ring_size; in bnx2_get_ringparam() 7246 return (bnx2_change_ring_size(bp, bp->rx_ring_size, bp->tx_ring_size)); in bnx2_change_mtu()
|
/drivers/net/wireless/ |
D | adm8211.c | 37 static unsigned int rx_ring_size __read_mostly = 16; 40 module_param(rx_ring_size, uint, 0); 368 unsigned int entry = priv->cur_rx % priv->rx_ring_size; in adm8211_interrupt_rci() 372 unsigned int limit = priv->rx_ring_size; in adm8211_interrupt_rci() 439 (entry == priv->rx_ring_size - 1 ? in adm8211_interrupt_rci() 458 entry = (++priv->cur_rx) % priv->rx_ring_size; in adm8211_interrupt_rci() 1428 for (i = 0; i < priv->rx_ring_size; i++) { in adm8211_init_rings() 1438 for (i = 0; i < priv->rx_ring_size; i++) { in adm8211_init_rings() 1476 for (i = 0; i < priv->rx_ring_size; i++) { in adm8211_free_rings() 1720 priv->rx_buffers = kmalloc(sizeof(*priv->rx_buffers) * priv->rx_ring_size + in adm8211_alloc_rings() [all …]
|
D | adm8211.h | 546 unsigned int rx_ring_size, tx_ring_size; member
|
/drivers/net/mlx4/ |
D | en_params.c | 82 params->prof[i].rx_ring_size = MLX4_EN_DEF_RX_RING_SIZE; in mlx4_en_get_profile() 407 if (rx_size == priv->prof->rx_ring_size && in mlx4_en_set_ringparam() 420 priv->prof->rx_ring_size = rx_size; in mlx4_en_set_ringparam() 447 param->rx_pending = mdev->profile.prof[priv->port].rx_ring_size; in mlx4_en_get_ringparam()
|
D | mlx4_en.h | 328 u32 rx_ring_size; member
|
D | en_netdev.c | 868 prof->rx_ring_size, i, RX)) in mlx4_en_alloc_resources() 872 prof->rx_ring_size, priv->stride)) in mlx4_en_alloc_resources()
|
D | en_rx.c | 212 for (buf_ind = 0; buf_ind < priv->prof->rx_ring_size; buf_ind++) { in mlx4_en_fill_rx_buffers()
|
/drivers/scsi/ |
D | libsrp.c | 141 target->rx_ring_size = nr; in srp_target_alloc() 159 srp_ring_free(target->dev, target->rx_ring, target->rx_ring_size, in srp_target_free()
|
/drivers/net/qlge/ |
D | qlge_ethtool.c | 332 if (c->rx_coalesce_usecs > qdev->rx_ring_size / 2) in ql_set_coalesce()
|
D | qlge.h | 1382 int rx_ring_size; member
|
D | qlge_main.c | 3339 rx_ring->cq_len = qdev->rx_ring_size; in ql_configure_rings() 3370 rx_ring->cq_len = qdev->rx_ring_size; in ql_configure_rings() 3685 qdev->rx_ring_size = NUM_RX_RING_ENTRIES; in ql_init_device()
|
/drivers/net/myri10ge/ |
D | myri10ge.c | 1902 int tx_ring_size, rx_ring_size; in myri10ge_allocate_rings() local 1916 rx_ring_size = cmd.data0; in myri10ge_allocate_rings() 1919 rx_ring_entries = rx_ring_size / sizeof(struct mcp_dma_addr); in myri10ge_allocate_rings()
|