Lines Matching defs:buffer
26 * Generic buffer handling
31 int efx_siena_alloc_buffer(struct efx_nic *efx, struct efx_buffer *buffer,
34 buffer->addr = dma_alloc_coherent(&efx->pci_dev->dev, len,
35 &buffer->dma_addr, gfp_flags);
36 if (!buffer->addr)
38 buffer->len = len;
42 void efx_siena_free_buffer(struct efx_nic *efx, struct efx_buffer *buffer)
44 if (buffer->addr) {
45 dma_free_coherent(&efx->pci_dev->dev, buffer->len,
46 buffer->addr, buffer->dma_addr);
47 buffer->addr = NULL;
347 /* We can't reasonably read all of the buffer table (up to 8MB!).
473 * efx_siena_update_stats - Convert statistics DMA buffer to array of u64
474 * @desc: Array of &struct efx_hw_stat_desc describing the DMA buffer
482 * @dma_buf: DMA buffer containing hardware statistics