/freebsd/sys/dev/mgb/ |
H A D | if_mgb.c | 560 mgb_rx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int nrxqs, in mgb_rx_queues_alloc() argument 571 KASSERT(nrxqs == 2, ("nrxqs = %d", nrxqs)); in mgb_rx_queues_alloc() 573 rdata->ring = (struct mgb_ring_desc *) vaddrs[q * nrxqs + 0]; in mgb_rx_queues_alloc() 574 rdata->ring_bus_addr = paddrs[q * nrxqs + 0]; in mgb_rx_queues_alloc() 577 rdata->head_wb = (uint32_t *) vaddrs[q * nrxqs + 1]; in mgb_rx_queues_alloc() 578 rdata->head_wb_bus_addr = paddrs[q * nrxqs + 1]; in mgb_rx_queues_alloc()
|
/freebsd/sys/dev/vmware/vmxnet3/ |
H A D | if_vmx.c | 841 vmxnet3_init_rxq(struct vmxnet3_softc *sc, int q, int nrxqs) in vmxnet3_init_rxq() argument 864 for (i = 0; i < nrxqs - 1; i++) { in vmxnet3_init_rxq() 872 int nrxqs, int nrxqsets) in vmxnet3_rx_queues_alloc() argument 892 vmxnet3_init_rxq(sc, q, nrxqs); in vmxnet3_rx_queues_alloc() 924 (struct vmxnet3_rxcompdesc *) vaddrs[q * nrxqs + 0]; in vmxnet3_rx_queues_alloc() 925 rxc->vxcr_paddr = paddrs[q * nrxqs + 0]; in vmxnet3_rx_queues_alloc() 928 for (i = 0; i < nrxqs - 1; i++) { in vmxnet3_rx_queues_alloc() 932 (struct vmxnet3_rxdesc *) vaddrs[q * nrxqs + 1 + i]; in vmxnet3_rx_queues_alloc() 933 rxr->vxrxr_paddr = paddrs[q * nrxqs + 1 + i]; in vmxnet3_rx_queues_alloc()
|
/freebsd/sys/dev/axgbe/ |
H A D | if_axgbe_pci.c | 1749 axgbe_if_rx_queues_alloc(if_ctx_t ctx, caddr_t *va, uint64_t *pa, int nrxqs, in axgbe_if_rx_queues_alloc() argument 1762 MPASS(nrxqs == 1); in axgbe_if_rx_queues_alloc() 1764 MPASS(nrxqs == 2); in axgbe_if_rx_queues_alloc() 1768 scctx->isc_nrxqsets, nrxqsets, nrxqs); in axgbe_if_rx_queues_alloc() 1774 rx_ring = (struct xgbe_ring*)malloc(nrxqs * in axgbe_if_rx_queues_alloc() 1784 for (j = 0; j < nrxqs; j++, rx_ring++) { in axgbe_if_rx_queues_alloc() 1790 rx_ring->rdesc = (struct xgbe_ring_desc *)va[i*nrxqs + j]; in axgbe_if_rx_queues_alloc() 1791 rx_ring->rdesc_paddr = pa[i*nrxqs + j]; in axgbe_if_rx_queues_alloc() 1808 for (k = 0; k < nrxqs ; k++, rx_ring++) { in axgbe_if_rx_queues_alloc()
|
/freebsd/sys/dev/enic/ |
H A D | if_enic.c | 677 int nrxqs, int nrxqsets) in enic_rx_queues_alloc() argument 719 cq->ring.descs = vaddrs[q * nrxqs + 0]; in enic_rx_queues_alloc() 720 cq->ring.base_addr = paddrs[q * nrxqs + 0]; in enic_rx_queues_alloc() 735 rq->ring.descs = vaddrs[q * nrxqs + 1]; in enic_rx_queues_alloc() 736 rq->ring.base_addr = paddrs[q * nrxqs + 1]; in enic_rx_queues_alloc()
|
/freebsd/sys/dev/iavf/ |
H A D | if_iavf_iflib.c | 1032 iavf_if_rx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int nrxqs, int nrxqsets) in iavf_if_rx_queues_alloc() argument 1042 MPASS(nrxqs == 1); in iavf_if_rx_queues_alloc() 1063 rxr->rx_base = (union iavf_rx_desc *)vaddrs[i * nrxqs]; in iavf_if_rx_queues_alloc() 1064 rxr->rx_paddr = paddrs[i * nrxqs]; in iavf_if_rx_queues_alloc()
|
/freebsd/sys/dev/ixl/ |
H A D | if_ixl.c | 1261 ixl_if_rx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int nrxqs, int nrxqsets) in ixl_if_rx_queues_alloc() argument 1271 MPASS(nrxqs == 1); in ixl_if_rx_queues_alloc() 1292 rxr->rx_base = (union i40e_rx_desc *)vaddrs[i * nrxqs]; in ixl_if_rx_queues_alloc() 1293 rxr->rx_paddr = paddrs[i * nrxqs]; in ixl_if_rx_queues_alloc()
|
/freebsd/sys/net/ |
H A D | ifdi_if.m | 175 int nrxqs;
|
H A D | iflib.c | 5843 uint8_t nrxqs = sctx->isc_nrxqs; in iflib_queues_alloc() local 5851 KASSERT(nrxqs > 0, ("number of queues per qset must be at least 1")); in iflib_queues_alloc() 5852 KASSERT(nrxqs >= fl_offset + nfree_lists, in iflib_queues_alloc() 5938 if ((ifdip = malloc(sizeof(struct iflib_dma_info) * nrxqs, in iflib_queues_alloc() 5950 for (j = 0; j < nrxqs; j++, ifdip++) { in iflib_queues_alloc() 6012 vaddrs = malloc(sizeof(caddr_t) * nrxqsets * nrxqs, M_IFLIB, M_WAITOK); in iflib_queues_alloc() 6013 paddrs = malloc(sizeof(uint64_t) * nrxqsets * nrxqs, M_IFLIB, M_WAITOK); in iflib_queues_alloc() 6017 for (j = 0; j < nrxqs; j++, di++) { in iflib_queues_alloc() 6018 vaddrs[i * nrxqs + j] = di->idi_vaddr; in iflib_queues_alloc() 6019 paddrs[i * nrxqs + j] = di->idi_paddr; in iflib_queues_alloc() [all …]
|
/freebsd/sys/dev/ixgbe/ |
H A D | if_ixv.c | 298 int nrxqs, int nrxqsets) in ixv_if_rx_queues_alloc() argument 305 MPASS(nrxqs == 1); in ixv_if_rx_queues_alloc() 327 rxr->rx_paddr = paddrs[i*nrxqs]; in ixv_if_rx_queues_alloc()
|
H A D | if_ix.c | 475 int nrxqs, int nrxqsets) in ixgbe_if_rx_queues_alloc() argument 483 MPASS(nrxqs == 1); in ixgbe_if_rx_queues_alloc()
|
/freebsd/sys/dev/bnxt/bnxt_en/ |
H A D | if_bnxt.c | 182 uint64_t *paddrs, int nrxqs, int nrxqsets); 565 uint64_t *paddrs, int nrxqs, int nrxqsets) in bnxt_rx_queues_alloc() 677 softc->rx_cp_rings[i].ring.vaddr = vaddrs[i * nrxqs]; in bnxt_rx_queues_alloc() 678 softc->rx_cp_rings[i].ring.paddr = paddrs[i * nrxqs]; in bnxt_rx_queues_alloc() 688 softc->rx_rings[i].vaddr = vaddrs[i * nrxqs + 1]; in bnxt_rx_queues_alloc() 689 softc->rx_rings[i].paddr = paddrs[i * nrxqs + 1]; in bnxt_rx_queues_alloc() 709 softc->ag_rings[i].vaddr = vaddrs[i * nrxqs + 2]; in bnxt_rx_queues_alloc() 710 softc->ag_rings[i].paddr = paddrs[i * nrxqs + 2]; in bnxt_rx_queues_alloc() 563 bnxt_rx_queues_alloc(if_ctx_t ctx,caddr_t * vaddrs,uint64_t * paddrs,int nrxqs,int nrxqsets) bnxt_rx_queues_alloc() argument
|
/freebsd/sys/dev/ice/ |
H A D | if_ice_iflib.c | 100 uint64_t *paddrs, int nrxqs, int nrxqsets); 1118 int __invariant_only nrxqs, int nrxqsets) in ice_if_rx_queues_alloc() argument 1125 MPASS(nrxqs == 1); in ice_if_rx_queues_alloc() 4034 int __invariant_only nrxqs, int nrxqsets) in ice_subif_if_rx_queues_alloc() argument 4043 MPASS(nrxqs == 1); in ice_subif_if_rx_queues_alloc()
|
/freebsd/sys/dev/enetc/ |
H A D | if_enetc.c | 510 int nrxqs, int nrxqsets) in enetc_rx_queues_alloc() argument 517 MPASS(nrxqs == 1); in enetc_rx_queues_alloc()
|
/freebsd/sys/dev/igc/ |
H A D | if_igc.c | 1987 igc_if_rx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int nrxqs, int nrxqsets) in igc_if_rx_queues_alloc() argument 2014 rxr->rx_base = (union igc_rx_desc_extended *)vaddrs[i*nrxqs]; in igc_if_rx_queues_alloc() 2015 rxr->rx_paddr = paddrs[i*nrxqs]; in igc_if_rx_queues_alloc()
|
/freebsd/sys/dev/e1000/ |
H A D | if_em.c | 3345 em_if_rx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int nrxqs, int nrxqsets) in em_if_rx_queues_alloc() argument 3372 rxr->rx_base = (union e1000_rx_desc_extended *)vaddrs[i*nrxqs]; in em_if_rx_queues_alloc() 3373 rxr->rx_paddr = paddrs[i*nrxqs]; in em_if_rx_queues_alloc()
|