/titanic_50/usr/src/uts/common/io/bnxe/ |
H A D | bnxe_rx.c | 63 lm_rx_chain_t * pLmRxChain = &LM_RXQ(&pUM->lm_dev, idx); in BnxeRxPostBuffers() 82 lm_return_packet_bytes(&pUM->lm_dev, idx, returnedBytes); in BnxeRxPostBuffers() 108 lm_post_buffers(&pUM->lm_dev, idx, NULL, 0); in BnxeRxPostBuffers() 159 if (pUM->rxBufSignature[LM_CHAIN_IDX_CLI(&pUM->lm_dev, idx)] != in BnxeRxPktFree() 215 if ((cnt = pUM->rxq[FCOE_CID(&pUM->lm_dev)].rxBufUpInStack) == 0) in BnxeWaitForPacketsFromClient() 227 cnt, FCOE_CID(&pUM->lm_dev)); in BnxeWaitForPacketsFromClient() 237 LM_FOREACH_RSS_IDX(&pUM->lm_dev, idx) in BnxeWaitForPacketsFromClient() 305 pktsRxed = lm_get_packets_rcvd(&pUM->lm_dev, idx, &tmpList, &sp_cqes); in BnxeRxRingProcess() 317 lm_complete_ramrods(&pUM->lm_dev, &sp_cqes); in BnxeRxRingProcess() 327 pLmRxChain = &LM_RXQ(&pUM->lm_dev, idx); in BnxeRxRingProcess() [all …]
|
H A D | bnxe_fcoe.c | 55 lm_fc_del_fcoe_state(&pUM->lm_dev, &pFcoeState->lm_fcoe); in BnxeFcoeFreeResc() 58 lm_fc_free_con_resc(&pUM->lm_dev, &pFcoeState->lm_fcoe); in BnxeFcoeFreeResc() 149 if (lm_fc_init(&pUM->lm_dev, in BnxeFcoeInitWqeWork() 274 rc = lm_fc_init_fcoe_state(&pUM->lm_dev, in BnxeFcoeOffloadConnWqeWork() 275 &pUM->lm_dev.fcoe_info.run_time.state_blk, in BnxeFcoeOffloadConnWqeWork() 292 rc = lm_fc_alloc_con_resc(&pUM->lm_dev, &pFcoeState->lm_fcoe); in BnxeFcoeOffloadConnWqeWork() 296 lm_fc_init_fcoe_context(&pUM->lm_dev, &pFcoeState->lm_fcoe); in BnxeFcoeOffloadConnWqeWork() 297 lm_fc_post_offload_ramrod(&pUM->lm_dev, &pFcoeState->lm_fcoe); in BnxeFcoeOffloadConnWqeWork() 423 lm_cid_cookie(&pUM->lm_dev, in BnxeFcoeEnableConnWqeWork() 432 if (lm_fc_post_enable_ramrod(&pUM->lm_dev, in BnxeFcoeEnableConnWqeWork() [all …]
|
H A D | bnxe_intr.c | 86 LM_FOREACH_SB_ID(&pUM->lm_dev, idx) in BnxeFindDmaHandles() 88 if (CHIP_IS_E1x(&pUM->lm_dev)) in BnxeFindDmaHandles() 91 … pUM->lm_dev.vars.status_blocks_arr[idx].hc_status_block_data.e1x_sb_data.common.host_sb_addr.lo; in BnxeFindDmaHandles() 93 … pUM->lm_dev.vars.status_blocks_arr[idx].hc_status_block_data.e1x_sb_data.common.host_sb_addr.hi; in BnxeFindDmaHandles() 98 … pUM->lm_dev.vars.status_blocks_arr[idx].hc_status_block_data.e2_sb_data.common.host_sb_addr.lo; in BnxeFindDmaHandles() 100 … pUM->lm_dev.vars.status_blocks_arr[idx].hc_status_block_data.e2_sb_data.common.host_sb_addr.hi; in BnxeFindDmaHandles() 128 pUM->lm_dev.vars.gen_sp_status_block.blk_phy_address.as_ptr) in BnxeFindDmaHandles() 152 u32_t igu_id = (FCOE_CID(&pUM->lm_dev) == idx) ? in BnxeIntrIguSbEnable() 153 LM_NON_RSS_SB(&pUM->lm_dev) : idx; in BnxeIntrIguSbEnable() 166 lm_int_ack_sb_enable(&pUM->lm_dev, igu_id); in BnxeIntrIguSbEnable() [all …]
|
H A D | bnxe_hw.c | 113 if ((rc = lm_wait_config_rss_done(&pUM->lm_dev)) != LM_STATUS_SUCCESS) in BnxeRssEnable() 137 if ((rc = lm_wait_config_rss_done(&pUM->lm_dev)) != LM_STATUS_SUCCESS) in BnxeRssDisable() 155 lm_device_t * pLM = &pUM->lm_dev; in BnxeHwReqPhyMediumSettings() 577 lm_device_t * pLM = &pUM->lm_dev; in BnxeHwReqPhyFlowSettings() 655 lm_device_t * pLM = &pUM->lm_dev; in BnxeUpdatePhy() 663 if (IS_PMF(&pUM->lm_dev)) in BnxeUpdatePhy() 699 if (IS_MF_AFEX_MODE(&pUM->lm_dev)) in BnxeUpdatePhy() 701 lm_niv_set_loopback_mode(&pUM->lm_dev, FALSE); in BnxeUpdatePhy() 732 rc = lm_set_mac_addr(&pUM->lm_dev, in BnxeMacAddress() 735 LM_CLI_CID(&pUM->lm_dev, cliIdx), in BnxeMacAddress() [all …]
|
H A D | bnxe_main.c | 83 switch (CHIP_NUM(&pUM->lm_dev) >> 16) in BnxeChipName() 109 if (IS_MULTI_VNIC(&pUM->lm_dev)) in BnxeProtoSupport() 114 if (pUM->lm_dev.hw_info.mcp_detected == 1) in BnxeProtoSupport() 116 if (pUM->lm_dev.params.mf_proto_support_flags & in BnxeProtoSupport() 122 if (pUM->lm_dev.params.mf_proto_support_flags & in BnxeProtoSupport() 141 port_feature_config_sf = (pUM->lm_dev.hw_info.port_feature_config & in BnxeProtoSupport() 158 if (pUM->lm_dev.params.max_func_fcoe_cons == 0) in BnxeProtoSupport() 170 return ((pUM->lm_dev.params.mf_mode == MULTI_FUNCTION_AFEX) && in BnxeProtoFcoeAfex() 206 mm_unmap_io_space(&pUM->lm_dev, in BnxeBarMemDestroy() 215 lm_device_t * pLM = &pUM->lm_dev; in BnxeMutexInit() [all …]
|
H A D | bnxe_cfg.c | 102 lm_device_t * pLM = &pUM->lm_dev; in BnxeCfg_LLDP_DCBX() 439 pUM->lm_dev.params.mtu[LM_CLI_IDX_NDIS] = pUM->devParams.mtu[LM_CLI_IDX_NDIS]; in BnxeCfgInit() 442 pUM->lm_dev.params.mtu[LM_CLI_IDX_FCOE] = LM_MTU_FCOE_DEFAULT; in BnxeCfgInit() 444 pUM->lm_dev.params.mtu_max = (pUM->lm_dev.params.mtu[LM_CLI_IDX_NDIS] > in BnxeCfgInit() 445 pUM->lm_dev.params.mtu[LM_CLI_IDX_FCOE]) ? in BnxeCfgInit() 446 pUM->lm_dev.params.mtu[LM_CLI_IDX_NDIS] : in BnxeCfgInit() 447 pUM->lm_dev.params.mtu[LM_CLI_IDX_FCOE]; in BnxeCfgInit() 474 pUM->devParams.numRings = (IS_MULTI_VNIC(&pUM->lm_dev)) ? in BnxeCfgInit() 482 if (pUM->devParams.numRings > LM_MAX_RSS_CHAINS(&pUM->lm_dev)) in BnxeCfgInit() 484 pUM->devParams.numRings = LM_MAX_RSS_CHAINS(&pUM->lm_dev); in BnxeCfgInit() [all …]
|
H A D | bnxe_tx.c | 174 lm_device_t * pLM = &pUM->lm_dev; in BnxeTxSendWaitingPkt() 220 lm_device_t * pLM = &pUM->lm_dev; in BnxeTxRingProcess() 230 pktsTxed = lm_get_packets_sent(&pUM->lm_dev, idx, &tmpList); in BnxeTxRingProcess() 233 BnxeCheckAccHandle(pUM->lm_dev.vars.reg_handle[BAR_0]) != DDI_FM_OK) in BnxeTxRingProcess() 263 pLmTxChain = &pUM->lm_dev.tx_info.chain[idx]; in BnxeTxRingProcess() 835 lm_device_t * pLM = &pUM->lm_dev; in BnxeTxSendMblk() 905 (BNXE_FCOE(pUM) && (idx == FCOE_CID(&pUM->lm_dev))) ? in BnxeTxSendMblk() 1054 lm_abort(&pUM->lm_dev, ABORT_OP_INDICATE_TX_CHAIN, idx); in BnxeTxPktsAbortIdx() 1072 BnxeTxPktsAbortIdx(pUM, FCOE_CID(&pUM->lm_dev)); in BnxeTxPktsAbort() 1077 LM_FOREACH_TSS_IDX(&pUM->lm_dev, idx) in BnxeTxPktsAbort() [all …]
|
H A D | bnxe_gld.c | 124 pLM = &pUM->lm_dev; in BnxeMacStats() 691 COPY_ETH_ADDRESS(pMacAddr, pUM->lm_dev.params.mac_addr); in BnxeRxRingGroupAddMac() 694 pUM->lm_dev.params.mac_addr); in BnxeRxRingGroupAddMac() 735 if (!IS_ETH_ADDRESS_EQUAL(pMacAddr, pUM->lm_dev.params.mac_addr)) in BnxeRxRingGroupRemMac() 742 pUM->lm_dev.params.mac_addr); in BnxeRxRingGroupRemMac() 744 memset(pUM->lm_dev.params.mac_addr, 0, sizeof(pUM->lm_dev.params.mac_addr)); in BnxeRxRingGroupRemMac() 825 COPY_ETH_ADDRESS(pMacAddr, pUM->lm_dev.params.mac_addr); in BnxeMacUnicast() 828 pUM->lm_dev.params.mac_addr); in BnxeMacUnicast() 925 LM_FOREACH_RSS_IDX(&pUM->lm_dev, idx) in BnxeMacResources() 944 LM_BAR_RD32_OFFSET(&pUM->lm_dev, 0, pData->offset, &pData->value); in BnxeReadReg() [all …]
|
H A D | bnxe_timer.c | 47 lm_device_t * pLM = &pUM->lm_dev; in BnxeTimer() 83 pUM->lm_dev.vars.stats.stats_collect.timer_wakeup = 0; /* reset */ in BnxeTimerStart()
|
H A D | bnxe_mm.c | 210 pLM->params.max_func_fcoe_cons = pUM->lm_dev.hw_info.max_port_fcoe_conn; in mm_get_user_config() 1004 if (pUM->lm_dev.vars.flow_control & LM_FLOW_CONTROL_RECEIVE_PAUSE) in BnxeLinkStatus() 1015 if (pUM->lm_dev.vars.flow_control & LM_FLOW_CONTROL_TRANSMIT_PAUSE) in BnxeLinkStatus() 1496 port = MM_PORT_NUM(&pUM->lm_dev); in mm_event_log_generic_arg_fwd()
|
H A D | bnxe_kstat.c | 598 ((pUM->lm_dev.params.mf_mode == SINGLE_FUNCTION) ? "Single" : in BnxeKstatUpdate() 599 (pUM->lm_dev.params.mf_mode == MULTI_FUNCTION_SD) ? "MF-SD" : in BnxeKstatUpdate() 600 (pUM->lm_dev.params.mf_mode == MULTI_FUNCTION_SI) ? "MF-SI" : in BnxeKstatUpdate() 601 (pUM->lm_dev.params.mf_mode == MULTI_FUNCTION_AFEX) ? "MF-AFEX" : in BnxeKstatUpdate() 604 …pStats->multiFunctionVnics.value.ui64 = IS_MULTI_VNIC(&pUM->lm_dev) ? pLM->params.vnics_per_port :… in BnxeKstatUpdate() 667 pStats->mtuL2.value.ui64 = pUM->lm_dev.params.mtu[LM_CLI_IDX_NDIS]; in BnxeKstatLinkUpdate() 669 pUM->lm_dev.params.mtu[LM_CLI_IDX_FCOE] : in BnxeKstatLinkUpdate() 1034 pStats->mtu.value.ui64 = pUM->lm_dev.params.mtu[LM_CLI_IDX_FCOE]; in BnxeKstatFcoeUpdate()
|
H A D | bnxe.h | 574 lm_device_t lm_dev; /* must be the first element */ member
|