/linux-2.4.37.9/drivers/char/drm/ |
D | r128_drv.h | 38 #define GET_RING_HEAD(ring) readl( (volatile u32 *) (ring)->head ) argument 39 #define SET_RING_HEAD(ring,val) writel( (val), (volatile u32 *) (ring)->head ) argument 63 drm_r128_ring_buffer_t ring; member 143 r128_update_ring_snapshot( drm_r128_ring_buffer_t *ring ) in r128_update_ring_snapshot() argument 145 ring->space = (GET_RING_HEAD( ring ) - ring->tail) * sizeof(u32); in r128_update_ring_snapshot() 146 if ( ring->space <= 0 ) in r128_update_ring_snapshot() 147 ring->space += ring->size; in r128_update_ring_snapshot() 437 drm_r128_ring_buffer_t *ring = &dev_priv->ring; int i; \ 438 if ( ring->space < ring->high_mark ) { \ 440 r128_update_ring_snapshot( ring ); \ [all …]
|
D | radeon_drv.h | 34 #define GET_RING_HEAD(ring) readl( (volatile u32 *) (ring)->head ) argument 35 #define SET_RING_HEAD(ring,val) writel( (val), (volatile u32 *) (ring)->head ) argument 74 drm_radeon_ring_buffer_t ring; member 805 u32 head = GET_RING_HEAD(&dev_priv->ring); \ 806 if (head == dev_priv->ring.tail) \ 844 #define RING_LOCALS int write, _nr; unsigned int mask; u32 *ring; 851 if ( dev_priv->ring.space <= (n) * sizeof(u32) ) { \ 855 _nr = n; dev_priv->ring.space -= (n) * sizeof(u32); \ 856 ring = dev_priv->ring.start; \ 857 write = dev_priv->ring.tail; \ [all …]
|
D | i810_dma.c | 55 if (dev_priv->ring.space < n*4) \ 57 dev_priv->ring.space -= n*4; \ 58 outring = dev_priv->ring.tail; \ 59 ringmask = dev_priv->ring.tail_mask; \ 60 virt = dev_priv->ring.virtual_start; \ 65 dev_priv->ring.tail = outring; \ 277 if(dev_priv->ring.virtual_start) { in i810_dma_cleanup() 278 DRM(ioremapfree)((void *) dev_priv->ring.virtual_start, in i810_dma_cleanup() 279 dev_priv->ring.Size, dev); in i810_dma_cleanup() 304 drm_i810_ring_buffer_t *ring = &(dev_priv->ring); in i810_wait_ring() local [all …]
|
D | i830_dma.c | 253 if(dev_priv->ring.virtual_start) { in i830_dma_cleanup() 254 DRM(ioremapfree)((void *) dev_priv->ring.virtual_start, in i830_dma_cleanup() 255 dev_priv->ring.Size, dev); in i830_dma_cleanup() 289 drm_i830_ring_buffer_t *ring = &(dev_priv->ring); in i830_wait_ring() local 295 while (ring->space < n) { in i830_wait_ring() 296 ring->head = I830_READ(LP_RING + RING_HEAD) & HEAD_ADDR; in i830_wait_ring() 297 ring->space = ring->head - (ring->tail+8); in i830_wait_ring() 298 if (ring->space < 0) ring->space += ring->Size; in i830_wait_ring() 300 if (ring->head != last_head) { in i830_wait_ring() 302 last_head = ring->head; in i830_wait_ring() [all …]
|
D | radeon_cp.c | 778 *dev_priv->ring.head = cur_read_ptr; in radeon_do_cp_reset() 779 dev_priv->ring.tail = cur_read_ptr; in radeon_do_cp_reset() 891 *dev_priv->ring.head = cur_read_ptr; in radeon_cp_init_ring_buffer() 892 dev_priv->ring.tail = cur_read_ptr; in radeon_cp_init_ring_buffer() 922 dev_priv->ring.head + in radeon_cp_init_ring_buffer() 959 RADEON_WRITE( RADEON_CP_RB_CNTL, dev_priv->ring.size_l2qw | RADEON_BUF_SWAP_32BIT ); in radeon_cp_init_ring_buffer() 961 RADEON_WRITE( RADEON_CP_RB_CNTL, dev_priv->ring.size_l2qw ); in radeon_cp_init_ring_buffer() 1195 dev_priv->ring.head = ((__volatile__ u32 *) in radeon_do_init_cp() 1198 dev_priv->ring.start = (u32 *)dev_priv->cp_ring->handle; in radeon_do_init_cp() 1199 dev_priv->ring.end = ((u32 *)dev_priv->cp_ring->handle in radeon_do_init_cp() [all …]
|
D | i830_drv.h | 62 drm_i830_ring_buffer_t ring; member 163 if (dev_priv->ring.space < n*4) \ 166 outring = dev_priv->ring.tail; \ 167 ringmask = dev_priv->ring.tail_mask; \ 168 virt = dev_priv->ring.virtual_start; \ 182 dev_priv->ring.tail = outring; \ 183 dev_priv->ring.space -= outcount * 4; \
|
D | r128_cce.c | 219 if ( GET_RING_HEAD( &dev_priv->ring ) == dev_priv->ring.tail ) { in r128_do_cce_idle() 245 dev_priv->cce_mode | dev_priv->ring.size_l2qw ); in r128_do_cce_start() 260 SET_RING_HEAD( &dev_priv->ring, 0 ); in r128_do_cce_reset() 261 dev_priv->ring.tail = 0; in r128_do_cce_reset() 341 SET_RING_HEAD( &dev_priv->ring, 0 ); in r128_cce_init_ring_buffer() 576 dev_priv->ring.head = ((__volatile__ u32 *) in r128_do_init_cce() 579 dev_priv->ring.start = (u32 *)dev_priv->cce_ring->handle; in r128_do_init_cce() 580 dev_priv->ring.end = ((u32 *)dev_priv->cce_ring->handle in r128_do_init_cce() 582 dev_priv->ring.size = init->ring_size; in r128_do_init_cce() 583 dev_priv->ring.size_l2qw = DRM(order)( init->ring_size / 8 ); in r128_do_init_cce() [all …]
|
/linux-2.4.37.9/drivers/net/irda/ |
D | donauboe.c | 321 if (self->ring) in toshoboe_dumpregs() 324 ringbase = virt_to_bus (self->ring); in toshoboe_dumpregs() 328 printk (" (%d,%02x)",self->ring->rx[i].len,self->ring->rx[i].control); in toshoboe_dumpregs() 332 printk (" (%d,%02x)",self->ring->tx[i].len,self->ring->tx[i].control); in toshoboe_dumpregs() 545 self->ring->tx[i].len = 0; in toshoboe_initring() 546 self->ring->tx[i].control = 0x00; in toshoboe_initring() 547 self->ring->tx[i].address = virt_to_bus (self->tx_bufs[i]); in toshoboe_initring() 552 self->ring->rx[i].len = RX_LEN; in toshoboe_initring() 553 self->ring->rx[i].len = 0; in toshoboe_initring() 554 self->ring->rx[i].address = virt_to_bus (self->rx_bufs[i]); in toshoboe_initring() [all …]
|
/linux-2.4.37.9/drivers/char/drm-4.0/ |
D | radeon_cp.c | 498 *dev_priv->ring.head = cur_read_ptr; in radeon_do_cp_reset() 499 dev_priv->ring.tail = cur_read_ptr; in radeon_do_cp_reset() 595 *dev_priv->ring.head = cur_read_ptr; in radeon_cp_init_ring_buffer() 596 dev_priv->ring.tail = cur_read_ptr; in radeon_cp_init_ring_buffer() 601 RADEON_WRITE( RADEON_CP_RB_CNTL, dev_priv->ring.size_l2qw ); in radeon_cp_init_ring_buffer() 775 dev_priv->ring.head = ((__volatile__ u32 *) in radeon_do_init_cp() 778 dev_priv->ring.start = (u32 *)dev_priv->cp_ring->handle; in radeon_do_init_cp() 779 dev_priv->ring.end = ((u32 *)dev_priv->cp_ring->handle in radeon_do_init_cp() 781 dev_priv->ring.size = init->ring_size; in radeon_do_init_cp() 782 dev_priv->ring.size_l2qw = drm_order( init->ring_size / 8 ); in radeon_do_init_cp() [all …]
|
D | r128_cce.c | 232 if ( *dev_priv->ring.head == dev_priv->ring.tail ) { in r128_do_cce_idle() 258 dev_priv->cce_mode | dev_priv->ring.size_l2qw ); in r128_do_cce_start() 273 *dev_priv->ring.head = 0; in r128_do_cce_reset() 274 dev_priv->ring.tail = 0; in r128_do_cce_reset() 346 *dev_priv->ring.head = 0; in r128_cce_init_ring_buffer() 493 dev_priv->ring.head = ((__volatile__ u32 *) in r128_do_init_cce() 496 dev_priv->ring.start = (u32 *)dev_priv->cce_ring->handle; in r128_do_init_cce() 497 dev_priv->ring.end = ((u32 *)dev_priv->cce_ring->handle in r128_do_init_cce() 499 dev_priv->ring.size = init->ring_size; in r128_do_init_cce() 500 dev_priv->ring.size_l2qw = drm_order( init->ring_size / 8 ); in r128_do_init_cce() [all …]
|
D | r128_drv.h | 57 drm_r128_ring_buffer_t ring; member 427 #define RING_LOCALS int write; unsigned int tail_mask; volatile u32 *ring; 434 if ( dev_priv->ring.space < n * sizeof(u32) ) { \ 437 dev_priv->ring.space -= n * sizeof(u32); \ 438 ring = dev_priv->ring.start; \ 439 write = dev_priv->ring.tail; \ 440 tail_mask = dev_priv->ring.tail_mask; \ 446 write, dev_priv->ring.tail ); \ 449 memcpy( dev_priv->ring.end, \ 450 dev_priv->ring.start, \ [all …]
|
D | i810_dma.c | 68 if (dev_priv->ring.space < n*4) \ 70 dev_priv->ring.space -= n*4; \ 71 outring = dev_priv->ring.tail; \ 72 ringmask = dev_priv->ring.tail_mask; \ 73 virt = dev_priv->ring.virtual_start; \ 78 dev_priv->ring.tail = outring; \ 306 if(dev_priv->ring.virtual_start) { in i810_dma_cleanup() 307 drm_ioremapfree((void *) dev_priv->ring.virtual_start, in i810_dma_cleanup() 308 dev_priv->ring.Size, dev); in i810_dma_cleanup() 331 drm_i810_ring_buffer_t *ring = &(dev_priv->ring); in i810_wait_ring() local [all …]
|
D | radeon_drv.h | 62 drm_radeon_ring_buffer_t ring; member 672 #define RING_LOCALS int write; unsigned int mask; volatile u32 *ring; 679 if ( dev_priv->ring.space < (n) * sizeof(u32) ) { \ 682 dev_priv->ring.space -= (n) * sizeof(u32); \ 683 ring = dev_priv->ring.start; \ 684 write = dev_priv->ring.tail; \ 685 mask = dev_priv->ring.tail_mask; \ 691 write, dev_priv->ring.tail ); \ 694 dev_priv->ring.tail = write; \ 703 ring[write++] = (x); \
|
/linux-2.4.37.9/Documentation/networking/ |
D | olympic.txt | 29 this so be *very* careful). The main purpose for explicitly setting the ring 30 speed is for when the card is first on the ring. In autosense mode, if the card 31 cannot detect any active monitors on the ring it will not open, so you must 51 level information about the configuration of the ring and the adapter. 53 the diagnosis of network / ring problems. (This used to OLYMPIC_NETWORK_MONITOR, 60 each card is assigned the next token ring device, i.e. tr0 , tr1, tr2. The 69 ring speed. The driver also changes the size of the receive buffers as part 71 to allocate 16 * (sk_buff with 18000 buffer size) call it 18500 bytes per ring
|
D | 3c359.txt | 30 this so be *very* careful). The main purpose for explicitly setting the ring 31 speed is for when the card is first on the ring. In autosense mode, if the card 32 cannot detect any active monitors on the ring it will open at the same speed as 34 you want the ring to operate at. 49 ring speed. The driver also changes the size of the receive buffers as part 51 to allocate 16 * (sk_buff with 18000 buffer size) call it 18500 bytes per ring
|
D | NAPI_HOWTO.txt | 35 packets out of the rx ring. Note from this that the lower the 58 A) DMA ring or enough RAM to store packets in software devices. 120 ring. This happens only in close() and suspend() (when these methods 121 try to clean the rx ring); 382 /* read size+status of next frame from DMA ring buffer */ 408 whatever is on the ring already. */ 411 /* move to the next skb on the ring */ 417 /* store current ring pointer state */ 420 /* Refill the Rx ring buffers if they are needed */ 454 /* read size+status of next frame from DMA ring buffer */ [all …]
|
D | smctr.txt | 37 ringspeed is specified the driver will attempt to autodetect the ring 38 speed and/or if the adapter is the first/only station on the ring take 41 NOTE: Default ring speed is 16MB UTP.
|
D | skfp.txt | 127 LED works as a ring operational indicator. An active yellow LED 128 indicates that the ring is down. The green LED on the adapter now 132 With versions of SMT prior to v2.82 a ring up was indicated if the 134 status of the adapter. During a ring down the green LED was off and
|
/linux-2.4.37.9/drivers/net/ |
D | typhoon.c | 141 #error TX ring too small! 465 struct basic_ring *ring = &tp->cmdRing; in typhoon_hello() local 473 cmd = (struct cmd_desc *)(ring->ringBase + ring->lastWrite); in typhoon_hello() 474 typhoon_inc_cmd_index(&ring->lastWrite, 1); in typhoon_hello() 478 writel(ring->lastWrite, tp->ioaddr + TYPHOON_REG_CMD_READY); in typhoon_hello() 572 typhoon_num_free_tx(struct transmit_ring *ring) in typhoon_num_free_tx() argument 575 return typhoon_num_free(ring->lastWrite, ring->lastRead, TXLO_ENTRIES); in typhoon_num_free_tx() 583 struct basic_ring *ring = &tp->cmdRing; in typhoon_issue_command() local 616 if(unlikely(ring->lastWrite + len > COMMAND_RING_SIZE)) { in typhoon_issue_command() 617 wrap_len = ring->lastWrite + len - COMMAND_RING_SIZE; in typhoon_issue_command() [all …]
|
D | skge.c | 700 static int skge_ring_alloc(struct skge_ring *ring, void *vaddr, u32 base) in skge_ring_alloc() argument 706 ring->start = kmalloc(sizeof(*e)*ring->count, GFP_KERNEL); in skge_ring_alloc() 707 if (!ring->start) in skge_ring_alloc() 710 for (i = 0, e = ring->start, d = vaddr; i < ring->count; i++, e++, d++) { in skge_ring_alloc() 713 if (i == ring->count - 1) { in skge_ring_alloc() 714 e->next = ring->start; in skge_ring_alloc() 721 ring->to_use = ring->to_clean = ring->start; in skge_ring_alloc() 772 struct skge_ring *ring = &skge->rx_ring; in skge_rx_clean() local 775 e = ring->start; in skge_rx_clean() 787 } while ((e = e->next) != ring->start); in skge_rx_clean() [all …]
|
D | rrunner.h | 359 u8 ring; member 363 u8 ring; 460 u8 ring; member 464 u8 ring;
|
/linux-2.4.37.9/arch/sparc/mm/ |
D | sun4c.c | 705 static void add_ring(struct sun4c_mmu_ring *ring, in add_ring() argument 708 struct sun4c_mmu_entry *head = &ring->ringhd; in add_ring() 713 ring->num_entries++; in add_ring() 718 struct sun4c_mmu_ring *ring = &sun4c_ulru_ring; in add_lru() local 719 struct sun4c_mmu_entry *head = &ring->ringhd; in add_lru() 726 static void add_ring_ordered(struct sun4c_mmu_ring *ring, in add_ring_ordered() argument 729 struct sun4c_mmu_entry *head = &ring->ringhd; in add_ring_ordered() 732 while ((head->next != &ring->ringhd) && (head->next->vaddr < addr)) in add_ring_ordered() 738 ring->num_entries++; in add_ring_ordered() 743 static __inline__ void remove_ring(struct sun4c_mmu_ring *ring, in remove_ring() argument [all …]
|
/linux-2.4.37.9/drivers/net/wan/ |
D | dscc4.c | 1613 u32 scc_addr, ring; in dscc4_tx_irq() local 1632 ring = dpriv->tx_fd_dma + in dscc4_tx_irq() 1635 writel(ring, scc_addr + CH0BTDA); in dscc4_tx_irq() 1643 ring = dpriv->rx_fd_dma + in dscc4_tx_irq() 1646 writel(ring, scc_addr + CH0BRDA); in dscc4_tx_irq() 1897 void *ring; in dscc4_init_ring() local 1900 ring = pci_alloc_consistent(pdev, RX_TOTAL_SIZE, &dpriv->rx_fd_dma); in dscc4_init_ring() 1901 if (!ring) in dscc4_init_ring() 1903 dpriv->rx_fd = rx_fd = (struct RxFD *) ring; in dscc4_init_ring() 1905 ring = pci_alloc_consistent(pdev, TX_TOTAL_SIZE, &dpriv->tx_fd_dma); in dscc4_init_ring() [all …]
|
/linux-2.4.37.9/drivers/net/e1000/ |
D | e1000_ethtool.c | 623 struct ethtool_ringparam *ring) in e1000_get_ringparam() argument 630 ring->rx_max_pending = (mac_type < e1000_82544) ? E1000_MAX_RXD : in e1000_get_ringparam() 632 ring->tx_max_pending = (mac_type < e1000_82544) ? E1000_MAX_TXD : in e1000_get_ringparam() 634 ring->rx_mini_max_pending = 0; in e1000_get_ringparam() 635 ring->rx_jumbo_max_pending = 0; in e1000_get_ringparam() 636 ring->rx_pending = rxdr->count; in e1000_get_ringparam() 637 ring->tx_pending = txdr->count; in e1000_get_ringparam() 638 ring->rx_mini_pending = 0; in e1000_get_ringparam() 639 ring->rx_jumbo_pending = 0; in e1000_get_ringparam() 644 struct ethtool_ringparam *ring) in e1000_set_ringparam() argument [all …]
|
/linux-2.4.37.9/arch/ia64/sn/io/sn2/ioc4/ |
D | sio_ioc4.c | 115 struct ring *ip_inring; 116 struct ring *ip_outring; 304 struct ring { struct 310 struct ring TX_0_OR_2; 311 struct ring RX_0_OR_2; 312 struct ring TX_1_OR_3; 313 struct ring RX_1_OR_3; 1495 struct ring *outring; in do_ioc4_write() 1743 struct ring *inring; in ioc4_read()
|