Lines Matching refs:frag
120 struct net_buf *frag; in net_pkt_get_nbfrags() local
123 for (frag = pkt->buffer; frag; frag = frag->frags) { in net_pkt_get_nbfrags()
132 struct net_buf *frag, *pinned; in dwmac_send() local
146 frag = pkt->buffer; in dwmac_send()
159 pinned = net_buf_clone(frag, TX_AVAIL_WAIT); in dwmac_send()
168 frag->data, pinned->data, pinned->len); in dwmac_send()
171 if (!frag->frags) { in dwmac_send()
188 frag = frag->frags; in dwmac_send()
189 } while (frag); in dwmac_send()
206 frag = p->tx_frags[d_idx]; in dwmac_send()
207 net_pkt_frag_unref(frag); in dwmac_send()
217 struct net_buf *frag; in dwmac_tx_release() local
238 frag = p->tx_frags[d_idx]; in dwmac_tx_release()
239 LOG_DBG("unref frag %p", frag->data); in dwmac_tx_release()
240 net_pkt_frag_unref(frag); in dwmac_tx_release()
257 struct net_buf *frag; in dwmac_receive() local
304 frag = p->rx_frags[d_idx]; in dwmac_receive()
307 frag->len = bytes_so_far - p->rx_bytes; in dwmac_receive()
309 net_pkt_frag_add(p->rx_pkt, frag); in dwmac_receive()
334 struct net_buf *frag; in dwmac_rx_refill_thread() local
359 frag = p->rx_frags[d_idx]; in dwmac_rx_refill_thread()
362 if (!frag) { in dwmac_rx_refill_thread()
363 frag = net_pkt_get_reserve_rx_data(RX_FRAG_SIZE, K_FOREVER); in dwmac_rx_refill_thread()
364 if (!frag) { in dwmac_rx_refill_thread()
369 LOG_DBG("new frag[%d] at %p", d_idx, frag->data); in dwmac_rx_refill_thread()
370 __ASSERT(frag->size == RX_FRAG_SIZE, ""); in dwmac_rx_refill_thread()
371 sys_cache_data_invd_range(frag->data, frag->size); in dwmac_rx_refill_thread()
372 p->rx_frags[d_idx] = frag; in dwmac_rx_refill_thread()
374 LOG_DBG("reusing frag[%d] at %p", d_idx, frag->data); in dwmac_rx_refill_thread()
378 d->des0 = phys_lo32(frag->data); in dwmac_rx_refill_thread()
379 d->des1 = phys_hi32(frag->data); in dwmac_rx_refill_thread()