Lines Matching refs:tx_skbuff_dma

1495 	if (tx_q->tx_skbuff_dma[i].buf &&  in stmmac_free_tx_buffer()
1496 tx_q->tx_skbuff_dma[i].buf_type != STMMAC_TXBUF_T_XDP_TX) { in stmmac_free_tx_buffer()
1497 if (tx_q->tx_skbuff_dma[i].map_as_page) in stmmac_free_tx_buffer()
1499 tx_q->tx_skbuff_dma[i].buf, in stmmac_free_tx_buffer()
1500 tx_q->tx_skbuff_dma[i].len, in stmmac_free_tx_buffer()
1504 tx_q->tx_skbuff_dma[i].buf, in stmmac_free_tx_buffer()
1505 tx_q->tx_skbuff_dma[i].len, in stmmac_free_tx_buffer()
1510 (tx_q->tx_skbuff_dma[i].buf_type == STMMAC_TXBUF_T_XDP_TX || in stmmac_free_tx_buffer()
1511 tx_q->tx_skbuff_dma[i].buf_type == STMMAC_TXBUF_T_XDP_NDO)) { in stmmac_free_tx_buffer()
1516 if (tx_q->tx_skbuff_dma[i].buf_type == STMMAC_TXBUF_T_XSK_TX) in stmmac_free_tx_buffer()
1520 tx_q->tx_skbuff_dma[i].buf_type == STMMAC_TXBUF_T_SKB) { in stmmac_free_tx_buffer()
1525 tx_q->tx_skbuff_dma[i].buf = 0; in stmmac_free_tx_buffer()
1526 tx_q->tx_skbuff_dma[i].map_as_page = false; in stmmac_free_tx_buffer()
1791 tx_q->tx_skbuff_dma[i].buf = 0; in __init_dma_tx_desc_rings()
1792 tx_q->tx_skbuff_dma[i].map_as_page = false; in __init_dma_tx_desc_rings()
1793 tx_q->tx_skbuff_dma[i].len = 0; in __init_dma_tx_desc_rings()
1794 tx_q->tx_skbuff_dma[i].last_segment = false; in __init_dma_tx_desc_rings()
1966 kfree(tx_q->tx_skbuff_dma); in __free_dma_tx_desc_resources()
2108 tx_q->tx_skbuff_dma = kcalloc(dma_conf->dma_tx_size, in __alloc_dma_tx_desc_resources()
2109 sizeof(*tx_q->tx_skbuff_dma), in __alloc_dma_tx_desc_resources()
2111 if (!tx_q->tx_skbuff_dma) in __alloc_dma_tx_desc_resources()
2445 tx_q->tx_skbuff_dma[entry].buf_type = STMMAC_TXBUF_T_XSK_TX; in stmmac_xdp_xmit_zc()
2451 tx_q->tx_skbuff_dma[entry].buf = 0; in stmmac_xdp_xmit_zc()
2454 tx_q->tx_skbuff_dma[entry].map_as_page = false; in stmmac_xdp_xmit_zc()
2455 tx_q->tx_skbuff_dma[entry].len = xdp_desc.len; in stmmac_xdp_xmit_zc()
2456 tx_q->tx_skbuff_dma[entry].last_segment = true; in stmmac_xdp_xmit_zc()
2457 tx_q->tx_skbuff_dma[entry].is_jumbo = false; in stmmac_xdp_xmit_zc()
2542 if (tx_q->tx_skbuff_dma[entry].buf_type == STMMAC_TXBUF_T_XDP_TX || in stmmac_tx_clean()
2543 tx_q->tx_skbuff_dma[entry].buf_type == STMMAC_TXBUF_T_XDP_NDO) { in stmmac_tx_clean()
2546 } else if (tx_q->tx_skbuff_dma[entry].buf_type == STMMAC_TXBUF_T_SKB) { in stmmac_tx_clean()
2590 if (likely(tx_q->tx_skbuff_dma[entry].buf && in stmmac_tx_clean()
2591 tx_q->tx_skbuff_dma[entry].buf_type != STMMAC_TXBUF_T_XDP_TX)) { in stmmac_tx_clean()
2592 if (tx_q->tx_skbuff_dma[entry].map_as_page) in stmmac_tx_clean()
2594 tx_q->tx_skbuff_dma[entry].buf, in stmmac_tx_clean()
2595 tx_q->tx_skbuff_dma[entry].len, in stmmac_tx_clean()
2599 tx_q->tx_skbuff_dma[entry].buf, in stmmac_tx_clean()
2600 tx_q->tx_skbuff_dma[entry].len, in stmmac_tx_clean()
2602 tx_q->tx_skbuff_dma[entry].buf = 0; in stmmac_tx_clean()
2603 tx_q->tx_skbuff_dma[entry].len = 0; in stmmac_tx_clean()
2604 tx_q->tx_skbuff_dma[entry].map_as_page = false; in stmmac_tx_clean()
2609 tx_q->tx_skbuff_dma[entry].last_segment = false; in stmmac_tx_clean()
2610 tx_q->tx_skbuff_dma[entry].is_jumbo = false; in stmmac_tx_clean()
2613 tx_q->tx_skbuff_dma[entry].buf_type == STMMAC_TXBUF_T_XDP_TX) { in stmmac_tx_clean()
2619 tx_q->tx_skbuff_dma[entry].buf_type == STMMAC_TXBUF_T_XDP_NDO) { in stmmac_tx_clean()
2624 if (tx_q->tx_skbuff_dma[entry].buf_type == STMMAC_TXBUF_T_XSK_TX) in stmmac_tx_clean()
2627 if (tx_q->tx_skbuff_dma[entry].buf_type == STMMAC_TXBUF_T_SKB) { in stmmac_tx_clean()
4164 tx_q->tx_skbuff_dma[first_entry].buf = des; in stmmac_tso_xmit()
4165 tx_q->tx_skbuff_dma[first_entry].len = skb_headlen(skb); in stmmac_tso_xmit()
4166 tx_q->tx_skbuff_dma[first_entry].map_as_page = false; in stmmac_tso_xmit()
4167 tx_q->tx_skbuff_dma[first_entry].buf_type = STMMAC_TXBUF_T_SKB; in stmmac_tso_xmit()
4200 tx_q->tx_skbuff_dma[tx_q->cur_tx].buf = des; in stmmac_tso_xmit()
4201 tx_q->tx_skbuff_dma[tx_q->cur_tx].len = skb_frag_size(frag); in stmmac_tso_xmit()
4202 tx_q->tx_skbuff_dma[tx_q->cur_tx].map_as_page = true; in stmmac_tso_xmit()
4203 tx_q->tx_skbuff_dma[tx_q->cur_tx].buf_type = STMMAC_TXBUF_T_SKB; in stmmac_tso_xmit()
4206 tx_q->tx_skbuff_dma[tx_q->cur_tx].last_segment = true; in stmmac_tso_xmit()
4210 tx_q->tx_skbuff_dma[tx_q->cur_tx].buf_type = STMMAC_TXBUF_T_SKB; in stmmac_tso_xmit()
4272 1, tx_q->tx_skbuff_dma[first_entry].last_segment, in stmmac_tso_xmit()
4410 tx_q->tx_skbuff_dma[entry].buf = des; in stmmac_xmit()
4414 tx_q->tx_skbuff_dma[entry].map_as_page = true; in stmmac_xmit()
4415 tx_q->tx_skbuff_dma[entry].len = len; in stmmac_xmit()
4416 tx_q->tx_skbuff_dma[entry].last_segment = last_segment; in stmmac_xmit()
4417 tx_q->tx_skbuff_dma[entry].buf_type = STMMAC_TXBUF_T_SKB; in stmmac_xmit()
4426 tx_q->tx_skbuff_dma[entry].buf_type = STMMAC_TXBUF_T_SKB; in stmmac_xmit()
4504 tx_q->tx_skbuff_dma[first_entry].buf = des; in stmmac_xmit()
4505 tx_q->tx_skbuff_dma[first_entry].buf_type = STMMAC_TXBUF_T_SKB; in stmmac_xmit()
4506 tx_q->tx_skbuff_dma[first_entry].map_as_page = false; in stmmac_xmit()
4510 tx_q->tx_skbuff_dma[first_entry].len = nopaged_len; in stmmac_xmit()
4511 tx_q->tx_skbuff_dma[first_entry].last_segment = last_segment; in stmmac_xmit()
4717 tx_q->tx_skbuff_dma[entry].buf_type = STMMAC_TXBUF_T_XDP_NDO; in stmmac_xdp_xmit_xdpf()
4726 tx_q->tx_skbuff_dma[entry].buf_type = STMMAC_TXBUF_T_XDP_TX; in stmmac_xdp_xmit_xdpf()
4729 tx_q->tx_skbuff_dma[entry].buf = dma_addr; in stmmac_xdp_xmit_xdpf()
4730 tx_q->tx_skbuff_dma[entry].map_as_page = false; in stmmac_xdp_xmit_xdpf()
4731 tx_q->tx_skbuff_dma[entry].len = xdpf->len; in stmmac_xdp_xmit_xdpf()
4732 tx_q->tx_skbuff_dma[entry].last_segment = true; in stmmac_xdp_xmit_xdpf()
4733 tx_q->tx_skbuff_dma[entry].is_jumbo = false; in stmmac_xdp_xmit_xdpf()