Lines Matching refs:rxbuffer
216 struct tse_buffer *rxbuffer, int len) in tse_init_rx_buffer() argument
218 rxbuffer->skb = netdev_alloc_skb_ip_align(priv->dev, len); in tse_init_rx_buffer()
219 if (!rxbuffer->skb) in tse_init_rx_buffer()
222 rxbuffer->dma_addr = dma_map_single(priv->device, rxbuffer->skb->data, in tse_init_rx_buffer()
226 if (dma_mapping_error(priv->device, rxbuffer->dma_addr)) { in tse_init_rx_buffer()
228 dev_kfree_skb_any(rxbuffer->skb); in tse_init_rx_buffer()
231 rxbuffer->dma_addr &= (dma_addr_t)~3; in tse_init_rx_buffer()
232 rxbuffer->len = len; in tse_init_rx_buffer()
237 struct tse_buffer *rxbuffer) in tse_free_rx_buffer() argument
239 struct sk_buff *skb = rxbuffer->skb; in tse_free_rx_buffer()
240 dma_addr_t dma_addr = rxbuffer->dma_addr; in tse_free_rx_buffer()
245 rxbuffer->len, in tse_free_rx_buffer()
248 rxbuffer->skb = NULL; in tse_free_rx_buffer()
249 rxbuffer->dma_addr = 0; in tse_free_rx_buffer()