Home
last modified time | relevance | path

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

/drivers/net/ethernet/intel/igbvf/
Dnetdev.c140 struct igbvf_buffer *buffer_info; in igbvf_alloc_rx_buffers() local
146 buffer_info = &rx_ring->buffer_info[i]; in igbvf_alloc_rx_buffers()
156 if (adapter->rx_ps_hdr_size && !buffer_info->page_dma) { in igbvf_alloc_rx_buffers()
157 if (!buffer_info->page) { in igbvf_alloc_rx_buffers()
158 buffer_info->page = alloc_page(GFP_ATOMIC); in igbvf_alloc_rx_buffers()
159 if (!buffer_info->page) { in igbvf_alloc_rx_buffers()
163 buffer_info->page_offset = 0; in igbvf_alloc_rx_buffers()
165 buffer_info->page_offset ^= PAGE_SIZE / 2; in igbvf_alloc_rx_buffers()
167 buffer_info->page_dma = in igbvf_alloc_rx_buffers()
168 dma_map_page(&pdev->dev, buffer_info->page, in igbvf_alloc_rx_buffers()
[all …]
Digbvf.h139 struct igbvf_buffer *buffer_info; member
/drivers/net/ethernet/intel/ixgb/
Dixgb_main.c674 txdr->buffer_info = vzalloc(size); in ixgb_setup_tx_resources()
675 if (!txdr->buffer_info) in ixgb_setup_tx_resources()
686 vfree(txdr->buffer_info); in ixgb_setup_tx_resources()
757 rxdr->buffer_info = vzalloc(size); in ixgb_setup_rx_resources()
758 if (!rxdr->buffer_info) in ixgb_setup_rx_resources()
770 vfree(rxdr->buffer_info); in ixgb_setup_rx_resources()
882 vfree(adapter->tx_ring.buffer_info); in ixgb_free_tx_resources()
883 adapter->tx_ring.buffer_info = NULL; in ixgb_free_tx_resources()
893 struct ixgb_buffer *buffer_info) in ixgb_unmap_and_free_tx_resource() argument
895 if (buffer_info->dma) { in ixgb_unmap_and_free_tx_resource()
[all …]
Dixgb.h98 struct ixgb_buffer *buffer_info; member
/drivers/net/ethernet/atheros/atl1c/
Datl1c_main.c825 struct atl1c_buffer *buffer_info) in atl1c_clean_buffer() argument
828 if (buffer_info->flags & ATL1C_BUFFER_FREE) in atl1c_clean_buffer()
830 if (buffer_info->dma) { in atl1c_clean_buffer()
831 if (buffer_info->flags & ATL1C_PCIMAP_FROMDEVICE) in atl1c_clean_buffer()
836 if (buffer_info->flags & ATL1C_PCIMAP_SINGLE) in atl1c_clean_buffer()
837 pci_unmap_single(pdev, buffer_info->dma, in atl1c_clean_buffer()
838 buffer_info->length, pci_driection); in atl1c_clean_buffer()
839 else if (buffer_info->flags & ATL1C_PCIMAP_PAGE) in atl1c_clean_buffer()
840 pci_unmap_page(pdev, buffer_info->dma, in atl1c_clean_buffer()
841 buffer_info->length, pci_driection); in atl1c_clean_buffer()
[all …]
Datl1c.h480 struct atl1c_buffer *buffer_info; member
491 struct atl1c_buffer *buffer_info; member
/drivers/net/ethernet/intel/e1000/
De1000_main.c1499 txdr->buffer_info = vzalloc(size); in e1000_setup_tx_resources()
1500 if (!txdr->buffer_info) in e1000_setup_tx_resources()
1512 vfree(txdr->buffer_info); in e1000_setup_tx_resources()
1540 vfree(txdr->buffer_info); in e1000_setup_tx_resources()
1689 rxdr->buffer_info = vzalloc(size); in e1000_setup_rx_resources()
1690 if (!rxdr->buffer_info) in e1000_setup_rx_resources()
1704 vfree(rxdr->buffer_info); in e1000_setup_rx_resources()
1925 vfree(tx_ring->buffer_info); in e1000_free_tx_resources()
1926 tx_ring->buffer_info = NULL; in e1000_free_tx_resources()
1950 struct e1000_tx_buffer *buffer_info) in e1000_unmap_and_free_tx_resource() argument
[all …]
De1000_ethtool.c932 if (txdr->desc && txdr->buffer_info) { in e1000_free_desc_rings()
934 if (txdr->buffer_info[i].dma) in e1000_free_desc_rings()
936 txdr->buffer_info[i].dma, in e1000_free_desc_rings()
937 txdr->buffer_info[i].length, in e1000_free_desc_rings()
939 dev_kfree_skb(txdr->buffer_info[i].skb); in e1000_free_desc_rings()
943 if (rxdr->desc && rxdr->buffer_info) { in e1000_free_desc_rings()
945 if (rxdr->buffer_info[i].dma) in e1000_free_desc_rings()
947 rxdr->buffer_info[i].dma, in e1000_free_desc_rings()
950 kfree(rxdr->buffer_info[i].rxbuf.data); in e1000_free_desc_rings()
965 kfree(txdr->buffer_info); in e1000_free_desc_rings()
[all …]
De1000.h158 struct e1000_tx_buffer *buffer_info; member
179 struct e1000_rx_buffer *buffer_info; member
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c887 struct pch_gbe_adapter *adapter, struct pch_gbe_buffer *buffer_info) in pch_gbe_unmap_and_free_tx_resource() argument
889 if (buffer_info->mapped) { in pch_gbe_unmap_and_free_tx_resource()
890 dma_unmap_single(&adapter->pdev->dev, buffer_info->dma, in pch_gbe_unmap_and_free_tx_resource()
891 buffer_info->length, DMA_TO_DEVICE); in pch_gbe_unmap_and_free_tx_resource()
892 buffer_info->mapped = false; in pch_gbe_unmap_and_free_tx_resource()
894 if (buffer_info->skb) { in pch_gbe_unmap_and_free_tx_resource()
895 dev_kfree_skb_any(buffer_info->skb); in pch_gbe_unmap_and_free_tx_resource()
896 buffer_info->skb = NULL; in pch_gbe_unmap_and_free_tx_resource()
907 struct pch_gbe_buffer *buffer_info) in pch_gbe_unmap_and_free_rx_resource() argument
909 if (buffer_info->mapped) { in pch_gbe_unmap_and_free_rx_resource()
[all …]
Dpch_gbe.h449 struct pch_gbe_buffer *buffer_info; member
472 struct pch_gbe_buffer *buffer_info; member
/drivers/net/ethernet/microchip/
Dlan743x_main.c1212 struct lan743x_tx_buffer_info *buffer_info = NULL; in lan743x_tx_release_desc() local
1218 buffer_info = &tx->buffer_info[descriptor_index]; in lan743x_tx_release_desc()
1219 if (!(buffer_info->flags & TX_BUFFER_INFO_FLAG_ACTIVE)) in lan743x_tx_release_desc()
1230 if (buffer_info->dma_ptr) { in lan743x_tx_release_desc()
1231 if (buffer_info->flags & in lan743x_tx_release_desc()
1234 buffer_info->dma_ptr, in lan743x_tx_release_desc()
1235 buffer_info->buffer_length, in lan743x_tx_release_desc()
1239 buffer_info->dma_ptr, in lan743x_tx_release_desc()
1240 buffer_info->buffer_length, in lan743x_tx_release_desc()
1243 buffer_info->dma_ptr = 0; in lan743x_tx_release_desc()
[all …]
Dlan743x_main.h656 struct lan743x_tx_buffer_info *buffer_info; member
686 struct lan743x_rx_buffer_info *buffer_info; member
/drivers/net/ethernet/intel/e1000e/
Dnetdev.c207 struct e1000_buffer *buffer_info; in e1000e_dump() local
245 buffer_info = &tx_ring->buffer_info[tx_ring->next_to_clean]; in e1000e_dump()
248 (unsigned long long)buffer_info->dma, in e1000e_dump()
249 buffer_info->length, in e1000e_dump()
250 buffer_info->next_to_watch, in e1000e_dump()
251 (unsigned long long)buffer_info->time_stamp); in e1000e_dump()
292 buffer_info = &tx_ring->buffer_info[i]; in e1000e_dump()
308 (unsigned long long)buffer_info->dma, in e1000e_dump()
309 buffer_info->length, buffer_info->next_to_watch, in e1000e_dump()
310 (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 dev_kfree_skb(buffer_info->skb); in e1000_free_desc_rings()
1133 if (rx_ring->desc && rx_ring->buffer_info) { in e1000_free_desc_rings()
1135 buffer_info = &rx_ring->buffer_info[i]; in e1000_free_desc_rings()
1137 if (buffer_info->dma) in e1000_free_desc_rings()
[all …]
De1000.h163 struct e1000_buffer *buffer_info; member
/drivers/net/ethernet/atheros/atlx/
Datl1.c1032 tpd_ring->buffer_info = kzalloc(size, GFP_KERNEL); in atl1_setup_ring_resources()
1033 if (unlikely(!tpd_ring->buffer_info)) { in atl1_setup_ring_resources()
1039 rfd_ring->buffer_info = in atl1_setup_ring_resources()
1040 (tpd_ring->buffer_info + tpd_ring->count); in atl1_setup_ring_resources()
1104 kfree(tpd_ring->buffer_info); in atl1_setup_ring_resources()
1132 struct atl1_buffer *buffer_info; in atl1_clean_rx_ring() local
1139 buffer_info = &rfd_ring->buffer_info[i]; in atl1_clean_rx_ring()
1140 if (buffer_info->dma) { in atl1_clean_rx_ring()
1141 pci_unmap_page(pdev, buffer_info->dma, in atl1_clean_rx_ring()
1142 buffer_info->length, PCI_DMA_FROMDEVICE); in atl1_clean_rx_ring()
[all …]
Datl1.h609 struct atl1_buffer *buffer_info; member
620 struct atl1_buffer *buffer_info; member
/drivers/media/platform/qcom/venus/
Dhfi_cmds.h120 u32 buffer_info[1]; member
230 u32 buffer_info[1]; member
Dhfi_msgs.h248 u32 buffer_info[1]; member
Dhfi_cmds.c195 bi = (struct hfi_buffer_info *)pkt->buffer_info; in pkt_session_set_buffers()
205 pkt->buffer_info[i] = bd->device_addr; in pkt_session_set_buffers()
230 bi = (struct hfi_buffer_info *)pkt->buffer_info; in pkt_session_unset_buffers()
240 pkt->buffer_info[i] = bd->device_addr; in pkt_session_unset_buffers()
/drivers/net/ethernet/intel/igb/
Digb_main.c397 struct igb_tx_buffer *buffer_info; in igb_dump() local
399 buffer_info = &tx_ring->tx_buffer_info[tx_ring->next_to_clean]; in igb_dump()
402 (u64)dma_unmap_addr(buffer_info, dma), in igb_dump()
403 dma_unmap_len(buffer_info, len), in igb_dump()
404 buffer_info->next_to_watch, in igb_dump()
405 (u64)buffer_info->time_stamp); in igb_dump()
434 struct igb_tx_buffer *buffer_info; in igb_dump() local
436 buffer_info = &tx_ring->tx_buffer_info[i]; in igb_dump()
451 (u64)dma_unmap_addr(buffer_info, dma), in igb_dump()
452 dma_unmap_len(buffer_info, len), in igb_dump()
[all …]
/drivers/net/ethernet/intel/igc/
Digc_main.c365 struct igc_rx_buffer *buffer_info = &rx_ring->rx_buffer_info[i]; in igc_clean_rx_ring() local
371 buffer_info->dma, in igc_clean_rx_ring()
372 buffer_info->page_offset, in igc_clean_rx_ring()
378 buffer_info->dma, in igc_clean_rx_ring()
382 __page_frag_cache_drain(buffer_info->page, in igc_clean_rx_ring()
383 buffer_info->pagecnt_bias); in igc_clean_rx_ring()