Home
last modified time | relevance | path

Searched refs:PFDEV (Results 1 – 21 of 21) sorted by relevance

/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/basic_vf/
H A Dlm_vf.c11 …res = (PFDEV(pdev)->vars.connections[VF_TO_PF_CID(pdev,LM_SW_LEADING_RSS_CID(pdev))].con_state != … in lm_vf_is_function_after_flr()
86 bar_addr->as_u64 = PFDEV(pdev)->hw_info.sriov_info.vf_bars[bar_num].as_u64 + in lm_vf_get_bar_offset()
108 if (pdev->params.vf_num_in_path < PFDEV(pdev)->hw_info.sriov_info.first_vf_in_pf) { in lm_vf_get_vf_id()
109 DbgBreakIf(pdev->params.vf_num_in_path < PFDEV(pdev)->hw_info.sriov_info.first_vf_in_pf); in lm_vf_get_vf_id()
112 …pdev->params.vf_num_in_pf = pdev->params.vf_num_in_path - PFDEV(pdev)->hw_info.sriov_info.first_vf… in lm_vf_get_vf_id()
287PFDEV(pdev)->context_info->array[VF_TO_PF_CID(pdev,index)].cid_resc.mapped_cid_bar_addr = in lm_vf_init_dev_info()
304 MM_ACQUIRE_PF_LOCK(PFDEV(pdev)); in lm_vf_allocate_resc_in_pf()
306 pdev->params.base_fw_client_id = lm_vf_get_free_clients(PFDEV(pdev),pdev->params.sb_cnt); in lm_vf_allocate_resc_in_pf()
307 pdev->params.base_fw_ndsb = lm_vf_get_free_sbs(PFDEV(pdev),pdev->params.sb_cnt); in lm_vf_allocate_resc_in_pf()
308 pdev->params.base_cam_offset = lm_vf_get_free_cam_offset(PFDEV(pdev)); in lm_vf_allocate_resc_in_pf()
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/channel_vf/
H A Dlm_vf.c209 …REG_WR(PFDEV(pdev),XSEM_REG_FAST_MEMORY + XSTORM_VF_SPQ_DATA_OFFSET(vf_info->abs_vf_id) + i*sizeof… in lm_pf_vf_fill_init_vf_response()
212 … REG_WR(PFDEV(pdev),XSEM_REG_FAST_MEMORY + (XSTORM_VF_SPQ_PAGE_BASE_OFFSET(vf_info->abs_vf_id)),0); in lm_pf_vf_fill_init_vf_response()
213 …REG_WR(PFDEV(pdev),XSEM_REG_FAST_MEMORY + (XSTORM_VF_SPQ_PAGE_BASE_OFFSET(vf_info->abs_vf_id)) + 4… in lm_pf_vf_fill_init_vf_response()
214 REG_WR(PFDEV(pdev),XSEM_REG_FAST_MEMORY + (XSTORM_VF_SPQ_PROD_OFFSET(vf_info->abs_vf_id)),0); in lm_pf_vf_fill_init_vf_response()
219 REG_WR(PFDEV(pdev), reg, val); in lm_pf_vf_fill_init_vf_response()
233 …LM_INTMEM_WRITE8(PFDEV(pdev), XSTORM_VF_TO_PF_OFFSET(function_fw_id), FUNC_ID(pdev), BAR_XSTRORM_I… in lm_pf_vf_fill_init_vf_response()
234 …LM_INTMEM_WRITE8(PFDEV(pdev), CSTORM_VF_TO_PF_OFFSET(function_fw_id), FUNC_ID(pdev), BAR_CSTRORM_I… in lm_pf_vf_fill_init_vf_response()
235 …LM_INTMEM_WRITE8(PFDEV(pdev), TSTORM_VF_TO_PF_OFFSET(function_fw_id), FUNC_ID(pdev), BAR_TSTRORM_I… in lm_pf_vf_fill_init_vf_response()
236 …LM_INTMEM_WRITE8(PFDEV(pdev), USTORM_VF_TO_PF_OFFSET(function_fw_id), FUNC_ID(pdev), BAR_USTRORM_I… in lm_pf_vf_fill_init_vf_response()
238 LM_INTMEM_WRITE8(PFDEV(pdev), XSTORM_FUNC_EN_OFFSET(function_fw_id), 1, BAR_XSTRORM_INTMEM); in lm_pf_vf_fill_init_vf_response()
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/include/
H A Dmm_solaris.h84 …LM_BAR_WR32_ADDRESS((PDEV), ((u8_t *)PFDEV(PDEV)->context_info->array[VF_TO_PF_CID((PDEV),(CID))].…
89 ddi_put32(PFDEV(PDEV)->context_info->array[VF_TO_PF_CID((PDEV),(CID))].cid_resc.reg_handle, \
90 …(uint32_t *)((caddr_t)PFDEV(PDEV)->context_info->array[VF_TO_PF_CID((PDEV),(CID))].cid_resc.mapped…
H A Dmm_ndismono.h86 …LM_BAR_WR32_ADDRESS((PDEV), ((u8_t *)PFDEV(PDEV)->context_info->array[VF_TO_PF_CID((PDEV),(CID))].…
H A Dmm_user_mode_debug.h63 …LM_BAR_WR32_ADDRESS((PDEV), ((u8_t *)PFDEV(PDEV)->context_info->array[VF_TO_PF_CID((PDEV),(CID))].…
H A Dmm_dos.h132 …LM_BAR_WR32_ADDRESS((PDEV), ((u8_t *)(PFDEV(PDEV))->context_info->array[VF_TO_PF_CID((PDEV),(CID))…
H A Dmm_linux.h97 …LM_BAR_WR32_ADDRESS((PDEV), ((u8_t *)PFDEV(PDEV)->context_info->array[VF_TO_PF_CID((PDEV),(CID))].…
H A Dmm_vbd.h105 …LM_BAR_WR32_ADDRESS((PDEV), ((u8_t *)PFDEV(PDEV)->context_info->array[VF_TO_PF_CID((PDEV), (CID))]…
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_sb.c239 LM_INTMEM_WRITE8(PFDEV(pdev), (CSTORM_STATUS_BLOCK_DATA_OFFSET(fw_sb_id) in lm_set_hc_flag()
245 LM_INTMEM_WRITE8(PFDEV(pdev), (CSTORM_STATUS_BLOCK_DATA_OFFSET(fw_sb_id) in lm_set_hc_flag()
650 …LM_INTMEM_WRITE32(PFDEV(pdev), CSTORM_SP_STATUS_BLOCK_DATA_OFFSET(func) + i*sizeof(u32_t), *((u32_… in lm_init_sp_status_block()
1364 …LM_INTMEM_WRITE32(PFDEV(pdev), CSTORM_SYNC_BLOCK_OFFSET(fw_sb_id) + 4*index, 0, BAR_CSTRORM_INTMEM… in lm_init_non_def_status_block()
1367 …LM_INTMEM_WRITE32(PFDEV(pdev), CSTORM_STATUS_BLOCK_OFFSET(fw_sb_id) + 4*index, 0, BAR_CSTRORM_INTM… in lm_init_non_def_status_block()
1430 … REG_WR(PFDEV(pdev), CSEM_REG_FAST_MEMORY + CSTORM_BYTE_COUNTER_OFFSET(byte_counter_id, index), 0); in lm_init_non_def_status_block()
1499 … LM_INTMEM_WRITE32(PFDEV(pdev), CSTORM_STATUS_BLOCK_DATA_OFFSET(fw_sb_id) + sizeof(u32_t)*index, in lm_init_non_def_status_block()
1504 … LM_INTMEM_WRITE32(PFDEV(pdev), CSTORM_STATUS_BLOCK_DATA_OFFSET(fw_sb_id) + sizeof(u32_t)*index, in lm_init_non_def_status_block()
1577 …LM_INTMEM_WRITE32(PFDEV(pdev), CSTORM_SYNC_BLOCK_OFFSET(fw_sb_id) + 4*index, 0, BAR_CSTRORM_INTMEM… in lm_pf_init_vf_non_def_sb()
1580 …LM_INTMEM_WRITE32(PFDEV(pdev), CSTORM_STATUS_BLOCK_OFFSET(fw_sb_id) + 4*index, 0, BAR_CSTRORM_INTM… in lm_pf_init_vf_non_def_sb()
[all …]
H A Dlm_hw_init_reset.c137 const u8_t bus_num = INST_ID_TO_BUS_NUM(PFDEV(pdev)->vars.inst_id) ; in lm_reset_set_inprogress()
145 const u8_t bus_num = INST_ID_TO_BUS_NUM(PFDEV(pdev)->vars.inst_id) ; in lm_reset_clear_inprogress()
153 const u8_t bus_num = INST_ID_TO_BUS_NUM(PFDEV(pdev)->vars.inst_id) ; in lm_pm_reset_is_inprogress()
192 lm_fl_reset_is_inprogress(PFDEV(pdev)) || in lm_reset_is_inprogress()
333 lm_status = lm_pretend_func(PFDEV(pdev), pretend_value); in lm_cleanup_after_flr()
336 …pdev->flr_stats.dq_usage_counter = REG_WAIT_VERIFY_VAL(PFDEV(pdev), DORQ_REG_VF_USAGE_CNT, 0, wait… in lm_cleanup_after_flr()
337 lm_pretend_func(PFDEV(pdev), ABS_FUNC_ID(pdev)); in lm_cleanup_after_flr()
353 …LM_INTMEM_READ32(PFDEV(pdev),CSTORM_FINAL_CLEANUP_COMPLETE_OFFSET(function_for_clean_up),&cleanup_… in lm_cleanup_after_flr()
367 REG_WR(PFDEV(pdev),XSDM_REG_OPERATION_GEN, final_cleanup.command); in lm_cleanup_after_flr()
368 …pdev->flr_stats.final_cleanup_complete = REG_WAIT_VERIFY_VAL(PFDEV(pdev), BAR_CSTRORM_INTMEM + CST… in lm_cleanup_after_flr()
[all …]
H A Dbnxe_context.c995 ERR_IF(sw_cid < PFDEV(pdev)->context_info->proto_start[ETH_CONNECTION_TYPE]) || in lm_init_connection_context()
996 ERR_IF(sw_cid > PFDEV(pdev)->context_info->proto_end[ETH_CONNECTION_TYPE]) ) in lm_init_connection_context()
999 …DbgBreakIf(sw_cid < PFDEV(pdev)->context_info->proto_start[ETH_CONNECTION_TYPE]); /* first legal N… in lm_init_connection_context()
1000 …DbgBreakIf(sw_cid > PFDEV(pdev)->context_info->proto_end[ETH_CONNECTION_TYPE]); /* last legal NI… in lm_init_connection_context()
1003 context = lm_get_context(PFDEV(pdev), VF_TO_PF_CID(pdev,sw_cid)); in lm_init_connection_context()
1193 context = lm_get_context(PFDEV(pdev), cid); in lm_set_cdu_validation_data()
1199 proto_type = lm_map_cid_to_proto(PFDEV(pdev), cid); in lm_set_cdu_validation_data()
H A Dlm_resc.c110 …LM_INTMEM_WRITE32(PFDEV(pdev), CSTORM_HC_SYNC_LINE_DHC_OFFSET(hc_sb_info->hc_index_value, fw_sb_id… in lm_clear_chain_sb_cons_idx()
111 …LM_INTMEM_READ32(PFDEV(pdev), CSTORM_HC_SYNC_LINE_DHC_OFFSET(hc_sb_info->hc_index_value, fw_sb_id)… in lm_clear_chain_sb_cons_idx()
115 if (CHIP_IS_E1x(PFDEV(pdev))) { in lm_clear_chain_sb_cons_idx()
116 …LM_INTMEM_WRITE16(PFDEV(pdev), CSTORM_HC_SYNC_LINE_INDEX_E1X_OFFSET(hc_sb_info->hc_index_value, fw… in lm_clear_chain_sb_cons_idx()
117 …LM_INTMEM_READ16(PFDEV(pdev), CSTORM_HC_SYNC_LINE_INDEX_E1X_OFFSET(hc_sb_info->hc_index_value, fw_… in lm_clear_chain_sb_cons_idx()
119 …LM_INTMEM_WRITE16(PFDEV(pdev), CSTORM_HC_SYNC_LINE_INDEX_E2_OFFSET(hc_sb_info->hc_index_value, fw_… in lm_clear_chain_sb_cons_idx()
120 …LM_INTMEM_READ16(PFDEV(pdev), CSTORM_HC_SYNC_LINE_INDEX_E2_OFFSET(hc_sb_info->hc_index_value, fw_s… in lm_clear_chain_sb_cons_idx()
124 …LM_INTMEM_WRITE16(PFDEV(pdev), (CSTORM_STATUS_BLOCK_OFFSET(fw_sb_id) + OFFSETOF(struct hc_status_b… in lm_clear_chain_sb_cons_idx()
125 …LM_INTMEM_READ16 (PFDEV(pdev), (CSTORM_STATUS_BLOCK_OFFSET(fw_sb_id) + OFFSETOF(struct hc_status_b… in lm_clear_chain_sb_cons_idx()
127 …LM_INTMEM_WRITE16(PFDEV(pdev), (CSTORM_STATUS_BLOCK_OFFSET(fw_sb_id) + OFFSETOF(struct hc_status_b… in lm_clear_chain_sb_cons_idx()
[all …]
H A Dlm_recv.c52 LM_INTMEM_WRITE16(PFDEV(pdev), in lm_rx_set_prods()
69 LM_INTMEM_WRITE64(PFDEV(pdev), in lm_rx_set_prods()
76 LM_INTMEM_WRITE32(PFDEV(pdev), in lm_rx_set_prods()
1275 …LM_INTMEM_WRITE32(PFDEV(pdev), rxq->hc_sb_info.iro_dhc_offset, rxq->ret_bytes, BAR_CSTRORM_INTMEM); in lm_return_packet_bytes()
H A Dlm_power.c414 const u8_t bus_num = INST_ID_TO_BUS_NUM(PFDEV(pdev)->vars.inst_id) ; in lm_set_func_en()
424 const u8_t bus_num = INST_ID_TO_BUS_NUM(PFDEV(pdev)->vars.inst_id) ; in lm_get_func_en()
H A Dlm_devinfo.c533 lm_is_function_after_flr(PFDEV(pdev)) || in lm_get_bars_info()
632 val=REG_RD(PFDEV(pdev),MISC_REG_CHIP_NUM); in lm_get_chip_id_and_mode()
636 val=REG_RD(PFDEV(pdev),MISC_REG_CHIP_TYPE); in lm_get_chip_id_and_mode()
654 val=REG_RD(PFDEV(pdev),MISC_REG_CHIP_REV); in lm_get_chip_id_and_mode()
675 val=REG_RD(PFDEV(pdev),MISC_REG_CHIP_METAL); in lm_get_chip_id_and_mode()
677 val=REG_RD(PFDEV(pdev),MISC_REG_BOND_ID); in lm_get_chip_id_and_mode()
681 val=REG_RD(PFDEV(pdev),MISC_REG_CHIP_TEST_REG); in lm_get_chip_id_and_mode()
691 val = REG_RD(PFDEV(pdev), MISC_REG_PORT4MODE_EN_OVWR); in lm_get_chip_id_and_mode()
695 val = REG_RD(PFDEV(pdev), MISC_REG_PORT4MODE_EN); in lm_get_chip_id_and_mode()
758 lm_igu_sb->block_dump = val = REG_RD(PFDEV(pdev), IGU_REG_MAPPING_MEMORY + 4*igu_sb_id); in lm_get_igu_cam_info()
[all …]
H A Dlm_pf.c973 REG_WR(PFDEV(pdev), IGU_REG_MAPPING_MEMORY + 4*igu_sb_idx, 0); in lm_pf_clear_vf_igu_blocks()
989 REG_WR(PFDEV(pdev), IGU_REG_MAPPING_MEMORY + 4*igu_sb_idx, 0); in lm_pf_release_vf_igu_block()
1013 REG_WR(PFDEV(pdev), IGU_REG_MAPPING_MEMORY + 4*igu_sb_idx, value); in lm_pf_acquire_vf_igu_block()
1181 …REG_WR(PFDEV(pdev), CSEM_REG_FAST_MEMORY + CSTORM_BYTE_COUNTER_OFFSET(LM_FW_VF_DHC_QZONE_ID(vf_inf… in lm_pf_update_vf_ndsb()
H A Dlm_send.c1112 lm_collect_idle_storms_dorrbell_asserts(PFDEV(pdev), TRUE, TRUE, TRUE); in lm_get_packets_sent()
H A Dlm_sp.c4086 … DbgBreakIf(PFDEV(pdev)->client_info[connection_info_idx].update.state != LM_CLI_UPDATE_USED); in lm_eth_init_command_comp()
4087 PFDEV(pdev)->client_info[connection_info_idx].update.state = LM_CLI_UPDATE_RECV; in lm_eth_init_command_comp()
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/include/
H A Dcommand.h56 …LM_INTMEM_WRITE16(PFDEV(pdev),XSTORM_VF_SPQ_PROD_OFFSET(ABS_VFID(pdev)), pdev->sq_info.sq_chain.pr… in _lm_sq_post()
H A Dlm5710.h133 #define PFDEV(pdev) (pdev) macro
992 …#define PORT_ID(pdev) (PORT_ID_PARAM_FUNC_REL(PFDEV(pdev)->param…
993 #define FUNC_ID(pdev) (PFDEV(pdev)->params.pfunc_rel) //0-7
995 …#define VNIC_ID(pdev) (VNIC_ID_PARAM_FUNC_REL(PFDEV(pdev)->param…
1013 #define ABS_FUNC_ID(pdev) (PFDEV(pdev)->params.pfunc_abs)
1017 #define PATH_ID(pdev) (PFDEV(pdev)->params.path_id)
1027 #define IS_MULTI_VNIC(pdev) (PFDEV(pdev)->params.multi_vnics_mode)
1028 #define VNICS_PER_PORT(pdev) (PFDEV(pdev)->params.vnics_per_port)
1029 …#define VNICS_PER_PATH(pdev) (PFDEV(pdev)->params.vnics_per_port * ((LM_CHIP_PORT_MODE_4 == C…
2895 #define IRO (PFDEV(pdev))->ecore_info.iro_arr
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/
H A Dlm_l4sp.c866 LM_INTMEM_WRITE8(PFDEV(pdev), CSTORM_STATUS_BLOCK_DATA_OFFSET(fw_sb_id) in _lm_tcp_init_ustorm_intmem()
878 LM_INTMEM_WRITE8(PFDEV(pdev), CSTORM_STATUS_BLOCK_DATA_OFFSET(fw_sb_id) in _lm_tcp_init_ustorm_intmem()