Lines Matching refs:mbuf
73 static inline struct mbuf *
76 struct mbuf *mb;
85 struct mbuf *mb_head = mb;
102 /* rewind to first mbuf in chain */
115 struct mbuf *mb;
122 /* try to allocate a new spare mbuf */
123 if (unlikely(ring->spare.mbuf == NULL)) {
131 /* load spare mbuf into BUSDMA */
140 ring->spare.mbuf = mb;
153 /* synchronize and unload the current mbuf, if any */
154 if (likely(mb_list->mbuf != NULL)) {
188 mb_list->mbuf = mb;
200 mb_list->mbuf = ring->spare.mbuf;
201 ring->spare.mbuf = NULL;
228 m_freem(mb_list->mbuf);
229 mb_list->mbuf = NULL; /* safety clearing */
238 struct mlx4_en_rx_mbuf *mb_list = ring->mbuf + index;
240 mb_list->mbuf = NULL;
296 ring->mbuf + ring->actual_size);
316 mlx4_en_free_buf(ring, ring->mbuf + index);
409 ring->mbuf = kzalloc(tmp, GFP_KERNEL);
410 if (ring->mbuf == NULL) {
421 &ring->mbuf[x].dma_map);
425 ring->mbuf[x].dma_map);
430 ring->mbuf, tmp);
451 ring->mbuf[x].dma_map);
455 vfree(ring->mbuf);
556 bus_dmamap_destroy(ring->dma_tag, ring->mbuf[x].dma_map);
557 /* free spare mbuf, if any */
558 if (ring->spare.mbuf != NULL) {
562 m_freem(ring->spare.mbuf);
565 vfree(ring->mbuf);
586 static void validate_loopback(struct mlx4_en_priv *priv, struct mbuf *mb)
622 static struct mbuf *
628 struct mbuf *mb_head;
630 struct mbuf *mb;
645 bcopy(mtod(mb_list->mbuf, caddr_t), mtod(mb, caddr_t), length);
650 /* get mbuf */
651 mb = mb_list->mbuf;
679 /* rewind to first mbuf in chain */
745 struct mbuf *mb;
769 mb_list = ring->mbuf + index;