Lines Matching refs:hn_tx_ring

184 	((sc)->hn_tx_ring[0].hn_csum_assist & HN_CSUM_IP_MASK)
186 ((sc)->hn_tx_ring[0].hn_csum_assist & HN_CSUM_IP6_MASK)
211 struct hn_tx_ring *txr;
370 struct hn_tx_ring *);
413 static void hn_tx_ring_destroy(struct hn_tx_ring *);
419 static void hn_txdesc_gc(struct hn_tx_ring *,
421 static int hn_encap(if_t, struct hn_tx_ring *,
423 static int hn_txpkt(if_t, struct hn_tx_ring *,
427 static bool hn_tx_ring_pending(struct hn_tx_ring *);
428 static void hn_tx_ring_qflush(struct hn_tx_ring *);
432 struct hn_tx_ring *, struct hn_txdesc *,
434 static int hn_get_txswq_depth(const struct hn_tx_ring *);
438 static int hn_txpkt_sglist(struct hn_tx_ring *,
440 static int hn_txpkt_chim(struct hn_tx_ring *,
442 static int hn_xmit(struct hn_tx_ring *, int);
444 static void hn_xmit_txeof(struct hn_tx_ring *);
447 static int hn_start_locked(struct hn_tx_ring *, int);
449 static void hn_start_txeof(struct hn_tx_ring *);
670 hn_txpkt_sglist(struct hn_tx_ring *txr, struct hn_txdesc *txd) in hn_txpkt_sglist()
680 hn_txpkt_chim(struct hn_tx_ring *txr, struct hn_txdesc *txd) in hn_txpkt_chim()
1020 struct hn_tx_ring *txr = &sc->hn_tx_ring[i]; in hn_set_txagg()
1031 hn_get_txswq_depth(const struct hn_tx_ring *txr) in hn_get_txswq_depth()
2379 int qdepth = hn_get_txswq_depth(&sc->hn_tx_ring[0]); in hn_attach()
2401 if_sethwassist(ifp, sc->hn_tx_ring[0].hn_csum_assist); in hn_attach()
2652 hn_txdesc_dmamap_load(struct hn_tx_ring *txr, struct hn_txdesc *txd, in hn_txdesc_dmamap_load()
2684 hn_txdesc_put(struct hn_tx_ring *txr, struct hn_txdesc *txd) in hn_txdesc_put()
2761 hn_txdesc_get(struct hn_tx_ring *txr) in hn_txdesc_get()
2824 hn_tx_ring_pending(struct hn_tx_ring *txr) in hn_tx_ring_pending()
2841 hn_txeof(struct hn_tx_ring *txr) in hn_txeof()
2852 struct hn_tx_ring *txr; in hn_txpkt_done()
2871 hn_chan_rollup(struct hn_rx_ring *rxr, struct hn_tx_ring *txr) in hn_chan_rollup()
2934 hn_flush_txagg(if_t ifp, struct hn_tx_ring *txr) in hn_flush_txagg()
2975 hn_try_txagg(if_t ifp, struct hn_tx_ring *txr, struct hn_txdesc *txd, in hn_try_txagg()
3048 hn_encap(if_t ifp, struct hn_tx_ring *txr, struct hn_txdesc *txd, in hn_encap()
3261 hn_txpkt(if_t ifp, struct hn_tx_ring *txr, struct hn_txdesc *txd) in hn_txpkt()
3819 if (sc->hn_tx_ring[0].hn_chim_size > sc->hn_chim_szmax) in hn_ioctl()
4092 sc->hn_tx_ring[i].hn_oactive = 0; in hn_stop()
4122 sc->hn_tx_ring[i].hn_oactive = 0; in hn_init_locked()
4238 chim_size = sc->hn_tx_ring[0].hn_chim_size; in hn_chim_size_sysctl()
4309 struct hn_tx_ring *txr; in hn_tx_stat_ulong_sysctl()
4314 txr = &sc->hn_tx_ring[i]; in hn_tx_stat_ulong_sysctl()
4324 txr = &sc->hn_tx_ring[i]; in hn_tx_stat_ulong_sysctl()
4335 struct hn_tx_ring *txr; in hn_tx_conf_int_sysctl()
4337 txr = &sc->hn_tx_ring[0]; in hn_tx_conf_int_sysctl()
4346 txr = &sc->hn_tx_ring[i]; in hn_tx_conf_int_sysctl()
4398 pkts = sc->hn_tx_ring[0].hn_agg_pktmax; in hn_txagg_pktmax_sysctl()
4408 align = sc->hn_tx_ring[0].hn_agg_align; in hn_txagg_align_sysctl()
4994 rxr->hn_txr = &sc->hn_tx_ring[i]; in hn_create_rx_data()
5169 struct hn_tx_ring *txr = &sc->hn_tx_ring[id]; in hn_tx_ring_create()
5369 struct hn_tx_ring *txr = txd->txr; in hn_txdesc_dmamap_destroy()
5381 hn_txdesc_gc(struct hn_tx_ring *txr, struct hn_txdesc *txd) in hn_txdesc_gc()
5397 hn_tx_ring_destroy(struct hn_tx_ring *txr) in hn_tx_ring_destroy()
5462 sc->hn_tx_ring = malloc(sizeof(struct hn_tx_ring) * sc->hn_tx_ring_cnt, in hn_create_tx_data()
5482 __offsetof(struct hn_tx_ring, hn_no_txdescs), in hn_create_tx_data()
5486 __offsetof(struct hn_tx_ring, hn_send_failed), in hn_create_tx_data()
5490 __offsetof(struct hn_tx_ring, hn_txdma_failed), in hn_create_tx_data()
5494 __offsetof(struct hn_tx_ring, hn_flush_failed), in hn_create_tx_data()
5499 __offsetof(struct hn_tx_ring, hn_tx_collapsed), in hn_create_tx_data()
5503 __offsetof(struct hn_tx_ring, hn_tx_chimney), in hn_create_tx_data()
5507 __offsetof(struct hn_tx_ring, hn_tx_chimney_tried), in hn_create_tx_data()
5510 CTLFLAG_RD, &sc->hn_tx_ring[0].hn_txdesc_cnt, 0, in hn_create_tx_data()
5520 __offsetof(struct hn_tx_ring, hn_direct_tx_size), in hn_create_tx_data()
5525 __offsetof(struct hn_tx_ring, hn_sched_tx), in hn_create_tx_data()
5534 CTLFLAG_RD, &sc->hn_tx_ring[0].hn_agg_szmax, 0, in hn_create_tx_data()
5554 sc->hn_tx_ring[i].hn_chim_size = chim_size; in hn_set_chim_size()
5617 sc->hn_tx_ring[i].hn_csum_assist = csum_assist; in hn_fixup_tx_data()
5626 sc->hn_tx_ring[i].hn_tx_flags |= HN_TX_FLAG_HASHVAL; in hn_fixup_tx_data()
5661 hn_tx_ring_destroy(&sc->hn_tx_ring[i]); in hn_destroy_tx_data()
5663 free(sc->hn_tx_ring, M_DEVBUF); in hn_destroy_tx_data()
5664 sc->hn_tx_ring = NULL; in hn_destroy_tx_data()
5675 struct hn_tx_ring *txr = xtxr; in hn_start_taskfunc()
5683 hn_start_locked(struct hn_tx_ring *txr, int len) in hn_start_locked()
5691 KASSERT(txr == &sc->hn_tx_ring[0], ("not the first TX ring")); in hn_start_locked()
5797 struct hn_tx_ring *txr = &sc->hn_tx_ring[0]; in hn_start()
5817 struct hn_tx_ring *txr = xtxr; in hn_start_txeof_taskfunc()
5826 hn_start_txeof(struct hn_tx_ring *txr) in hn_start_txeof()
5831 KASSERT(txr == &sc->hn_tx_ring[0], ("not the first TX ring")); in hn_start_txeof()
5862 hn_xmit(struct hn_tx_ring *txr, int len) in hn_xmit()
5958 struct hn_tx_ring *txr; in hn_transmit()
6070 txr = &sc->hn_tx_ring[idx]; in hn_transmit()
6098 hn_tx_ring_qflush(struct hn_tx_ring *txr) in hn_tx_ring_qflush()
6116 hn_tx_ring_qflush(&sc->hn_tx_ring[i]); in hn_xmit_qflush()
6126 hn_xmit_txeof(struct hn_tx_ring *txr) in hn_xmit_txeof()
6158 struct hn_tx_ring *txr = xtxr; in hn_xmit_taskfunc()
6168 struct hn_tx_ring *txr = xtxr; in hn_xmit_txeof_taskfunc()
6181 struct hn_tx_ring *txr = NULL; in hn_chan_attach()
6204 txr = &sc->hn_tx_ring[idx]; in hn_chan_attach()
6260 struct hn_tx_ring *txr = &sc->hn_tx_ring[idx]; in hn_chan_detach()
6350 KASSERT((sc->hn_tx_ring[i].hn_tx_flags & in hn_detach_allchans()
6779 struct hn_tx_ring *txr; in hn_suspend_data()
6788 txr = &sc->hn_tx_ring[i]; in hn_suspend_data()
6825 txr = &sc->hn_tx_ring[i]; in hn_suspend_data()
6888 struct hn_tx_ring *txr = &sc->hn_tx_ring[i]; in hn_resume_tx()
6924 hn_tx_ring_qflush(&sc->hn_tx_ring[i]); in hn_resume_data()
6931 struct hn_tx_ring *txr = &sc->hn_tx_ring[i]; in hn_resume_data()