Lines Matching refs:scctx
851 if_softc_ctx_t scctx = sc->shared; in em_get_regs() local
854 int ntxd = scctx->isc_ntxd[0]; in em_get_regs()
855 int nrxd = scctx->isc_nrxd[0]; in em_get_regs()
958 if_softc_ctx_t scctx; in em_if_attach_pre() local
971 scctx = sc->shared = iflib_get_softc_ctx(ctx); in em_if_attach_pre()
1036 scctx->isc_tx_nsegments = EM_MAX_SCATTER; in em_if_attach_pre()
1037 scctx->isc_nrxqsets_max = in em_if_attach_pre()
1038 scctx->isc_ntxqsets_max = em_set_num_queues(ctx); in em_if_attach_pre()
1041 scctx->isc_ntxqsets_max); in em_if_attach_pre()
1044 scctx->isc_txqsizes[0] = roundup2(scctx->isc_ntxd[0] * in em_if_attach_pre()
1046 scctx->isc_rxqsizes[0] = roundup2(scctx->isc_nrxd[0] * in em_if_attach_pre()
1048 scctx->isc_txd_size[0] = sizeof(union e1000_adv_tx_desc); in em_if_attach_pre()
1049 scctx->isc_rxd_size[0] = sizeof(union e1000_adv_rx_desc); in em_if_attach_pre()
1050 scctx->isc_txrx = &igb_txrx; in em_if_attach_pre()
1051 scctx->isc_tx_tso_segments_max = EM_MAX_SCATTER; in em_if_attach_pre()
1052 scctx->isc_tx_tso_size_max = EM_TSO_SIZE; in em_if_attach_pre()
1053 scctx->isc_tx_tso_segsize_max = EM_TSO_SEG_SIZE; in em_if_attach_pre()
1054 scctx->isc_capabilities = scctx->isc_capenable = IGB_CAPS; in em_if_attach_pre()
1055 scctx->isc_tx_csum_flags = CSUM_TCP | CSUM_UDP | CSUM_TSO | in em_if_attach_pre()
1058 scctx->isc_tx_csum_flags |= CSUM_SCTP | CSUM_IP6_SCTP; in em_if_attach_pre()
1064 scctx->isc_msix_bar = pci_msix_table_bar(dev); in em_if_attach_pre()
1066 scctx->isc_txqsizes[0] = roundup2(scctx->isc_ntxd[0] * in em_if_attach_pre()
1068 scctx->isc_rxqsizes[0] = roundup2(scctx->isc_nrxd[0] * in em_if_attach_pre()
1070 scctx->isc_txd_size[0] = sizeof(struct e1000_tx_desc); in em_if_attach_pre()
1071 scctx->isc_rxd_size[0] = sizeof(union e1000_rx_desc_extended); in em_if_attach_pre()
1072 scctx->isc_txrx = &em_txrx; in em_if_attach_pre()
1073 scctx->isc_tx_tso_segments_max = EM_MAX_SCATTER; in em_if_attach_pre()
1074 scctx->isc_tx_tso_size_max = EM_TSO_SIZE; in em_if_attach_pre()
1075 scctx->isc_tx_tso_segsize_max = EM_TSO_SEG_SIZE; in em_if_attach_pre()
1076 scctx->isc_capabilities = scctx->isc_capenable = EM_CAPS; in em_if_attach_pre()
1077 scctx->isc_tx_csum_flags = CSUM_TCP | CSUM_UDP | CSUM_IP_TSO | in em_if_attach_pre()
1081 scctx->isc_capenable &= ~IFCAP_TSO; in em_if_attach_pre()
1089 scctx->isc_capenable &= ~IFCAP_TSO; in em_if_attach_pre()
1096 scctx->isc_msix_bar = pci_msix_table_bar(dev); in em_if_attach_pre()
1098 scctx->isc_msix_bar = -1; in em_if_attach_pre()
1099 scctx->isc_disable_msix = 1; in em_if_attach_pre()
1102 scctx->isc_txqsizes[0] = roundup2((scctx->isc_ntxd[0] + 1) * in em_if_attach_pre()
1104 scctx->isc_rxqsizes[0] = roundup2((scctx->isc_nrxd[0] + 1) * in em_if_attach_pre()
1106 scctx->isc_txd_size[0] = sizeof(struct e1000_tx_desc); in em_if_attach_pre()
1107 scctx->isc_rxd_size[0] = sizeof(struct e1000_rx_desc); in em_if_attach_pre()
1108 scctx->isc_txrx = &lem_txrx; in em_if_attach_pre()
1109 scctx->isc_tx_tso_segments_max = EM_MAX_SCATTER; in em_if_attach_pre()
1110 scctx->isc_tx_tso_size_max = EM_TSO_SIZE; in em_if_attach_pre()
1111 scctx->isc_tx_tso_segsize_max = EM_TSO_SEG_SIZE; in em_if_attach_pre()
1112 scctx->isc_capabilities = scctx->isc_capenable = LEM_CAPS; in em_if_attach_pre()
1114 scctx->isc_capabilities |= IFCAP_TSO6; in em_if_attach_pre()
1115 scctx->isc_tx_csum_flags = CSUM_TCP | CSUM_UDP | CSUM_IP_TSO | in em_if_attach_pre()
1119 scctx->isc_capenable &= ~IFCAP_TSO; in em_if_attach_pre()
1124 scctx->isc_capabilities &= ~IFCAP_VLAN_HWTAGGING; in em_if_attach_pre()
1125 scctx->isc_capenable = scctx->isc_capabilities; in em_if_attach_pre()
1129 scctx->isc_capabilities &= ~(IFCAP_HWCSUM | in em_if_attach_pre()
1133 scctx->isc_capenable = scctx->isc_capabilities; in em_if_attach_pre()
1139 scctx->isc_capabilities &= in em_if_attach_pre()
1141 scctx->isc_capenable = scctx->isc_capabilities; in em_if_attach_pre()
1145 scctx->isc_capabilities &= ~IFCAP_HWCSUM_IPV6; in em_if_attach_pre()
1146 scctx->isc_capenable = scctx->isc_capabilities; in em_if_attach_pre()
1154 scctx->isc_capenable &= ~(IFCAP_HWCSUM | in em_if_attach_pre()
1158 scctx->isc_msix_bar = 0; in em_if_attach_pre()
1258 scctx->isc_max_frame_size = hw->mac.max_frame_size = in em_if_attach_pre()
1346 scctx->isc_capenable &= ~IFCAP_WOL; in em_if_attach_pre()
1348 scctx->isc_capenable |= IFCAP_WOL_MAGIC; in em_if_attach_pre()
1472 if_softc_ctx_t scctx = iflib_get_softc_ctx(ctx); in em_if_mtu_set() local
1513 scctx->isc_max_frame_size = sc->hw.mac.max_frame_size = in em_if_mtu_set()
1531 if_softc_ctx_t scctx = sc->shared; in em_if_init() local
1571 txr->tx_cidx_processed = scctx->isc_ntxd[0] - 1; in em_if_init()
3461 if_softc_ctx_t scctx = sc->shared; in em_setup_interface() local
3467 if_setsendqlen(ifp, scctx->isc_ntxd[0] - 1); in em_setup_interface()
3508 if_softc_ctx_t scctx = sc->shared; in em_if_tx_queues_alloc() local
3534 (qidx_t *) malloc(sizeof(qidx_t) * scctx->isc_ntxd[0], in em_if_tx_queues_alloc()
3541 for (j = 0; j < scctx->isc_ntxd[0]; j++) in em_if_tx_queues_alloc()
3637 if_softc_ctx_t scctx = sc->shared; in em_initialize_transmit_unit() local
3660 scctx->isc_ntxd[0] * sizeof(struct e1000_tx_desc)); in em_initialize_transmit_unit()
3775 if_softc_ctx_t scctx = sc->shared; in em_initialize_receive_unit() local
3893 scctx->isc_nrxd[0] * in em_initialize_receive_unit()
3926 psize = scctx->isc_max_frame_size; in em_initialize_receive_unit()
3968 scctx->isc_nrxd[0] * in em_initialize_receive_unit()
4345 if_softc_ctx_t scctx = iflib_get_softc_ctx(ctx); in em_automask_tso() local
4350 scctx->isc_capenable & IFCAP_TSO) { in em_automask_tso()
4353 sc->tso_automasked = scctx->isc_capenable & IFCAP_TSO; in em_automask_tso()
4354 scctx->isc_capenable &= ~IFCAP_TSO; in em_automask_tso()
4361 scctx->isc_capenable |= sc->tso_automasked; in em_automask_tso()