Lines Matching defs:buffer
25 * Generic buffer handling
30 int ef4_nic_alloc_buffer(struct ef4_nic *efx, struct ef4_buffer *buffer,
33 buffer->addr = dma_alloc_coherent(&efx->pci_dev->dev, len,
34 &buffer->dma_addr, gfp_flags);
35 if (!buffer->addr)
37 buffer->len = len;
41 void ef4_nic_free_buffer(struct ef4_nic *efx, struct ef4_buffer *buffer)
43 if (buffer->addr) {
44 dma_free_coherent(&efx->pci_dev->dev, buffer->len,
45 buffer->addr, buffer->dma_addr);
46 buffer->addr = NULL;
341 /* We can't reasonably read all of the buffer table (up to 8MB!).
467 * ef4_nic_update_stats - Convert statistics DMA buffer to array of u64
468 * @desc: Array of &struct ef4_hw_stat_desc describing the DMA buffer
476 * @dma_buf: DMA buffer containing hardware statistics