• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/

Lines Matching refs:put_tx_ctx

806 	struct nv_skb_map *get_tx_ctx, *put_tx_ctx;
1852 np->get_tx_ctx = np->put_tx_ctx = np->first_tx_ctx = np->tx_skb;
1980 return (u32)(np->tx_ring_size - ((np->tx_ring_size + (np->put_tx_ctx - np->get_tx_ctx)) % np->tx_ring_size));
2135 prev_tx_ctx = np->put_tx_ctx;
2137 np->put_tx_ctx->dma = pci_map_single(np->pci_dev, skb->data + offset, bcnt,
2139 np->put_tx_ctx->dma_len = bcnt;
2140 np->put_tx_ctx->dma_single = 1;
2141 put_tx->buf = cpu_to_le32(np->put_tx_ctx->dma);
2149 if (unlikely(np->put_tx_ctx++ == np->last_tx_ctx))
2150 np->put_tx_ctx = np->first_tx_ctx;
2161 prev_tx_ctx = np->put_tx_ctx;
2163 np->put_tx_ctx->dma = pci_map_page(np->pci_dev, frag->page, frag->page_offset+offset, bcnt,
2165 np->put_tx_ctx->dma_len = bcnt;
2166 np->put_tx_ctx->dma_single = 0;
2167 put_tx->buf = cpu_to_le32(np->put_tx_ctx->dma);
2174 if (unlikely(np->put_tx_ctx++ == np->last_tx_ctx))
2175 np->put_tx_ctx = np->first_tx_ctx;
2252 start_tx_ctx = np->put_tx_ctx;
2257 prev_tx_ctx = np->put_tx_ctx;
2259 np->put_tx_ctx->dma = pci_map_single(np->pci_dev, skb->data + offset, bcnt,
2261 np->put_tx_ctx->dma_len = bcnt;
2262 np->put_tx_ctx->dma_single = 1;
2263 put_tx->bufhigh = cpu_to_le32(dma_high(np->put_tx_ctx->dma));
2264 put_tx->buflow = cpu_to_le32(dma_low(np->put_tx_ctx->dma));
2272 if (unlikely(np->put_tx_ctx++ == np->last_tx_ctx))
2273 np->put_tx_ctx = np->first_tx_ctx;
2284 prev_tx_ctx = np->put_tx_ctx;
2286 np->put_tx_ctx->dma = pci_map_page(np->pci_dev, frag->page, frag->page_offset+offset, bcnt,
2288 np->put_tx_ctx->dma_len = bcnt;
2289 np->put_tx_ctx->dma_single = 0;
2290 put_tx->bufhigh = cpu_to_le32(dma_high(np->put_tx_ctx->dma));
2291 put_tx->buflow = cpu_to_le32(dma_low(np->put_tx_ctx->dma));
2298 if (unlikely(np->put_tx_ctx++ == np->last_tx_ctx))
2299 np->put_tx_ctx = np->first_tx_ctx;
2340 start_tx_ctx->next_tx_ctx = np->put_tx_ctx;
2341 np->tx_end_flip = np->put_tx_ctx;