/linux-2.6.39/drivers/net/wireless/ |
D | adm8211.c | 38 static unsigned int rx_ring_size __read_mostly = 16; 41 module_param(rx_ring_size, uint, 0); 357 unsigned int entry = priv->cur_rx % priv->rx_ring_size; in adm8211_interrupt_rci() 361 unsigned int limit = priv->rx_ring_size; in adm8211_interrupt_rci() 428 (entry == priv->rx_ring_size - 1 ? in adm8211_interrupt_rci() 448 entry = (++priv->cur_rx) % priv->rx_ring_size; in adm8211_interrupt_rci() 1430 for (i = 0; i < priv->rx_ring_size; i++) { in adm8211_init_rings() 1440 for (i = 0; i < priv->rx_ring_size; i++) { in adm8211_init_rings() 1478 for (i = 0; i < priv->rx_ring_size; i++) { in adm8211_free_rings() 1717 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
|
/linux-2.6.39/drivers/net/ |
D | pcnet32.c | 276 unsigned int rx_ring_size; /* current rx ring size */ member 582 overlap = min(size, lp->rx_ring_size); in pcnet32_realloc_rx_ring() 609 for (; new < lp->rx_ring_size; new++) { in pcnet32_realloc_rx_ring() 621 lp->rx_ring_size, lp->rx_ring, in pcnet32_realloc_rx_ring() 624 lp->rx_ring_size = (1 << size); in pcnet32_realloc_rx_ring() 625 lp->rx_mod_mask = lp->rx_ring_size - 1; in pcnet32_realloc_rx_ring() 634 while (--new >= lp->rx_ring_size) { in pcnet32_realloc_rx_ring() 658 for (i = 0; i < lp->rx_ring_size; i++) { in pcnet32_purge_rx_ring() 776 ering->rx_pending = lp->rx_ring_size; in pcnet32_get_ringparam() 814 if ((1 << i) != lp->rx_ring_size) in pcnet32_set_ringparam() [all …]
|
D | pxa168_eth.c | 228 int rx_ring_size; member 349 while (pep->rx_desc_count < pep->rx_ring_size) { in rxq_refill() 375 pep->rx_used_desc_q = (used_rx_desc + 1) % pep->rx_ring_size; in rxq_refill() 806 rx_next_curr_desc = (rx_curr_desc + 1) % pep->rx_ring_size; in rxq_process() 1014 int rx_desc_num = pep->rx_ring_size; in rxq_init() 1017 pep->rx_skb = kmalloc(sizeof(*pep->rx_skb) * pep->rx_ring_size, in rxq_init() 1025 size = pep->rx_ring_size * sizeof(struct rx_desc); in rxq_init() 1057 for (curr = 0; pep->rx_desc_count && curr < pep->rx_ring_size; curr++) { in rxq_deinit() 1524 pep->rx_ring_size = NUM_RX_DESCS; in pxa168_eth_probe() 1526 pep->rx_ring_size = pep->pd->rx_queue_size; in pxa168_eth_probe() [all …]
|
D | gianfar_ethtool.c | 448 rvals->rx_pending = rx_queue->rx_ring_size; in gfar_gringparam() 449 rvals->rx_mini_pending = rx_queue->rx_ring_size; in gfar_gringparam() 450 rvals->rx_jumbo_pending = rx_queue->rx_ring_size; in gfar_gringparam() 499 priv->rx_queue[i]->rx_ring_size); in gfar_sringparam() 507 priv->rx_queue[i]->rx_ring_size = rvals->rx_pending; in gfar_sringparam() 545 priv->rx_queue[i]->rx_ring_size); in gfar_set_rx_csum()
|
D | bcm63xx_enet.c | 183 while (priv->rx_desc_count < priv->rx_ring_size) { in bcm_enet_refill_rx() 207 if (priv->rx_dirty_desc == priv->rx_ring_size - 1) { in bcm_enet_refill_rx() 289 if (priv->rx_curr_desc == priv->rx_ring_size) in bcm_enet_receive_queue() 863 size = priv->rx_ring_size * sizeof(struct bcm_enet_desc); in bcm_enet_open() 902 priv->rx_skb = kzalloc(sizeof(struct sk_buff *) * priv->rx_ring_size, in bcm_enet_open() 952 val = priv->rx_ring_size / 3; in bcm_enet_open() 954 val = (priv->rx_ring_size * 2) / 3; in bcm_enet_open() 994 for (i = 0; i < priv->rx_ring_size; i++) { in bcm_enet_open() 1111 for (i = 0; i < priv->rx_ring_size; i++) { in bcm_enet_stop() 1401 ering->rx_pending = priv->rx_ring_size; in bcm_enet_get_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 | mv643xx_eth.c | 348 int rx_ring_size; member 415 int rx_ring_size; member 575 if (rxq->rx_curr_desc == rxq->rx_ring_size) in rxq_process() 657 while (refilled < budget && rxq->rx_desc_count < rxq->rx_ring_size) { in rxq_refill() 679 if (rxq->rx_used_desc == rxq->rx_ring_size) in rxq_refill() 976 mp->rx_ring_size && in txq_reclaim() 1549 er->rx_pending = mp->rx_ring_size; in mv643xx_eth_get_ringparam() 1563 mp->rx_ring_size = er->rx_pending < 4096 ? er->rx_pending : 4096; in mv643xx_eth_set_ringparam() 1857 rxq->rx_ring_size = mp->rx_ring_size; in rxq_init() 1863 size = rxq->rx_ring_size * sizeof(struct rx_desc); in rxq_init() [all …]
|
D | 82596.c | 367 static int rx_ring_size = RX_RING_SIZE; variable 534 for (i = 0, rbd = lp->rbds; i < rx_ring_size; i++, rbd++) { in remove_rx_bufs() 551 for (i = 0, rbd = lp->rbds; i < rx_ring_size; i++, rbd++) { in init_rx_bufs() 572 rbd = lp->rbds + rx_ring_size - 1; in init_rx_bufs() 578 for (i = 0, rfd = lp->rfds; i < rx_ring_size; i++, rfd++) { in init_rx_bufs() 589 rfd->v_prev = lp->rfds + rx_ring_size - 1; in init_rx_bufs() 590 rfd = lp->rfds + rx_ring_size - 1; in init_rx_bufs() 606 for (i = 0; i < rx_ring_size; i++) { in rebuild_rx_bufs() 610 lp->rfds[rx_ring_size-1].cmd = CMD_EOL|CMD_FLEX; in rebuild_rx_bufs()
|
D | forcedeth.c | 799 int rx_ring_size; member 984 …writel(dma_low(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc)), base + NvRegTxRingPhysA… in setup_hw_rings() 991 …writel(dma_low(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc_ex)), base + NvRegTxRingPh… in setup_hw_rings() 992 …writel(dma_high(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc_ex)), base + NvRegTxRingP… in setup_hw_rings() 1003 … pci_free_consistent(np->pci_dev, sizeof(struct ring_desc) * (np->rx_ring_size + np->tx_ring_size), in free_rings() 1007 …pci_free_consistent(np->pci_dev, sizeof(struct ring_desc_ex) * (np->rx_ring_size + np->tx_ring_siz… in free_rings() 1810 np->last_rx.orig = &np->rx_ring.orig[np->rx_ring_size-1]; in nv_init_rx() 1812 np->last_rx.ex = &np->rx_ring.ex[np->rx_ring_size-1]; in nv_init_rx() 1814 np->last_rx_ctx = &np->rx_skb[np->rx_ring_size-1]; in nv_init_rx() 1816 for (i = 0; i < np->rx_ring_size; i++) { in nv_init_rx() [all …]
|
D | jme.c | 800 for (i = 0 ; i < jme->rx_ring_size ; ++i) in jme_free_rx_resources() 806 RX_RING_ALLOC_SIZE(jme->rx_ring_size), in jme_free_rx_resources() 826 RX_RING_ALLOC_SIZE(jme->rx_ring_size), in jme_setup_rx_resources() 842 jme->rx_ring_size, GFP_ATOMIC); in jme_setup_rx_resources() 850 sizeof(struct jme_buffer_info) * jme->rx_ring_size); in jme_setup_rx_resources() 851 for (i = 0 ; i < jme->rx_ring_size ; ++i) { in jme_setup_rx_resources() 864 RX_RING_ALLOC_SIZE(jme->rx_ring_size), in jme_setup_rx_resources() 896 jwrite32(jme, JME_RXQDC, jme->rx_ring_size); in jme_enable_rx_engine() 1376 jme_process_receive(jme, jme->rx_ring_size); in jme_rx_clean_tasklet() 2986 jme->rx_ring_size = 1 << 9; in jme_init_one() [all …]
|
D | bcm63xx_enet.h | 194 int rx_ring_size; member
|
D | gianfar.c | 162 if (bdp == rx_queue->rx_bd_base + rx_queue->rx_ring_size - 1) in gfar_init_rxbdp() 207 for (j = 0; j < rx_queue->rx_ring_size; j++) { in gfar_init_bds() 253 priv->total_rx_ring_size += priv->rx_queue[i]->rx_ring_size; in gfar_alloc_skb_resources() 283 addr += sizeof (struct rxbd8) * rx_queue->rx_ring_size; in gfar_alloc_skb_resources() 284 vaddr += sizeof (struct rxbd8) * rx_queue->rx_ring_size; in gfar_alloc_skb_resources() 306 rx_queue->rx_ring_size, GFP_KERNEL); in gfar_alloc_skb_resources() 315 for (j = 0; j < rx_queue->rx_ring_size; j++) in gfar_alloc_skb_resources() 1147 priv->rx_queue[i]->rx_ring_size = DEFAULT_RX_RING_SIZE; in gfar_probe() 1223 dev->name, i, priv->rx_queue[i]->rx_ring_size); in gfar_probe() 1731 for (i = 0; i < rx_queue->rx_ring_size; i++) { in free_skb_rx_queue() [all …]
|
D | starfire.c | 922 size_t tx_done_q_size, rx_done_q_size, tx_ring_size, rx_ring_size; in netdev_open() local 942 rx_ring_size = sizeof(struct starfire_rx_desc) * RX_RING_SIZE; in netdev_open() 943 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 | 1471 const unsigned int rx_ring_size = opt->numrx * sizeof(struct rx_desc); in velocity_init_dma_rings() local 1485 rx_ring_size, &pool_dma); in velocity_init_dma_rings() 1495 pool += rx_ring_size; in velocity_init_dma_rings() 1496 pool_dma += rx_ring_size; in velocity_init_dma_rings()
|
D | jme.h | 442 u32 rx_ring_size; member
|
/linux-2.6.39/include/scsi/ |
D | libsrp.h | 38 size_t rx_ring_size; member
|
/linux-2.6.39/drivers/net/pch_gbe/ |
D | pch_gbe_ethtool.c | 295 int tx_ring_size, rx_ring_size; in pch_gbe_set_ringparam() local 301 rx_ring_size = (int)sizeof(struct pch_gbe_rx_ring); in pch_gbe_set_ringparam() 313 rxdr = kzalloc(rx_ring_size, GFP_KERNEL); in pch_gbe_set_ringparam()
|
/linux-2.6.39/drivers/net/bnx2x/ |
D | bnx2x_cmn.c | 806 int rx_ring_size) in bnx2x_alloc_rx_bds() argument 814 for (i = 0; i < rx_ring_size; i++) { in bnx2x_alloc_rx_bds() 838 int rx_ring_size = bp->rx_ring_size ? bp->rx_ring_size : in bnx2x_alloc_rx_bd_ring() local 841 rx_ring_size = max_t(int, MIN_RX_AVAIL, rx_ring_size); in bnx2x_alloc_rx_bd_ring() 843 bnx2x_alloc_rx_bds(fp, rx_ring_size); in bnx2x_alloc_rx_bd_ring()
|
/linux-2.6.39/drivers/scsi/ |
D | libsrp.c | 139 target->rx_ring_size = nr; in srp_target_alloc() 157 srp_ring_free(target->dev, target->rx_ring, target->rx_ring_size, in srp_target_free()
|
/linux-2.6.39/drivers/net/vmxnet3/ |
D | vmxnet3_int.h | 408 u32 tx_ring_size, u32 rx_ring_size, u32 rx_ring2_size);
|
/linux-2.6.39/drivers/net/mlx4/ |
D | en_main.c | 119 params->prof[i].rx_ring_size = MLX4_EN_DEF_RX_RING_SIZE; in mlx4_en_get_profile()
|
D | mlx4_en.h | 317 u32 rx_ring_size; member
|
D | en_ethtool.c | 451 priv->prof->rx_ring_size = rx_size; in mlx4_en_set_ringparam()
|
D | en_netdev.c | 959 prof->rx_ring_size, i, RX)) in mlx4_en_alloc_resources() 963 prof->rx_ring_size, priv->stride)) in mlx4_en_alloc_resources()
|