/freebsd-11-stable/sys/dev/cxgbe/ |
H A D | adapter.h | 557 /* txq: SGE egress queue + what's needed for Ethernet NIC */ 561 struct ifnet *ifp; /* the interface this txq belongs to */ 743 struct sge_txq *txq; /* NIC tx queues */ member in struct:sge 928 #define TXQ_LOCK(txq) EQ_LOCK(&(txq)->eq) 929 #define TXQ_TRYLOCK(txq) EQ_TRYLOCK(&(txq)->eq) 930 #define TXQ_UNLOCK(txq) EQ_UNLOCK(&(txq)->eq) 931 #define TXQ_LOCK_ASSERT_OWNED(txq) EQ_LOCK_ASSERT_OWNE [all...] |
H A D | t4_ioctl.h | 385 int16_t txq; member in struct:offload_settings
|
H A D | t4_main.c | 581 uint16_t ntxq; /* # of NIC txq's for each port */ 583 uint16_t nofldtxq; /* # of TOE txq's for each port */ 587 uint16_t ntxq_vi; /* # of NIC txq's */ 589 uint16_t nofldtxq_vi; /* # of TOE txq's */ 591 uint16_t nnmtxq_vi; /* # of netmap txq's */ 1212 s->txq = malloc(s->ntxq * sizeof(struct sge_txq), M_CXGBE, 1537 free(sc->sge.txq, M_CXGBE); 1650 sbuf_printf(sb, "%d txq, %d rxq (NIC)", vi->ntxq, vi->nrxq); 1653 sbuf_printf(sb, "; %d txq, %d rxq (TOE)", 1658 sbuf_printf(sb, "; %d txq, 2006 struct sge_txq *txq; local 2043 struct sge_txq *txq; local 2099 struct sge_txq *txq; local 2164 struct sge_txq *txq; local 4962 struct sge_txq *txq; local 5046 struct sge_txq *txq; local 5523 struct sge_txq *txq; local 5569 quiesce_txq(struct adapter *sc, struct sge_txq *txq) argument 10046 struct sge_txq *txq; local [all...] |
H A D | t4_sched.c | 292 bind_txq_to_traffic_class(struct adapter *sc, struct sge_txq *txq, int idx) argument 298 if (!(txq->eq.flags & EQ_ALLOCATED)) 302 if (txq->tc_idx == -2) { 306 if (idx == txq->tc_idx) { 311 tc0 = &sc->port[txq->eq.tx_chan]->sched_params->cl_rl[0]; 330 old_idx = txq->tc_idx; 331 txq->tc_idx = -2; 339 V_FW_PARAMS_PARAM_YZ(txq->eq.cntxt_id)); 345 MPASS(txq->tc_idx == -2); 356 txq 380 struct sge_txq *txq; local 569 struct sge_txq *txq; local [all...] |
H A D | t4_sge.c | 1096 struct sge_txq *txq; local 1201 oid = SYSCTL_ADD_NODE(&vi->ctx, children, OID_AUTO, "txq", CTLFLAG_RD, 1203 for_each_txq(vi, i, txq) { 1205 snprintf(name, sizeof(name), "%s txq%d", 1207 init_eq(sc, &txq->eq, EQ_ETH, vi->qsize_txq, pi->tx_chan, 1210 rc = alloc_txq(vi, txq, i, oid); 1250 struct sge_txq *txq; local 1287 for_each_txq(vi, i, txq) { 1288 free_txq(vi, txq); 2558 struct sge_txq *txq local 3749 alloc_txq(struct vi_info *vi, struct sge_txq *txq, int idx, struct sysctl_oid *oid) argument 3873 free_txq(struct vi_info *vi, struct sge_txq *txq) argument 4224 write_txpkt_vm_wr(struct adapter *sc, struct sge_txq *txq, struct fw_eth_tx_pkt_vm_wr *wr, struct mbuf *m0, u_int available) argument 4403 write_txpkt_wr(struct sge_txq *txq, struct fw_eth_tx_pkt_wr *wr, struct mbuf *m0, u_int available) argument 4596 write_txpkts_wr(struct sge_txq *txq, struct fw_eth_tx_pkts_wr *wr, struct mbuf *m0, const struct txpkts *txp, u_int available) argument 4712 write_gl_to_txd(struct sge_txq *txq, struct mbuf *m, caddr_t *to, int checkwrap) argument 4896 reclaim_tx_descs(struct sge_txq *txq, u_int n) argument 4938 struct sge_txq *txq = arg; local 5176 struct sge_txq *txq = (void *)eq; local [all...] |
H A D | t4_vf.c | 65 uint16_t ntxq; /* # of NIC txq's for each port */ 349 * list and interrupts and an egress queue. Every txq 681 s->txq = malloc(s->ntxq * sizeof(struct sge_txq), M_CXGBE, 851 struct sge_txq *txq; local 862 for_each_txq(vi, i, txq) { 863 txq->txcsum = 0; 864 txq->tso_wrs = 0; 865 txq->vlan_insertion = 0; 866 txq->imm_wrs = 0; 867 txq [all...] |
/freebsd-11-stable/sys/dev/cxgbe/common/ |
H A D | common.h | 751 unsigned int vf, unsigned int txq, unsigned int txq_eth_ctrl,
|
H A D | t4_hw.c | 7764 * @txq: the max number of egress queues 7780 unsigned int vf, unsigned int txq, unsigned int txq_eth_ctrl, 7796 V_FW_PFVF_CMD_NEQ(txq)); 7779 t4_cfg_pfvf(struct adapter *adap, unsigned int mbox, unsigned int pf, unsigned int vf, unsigned int txq, unsigned int txq_eth_ctrl, unsigned int rxqi, unsigned int rxq, unsigned int tc, unsigned int vi, unsigned int cmask, unsigned int pmask, unsigned int nexact, unsigned int rcaps, unsigned int wxcaps) argument
|
/freebsd-11-stable/sys/dev/cxgbe/crypto/ |
H A D | t4_crypto.c | 180 struct sge_wrq *txq; member in struct:ccr_softc 478 wr = alloc_wrqe(wr_len, sc->txq); 623 wr = alloc_wrqe(wr_len, sc->txq); 953 wr = alloc_wrqe(wr_len, sc->txq); 1281 wr = alloc_wrqe(wr_len, sc->txq); 1645 sc->txq = &sc->adapter->sge.ctrlq[0]; 1998 if (sc->rxq->iq.adapter == NULL || sc->txq->adapter == NULL)
|
/freebsd-11-stable/sys/dev/cxgbe/tom/ |
H A D | t4_connect.c | 351 if (settings.txq >= 0 && settings.txq < vi->nofldtxq) 352 txqid = settings.txq;
|
H A D | t4_listen.c | 969 if (s->txq >= 0 && s->txq < vi->nofldtxq) 970 txqid = s->txq;
|
H A D | t4_tom.c | 942 .txq = -1,
|
/freebsd-11-stable/sys/dev/iwi/ |
H A D | if_iwi.c | 340 error = iwi_alloc_tx_ring(sc, &sc->txq[i], IWI_TX_RING_COUNT, 462 iwi_free_tx_ring(sc, &sc->txq[0]); 463 iwi_free_tx_ring(sc, &sc->txq[1]); 464 iwi_free_tx_ring(sc, &sc->txq[2]); 465 iwi_free_tx_ring(sc, &sc->txq[3]); 1606 iwi_tx_intr(struct iwi_softc *sc, struct iwi_tx_ring *txq) argument 1611 hw = CSR_READ_4(sc, txq->csr_ridx); 1613 while (txq->next != hw) { 1614 data = &txq->data[txq 1775 struct iwi_tx_ring *txq = &sc->txq[ac]; local [all...] |
H A D | if_iwivar.h | 151 struct iwi_tx_ring txq[WME_NUM_AC]; member in struct:iwi_softc
|
/freebsd-11-stable/sys/dev/iwm/ |
H A D | if_iwm.c | 936 nitems(sc->txq) * sizeof(struct iwm_agn_scd_bc_tbl), 1024); 1322 for (qid = 0; qid < nitems(sc->txq); qid++) 1323 iwm_reset_tx_ring(sc, &sc->txq[qid]); 1480 for (qid = 0; qid < nitems(sc->txq); qid++) { 1481 struct iwm_tx_ring *txq = &sc->txq[qid]; local 1485 txq->desc_dma.paddr >> 8); 1489 qid, txq->desc, 1490 (unsigned long) (txq->desc_dma.paddr >> 8)); 1532 "%s: cannot enable txq [all...] |
H A D | if_iwmvar.h | 459 struct iwm_tx_ring txq[IWM_MVM_MAX_QUEUES]; member in struct:iwm_softc
|
/freebsd-11-stable/sys/dev/iwn/ |
H A D | if_iwn.c | 540 if ((error = iwn_alloc_tx_ring(sc, &sc->txq[i], i)) != 0) { 1422 iwn_free_tx_ring(sc, &sc->txq[qid]); 3160 struct iwn_tx_ring *txq; local 3175 txq = &sc->txq[ba->qid]; 3187 for (lastidx = le16toh(ba->ssn) & 0xff; txq->read != lastidx;) { 3188 txdata = &txq->data[txq->read]; 3191 bus_dmamap_sync(txq->data_dmat, txdata->map, 3193 bus_dmamap_unload(txq 8564 struct iwn_tx_ring *txq = &sc->txq[qid]; local [all...] |
H A D | if_iwnvar.h | 295 struct iwn_tx_ring txq[IWN5000_NTXQUEUES]; member in struct:iwn_softc
|
/freebsd-11-stable/sys/dev/ixl/ |
H A D | ixl_pf_iov.c | 555 struct i40e_hmc_obj_txq txq; local 563 bzero(&txq, sizeof(txq)); 572 txq.base = info->dma_ring_addr / IXL_TX_CTX_BASE_UNITS; 574 txq.head_wb_ena = info->headwb_enabled; 575 txq.head_wb_addr = info->dma_headwb_addr; 576 txq.qlen = info->ring_len; 577 txq.rdylist = le16_to_cpu(vf->vsi.info.qs_handle[0]); 578 txq.rdylist_act = 0; 580 status = i40e_set_lan_tx_queue_context(hw, global_queue_num, &txq); [all...] |
H A D | ixlvc.c | 415 vqpi->txq.vsi_id = vqci->vsi_id; 416 vqpi->txq.queue_id = i; 417 vqpi->txq.ring_len = que->num_tx_desc; 418 vqpi->txq.dma_ring_addr = txr->dma.pa; 421 vqpi->txq.headwb_enabled = 1; 422 vqpi->txq.dma_headwb_addr = txr->dma.pa +
|
H A D | virtchnl.h | 357 struct virtchnl_txq_info txq; member in struct:virtchnl_queue_pair_info
|
/freebsd-11-stable/sys/dev/malo/ |
H A D | if_malo.c | 553 malo_txdma_setup(struct malo_softc *sc, struct malo_txq *txq) argument 559 error = malo_desc_setup(sc, "tx", &txq->dma, 573 txq->dma.dd_bufptr = bf; 575 STAILQ_INIT(&txq->free); 576 txq->nfree = 0; 577 ds = txq->dma.dd_desc; 580 bf->bf_daddr = DS2PHYS(&txq->dma, ds); 589 STAILQ_INSERT_TAIL(&txq->free, bf, bf_list); 590 txq->nfree++; 631 malo_txdma_cleanup(struct malo_softc *sc, struct malo_txq *txq) argument 725 struct malo_txq *txq; local 742 malo_txq_init(struct malo_softc *sc, struct malo_txq *txq, int qnum) argument 767 malo_tx_cleanupq(struct malo_softc *sc, struct malo_txq *txq) argument 777 malo_getbuf(struct malo_softc *sc, struct malo_txq *txq) argument 927 malo_tx_processq(struct malo_softc *sc, struct malo_txq *txq) argument 1043 struct malo_txq *txq; local 1231 struct malo_txq *txq = &sc->malo_txq[0]; local 1576 malo_tx_draintxq(struct malo_softc *sc, struct malo_txq *txq) argument 1776 struct malo_txq *txq; local [all...] |
/freebsd-11-stable/sys/dev/mwl/ |
H A D | if_mwl.c | 978 struct mwl_txq *txq = &sc->sc_txq[i]; local 979 sc->sc_hwdma.wcbBase[i] = txq->dma.dd_desc_paddr; 1268 mwl_gettxbuf(struct mwl_softc *sc, struct mwl_txq *txq) argument 1275 MWL_TXQ_LOCK(txq); 1276 bf = STAILQ_FIRST(&txq->free); 1278 STAILQ_REMOVE_HEAD(&txq->free, bf_list); 1279 txq->nfree--; 1281 MWL_TXQ_UNLOCK(txq); 1284 "%s: out of xmit buffers on q %d\n", __func__, txq->qnum); 1295 mwl_puttxbuf_head(struct mwl_txq *txq, struc argument 1306 mwl_puttxbuf_tail(struct mwl_txq *txq, struct mwl_txbuf *bf) argument 1343 struct mwl_txq *txq = NULL; /* XXX silence gcc */ local 1422 struct mwl_txq *txq; local 2009 mwl_txq_reset(struct mwl_softc *sc, struct mwl_txq *txq) argument 2025 mwl_txdma_setup(struct mwl_softc *sc, struct mwl_txq *txq) argument 2064 mwl_txdma_cleanup(struct mwl_softc *sc, struct mwl_txq *txq) argument 2828 mwl_txq_init(struct mwl_softc *sc, struct mwl_txq *txq, int qnum) argument 2860 struct mwl_txq *txq; local 2886 struct mwl_txq *txq = sc->sc_ac2q[ac]; local 2925 mwl_tx_cleanupq(struct mwl_softc *sc, struct mwl_txq *txq) argument 3073 struct mwl_txq *txq; local 3316 mwl_tx_processq(struct mwl_softc *sc, struct mwl_txq *txq) argument 3435 mwl_tx_draintxq(struct mwl_softc *sc, struct mwl_txq *txq) argument 3515 struct mwl_txq *txq; local 4805 struct mwl_txq *txq = sc->sc_ac2q[i]; local [all...] |
/freebsd-11-stable/sys/dev/netmap/ |
H A D | if_vtnet_netmap.h | 114 struct vtnet_txq *txq = &sc->vtnet_txqs[i]; local 118 VTNET_TXQ_LOCK(txq); 120 vtnet_free_used(txq->vtntx_vq, 122 VTNET_TXQ_UNLOCK(txq); 160 struct vtnet_txq *txq = &sc->vtnet_txqs[ring_nr]; local 161 struct virtqueue *vq = txq->vtntx_vq; 172 struct sglist *sg = txq->vtntx_sg; 189 err = sglist_append(sg, &txq->vtntx_shrhdr, sc->vtnet_hdr_size); 193 err = virtqueue_enqueue(vq, /*cookie=*/txq, sg, 218 if (unlikely(token != (void *)txq)) 407 struct vtnet_txq *txq = &sc->vtnet_txqs[i]; local [all...] |
H A D | netmap_freebsd.c | 480 nm_os_generic_find_num_queues(struct ifnet *ifp, u_int *txq, u_int *rxq) argument 484 *txq = num_rings;
|