Lines Matching refs:scctx
335 if_softc_ctx_t scctx; in mgb_attach_pre() local
343 scctx = iflib_get_softc_ctx(ctx); in mgb_attach_pre()
346 scctx->isc_txrx = &mgb_txrx; in mgb_attach_pre()
347 scctx->isc_tx_nsegments = MGB_DMA_MAXSEGS; in mgb_attach_pre()
349 scctx->isc_txqsizes[0] = sizeof(struct mgb_ring_desc) * in mgb_attach_pre()
350 scctx->isc_ntxd[0]; in mgb_attach_pre()
351 scctx->isc_rxqsizes[0] = sizeof(struct mgb_ring_desc) * in mgb_attach_pre()
352 scctx->isc_nrxd[0]; in mgb_attach_pre()
355 scctx->isc_txqsizes[1] = sizeof(uint32_t) * scctx->isc_ntxd[1]; in mgb_attach_pre()
356 scctx->isc_rxqsizes[1] = sizeof(uint32_t) * scctx->isc_nrxd[1]; in mgb_attach_pre()
359 scctx->isc_nrxqsets = 1; in mgb_attach_pre()
360 scctx->isc_ntxqsets = 1; in mgb_attach_pre()
364 scctx->isc_tx_csum_flags = 0; in mgb_attach_pre()
365 scctx->isc_capabilities = scctx->isc_capenable = 0; in mgb_attach_pre()
376 scctx->isc_capabilities |= IFCAP_LRO | IFCAP_VLAN_HWFILTER; in mgb_attach_pre()
418 scctx->isc_media = &miid->mii_media; in mgb_attach_pre()
420 scctx->isc_msix_bar = pci_msix_table_bar(sc->dev); in mgb_attach_pre()
423 if (rid != scctx->isc_msix_bar) { in mgb_attach_pre()
712 if_softc_ctx_t scctx; in mgb_stop() local
716 scctx = iflib_get_softc_ctx(ctx); in mgb_stop()
719 for (i = 0; i < scctx->isc_nrxqsets; i++) { in mgb_stop()
723 for (i = 0; i < scctx->isc_ntxqsets; i++) { in mgb_stop()
743 if_softc_ctx_t scctx; in mgb_rxq_intr() local
748 scctx = iflib_get_softc_ctx(sc->ctx); in mgb_rxq_intr()
754 for (qidx = 0; qidx < scctx->isc_nrxqsets; qidx++) { in mgb_rxq_intr()
768 if_softc_ctx_t scctx; in mgb_admin_intr() local
773 scctx = iflib_get_softc_ctx(sc->ctx); in mgb_admin_intr()
788 for (qidx = 0; qidx < scctx->isc_nrxqsets; qidx++) { in mgb_admin_intr()
797 for (qidx = 0; qidx < scctx->isc_ntxqsets; qidx++) { in mgb_admin_intr()
817 if_softc_ctx_t scctx; in mgb_msix_intr_assign() local
822 scctx = iflib_get_softc_ctx(ctx); in mgb_msix_intr_assign()
824 KASSERT(scctx->isc_nrxqsets == 1 && scctx->isc_ntxqsets == 1, in mgb_msix_intr_assign()
841 for (i = 0; i < scctx->isc_nrxqsets; i++) { in mgb_msix_intr_assign()
856 for (i = 0; i < scctx->isc_ntxqsets; i++) { in mgb_msix_intr_assign()
869 if_softc_ctx_t scctx; in mgb_intr_enable_all() local
873 scctx = iflib_get_softc_ctx(ctx); in mgb_intr_enable_all()
877 for (i = 0; i < scctx->isc_nrxqsets; i++) { in mgb_intr_enable_all()
1229 if_softc_ctx_t scctx; in mgb_dma_init() local
1232 scctx = iflib_get_softc_ctx(sc->ctx); in mgb_dma_init()
1234 for (ch = 0; ch < scctx->isc_nrxqsets; ch++) in mgb_dma_init()
1238 for (ch = 0; ch < scctx->isc_nrxqsets; ch++) in mgb_dma_init()