Lines Matching defs:buffer
40 queue_tx(struct altera_tse_private *priv, struct tse_buffer *buffer);
43 queue_rx(struct altera_tse_private *priv, struct tse_buffer *buffer);
162 /* transmits buffer through SGDMA. Returns number of buffers
167 int sgdma_tx_buffer(struct altera_tse_private *priv, struct tse_buffer *buffer)
182 buffer->dma_addr, /* address of packet to xmit */
184 buffer->len, /* length of packet */
192 queue_tx(priv, buffer);
332 * probably for the first time when populating a receive buffer.
440 /* adds a tse_buffer to the tail of a tx buffer list.
445 queue_tx(struct altera_tse_private *priv, struct tse_buffer *buffer)
447 list_add_tail(&buffer->lh, &priv->txlisthd);
451 /* adds a tse_buffer to the tail of a rx buffer list
456 queue_rx(struct altera_tse_private *priv, struct tse_buffer *buffer)
458 list_add_tail(&buffer->lh, &priv->rxlisthd);
461 /* dequeues a tse_buffer from the transmit buffer list, otherwise
469 struct tse_buffer *buffer = NULL;
470 list_remove_head(&priv->txlisthd, buffer, struct tse_buffer, lh);
471 return buffer;
474 /* dequeues a tse_buffer from the receive buffer list, otherwise
482 struct tse_buffer *buffer = NULL;
483 list_remove_head(&priv->rxlisthd, buffer, struct tse_buffer, lh);
484 return buffer;
487 /* dequeues a tse_buffer from the receive buffer list, otherwise
496 struct tse_buffer *buffer = NULL;
497 list_peek_head(&priv->rxlisthd, buffer, struct tse_buffer, lh);
498 return buffer;