Home
last modified time | relevance | path

Searched refs:sb_id (Results 1 – 16 of 16) sorted by relevance

/titanic_44/usr/src/uts/common/io/bnxe/
H A Dbnxe_intr.c456 u8_t sb_id = LM_NON_RSS_SB(pLM); in BnxePollRxRingFCOE() local
460 sb_id, drv_rss_id); in BnxePollRxRingFCOE()
463 ddi_dma_sync(pUM->statusBlocks[sb_id]->dmaHandle, in BnxePollRxRingFCOE()
467 BnxeCheckDmaHandle(pUM->statusBlocks[sb_id]->dmaHandle) != DDI_FM_OK) in BnxePollRxRingFCOE()
472 pUM->intrSbPollCnt[sb_id]++; in BnxePollRxRingFCOE()
474 if (lm_is_sb_updated(pLM, sb_id) == 0) in BnxePollRxRingFCOE()
477 pUM->intrSbPollNoChangeCnt[sb_id]++; in BnxePollRxRingFCOE()
482 lm_update_fp_hc_indices(pLM, sb_id, &activity_flg, &drv_rss_id); in BnxePollRxRingFCOE()
487 sb_id, activity_flg); in BnxePollRxRingFCOE()
500 u8_t sb_id, in BnxeServiceSbIntr() argument
[all …]
H A Dbnxe_hw.c1019 int sb_id; in BnxeEstablishHwConn() local
1022 sb_id = lm_sb_id_from_chain(&pUM->lm_dev, cid); in BnxeEstablishHwConn()
1070 rc = lm_establish_eth_con(pLM, cid, sb_id, in BnxeEstablishHwConn()
/titanic_44/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_sb.c129 u8_t sb_id = 0 ; in lm_set_interrupt_moderation() local
138 LM_FOREACH_SB_ID(pdev, sb_id) in lm_set_interrupt_moderation()
140 …if ((lm_status = lm_set_hc_flag(pdev, sb_id, HC_INDEX_TOE_RX_CQ_CONS, is_enable)) != LM_STATUS_SUC… in lm_set_interrupt_moderation()
142 …if ((lm_status = lm_set_hc_flag(pdev, sb_id, HC_INDEX_TOE_TX_CQ_CONS, is_enable)) != LM_STATUS_SUC… in lm_set_interrupt_moderation()
144 …if ((lm_status = lm_set_hc_flag(pdev, sb_id, HC_INDEX_ETH_RX_CQ_CONS, is_enable)) != LM_STATUS_SUC… in lm_set_interrupt_moderation()
146 …if ((lm_status = lm_set_hc_flag(pdev, sb_id, HC_INDEX_ETH_TX_CQ_CONS_COS0, is_enable)) != LM_STATU… in lm_set_interrupt_moderation()
148 …if ((lm_status = lm_set_hc_flag(pdev, sb_id, HC_INDEX_ETH_TX_CQ_CONS_COS1, is_enable)) != LM_STATU… in lm_set_interrupt_moderation()
150 …if ((lm_status = lm_set_hc_flag(pdev, sb_id, HC_INDEX_ETH_TX_CQ_CONS_COS2, is_enable)) != LM_STATU… in lm_set_interrupt_moderation()
211 lm_status_t lm_set_hc_flag(struct _lm_device_t *pdev, u8_t sb_id, u8_t idx, u8_t is_enable) in lm_set_hc_flag() argument
219 …hc_index_entry = pdev->vars.status_blocks_arr[sb_id].hc_status_block_data.e1x_sb_data.index_data +… in lm_set_hc_flag()
[all …]
H A Dlm_resc.c50 IN u8_t sb_id, in lm_clear_chain_sb_cons_idx() argument
72 sb_lock_id = lm_sb_id_from_chain(pdev, sb_id); in lm_clear_chain_sb_cons_idx()
93 fw_sb_id = LM_FW_SB_ID(pdev, sb_id); in lm_clear_chain_sb_cons_idx()
106 if (!LM_SB_ID_VALID(pdev, sb_id)) in lm_clear_chain_sb_cons_idx()
645 u32_t sb_id = RSS_ID_TO_SB_ID(CHAIN_TO_RSS_ID(pdev,cid)); in lm_setup_txq() local
646 …_t byte_counter_id = CHIP_IS_E1x(pdev)? LM_FW_SB_ID(pdev, sb_id) : LM_FW_DHC_QZONE_ID(pdev, sb_id); in lm_setup_txq()
649 if( sb_id >= ARRSIZE(pdev->vars.status_blocks_arr) ) in lm_setup_txq()
651 DbgBreakIf( sb_id >= ARRSIZE(pdev->vars.status_blocks_arr) ) ; in lm_setup_txq()
655 sb_indexes = lm_get_sb_indexes(pdev, (u8_t)sb_id); in lm_setup_txq()
685 …u32_t sb_id = RSS_ID_TO_SB_ID(CHAIN_TO_RSS_ID(pdev,ci… in lm_setup_rxq() local
[all …]
H A Dcontext.h86 void lm_init_connection_context(struct _lm_device_t *pdev, u32_t const sw_cid, u8_t sb_id);
H A Dlm_sp.c237 IN const u8_t sb_id) in lm_eth_init_client_init_rx_data() argument
248 rx->status_block_id = LM_FW_SB_ID(pdev, sb_id); in lm_eth_init_client_init_rx_data()
336 rx->client_qzone_id = LM_FW_DHC_QZONE_ID(pdev, sb_id); in lm_eth_init_client_init_rx_data()
381 IN const u8_t sb_id) in lm_eth_init_client_init_tx_data() argument
426 tx->tx_status_block_id = LM_FW_SB_ID(pdev, sb_id); in lm_eth_init_client_init_tx_data()
522 IN const u8_t sb_id) in lm_eth_init_tx_queue_data() argument
569 sb_id); in lm_eth_init_tx_queue_data()
574 lm_status_t lm_eth_init_client_init_data(lm_device_t *pdev, u8_t cid, u8_t sb_id) in lm_eth_init_client_init_data() argument
609 sb_id); in lm_eth_init_client_init_data()
615 sb_id); in lm_eth_init_client_init_data()
[all …]
H A Dlm_hw_init_reset.c1293 u8_t sb_id = 0; in lm_reset_function_part() local
1374 LM_FOREACH_SB_ID(pdev, sb_id) in lm_reset_function_part()
1376 LM_INTMEM_WRITE8(pdev, CSTORM_STATUS_BLOCK_DATA_STATE_OFFSET(LM_FW_SB_ID(pdev, sb_id)), in lm_reset_function_part()
3449 u8_t sb_id; in init_igu_func() local
3485 for (sb_id = 0; sb_id < LM_IGU_SB_CNT(pdev); sb_id++) in init_igu_func()
3487 …prod_idx = (IGU_BASE_NDSB(pdev) + sb_id)*num_segs; /* bc-assumption consecutive pfs, norm-no assum… in init_igu_func()
3493 lm_int_ack_sb_enable(pdev, sb_id); in init_igu_func()
3496 lm_int_igu_sb_cleanup(pdev, IGU_BASE_NDSB(pdev) + sb_id); in init_igu_func()
4034 eq_data.sb_id = DEF_STATUS_BLOCK_INDEX; in lm_init_intmem_eq()
H A Dbnxe_context.c989 void lm_init_connection_context(struct _lm_device_t *pdev, u32_t const sw_cid, u8_t sb_id) in lm_init_connection_context() argument
/titanic_44/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/basic_vf/
H A Dlm_vf.c210 u8_t sb_id = 0 ; in lm_vf_setup_alloc_resc() local
230 LM_FOREACH_SB_ID(pdev, sb_id) in lm_vf_setup_alloc_resc()
234 …pdev->vars.status_blocks_arr[sb_id].host_hc_status_block.e2_sb = mm_alloc_phys_mem(pdev, mem_size,… in lm_vf_setup_alloc_resc()
235 …pdev->vars.status_blocks_arr[sb_id].hc_status_block_data.e2_sb_data.common.host_sb_addr.lo = sb_ph… in lm_vf_setup_alloc_resc()
236 …pdev->vars.status_blocks_arr[sb_id].hc_status_block_data.e2_sb_data.common.host_sb_addr.hi = sb_ph… in lm_vf_setup_alloc_resc()
238 if CHK_NULL(pdev->vars.status_blocks_arr[sb_id].host_hc_status_block.e1x_sb) in lm_vf_setup_alloc_resc()
243 … mm_mem_zero((void *)(pdev->vars.status_blocks_arr[sb_id].host_hc_status_block.e2_sb), mem_size); in lm_vf_setup_alloc_resc()
514 u8_t sb_id; in lm_vf_enable_igu_int() local
547 for (sb_id = 0; sb_id < LM_IGU_SB_CNT(pdev); sb_id++) { in lm_vf_enable_igu_int()
548 …prod_idx = (IGU_BASE_NDSB(pdev) + sb_id)*num_segs; /* bc-assumption consecutive pfs, norm-no assum… in lm_vf_enable_igu_int()
[all …]
/titanic_44/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/include/
H A Dlm5710.h1052 #define LM_SB_ID_VALID(pdev, sb_id) ((sb_id) < LM_SB_CNT(pdev)) argument
1053 #define LM_FOREACH_SB_ID(pdev, sb_id) \ argument
1054 for ((sb_id) = 0; (sb_id) < LM_SB_CNT(pdev); (sb_id)++)
1178 #define LM_FW_DHC_QZONE_ID(pdev, sb_id) (pdev->params.fw_qzone_id[sb_id]) argument
1179 …#define LM_FW_SB_ID(pdev, sb_id) ((sb_id == DEF_STATUS_BLOCK_INDEX)? DEF_STATUS_BLOCK_INDEX: pdev-… argument
1515 #define IGU_PF_NDSB(pdev, sb_id) (IGU_BASE_NDSB(pdev) + sb_id) argument
1527 #define IGU_VF_NDSB(pdev, sb_id) ((pdev)->hw_info.intr_blk_info.igu_info.igu_sb[sb_id]) argument
1529 … #define IGU_SB(pdev, sb_id) ((pdev)->hw_info.intr_blk_info.igu_info.igu_map.igu_blocks_set[sb_id]) argument
3229 void lm_setup_ndsb_index(struct _lm_device_t *pdev, u8_t sb_id, u8_t idx, u8_t sm_idx, u8_t timeout…
3300 static __inline u16_t lm_get_sb_running_index(lm_device_t *pdev, u8_t sb_id, u8_t sm_idx) in lm_get_sb_running_index() argument
[all …]
H A Dlm.h1601 lm_status_t lm_set_hc_flag(struct _lm_device_t *pdev, u8_t sb_id, u8_t idx, u8_t is_enable);
/titanic_44/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/channel_vf/
H A Dlm_vf.c1289 u16_t lm_vf_pf_get_sb_running_index(lm_device_t *pdev, u8_t sb_id, u8_t sm_idx) in lm_vf_pf_get_sb_running_index() argument
1296 …running_index = pdev->vars.status_blocks_arr[sb_id].host_hc_status_block.vf_sb[p_sw_resp->pfdev_in… in lm_vf_pf_get_sb_running_index()
1301 …running_index = pdev->vars.status_blocks_arr[sb_id].host_hc_status_block.vf_sb[p_hw_resp->pfdev_in… in lm_vf_pf_get_sb_running_index()
1312 u16_t lm_vf_pf_get_sb_index(lm_device_t *pdev, u8_t sb_id, u8_t idx) in lm_vf_pf_get_sb_index() argument
1318 DbgBreakIf(!(p_sw_resp && (sb_id < p_sw_resp->pfdev_info.indices_per_sb))); in lm_vf_pf_get_sb_index()
1323 DbgBreakIf(!(p_hw_resp && (sb_id < p_hw_resp->pfdev_info.indices_per_sb))); in lm_vf_pf_get_sb_index()
1329 return mm_le16_to_cpu(pdev->vars.status_blocks_arr[sb_id].host_hc_status_block.vf_sb[sb_id]); in lm_vf_pf_get_sb_index()
1813 u8_t sb_id; in lm_vf_pf_init_vf() local
1833 LM_FOREACH_SB_ID(pdev,sb_id) { in lm_vf_pf_init_vf()
1834 …mess->sb_addr[sb_id] = pdev->vars.status_blocks_arr[sb_id].hc_status_block_data.vf_sb_phy_address.… in lm_vf_pf_init_vf()
[all …]
/titanic_44/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/common/
H A Dlm_vf_common.h269 u16_t lm_vf_pf_get_sb_running_index(struct _lm_device_t *pdev, u8_t sb_id, u8_t sm_idx);
270 u16_t lm_vf_pf_get_sb_index(struct _lm_device_t *pdev, u8_t sb_id, u8_t idx);
/titanic_44/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/
H A Dlm_l4sp.c517 u32_t sb_id; in lm_tcp_init_resc() local
547 sb_id = RSS_ID_TO_SB_ID(i); in lm_tcp_init_resc()
551 sb_id = LM_NON_RSS_SB(pdev); in lm_tcp_init_resc()
554 sb_indexes = lm_get_sb_indexes(pdev, (u8_t)sb_id); in lm_tcp_init_resc()
576 sb_id = RSS_ID_TO_SB_ID(i); in lm_tcp_init_resc()
580 sb_id = LM_NON_RSS_SB(pdev); in lm_tcp_init_resc()
583 byte_counter_id = CHIP_IS_E1x(pdev)? LM_FW_SB_ID(pdev, sb_id) : LM_FW_DHC_QZONE_ID(pdev, sb_id); in lm_tcp_init_resc()
594 sb_indexes = lm_get_sb_indexes(pdev, (u8_t)sb_id); in lm_tcp_init_resc()
/titanic_44/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/
H A D5710_hsi.h5911 u8_t sb_id /* Status block id (EQ consumer) */; member
8155 u8_t sb_id /* status block ID */; member
8159 u8_t sb_id /* status block ID */; member
/titanic_44/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l5/
H A Dlm_l5.c1011 ramrod_params->fcoe_init.sb_id = HC_INDEX_FCOE_EQ_CONS; in lm_fc_init()