Lines Matching refs:dcb_buf
333 struct lan966x_tx_dcb_buf *dcb_buf; in lan966x_fdma_tx_clear_buf() local
345 dcb_buf = &tx->dcbs_buf[i]; in lan966x_fdma_tx_clear_buf()
347 if (!dcb_buf->used) in lan966x_fdma_tx_clear_buf()
354 dcb_buf->dev->stats.tx_packets++; in lan966x_fdma_tx_clear_buf()
355 dcb_buf->dev->stats.tx_bytes += dcb_buf->len; in lan966x_fdma_tx_clear_buf()
357 dcb_buf->used = false; in lan966x_fdma_tx_clear_buf()
358 if (dcb_buf->use_skb) { in lan966x_fdma_tx_clear_buf()
360 dcb_buf->dma_addr, in lan966x_fdma_tx_clear_buf()
361 dcb_buf->len, in lan966x_fdma_tx_clear_buf()
364 if (!dcb_buf->ptp) in lan966x_fdma_tx_clear_buf()
365 napi_consume_skb(dcb_buf->data.skb, weight); in lan966x_fdma_tx_clear_buf()
367 if (dcb_buf->xdp_ndo) in lan966x_fdma_tx_clear_buf()
369 dcb_buf->dma_addr, in lan966x_fdma_tx_clear_buf()
370 dcb_buf->len, in lan966x_fdma_tx_clear_buf()
373 if (dcb_buf->xdp_ndo) in lan966x_fdma_tx_clear_buf()
374 xdp_return_frame_bulk(dcb_buf->data.xdpf, &bq); in lan966x_fdma_tx_clear_buf()
377 dcb_buf->data.page); in lan966x_fdma_tx_clear_buf()
573 struct lan966x_tx_dcb_buf *dcb_buf; in lan966x_fdma_get_next_dcb() local
578 dcb_buf = &tx->dcbs_buf[i]; in lan966x_fdma_get_next_dcb()
579 if (!dcb_buf->used && in lan966x_fdma_get_next_dcb()