Home
last modified time | relevance | path

Searched refs:txq (Results 1 – 25 of 35) sorted by relevance

12

/openbsd/sys/dev/pci/
H A Dif_nfe.c578 (caddr_t)&sc->txq.desc32[start] - (caddr_t)sc->txq.desc32, in nfe_txdesc32_rsync()
599 (caddr_t)&sc->txq.desc64[start] - (caddr_t)sc->txq.desc64, in nfe_txdesc64_rsync()
786 while (sc->txq.next != sc->txq.cur) { in nfe_txeof()
788 desc64 = &sc->txq.desc64[sc->txq.next]; in nfe_txeof()
793 desc32 = &sc->txq.desc32[sc->txq.next]; in nfe_txeof()
802 data = &sc->txq.data[sc->txq.next]; in nfe_txeof()
840 sc->txq.next = (sc->txq.next + 1) % NFE_TX_RING_COUNT; in nfe_txeof()
885 data = &sc->txq.data[sc->txq.cur]; in nfe_encap()
888 desc64 = &sc->txq.desc64[sc->txq.cur]; in nfe_encap()
899 desc32 = &sc->txq.desc32[sc->txq.cur]; in nfe_encap()
[all …]
H A Dif_iwi.c1132 for (; txq->next != hw;) { in iwi_tx_intr()
1133 data = &txq->data[txq->next]; in iwi_tx_intr()
1141 txq->queued--; in iwi_tx_intr()
1142 txq->next = (txq->next + 1) % IWI_TX_RING_COUNT; in iwi_tx_intr()
1192 iwi_tx_intr(sc, &sc->txq[0]); in iwi_intr()
1258 struct iwi_tx_ring *txq = &sc->txq[0]; in iwi_tx_start() local
1286 data = &txq->data[txq->cur]; in iwi_tx_start()
1287 desc = &txq->desc[txq->cur]; in iwi_tx_start()
1370 txq->queued++; in iwi_tx_start()
1371 txq->cur = (txq->cur + 1) % IWI_TX_RING_COUNT; in iwi_tx_start()
[all …]
H A Dif_iwn.c2353 txq = &sc->txq[qid]; in iwn_rx_compressed_ba()
2533 "idx=%d\n", __func__, txq->cur, txq->read, txq->queued, qid, idx)); in iwn_ampdu_txq_advance()
2536 struct iwn_tx_data *txdata = &txq->data[txq->read]; in iwn_ampdu_txq_advance()
2540 txq->queued--; in iwn_ampdu_txq_advance()
2542 txq->read = (txq->read + 1) % IWN_TX_RING_COUNT; in iwn_ampdu_txq_advance()
3368 ring = &sc->txq[qid]; in iwn_tx()
5998 sc->txq[qid].cur = sc->txq[qid].read = idx; in iwn4965_ampdu_tx_start()
6029 sc->txq[qid].cur = sc->txq[qid].read = idx; in iwn4965_ampdu_tx_stop()
6064 sc->txq[qid].cur = sc->txq[qid].read = idx; in iwn5000_ampdu_tx_start()
6094 sc->txq[qid].cur = sc->txq[qid].read = idx; in iwn5000_ampdu_tx_stop()
[all …]
H A Dif_ice.c9186 txq->tx_rs_cidx = txq->tx_rs_pidx = 0; in ice_init_tx_tracking()
9193 txq->tx_cidx_processed = txq->desc_count - 1; in ice_init_tx_tracking()
10505 sc->sc_dev.dv_xname, i, txq->tc, txq->q_handle, in ice_cfg_vsi_for_tx()
13020 iv->iv_txq = txq; in ice_up()
13021 txq->irqv = iv; in ice_up()
26417 free(txq->tx_map, M_DEVBUF, txq->desc_count * sizeof(*map)); in ice_free_tx_queues()
26458 txq->tx_base = ice_alloc_dma_mem(&sc->hw, &txq->tx_desc_mem, in ice_tx_queues_alloc()
26466 txq->tx_paddr = txq->tx_desc_mem.pa; in ice_tx_queues_alloc()
26527 txq->me = txq->q_handle = i; in ice_tx_queues_alloc()
26528 txq->vsi = vsi; in ice_tx_queues_alloc()
[all …]
H A Dif_nfevar.h78 struct nfe_tx_ring txq; member
H A Dif_iwivar.h99 struct iwi_tx_ring txq[4]; member
H A Dif_rge.c423 struct rge_txq *txq; in rge_encap() local
431 txq = &q->q_tx.rge_txq[idx]; in rge_encap()
432 txmap = txq->txq_dmamap; in rge_encap()
497 txq->txq_mbuf = m; in rge_encap()
498 txq->txq_descidx = cur; in rge_encap()
1380 struct rge_txq *txq; in rge_txeof() local
1390 txq = &q->q_tx.rge_txq[idx]; in rge_txeof()
1391 cur = txq->txq_descidx; in rge_txeof()
1401 bus_dmamap_sync(sc->sc_dmat, txq->txq_dmamap, 0, in rge_txeof()
1404 m_freem(txq->txq_mbuf); in rge_txeof()
[all …]
H A Dif_wpivar.h154 struct wpi_tx_ring txq[WPI_NTXQUEUES]; member
H A Dif_iavf.c234 struct iavf_vc_txq_info txq; member
1056 struct iavf_vc_txq_info *txq; in iavf_config_vsi_queues() local
1078 txq = &config->qpair[i].txq; in iavf_config_vsi_queues()
1079 txq->vsi_id = htole16(sc->sc_vsi_id); in iavf_config_vsi_queues()
1080 txq->queue_id = htole16(i); in iavf_config_vsi_queues()
1081 txq->ring_len = sc->sc_tx_ring_ndescs; in iavf_config_vsi_queues()
1082 txq->headwb_ena = 0; in iavf_config_vsi_queues()
1083 htolem64(&txq->dma_ring_addr, IAVF_DMA_DVA(&txr->txr_mem)); in iavf_config_vsi_queues()
1084 txq->dma_headwb_addr = 0; in iavf_config_vsi_queues()
H A Dif_iwnvar.h254 struct iwn_tx_ring txq[IWN5000_NTXQUEUES]; member
H A Dif_ixl.c2679 struct ixl_hmc_txq txq; in ixl_txr_config() local
2683 memset(&txq, 0, sizeof(txq)); in ixl_txr_config()
2684 txq.head = htole16(0); in ixl_txr_config()
2685 txq.new_context = 1; in ixl_txr_config()
2686 htolem64(&txq.base, in ixl_txr_config()
2688 txq.head_wb_ena = IXL_HMC_TXQ_DESC_WB; in ixl_txr_config()
2689 htolem16(&txq.qlen, sc->sc_tx_ring_ndescs); in ixl_txr_config()
2690 txq.tphrdesc_ena = 0; in ixl_txr_config()
2691 txq.tphrpacket_ena = 0; in ixl_txr_config()
2692 txq.tphwdesc_ena = 0; in ixl_txr_config()
[all …]
/openbsd/sys/dev/ic/
H A Drt2560.c884 &sc->txq.desc[sc->txq.next_encrypt]; in rt2560_encryption_intr()
924 struct rt2560_tx_desc *desc = &sc->txq.desc[sc->txq.next]; in rt2560_tx_intr()
925 struct rt2560_tx_data *data = &sc->txq.data[sc->txq.next]; in rt2560_tx_intr()
987 sc->txq.next = (sc->txq.next + 1) % RT2560_TX_RING_COUNT; in rt2560_tx_intr()
1688 struct rt2560_tx_ring *txq = &sc->txq; in rt2560_tx_data() local
1772 desc = &txq->desc[txq->cur_encrypt]; in rt2560_tx_data()
1773 data = &txq->data[txq->cur_encrypt]; in rt2560_tx_data()
1803 if (++txq->cur_encrypt >= txq->count) in rt2560_tx_data()
1809 data = &txq->data[txq->cur_encrypt]; in rt2560_tx_data()
1810 desc = &txq->desc[txq->cur_encrypt]; in rt2560_tx_data()
[all …]
H A Drt2661.c1106 struct rt2661_tx_desc *desc = &txq->desc[txq->next]; in rt2661_tx_dma_intr()
1107 struct rt2661_tx_data *data = &txq->data[txq->next]; in rt2661_tx_dma_intr()
1135 if (++txq->next >= txq->count) /* faster than % count */ in rt2661_tx_dma_intr()
1687 struct rt2661_tx_ring *txq = &sc->txq[ac]; in rt2661_tx_data() local
1771 desc = &txq->desc[txq->cur]; in rt2661_tx_data()
1772 data = &txq->data[txq->cur]; in rt2661_tx_data()
1803 txq->cur = (txq->cur + 1) % RT2661_TX_RING_COUNT; in rt2661_tx_data()
1808 data = &txq->data[txq->cur]; in rt2661_tx_data()
1809 desc = &txq->desc[txq->cur]; in rt2661_tx_data()
1890 txq->queued++; in rt2661_tx_data()
[all …]
H A Dre.c1452 struct rl_txq *txq; in re_txeof() local
1462 txq = &sc->rl_ldata.rl_txq[cons]; in re_txeof()
1464 idx = txq->txq_descidx; in re_txeof()
1473 bus_dmamap_sync(sc->sc_dmat, txq->txq_dmamap, in re_txeof()
1476 m_freem(txq->txq_mbuf); in re_txeof()
1477 txq->txq_mbuf = NULL; in re_txeof()
1614 struct rl_txq *txq; in re_encap() local
1675 txq = &sc->rl_ldata.rl_txq[idx]; in re_encap()
1676 map = txq->txq_dmamap; in re_encap()
1797 txq->txq_mbuf = m; in re_encap()
[all …]
H A Dar9003.c1076 struct athn_txq *txq; in ar9003_tx_process() local
1096 txq = &sc->txq[qid]; in ar9003_tx_process()
1098 bf = SIMPLEQ_FIRST(&txq->head); in ar9003_tx_process()
1099 if (bf == NULL || bf == txq->wait) { in ar9003_tx_process()
1152 if (--txq->queued < AR9003_TX_QDEPTH && txq->wait != NULL) { in ar9003_tx_process()
1155 txq->wait = SIMPLEQ_NEXT(txq->wait, bf_list); in ar9003_tx_process()
1400 struct athn_txq *txq; in ar9003_tx() local
1454 txq = &sc->txq[qid]; in ar9003_tx()
1761 if (++txq->queued <= AR9003_TX_QDEPTH) { in ar9003_tx()
1764 } else if (txq->wait == NULL) in ar9003_tx()
[all …]
H A Drt2560var.h127 struct rt2560_tx_ring txq; member
H A Drt2661var.h139 struct rt2661_tx_ring txq[5]; member
H A Dar5008.c1105 struct athn_txq *txq = &sc->txq[qid]; in ar5008_tx_process() local
1113 bf = SIMPLEQ_FIRST(&txq->head); in ar5008_tx_process()
1122 SIMPLEQ_REMOVE_HEAD(&txq->head, bf_list); in ar5008_tx_process()
1256 SIMPLEQ_EMPTY(&sc->txq[ATHN_QID_CAB].head)) in ar5008_swba_intr()
1481 struct athn_txq *txq; in ar5008_tx() local
1540 txq = &sc->txq[qid]; in ar5008_tx()
1809 if (!SIMPLEQ_EMPTY(&txq->head)) in ar5008_tx()
1810 ((struct ar_tx_desc *)txq->lastds)->ds_link = bf->bf_daddr; in ar5008_tx()
1813 txq->lastds = lastds; in ar5008_tx()
1815 SIMPLEQ_INSERT_TAIL(&txq->head, bf, bf_list); in ar5008_tx()
H A Drt2860var.h135 struct rt2860_tx_ring txq[6]; member
H A Dathn.c1867 struct athn_txq *txq = &sc->txq[qid]; in athn_tx_reclaim() local
1872 while ((bf = SIMPLEQ_FIRST(&txq->head)) != NULL) { in athn_tx_reclaim()
1873 SIMPLEQ_REMOVE_HEAD(&txq->head, bf_list); in athn_tx_reclaim()
1970 SIMPLEQ_INIT(&sc->txq[qid].head); in athn_init_tx_queues()
1971 sc->txq[qid].lastds = NULL; in athn_init_tx_queues()
1972 sc->txq[qid].wait = NULL; in athn_init_tx_queues()
1973 sc->txq[qid].queued = 0; in athn_init_tx_queues()
/openbsd/sys/dev/fdt/
H A Dif_mvpp.c501 txq->id = i; in mvpp2_attach_deferred()
1418 txq->log_id = i; in mvpp2_port_attach()
1730 prod = txq->prod; in mvpp2_start()
1786 txq->buf[first].mb_map = txq->buf[last].mb_map; in mvpp2_start()
2329 txq->descs = MVPP2_DMA_KVA(txq->ring); in mvpp2_aggr_txq_hw_init()
2344 txq->prod = mvpp2_read(sc, MVPP2_AGGR_TXQ_INDEX_REG(txq->id)); in mvpp2_aggr_txq_hw_init()
2359 txq->prod = txq->cons = 0; in mvpp2_txq_hw_init()
2365 txq->descs = MVPP2_DMA_KVA(txq->ring); in mvpp2_txq_hw_init()
2413 mvpp2_tx_pkts_coal_set(sc, txq, txq->done_pkts_coal); in mvpp2_txq_hw_init()
3368 int txq; in mvpp2_txp_max_tx_size_set() local
[all …]
/openbsd/sys/dev/usb/
H A Dif_mtw.c509 struct mtw_tx_ring *txq = &sc->txq[qid]; in mtw_alloc_tx_ring() local
515 txq->cur = txq->queued = 0; in mtw_alloc_tx_ring()
518 &txq->pipeh)) != 0) in mtw_alloc_tx_ring()
550 struct mtw_tx_ring *txq = &sc->txq[qid]; in mtw_free_tx_ring() local
553 if (txq->pipeh != NULL) { in mtw_free_tx_ring()
555 txq->pipeh = NULL; in mtw_free_tx_ring()
560 txq->data[i].xfer = NULL; in mtw_free_tx_ring()
603 txq->data[0].xfer = NULL; in mtw_free_mcu_ring()
2187 struct mtw_tx_ring *txq = &sc->txq[data->qid]; in mtw_txeof() local
2195 txq->queued--; in mtw_txeof()
[all …]
H A Dif_run.c764 struct run_tx_ring *txq = &sc->txq[qid]; in run_alloc_tx_ring() local
772 txq->cur = txq->queued = 0; in run_alloc_tx_ring()
774 error = usbd_open_pipe(sc->sc_iface, txq->pipe_no, 0, &txq->pipeh); in run_alloc_tx_ring()
805 struct run_tx_ring *txq = &sc->txq[qid]; in run_free_tx_ring() local
808 if (txq->pipeh != NULL) { in run_free_tx_ring()
809 usbd_close_pipe(txq->pipeh); in run_free_tx_ring()
810 txq->pipeh = NULL; in run_free_tx_ring()
815 txq->data[i].xfer = NULL; in run_free_tx_ring()
2380 struct run_tx_ring *txq = &sc->txq[data->qid]; in run_txeof() local
2385 txq->queued--; in run_txeof()
[all …]
H A Dif_runvar.h189 struct run_tx_ring txq[4]; member
H A Dif_mtwvar.h220 struct mtw_tx_ring txq[MTW_TXQ_COUNT]; member

12