Home
last modified time | relevance | path

Searched refs:scctx (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/sys/dev/vmware/vmxnet3/
H A Dif_vmx.c332 if_softc_ctx_t scctx; in vmxnet3_attach_pre() local
345 scctx = sc->vmx_scctx; in vmxnet3_attach_pre()
347 scctx->isc_tx_nsegments = VMXNET3_TX_MAXSEGS; in vmxnet3_attach_pre()
348 scctx->isc_tx_tso_segments_max = VMXNET3_TX_MAXSEGS; in vmxnet3_attach_pre()
350 scctx->isc_tx_tso_size_max = VMXNET3_TSO_MAXSIZE; in vmxnet3_attach_pre()
351 scctx->isc_tx_tso_segsize_max = VMXNET3_TX_MAXSEGSIZE; in vmxnet3_attach_pre()
352 scctx->isc_txrx = &vmxnet3_txrx; in vmxnet3_attach_pre()
355 if (scctx->isc_nrxqsets == 0) in vmxnet3_attach_pre()
356 scctx->isc_nrxqsets = VMXNET3_DEF_RX_QUEUES; in vmxnet3_attach_pre()
357 scctx->isc_nrxqsets = trunc_powerof2(scctx->isc_nrxqsets); in vmxnet3_attach_pre()
[all …]
/freebsd/sys/dev/enic/
H A Dif_enic.c241 if_softc_ctx_t scctx; in enic_attach_pre() local
260 softc->scctx = iflib_get_softc_ctx(ctx); in enic_attach_pre()
268 scctx = softc->scctx; in enic_attach_pre()
360 softc->scctx = iflib_get_softc_ctx(ctx); in enic_attach_pre()
361 scctx = softc->scctx; in enic_attach_pre()
362 scctx->isc_txrx = &enic_txrx; in enic_attach_pre()
363 scctx->isc_capabilities = scctx->isc_capenable = 0; in enic_attach_pre()
364 scctx->isc_tx_csum_flags = 0; in enic_attach_pre()
365 scctx->isc_max_frame_size = enic->config.mtu + ETHER_HDR_LEN + \ in enic_attach_pre()
367 scctx->isc_nrxqsets_max = enic->conf_rq_count; in enic_attach_pre()
[all …]
H A Denic.h275 if_softc_ctx_t scctx; member
/freebsd/sys/dev/e1000/
H A Dem_txrx.c94 if_softc_ctx_t scctx = sc->shared; in em_dump_rs() local
102 ntxd = scctx->isc_ntxd[0]; in em_dump_rs()
137 if_softc_ctx_t scctx = sc->shared; in em_tso_setup() local
211 if (++cur == scctx->isc_ntxd[0]) { in em_tso_setup()
242 if_softc_ctx_t scctx = sc->shared; in em_transmit_checksum_setup() local
325 if (++cur == scctx->isc_ntxd[0]) { in em_transmit_checksum_setup()
340 if_softc_ctx_t scctx = sc->shared; in em_isc_txd_encap() local
357 ntxd = scctx->isc_ntxd[0]; in em_isc_txd_encap()
411 if (++i == scctx->isc_ntxd[0]) in em_isc_txd_encap()
420 if (++i == scctx->isc_ntxd[0]) in em_isc_txd_encap()
[all …]
H A Digb_txrx.c237 if_softc_ctx_t scctx = sc->shared; in igb_isc_txd_encap() local
256 ntxd = scctx->isc_ntxd[0]; in igb_isc_txd_encap()
260 if (i == scctx->isc_ntxd[0]) in igb_isc_txd_encap()
280 if (++i == scctx->isc_ntxd[0]) { in igb_isc_txd_encap()
314 if_softc_ctx_t scctx = sc->shared; in igb_isc_txd_credits_update() local
340 ntxd = scctx->isc_ntxd[0]; in igb_isc_txd_credits_update()
366 if_softc_ctx_t scctx = sc->shared; in igb_isc_rxd_refill() local
384 if (++next_pidx == scctx->isc_nrxd[0]) in igb_isc_rxd_refill()
403 if_softc_ctx_t scctx = sc->shared; in igb_isc_rxd_available() local
410 for (cnt = 0, i = idx; cnt < scctx->isc_nrxd[0] && cnt <= budget;) { in igb_isc_rxd_available()
[all …]
H A Dif_em.c719 if_softc_ctx_t scctx = sc->shared; in em_get_regs() local
722 int ntxd = scctx->isc_ntxd[0]; in em_get_regs()
723 int nrxd = scctx->isc_nrxd[0]; in em_get_regs()
820 if_softc_ctx_t scctx; in em_if_attach_pre() local
833 scctx = sc->shared = iflib_get_softc_ctx(ctx); in em_if_attach_pre()
898 scctx->isc_tx_nsegments = EM_MAX_SCATTER; in em_if_attach_pre()
899 scctx->isc_nrxqsets_max = scctx->isc_ntxqsets_max = em_set_num_queues(ctx); in em_if_attach_pre()
902 scctx->isc_ntxqsets_max); in em_if_attach_pre()
905scctx->isc_txqsizes[0] = roundup2(scctx->isc_ntxd[0] * sizeof(union e1000_adv_tx_desc), EM_DBA_ALI… in em_if_attach_pre()
906scctx->isc_rxqsizes[0] = roundup2(scctx->isc_nrxd[0] * sizeof(union e1000_adv_rx_desc), EM_DBA_ALI… in em_if_attach_pre()
[all …]
/freebsd/sys/dev/iavf/
H A Diavf_vc_iflib.c57 if_softc_ctx_t scctx = iflib_get_softc_ctx(vsi->ctx); in iavf_configure_queues() local
90 vqpi->txq.ring_len = scctx->isc_ntxd[0]; in iavf_configure_queues()
99 sizeof(struct iavf_tx_desc) * scctx->isc_ntxd[0]; in iavf_configure_queues()
104 vqpi->rxq.ring_len = scctx->isc_nrxd[0]; in iavf_configure_queues()
106 vqpi->rxq.max_pkt_size = scctx->isc_max_frame_size; in iavf_configure_queues()
134 if_softc_ctx_t scctx = vsi->shared; in iavf_map_queues() local
138 MPASS(scctx->isc_vectors > 1); in iavf_map_queues()
142 q = scctx->isc_vectors - 1; in iavf_map_queues()
145 (scctx->isc_vectors * sizeof(struct virtchnl_vector_map)); in iavf_map_queues()
152 vm->num_vectors = scctx->isc_vectors; in iavf_map_queues()
H A Dif_iavf_iflib.c260 if_softc_ctx_t scctx; in iavf_if_attach_pre() local
278 vsi->shared = scctx = iflib_get_softc_ctx(ctx); in iavf_if_attach_pre()
360 scctx->isc_ntxqsets_max = scctx->isc_nrxqsets_max = in iavf_if_attach_pre()
363 scctx->isc_txqsizes[0] = roundup2(scctx->isc_ntxd[0] in iavf_if_attach_pre()
365 scctx->isc_txrx = &iavf_txrx_hwb; in iavf_if_attach_pre()
367 scctx->isc_txqsizes[0] = roundup2(scctx->isc_ntxd[0] in iavf_if_attach_pre()
369 scctx->isc_txrx = &iavf_txrx_dwb; in iavf_if_attach_pre()
371 scctx->isc_rxqsizes[0] = roundup2(scctx->isc_nrxd[0] in iavf_if_attach_pre()
373 scctx->isc_msix_bar = pci_msix_table_bar(dev); in iavf_if_attach_pre()
374 scctx->isc_tx_nsegments = IAVF_MAX_TX_SEGS; in iavf_if_attach_pre()
[all …]
H A Diavf_txrx_iflib.c261 if_softc_ctx_t scctx; in iavf_tso_setup() local
271 scctx = txr->que->vsi->shared; in iavf_tso_setup()
304 return ((idx + 1) & (scctx->isc_ntxd[0]-1)); in iavf_tso_setup()
323 if_softc_ctx_t scctx = vsi->shared; in iavf_isc_txd_encap() local
357 mask = scctx->isc_ntxd[0] - 1; in iavf_isc_txd_encap()
451 if_softc_ctx_t scctx = que->vsi->shared; in iavf_get_tx_head() local
453 void *head = &txr->tx_base[scctx->isc_ntxd[0]]; in iavf_get_tx_head()
477 if_softc_ctx_t scctx = vsi->shared; in iavf_isc_txd_credits_update_hwb() local
487 credits += scctx->isc_ntxd[0]; in iavf_isc_txd_credits_update_hwb()
514 if_softc_ctx_t scctx = vsi->shared; in iavf_isc_txd_credits_update_dwb() local
[all …]
/freebsd/sys/dev/mgb/
H A Dif_mgb.c335 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()
[all …]
/freebsd/sys/dev/axgbe/
H A Dif_axgbe_pci.c397 if_softc_ctx_t scctx; in axgbe_if_attach_pre() local
408 sc->scctx = scctx = iflib_get_softc_ctx(ctx); in axgbe_if_attach_pre()
667 if_softc_ctx_t scctx = sc->scctx; in axgbe_init_iflib_softc_ctx() local
671 scctx->isc_nrxqsets = pdata->rx_q_count; in axgbe_init_iflib_softc_ctx()
672 scctx->isc_ntxqsets = pdata->tx_q_count; in axgbe_init_iflib_softc_ctx()
673 scctx->isc_msix_bar = pci_msix_table_bar(pdata->dev); in axgbe_init_iflib_softc_ctx()
674 scctx->isc_tx_nsegments = 32; in axgbe_init_iflib_softc_ctx()
677 scctx->isc_txqsizes[i] = in axgbe_init_iflib_softc_ctx()
678 roundup2(scctx->isc_ntxd[i] * sizeof(struct xgbe_ring_desc), in axgbe_init_iflib_softc_ctx()
680 scctx->isc_txd_size[i] = sizeof(struct xgbe_ring_desc); in axgbe_init_iflib_softc_ctx()
[all …]
/freebsd/sys/dev/igc/
H A Digc_txrx.c83 if_softc_ctx_t scctx = sc->shared; in igc_dump_rs() local
91 ntxd = scctx->isc_ntxd[0]; in igc_dump_rs()
265 if_softc_ctx_t scctx = sc->shared; in igc_isc_txd_encap() local
284 ntxd = scctx->isc_ntxd[0]; in igc_isc_txd_encap()
288 if (i == scctx->isc_ntxd[0]) in igc_isc_txd_encap()
304 if (++i == scctx->isc_ntxd[0]) { in igc_isc_txd_encap()
338 if_softc_ctx_t scctx = sc->shared; in igc_isc_txd_credits_update() local
364 ntxd = scctx->isc_ntxd[0]; in igc_isc_txd_credits_update()
390 if_softc_ctx_t scctx = sc->shared; in igc_isc_rxd_refill() local
408 if (++next_pidx == scctx->isc_nrxd[0]) in igc_isc_rxd_refill()
[all …]
H A Dif_igc.c376 if_softc_ctx_t scctx = sc->shared; in igc_get_regs() local
379 int ntxd = scctx->isc_ntxd[0]; in igc_get_regs()
380 int nrxd = scctx->isc_nrxd[0]; in igc_get_regs()
439 if_softc_ctx_t scctx; in igc_if_attach_pre() local
450 scctx = sc->shared = iflib_get_softc_ctx(ctx); in igc_if_attach_pre()
525 scctx->isc_tx_nsegments = IGC_MAX_SCATTER; in igc_if_attach_pre()
526 scctx->isc_nrxqsets_max = scctx->isc_ntxqsets_max = igc_set_num_queues(ctx); in igc_if_attach_pre()
529 scctx->isc_ntxqsets_max); in igc_if_attach_pre()
531scctx->isc_txqsizes[0] = roundup2(scctx->isc_ntxd[0] * sizeof(union igc_adv_tx_desc), IGC_DBA_ALIG… in igc_if_attach_pre()
532scctx->isc_rxqsizes[0] = roundup2(scctx->isc_nrxd[0] * sizeof(union igc_adv_rx_desc), IGC_DBA_ALIG… in igc_if_attach_pre()
[all …]
/freebsd/sys/dev/ice/
H A Dif_ice_iflib.c369 if_softc_ctx_t scctx = sc->scctx; in ice_setup_scctx() local
382 scctx->isc_ntxqsets = scctx->isc_nrxqsets = 1; in ice_setup_scctx()
383 scctx->isc_ntxqsets_max = 1; in ice_setup_scctx()
384 scctx->isc_nrxqsets_max = 1; in ice_setup_scctx()
392 sc->ifc_sysctl_ntxqs = scctx->isc_ntxqsets; in ice_setup_scctx()
393 sc->ifc_sysctl_nrxqs = scctx->isc_nrxqsets; in ice_setup_scctx()
395 if (scctx->isc_ntxqsets == 0) in ice_setup_scctx()
396 scctx->isc_ntxqsets = hw->func_caps.common_cap.rss_table_size; in ice_setup_scctx()
397 if (scctx->isc_nrxqsets == 0) in ice_setup_scctx()
398 scctx->isc_nrxqsets = hw->func_caps.common_cap.rss_table_size; in ice_setup_scctx()
[all …]
H A Dice_iflib_txrx.c286 if_softc_ctx_t scctx = sc->scctx; ice_ift_rxd_pkt_get() local
H A Dice_iflib.h274 if_softc_ctx_t scctx;
252 if_softc_ctx_t scctx; global() member
/freebsd/sys/net/
H A Diflib.c719 static void _iflib_pre_assert(if_softc_ctx_t scctx);
744 if_softc_ctx_t scctx = &ctx->ifc_softc_ctx; in iflib_num_rx_descs() local
748 return (scctx->isc_nrxd[first_rxq]); in iflib_num_rx_descs()
754 if_softc_ctx_t scctx = &ctx->ifc_softc_ctx; in iflib_num_tx_descs() local
758 return (scctx->isc_ntxd[first_txq]); in iflib_num_tx_descs()
1180 if_softc_ctx_t scctx = &ctx->ifc_softc_ctx; in iflib_netmap_rxsync() local
1263 while (*cidxp >= scctx->isc_nrxd[0]) in iflib_netmap_rxsync()
1264 *cidxp -= scctx->isc_nrxd[0]; in iflib_netmap_rxsync()
1709 if_softc_ctx_t scctx = &ctx->ifc_softc_ctx; in iflib_txsd_alloc() local
1716 nsegments = scctx->isc_tx_nsegments; in iflib_txsd_alloc()
[all …]
/freebsd/sys/dev/ixl/
H A Dixl_txrx.c282 if_softc_ctx_t scctx; in ixl_tso_setup() local
292 scctx = txr->que->vsi->shared; in ixl_tso_setup()
325 return ((idx + 1) & (scctx->isc_ntxd[0]-1)); in ixl_tso_setup()
341 if_softc_ctx_t scctx = vsi->shared; in ixl_isc_txd_encap() local
370 mask = scctx->isc_ntxd[0] - 1; in ixl_isc_txd_encap()
454 if_softc_ctx_t scctx = que->vsi->shared; in ixl_get_tx_head() local
456 void *head = &txr->tx_base[scctx->isc_ntxd[0]]; in ixl_get_tx_head()
465 if_softc_ctx_t scctx = vsi->shared; in ixl_isc_txd_credits_update_hwb() local
475 credits += scctx->isc_ntxd[0]; in ixl_isc_txd_credits_update_hwb()
487 if_softc_ctx_t scctx = vsi->shared; in ixl_isc_txd_credits_update_dwb() local
[all …]
H A Dif_ixl.c407 if_softc_ctx_t scctx = pf->vsi.shared; in ixl_setup_ssctx() local
411 scctx->isc_ntxqsets_max = scctx->isc_nrxqsets_max = 1; in ixl_setup_ssctx()
412 scctx->isc_ntxqsets = scctx->isc_nrxqsets = 1; in ixl_setup_ssctx()
414 scctx->isc_ntxqsets_max = scctx->isc_nrxqsets_max = 128; in ixl_setup_ssctx()
416 scctx->isc_ntxqsets_max = scctx->isc_nrxqsets_max = 64; in ixl_setup_ssctx()
419 scctx->isc_txqsizes[0] = roundup2(scctx->isc_ntxd[0] in ixl_setup_ssctx()
421 scctx->isc_txrx = &ixl_txrx_hwb; in ixl_setup_ssctx()
423 scctx->isc_txqsizes[0] = roundup2(scctx->isc_ntxd[0] in ixl_setup_ssctx()
425 scctx->isc_txrx = &ixl_txrx_dwb; in ixl_setup_ssctx()
428 scctx->isc_txrx->ift_legacy_intr = ixl_intr; in ixl_setup_ssctx()
[all …]
H A Dixl_pf_iflib.c439 if_softc_ctx_t scctx = iflib_get_softc_ctx(vsi->ctx); in ixl_initialize_vsi() local
525 tctx.qlen = scctx->isc_ntxd[0]; in ixl_initialize_vsi()
540 (scctx->isc_ntxd[0] * sizeof(struct i40e_tx_desc)); in ixl_initialize_vsi()
580 rctx.rxmax = (scctx->isc_max_frame_size < max_rxmax) ? in ixl_initialize_vsi()
581 scctx->isc_max_frame_size : max_rxmax; in ixl_initialize_vsi()
586 rctx.qlen = scctx->isc_nrxd[0]; in ixl_initialize_vsi()
/freebsd/sys/dev/ixgbe/
H A Dif_ixv.c242 if_softc_ctx_t scctx = sc->shared; in ixv_if_tx_queues_alloc() local
266 …if (!(txr->tx_rsq = (qidx_t *)malloc(sizeof(qidx_t) * scctx->isc_ntxd[0], M_DEVBUF, M_NOWAIT | M_Z… in ixv_if_tx_queues_alloc()
270 for (j = 0; j < scctx->isc_ntxd[0]; j++) in ixv_if_tx_queues_alloc()
387 if_softc_ctx_t scctx; in ixv_if_attach_pre() local
399 scctx = sc->shared = iflib_get_softc_ctx(ctx); in ixv_if_attach_pre()
480 scctx->isc_ntxqsets_max = scctx->isc_nrxqsets_max = 2; in ixv_if_attach_pre()
483 scctx->isc_ntxqsets_max = scctx->isc_nrxqsets_max = 1; in ixv_if_attach_pre()
485 scctx->isc_txqsizes[0] = in ixv_if_attach_pre()
486 roundup2(scctx->isc_ntxd[0] * sizeof(union ixgbe_adv_tx_desc) + in ixv_if_attach_pre()
488 scctx->isc_rxqsizes[0] = in ixv_if_attach_pre()
[all …]
H A Dix_txrx.c172 if_softc_ctx_t scctx = sc->shared; in ixgbe_isc_txd_encap() local
191 ntxd = scctx->isc_ntxd[0]; in ixgbe_isc_txd_encap()
207 if (++i == scctx->isc_ntxd[0]) in ixgbe_isc_txd_encap()
227 if (++i == scctx->isc_ntxd[0]) { in ixgbe_isc_txd_encap()
266 if_softc_ctx_t scctx = sc->shared; in ixgbe_isc_txd_credits_update() local
292 ntxd = scctx->isc_ntxd[0]; in ixgbe_isc_txd_credits_update()
395 if_softc_ctx_t scctx = sc->shared; in ixgbe_isc_rxd_pkt_get() local
447 if ((scctx->isc_capenable & IFCAP_RXCSUM) != 0) in ixgbe_isc_rxd_pkt_get()
H A Dif_ix.c410 if_softc_ctx_t scctx = sc->shared; in ixgbe_if_tx_queues_alloc() local
438 txr->tx_rsq = (qidx_t *)malloc(sizeof(qidx_t) * scctx->isc_ntxd[0], M_IXGBE, M_NOWAIT | M_ZERO); in ixgbe_if_tx_queues_alloc()
443 for (j = 0; j < scctx->isc_ntxd[0]; j++) in ixgbe_if_tx_queues_alloc()
669 if_softc_ctx_t scctx = sc->shared; in ixgbe_initialize_receive_units() local
715 scctx->isc_nrxd[0] * sizeof(union ixgbe_adv_rx_desc)); in ixgbe_initialize_receive_units()
783 if_softc_ctx_t scctx = sc->shared; in ixgbe_initialize_transmit_units() local
799 scctx->isc_ntxd[0] * sizeof(union ixgbe_adv_tx_desc)); in ixgbe_initialize_transmit_units()
809 txr->tx_cidx_processed = scctx->isc_ntxd[0] - 1; in ixgbe_initialize_transmit_units()
810 for (int k = 0; k < scctx->isc_ntxd[0]; k++) in ixgbe_initialize_transmit_units()
880 if_softc_ctx_t scctx; in ixgbe_if_attach_pre() local
[all …]
/freebsd/sys/dev/bnxt/bnxt_en/
H A Dif_bnxt.c481 (softc->scctx->isc_nrxqsets * 2) + 1 + i; in bnxt_tx_queues_alloc()
485 softc->scctx->isc_ntxd[0]; in bnxt_tx_queues_alloc()
494 (softc->scctx->isc_nrxqsets * 2) + 1 + i; in bnxt_tx_queues_alloc()
497 softc->tx_rings[i].ring_size = softc->scctx->isc_ntxd[1]; in bnxt_tx_queues_alloc()
513 softc->nq_rings[i].ring.ring_size = softc->scctx->isc_ntxd[2]; in bnxt_tx_queues_alloc()
676 softc->scctx->isc_nrxd[0]; in bnxt_rx_queues_alloc()
687 softc->rx_rings[i].ring_size = softc->scctx->isc_nrxd[1]; in bnxt_rx_queues_alloc()
708 softc->ag_rings[i].ring_size = softc->scctx->isc_nrxd[2]; in bnxt_rx_queues_alloc()
2070 if_softc_ctx_t scctx; in bnxt_attach_pre()
2076 softc->scctx in bnxt_attach_pre()
2068 if_softc_ctx_t scctx; bnxt_attach_pre() local
[all...]
/freebsd/sys/dev/enetc/
H A Dif_enetc.c365 if_softc_ctx_t scctx; in enetc_attach_pre() local
370 scctx = iflib_get_softc_ctx(ctx); in enetc_attach_pre()
373 sc->shared = scctx; in enetc_attach_pre()
400 scctx->isc_txrx = &enetc_txrx; in enetc_attach_pre()
401 scctx->isc_tx_nsegments = ENETC_MAX_SCATTER; in enetc_attach_pre()
402 enetc_max_nqueues(sc, &scctx->isc_nrxqsets_max, &scctx->isc_ntxqsets_max); in enetc_attach_pre()
404 if (scctx->isc_ntxd[0] % ENETC_DESC_ALIGN != 0) { in enetc_attach_pre()
411 if (scctx->isc_nrxd[0] % ENETC_DESC_ALIGN != 0) { in enetc_attach_pre()
418 scctx->isc_txqsizes[0] = scctx->isc_ntxd[0] * sizeof(union enetc_tx_bd); in enetc_attach_pre()
419 scctx->isc_rxqsizes[0] = scctx->isc_nrxd[0] * sizeof(union enetc_rx_bd); in enetc_attach_pre()
[all …]

12