Home
last modified time | relevance | path

Searched refs:p_hwfn (Results 1 – 25 of 58) sorted by relevance

123

/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/
H A Decore_dev.c92 static u32 ecore_hw_bar_size(struct ecore_hwfn *p_hwfn, enum BAR_ID bar_id) in ecore_hw_bar_size() argument
98 if (IS_VF(p_hwfn->p_dev)) { in ecore_hw_bar_size()
106 val = ecore_rd(p_hwfn, p_hwfn->p_main_ptt, bar_reg); in ecore_hw_bar_size()
114 if (p_hwfn->p_dev->num_hwfns > 1) { in ecore_hw_bar_size()
115 DP_NOTICE(p_hwfn, false, in ecore_hw_bar_size()
119 DP_NOTICE(p_hwfn, false, in ecore_hw_bar_size()
136 struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i]; in ecore_init_dp() local
138 p_hwfn->dp_level = dp_level; in ecore_init_dp()
139 p_hwfn->dp_module = dp_module; in ecore_init_dp()
140 p_hwfn->dp_ctx = dp_ctx; in ecore_init_dp()
[all …]
H A Decore_int.c95 #define SB_ATTN_ALIGNED_SIZE(p_hwfn) \ argument
96 ALIGNED_TYPE_SIZE(struct atten_status_block, p_hwfn)
125 enum _ecore_status_t (*cb)(struct ecore_hwfn *p_hwfn);
137 static enum _ecore_status_t ecore_mcp_attn_cb(struct ecore_hwfn *p_hwfn) in ecore_mcp_attn_cb() argument
139 u32 tmp = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt, MCP_REG_CPU_STATE); in ecore_mcp_attn_cb()
141 DP_INFO(p_hwfn->p_dev, "MCP_REG_CPU_STATE: %08x - Masking...\n", in ecore_mcp_attn_cb()
143 ecore_wr(p_hwfn, p_hwfn->p_dpc_ptt, MCP_REG_CPU_EVENT_MASK, in ecore_mcp_attn_cb()
173 static enum _ecore_status_t ecore_pswhst_attn_cb(struct ecore_hwfn *p_hwfn) in ecore_pswhst_attn_cb() argument
175 u32 tmp = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt, PSWHST_REG_VF_DISABLED_ERROR_VALID); in ecore_pswhst_attn_cb()
181 addr = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt, in ecore_pswhst_attn_cb()
[all …]
H A Decore_hw.c68 enum _ecore_status_t ecore_ptt_pool_alloc(struct ecore_hwfn *p_hwfn) in ecore_ptt_pool_alloc() argument
70 struct ecore_ptt_pool *p_pool = OSAL_ALLOC(p_hwfn->p_dev, in ecore_ptt_pool_alloc()
83 p_pool->ptts[i].hwfn_id = p_hwfn->my_id; in ecore_ptt_pool_alloc()
93 p_hwfn->p_ptt_pool = p_pool; in ecore_ptt_pool_alloc()
94 OSAL_SPIN_LOCK_ALLOC(p_hwfn, &p_pool->lock); in ecore_ptt_pool_alloc()
100 void ecore_ptt_invalidate(struct ecore_hwfn *p_hwfn) in ecore_ptt_invalidate() argument
106 p_ptt = &p_hwfn->p_ptt_pool->ptts[i]; in ecore_ptt_invalidate()
111 void ecore_ptt_pool_free(struct ecore_hwfn *p_hwfn) in ecore_ptt_pool_free() argument
114 if (p_hwfn->p_ptt_pool) in ecore_ptt_pool_free()
115 OSAL_SPIN_LOCK_DEALLOC(&p_hwfn->p_ptt_pool->lock); in ecore_ptt_pool_free()
[all …]
H A Decore_spq.c74 static void ecore_iscsi_eq_dump(struct ecore_hwfn *p_hwfn, in ecore_iscsi_eq_dump() argument
78 DP_NOTICE(p_hwfn, false, "Unknown iSCSI EQ: %x\n", in ecore_iscsi_eq_dump()
89 DP_VERBOSE(p_hwfn, ECORE_MSG_STORAGE, in ecore_iscsi_eq_dump()
91 p_hwfn->port_id, p_eqe->opcode, in ecore_iscsi_eq_dump()
121 static void ecore_spq_blocking_cb(struct ecore_hwfn *p_hwfn, in ecore_spq_blocking_cb() argument
134 OSAL_SMP_WMB(p_hwfn->p_dev); in ecore_spq_blocking_cb()
137 static enum _ecore_status_t __ecore_spq_block(struct ecore_hwfn *p_hwfn, in __ecore_spq_block() argument
150 OSAL_POLL_MODE_DPC(p_hwfn); in __ecore_spq_block()
151 OSAL_SMP_RMB(p_hwfn->p_dev); in __ecore_spq_block()
167 static enum _ecore_status_t ecore_spq_block(struct ecore_hwfn *p_hwfn, in ecore_spq_block() argument
[all …]
H A Decore_mcp.c72 DRV_INNER_WR(p_hwfn, _p_ptt, drv_mb_addr, \
89 bool ecore_mcp_is_init(struct ecore_hwfn *p_hwfn) in ecore_mcp_is_init() argument
91 if (!p_hwfn->mcp_info || !p_hwfn->mcp_info->public_base) in ecore_mcp_is_init()
96 void ecore_mcp_cmd_port_init(struct ecore_hwfn *p_hwfn, in ecore_mcp_cmd_port_init() argument
99 u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base, in ecore_mcp_cmd_port_init()
101 u32 mfw_mb_offsize = ecore_rd(p_hwfn, p_ptt, addr); in ecore_mcp_cmd_port_init()
103 p_hwfn->mcp_info->port_addr = SECTION_ADDR(mfw_mb_offsize, in ecore_mcp_cmd_port_init()
104 MFW_PORT(p_hwfn)); in ecore_mcp_cmd_port_init()
105 DP_VERBOSE(p_hwfn, ECORE_MSG_SP, in ecore_mcp_cmd_port_init()
107 p_hwfn->mcp_info->port_addr, MFW_PORT(p_hwfn)); in ecore_mcp_cmd_port_init()
[all …]
H A Decore_cxt.c128 #define CONN_CXT_SIZE(p_hwfn) \ argument
129 ALIGNED_TYPE_SIZE(union conn_context, p_hwfn)
133 #define TYPE0_TASK_CXT_SIZE(p_hwfn) \ argument
134 ALIGNED_TYPE_SIZE(union type0_task_context, p_hwfn)
137 #define TYPE1_TASK_CXT_SIZE(p_hwfn) sizeof(union type1_task_context) argument
279 static bool src_proto(struct ecore_hwfn *p_hwfn, in src_proto() argument
324 static void ecore_cxt_src_iids(struct ecore_hwfn *p_hwfn, in ecore_cxt_src_iids() argument
331 if (!src_proto(p_hwfn, i)) in ecore_cxt_src_iids()
351 static void ecore_cxt_tm_iids(struct ecore_hwfn *p_hwfn, in ecore_cxt_tm_iids() argument
409 static void ecore_cxt_qm_iids(struct ecore_hwfn *p_hwfn, in ecore_cxt_qm_iids() argument
[all …]
H A Decore_iov_api.h49 #define IS_PF_SRIOV(p_hwfn) (!!((p_hwfn)->p_dev->p_iov_info)) argument
51 #define IS_PF_SRIOV(p_hwfn) (0) argument
53 #define IS_PF_SRIOV_ALLOC(p_hwfn) (!!((p_hwfn)->pf_iov_info)) argument
54 #define IS_PF_PDA(p_hwfn) 0 /* @@TBD Michalk */ argument
159 ecore_iov_get_vf_sw_mbx(struct ecore_hwfn *p_hwfn,
222 ecore_iov_init_hw_for_vf(struct ecore_hwfn *p_hwfn,
234 void ecore_iov_process_mbx_req(struct ecore_hwfn *p_hwfn,
250 enum _ecore_status_t ecore_iov_release_hw_for_vf(struct ecore_hwfn *p_hwfn,
263 enum _ecore_status_t ecore_iov_set_vf_ctx(struct ecore_hwfn *p_hwfn,
275 enum _ecore_status_t ecore_iov_vf_flr_cleanup(struct ecore_hwfn *p_hwfn,
[all …]
H A Decore_init_ops.c68 void ecore_init_clear_rt_data(struct ecore_hwfn *p_hwfn) in ecore_init_clear_rt_data() argument
73 p_hwfn->rt_data.b_valid[i] = false; in ecore_init_clear_rt_data()
76 void ecore_init_store_rt_reg(struct ecore_hwfn *p_hwfn, in ecore_init_store_rt_reg() argument
79 p_hwfn->rt_data.init_val[rt_offset] = val; in ecore_init_store_rt_reg()
80 p_hwfn->rt_data.b_valid[rt_offset] = true; in ecore_init_store_rt_reg()
83 void ecore_init_store_rt_agg(struct ecore_hwfn *p_hwfn, in ecore_init_store_rt_agg() argument
90 p_hwfn->rt_data.init_val[rt_offset + i] = p_val[i]; in ecore_init_store_rt_agg()
91 p_hwfn->rt_data.b_valid[rt_offset + i] = true; in ecore_init_store_rt_agg()
96 static enum _ecore_status_t ecore_init_rt(struct ecore_hwfn *p_hwfn, in ecore_init_rt() argument
103 u32 *p_init_val = &p_hwfn->rt_data.init_val[rt_offset]; in ecore_init_rt()
[all …]
H A Decore_init_fw_funcs.c168 static void ecore_enable_pf_rl(struct ecore_hwfn *p_hwfn, in ecore_enable_pf_rl() argument
171 STORE_RT_REG(p_hwfn, QM_REG_RLPFENABLE_RT_OFFSET, pf_rl_en ? 1 : 0); in ecore_enable_pf_rl()
175 STORE_RT_REG(p_hwfn, QM_REG_RLPFVOQENABLE_RT_OFFSET, (1 << MAX_NUM_VOQS) - 1); in ecore_enable_pf_rl()
178 STORE_RT_REG(p_hwfn, QM_REG_RLPFPERIOD_RT_OFFSET, QM_RL_PERIOD_CLK_25M); in ecore_enable_pf_rl()
179 STORE_RT_REG(p_hwfn, QM_REG_RLPFPERIODTIMER_RT_OFFSET, QM_RL_PERIOD_CLK_25M); in ecore_enable_pf_rl()
183 STORE_RT_REG(p_hwfn, QM_REG_AFULLQMBYPTHRPFRL_RT_OFFSET, QM_RL_UPPER_BOUND); in ecore_enable_pf_rl()
188 static void ecore_enable_pf_wfq(struct ecore_hwfn *p_hwfn, in ecore_enable_pf_wfq() argument
191 STORE_RT_REG(p_hwfn, QM_REG_WFQPFENABLE_RT_OFFSET, pf_wfq_en ? 1 : 0); in ecore_enable_pf_wfq()
195 STORE_RT_REG(p_hwfn, QM_REG_AFULLQMBYPTHRPFWFQ_RT_OFFSET, QM_WFQ_UPPER_BOUND); in ecore_enable_pf_wfq()
199 static void ecore_enable_vport_rl(struct ecore_hwfn *p_hwfn, in ecore_enable_vport_rl() argument
[all …]
H A Decore_vf.h82 enum _ecore_status_t ecore_set_rxq_coalesce(struct ecore_hwfn *p_hwfn,
86 enum _ecore_status_t ecore_set_txq_coalesce(struct ecore_hwfn *p_hwfn,
102 enum _ecore_status_t ecore_vf_pf_set_coalesce(struct ecore_hwfn *p_hwfn,
114 enum _ecore_status_t ecore_vf_hw_prepare(struct ecore_hwfn *p_hwfn);
130 enum _ecore_status_t ecore_vf_pf_rxq_start(struct ecore_hwfn *p_hwfn,
151 ecore_vf_pf_txq_start(struct ecore_hwfn *p_hwfn,
165 enum _ecore_status_t ecore_vf_pf_rxq_stop(struct ecore_hwfn *p_hwfn,
177 enum _ecore_status_t ecore_vf_pf_txq_stop(struct ecore_hwfn *p_hwfn,
195 enum _ecore_status_t ecore_vf_pf_rxqs_update(struct ecore_hwfn *p_hwfn,
210 enum _ecore_status_t ecore_vf_pf_vport_update(struct ecore_hwfn *p_hwfn,
[all …]
H A Decore_dcbx.c163 static bool ecore_dcbx_iwarp_tlv(struct ecore_hwfn *p_hwfn, u32 app_info_bitmap, in ecore_dcbx_iwarp_tlv() argument
168 if (!p_hwfn->p_dcbx_info->iwarp_port) in ecore_dcbx_iwarp_tlv()
177 return !!(port && (proto_id == p_hwfn->p_dcbx_info->iwarp_port)); in ecore_dcbx_iwarp_tlv()
181 ecore_dcbx_dp_protocol(struct ecore_hwfn *p_hwfn, in ecore_dcbx_dp_protocol() argument
187 DP_VERBOSE(p_hwfn, ECORE_MSG_DCB, "DCBX negotiated: %d\n", in ecore_dcbx_dp_protocol()
193 DP_VERBOSE(p_hwfn, ECORE_MSG_DCB, in ecore_dcbx_dp_protocol()
197 p_data->arr[id].tc, p_hwfn->hw_info.num_active_tc, in ecore_dcbx_dp_protocol()
205 struct ecore_hwfn *p_hwfn, in ecore_dcbx_set_params() argument
210 struct ecore_dcbx_dscp_params *dscp = &p_hwfn->p_dcbx_info->get.dscp; in ecore_dcbx_set_params()
235 if (p_hwfn->hw_info.personality == personality) in ecore_dcbx_set_params()
[all …]
H A Decore_sp_commands.c54 enum _ecore_status_t ecore_sp_init_request(struct ecore_hwfn *p_hwfn, in ecore_sp_init_request() argument
68 rc = ecore_spq_get_entry(p_hwfn, pp_ent); in ecore_sp_init_request()
101 DP_NOTICE(p_hwfn, true, "Unknown SPQE completion mode %d\n", in ecore_sp_init_request()
106 DP_VERBOSE(p_hwfn, ECORE_MSG_SPQ, in ecore_sp_init_request()
214 ecore_tunn_set_pf_update_params(struct ecore_hwfn *p_hwfn, in ecore_tunn_set_pf_update_params() argument
218 struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel; in ecore_tunn_set_pf_update_params()
248 static void ecore_set_hw_tunn_mode(struct ecore_hwfn *p_hwfn, in ecore_set_hw_tunn_mode() argument
252 ecore_set_gre_enable(p_hwfn, p_ptt, p_tun->l2_gre.b_mode_enabled, in ecore_set_hw_tunn_mode()
254 ecore_set_vxlan_enable(p_hwfn, p_ptt, p_tun->vxlan.b_mode_enabled); in ecore_set_hw_tunn_mode()
256 ecore_set_geneve_enable(p_hwfn, p_ptt, p_tun->l2_geneve.b_mode_enabled, in ecore_set_hw_tunn_mode()
[all …]
H A Decore_l2.c67 enum _ecore_status_t ecore_l2_alloc(struct ecore_hwfn *p_hwfn) in ecore_l2_alloc() argument
73 if (!ECORE_IS_L2_PERSONALITY(p_hwfn)) in ecore_l2_alloc()
76 p_l2_info = OSAL_VZALLOC(p_hwfn->p_dev, sizeof(*p_l2_info)); in ecore_l2_alloc()
79 p_hwfn->p_l2_info = p_l2_info; in ecore_l2_alloc()
81 if (IS_PF(p_hwfn->p_dev)) { in ecore_l2_alloc()
82 p_l2_info->queues = RESC_NUM(p_hwfn, ECORE_L2_QUEUE); in ecore_l2_alloc()
86 ecore_vf_get_num_rxqs(p_hwfn, &rx); in ecore_l2_alloc()
87 ecore_vf_get_num_txqs(p_hwfn, &tx); in ecore_l2_alloc()
92 pp_qids = OSAL_VZALLOC(p_hwfn->p_dev, in ecore_l2_alloc()
100 pp_qids[i] = OSAL_VZALLOC(p_hwfn->p_dev, in ecore_l2_alloc()
[all …]
H A Decore_mcp.h51 #define MCP_PF_ID_BY_REL(p_hwfn, rel_pfid) (ECORE_IS_BB((p_hwfn)->p_dev) ? \ argument
53 ((p_hwfn)->abs_pf_id & 1) << 3) : \
55 #define MCP_PF_ID(p_hwfn) MCP_PF_ID_BY_REL(p_hwfn, (p_hwfn)->rel_pf_id) argument
135 enum _ecore_status_t ecore_mcp_cmd_init(struct ecore_hwfn *p_hwfn,
145 void ecore_mcp_cmd_port_init(struct ecore_hwfn *p_hwfn,
156 enum _ecore_status_t ecore_mcp_free(struct ecore_hwfn *p_hwfn);
170 enum _ecore_status_t ecore_mcp_handle_events(struct ecore_hwfn *p_hwfn,
187 enum _ecore_status_t ecore_issue_pulse(struct ecore_hwfn *p_hwfn,
216 enum _ecore_status_t ecore_mcp_load_req(struct ecore_hwfn *p_hwfn,
228 enum _ecore_status_t ecore_mcp_unload_req(struct ecore_hwfn *p_hwfn,
[all …]
H A Decore_dbg_fw_funcs.c1804 static void ecore_grc_set_param(struct ecore_hwfn *p_hwfn, in ecore_grc_set_param() argument
1808 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in ecore_grc_set_param()
1814 static u32 ecore_grc_get_param(struct ecore_hwfn *p_hwfn, in ecore_grc_get_param() argument
1817 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in ecore_grc_get_param()
1823 static void ecore_dbg_grc_init_params(struct ecore_hwfn *p_hwfn) in ecore_dbg_grc_init_params() argument
1825 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in ecore_dbg_grc_init_params()
1828 ecore_dbg_grc_set_params_default(p_hwfn); in ecore_dbg_grc_init_params()
1834 static enum dbg_status ecore_dbg_dev_init(struct ecore_hwfn *p_hwfn, in ecore_dbg_dev_init() argument
1837 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in ecore_dbg_dev_init()
1845 if (ECORE_IS_K2(p_hwfn->p_dev)) { in ecore_dbg_dev_init()
[all …]
H A Decore_vf_api.h51 enum _ecore_status_t ecore_vf_read_bulletin(struct ecore_hwfn *p_hwfn,
60 void ecore_vf_get_link_params(struct ecore_hwfn *p_hwfn,
69 void ecore_vf_get_link_state(struct ecore_hwfn *p_hwfn,
78 void ecore_vf_get_link_caps(struct ecore_hwfn *p_hwfn,
87 void ecore_vf_get_num_rxqs(struct ecore_hwfn *p_hwfn,
96 void ecore_vf_get_num_txqs(struct ecore_hwfn *p_hwfn,
105 void ecore_vf_get_port_mac(struct ecore_hwfn *p_hwfn,
114 void ecore_vf_get_num_vlan_filters(struct ecore_hwfn *p_hwfn,
123 void ecore_vf_get_num_mac_filters(struct ecore_hwfn *p_hwfn,
134 bool ecore_vf_check_mac(struct ecore_hwfn *p_hwfn, u8 *mac);
[all …]
H A Decore_dbg_fw_funcs.h74 enum chip_ids ecore_dbg_get_chip_id(struct ecore_hwfn *p_hwfn);
106 enum dbg_status ecore_dbg_bus_reset(struct ecore_hwfn *p_hwfn,
129 enum dbg_status ecore_dbg_bus_set_pci_output(struct ecore_hwfn *p_hwfn,
169 enum dbg_status ecore_dbg_bus_set_nw_output(struct ecore_hwfn *p_hwfn,
206 enum dbg_status ecore_dbg_bus_enable_block(struct ecore_hwfn *p_hwfn,
231 enum dbg_status ecore_dbg_bus_enable_storm(struct ecore_hwfn *p_hwfn,
257 enum dbg_status ecore_dbg_bus_enable_timestamp(struct ecore_hwfn *p_hwfn,
277 enum dbg_status ecore_dbg_bus_add_eid_range_sem_filter(struct ecore_hwfn *p_hwfn,
295 enum dbg_status ecore_dbg_bus_add_eid_mask_sem_filter(struct ecore_hwfn *p_hwfn,
312 enum dbg_status ecore_dbg_bus_add_cid_sem_filter(struct ecore_hwfn *p_hwfn,
[all …]
H A Decore_cxt.h54 u32 ecore_cxt_get_proto_cid_count(struct ecore_hwfn *p_hwfn,
58 u32 ecore_cxt_get_proto_tid_count(struct ecore_hwfn *p_hwfn,
61 u32 ecore_cxt_get_proto_cid_start(struct ecore_hwfn *p_hwfn,
63 u32 ecore_cxt_get_srq_count(struct ecore_hwfn *p_hwfn);
72 enum _ecore_status_t ecore_cxt_set_pf_params(struct ecore_hwfn *p_hwfn,
83 enum _ecore_status_t ecore_cxt_cfg_ilt_compute(struct ecore_hwfn *p_hwfn,
92 u32 ecore_cxt_cfg_ilt_compute_excess(struct ecore_hwfn *p_hwfn, u32 used_lines);
101 enum _ecore_status_t ecore_cxt_mngr_alloc(struct ecore_hwfn *p_hwfn);
108 void ecore_cxt_mngr_free(struct ecore_hwfn *p_hwfn);
117 enum _ecore_status_t ecore_cxt_tables_alloc(struct ecore_hwfn *p_hwfn);
[all …]
H A Decore_selftest.c74 struct ecore_hwfn *p_hwfn; in ecore_selftest_register() local
82 p_hwfn = &p_dev->hwfns[i]; in ecore_selftest_register()
83 p_ptt = ecore_ptt_acquire(p_hwfn); in ecore_selftest_register()
85 DP_ERR(p_hwfn, "failed to acquire ptt\n"); in ecore_selftest_register()
88 rc = ecore_mcp_bist_register_test(p_hwfn, p_ptt); in ecore_selftest_register()
89 ecore_ptt_release(p_hwfn, p_ptt); in ecore_selftest_register()
99 struct ecore_hwfn *p_hwfn; in ecore_selftest_clock() local
106 p_hwfn = &p_dev->hwfns[i]; in ecore_selftest_clock()
107 p_ptt = ecore_ptt_acquire(p_hwfn); in ecore_selftest_clock()
109 DP_ERR(p_hwfn, "failed to acquire ptt\n"); in ecore_selftest_clock()
[all …]
H A Decore_init_fw_funcs.h80 int ecore_qm_common_rt_init(struct ecore_hwfn *p_hwfn,
121 int ecore_qm_pf_rt_init(struct ecore_hwfn *p_hwfn,
150 int ecore_init_pf_wfq(struct ecore_hwfn *p_hwfn,
165 int ecore_init_pf_rl(struct ecore_hwfn *p_hwfn,
182 int ecore_init_vport_wfq(struct ecore_hwfn *p_hwfn,
198 int ecore_init_vport_rl(struct ecore_hwfn *p_hwfn,
216 bool ecore_send_qm_stop_cmd(struct ecore_hwfn *p_hwfn,
237 void ecore_init_nig_ets(struct ecore_hwfn *p_hwfn,
251 void ecore_init_nig_lb_rl(struct ecore_hwfn *p_hwfn,
266 void ecore_init_nig_pri_tc_map(struct ecore_hwfn *p_hwfn,
[all …]
H A Decore_int.h48 #define SB_ALIGNED_SIZE(p_hwfn) \ argument
49 ALIGNED_TYPE_SIZE(struct status_block, p_hwfn)
91 int ecore_int_igu_reset_cam(struct ecore_hwfn *p_hwfn,
100 int ecore_int_igu_reset_cam_default(struct ecore_hwfn *p_hwfn,
111 u16 ecore_get_igu_sb_id(struct ecore_hwfn *p_hwfn, u16 sb_id);
122 ecore_get_igu_free_sb(struct ecore_hwfn *p_hwfn, bool b_is_pf);
125 void ecore_int_igu_init_pure_rt(struct ecore_hwfn *p_hwfn,
130 void ecore_int_igu_init_rt(struct ecore_hwfn *p_hwfn);
143 enum _ecore_status_t ecore_int_igu_read_cam(struct ecore_hwfn *p_hwfn,
146 typedef enum _ecore_status_t(*ecore_int_comp_cb_t)(struct ecore_hwfn *p_hwfn,
[all …]
H A Decore_phy.c52 enum _ecore_status_t ecore_phy_read(struct ecore_hwfn *p_hwfn, in ecore_phy_read() argument
56 return ecore_mcp_phy_read(p_hwfn->p_dev, cmd, in ecore_phy_read()
60 enum _ecore_status_t ecore_phy_write(struct ecore_hwfn *p_hwfn, in ecore_phy_write() argument
70 return ecore_mcp_phy_write(p_hwfn->p_dev, cmd, in ecore_phy_write()
76 int ecore_phy_core_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, in ecore_phy_core_write() argument
89 rc = ecore_phy_write(p_hwfn, p_ptt, port, 0 /* lane */, addr, data_lo, in ecore_phy_core_write()
101 int ecore_phy_core_read(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, in ecore_phy_core_read() argument
116 rc = ecore_phy_read(p_hwfn, p_ptt, port, 0 /* lane */ , addr, in ecore_phy_core_read()
131 int ecore_phy_raw_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, in ecore_phy_raw_write() argument
152 rc = ecore_phy_write(p_hwfn,p_ptt, port, lane, addr, data_lo, in ecore_phy_raw_write()
[all …]
H A Decore_hw.h102 void ecore_gtt_init(struct ecore_hwfn *p_hwfn);
109 void ecore_ptt_invalidate(struct ecore_hwfn *p_hwfn);
118 enum _ecore_status_t ecore_ptt_pool_alloc(struct ecore_hwfn *p_hwfn);
125 void ecore_ptt_pool_free(struct ecore_hwfn *p_hwfn);
135 u32 ecore_ptt_get_hw_addr(struct ecore_hwfn *p_hwfn,
155 void ecore_ptt_set_win(struct ecore_hwfn *p_hwfn,
167 struct ecore_ptt *ecore_get_reserved_ptt(struct ecore_hwfn *p_hwfn,
178 void ecore_wr(struct ecore_hwfn *p_hwfn,
191 u32 ecore_rd(struct ecore_hwfn *p_hwfn,
205 void ecore_memcpy_from(struct ecore_hwfn *p_hwfn,
[all …]
H A Decore_phy_api.h52 int ecore_phy_core_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
67 int ecore_phy_core_read(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
84 int ecore_phy_raw_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
100 int ecore_phy_raw_read(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
113 int ecore_phy_mac_stat(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
125 int ecore_phy_info(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
142 int ecore_phy_sfp_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
159 int ecore_phy_sfp_read(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
173 int ecore_phy_sfp_decode(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
186 int ecore_phy_sfp_get_inserted(struct ecore_hwfn *p_hwfn,
[all …]
H A Decore_sriov.h158 #define ECORE_VF_ABS_ID(p_hwfn, p_vf) (ECORE_PATH_ID(p_hwfn) ? \ argument
231 enum _ecore_status_t ecore_iov_hw_info(struct ecore_hwfn *p_hwfn);
243 void *ecore_add_tlv(struct ecore_hwfn *p_hwfn,
254 void ecore_dp_tlv_list(struct ecore_hwfn *p_hwfn,
264 enum _ecore_status_t ecore_iov_alloc(struct ecore_hwfn *p_hwfn);
272 void ecore_iov_setup(struct ecore_hwfn *p_hwfn,
280 void ecore_iov_free(struct ecore_hwfn *p_hwfn);
297 enum _ecore_status_t ecore_sriov_eqe_event(struct ecore_hwfn *p_hwfn,
310 bool ecore_iov_mark_vf_flr(struct ecore_hwfn *p_hwfn,
322 void *ecore_iov_search_list_tlvs(struct ecore_hwfn *p_hwfn,
[all …]

123