/linux-2.6.39/drivers/net/stmmac/ |
D | norm_desc.c | 122 static void ndesc_init_rx_desc(struct dma_desc *p, unsigned int ring_size, in ndesc_init_rx_desc() argument 126 for (i = 0; i < ring_size; i++) { in ndesc_init_rx_desc() 129 if (i == ring_size - 1) in ndesc_init_rx_desc() 137 static void ndesc_init_tx_desc(struct dma_desc *p, unsigned int ring_size) in ndesc_init_tx_desc() argument 140 for (i = 0; i < ring_size; i++) { in ndesc_init_tx_desc() 142 if (i == ring_size - 1) in ndesc_init_tx_desc()
|
D | enh_desc.c | 229 static void enh_desc_init_rx_desc(struct dma_desc *p, unsigned int ring_size, in enh_desc_init_rx_desc() argument 233 for (i = 0; i < ring_size; i++) { in enh_desc_init_rx_desc() 238 if (i == ring_size - 1) in enh_desc_init_rx_desc() 246 static void enh_desc_init_tx_desc(struct dma_desc *p, unsigned int ring_size) in enh_desc_init_tx_desc() argument 250 for (i = 0; i < ring_size; i++) { in enh_desc_init_tx_desc() 252 if (i == ring_size - 1) in enh_desc_init_tx_desc()
|
D | common.h | 146 void (*init_rx_desc) (struct dma_desc *p, unsigned int ring_size, 149 void (*init_tx_desc) (struct dma_desc *p, unsigned int ring_size);
|
/linux-2.6.39/arch/powerpc/platforms/pasemi/ |
D | dma_lib.c | 252 int pasemi_dma_alloc_ring(struct pasemi_dmachan *chan, int ring_size) in pasemi_dma_alloc_ring() argument 256 chan->ring_size = ring_size; in pasemi_dma_alloc_ring() 259 ring_size * sizeof(u64), in pasemi_dma_alloc_ring() 265 memset(chan->ring_virt, 0, ring_size * sizeof(u64)); in pasemi_dma_alloc_ring() 280 dma_free_coherent(&dma_pdev->dev, chan->ring_size * sizeof(u64), in pasemi_dma_free_ring() 283 chan->ring_size = 0; in pasemi_dma_free_ring()
|
/linux-2.6.39/drivers/gpu/drm/radeon/ |
D | radeon_ring.c | 259 rdev->cp.ring_free_dw = (rdev->cp.rptr + (rdev->cp.ring_size / 4)); in radeon_ring_free_size() 263 rdev->cp.ring_free_dw = rdev->cp.ring_size / 4; in radeon_ring_free_size() 328 int radeon_ring_init(struct radeon_device *rdev, unsigned ring_size) in radeon_ring_init() argument 332 rdev->cp.ring_size = ring_size; in radeon_ring_init() 335 r = radeon_bo_create(rdev, rdev->cp.ring_size, PAGE_SIZE, true, in radeon_ring_init() 360 rdev->cp.ptr_mask = (rdev->cp.ring_size / 4) - 1; in radeon_ring_init() 361 rdev->cp.ring_free_dw = rdev->cp.ring_size / 4; in radeon_ring_init()
|
D | evergreen_blit_kms.c | 671 int ring_size, line_size; in evergreen_blit_prepare_copy() local 693 ring_size = num_loops * dwords_per_loop; in evergreen_blit_prepare_copy() 695 ring_size += 52; /* shaders + def state */ in evergreen_blit_prepare_copy() 696 ring_size += 10; /* fence emit for VB IB */ in evergreen_blit_prepare_copy() 697 ring_size += 5; /* done copy */ in evergreen_blit_prepare_copy() 698 ring_size += 10; /* fence emit for done copy */ in evergreen_blit_prepare_copy() 699 r = radeon_ring_lock(rdev, ring_size); in evergreen_blit_prepare_copy()
|
D | r600_blit_kms.c | 606 int ring_size, line_size; in r600_blit_prepare_copy() local 632 ring_size = num_loops * dwords_per_loop; in r600_blit_prepare_copy() 634 ring_size += 40; /* shaders + def state */ in r600_blit_prepare_copy() 635 ring_size += 10; /* fence emit for VB IB */ in r600_blit_prepare_copy() 636 ring_size += 5; /* done copy */ in r600_blit_prepare_copy() 637 ring_size += 10; /* fence emit for done copy */ in r600_blit_prepare_copy() 638 r = radeon_ring_lock(rdev, ring_size); in r600_blit_prepare_copy()
|
D | radeon_ioc32.c | 43 int ring_size; member 76 || __put_user(init32.ring_size, &init->ring_size) in compat_radeon_cp_init()
|
/linux-2.6.39/drivers/gpu/drm/r128/ |
D | r128_ioc32.c | 44 int ring_size; member 78 || __put_user(init32.ring_size, &init->ring_size) in compat_r128_init()
|
/linux-2.6.39/drivers/staging/hv/ |
D | netvsc_drv.c | 57 static int ring_size = 128; variable 58 module_param(ring_size, int, S_IRUGO); 59 MODULE_PARM_DESC(ring_size, "Ring buffer size (# of pages)"); 377 net_device_ctx->avail = ring_size; in netvsc_probe() 511 net_drv_obj->ring_buf_size = ring_size * PAGE_SIZE; in netvsc_drv_init()
|
D | ring_buffer.h | 58 u32 ring_size; /* Include the shared header */ member
|
/linux-2.6.39/include/drm/ |
D | i810_drm.h | 110 unsigned int ring_size; member 130 unsigned int ring_size; member
|
/linux-2.6.39/drivers/net/ |
D | cpmac.c | 201 int ring_size; member 706 for (i = 0; i < priv->ring_size; i++) { in cpmac_clear_rx() 886 ring->rx_pending = priv->ring_size; in cpmac_get_ringparam() 899 priv->ring_size = ring->rx_pending; in cpmac_set_ringparam() 983 size = priv->ring_size + CPMAC_QUEUES; in cpmac_open() 997 for (i = 0, desc = priv->rx_head; i < priv->ring_size; i++, desc++) { in cpmac_open() 1010 desc->next = &priv->rx_head[(i + 1) % priv->ring_size]; in cpmac_open() 1037 for (i = 0; i < priv->ring_size; i++) { in cpmac_open() 1081 for (i = 0; i < priv->ring_size; i++) { in cpmac_stop() 1092 (CPMAC_QUEUES + priv->ring_size), in cpmac_stop() [all …]
|
D | gianfar.h | 259 #define skip_bd(bdp, stride, base, ring_size) ({ \ argument 261 (new_bd >= (base) + (ring_size)) ? (new_bd - (ring_size)) : new_bd; }) 263 #define next_bd(bdp, base, ring_size) skip_bd(bdp, 1, base, ring_size) argument
|
/linux-2.6.39/drivers/net/enic/ |
D | vnic_cq.c | 66 iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size); in vnic_cq_init()
|
D | vnic_cq.h | 29 u32 ring_size; /* 0x08 */ member
|
D | vnic_wq.h | 31 u32 ring_size; /* 0x08 */ member
|
/linux-2.6.39/drivers/scsi/fnic/ |
D | vnic_cq.c | 62 iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size); in vnic_cq_init()
|
D | vnic_wq_copy.c | 110 iowrite32(wq->ring.desc_count, &wq->ctrl->ring_size); in vnic_wq_copy_init()
|
D | vnic_cq.h | 37 u32 ring_size; /* 0x08 */ member
|
/linux-2.6.39/include/linux/mmc/ |
D | dw_mmc.h | 125 unsigned int ring_size; member
|
/linux-2.6.39/arch/sparc/include/asm/ |
D | vio.h | 259 unsigned int ring_size) in vio_dring_avail() argument 262 ((dr->prod - dr->cons) & (ring_size - 1))); in vio_dring_avail()
|
/linux-2.6.39/arch/powerpc/include/asm/ |
D | pasemi_dma.h | 487 unsigned int ring_size; /* size of allocated ring */ member 517 extern int pasemi_dma_alloc_ring(struct pasemi_dmachan *chan, int ring_size);
|
/linux-2.6.39/drivers/net/vmxnet3/ |
D | vmxnet3_defs.h | 607 #define VMXNET3_INC_RING_IDX_ONLY(idx, ring_size) \ argument 610 if (unlikely((idx) == (ring_size))) {\
|
/linux-2.6.39/drivers/net/atl1e/ |
D | atl1e_main.c | 679 static void atl1e_cal_ring_size(struct atl1e_adapter *adapter, u32 *ring_size) in atl1e_cal_ring_size() argument 681 *ring_size = ((u32)(adapter->tx_ring.count * in atl1e_cal_ring_size() 705 atl1e_cal_ring_size(adapter, &adapter->ring_size); in atl1e_init_ring_resources() 753 pci_free_consistent(pdev, adapter->ring_size, in atl1e_free_ring_resources() 788 size = adapter->ring_size; in atl1e_setup_ring_resources() 790 adapter->ring_size, &adapter->ring_dma); in atl1e_setup_ring_resources() 798 memset(adapter->ring_vir_addr, 0, adapter->ring_size); in atl1e_setup_ring_resources() 845 if (unlikely(offset > adapter->ring_size)) { in atl1e_setup_ring_resources() 847 offset, adapter->ring_size); in atl1e_setup_ring_resources() 855 pci_free_consistent(pdev, adapter->ring_size, in atl1e_setup_ring_resources()
|