/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/wireless/bcm43xx/ |
H A D | bcm43xx_dma.c | 43 static inline int free_slots(struct bcm43xx_dmaring *ring) argument 45 return (ring->nr_slots - ring->used_slots); 48 static inline int next_slot(struct bcm43xx_dmaring *ring, int slot) argument 50 assert(slot >= -1 && slot <= ring->nr_slots - 1); 51 if (slot == ring->nr_slots - 1) 56 static inline int prev_slot(struct bcm43xx_dmaring *ring, int slot) argument 58 assert(slot >= 0 && slot <= ring->nr_slots - 1); 60 return ring->nr_slots - 1; 66 int request_slot(struct bcm43xx_dmaring *ring) argument 95 return_slot(struct bcm43xx_dmaring *ring, int slot) argument 142 map_descbuffer(struct bcm43xx_dmaring *ring, unsigned char *buf, size_t len, int tx) argument 161 unmap_descbuffer(struct bcm43xx_dmaring *ring, dma_addr_t addr, size_t len, int tx) argument 178 sync_descbuffer_for_cpu(struct bcm43xx_dmaring *ring, dma_addr_t addr, size_t len) argument 189 sync_descbuffer_for_device(struct bcm43xx_dmaring *ring, dma_addr_t addr, size_t len) argument 201 free_descriptor_buffer(struct bcm43xx_dmaring *ring, struct bcm43xx_dmadesc_meta *meta, int irq_context) argument 213 alloc_ringmemory(struct bcm43xx_dmaring *ring) argument 264 free_ringmemory(struct bcm43xx_dmaring *ring) argument 364 fill_descriptor(struct bcm43xx_dmaring *ring, struct bcm43xx_dmadesc_generic *desc, dma_addr_t dmaaddr, u16 bufsize, int start, int end, int irq) argument 428 setup_rx_descbuffer(struct bcm43xx_dmaring *ring, struct bcm43xx_dmadesc_generic *desc, struct bcm43xx_dmadesc_meta *meta, gfp_t gfp_flags) argument 484 alloc_initial_descbuffers(struct bcm43xx_dmaring *ring) argument 517 dmacontroller_setup(struct bcm43xx_dmaring *ring) argument 589 dmacontroller_cleanup(struct bcm43xx_dmaring *ring) argument 608 free_all_descbuffers(struct bcm43xx_dmaring *ring) argument 641 struct bcm43xx_dmaring *ring; local 707 bcm43xx_destroy_dmaring(struct bcm43xx_dmaring *ring) argument 758 struct bcm43xx_dmaring *ring; local 858 generate_cookie(struct bcm43xx_dmaring *ring, int slot) argument 901 struct bcm43xx_dmaring *ring = NULL; local 931 dmacontroller_poke_tx(struct bcm43xx_dmaring *ring, int slot) argument 951 dma_tx_fragment(struct bcm43xx_dmaring *ring, struct sk_buff *skb, u8 cur_frag) argument 1019 struct bcm43xx_dmaring *ring = bcm43xx_current_dma(bcm)->tx_ring1; local 1047 struct bcm43xx_dmaring *ring; local 1082 dma_rx(struct bcm43xx_dmaring *ring, int *slot) argument 1194 bcm43xx_dma_rx(struct bcm43xx_dmaring *ring) argument 1233 bcm43xx_dma_tx_suspend(struct bcm43xx_dmaring *ring) argument 1248 bcm43xx_dma_tx_resume(struct bcm43xx_dmaring *ring) argument [all...] |
H A D | bcm43xx_dma.h | 214 /* Kernel virtual base address of the ring memory. */ 220 /* (Unadjusted) DMA base bus-address of the ring memory. */ 222 /* Number of descriptor slots in the ring. */ 226 /* Currently used slot in the ring. */ 239 /* Boolean. Is this a TX ring? */ 243 /* Boolean. Are transfers suspended on this ring? */ 254 int bcm43xx_dma_desc2idx(struct bcm43xx_dmaring *ring, argument 257 if (ring->dma64) { 258 struct bcm43xx_dmadesc64 *dd64 = ring->descbase; 261 struct bcm43xx_dmadesc32 *dd32 = ring 267 bcm43xx_dma_idx2desc(struct bcm43xx_dmaring *ring, int slot, struct bcm43xx_dmadesc_meta **meta) argument 282 bcm43xx_dma_read(struct bcm43xx_dmaring *ring, u16 offset) argument 289 bcm43xx_dma_write(struct bcm43xx_dmaring *ring, u16 offset, u32 value) argument 373 bcm43xx_dma_rx(struct bcm43xx_dmaring *ring) argument 377 bcm43xx_dma_tx_suspend(struct bcm43xx_dmaring *ring) argument 381 bcm43xx_dma_tx_resume(struct bcm43xx_dmaring *ring) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/ |
H A D | scsi_tgt_if.c | 54 static inline void tgt_ring_idx_inc(struct tgt_ring *ring) argument 56 if (ring->tr_idx == TGT_MAX_EVENTS - 1) 57 ring->tr_idx = 0; 59 ring->tr_idx++; 62 static struct tgt_event *tgt_head_event(struct tgt_ring *ring, u32 idx) argument 70 (ring->tr_pages[pidx] + sizeof(struct tgt_event) * off); 76 struct tgt_ring *ring = &tx_ring; local 80 spin_lock_irqsave(&ring->tr_lock, flags); 82 ev = tgt_head_event(ring, ring 207 struct tgt_ring *ring = &rx_ring; local 228 struct tgt_ring *ring = &tx_ring; local 247 uspace_ring_map(struct vm_area_struct *vma, unsigned long addr, struct tgt_ring *ring) argument 307 tgt_ring_exit(struct tgt_ring *ring) argument 315 tgt_ring_init(struct tgt_ring *ring) argument [all...] |
H A D | libsrp.c | 48 struct srp_buf **ring) 68 iue->sbuf = ring[i]; 90 struct srp_buf **ring; local 92 ring = kcalloc(max, sizeof(struct srp_buf *), GFP_KERNEL); 93 if (!ring) 97 ring[i] = kzalloc(sizeof(struct srp_buf), GFP_KERNEL); 98 if (!ring[i]) 100 ring[i]->buf = dma_alloc_coherent(dev, size, &ring[i]->dma, 102 if (!ring[ 47 srp_iu_pool_alloc(struct srp_queue *q, size_t max, struct srp_buf **ring) argument 118 srp_ring_free(struct device *dev, struct srp_buf **ring, size_t max, size_t size) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/char/drm/ |
H A D | r128_drv.h | 79 drm_r128_ring_buffer_t ring; member in struct:drm_r128_private 410 drm_r128_ring_buffer_t *ring = &dev_priv->ring; local 411 ring->space = (GET_RING_HEAD(dev_priv) - ring->tail) * sizeof(u32); 412 if (ring->space <= 0) 413 ring->space += ring->size; 422 drm_r128_ring_buffer_t *ring = &dev_priv->ring; in [all...] |
H A D | i915_dma.c | 47 * the head pointer changes, so that EBUSY only happens if the ring 53 drm_i915_ring_buffer_t *ring = &(dev_priv->ring); local 58 ring->head = I915_READ(LP_RING + RING_HEAD) & HEAD_ADDR; 59 ring->space = ring->head - (ring->tail + 8); 60 if (ring->space < 0) 61 ring->space += ring 79 drm_i915_ring_buffer_t *ring = &(dev_priv->ring); local [all...] |
H A D | i810_dma.c | 70 * yet, the hardware updates in use for us once its on the ring buffer. 221 if (dev_priv->ring.virtual_start) { 222 drm_core_ioremapfree(&dev_priv->ring.map, dev); 249 drm_i810_ring_buffer_t *ring = &(dev_priv->ring); local 255 while (ring->space < n) { 256 ring->head = I810_READ(LP_RING + RING_HEAD) & HEAD_ADDR; 257 ring->space = ring->head - (ring 282 drm_i810_ring_buffer_t *ring = &(dev_priv->ring); local [all...] |
H A D | i810_drv.h | 84 drm_i810_ring_buffer_t ring; member in struct:drm_i810_private 148 if (dev_priv->ring.space < n*4) \ 150 dev_priv->ring.space -= n*4; \ 151 outring = dev_priv->ring.tail; \ 152 ringmask = dev_priv->ring.tail_mask; \ 153 virt = dev_priv->ring.virtual_start; \ 158 dev_priv->ring.tail = outring; \
|
H A D | i830_drv.h | 90 drm_i830_ring_buffer_t ring; member in struct:drm_i830_private 159 if (dev_priv->ring.space < n*4) \ 162 outring = dev_priv->ring.tail; \ 163 ringmask = dev_priv->ring.tail_mask; \ 164 virt = dev_priv->ring.virtual_start; \ 177 dev_priv->ring.tail = outring; \ 178 dev_priv->ring.space -= outcount * 4; \
|
H A D | i915_drv.h | 88 drm_i915_ring_buffer_t ring; member in struct:drm_i915_private 168 if (dev_priv->ring.space < (n)*4) \ 171 outring = dev_priv->ring.tail; \ 172 ringmask = dev_priv->ring.tail_mask; \ 173 virt = dev_priv->ring.virtual_start; \ 186 dev_priv->ring.tail = outring; \ 187 dev_priv->ring.space -= outcount * 4; \
|
H A D | via_dma.c | 134 * Checks whether buffer head has reach the end. Rewind the ring buffer 137 * Returns virtual pointer to ring buffer. 160 if (dev_priv->ring.virtual_start) { 163 drm_core_ioremapfree(&dev_priv->ring.map, dev); 164 dev_priv->ring.virtual_start = NULL; 181 if (dev_priv->ring.virtual_start != NULL) { 198 dev_priv->ring.map.offset = dev->agp->base + init->offset; 199 dev_priv->ring.map.size = init->size; 200 dev_priv->ring.map.type = 0; 201 dev_priv->ring [all...] |
H A D | i830_dma.c | 72 * yet, the hardware updates in use for us once its on the ring buffer. 225 if (dev_priv->ring.virtual_start) { 226 drm_core_ioremapfree(&dev_priv->ring.map, dev); 253 drm_i830_ring_buffer_t *ring = &(dev_priv->ring); local 259 while (ring->space < n) { 260 ring->head = I830_READ(LP_RING + RING_HEAD) & HEAD_ADDR; 261 ring->space = ring->head - (ring 287 drm_i830_ring_buffer_t *ring = &(dev_priv->ring); local [all...] |
H A D | r128_cce.c | 214 if (GET_RING_HEAD(dev_priv) == dev_priv->ring.tail) { 240 dev_priv->cce_mode | dev_priv->ring.size_l2qw 256 dev_priv->ring.tail = 0; 299 /* Reset the CCE ring */ 386 /* We don't support anything other than bus-mastering ring mode, 387 * but the ring can be in either AGP or PCI space for the ring 477 DRM_ERROR("could not find cce ring region!\n"); 484 DRM_ERROR("could not find ring read pointer!\n"); 543 dev_priv->ring 828 drm_r128_ring_buffer_t *ring = &dev_priv->ring; local [all...] |
H A D | radeon_drv.h | 209 drm_radeon_ring_buffer_t ring; member in struct:drm_radeon_private 1063 if (head == dev_priv->ring.tail) \ 1100 #define RING_LOCALS int write, _nr; unsigned int mask; u32 *ring; 1107 if ( dev_priv->ring.space <= (n) * sizeof(u32) ) { \ 1111 _nr = n; dev_priv->ring.space -= (n) * sizeof(u32); \ 1112 ring = dev_priv->ring.start; \ 1113 write = dev_priv->ring.tail; \ 1114 mask = dev_priv->ring.tail_mask; \ 1120 write, dev_priv->ring [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/irda/ |
H A D | donauboe.c | 68 /* Trace Transmit ring, interrupts, Receive ring or not ? */ 117 /* The RX ring is filled with buffers, when a packet arrives */ 123 /* for each ring->tx[] the transmitter can either */ 125 /* the next ring */ 129 /* All packets are entered into the ring in mode b), if the ring was */ 132 /* If OPTIMIZE_TX is defined then in TxDone if the ring contains */ 138 /* if the ring isn't empty */ 278 if (self->ring) [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/ |
H A D | pasemi_mac.c | 133 struct pasemi_mac_rxring *ring; local 137 ring = kzalloc(sizeof(*ring), GFP_KERNEL); 139 if (!ring) 142 spin_lock_init(&ring->lock); 144 ring->desc_info = kzalloc(sizeof(struct pasemi_mac_buffer) * 147 if (!ring->desc_info) 151 ring->desc = dma_alloc_coherent(&mac->dma_pdev->dev, 154 &ring->dma, GFP_KERNEL); 156 if (!ring 213 struct pasemi_mac_txring *ring; local [all...] |
H A D | cassini.c | 58 * RX DATA: the rx completion ring has all the info, but the rx desc 59 * ring has all of the data. RX can conceivably come in under multiple 288 static void cas_disable_irq(struct cas *cp, const int ring) argument 291 if (ring == 0) { 298 switch (ring) { 310 cp->regs + REG_PLUS_INTRN_MASK(ring)); 315 REG_PLUS_INTRN_MASK(ring)); 353 static void cas_enable_irq(struct cas *cp, const int ring) argument 355 if (ring == 0) { /* all but TX_DONE */ 361 switch (ring) { 1339 cas_page_swap(struct cas *cp, const int ring, const int index) argument 1747 cas_tx_ringN(struct cas *cp, int ring, int limit) argument 1823 int limit, ring; local 2083 cas_post_page(struct cas *cp, const int ring, const int index) argument 2111 cas_post_rxds_ringN(struct cas *cp, int ring, int num) argument 2185 cas_rx_ringN(struct cas *cp, int ring, int budget) argument 2304 cas_post_rxcs_ringN(struct net_device *dev, struct cas *cp, int ring) argument 2336 cas_handle_irqN(struct net_device *dev, struct cas *cp, const u32 status, const int ring) argument 2349 int ring; local 2631 cas_intme(int ring, int entry) argument 2640 cas_write_txd(struct cas *cp, int ring, int entry, dma_addr_t mapping, int len, u64 ctrl, int last) argument 2654 tx_tiny_buf(struct cas *cp, const int ring, const int entry) argument 2660 tx_tiny_map(struct cas *cp, const int ring, const int entry, const int tentry) argument 2668 cas_xmit_tx_ringN(struct cas *cp, int ring, struct sk_buff *skb) argument 2780 static int ring; local 3789 cas_clean_txd(struct cas *cp, int ring) argument 3837 cas_free_rx_desc(struct cas *cp, int ring) argument 3877 cas_alloc_rx_desc(struct cas *cp, int ring) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/host/ |
H A D | u132-hcd.c | 150 struct u132_ring *ring; member in struct:u132_endp 185 struct u132_ring ring[MAX_U132_RINGS]; member in struct:u132 300 static inline void u132_ring_put_kref(struct u132 *u132, struct u132_ring *ring) argument 305 static void u132_ring_requeue_work(struct u132 *u132, struct u132_ring *ring, argument 309 if (queue_delayed_work(workqueue, &ring->scheduler, delta)) 311 } else if (queue_delayed_work(workqueue, &ring->scheduler, 0)) 317 static void u132_ring_queue_work(struct u132 *u132, struct u132_ring *ring, argument 321 u132_ring_requeue_work(u132, ring, delta); 325 static void u132_ring_cancel_work(struct u132 *u132, struct u132_ring *ring) argument 327 if (cancel_delayed_work(&ring 342 struct u132_ring *ring = endp->ring; local 512 struct u132_ring *ring; local 577 edset_input(struct u132 *u132, struct u132_ring *ring, struct u132_endp *endp, struct urb *urb, u8 address, u8 toggle_bits, void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, int toggle_bits, int error_count, int condition_code, int repeat_number, int halted, int skipped, int actual, int non_null)) argument 587 edset_setup(struct u132 *u132, struct u132_ring *ring, struct u132_endp *endp, struct urb *urb, u8 address, u8 toggle_bits, void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, int toggle_bits, int error_count, int condition_code, int repeat_number, int halted, int skipped, int actual, int non_null)) argument 597 edset_single(struct u132 *u132, struct u132_ring *ring, struct u132_endp *endp, struct urb *urb, u8 address, u8 toggle_bits, void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, int toggle_bits, int error_count, int condition_code, int repeat_number, int halted, int skipped, int actual, int non_null)) argument 607 edset_output(struct u132 *u132, struct u132_ring *ring, struct u132_endp *endp, struct urb *urb, u8 address, u8 toggle_bits, void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, int toggle_bits, int error_count, int condition_code, int repeat_number, int halted, int skipped, int actual, int non_null)) argument 649 struct u132_ring *ring = endp->ring; local 748 struct u132_ring *ring = endp->ring; local 801 struct u132_ring *ring = endp->ring; local 940 struct u132_ring *ring = endp->ring; local 1051 struct u132_ring *ring = endp->ring; local 1063 struct u132_ring *ring = endp->ring; local 1150 struct u132_ring *ring = endp->ring; local 1232 struct u132_ring *ring = endp->ring; local 1284 struct u132_ring *ring = endp->ring; local 1308 struct u132_ring *ring = local 1370 struct u132_ring *ring; local 1875 struct u132_ring *ring; local 1964 struct u132_ring *ring; local 2050 struct u132_ring *ring; local 3001 struct u132_ring *ring = &u132->ring[rings]; local 3034 struct u132_ring *ring = &u132->ring[rings]; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/ |
H A D | aio.c | 104 struct aio_ring *ring; local 110 /* Compensate for the ring buffer's head/tail overlap entry */ 158 ring = kmap_atomic(info->ring_pages[0], KM_USER0); 159 ring->nr = nr_events; /* user copy */ 160 ring->id = ctx->user_id; 161 ring->head = ring->tail = 0; 162 ring->magic = AIO_RING_MAGIC; 163 ring->compat_features = AIO_RING_COMPAT_FEATURES; 164 ring 403 struct aio_ring *ring; local 924 struct aio_ring *ring; local 1015 struct aio_ring *ring; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/ffmpeg-0.5.1/libavdevice/ |
H A D | dv1394.c | 45 uint8_t *ring; /* Ring buffer */ member in struct:dv1394_data 115 dv->ring = mmap(NULL, DV1394_PAL_FRAME_SIZE * DV1394_RING_FRAMES, 117 if (dv->ring == MAP_FAILED) { 118 av_log(context, AV_LOG_ERROR, "Failed to mmap DV ring buffer: %s\n", strerror(errno)); 148 /* This usually means that ring buffer overflowed. 204 dv->ring + (dv->index * DV1394_PAL_FRAME_SIZE), 220 /* Unmap ring buffer */ 221 if (munmap(dv->ring, DV1394_NTSC_FRAME_SIZE * DV1394_RING_FRAMES) < 0) 222 av_log(context, AV_LOG_ERROR, "Failed to munmap DV1394 ring buffer: %s\n", strerror(errno));
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/lpfc/ |
H A D | lpfc_sli.h | 64 #define SLI_IOCB_RET_IOCB 1 /* Return IOCB if cmd ring full */ 92 ring */ 98 uint8_t profile; /* profile associated with ring */ 99 uint8_t rctl; /* rctl / type pair configured for ring */ 100 uint8_t type; /* rctl / type pair configured for ring */ 114 uint64_t iocb_cmd_delay; /* IOCB cmd ring delay */ 115 uint64_t iocb_cmd_full; /* IOCB cmd ring full */ 116 uint64_t iocb_cmd_empty; /* IOCB cmd ring is now empty */ 117 uint64_t iocb_rsp_full; /* IOCB rsp ring full */ 120 /* Structure used to hold SLI ring informatio 201 struct lpfc_sli_ring ring[LPFC_MAX_RING]; member in struct:lpfc_sli [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/atl1/ |
H A D | atl1_ethtool.c | 300 struct ethtool_ringparam *ring) 306 ring->rx_max_pending = ATL1_MAX_RFD; 307 ring->tx_max_pending = ATL1_MAX_TPD; 308 ring->rx_mini_max_pending = 0; 309 ring->rx_jumbo_max_pending = 0; 310 ring->rx_pending = rxdr->count; 311 ring->tx_pending = txdr->count; 312 ring->rx_mini_pending = 0; 313 ring->rx_jumbo_pending = 0; 317 struct ethtool_ringparam *ring) 299 atl1_get_ringparam(struct net_device *netdev, struct ethtool_ringparam *ring) argument 316 atl1_set_ringparam(struct net_device *netdev, struct ethtool_ringparam *ring) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/netxen/ |
H A D | netxen_nic_ethtool.c | 512 netxen_nic_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ring) argument 517 ring->rx_pending = 0; 518 ring->rx_jumbo_pending = 0; 520 ring->rx_pending += adapter->recv_ctx[i]. 522 ring->rx_jumbo_pending += adapter->recv_ctx[i]. 526 ring->rx_max_pending = adapter->max_rx_desc_count; 527 ring->tx_max_pending = adapter->max_tx_desc_count; 528 ring->rx_jumbo_max_pending = adapter->max_jumbo_rx_desc_count; 529 ring->rx_mini_max_pending = 0; 530 ring [all...] |
H A D | netxen_nic_main.c | 186 int ring; local 392 for (ring = 0; ring < NUM_RCV_DESC_RINGS; ring++) { 393 rcv_desc = &recv_ctx->rcv_desc[ring]; 394 switch (RCV_DESC_TYPE(ring)) { 595 for (ring = 0; ring < NUM_RCV_DESC_RINGS; ring++) { 596 rcv_desc = &recv_ctx->rcv_desc[ring]; 640 int i, ctxid, ring; local 762 int ctx, ring; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/atm/ |
H A D | zatm.h | 32 #define RING_ENTRIES 32 /* ring entries (without back pointer) */ 33 #define RING_WORDS 4 /* ring element size */ 51 u32 *ring; /* transmit ring */ member in struct:zatm_vcc 54 struct sk_buff_head backlog; /* list of buffers waiting for ring */
|