Home
last modified time | relevance | path

Searched refs:p_ptt (Results 1 – 25 of 36) sorted by relevance

12

/Linux-v5.4/drivers/net/ethernet/qlogic/qed/
Dqed_ptp.c66 static int qed_ptp_res_lock(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_ptp_res_lock() argument
78 rc = qed_mcp_resc_lock(p_hwfn, p_ptt, &params); in qed_ptp_res_lock()
98 static int qed_ptp_res_unlock(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_ptp_res_unlock() argument
110 rc = qed_mcp_resc_unlock(p_hwfn, p_ptt, &params); in qed_ptp_res_unlock()
130 struct qed_ptt *p_ptt = p_hwfn->p_ptp_ptt; in qed_ptp_hw_read_rx_ts() local
134 val = qed_rd(p_hwfn, p_ptt, NIG_REG_LLH_PTP_HOST_BUF_SEQID); in qed_ptp_hw_read_rx_ts()
140 val = qed_rd(p_hwfn, p_ptt, NIG_REG_LLH_PTP_HOST_BUF_TS_LSB); in qed_ptp_hw_read_rx_ts()
141 *timestamp = qed_rd(p_hwfn, p_ptt, NIG_REG_LLH_PTP_HOST_BUF_TS_MSB); in qed_ptp_hw_read_rx_ts()
146 qed_wr(p_hwfn, p_ptt, NIG_REG_LLH_PTP_HOST_BUF_SEQID, in qed_ptp_hw_read_rx_ts()
156 struct qed_ptt *p_ptt = p_hwfn->p_ptp_ptt; in qed_ptp_hw_read_tx_ts() local
[all …]
Dqed_mcp.h298 struct qed_ptt *p_ptt,
312 struct qed_ptt *p_ptt,
325 struct qed_ptt *p_ptt, u32 *p_mbi_ver);
339 struct qed_ptt *p_ptt, u32 *media_type);
354 struct qed_ptt *p_ptt,
371 struct qed_ptt *p_ptt, u32 *p_speed_mask);
385 struct qed_ptt *p_ptt, u32 *p_board_config);
405 struct qed_ptt *p_ptt,
419 struct qed_ptt *p_ptt);
431 struct qed_ptt *p_ptt,
[all …]
Dqed_mcp.c83 void qed_mcp_cmd_port_init(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_cmd_port_init() argument
87 u32 mfw_mb_offsize = qed_rd(p_hwfn, p_ptt, addr); in qed_mcp_cmd_port_init()
96 void qed_mcp_read_mb(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_read_mb() argument
105 tmp = qed_rd(p_hwfn, p_ptt, in qed_mcp_read_mb()
190 static int qed_load_mcp_offsets(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_load_mcp_offsets() argument
198 p_info->public_base = qed_rd(p_hwfn, p_ptt, MISC_REG_SHARED_MEM_ADDR); in qed_load_mcp_offsets()
208 mfw_mb_offsize = qed_rd(p_hwfn, p_ptt, in qed_load_mcp_offsets()
212 p_info->mfw_mb_length = (u16)qed_rd(p_hwfn, p_ptt, in qed_load_mcp_offsets()
225 (u16)qed_rd(p_hwfn, p_ptt, in qed_load_mcp_offsets()
238 drv_mb_offsize = qed_rd(p_hwfn, p_ptt, in qed_load_mcp_offsets()
[all …]
Dqed_hw.c97 struct qed_ptt *p_ptt; in qed_ptt_invalidate() local
101 p_ptt = &p_hwfn->p_ptt_pool->ptts[i]; in qed_ptt_invalidate()
102 p_ptt->pxp.offset = QED_BAR_INVALID_OFFSET; in qed_ptt_invalidate()
114 struct qed_ptt *p_ptt; in qed_ptt_acquire() local
122 p_ptt = list_first_entry(&p_hwfn->p_ptt_pool->free_list, in qed_ptt_acquire()
124 list_del(&p_ptt->list_entry); in qed_ptt_acquire()
129 "allocated ptt %d\n", p_ptt->idx); in qed_ptt_acquire()
130 return p_ptt; in qed_ptt_acquire()
141 void qed_ptt_release(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_ptt_release() argument
144 list_add(&p_ptt->list_entry, &p_hwfn->p_ptt_pool->free_list); in qed_ptt_release()
[all …]
Dqed_init_fw_funcs.c429 struct qed_ptt *p_ptt, in qed_tx_pq_map_rt_init() argument
535 qed_wr(p_hwfn, p_ptt, PQ_INFO_RAM_GRC_ADDRESS(pq_id), in qed_tx_pq_map_rt_init()
752 struct qed_ptt *p_ptt) in qed_poll_on_qm_cmd_ready() argument
759 reg_val = qed_rd(p_hwfn, p_ptt, QM_REG_SDMCMDREADY); in qed_poll_on_qm_cmd_ready()
773 struct qed_ptt *p_ptt, in qed_send_qm_cmd() argument
776 if (!qed_poll_on_qm_cmd_ready(p_hwfn, p_ptt)) in qed_send_qm_cmd()
779 qed_wr(p_hwfn, p_ptt, QM_REG_SDMCMDADDR, cmd_addr); in qed_send_qm_cmd()
780 qed_wr(p_hwfn, p_ptt, QM_REG_SDMCMDDATALSB, cmd_data_lsb); in qed_send_qm_cmd()
781 qed_wr(p_hwfn, p_ptt, QM_REG_SDMCMDDATAMSB, cmd_data_msb); in qed_send_qm_cmd()
782 qed_wr(p_hwfn, p_ptt, QM_REG_SDMCMDGO, 1); in qed_send_qm_cmd()
[all …]
Dqed_selftest.c69 struct qed_ptt *p_ptt; in qed_selftest_register() local
75 p_ptt = qed_ptt_acquire(p_hwfn); in qed_selftest_register()
76 if (!p_ptt) { in qed_selftest_register()
80 rc = qed_mcp_bist_register_test(p_hwfn, p_ptt); in qed_selftest_register()
81 qed_ptt_release(p_hwfn, p_ptt); in qed_selftest_register()
92 struct qed_ptt *p_ptt; in qed_selftest_clock() local
98 p_ptt = qed_ptt_acquire(p_hwfn); in qed_selftest_clock()
99 if (!p_ptt) { in qed_selftest_clock()
103 rc = qed_mcp_bist_clock_test(p_hwfn, p_ptt); in qed_selftest_clock()
104 qed_ptt_release(p_hwfn, p_ptt); in qed_selftest_clock()
[all …]
Dqed_int.h89 struct qed_ptt *p_ptt,
99 struct qed_ptt *p_ptt);
129 struct qed_ptt *p_ptt,
142 struct qed_ptt *p_ptt,
201 int qed_db_rec_handler(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
246 int qed_int_igu_reset_cam(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
270 struct qed_ptt *p_ptt,
288 struct qed_ptt *p_ptt);
352 struct qed_ptt *p_ptt,
369 struct qed_ptt *p_ptt,
[all …]
Dqed_hw.h120 struct qed_ptt *p_ptt);
130 u32 qed_ptt_get_bar_addr(struct qed_ptt *p_ptt);
140 struct qed_ptt *p_ptt,
163 struct qed_ptt *p_ptt,
176 struct qed_ptt *p_ptt,
190 struct qed_ptt *p_ptt,
206 struct qed_ptt *p_ptt,
222 struct qed_ptt *p_ptt,
234 struct qed_ptt *p_ptt,
245 struct qed_ptt *p_ptt);
[all …]
Dqed_dev.c665 qed_llh_set_engine_affin(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_llh_set_engine_affin() argument
672 rc = qed_mcp_get_engine_config(p_hwfn, p_ptt); in qed_llh_set_engine_affin()
719 struct qed_ptt *p_ptt) in qed_llh_hw_init_pf() argument
733 qed_wr(p_hwfn, p_ptt, addr, p_hwfn->rel_pf_id); in qed_llh_hw_init_pf()
746 rc = qed_llh_set_engine_affin(p_hwfn, p_ptt); in qed_llh_hw_init_pf()
767 struct qed_ptt *p_ptt = qed_ptt_acquire(p_hwfn); in qed_llh_set_ppfid_affinity() local
772 if (!p_ptt) in qed_llh_set_ppfid_affinity()
799 val = qed_rd(p_hwfn, p_ptt, addr); in qed_llh_set_ppfid_affinity()
801 qed_wr(p_hwfn, p_ptt, addr, val); in qed_llh_set_ppfid_affinity()
807 qed_ptt_release(p_hwfn, p_ptt); in qed_llh_set_ppfid_affinity()
[all …]
Dqed_int.c260 struct qed_ptt *p_ptt) in qed_pglueb_rbc_attn_handler() argument
264 tmp = qed_rd(p_hwfn, p_ptt, PGLUE_B_REG_TX_ERR_WR_DETAILS2); in qed_pglueb_rbc_attn_handler()
268 addr_lo = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
270 addr_hi = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
272 details = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
293 tmp = qed_rd(p_hwfn, p_ptt, PGLUE_B_REG_TX_ERR_RD_DETAILS2); in qed_pglueb_rbc_attn_handler()
297 addr_lo = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
299 addr_hi = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
301 details = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
322 tmp = qed_rd(p_hwfn, p_ptt, PGLUE_B_REG_TX_ERR_WR_DETAILS_ICPL); in qed_pglueb_rbc_attn_handler()
[all …]
Dqed_debug.c1790 struct qed_ptt *p_ptt) in qed_dbg_dev_init() argument
1820 switch (qed_rd(p_hwfn, p_ptt, MISC_REG_PORT_MODE)) { in qed_dbg_dev_init()
1834 qed_rd(p_hwfn, p_ptt, CNIG_REG_NW_PORT_MODE_BB) == 2) in qed_dbg_dev_init()
1874 struct qed_ptt *p_ptt, in qed_read_storm_fw_info() argument
1894 dest[i] = qed_rd(p_hwfn, p_ptt, addr); in qed_read_storm_fw_info()
1903 dest[i] = qed_rd(p_hwfn, p_ptt, addr); in qed_read_storm_fw_info()
1994 struct qed_ptt *p_ptt, in qed_dump_fw_ver_param() argument
2004 qed_read_fw_info(p_hwfn, p_ptt, &fw_info); in qed_dump_fw_ver_param()
2039 struct qed_ptt *p_ptt, in qed_dump_mfw_ver_param() argument
2053 p_ptt, in qed_dump_mfw_ver_param()
[all …]
Dqed_init_ops.c104 struct qed_ptt *p_ptt, in qed_init_rt() argument
123 qed_wr(p_hwfn, p_ptt, addr + (i << 2), p_init_val[i]); in qed_init_rt()
132 rc = qed_dmae_host2grc(p_hwfn, p_ptt, in qed_init_rt()
177 struct qed_ptt *p_ptt, in qed_init_array_dmae() argument
193 qed_wr(p_hwfn, p_ptt, addr + (i << 2), data[i]); in qed_init_array_dmae()
195 rc = qed_dmae_host2grc(p_hwfn, p_ptt, in qed_init_array_dmae()
204 struct qed_ptt *p_ptt, in qed_init_fill_dmae() argument
219 return qed_dmae_host2grc(p_hwfn, p_ptt, in qed_init_fill_dmae()
225 struct qed_ptt *p_ptt, in qed_init_fill() argument
231 qed_wr(p_hwfn, p_ptt, addr, fill); in qed_init_fill()
[all …]
Dqed_sriov.c328 int vfid, struct qed_ptt *p_ptt) in qed_iov_post_vf_bulletin() argument
357 return qed_dmae_host2host(p_hwfn, p_ptt, p_vf->bulletin.phys, in qed_iov_post_vf_bulletin()
725 struct qed_ptt *p_ptt, u8 abs_vfid) in qed_iov_vf_pglue_clear_err() argument
727 qed_wr(p_hwfn, p_ptt, in qed_iov_vf_pglue_clear_err()
733 struct qed_ptt *p_ptt, struct qed_vf_info *vf) in qed_iov_vf_igu_reset() argument
738 qed_fid_pretend(p_hwfn, p_ptt, (u16) vf->concrete_fid); in qed_iov_vf_igu_reset()
740 qed_wr(p_hwfn, p_ptt, IGU_REG_STATISTIC_NUM_VF_MSG_SENT, 0); in qed_iov_vf_igu_reset()
743 qed_fid_pretend(p_hwfn, p_ptt, (u16) p_hwfn->hw_info.concrete_fid); in qed_iov_vf_igu_reset()
747 qed_int_igu_init_pure_rt_single(p_hwfn, p_ptt, in qed_iov_vf_igu_reset()
753 struct qed_ptt *p_ptt, in qed_iov_vf_igu_set_int() argument
[all …]
Dqed_dev_api.h224 struct qed_ptt *p_ptt);
270 struct qed_ptt *p_ptt,
286 int qed_dmae_grc2host(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
302 struct qed_ptt *p_ptt,
490 struct qed_ptt *p_ptt, u16 id, bool is_vf);
532 struct qed_ptt *p_ptt, bool b_enable);
Dqed_roce.h38 void qed_roce_dpm_dcbx(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
41 struct qed_ptt *p_ptt) {} in qed_roce_dpm_dcbx() argument
46 int qed_roce_init_hw(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
Dqed_dcbx.c193 struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in qed_dcbx_set_params() argument
217 qed_wr(p_hwfn, p_ptt, DORQ_REG_TAG1_OVRD_MODE, 1); in qed_dcbx_set_params()
218 qed_wr(p_hwfn, p_ptt, DORQ_REG_PF_PCP_BB_K2, prio << 1); in qed_dcbx_set_params()
225 struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in qed_dcbx_update_app_info() argument
241 qed_dcbx_set_params(p_data, p_hwfn, p_ptt, app_tlv, enable, in qed_dcbx_update_app_info()
276 qed_dcbx_process_tlv(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in qed_dcbx_process_tlv() argument
320 qed_dcbx_update_app_info(p_data, p_hwfn, p_ptt, true, in qed_dcbx_process_tlv()
342 qed_dcbx_update_app_info(p_data, p_hwfn, p_ptt, false, enable, in qed_dcbx_process_tlv()
353 qed_dcbx_process_mib_info(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_dcbx_process_mib_info() argument
377 rc = qed_dcbx_process_tlv(p_hwfn, p_ptt, &data, p_tbl, pri_tc_tbl, in qed_dcbx_process_mib_info()
[all …]
Dqed_sp_commands.c262 struct qed_ptt *p_ptt, in qed_set_hw_tunn_mode() argument
265 qed_set_gre_enable(p_hwfn, p_ptt, p_tun->l2_gre.b_mode_enabled, in qed_set_hw_tunn_mode()
267 qed_set_vxlan_enable(p_hwfn, p_ptt, p_tun->vxlan.b_mode_enabled); in qed_set_hw_tunn_mode()
269 qed_set_geneve_enable(p_hwfn, p_ptt, p_tun->l2_geneve.b_mode_enabled, in qed_set_hw_tunn_mode()
274 struct qed_ptt *p_ptt, in qed_set_hw_tunn_mode_port() argument
278 qed_set_vxlan_dest_port(p_hwfn, p_ptt, in qed_set_hw_tunn_mode_port()
282 qed_set_geneve_dest_port(p_hwfn, p_ptt, in qed_set_hw_tunn_mode_port()
285 qed_set_hw_tunn_mode(p_hwfn, p_ptt, p_tunn); in qed_set_hw_tunn_mode_port()
325 struct qed_ptt *p_ptt, in qed_sp_pf_start() argument
440 qed_set_hw_tunn_mode_port(p_hwfn, p_ptt, in qed_sp_pf_start()
[all …]
Dqed_l2.c1635 __qed_get_vport_pstats(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in __qed_get_vport_pstats() argument
1645 qed_memcpy_from(p_hwfn, p_ptt, &pstats, pstats_addr, pstats_len); in __qed_get_vport_pstats()
1664 __qed_get_vport_tstats(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in __qed_get_vport_tstats() argument
1683 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, tstats_len); in __qed_get_vport_tstats()
1711 void __qed_get_vport_ustats(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in __qed_get_vport_ustats() argument
1721 qed_memcpy_from(p_hwfn, p_ptt, &ustats, ustats_addr, ustats_len); in __qed_get_vport_ustats()
1752 __qed_get_vport_mstats(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in __qed_get_vport_mstats() argument
1762 qed_memcpy_from(p_hwfn, p_ptt, &mstats, mstats_addr, mstats_len); in __qed_get_vport_mstats()
1780 __qed_get_vport_port_stats(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in __qed_get_vport_port_stats() argument
1789 qed_memcpy_from(p_hwfn, p_ptt, &port_stats, in __qed_get_vport_port_stats()
[all …]
Dqed_rdma.h178 void qed_rdma_dpm_bar(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
179 void qed_rdma_dpm_conf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
183 static inline void qed_rdma_dpm_conf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) {} in qed_rdma_dpm_conf() argument
185 struct qed_ptt *p_ptt) {} in qed_rdma_dpm_bar() argument
Dqed_rdma.c559 static int qed_rdma_init_hw(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_rdma_init_hw() argument
567 qed_iwarp_init_hw(p_hwfn, p_ptt); in qed_rdma_init_hw()
569 rc = qed_roce_init_hw(p_hwfn, p_ptt); in qed_rdma_init_hw()
576 struct qed_ptt *p_ptt) in qed_rdma_start_fw() argument
682 struct qed_ptt *p_ptt, in qed_rdma_setup() argument
697 rc = qed_rdma_init_hw(p_hwfn, p_ptt); in qed_rdma_setup()
711 return qed_rdma_start_fw(p_hwfn, params, p_ptt); in qed_rdma_setup()
720 struct qed_ptt *p_ptt; in qed_rdma_stop() local
726 p_ptt = qed_ptt_acquire(p_hwfn); in qed_rdma_stop()
727 if (!p_ptt) { in qed_rdma_stop()
[all …]
Dqed_fcoe.c362 struct qed_ptt *p_ptt, in qed_sp_fcoe_func_stop() argument
384 active_segs = qed_rd(p_hwfn, p_ptt, TM_REG_PF_ENABLE_TASK); in qed_sp_fcoe_func_stop()
386 qed_wr(p_hwfn, p_ptt, TM_REG_PF_ENABLE_TASK, active_segs); in qed_sp_fcoe_func_stop()
666 struct qed_ptt *p_ptt, in _qed_fcoe_get_tstats() argument
675 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_fcoe_get_tstats()
698 struct qed_ptt *p_ptt, in _qed_fcoe_get_pstats() argument
707 qed_memcpy_from(p_hwfn, p_ptt, &pstats, pstats_addr, sizeof(pstats)); in _qed_fcoe_get_pstats()
721 struct qed_ptt *p_ptt; in qed_fcoe_get_stats() local
725 p_ptt = qed_ptt_acquire(p_hwfn); in qed_fcoe_get_stats()
727 if (!p_ptt) { in qed_fcoe_get_stats()
[all …]
Dqed_cxt.h165 void qed_cxt_hw_init_pf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
175 struct qed_ptt *p_ptt, bool is_pf_loading);
185 int qed_qm_reconf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
Dqed_l2.h296 struct qed_ptt *p_ptt,
439 struct qed_ptt *p_ptt,
443 struct qed_ptt *p_ptt,
447 struct qed_ptt *p_ptt,
451 struct qed_ptt *p_ptt,
Dqed_iscsi.c934 struct qed_ptt *p_ptt, in _qed_iscsi_get_tstats() argument
943 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_iscsi_get_tstats()
960 struct qed_ptt *p_ptt, in _qed_iscsi_get_mstats() argument
969 qed_memcpy_from(p_hwfn, p_ptt, &mstats, mstats_addr, sizeof(mstats)); in _qed_iscsi_get_mstats()
976 struct qed_ptt *p_ptt, in _qed_iscsi_get_ustats() argument
985 qed_memcpy_from(p_hwfn, p_ptt, &ustats, ustats_addr, sizeof(ustats)); in _qed_iscsi_get_ustats()
996 struct qed_ptt *p_ptt, in _qed_iscsi_get_xstats() argument
1005 qed_memcpy_from(p_hwfn, p_ptt, &xstats, xstats_addr, sizeof(xstats)); in _qed_iscsi_get_xstats()
1014 struct qed_ptt *p_ptt, in _qed_iscsi_get_ystats() argument
1023 qed_memcpy_from(p_hwfn, p_ptt, &ystats, ystats_addr, sizeof(ystats)); in _qed_iscsi_get_ystats()
[all …]
Dqed_ll2.c1485 struct qed_ptt *p_ptt; in qed_ll2_establish_connection() local
1491 p_ptt = qed_ptt_acquire(p_hwfn); in qed_ll2_establish_connection()
1492 if (!p_ptt) in qed_ll2_establish_connection()
1569 qed_wr(p_hwfn, p_ptt, PRS_REG_USE_LIGHT_L2, 1); in qed_ll2_establish_connection()
1584 qed_ptt_release(p_hwfn, p_ptt); in qed_ll2_establish_connection()
1941 struct qed_ptt *p_ptt; in qed_ll2_terminate_connection() local
1943 p_ptt = qed_ptt_acquire(p_hwfn); in qed_ll2_terminate_connection()
1944 if (!p_ptt) in qed_ll2_terminate_connection()
1990 qed_ptt_release(p_hwfn, p_ptt); in qed_ll2_terminate_connection()
2076 struct qed_ptt *p_ptt, in _qed_ll2_get_port_stats() argument
[all …]

12