/drivers/net/ethernet/intel/igbvf/ |
D | netdev.c | 162 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 …]
|
D | igbvf.h | 163 struct igbvf_buffer *buffer_info; member
|
/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_main.c | 712 txdr->buffer_info = vzalloc(size); in ixgb_setup_tx_resources() 713 if (!txdr->buffer_info) in ixgb_setup_tx_resources() 724 vfree(txdr->buffer_info); in ixgb_setup_tx_resources() 795 rxdr->buffer_info = vzalloc(size); in ixgb_setup_rx_resources() 796 if (!rxdr->buffer_info) in ixgb_setup_rx_resources() 808 vfree(rxdr->buffer_info); in ixgb_setup_rx_resources() 921 vfree(adapter->tx_ring.buffer_info); in ixgb_free_tx_resources() 922 adapter->tx_ring.buffer_info = NULL; in ixgb_free_tx_resources() 932 struct ixgb_buffer *buffer_info) in ixgb_unmap_and_free_tx_resource() argument 934 if (buffer_info->dma) { in ixgb_unmap_and_free_tx_resource() [all …]
|
D | ixgb.h | 124 struct ixgb_buffer *buffer_info; member
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000_main.c | 1509 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() 1959 struct e1000_buffer *buffer_info) in e1000_unmap_and_free_tx_resource() argument [all …]
|
D | e1000_ethtool.c | 958 if (txdr->desc && txdr->buffer_info) { in e1000_free_desc_rings() 960 if (txdr->buffer_info[i].dma) in e1000_free_desc_rings() 962 txdr->buffer_info[i].dma, in e1000_free_desc_rings() 963 txdr->buffer_info[i].length, in e1000_free_desc_rings() 965 if (txdr->buffer_info[i].skb) in e1000_free_desc_rings() 966 dev_kfree_skb(txdr->buffer_info[i].skb); in e1000_free_desc_rings() 970 if (rxdr->desc && rxdr->buffer_info) { in e1000_free_desc_rings() 972 if (rxdr->buffer_info[i].dma) in e1000_free_desc_rings() 974 rxdr->buffer_info[i].dma, in e1000_free_desc_rings() 975 rxdr->buffer_info[i].length, in e1000_free_desc_rings() [all …]
|
D | e1000.h | 173 struct e1000_buffer *buffer_info; member 194 struct e1000_buffer *buffer_info; member
|
/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_main.c | 828 struct atl1c_buffer *buffer_info, int in_irq) in atl1c_clean_buffer() argument 831 if (buffer_info->flags & ATL1C_BUFFER_FREE) in atl1c_clean_buffer() 833 if (buffer_info->dma) { in atl1c_clean_buffer() 834 if (buffer_info->flags & ATL1C_PCIMAP_FROMDEVICE) in atl1c_clean_buffer() 839 if (buffer_info->flags & ATL1C_PCIMAP_SINGLE) in atl1c_clean_buffer() 840 pci_unmap_single(pdev, buffer_info->dma, in atl1c_clean_buffer() 841 buffer_info->length, pci_driection); in atl1c_clean_buffer() 842 else if (buffer_info->flags & ATL1C_PCIMAP_PAGE) in atl1c_clean_buffer() 843 pci_unmap_page(pdev, buffer_info->dma, in atl1c_clean_buffer() 844 buffer_info->length, pci_driection); in atl1c_clean_buffer() [all …]
|
D | atl1c.h | 494 struct atl1c_buffer *buffer_info; member 505 struct atl1c_buffer *buffer_info; member
|
/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_main.c | 929 struct pch_gbe_adapter *adapter, struct pch_gbe_buffer *buffer_info) in pch_gbe_unmap_and_free_tx_resource() argument 931 if (buffer_info->mapped) { in pch_gbe_unmap_and_free_tx_resource() 932 dma_unmap_single(&adapter->pdev->dev, buffer_info->dma, in pch_gbe_unmap_and_free_tx_resource() 933 buffer_info->length, DMA_TO_DEVICE); in pch_gbe_unmap_and_free_tx_resource() 934 buffer_info->mapped = false; in pch_gbe_unmap_and_free_tx_resource() 936 if (buffer_info->skb) { in pch_gbe_unmap_and_free_tx_resource() 937 dev_kfree_skb_any(buffer_info->skb); in pch_gbe_unmap_and_free_tx_resource() 938 buffer_info->skb = NULL; in pch_gbe_unmap_and_free_tx_resource() 949 struct pch_gbe_buffer *buffer_info) in pch_gbe_unmap_and_free_rx_resource() argument 951 if (buffer_info->mapped) { in pch_gbe_unmap_and_free_rx_resource() [all …]
|
D | pch_gbe.h | 502 struct pch_gbe_buffer *buffer_info; member 525 struct pch_gbe_buffer *buffer_info; member
|
/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 202 struct e1000_buffer *buffer_info; in e1000e_dump() local 240 buffer_info = &tx_ring->buffer_info[tx_ring->next_to_clean]; in e1000e_dump() 243 (unsigned long long)buffer_info->dma, in e1000e_dump() 244 buffer_info->length, in e1000e_dump() 245 buffer_info->next_to_watch, in e1000e_dump() 246 (unsigned long long)buffer_info->time_stamp); in e1000e_dump() 287 buffer_info = &tx_ring->buffer_info[i]; in e1000e_dump() 303 (unsigned long long)buffer_info->dma, in e1000e_dump() 304 buffer_info->length, buffer_info->next_to_watch, in e1000e_dump() 305 (unsigned long long)buffer_info->time_stamp, in e1000e_dump() [all …]
|
D | ethtool.c | 1081 struct e1000_buffer *buffer_info; in e1000_free_desc_rings() local 1084 if (tx_ring->desc && tx_ring->buffer_info) { in e1000_free_desc_rings() 1086 buffer_info = &tx_ring->buffer_info[i]; in e1000_free_desc_rings() 1088 if (buffer_info->dma) in e1000_free_desc_rings() 1090 buffer_info->dma, in e1000_free_desc_rings() 1091 buffer_info->length, in e1000_free_desc_rings() 1093 if (buffer_info->skb) in e1000_free_desc_rings() 1094 dev_kfree_skb(buffer_info->skb); in e1000_free_desc_rings() 1098 if (rx_ring->desc && rx_ring->buffer_info) { in e1000_free_desc_rings() 1100 buffer_info = &rx_ring->buffer_info[i]; in e1000_free_desc_rings() [all …]
|
D | e1000.h | 191 struct e1000_buffer *buffer_info; member
|
/drivers/net/ethernet/atheros/atlx/ |
D | atl1.c | 1050 tpd_ring->buffer_info = kzalloc(size, GFP_KERNEL); in atl1_setup_ring_resources() 1051 if (unlikely(!tpd_ring->buffer_info)) { in atl1_setup_ring_resources() 1057 rfd_ring->buffer_info = in atl1_setup_ring_resources() 1058 (tpd_ring->buffer_info + tpd_ring->count); in atl1_setup_ring_resources() 1124 kfree(tpd_ring->buffer_info); in atl1_setup_ring_resources() 1152 struct atl1_buffer *buffer_info; in atl1_clean_rx_ring() local 1159 buffer_info = &rfd_ring->buffer_info[i]; in atl1_clean_rx_ring() 1160 if (buffer_info->dma) { in atl1_clean_rx_ring() 1161 pci_unmap_page(pdev, buffer_info->dma, in atl1_clean_rx_ring() 1162 buffer_info->length, PCI_DMA_FROMDEVICE); in atl1_clean_rx_ring() [all …]
|
D | atl1.h | 622 struct atl1_buffer *buffer_info; member 633 struct atl1_buffer *buffer_info; member
|
/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 406 struct igb_tx_buffer *buffer_info; in igb_dump() local 408 buffer_info = &tx_ring->tx_buffer_info[tx_ring->next_to_clean]; in igb_dump() 411 (u64)dma_unmap_addr(buffer_info, dma), in igb_dump() 412 dma_unmap_len(buffer_info, len), in igb_dump() 413 buffer_info->next_to_watch, in igb_dump() 414 (u64)buffer_info->time_stamp); in igb_dump() 445 struct igb_tx_buffer *buffer_info; in igb_dump() local 447 buffer_info = &tx_ring->tx_buffer_info[i]; in igb_dump() 463 (u64)dma_unmap_addr(buffer_info, dma), in igb_dump() 464 dma_unmap_len(buffer_info, len), in igb_dump() [all …]
|