/freebsd/sys/dev/mgb/ |
H A D | if_mgb.c | 536 mgb_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int ntxqs, in mgb_tx_queues_alloc() argument 547 KASSERT(ntxqs == 2, ("ntxqs = %d", ntxqs)); in mgb_tx_queues_alloc() 549 rdata->ring = (struct mgb_ring_desc *) vaddrs[q * ntxqs + 0]; in mgb_tx_queues_alloc() 550 rdata->ring_bus_addr = paddrs[q * ntxqs + 0]; in mgb_tx_queues_alloc() 553 rdata->head_wb = (uint32_t *) vaddrs[q * ntxqs + 1]; in mgb_tx_queues_alloc() 554 rdata->head_wb_bus_addr = paddrs[q * ntxqs + 1]; in mgb_tx_queues_alloc()
|
/freebsd/sys/dev/axgbe/ |
H A D | if_axgbe_pci.c | 1680 axgbe_if_tx_queues_alloc(if_ctx_t ctx, caddr_t *va, uint64_t *pa, int ntxqs, in axgbe_if_tx_queues_alloc() argument 1692 MPASS(ntxqs == 1); in axgbe_if_tx_queues_alloc() 1695 scctx->isc_ntxqsets, ntxqsets, ntxqs); in axgbe_if_tx_queues_alloc() 1701 tx_ring = (struct xgbe_ring*)malloc(ntxqs * in axgbe_if_tx_queues_alloc() 1711 for (j = 0; j < ntxqs; j++, tx_ring++) { in axgbe_if_tx_queues_alloc() 1717 tx_ring->rdesc = (struct xgbe_ring_desc *)va[i*ntxqs + j]; in axgbe_if_tx_queues_alloc() 1718 tx_ring->rdesc_paddr = pa[i*ntxqs + j]; in axgbe_if_tx_queues_alloc() 1735 for (k = 0; k < ntxqs ; k++, tx_ring++) { in axgbe_if_tx_queues_alloc()
|
/freebsd/sys/dev/iavf/ |
H A D | if_iavf_iflib.c | 62 static int iavf_if_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int ntxqs, int… 968 iavf_if_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int ntxqs, int ntxqsets) in iavf_if_tx_queues_alloc() argument 977 MPASS(ntxqs == 1); in iavf_if_tx_queues_alloc() 1006 txr->tx_base = (struct iavf_tx_desc *)vaddrs[i * ntxqs]; in iavf_if_tx_queues_alloc() 1007 txr->tx_paddr = paddrs[i * ntxqs]; in iavf_if_tx_queues_alloc()
|
/freebsd/sys/dev/enic/ |
H A D | if_enic.c | 603 int ntxqs, int ntxqsets) in enic_tx_queues_alloc() argument 650 wq->ring.descs = vaddrs[q * ntxqs + 0]; in enic_tx_queues_alloc() 651 wq->ring.base_addr = paddrs[q * ntxqs + 0]; in enic_tx_queues_alloc() 663 cq->ring.descs = vaddrs[q * ntxqs + 1]; in enic_tx_queues_alloc() 664 cq->ring.base_addr = paddrs[q * ntxqs + 1]; in enic_tx_queues_alloc()
|
/freebsd/sys/dev/ixl/ |
H A D | if_ixl.c | 109 static int ixl_if_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int ntxqs, int … 1211 ixl_if_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int ntxqs, int ntxqsets) in ixl_if_tx_queues_alloc() argument 1220 MPASS(ntxqs == 1); in ixl_if_tx_queues_alloc() 1249 txr->tx_base = (struct i40e_tx_desc *)vaddrs[i * ntxqs]; in ixl_if_tx_queues_alloc() 1250 txr->tx_paddr = paddrs[i * ntxqs]; in ixl_if_tx_queues_alloc()
|
/freebsd/sys/dev/ixgbe/ |
H A D | if_ixv.c | 239 int ntxqs, int ntxqsets) in ixv_if_tx_queues_alloc() argument 247 MPASS(ntxqs == 1); in ixv_if_tx_queues_alloc() 274 txr->tx_base = (union ixgbe_adv_tx_desc *)vaddrs[i*ntxqs]; in ixv_if_tx_queues_alloc() 275 txr->tx_paddr = paddrs[i*ntxqs]; in ixv_if_tx_queues_alloc()
|
H A D | if_ix.c | 407 int ntxqs, int ntxqsets) in ixgbe_if_tx_queues_alloc() argument 416 MPASS(ntxqs == 1); in ixgbe_if_tx_queues_alloc()
|
/freebsd/sys/dev/iwn/ |
H A D | if_iwnvar.h | 267 int ntxqs; member
|
H A D | if_iwn.c | 544 for (i = 0; i < sc->ntxqs; i++) { in iwn_attach() 1240 sc->ntxqs = IWN4965_NTXQUEUES; in iwn4965_attach() 1283 sc->ntxqs = IWN5000_NTXQUEUES; in iwn5000_attach() 1428 for (qid = 0; qid < sc->ntxqs; qid++) in iwn_detach() 4168 for (qid = 0; qid < sc->ntxqs; qid++) { in iwn_wakeup_intr() 4253 for (i = 0; i < sc->ntxqs; i++) { in iwn_fatal_intr() 7528 for (qid = sc->firstaggqueue; qid < sc->ntxqs; qid++) { in iwn_addba_request() 7532 if (qid == sc->ntxqs) { in iwn_addba_request() 8796 for (qid = 0; qid < sc->ntxqs; qid++) { in iwn_hw_init() 8890 for (qid = 0; qid < sc->ntxqs; qid++) in iwn_hw_stop()
|
/freebsd/sys/dev/vmware/vmxnet3/ |
H A D | if_vmx.c | 779 int ntxqs, int ntxqsets) in vmxnet3_tx_queues_alloc() argument 828 (struct vmxnet3_txcompdesc *) vaddrs[q * ntxqs + 0]; in vmxnet3_tx_queues_alloc() 829 txc->vxcr_paddr = paddrs[q * ntxqs + 0]; in vmxnet3_tx_queues_alloc() 833 (struct vmxnet3_txdesc *) vaddrs[q * ntxqs + 1]; in vmxnet3_tx_queues_alloc() 834 txr->vxtxr_paddr = paddrs[q * ntxqs + 1]; in vmxnet3_tx_queues_alloc()
|
/freebsd/sys/net/ |
H A D | ifdi_if.m | 167 int ntxqs;
|
H A D | iflib.c | 5844 uint8_t ntxqs = sctx->isc_ntxqs; in iflib_queues_alloc() local 5850 KASSERT(ntxqs > 0, ("number of queues per qset must be at least 1")); in iflib_queues_alloc() 5882 if ((ifdip = malloc(sizeof(struct iflib_dma_info) * ntxqs, in iflib_queues_alloc() 5890 for (j = 0; j < ntxqs; j++, ifdip++) { in iflib_queues_alloc() 5990 vaddrs = malloc(sizeof(caddr_t) * ntxqsets * ntxqs, M_IFLIB, M_WAITOK); in iflib_queues_alloc() 5991 paddrs = malloc(sizeof(uint64_t) * ntxqsets * ntxqs, M_IFLIB, M_WAITOK); in iflib_queues_alloc() 5995 for (j = 0; j < ntxqs; j++, di++) { in iflib_queues_alloc() 5996 vaddrs[i * ntxqs + j] = di->idi_vaddr; in iflib_queues_alloc() 5997 paddrs[i * ntxqs + j] = di->idi_paddr; in iflib_queues_alloc() 6000 if ((err = IFDI_TX_QUEUES_ALLOC(ctx, vaddrs, paddrs, ntxqs, ntxqsets)) != 0) { in iflib_queues_alloc()
|
/freebsd/sys/dev/ice/ |
H A D | if_ice_iflib.c | 62 static int ice_if_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int ntxqs, int … 98 uint64_t *paddrs, int ntxqs, int ntxqsets); 1026 int __invariant_only ntxqs, int ntxqsets) in ice_if_tx_queues_alloc() argument 1033 MPASS(ntxqs == 1); in ice_if_tx_queues_alloc() 3950 int __invariant_only ntxqs, int ntxqsets) in ice_subif_if_tx_queues_alloc() argument 3959 MPASS(ntxqs == 1); in ice_subif_if_tx_queues_alloc()
|
/freebsd/sys/dev/bnxt/bnxt_en/ |
H A D | if_bnxt.c | 180 uint64_t *paddrs, int ntxqs, int ntxqsets); 429 uint64_t *paddrs, int ntxqs, int ntxqsets) in bnxt_tx_queues_alloc() 486 softc->tx_cp_rings[i].ring.vaddr = vaddrs[i * ntxqs]; in bnxt_tx_queues_alloc() 487 softc->tx_cp_rings[i].ring.paddr = paddrs[i * ntxqs]; in bnxt_tx_queues_alloc() 498 softc->tx_rings[i].vaddr = vaddrs[i * ntxqs + 1]; in bnxt_tx_queues_alloc() 499 softc->tx_rings[i].paddr = paddrs[i * ntxqs + 1]; in bnxt_tx_queues_alloc() 514 softc->nq_rings[i].ring.vaddr = vaddrs[i * ntxqs + 2]; in bnxt_tx_queues_alloc() 515 softc->nq_rings[i].ring.paddr = paddrs[i * ntxqs + 2]; in bnxt_tx_queues_alloc() 427 bnxt_tx_queues_alloc(if_ctx_t ctx,caddr_t * vaddrs,uint64_t * paddrs,int ntxqs,int ntxqsets) bnxt_tx_queues_alloc() argument
|
/freebsd/sys/dev/enetc/ |
H A D | if_enetc.c | 479 int ntxqs, int ntxqsets) in enetc_tx_queues_alloc() argument 487 MPASS(ntxqs == 1); in enetc_tx_queues_alloc()
|
/freebsd/sys/dev/igc/ |
H A D | if_igc.c | 1938 igc_if_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int ntxqs, int ntxqsets) in igc_if_tx_queues_alloc() argument 1973 txr->tx_base = (struct igc_tx_desc *)vaddrs[i*ntxqs]; in igc_if_tx_queues_alloc() 1974 txr->tx_paddr = paddrs[i*ntxqs]; in igc_if_tx_queues_alloc()
|
/freebsd/sys/dev/e1000/ |
H A D | if_em.c | 3296 em_if_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int ntxqs, int ntxqsets) in em_if_tx_queues_alloc() argument 3331 txr->tx_base = (struct e1000_tx_desc *)vaddrs[i*ntxqs]; in em_if_tx_queues_alloc() 3332 txr->tx_paddr = paddrs[i*ntxqs]; in em_if_tx_queues_alloc()
|