• 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/sfc/

Lines Matching refs:tsoh

127 			       struct efx_tso_header *tsoh);
132 if (buffer->tsoh) {
133 if (likely(!buffer->tsoh->unmap_len)) {
134 buffer->tsoh->next = tx_queue->tso_headers_free;
135 tx_queue->tso_headers_free = buffer->tsoh;
137 efx_tsoh_heap_free(tx_queue, buffer->tsoh);
139 buffer->tsoh = NULL;
256 EFX_BUG_ON_PARANOID(buffer->tsoh);
540 #define TSOH_BUFFER(tsoh) ((u8 *)(tsoh + 1) + TSOH_OFFSET)
641 struct efx_tso_header *tsoh;
656 tsoh = (struct efx_tso_header *)kva;
657 tsoh->dma_addr = dma_addr + (TSOH_BUFFER(tsoh) - base_kva);
658 tsoh->next = tx_queue->tso_headers_free;
659 tx_queue->tso_headers_free = tsoh;
668 struct efx_tso_header *tsoh,
675 base_kva = (unsigned long)tsoh & PAGE_MASK;
676 base_dma = tsoh->dma_addr & PAGE_MASK;
692 struct efx_tso_header *tsoh;
694 tsoh = kmalloc(TSOH_SIZE(header_len), GFP_ATOMIC | GFP_DMA);
695 if (unlikely(!tsoh))
698 tsoh->dma_addr = pci_map_single(tx_queue->efx->pci_dev,
699 TSOH_BUFFER(tsoh), header_len,
702 tsoh->dma_addr))) {
703 kfree(tsoh);
707 tsoh->unmap_len = header_len;
708 return tsoh;
712 efx_tsoh_heap_free(struct efx_tx_queue *tx_queue, struct efx_tso_header *tsoh)
715 tsoh->dma_addr, tsoh->unmap_len,
717 kfree(tsoh);
781 EFX_BUG_ON_PARANOID(buffer->tsoh);
811 struct efx_tso_header *tsoh, unsigned len)
821 EFX_BUG_ON_PARANOID(buffer->tsoh);
823 buffer->dma_addr = tsoh->dma_addr;
824 buffer->tsoh = tsoh;
989 struct efx_tso_header *tsoh;
1001 tsoh = tx_queue->tso_headers_free;
1002 tx_queue->tso_headers_free = tsoh->next;
1003 tsoh->unmap_len = 0;
1006 tsoh = efx_tsoh_heap_alloc(tx_queue, st->header_len);
1007 if (unlikely(!tsoh))
1011 header = TSOH_BUFFER(tsoh);
1051 efx_tso_put_header(tx_queue, tsoh, st->header_len);