Lines Matching refs:buffer_info

204 	struct e1000_buffer *buffer_info;  in e1000e_dump()  local
242 buffer_info = &tx_ring->buffer_info[tx_ring->next_to_clean]; in e1000e_dump()
245 (unsigned long long)buffer_info->dma, in e1000e_dump()
246 buffer_info->length, in e1000e_dump()
247 buffer_info->next_to_watch, in e1000e_dump()
248 (unsigned long long)buffer_info->time_stamp); in e1000e_dump()
289 buffer_info = &tx_ring->buffer_info[i]; in e1000e_dump()
305 (unsigned long long)buffer_info->dma, in e1000e_dump()
306 buffer_info->length, buffer_info->next_to_watch, in e1000e_dump()
307 (unsigned long long)buffer_info->time_stamp, in e1000e_dump()
308 buffer_info->skb, next_desc); in e1000e_dump()
310 if (netif_msg_pktdata(adapter) && buffer_info->skb) in e1000e_dump()
312 16, 1, buffer_info->skb->data, in e1000e_dump()
313 buffer_info->skb->len, true); in e1000e_dump()
359 buffer_info = &rx_ring->buffer_info[i]; in e1000e_dump()
380 buffer_info->skb, next_desc); in e1000e_dump()
388 (unsigned long long)buffer_info->dma, in e1000e_dump()
389 buffer_info->skb, next_desc); in e1000e_dump()
393 buffer_info); in e1000e_dump()
426 buffer_info = &rx_ring->buffer_info[i]; in e1000e_dump()
444 buffer_info->skb, next_desc); in e1000e_dump()
450 (unsigned long long)buffer_info->dma, in e1000e_dump()
451 buffer_info->skb, next_desc); in e1000e_dump()
454 buffer_info->skb) in e1000e_dump()
458 buffer_info->skb->data, in e1000e_dump()
651 struct e1000_buffer *buffer_info; in e1000_alloc_rx_buffers() local
657 buffer_info = &rx_ring->buffer_info[i]; in e1000_alloc_rx_buffers()
660 skb = buffer_info->skb; in e1000_alloc_rx_buffers()
673 buffer_info->skb = skb; in e1000_alloc_rx_buffers()
675 buffer_info->dma = dma_map_single(&pdev->dev, skb->data, in e1000_alloc_rx_buffers()
678 if (dma_mapping_error(&pdev->dev, buffer_info->dma)) { in e1000_alloc_rx_buffers()
685 rx_desc->read.buffer_addr = cpu_to_le64(buffer_info->dma); in e1000_alloc_rx_buffers()
702 buffer_info = &rx_ring->buffer_info[i]; in e1000_alloc_rx_buffers()
721 struct e1000_buffer *buffer_info; in e1000_alloc_rx_buffers_ps() local
727 buffer_info = &rx_ring->buffer_info[i]; in e1000_alloc_rx_buffers_ps()
733 ps_page = &buffer_info->ps_pages[j]; in e1000_alloc_rx_buffers_ps()
774 buffer_info->skb = skb; in e1000_alloc_rx_buffers_ps()
775 buffer_info->dma = dma_map_single(&pdev->dev, skb->data, in e1000_alloc_rx_buffers_ps()
778 if (dma_mapping_error(&pdev->dev, buffer_info->dma)) { in e1000_alloc_rx_buffers_ps()
783 buffer_info->skb = NULL; in e1000_alloc_rx_buffers_ps()
787 rx_desc->read.buffer_addr[0] = cpu_to_le64(buffer_info->dma); in e1000_alloc_rx_buffers_ps()
805 buffer_info = &rx_ring->buffer_info[i]; in e1000_alloc_rx_buffers_ps()
826 struct e1000_buffer *buffer_info; in e1000_alloc_jumbo_rx_buffers() local
832 buffer_info = &rx_ring->buffer_info[i]; in e1000_alloc_jumbo_rx_buffers()
835 skb = buffer_info->skb; in e1000_alloc_jumbo_rx_buffers()
848 buffer_info->skb = skb; in e1000_alloc_jumbo_rx_buffers()
851 if (!buffer_info->page) { in e1000_alloc_jumbo_rx_buffers()
852 buffer_info->page = alloc_page(gfp); in e1000_alloc_jumbo_rx_buffers()
853 if (unlikely(!buffer_info->page)) { in e1000_alloc_jumbo_rx_buffers()
859 if (!buffer_info->dma) { in e1000_alloc_jumbo_rx_buffers()
860 buffer_info->dma = dma_map_page(&pdev->dev, in e1000_alloc_jumbo_rx_buffers()
861 buffer_info->page, 0, in e1000_alloc_jumbo_rx_buffers()
864 if (dma_mapping_error(&pdev->dev, buffer_info->dma)) { in e1000_alloc_jumbo_rx_buffers()
871 rx_desc->read.buffer_addr = cpu_to_le64(buffer_info->dma); in e1000_alloc_jumbo_rx_buffers()
875 buffer_info = &rx_ring->buffer_info[i]; in e1000_alloc_jumbo_rx_buffers()
920 struct e1000_buffer *buffer_info, *next_buffer; in e1000_clean_rx_irq() local
930 buffer_info = &rx_ring->buffer_info[i]; in e1000_clean_rx_irq()
940 skb = buffer_info->skb; in e1000_clean_rx_irq()
941 buffer_info->skb = NULL; in e1000_clean_rx_irq()
951 next_buffer = &rx_ring->buffer_info[i]; in e1000_clean_rx_irq()
955 dma_unmap_single(&pdev->dev, buffer_info->dma, in e1000_clean_rx_irq()
957 buffer_info->dma = 0; in e1000_clean_rx_irq()
974 buffer_info->skb = skb; in e1000_clean_rx_irq()
983 buffer_info->skb = skb; in e1000_clean_rx_irq()
1017 buffer_info->skb = skb; in e1000_clean_rx_irq()
1045 buffer_info = next_buffer; in e1000_clean_rx_irq()
1061 struct e1000_buffer *buffer_info, in e1000_put_txbuf() argument
1066 if (buffer_info->dma) { in e1000_put_txbuf()
1067 if (buffer_info->mapped_as_page) in e1000_put_txbuf()
1068 dma_unmap_page(&adapter->pdev->dev, buffer_info->dma, in e1000_put_txbuf()
1069 buffer_info->length, DMA_TO_DEVICE); in e1000_put_txbuf()
1071 dma_unmap_single(&adapter->pdev->dev, buffer_info->dma, in e1000_put_txbuf()
1072 buffer_info->length, DMA_TO_DEVICE); in e1000_put_txbuf()
1073 buffer_info->dma = 0; in e1000_put_txbuf()
1075 if (buffer_info->skb) { in e1000_put_txbuf()
1077 dev_kfree_skb_any(buffer_info->skb); in e1000_put_txbuf()
1079 dev_consume_skb_any(buffer_info->skb); in e1000_put_txbuf()
1080 buffer_info->skb = NULL; in e1000_put_txbuf()
1082 buffer_info->time_stamp = 0; in e1000_put_txbuf()
1093 unsigned int eop = tx_ring->buffer_info[i].next_to_watch; in e1000_print_hw_hang()
1151 tx_ring->next_to_clean, tx_ring->buffer_info[eop].time_stamp, in e1000_print_hw_hang()
1219 struct e1000_buffer *buffer_info; in e1000_clean_tx_irq() local
1226 eop = tx_ring->buffer_info[i].next_to_watch; in e1000_clean_tx_irq()
1236 buffer_info = &tx_ring->buffer_info[i]; in e1000_clean_tx_irq()
1240 total_tx_packets += buffer_info->segs; in e1000_clean_tx_irq()
1241 total_tx_bytes += buffer_info->bytecount; in e1000_clean_tx_irq()
1242 if (buffer_info->skb) { in e1000_clean_tx_irq()
1243 bytes_compl += buffer_info->skb->len; in e1000_clean_tx_irq()
1248 e1000_put_txbuf(tx_ring, buffer_info, false); in e1000_clean_tx_irq()
1258 eop = tx_ring->buffer_info[i].next_to_watch; in e1000_clean_tx_irq()
1286 if (tx_ring->buffer_info[i].time_stamp && in e1000_clean_tx_irq()
1287 time_after(jiffies, tx_ring->buffer_info[i].time_stamp in e1000_clean_tx_irq()
1316 struct e1000_buffer *buffer_info, *next_buffer; in e1000_clean_rx_irq_ps() local
1328 buffer_info = &rx_ring->buffer_info[i]; in e1000_clean_rx_irq_ps()
1334 skb = buffer_info->skb; in e1000_clean_rx_irq_ps()
1346 next_buffer = &rx_ring->buffer_info[i]; in e1000_clean_rx_irq_ps()
1350 dma_unmap_single(&pdev->dev, buffer_info->dma, in e1000_clean_rx_irq_ps()
1352 buffer_info->dma = 0; in e1000_clean_rx_irq_ps()
1398 ps_page = &buffer_info->ps_pages[0]; in e1000_clean_rx_irq_ps()
1432 ps_page = &buffer_info->ps_pages[j]; in e1000_clean_rx_irq_ps()
1468 buffer_info->skb = NULL; in e1000_clean_rx_irq_ps()
1479 buffer_info = next_buffer; in e1000_clean_rx_irq_ps()
1519 struct e1000_buffer *buffer_info, *next_buffer; in e1000_clean_jumbo_rx_irq() local
1530 buffer_info = &rx_ring->buffer_info[i]; in e1000_clean_jumbo_rx_irq()
1540 skb = buffer_info->skb; in e1000_clean_jumbo_rx_irq()
1541 buffer_info->skb = NULL; in e1000_clean_jumbo_rx_irq()
1549 next_buffer = &rx_ring->buffer_info[i]; in e1000_clean_jumbo_rx_irq()
1553 dma_unmap_page(&pdev->dev, buffer_info->dma, PAGE_SIZE, in e1000_clean_jumbo_rx_irq()
1555 buffer_info->dma = 0; in e1000_clean_jumbo_rx_irq()
1564 buffer_info->skb = skb; in e1000_clean_jumbo_rx_irq()
1577 skb_fill_page_desc(rxtop, 0, buffer_info->page, in e1000_clean_jumbo_rx_irq()
1583 buffer_info->page, 0, in e1000_clean_jumbo_rx_irq()
1586 buffer_info->skb = skb; in e1000_clean_jumbo_rx_irq()
1588 e1000_consume_page(buffer_info, rxtop, length); in e1000_clean_jumbo_rx_irq()
1595 buffer_info->page, 0, in e1000_clean_jumbo_rx_irq()
1600 buffer_info->skb = skb; in e1000_clean_jumbo_rx_irq()
1603 e1000_consume_page(buffer_info, skb, length); in e1000_clean_jumbo_rx_irq()
1611 vaddr = kmap_atomic(buffer_info->page); in e1000_clean_jumbo_rx_irq()
1621 buffer_info->page, 0, in e1000_clean_jumbo_rx_irq()
1623 e1000_consume_page(buffer_info, skb, in e1000_clean_jumbo_rx_irq()
1660 buffer_info = next_buffer; in e1000_clean_jumbo_rx_irq()
1682 struct e1000_buffer *buffer_info; in e1000_clean_rx_ring() local
1689 buffer_info = &rx_ring->buffer_info[i]; in e1000_clean_rx_ring()
1690 if (buffer_info->dma) { in e1000_clean_rx_ring()
1692 dma_unmap_single(&pdev->dev, buffer_info->dma, in e1000_clean_rx_ring()
1696 dma_unmap_page(&pdev->dev, buffer_info->dma, in e1000_clean_rx_ring()
1699 dma_unmap_single(&pdev->dev, buffer_info->dma, in e1000_clean_rx_ring()
1702 buffer_info->dma = 0; in e1000_clean_rx_ring()
1705 if (buffer_info->page) { in e1000_clean_rx_ring()
1706 put_page(buffer_info->page); in e1000_clean_rx_ring()
1707 buffer_info->page = NULL; in e1000_clean_rx_ring()
1710 if (buffer_info->skb) { in e1000_clean_rx_ring()
1711 dev_kfree_skb(buffer_info->skb); in e1000_clean_rx_ring()
1712 buffer_info->skb = NULL; in e1000_clean_rx_ring()
1716 ps_page = &buffer_info->ps_pages[j]; in e1000_clean_rx_ring()
2342 tx_ring->buffer_info = vzalloc(size); in e1000e_setup_tx_resources()
2343 if (!tx_ring->buffer_info) in e1000e_setup_tx_resources()
2359 vfree(tx_ring->buffer_info); in e1000e_setup_tx_resources()
2373 struct e1000_buffer *buffer_info; in e1000e_setup_rx_resources() local
2377 rx_ring->buffer_info = vzalloc(size); in e1000e_setup_rx_resources()
2378 if (!rx_ring->buffer_info) in e1000e_setup_rx_resources()
2382 buffer_info = &rx_ring->buffer_info[i]; in e1000e_setup_rx_resources()
2383 buffer_info->ps_pages = kcalloc(PS_PAGE_BUFFERS, in e1000e_setup_rx_resources()
2386 if (!buffer_info->ps_pages) in e1000e_setup_rx_resources()
2408 buffer_info = &rx_ring->buffer_info[i]; in e1000e_setup_rx_resources()
2409 kfree(buffer_info->ps_pages); in e1000e_setup_rx_resources()
2412 vfree(rx_ring->buffer_info); in e1000e_setup_rx_resources()
2424 struct e1000_buffer *buffer_info; in e1000_clean_tx_ring() local
2429 buffer_info = &tx_ring->buffer_info[i]; in e1000_clean_tx_ring()
2430 e1000_put_txbuf(tx_ring, buffer_info, false); in e1000_clean_tx_ring()
2435 memset(tx_ring->buffer_info, 0, size); in e1000_clean_tx_ring()
2456 vfree(tx_ring->buffer_info); in e1000e_free_tx_resources()
2457 tx_ring->buffer_info = NULL; in e1000e_free_tx_resources()
2479 kfree(rx_ring->buffer_info[i].ps_pages); in e1000e_free_rx_resources()
2481 vfree(rx_ring->buffer_info); in e1000e_free_rx_resources()
2482 rx_ring->buffer_info = NULL; in e1000e_free_rx_resources()
5463 struct e1000_buffer *buffer_info; in e1000_tso() local
5501 buffer_info = &tx_ring->buffer_info[i]; in e1000_tso()
5513 buffer_info->time_stamp = jiffies; in e1000_tso()
5514 buffer_info->next_to_watch = i; in e1000_tso()
5529 struct e1000_buffer *buffer_info; in e1000_tx_csum() local
5557 buffer_info = &tx_ring->buffer_info[i]; in e1000_tx_csum()
5567 buffer_info->time_stamp = jiffies; in e1000_tx_csum()
5568 buffer_info->next_to_watch = i; in e1000_tx_csum()
5584 struct e1000_buffer *buffer_info; in e1000_tx_map() local
5592 buffer_info = &tx_ring->buffer_info[i]; in e1000_tx_map()
5595 buffer_info->length = size; in e1000_tx_map()
5596 buffer_info->time_stamp = jiffies; in e1000_tx_map()
5597 buffer_info->next_to_watch = i; in e1000_tx_map()
5598 buffer_info->dma = dma_map_single(&pdev->dev, in e1000_tx_map()
5601 buffer_info->mapped_as_page = false; in e1000_tx_map()
5602 if (dma_mapping_error(&pdev->dev, buffer_info->dma)) in e1000_tx_map()
5627 buffer_info = &tx_ring->buffer_info[i]; in e1000_tx_map()
5630 buffer_info->length = size; in e1000_tx_map()
5631 buffer_info->time_stamp = jiffies; in e1000_tx_map()
5632 buffer_info->next_to_watch = i; in e1000_tx_map()
5633 buffer_info->dma = skb_frag_dma_map(&pdev->dev, frag, in e1000_tx_map()
5636 buffer_info->mapped_as_page = true; in e1000_tx_map()
5637 if (dma_mapping_error(&pdev->dev, buffer_info->dma)) in e1000_tx_map()
5650 tx_ring->buffer_info[i].skb = skb; in e1000_tx_map()
5651 tx_ring->buffer_info[i].segs = segs; in e1000_tx_map()
5652 tx_ring->buffer_info[i].bytecount = bytecount; in e1000_tx_map()
5653 tx_ring->buffer_info[first].next_to_watch = i; in e1000_tx_map()
5659 buffer_info->dma = 0; in e1000_tx_map()
5667 buffer_info = &tx_ring->buffer_info[i]; in e1000_tx_map()
5668 e1000_put_txbuf(tx_ring, buffer_info, true); in e1000_tx_map()
5678 struct e1000_buffer *buffer_info; in e1000_tx_queue() local
5712 buffer_info = &tx_ring->buffer_info[i]; in e1000_tx_queue()
5714 tx_desc->buffer_addr = cpu_to_le64(buffer_info->dma); in e1000_tx_queue()
5716 buffer_info->length); in e1000_tx_queue()
5953 tx_ring->buffer_info[first].time_stamp = 0; in e1000_xmit_frame()