Lines Matching defs:tx_info
119 struct ena_tx_buffer *tx_info,
156 tx_info->tx_descs = nb_hw_desc;
157 tx_info->total_tx_size = bytes;
158 tx_info->last_jiffies = jiffies;
159 tx_info->print_once = 0;
663 struct ena_tx_buffer *tx_info)
669 ena_buf = tx_info->bufs;
670 cnt = tx_info->num_of_bufs;
675 if (tx_info->map_linear_data) {
704 struct ena_tx_buffer *tx_info = &tx_ring->tx_buffer_info[i];
706 if (!tx_info->skb)
720 ena_unmap_tx_buff(tx_ring, tx_info);
723 xdp_return_frame(tx_info->xdpf);
725 dev_kfree_skb_any(tx_info->skb);
775 struct ena_tx_buffer *tx_info, bool is_xdp)
777 if (tx_info)
781 "tx_info doesn't have valid %s. qid %u req_id %u",
798 struct ena_tx_buffer *tx_info;
800 tx_info = &tx_ring->tx_buffer_info[req_id];
801 if (likely(tx_info->skb))
804 return handle_invalid_req_id(tx_ring, req_id, tx_info, false);
822 struct ena_tx_buffer *tx_info;
838 tx_info = &tx_ring->tx_buffer_info[req_id];
839 skb = tx_info->skb;
844 tx_info->skb = NULL;
845 tx_info->last_jiffies = 0;
847 ena_unmap_tx_buff(tx_ring, tx_info);
853 tx_bytes += tx_info->total_tx_size;
856 total_done += tx_info->tx_descs;
2499 struct ena_tx_buffer *tx_info,
2513 tx_info->skb = skb;
2514 ena_buf = tx_info->bufs;
2557 tx_info->num_of_bufs++;
2558 tx_info->map_linear_data = 1;
2560 tx_info->map_linear_data = 0;
2583 tx_info->num_of_bufs++;
2594 tx_info->skb = NULL;
2596 tx_info->num_of_bufs += i;
2597 ena_unmap_tx_buff(tx_ring, tx_info);
2606 struct ena_tx_buffer *tx_info;
2626 tx_info = &tx_ring->tx_buffer_info[req_id];
2627 tx_info->num_of_bufs = 0;
2629 WARN(tx_info->skb, "SKB isn't NULL req_id %d\n", req_id);
2631 rc = ena_tx_map_skb(tx_ring, tx_info, skb, &push_hdr, &header_len);
2636 ena_tx_ctx.ena_bufs = tx_info->bufs;
2638 ena_tx_ctx.num_bufs = tx_info->num_of_bufs;
2647 tx_info,
2698 ena_unmap_tx_buff(tx_ring, tx_info);
2699 tx_info->skb = NULL;