Home
last modified time | relevance | path

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

123

/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_dev.c106 static void ecore_db_recovery_dp_entry(struct ecore_hwfn *p_hwfn, in ecore_db_recovery_dp_entry() argument
110 …DP_VERBOSE(p_hwfn, ECORE_MSG_SPQ, "(%s: db_entry %p, addr %p, data %p, width %s, %s space, hwfn %d… in ecore_db_recovery_dp_entry()
144 struct ecore_hwfn *p_hwfn; in ecore_db_rec_find_hwfn() local
148 p_hwfn = db_addr < p_dev->hwfns[1].doorbells ? in ecore_db_rec_find_hwfn()
151 p_hwfn = ECORE_LEADING_HWFN(p_dev); in ecore_db_rec_find_hwfn()
153 return p_hwfn; in ecore_db_rec_find_hwfn()
164 struct ecore_hwfn *p_hwfn; in ecore_db_recovery_add() local
177 p_hwfn = ecore_db_rec_find_hwfn(p_dev, db_addr); in ecore_db_recovery_add()
180 db_entry = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, sizeof(*db_entry)); in ecore_db_recovery_add()
191 db_entry->hwfn_idx = p_hwfn->my_id; in ecore_db_recovery_add()
[all …]
H A Decore_rdma.c55 enum _ecore_status_t ecore_rdma_bmap_alloc(struct ecore_hwfn *p_hwfn, in ecore_rdma_bmap_alloc() argument
62 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "max_count = %08x\n", max_count); in ecore_rdma_bmap_alloc()
74 bmap->bitmap = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, size_in_bytes); in ecore_rdma_bmap_alloc()
77 DP_NOTICE(p_hwfn, false, in ecore_rdma_bmap_alloc()
85 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "ECORE_SUCCESS\n"); in ecore_rdma_bmap_alloc()
89 enum _ecore_status_t ecore_rdma_bmap_alloc_id(struct ecore_hwfn *p_hwfn, in ecore_rdma_bmap_alloc_id() argument
99 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "%s bitmap: allocated id %d\n", in ecore_rdma_bmap_alloc_id()
105 void ecore_bmap_set_id(struct ecore_hwfn *p_hwfn, in ecore_bmap_set_id() argument
110 DP_NOTICE(p_hwfn, true, in ecore_bmap_set_id()
119 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "%s bitmap: set id %d\n", in ecore_bmap_set_id()
[all …]
H A Decore_int.c90 #define SB_ATTN_ALIGNED_SIZE(p_hwfn) \ argument
91 ALIGNED_TYPE_SIZE(struct atten_status_block, p_hwfn)
120 enum _ecore_status_t (*cb)(struct ecore_hwfn *p_hwfn);
132 static enum _ecore_status_t ecore_mcp_attn_cb(struct ecore_hwfn *p_hwfn) in ecore_mcp_attn_cb() argument
134 u32 tmp = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt, MCP_REG_CPU_STATE); in ecore_mcp_attn_cb()
136 DP_INFO(p_hwfn->p_dev, "MCP_REG_CPU_STATE: %08x - Masking...\n", in ecore_mcp_attn_cb()
138 ecore_wr(p_hwfn, p_hwfn->p_dpc_ptt, MCP_REG_CPU_EVENT_MASK, in ecore_mcp_attn_cb()
168 static enum _ecore_status_t ecore_pswhst_attn_cb(struct ecore_hwfn *p_hwfn) in ecore_pswhst_attn_cb() argument
170 u32 tmp = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt, PSWHST_REG_VF_DISABLED_ERROR_VALID); in ecore_pswhst_attn_cb()
176 addr = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt, in ecore_pswhst_attn_cb()
[all …]
H A Decore_hw.c71 static void __ecore_ptt_pool_free(struct ecore_hwfn *p_hwfn) in __ecore_ptt_pool_free() argument
73 OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_ptt_pool); in __ecore_ptt_pool_free()
74 p_hwfn->p_ptt_pool = OSAL_NULL; in __ecore_ptt_pool_free()
77 enum _ecore_status_t ecore_ptt_pool_alloc(struct ecore_hwfn *p_hwfn) in ecore_ptt_pool_alloc() argument
79 struct ecore_ptt_pool *p_pool = OSAL_ALLOC(p_hwfn->p_dev, in ecore_ptt_pool_alloc()
92 p_pool->ptts[i].hwfn_id = p_hwfn->my_id; in ecore_ptt_pool_alloc()
102 p_hwfn->p_ptt_pool = p_pool; in ecore_ptt_pool_alloc()
104 if (OSAL_SPIN_LOCK_ALLOC(p_hwfn, &p_pool->lock)) { in ecore_ptt_pool_alloc()
105 __ecore_ptt_pool_free(p_hwfn); in ecore_ptt_pool_alloc()
113 void ecore_ptt_invalidate(struct ecore_hwfn *p_hwfn) in ecore_ptt_invalidate() argument
[all …]
H A Decore_mcp.c64 DRV_INNER_WR(p_hwfn, _p_ptt, drv_mb_addr, \
87 bool ecore_mcp_is_init(struct ecore_hwfn *p_hwfn) in ecore_mcp_is_init() argument
89 if (!p_hwfn->mcp_info || !p_hwfn->mcp_info->public_base) in ecore_mcp_is_init()
94 void ecore_mcp_cmd_port_init(struct ecore_hwfn *p_hwfn, in ecore_mcp_cmd_port_init() argument
97 u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base, in ecore_mcp_cmd_port_init()
99 u32 mfw_mb_offsize = ecore_rd(p_hwfn, p_ptt, addr); in ecore_mcp_cmd_port_init()
101 p_hwfn->mcp_info->port_addr = SECTION_ADDR(mfw_mb_offsize, in ecore_mcp_cmd_port_init()
102 MFW_PORT(p_hwfn)); in ecore_mcp_cmd_port_init()
103 DP_VERBOSE(p_hwfn, ECORE_MSG_SP, in ecore_mcp_cmd_port_init()
105 p_hwfn->mcp_info->port_addr, MFW_PORT(p_hwfn)); in ecore_mcp_cmd_port_init()
[all …]
H A Decore_spq.c75 static void ecore_iscsi_eq_dump(struct ecore_hwfn *p_hwfn, in ecore_iscsi_eq_dump() argument
79 DP_NOTICE(p_hwfn, false, "Unknown iSCSI EQ: %x\n", in ecore_iscsi_eq_dump()
90 DP_VERBOSE(p_hwfn, ECORE_MSG_STORAGE, in ecore_iscsi_eq_dump()
92 p_hwfn->port_id, p_eqe->opcode, in ecore_iscsi_eq_dump()
122 static void ecore_spq_blocking_cb(struct ecore_hwfn *p_hwfn, void *cookie, 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
149 if (CHIP_REV_IS_EMUL(p_hwfn->p_dev) && sleep_between_iter) in __ecore_spq_block()
154 OSAL_POLL_MODE_DPC(p_hwfn); in __ecore_spq_block()
155 OSAL_SMP_RMB(p_hwfn->p_dev); in __ecore_spq_block()
[all …]
H A Decore_iwarp.c89 ecore_iwarp_async_event(struct ecore_hwfn *p_hwfn,
96 ecore_iwarp_empty_ramrod(struct ecore_hwfn *p_hwfn,
100 ecore_iwarp_get_curr_fpdu(struct ecore_hwfn *p_hwfn, u16 cid);
104 ecore_iwarp_init_devinfo(struct ecore_hwfn *p_hwfn) in ecore_iwarp_init_devinfo() argument
106 struct ecore_rdma_device *dev = p_hwfn->p_rdma_info->dev; in ecore_iwarp_init_devinfo()
111 p_hwfn->p_rdma_info->num_qps) - in ecore_iwarp_init_devinfo()
121 ecore_iwarp_init_hw(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt) in ecore_iwarp_init_hw() argument
123 p_hwfn->rdma_prs_search_reg = PRS_REG_SEARCH_TCP; in ecore_iwarp_init_hw()
124 ecore_wr(p_hwfn, p_ptt, p_hwfn->rdma_prs_search_reg, 1); in ecore_iwarp_init_hw()
125 p_hwfn->b_rdma_enabled_in_prs = true; in ecore_iwarp_init_hw()
[all …]
H A Decore_sriov.c51 static enum _ecore_status_t ecore_sriov_eqe_event(struct ecore_hwfn *p_hwfn,
104 static enum _ecore_status_t ecore_sp_vf_start(struct ecore_hwfn *p_hwfn, in ecore_sp_vf_start() argument
115 init_data.cid = ecore_spq_get_cid(p_hwfn); in ecore_sp_vf_start()
119 rc = ecore_sp_init_request(p_hwfn, &p_ent, in ecore_sp_vf_start()
130 switch (p_hwfn->hw_info.personality) { in ecore_sp_vf_start()
139 DP_NOTICE(p_hwfn, true, "Unknown VF personality %d\n", in ecore_sp_vf_start()
140 p_hwfn->hw_info.personality); in ecore_sp_vf_start()
147 DP_VERBOSE(p_hwfn, ECORE_MSG_IOV, in ecore_sp_vf_start()
158 DP_VERBOSE(p_hwfn, ECORE_MSG_IOV, in ecore_sp_vf_start()
162 return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL); in ecore_sp_vf_start()
[all …]
H A Decore_vf.c50 static void *ecore_vf_pf_prep(struct ecore_hwfn *p_hwfn, in ecore_vf_pf_prep() argument
53 struct ecore_vf_iov *p_iov = p_hwfn->vf_iov_info; in ecore_vf_pf_prep()
63 DP_VERBOSE(p_hwfn, ECORE_MSG_IOV, "preparing to send %s tlv over vf pf channel\n", in ecore_vf_pf_prep()
85 static void ecore_vf_pf_req_end(struct ecore_hwfn *p_hwfn, in ecore_vf_pf_req_end() argument
88 union pfvf_tlvs *resp = p_hwfn->vf_iov_info->pf2vf_reply; in ecore_vf_pf_req_end()
90 DP_VERBOSE(p_hwfn, ECORE_MSG_IOV, in ecore_vf_pf_req_end()
94 OSAL_MUTEX_RELEASE(&(p_hwfn->vf_iov_info->mutex)); in ecore_vf_pf_req_end()
106 ecore_send_msg2pf(struct ecore_hwfn *p_hwfn, in ecore_send_msg2pf() argument
109 union vfpf_tlvs *p_req = p_hwfn->vf_iov_info->vf2pf_request; in ecore_send_msg2pf()
118 ecore_dp_tlv_list(p_hwfn, p_req); in ecore_send_msg2pf()
[all …]
H A Decore_cxt.c112 #define CONN_CXT_SIZE(p_hwfn) \ argument
113 ALIGNED_TYPE_SIZE(union conn_context, p_hwfn)
118 #define TYPE0_TASK_CXT_SIZE(p_hwfn) \ argument
119 ALIGNED_TYPE_SIZE(union type0_task_context, p_hwfn)
122 #define TYPE1_TASK_CXT_SIZE(p_hwfn) sizeof(union type1_task_context) argument
381 static void ecore_cxt_qm_iids(struct ecore_hwfn *p_hwfn, in ecore_cxt_qm_iids() argument
384 struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in ecore_cxt_qm_iids()
410 DP_VERBOSE(p_hwfn, ECORE_MSG_ILT, in ecore_cxt_qm_iids()
415 static struct ecore_tid_seg *ecore_cxt_tid_seg_info(struct ecore_hwfn *p_hwfn, in ecore_cxt_tid_seg_info() argument
418 struct ecore_cxt_mngr *p_cfg = p_hwfn->p_cxt_mngr; in ecore_cxt_tid_seg_info()
[all …]
H A Decore_iov_api.h42 #define IS_PF_SRIOV(p_hwfn) (!!((p_hwfn)->p_dev->p_iov_info)) argument
44 #define IS_PF_SRIOV(p_hwfn) (0) argument
46 #define IS_PF_SRIOV_ALLOC(p_hwfn) (!!((p_hwfn)->pf_iov_info)) argument
47 #define IS_PF_PDA(p_hwfn) 0 /* @@TBD Michalk */ argument
153 ecore_iov_get_vf_sw_mbx(struct ecore_hwfn *p_hwfn,
216 ecore_iov_init_hw_for_vf(struct ecore_hwfn *p_hwfn,
228 void ecore_iov_process_mbx_req(struct ecore_hwfn *p_hwfn,
244 enum _ecore_status_t ecore_iov_release_hw_for_vf(struct ecore_hwfn *p_hwfn,
257 enum _ecore_status_t ecore_iov_set_vf_ctx(struct ecore_hwfn *p_hwfn,
269 enum _ecore_status_t ecore_iov_vf_flr_cleanup(struct ecore_hwfn *p_hwfn,
[all …]
H A Decore_roce.c60 static void ecore_roce_free_icid(struct ecore_hwfn *p_hwfn, u16 icid);
63 ecore_roce_async_event(struct ecore_hwfn *p_hwfn, in ecore_roce_async_event() argument
77 ecore_roce_free_icid(p_hwfn, icid); in ecore_roce_async_event()
79 p_hwfn->p_rdma_info->events.affiliated_event( in ecore_roce_async_event()
80 p_hwfn->p_rdma_info->events.context, in ecore_roce_async_event()
89 struct ecore_hwfn *p_hwfn, in ecore_roce_start_rl() argument
94 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "\n"); in ecore_roce_start_rl()
97 params.rl_id_first = (u8)RESC_START(p_hwfn, ECORE_RL); in ecore_roce_start_rl()
98 params.rl_id_last = RESC_START(p_hwfn, ECORE_RL) + in ecore_roce_start_rl()
99 ecore_init_qm_get_num_pf_rls(p_hwfn); in ecore_roce_start_rl()
[all …]
H A Decore_init_fw_funcs.c173p_hwfn, map, chip, pq_id, rl_valid, vp_pq_id, rl_id, ext_voq, wrr) OSAL_MEMSET(&map, 0, sizeof(ma… argument
182 static u8 ecore_get_ext_voq(struct ecore_hwfn *p_hwfn, in ecore_get_ext_voq() argument
188 …return NUM_OF_PHYS_TCS * (ECORE_IS_E5(p_hwfn->p_dev) ? MAX_NUM_PORTS_E5 : MAX_NUM_PORTS_BB) + port… in ecore_get_ext_voq()
190 return port_id * (ECORE_IS_E5(p_hwfn->p_dev) ? NUM_OF_PHYS_TCS : max_phys_tcs_per_port) + tc; in ecore_get_ext_voq()
194 static void ecore_enable_pf_rl(struct ecore_hwfn *p_hwfn, in ecore_enable_pf_rl() argument
197 STORE_RT_REG(p_hwfn, QM_REG_RLPFENABLE_RT_OFFSET, pf_rl_en ? 1 : 0); in ecore_enable_pf_rl()
199 u8 num_ext_voqs = ECORE_IS_E5(p_hwfn->p_dev) ? QM_E5_NUM_EXT_VOQ : MAX_NUM_VOQS_E4; in ecore_enable_pf_rl()
203 STORE_RT_REG(p_hwfn, QM_REG_RLPFVOQENABLE_RT_OFFSET, (u32)voq_bit_mask); in ecore_enable_pf_rl()
206 STORE_RT_REG(p_hwfn, QM_REG_RLPFVOQENABLE_MSB_RT_OFFSET, (u32)(voq_bit_mask >> 32)); in ecore_enable_pf_rl()
210 STORE_RT_REG(p_hwfn, QM_REG_RLPFPERIOD_RT_OFFSET, QM_RL_PERIOD_CLK_25M); in ecore_enable_pf_rl()
[all …]
H A Decore_init_ops.c64 void ecore_init_clear_rt_data(struct ecore_hwfn *p_hwfn) in ecore_init_clear_rt_data() argument
69 p_hwfn->rt_data.b_valid[i] = false; in ecore_init_clear_rt_data()
72 void ecore_init_store_rt_reg(struct ecore_hwfn *p_hwfn, in ecore_init_store_rt_reg() argument
76 DP_ERR(p_hwfn, in ecore_init_store_rt_reg()
82 p_hwfn->rt_data.init_val[rt_offset] = val; in ecore_init_store_rt_reg()
83 p_hwfn->rt_data.b_valid[rt_offset] = true; in ecore_init_store_rt_reg()
86 void ecore_init_store_rt_agg(struct ecore_hwfn *p_hwfn, in ecore_init_store_rt_agg() argument
93 DP_ERR(p_hwfn, in ecore_init_store_rt_agg()
101 p_hwfn->rt_data.init_val[rt_offset + i] = p_val[i]; in ecore_init_store_rt_agg()
102 p_hwfn->rt_data.b_valid[rt_offset + i] = true; in ecore_init_store_rt_agg()
[all …]
H A Decore_dcbx.c155 static bool ecore_dcbx_iwarp_tlv(struct ecore_hwfn *p_hwfn, u32 app_info_bitmap, in ecore_dcbx_iwarp_tlv() argument
160 if (!p_hwfn->p_dcbx_info->iwarp_port) in ecore_dcbx_iwarp_tlv()
169 return !!(port && (proto_id == p_hwfn->p_dcbx_info->iwarp_port)); in ecore_dcbx_iwarp_tlv()
173 ecore_dcbx_dp_protocol(struct ecore_hwfn *p_hwfn, in ecore_dcbx_dp_protocol() argument
179 DP_VERBOSE(p_hwfn, ECORE_MSG_DCB, "DCBX negotiated: %d\n", in ecore_dcbx_dp_protocol()
185 DP_VERBOSE(p_hwfn, ECORE_MSG_DCB, in ecore_dcbx_dp_protocol()
189 p_data->arr[id].tc, p_hwfn->hw_info.num_active_tc, in ecore_dcbx_dp_protocol()
195 u8 ecore_dcbx_get_dscp_value(struct ecore_hwfn *p_hwfn, u8 pri) in ecore_dcbx_get_dscp_value() argument
197 struct ecore_dcbx_dscp_params *dscp = &p_hwfn->p_dcbx_info->get.dscp; in ecore_dcbx_get_dscp_value()
212 struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, in ecore_dcbx_set_params() argument
[all …]
H A Decore_mcp.h44 #define MCP_PF_ID_BY_REL(p_hwfn, rel_pfid) (ECORE_IS_BB((p_hwfn)->p_dev) ? \ argument
46 ((p_hwfn)->abs_pf_id & 1) << 3) : \
48 #define MCP_PF_ID(p_hwfn) MCP_PF_ID_BY_REL(p_hwfn, (p_hwfn)->rel_pf_id) argument
134 enum _ecore_status_t ecore_mcp_cmd_init(struct ecore_hwfn *p_hwfn,
144 void ecore_mcp_cmd_port_init(struct ecore_hwfn *p_hwfn,
155 enum _ecore_status_t ecore_mcp_free(struct ecore_hwfn *p_hwfn);
169 enum _ecore_status_t ecore_mcp_handle_events(struct ecore_hwfn *p_hwfn,
186 enum _ecore_status_t ecore_issue_pulse(struct ecore_hwfn *p_hwfn,
215 enum _ecore_status_t ecore_mcp_load_req(struct ecore_hwfn *p_hwfn,
227 enum _ecore_status_t ecore_mcp_load_done(struct ecore_hwfn *p_hwfn,
[all …]
H A Decore_l2.c70 enum _ecore_status_t ecore_l2_alloc(struct ecore_hwfn *p_hwfn) in ecore_l2_alloc() argument
76 if (!ECORE_IS_L2_PERSONALITY(p_hwfn)) in ecore_l2_alloc()
79 p_l2_info = OSAL_VZALLOC(p_hwfn->p_dev, sizeof(*p_l2_info)); in ecore_l2_alloc()
82 p_hwfn->p_l2_info = p_l2_info; in ecore_l2_alloc()
84 if (IS_PF(p_hwfn->p_dev)) { in ecore_l2_alloc()
85 p_l2_info->queues = RESC_NUM(p_hwfn, ECORE_L2_QUEUE); in ecore_l2_alloc()
89 ecore_vf_get_num_rxqs(p_hwfn, &rx); in ecore_l2_alloc()
90 ecore_vf_get_num_txqs(p_hwfn, &tx); in ecore_l2_alloc()
95 pp_qids = OSAL_VZALLOC(p_hwfn->p_dev, in ecore_l2_alloc()
103 pp_qids[i] = OSAL_VZALLOC(p_hwfn->p_dev, in ecore_l2_alloc()
[all …]
H A Decore_sp_commands.c53 enum _ecore_status_t ecore_sp_init_request(struct ecore_hwfn *p_hwfn, in ecore_sp_init_request() argument
67 rc = ecore_spq_get_entry(p_hwfn, pp_ent); in ecore_sp_init_request()
100 DP_NOTICE(p_hwfn, true, "Unknown SPQE completion mode %d\n", in ecore_sp_init_request()
105 DP_VERBOSE(p_hwfn, ECORE_MSG_SPQ, in ecore_sp_init_request()
213 ecore_tunn_set_pf_update_params(struct ecore_hwfn *p_hwfn, in ecore_tunn_set_pf_update_params() argument
217 struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel; in ecore_tunn_set_pf_update_params()
247 static void ecore_set_hw_tunn_mode(struct ecore_hwfn *p_hwfn, in ecore_set_hw_tunn_mode() argument
251 ecore_set_gre_enable(p_hwfn, p_ptt, p_tun->l2_gre.b_mode_enabled, in ecore_set_hw_tunn_mode()
253 ecore_set_vxlan_enable(p_hwfn, p_ptt, p_tun->vxlan.b_mode_enabled); in ecore_set_hw_tunn_mode()
255 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_dbg_fw_funcs.c1823 static void ecore_grc_set_param(struct ecore_hwfn *p_hwfn, in ecore_grc_set_param() argument
1827 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in ecore_grc_set_param()
1833 static u32 ecore_grc_get_param(struct ecore_hwfn *p_hwfn, in ecore_grc_get_param() argument
1836 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in ecore_grc_get_param()
1842 static void ecore_dbg_grc_init_params(struct ecore_hwfn *p_hwfn) in ecore_dbg_grc_init_params() argument
1844 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in ecore_dbg_grc_init_params()
1847 ecore_dbg_grc_set_params_default(p_hwfn); in ecore_dbg_grc_init_params()
1853 static enum dbg_status ecore_dbg_dev_init(struct ecore_hwfn *p_hwfn, in ecore_dbg_dev_init() argument
1856 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in ecore_dbg_dev_init()
1864 if (ECORE_IS_E5(p_hwfn->p_dev)) { in ecore_dbg_dev_init()
[all …]
H A Decore_ll2.c61 __ecore_ll2_handle_sanity(struct ecore_hwfn *p_hwfn, in __ecore_ll2_handle_sanity() argument
70 if (!p_hwfn->p_ll2_info) in __ecore_ll2_handle_sanity()
76 p_ll2_conn = &p_hwfn->p_ll2_info[connection_handle]; in __ecore_ll2_handle_sanity()
93 ecore_ll2_handle_sanity(struct ecore_hwfn *p_hwfn, in ecore_ll2_handle_sanity() argument
96 return __ecore_ll2_handle_sanity(p_hwfn, connection_handle, in ecore_ll2_handle_sanity()
101 ecore_ll2_handle_sanity_lock(struct ecore_hwfn *p_hwfn, in ecore_ll2_handle_sanity_lock() argument
104 return __ecore_ll2_handle_sanity(p_hwfn, connection_handle, in ecore_ll2_handle_sanity_lock()
109 ecore_ll2_handle_sanity_inactive(struct ecore_hwfn *p_hwfn, in ecore_ll2_handle_sanity_inactive() argument
112 return __ecore_ll2_handle_sanity(p_hwfn, connection_handle, in ecore_ll2_handle_sanity_inactive()
119 ecore_ll2_get_fragment_of_tx_packet(struct ecore_hwfn *p_hwfn, in ecore_ll2_get_fragment_of_tx_packet() argument
[all …]
H A Decore_vf_api.h44 enum _ecore_status_t ecore_vf_read_bulletin(struct ecore_hwfn *p_hwfn,
53 void ecore_vf_get_link_params(struct ecore_hwfn *p_hwfn,
62 void ecore_vf_get_link_state(struct ecore_hwfn *p_hwfn,
71 void ecore_vf_get_link_caps(struct ecore_hwfn *p_hwfn,
80 void ecore_vf_get_num_rxqs(struct ecore_hwfn *p_hwfn,
89 void ecore_vf_get_num_txqs(struct ecore_hwfn *p_hwfn,
98 void ecore_vf_get_num_cids(struct ecore_hwfn *p_hwfn, u8 *num_cids);
106 void ecore_vf_get_port_mac(struct ecore_hwfn *p_hwfn,
115 void ecore_vf_get_num_vlan_filters(struct ecore_hwfn *p_hwfn,
124 void ecore_vf_get_num_mac_filters(struct ecore_hwfn *p_hwfn,
[all …]
H A Decore_dbg_fw_funcs.h67 enum chip_ids ecore_dbg_get_chip_id(struct ecore_hwfn *p_hwfn);
78 void ecore_read_regs(struct ecore_hwfn *p_hwfn,
114 enum dbg_status ecore_dbg_bus_reset(struct ecore_hwfn *p_hwfn,
137 enum dbg_status ecore_dbg_bus_set_pci_output(struct ecore_hwfn *p_hwfn,
177 enum dbg_status ecore_dbg_bus_set_nw_output(struct ecore_hwfn *p_hwfn,
213 enum dbg_status ecore_dbg_bus_enable_block(struct ecore_hwfn *p_hwfn,
237 enum dbg_status ecore_dbg_bus_enable_storm(struct ecore_hwfn *p_hwfn,
263 enum dbg_status ecore_dbg_bus_enable_timestamp(struct ecore_hwfn *p_hwfn,
283 enum dbg_status ecore_dbg_bus_add_eid_range_sem_filter(struct ecore_hwfn *p_hwfn,
301 enum dbg_status ecore_dbg_bus_add_eid_mask_sem_filter(struct ecore_hwfn *p_hwfn,
[all …]
H A Decore_cxt.h58 u32 ecore_cxt_get_proto_cid_count(struct ecore_hwfn *p_hwfn,
62 u32 ecore_cxt_get_proto_tid_count(struct ecore_hwfn *p_hwfn,
65 u32 ecore_cxt_get_proto_cid_start(struct ecore_hwfn *p_hwfn,
68 u32 ecore_cxt_get_srq_count(struct ecore_hwfn *p_hwfn);
70 u32 ecore_cxt_get_xrc_srq_count(struct ecore_hwfn *p_hwfn);
79 enum _ecore_status_t ecore_cxt_set_pf_params(struct ecore_hwfn *p_hwfn,
90 enum _ecore_status_t ecore_cxt_cfg_ilt_compute(struct ecore_hwfn *p_hwfn,
99 u32 ecore_cxt_cfg_ilt_compute_excess(struct ecore_hwfn *p_hwfn, u32 used_lines);
108 enum _ecore_status_t ecore_cxt_mngr_alloc(struct ecore_hwfn *p_hwfn);
115 void ecore_cxt_mngr_free(struct ecore_hwfn *p_hwfn);
[all …]
H A Decore_vf.h95 enum _ecore_status_t ecore_vf_pf_get_coalesce(struct ecore_hwfn *p_hwfn,
108 enum _ecore_status_t ecore_vf_pf_set_coalesce(struct ecore_hwfn *p_hwfn,
121 enum _ecore_status_t ecore_vf_hw_prepare(struct ecore_hwfn *p_hwfn);
137 enum _ecore_status_t ecore_vf_pf_rxq_start(struct ecore_hwfn *p_hwfn,
158 ecore_vf_pf_txq_start(struct ecore_hwfn *p_hwfn,
172 enum _ecore_status_t ecore_vf_pf_rxq_stop(struct ecore_hwfn *p_hwfn,
184 enum _ecore_status_t ecore_vf_pf_txq_stop(struct ecore_hwfn *p_hwfn,
202 enum _ecore_status_t ecore_vf_pf_rxqs_update(struct ecore_hwfn *p_hwfn,
217 enum _ecore_status_t ecore_vf_pf_vport_update(struct ecore_hwfn *p_hwfn,
227 enum _ecore_status_t ecore_vf_pf_reset(struct ecore_hwfn *p_hwfn);
[all …]
H A Decore_ooo.c61 static struct ecore_ooo_isle *ecore_ooo_seek_isle(struct ecore_hwfn *p_hwfn, in ecore_ooo_seek_isle() argument
71 DP_NOTICE(p_hwfn, true, in ecore_ooo_seek_isle()
100 enum _ecore_status_t ecore_ooo_alloc(struct ecore_hwfn *p_hwfn) in ecore_ooo_alloc() argument
107 switch (p_hwfn->hw_info.personality) { in ecore_ooo_alloc()
110 p_hwfn->pf_params.iscsi_pf_params.num_cons; in ecore_ooo_alloc()
111 cid_base =(u16)ecore_cxt_get_proto_cid_start(p_hwfn, in ecore_ooo_alloc()
117 (u16)ecore_cxt_get_proto_cid_count(p_hwfn, in ecore_ooo_alloc()
120 cid_base = (u16)ecore_cxt_get_proto_cid_start(p_hwfn, in ecore_ooo_alloc()
124 DP_NOTICE(p_hwfn, true, in ecore_ooo_alloc()
132 DP_NOTICE(p_hwfn, true, in ecore_ooo_alloc()
[all …]

123