| /openbsd/src/sys/dev/pci/ |
| D | if_nfe.c | 297 if (nfe_alloc_tx_ring(sc, &sc->txq) != 0) { in nfe_attach() 306 nfe_free_tx_ring(sc, &sc->txq); in nfe_attach() 553 bus_dmamap_sync(sc->sc_dmat, sc->txq.map, in nfe_txdesc32_sync() 554 (caddr_t)desc32 - (caddr_t)sc->txq.desc32, in nfe_txdesc32_sync() 561 bus_dmamap_sync(sc->sc_dmat, sc->txq.map, in nfe_txdesc64_sync() 562 (caddr_t)desc64 - (caddr_t)sc->txq.desc64, in nfe_txdesc64_sync() 570 bus_dmamap_sync(sc->sc_dmat, sc->txq.map, in nfe_txdesc32_rsync() 571 (caddr_t)&sc->txq.desc32[start] - (caddr_t)sc->txq.desc32, in nfe_txdesc32_rsync() 572 (caddr_t)&sc->txq.desc32[end] - in nfe_txdesc32_rsync() 573 (caddr_t)&sc->txq.desc32[start], ops); in nfe_txdesc32_rsync() [all …]
|
| D | if_iwi.c | 217 if (iwi_alloc_tx_ring(sc, &sc->txq[ac], ac) != 0) { in iwi_attach() 324 iwi_free_tx_ring(sc, &sc->txq[ac]); in iwi_attach() 1123 iwi_tx_intr(struct iwi_softc *sc, struct iwi_tx_ring *txq) in iwi_tx_intr() argument 1130 hw = CSR_READ_4(sc, txq->csr_ridx); in iwi_tx_intr() 1132 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() 1195 iwi_tx_intr(sc, &sc->txq[1]); in iwi_intr() [all …]
|
| D | if_iwn.c | 443 if ((error = iwn_alloc_tx_ring(sc, &sc->txq[i], i)) != 0) { in iwn_attach() 575 iwn_free_tx_ring(sc, &sc->txq[i]); in iwn_attach() 762 iwn_free_tx_ring(sc, &sc->txq[qid]); in iwn_detach() 2241 struct iwn_tx_ring *txq, uint16_t seq, uint16_t ssn) in iwn_ampdu_rate_control() argument 2253 struct iwn_tx_data *txdata = &txq->data[idx]; in iwn_ampdu_rate_control() 2334 struct iwn_tx_ring *txq; in iwn_rx_compressed_ba() local 2353 txq = &sc->txq[qid]; in iwn_rx_compressed_ba() 2386 iwn_ampdu_rate_control(sc, ni, txq, ba->ba_winstart, ssn); in iwn_rx_compressed_ba() 2394 iwn_ampdu_txq_advance(sc, txq, qid, in iwn_rx_compressed_ba() 2396 iwn_clear_oactive(sc, txq); in iwn_rx_compressed_ba() [all …]
|
| D | if_ice.c | 9180 struct ice_tx_queue *txq; in ice_init_tx_tracking() local 9184 for (i = 0, txq = vsi->tx_queues; i < vsi->num_tx_queues; i++, txq++) { in ice_init_tx_tracking() 9186 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() 9195 for (j = 0; j < txq->desc_count; j++) in ice_init_tx_tracking() 9196 txq->tx_rsq[j] = ICE_QIDX_INVALID; in ice_init_tx_tracking() 9207 ice_setup_tx_ctx(struct ice_tx_queue *txq, struct ice_tlan_ctx *tlan_ctx, in ice_setup_tx_ctx() argument 9210 struct ice_vsi *vsi = txq->vsi; in ice_setup_tx_ctx() 9217 tlan_ctx->qlen = txq->desc_count; in ice_setup_tx_ctx() 9220 tlan_ctx->base = txq->tx_paddr >> 7; in ice_setup_tx_ctx() [all …]
|
| D | if_nfevar.h | 78 struct nfe_tx_ring txq; member
|
| D | if_iwivar.h | 99 struct iwi_tx_ring txq[4]; member
|
| D | if_rge.c | 423 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() 1402 txq->txq_dmamap->dm_mapsize, BUS_DMASYNC_POSTWRITE); in rge_txeof() [all …]
|
| D | if_wpivar.h | 154 struct wpi_tx_ring txq[WPI_NTXQUEUES]; member
|
| D | if_iavf.c | 234 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()
|
| D | if_ixl.c | 2679 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 …]
|
| D | if_iwnvar.h | 254 struct iwn_tx_ring txq[IWN5000_NTXQUEUES]; member
|
| /openbsd/src/sys/dev/ic/ |
| D | rt2560.c | 195 error = rt2560_alloc_tx_ring(sc, &sc->txq, RT2560_TX_RING_COUNT); in rt2560_attach() 294 fail2: rt2560_free_tx_ring(sc, &sc->txq); in rt2560_attach() 310 rt2560_free_tx_ring(sc, &sc->txq); in rt2560_detach() 879 hw = (RAL_READ(sc, RT2560_SECCSR1) - sc->txq.physaddr) / in rt2560_encryption_intr() 882 for (; sc->txq.next_encrypt != hw;) { in rt2560_encryption_intr() 884 &sc->txq.desc[sc->txq.next_encrypt]; in rt2560_encryption_intr() 886 bus_dmamap_sync(sc->sc_dmat, sc->txq.map, in rt2560_encryption_intr() 887 sc->txq.next_encrypt * RT2560_TX_DESC_SIZE, in rt2560_encryption_intr() 902 bus_dmamap_sync(sc->sc_dmat, sc->txq.map, in rt2560_encryption_intr() 903 sc->txq.next_encrypt * RT2560_TX_DESC_SIZE, in rt2560_encryption_intr() [all …]
|
| D | rt2661.c | 228 error = rt2661_alloc_tx_ring(sc, &sc->txq[ac], in rt2661_attach() 257 rt2661_free_tx_ring(sc, &sc->txq[ac]); in rt2661_attach() 389 rt2661_free_tx_ring(sc, &sc->txq[ac]); in rt2661_detach() 1100 rt2661_tx_dma_intr(struct rt2661_softc *sc, struct rt2661_tx_ring *txq) in rt2661_tx_dma_intr() argument 1106 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() 1109 bus_dmamap_sync(sc->sc_dmat, txq->map, in rt2661_tx_dma_intr() 1110 txq->next * RT2661_TX_DESC_SIZE, RT2661_TX_DESC_SIZE, in rt2661_tx_dma_intr() 1120 bus_dmamap_sync(sc->sc_dmat, txq->map, in rt2661_tx_dma_intr() 1121 txq->next * RT2661_TX_DESC_SIZE, RT2661_TX_DESC_SIZE, in rt2661_tx_dma_intr() [all …]
|
| D | re.c | 1452 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() 1474 0, txq->txq_dmamap->dm_mapsize, BUS_DMASYNC_POSTWRITE); in re_txeof() 1475 bus_dmamap_unload(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() [all …]
|
| D | ar9003.c | 1076 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() 1103 SIMPLEQ_REMOVE_HEAD(&txq->head, bf_list); in ar9003_tx_process() 1152 if (--txq->queued < AR9003_TX_QDEPTH && txq->wait != NULL) { in ar9003_tx_process() 1153 AR_WRITE(sc, AR_QTXDP(qid), txq->wait->bf_daddr); in ar9003_tx_process() 1155 txq->wait = SIMPLEQ_NEXT(txq->wait, bf_list); in ar9003_tx_process() 1194 SIMPLEQ_EMPTY(&sc->txq[ATHN_QID_CAB].head)) in ar9003_swba_intr() 1400 struct athn_txq *txq; in ar9003_tx() local [all …]
|
| D | rt2560var.h | 127 struct rt2560_tx_ring txq; member
|
| D | rt2661var.h | 139 struct rt2661_tx_ring txq[5]; member
|
| D | ar5008.c | 1105 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()
|
| D | rt2860var.h | 135 struct rt2860_tx_ring txq[6]; member
|
| D | athn.c | 1867 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/src/sys/dev/fdt/ |
| D | if_mvpp.c | 486 struct mvpp2_tx_queue *txq; in mvpp2_attach_deferred() local 500 txq = &sc->sc_aggr_txqs[i]; in mvpp2_attach_deferred() 501 txq->id = i; in mvpp2_attach_deferred() 502 mvpp2_aggr_txq_hw_init(sc, txq); in mvpp2_attach_deferred() 1328 struct mvpp2_tx_queue *txq; in mvpp2_port_attach() local 1416 txq = &sc->sc_txqs[i]; in mvpp2_port_attach() 1417 txq->id = mvpp2_txq_phys(sc->sc_id, i); in mvpp2_port_attach() 1418 txq->log_id = i; in mvpp2_port_attach() 1419 txq->done_pkts_coal = MVPP2_TXDONE_COAL_PKTS_THRESH; in mvpp2_port_attach() 1712 struct mvpp2_tx_queue *txq = &sc->sc->sc_aggr_txqs[0]; in mvpp2_start() local [all …]
|
| /openbsd/src/sys/dev/usb/ |
| D | if_mtw.c | 264 sc->txq[MTW_TXQ_MCU].pipe_no = in mtw_attach() 267 sc->txq[ntx - 1].pipe_no = in mtw_attach() 509 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() 517 if ((error = usbd_open_pipe(sc->sc_iface, txq->pipe_no, 0, in mtw_alloc_tx_ring() 518 &txq->pipeh)) != 0) in mtw_alloc_tx_ring() 522 struct mtw_tx_data *data = &txq->data[i]; 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() 554 usbd_close_pipe(txq->pipeh); in mtw_free_tx_ring() [all …]
|
| D | if_run.c | 560 sc->txq[ntx].pipe_no = ed->bEndpointAddress; in run_attach() 764 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() 779 struct run_tx_data *data = &txq->data[i]; 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() 813 if (txq->data[i].xfer != NULL) in run_free_tx_ring() [all …]
|
| D | if_runvar.h | 189 struct run_tx_ring txq[4]; member
|
| D | if_mtwvar.h | 220 struct mtw_tx_ring txq[MTW_TXQ_COUNT]; member
|