Home
last modified time | relevance | path

Searched refs:buffer_info (Results 1 – 17 of 17) sorted by relevance

/drivers/net/ethernet/intel/igbvf/
Dnetdev.c162 struct igbvf_buffer *buffer_info; in igbvf_alloc_rx_buffers() local
168 buffer_info = &rx_ring->buffer_info[i]; in igbvf_alloc_rx_buffers()
178 if (adapter->rx_ps_hdr_size && !buffer_info->page_dma) { in igbvf_alloc_rx_buffers()
179 if (!buffer_info->page) { in igbvf_alloc_rx_buffers()
180 buffer_info->page = alloc_page(GFP_ATOMIC); in igbvf_alloc_rx_buffers()
181 if (!buffer_info->page) { in igbvf_alloc_rx_buffers()
185 buffer_info->page_offset = 0; in igbvf_alloc_rx_buffers()
187 buffer_info->page_offset ^= PAGE_SIZE / 2; in igbvf_alloc_rx_buffers()
189 buffer_info->page_dma = in igbvf_alloc_rx_buffers()
190 dma_map_page(&pdev->dev, buffer_info->page, in igbvf_alloc_rx_buffers()
[all …]
Digbvf.h163 struct igbvf_buffer *buffer_info; member
/drivers/net/ethernet/intel/ixgb/
Dixgb_main.c706 txdr->buffer_info = vzalloc(size); in ixgb_setup_tx_resources()
707 if (!txdr->buffer_info) in ixgb_setup_tx_resources()
718 vfree(txdr->buffer_info); in ixgb_setup_tx_resources()
789 rxdr->buffer_info = vzalloc(size); in ixgb_setup_rx_resources()
790 if (!rxdr->buffer_info) in ixgb_setup_rx_resources()
802 vfree(rxdr->buffer_info); in ixgb_setup_rx_resources()
915 vfree(adapter->tx_ring.buffer_info); in ixgb_free_tx_resources()
916 adapter->tx_ring.buffer_info = NULL; in ixgb_free_tx_resources()
926 struct ixgb_buffer *buffer_info) in ixgb_unmap_and_free_tx_resource() argument
928 if (buffer_info->dma) { in ixgb_unmap_and_free_tx_resource()
[all …]
Dixgb.h123 struct ixgb_buffer *buffer_info; member
/drivers/net/ethernet/atheros/atl1c/
Datl1c_main.c835 struct atl1c_buffer *buffer_info) in atl1c_clean_buffer() argument
838 if (buffer_info->flags & ATL1C_BUFFER_FREE) in atl1c_clean_buffer()
840 if (buffer_info->dma) { in atl1c_clean_buffer()
841 if (buffer_info->flags & ATL1C_PCIMAP_FROMDEVICE) in atl1c_clean_buffer()
846 if (buffer_info->flags & ATL1C_PCIMAP_SINGLE) in atl1c_clean_buffer()
847 pci_unmap_single(pdev, buffer_info->dma, in atl1c_clean_buffer()
848 buffer_info->length, pci_driection); in atl1c_clean_buffer()
849 else if (buffer_info->flags & ATL1C_PCIMAP_PAGE) in atl1c_clean_buffer()
850 pci_unmap_page(pdev, buffer_info->dma, in atl1c_clean_buffer()
851 buffer_info->length, pci_driection); in atl1c_clean_buffer()
[all …]
Datl1c.h493 struct atl1c_buffer *buffer_info; member
504 struct atl1c_buffer *buffer_info; member
/drivers/net/ethernet/intel/e1000/
De1000_main.c1509 txdr->buffer_info = vzalloc(size); in e1000_setup_tx_resources()
1510 if (!txdr->buffer_info) in e1000_setup_tx_resources()
1522 vfree(txdr->buffer_info); in e1000_setup_tx_resources()
1550 vfree(txdr->buffer_info); in e1000_setup_tx_resources()
1699 rxdr->buffer_info = vzalloc(size); in e1000_setup_rx_resources()
1700 if (!rxdr->buffer_info) in e1000_setup_rx_resources()
1714 vfree(rxdr->buffer_info); in e1000_setup_rx_resources()
1935 vfree(tx_ring->buffer_info); in e1000_free_tx_resources()
1936 tx_ring->buffer_info = NULL; in e1000_free_tx_resources()
1960 struct e1000_tx_buffer *buffer_info) in e1000_unmap_and_free_tx_resource() argument
[all …]
De1000_ethtool.c954 if (txdr->desc && txdr->buffer_info) { in e1000_free_desc_rings()
956 if (txdr->buffer_info[i].dma) in e1000_free_desc_rings()
958 txdr->buffer_info[i].dma, in e1000_free_desc_rings()
959 txdr->buffer_info[i].length, in e1000_free_desc_rings()
961 if (txdr->buffer_info[i].skb) in e1000_free_desc_rings()
962 dev_kfree_skb(txdr->buffer_info[i].skb); in e1000_free_desc_rings()
966 if (rxdr->desc && rxdr->buffer_info) { in e1000_free_desc_rings()
968 if (rxdr->buffer_info[i].dma) in e1000_free_desc_rings()
970 rxdr->buffer_info[i].dma, in e1000_free_desc_rings()
973 kfree(rxdr->buffer_info[i].rxbuf.data); in e1000_free_desc_rings()
[all …]
De1000.h184 struct e1000_tx_buffer *buffer_info; member
205 struct e1000_rx_buffer *buffer_info; member
/drivers/net/ethernet/intel/e1000e/
Dnetdev.c223 struct e1000_buffer *buffer_info; in e1000e_dump() local
261 buffer_info = &tx_ring->buffer_info[tx_ring->next_to_clean]; in e1000e_dump()
264 (unsigned long long)buffer_info->dma, in e1000e_dump()
265 buffer_info->length, in e1000e_dump()
266 buffer_info->next_to_watch, in e1000e_dump()
267 (unsigned long long)buffer_info->time_stamp); in e1000e_dump()
308 buffer_info = &tx_ring->buffer_info[i]; in e1000e_dump()
324 (unsigned long long)buffer_info->dma, in e1000e_dump()
325 buffer_info->length, buffer_info->next_to_watch, in e1000e_dump()
326 (unsigned long long)buffer_info->time_stamp, in e1000e_dump()
[all …]
Dethtool.c1117 struct e1000_buffer *buffer_info; in e1000_free_desc_rings() local
1120 if (tx_ring->desc && tx_ring->buffer_info) { in e1000_free_desc_rings()
1122 buffer_info = &tx_ring->buffer_info[i]; in e1000_free_desc_rings()
1124 if (buffer_info->dma) in e1000_free_desc_rings()
1126 buffer_info->dma, in e1000_free_desc_rings()
1127 buffer_info->length, in e1000_free_desc_rings()
1129 if (buffer_info->skb) in e1000_free_desc_rings()
1130 dev_kfree_skb(buffer_info->skb); in e1000_free_desc_rings()
1134 if (rx_ring->desc && rx_ring->buffer_info) { in e1000_free_desc_rings()
1136 buffer_info = &rx_ring->buffer_info[i]; in e1000_free_desc_rings()
[all …]
De1000.h181 struct e1000_buffer *buffer_info; member
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c938 struct pch_gbe_adapter *adapter, struct pch_gbe_buffer *buffer_info) in pch_gbe_unmap_and_free_tx_resource() argument
940 if (buffer_info->mapped) { in pch_gbe_unmap_and_free_tx_resource()
941 dma_unmap_single(&adapter->pdev->dev, buffer_info->dma, in pch_gbe_unmap_and_free_tx_resource()
942 buffer_info->length, DMA_TO_DEVICE); in pch_gbe_unmap_and_free_tx_resource()
943 buffer_info->mapped = false; in pch_gbe_unmap_and_free_tx_resource()
945 if (buffer_info->skb) { in pch_gbe_unmap_and_free_tx_resource()
946 dev_kfree_skb_any(buffer_info->skb); in pch_gbe_unmap_and_free_tx_resource()
947 buffer_info->skb = NULL; in pch_gbe_unmap_and_free_tx_resource()
958 struct pch_gbe_buffer *buffer_info) in pch_gbe_unmap_and_free_rx_resource() argument
960 if (buffer_info->mapped) { in pch_gbe_unmap_and_free_rx_resource()
[all …]
Dpch_gbe.h501 struct pch_gbe_buffer *buffer_info; member
524 struct pch_gbe_buffer *buffer_info; member
/drivers/net/ethernet/atheros/atlx/
Datl1.c1049 tpd_ring->buffer_info = kzalloc(size, GFP_KERNEL); in atl1_setup_ring_resources()
1050 if (unlikely(!tpd_ring->buffer_info)) { in atl1_setup_ring_resources()
1056 rfd_ring->buffer_info = in atl1_setup_ring_resources()
1057 (tpd_ring->buffer_info + tpd_ring->count); in atl1_setup_ring_resources()
1123 kfree(tpd_ring->buffer_info); in atl1_setup_ring_resources()
1151 struct atl1_buffer *buffer_info; in atl1_clean_rx_ring() local
1158 buffer_info = &rfd_ring->buffer_info[i]; in atl1_clean_rx_ring()
1159 if (buffer_info->dma) { in atl1_clean_rx_ring()
1160 pci_unmap_page(pdev, buffer_info->dma, in atl1_clean_rx_ring()
1161 buffer_info->length, PCI_DMA_FROMDEVICE); in atl1_clean_rx_ring()
[all …]
Datl1.h622 struct atl1_buffer *buffer_info; member
633 struct atl1_buffer *buffer_info; member
/drivers/net/ethernet/intel/igb/
Digb_main.c403 struct igb_tx_buffer *buffer_info; in igb_dump() local
405 buffer_info = &tx_ring->tx_buffer_info[tx_ring->next_to_clean]; in igb_dump()
408 (u64)dma_unmap_addr(buffer_info, dma), in igb_dump()
409 dma_unmap_len(buffer_info, len), in igb_dump()
410 buffer_info->next_to_watch, in igb_dump()
411 (u64)buffer_info->time_stamp); in igb_dump()
440 struct igb_tx_buffer *buffer_info; in igb_dump() local
442 buffer_info = &tx_ring->tx_buffer_info[i]; in igb_dump()
457 (u64)dma_unmap_addr(buffer_info, dma), in igb_dump()
458 dma_unmap_len(buffer_info, len), in igb_dump()
[all …]