Home | History | Annotate | Download | only in pci

Lines Matching defs:tx_info

1214 		struct ena_tx_buffer *tx_info = &tx_ring->tx_buffer_info[i];
1216 if (tx_info->mbuf == NULL)
1230 bus_dmamap_unload(adapter->sc_dmat, tx_info->map);
1231 m_free(tx_info->mbuf);
1232 tx_info->mbuf = NULL;
1279 struct ena_tx_buffer *tx_info = NULL;
1283 tx_info = &tx_ring->tx_buffer_info[req_id];
1284 if (tx_info->mbuf != NULL)
1288 if (tx_info->mbuf == NULL)
1290 "tx_info doesn't have valid mbuf\n");
1412 struct ena_tx_buffer *tx_info;
1423 tx_info = &tx_ring->tx_buffer_info[req_id];
1425 mbuf = tx_info->mbuf;
1427 tx_info->mbuf = NULL;
1428 bintime_clear(&tx_info->timestamp);
1430 if (likely(tx_info->num_of_bufs != 0)) {
1432 bus_dmamap_unload(adapter->sc_dmat, tx_info->map);
1440 total_done += tx_info->tx_descs;
2796 struct ena_tx_buffer *tx_info;
2825 tx_info = &tx_ring->tx_buffer_info[req_id];
2827 tx_info->mbuf = *mbuf;
2828 tx_info->num_of_bufs = 0;
2830 ena_buf = tx_info->bufs;
2844 rc = bus_dmamap_load_mbuf(adapter->sc_dmat, tx_info->map,
2847 if (unlikely((rc != 0) || (tx_info->map->dm_nsegs == 0))) {
2850 tx_info->map->dm_nsegs);
2852 tx_info->mbuf = NULL;
2859 for (i = 0; i < tx_info->map->dm_nsegs; i++) {
2860 ena_buf->len = tx_info->map->dm_segs[i].ds_len;
2861 ena_buf->paddr = tx_info->map->dm_segs[i].ds_addr;
2864 tx_info->num_of_bufs = tx_info->map->dm_nsegs;
2867 ena_tx_ctx.ena_bufs = tx_info->bufs;
2869 ena_tx_ctx.num_bufs = tx_info->num_of_bufs;
2893 tx_info->tx_descs = nb_hw_desc;
2894 getbinuptime(&tx_info->timestamp);
2895 tx_info->print_once = true;
2900 bus_dmamap_sync(adapter->sc_dmat, tx_info->map, 0,
2901 tx_info->map->dm_mapsize, BUS_DMASYNC_PREWRITE);
2906 tx_info->mbuf = NULL;
2907 bus_dmamap_unload(adapter->sc_dmat, tx_info->map);