Lines Matching defs:buffer
27 * Generic buffer handling
32 int efx_nic_alloc_buffer(struct efx_nic *efx, struct efx_buffer *buffer,
35 buffer->addr = dma_alloc_coherent(&efx->pci_dev->dev, len,
36 &buffer->dma_addr, gfp_flags);
37 if (!buffer->addr)
39 buffer->len = len;
43 void efx_nic_free_buffer(struct efx_nic *efx, struct efx_buffer *buffer)
45 if (buffer->addr) {
46 dma_free_coherent(&efx->pci_dev->dev, buffer->len,
47 buffer->addr, buffer->dma_addr);
48 buffer->addr = NULL;
353 /* We can't reasonably read all of the buffer table (up to 8MB!).
480 * efx_nic_copy_stats - Copy stats from the DMA buffer in to an
481 * intermediate buffer. This is used to get a consistent
482 * set of stats while the DMA buffer can be written at any time
485 * @dest: Destination buffer. Must be the same size as the DMA buffer.
523 * efx_nic_update_stats - Convert statistics DMA buffer to array of u64
524 * @desc: Array of &struct efx_hw_stat_desc describing the DMA buffer
532 * @dma_buf: DMA buffer containing hardware statistics