Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_ptp.c42 static int qed_ptp_res_lock(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_ptp_res_lock() argument
54 rc = qed_mcp_resc_lock(p_hwfn, p_ptt, &params); in qed_ptp_res_lock()
74 static int qed_ptp_res_unlock(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_ptp_res_unlock() argument
86 rc = qed_mcp_resc_unlock(p_hwfn, p_ptt, &params); in qed_ptp_res_unlock()
106 struct qed_ptt *p_ptt = p_hwfn->p_ptp_ptt; in qed_ptp_hw_read_rx_ts() local
110 val = qed_rd(p_hwfn, p_ptt, NIG_REG_LLH_PTP_HOST_BUF_SEQID); in qed_ptp_hw_read_rx_ts()
116 val = qed_rd(p_hwfn, p_ptt, NIG_REG_LLH_PTP_HOST_BUF_TS_LSB); in qed_ptp_hw_read_rx_ts()
117 *timestamp = qed_rd(p_hwfn, p_ptt, NIG_REG_LLH_PTP_HOST_BUF_TS_MSB); in qed_ptp_hw_read_rx_ts()
122 qed_wr(p_hwfn, p_ptt, NIG_REG_LLH_PTP_HOST_BUF_SEQID, in qed_ptp_hw_read_rx_ts()
132 struct qed_ptt *p_ptt = p_hwfn->p_ptp_ptt; in qed_ptp_hw_read_tx_ts() local
[all …]
Dqed_mcp.h306 struct qed_ptt *p_ptt,
320 struct qed_ptt *p_ptt,
333 struct qed_ptt *p_ptt, u32 *p_mbi_ver);
347 struct qed_ptt *p_ptt, u32 *media_type);
362 struct qed_ptt *p_ptt,
379 struct qed_ptt *p_ptt, u32 *p_speed_mask);
393 struct qed_ptt *p_ptt, u32 *p_board_config);
413 struct qed_ptt *p_ptt,
427 struct qed_ptt *p_ptt);
439 struct qed_ptt *p_ptt,
[all …]
Dqed_mcp.c59 void qed_mcp_cmd_port_init(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_cmd_port_init() argument
63 u32 mfw_mb_offsize = qed_rd(p_hwfn, p_ptt, addr); in qed_mcp_cmd_port_init()
72 void qed_mcp_read_mb(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_read_mb() argument
81 tmp = qed_rd(p_hwfn, p_ptt, in qed_mcp_read_mb()
166 static int qed_load_mcp_offsets(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_load_mcp_offsets() argument
174 p_info->public_base = qed_rd(p_hwfn, p_ptt, MISC_REG_SHARED_MEM_ADDR); in qed_load_mcp_offsets()
184 mfw_mb_offsize = qed_rd(p_hwfn, p_ptt, in qed_load_mcp_offsets()
188 p_info->mfw_mb_length = (u16)qed_rd(p_hwfn, p_ptt, in qed_load_mcp_offsets()
201 (u16)qed_rd(p_hwfn, p_ptt, in qed_load_mcp_offsets()
214 drv_mb_offsize = qed_rd(p_hwfn, p_ptt, in qed_load_mcp_offsets()
[all …]
Dqed_hw.c71 struct qed_ptt *p_ptt; in qed_ptt_invalidate() local
75 p_ptt = &p_hwfn->p_ptt_pool->ptts[i]; in qed_ptt_invalidate()
76 p_ptt->pxp.offset = QED_BAR_INVALID_OFFSET; in qed_ptt_invalidate()
88 struct qed_ptt *p_ptt; in qed_ptt_acquire() local
96 p_ptt = list_first_entry(&p_hwfn->p_ptt_pool->free_list, in qed_ptt_acquire()
98 list_del(&p_ptt->list_entry); in qed_ptt_acquire()
103 "allocated ptt %d\n", p_ptt->idx); in qed_ptt_acquire()
104 return p_ptt; in qed_ptt_acquire()
115 void qed_ptt_release(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_ptt_release() argument
118 list_add(&p_ptt->list_entry, &p_hwfn->p_ptt_pool->free_list); in qed_ptt_release()
[all …]
Dqed_selftest.c43 struct qed_ptt *p_ptt; in qed_selftest_register() local
49 p_ptt = qed_ptt_acquire(p_hwfn); in qed_selftest_register()
50 if (!p_ptt) { in qed_selftest_register()
54 rc = qed_mcp_bist_register_test(p_hwfn, p_ptt); in qed_selftest_register()
55 qed_ptt_release(p_hwfn, p_ptt); in qed_selftest_register()
66 struct qed_ptt *p_ptt; in qed_selftest_clock() local
72 p_ptt = qed_ptt_acquire(p_hwfn); in qed_selftest_clock()
73 if (!p_ptt) { in qed_selftest_clock()
77 rc = qed_mcp_bist_clock_test(p_hwfn, p_ptt); in qed_selftest_clock()
78 qed_ptt_release(p_hwfn, p_ptt); in qed_selftest_clock()
[all …]
Dqed_init_fw_funcs.c455 struct qed_ptt *p_ptt, in qed_tx_pq_map_rt_init() argument
552 qed_wr(p_hwfn, p_ptt, PQ_INFO_RAM_GRC_ADDRESS(pq_id), in qed_tx_pq_map_rt_init()
727 struct qed_ptt *p_ptt) in qed_poll_on_qm_cmd_ready() argument
734 reg_val = qed_rd(p_hwfn, p_ptt, QM_REG_SDMCMDREADY); in qed_poll_on_qm_cmd_ready()
748 struct qed_ptt *p_ptt, in qed_send_qm_cmd() argument
751 if (!qed_poll_on_qm_cmd_ready(p_hwfn, p_ptt)) in qed_send_qm_cmd()
754 qed_wr(p_hwfn, p_ptt, QM_REG_SDMCMDADDR, cmd_addr); in qed_send_qm_cmd()
755 qed_wr(p_hwfn, p_ptt, QM_REG_SDMCMDDATALSB, cmd_data_lsb); in qed_send_qm_cmd()
756 qed_wr(p_hwfn, p_ptt, QM_REG_SDMCMDDATAMSB, cmd_data_msb); in qed_send_qm_cmd()
757 qed_wr(p_hwfn, p_ptt, QM_REG_SDMCMDGO, 1); in qed_send_qm_cmd()
[all …]
Dqed_hw.h94 struct qed_ptt *p_ptt);
104 u32 qed_ptt_get_bar_addr(struct qed_ptt *p_ptt);
114 struct qed_ptt *p_ptt,
137 struct qed_ptt *p_ptt,
150 struct qed_ptt *p_ptt,
164 struct qed_ptt *p_ptt,
180 struct qed_ptt *p_ptt,
196 struct qed_ptt *p_ptt,
208 struct qed_ptt *p_ptt,
219 struct qed_ptt *p_ptt);
[all …]
Dqed_int.h63 struct qed_ptt *p_ptt,
73 struct qed_ptt *p_ptt);
103 struct qed_ptt *p_ptt,
116 struct qed_ptt *p_ptt,
186 int qed_db_rec_handler(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
231 int qed_int_igu_reset_cam(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
255 struct qed_ptt *p_ptt,
273 struct qed_ptt *p_ptt);
337 struct qed_ptt *p_ptt,
354 struct qed_ptt *p_ptt,
[all …]
Dqed_dev.c639 qed_llh_set_engine_affin(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_llh_set_engine_affin() argument
646 rc = qed_mcp_get_engine_config(p_hwfn, p_ptt); in qed_llh_set_engine_affin()
693 struct qed_ptt *p_ptt) in qed_llh_hw_init_pf() argument
707 qed_wr(p_hwfn, p_ptt, addr, p_hwfn->rel_pf_id); in qed_llh_hw_init_pf()
720 rc = qed_llh_set_engine_affin(p_hwfn, p_ptt); in qed_llh_hw_init_pf()
741 struct qed_ptt *p_ptt = qed_ptt_acquire(p_hwfn); in qed_llh_set_ppfid_affinity() local
746 if (!p_ptt) in qed_llh_set_ppfid_affinity()
773 val = qed_rd(p_hwfn, p_ptt, addr); in qed_llh_set_ppfid_affinity()
775 qed_wr(p_hwfn, p_ptt, addr, val); in qed_llh_set_ppfid_affinity()
781 qed_ptt_release(p_hwfn, p_ptt); in qed_llh_set_ppfid_affinity()
[all …]
Dqed_debug.c970 struct qed_ptt *p_ptt, in qed_read_storm_fw_info() argument
991 dest[i] = qed_rd(p_hwfn, p_ptt, addr); in qed_read_storm_fw_info()
1008 dest[i] = qed_rd(p_hwfn, p_ptt, addr); in qed_read_storm_fw_info()
1100 struct qed_ptt *p_ptt, in qed_dump_fw_ver_param() argument
1110 qed_read_fw_info(p_hwfn, p_ptt, &fw_info); in qed_dump_fw_ver_param()
1144 struct qed_ptt *p_ptt, in qed_dump_mfw_ver_param() argument
1158 p_ptt, in qed_dump_mfw_ver_param()
1167 global_section_offsize = qed_rd(p_hwfn, p_ptt, in qed_dump_mfw_ver_param()
1174 mfw_ver = qed_rd(p_hwfn, p_ptt, in qed_dump_mfw_ver_param()
1193 struct qed_ptt *p_ptt, in qed_dump_chip_revision_param() argument
[all …]
Dqed_int.c234 int qed_pglueb_rbc_attn_handler(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in qed_pglueb_rbc_attn_handler() argument
240 tmp = qed_rd(p_hwfn, p_ptt, PGLUE_B_REG_TX_ERR_WR_DETAILS2); in qed_pglueb_rbc_attn_handler()
244 addr_lo = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
246 addr_hi = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
248 details = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
270 tmp = qed_rd(p_hwfn, p_ptt, PGLUE_B_REG_TX_ERR_RD_DETAILS2); in qed_pglueb_rbc_attn_handler()
274 addr_lo = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
276 addr_hi = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
278 details = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
299 tmp = qed_rd(p_hwfn, p_ptt, PGLUE_B_REG_TX_ERR_WR_DETAILS_ICPL); in qed_pglueb_rbc_attn_handler()
[all …]
Dqed_init_ops.c142 struct qed_ptt *p_ptt, in qed_init_rt() argument
161 qed_wr(p_hwfn, p_ptt, addr + (i << 2), p_init_val[i]); in qed_init_rt()
171 rc = qed_dmae_host2grc(p_hwfn, p_ptt, in qed_init_rt()
220 struct qed_ptt *p_ptt, in qed_init_array_dmae() argument
236 qed_wr(p_hwfn, p_ptt, addr + (i << 2), data[i]); in qed_init_array_dmae()
238 rc = qed_dmae_host2grc(p_hwfn, p_ptt, in qed_init_array_dmae()
247 struct qed_ptt *p_ptt, in qed_init_fill_dmae() argument
262 return qed_dmae_host2grc(p_hwfn, p_ptt, in qed_init_fill_dmae()
268 struct qed_ptt *p_ptt, in qed_init_fill() argument
274 qed_wr(p_hwfn, p_ptt, addr, fill); in qed_init_fill()
[all …]
Dqed_sriov.c304 int vfid, struct qed_ptt *p_ptt) in qed_iov_post_vf_bulletin() argument
333 return qed_dmae_host2host(p_hwfn, p_ptt, p_vf->bulletin.phys, in qed_iov_post_vf_bulletin()
704 struct qed_ptt *p_ptt, u8 abs_vfid) in qed_iov_vf_pglue_clear_err() argument
706 qed_wr(p_hwfn, p_ptt, in qed_iov_vf_pglue_clear_err()
712 struct qed_ptt *p_ptt, struct qed_vf_info *vf) in qed_iov_vf_igu_reset() argument
717 qed_fid_pretend(p_hwfn, p_ptt, (u16) vf->concrete_fid); in qed_iov_vf_igu_reset()
719 qed_wr(p_hwfn, p_ptt, IGU_REG_STATISTIC_NUM_VF_MSG_SENT, 0); in qed_iov_vf_igu_reset()
722 qed_fid_pretend(p_hwfn, p_ptt, (u16) p_hwfn->hw_info.concrete_fid); in qed_iov_vf_igu_reset()
726 qed_int_igu_init_pure_rt_single(p_hwfn, p_ptt, in qed_iov_vf_igu_reset()
732 struct qed_ptt *p_ptt, in qed_iov_vf_igu_set_int() argument
[all …]
Dqed_dev_api.h198 struct qed_ptt *p_ptt);
220 struct qed_ptt *p_ptt,
236 int qed_dmae_grc2host(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
252 struct qed_ptt *p_ptt,
414 struct qed_ptt *p_ptt, u16 id, bool is_vf);
456 struct qed_ptt *p_ptt, bool b_enable);
Dqed_roce.h13 void qed_roce_dpm_dcbx(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
16 struct qed_ptt *p_ptt) {} in qed_roce_dpm_dcbx() argument
21 int qed_roce_init_hw(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
Dqed_dcbx.c167 struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in qed_dcbx_set_params() argument
191 qed_wr(p_hwfn, p_ptt, DORQ_REG_TAG1_OVRD_MODE, 1); in qed_dcbx_set_params()
192 qed_wr(p_hwfn, p_ptt, DORQ_REG_PF_PCP_BB_K2, prio << 1); in qed_dcbx_set_params()
199 struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in qed_dcbx_update_app_info() argument
215 qed_dcbx_set_params(p_data, p_hwfn, p_ptt, app_tlv, enable, in qed_dcbx_update_app_info()
250 qed_dcbx_process_tlv(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in qed_dcbx_process_tlv() argument
294 qed_dcbx_update_app_info(p_data, p_hwfn, p_ptt, true, in qed_dcbx_process_tlv()
316 qed_dcbx_update_app_info(p_data, p_hwfn, p_ptt, false, enable, in qed_dcbx_process_tlv()
327 qed_dcbx_process_mib_info(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_dcbx_process_mib_info() argument
351 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.c236 struct qed_ptt *p_ptt, in qed_set_hw_tunn_mode() argument
239 qed_set_gre_enable(p_hwfn, p_ptt, p_tun->l2_gre.b_mode_enabled, in qed_set_hw_tunn_mode()
241 qed_set_vxlan_enable(p_hwfn, p_ptt, p_tun->vxlan.b_mode_enabled); in qed_set_hw_tunn_mode()
243 qed_set_geneve_enable(p_hwfn, p_ptt, p_tun->l2_geneve.b_mode_enabled, in qed_set_hw_tunn_mode()
248 struct qed_ptt *p_ptt, in qed_set_hw_tunn_mode_port() argument
252 qed_set_vxlan_dest_port(p_hwfn, p_ptt, in qed_set_hw_tunn_mode_port()
256 qed_set_geneve_dest_port(p_hwfn, p_ptt, in qed_set_hw_tunn_mode_port()
259 qed_set_hw_tunn_mode(p_hwfn, p_ptt, p_tunn); in qed_set_hw_tunn_mode_port()
299 struct qed_ptt *p_ptt, in qed_sp_pf_start() argument
416 qed_set_hw_tunn_mode_port(p_hwfn, p_ptt, in qed_sp_pf_start()
[all …]
Dqed_l2.c1614 __qed_get_vport_pstats(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in __qed_get_vport_pstats() argument
1624 qed_memcpy_from(p_hwfn, p_ptt, &pstats, pstats_addr, pstats_len); in __qed_get_vport_pstats()
1643 __qed_get_vport_tstats(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in __qed_get_vport_tstats() argument
1662 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, tstats_len); in __qed_get_vport_tstats()
1690 void __qed_get_vport_ustats(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in __qed_get_vport_ustats() argument
1700 qed_memcpy_from(p_hwfn, p_ptt, &ustats, ustats_addr, ustats_len); in __qed_get_vport_ustats()
1731 __qed_get_vport_mstats(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in __qed_get_vport_mstats() argument
1741 qed_memcpy_from(p_hwfn, p_ptt, &mstats, mstats_addr, mstats_len); in __qed_get_vport_mstats()
1759 __qed_get_vport_port_stats(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in __qed_get_vport_port_stats() argument
1768 qed_memcpy_from(p_hwfn, p_ptt, &port_stats, in __qed_get_vport_port_stats()
[all …]
Dqed_rdma.c562 static int qed_rdma_init_hw(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_rdma_init_hw() argument
570 qed_iwarp_init_hw(p_hwfn, p_ptt); in qed_rdma_init_hw()
572 rc = qed_roce_init_hw(p_hwfn, p_ptt); in qed_rdma_init_hw()
579 struct qed_ptt *p_ptt) in qed_rdma_start_fw() argument
688 struct qed_ptt *p_ptt, in qed_rdma_setup() argument
703 rc = qed_rdma_init_hw(p_hwfn, p_ptt); in qed_rdma_setup()
717 return qed_rdma_start_fw(p_hwfn, params, p_ptt); in qed_rdma_setup()
726 struct qed_ptt *p_ptt; in qed_rdma_stop() local
732 p_ptt = qed_ptt_acquire(p_hwfn); in qed_rdma_stop()
733 if (!p_ptt) { in qed_rdma_stop()
[all …]
Dqed_fcoe.c335 struct qed_ptt *p_ptt, in qed_sp_fcoe_func_stop() argument
357 active_segs = qed_rd(p_hwfn, p_ptt, TM_REG_PF_ENABLE_TASK); in qed_sp_fcoe_func_stop()
359 qed_wr(p_hwfn, p_ptt, TM_REG_PF_ENABLE_TASK, active_segs); in qed_sp_fcoe_func_stop()
644 struct qed_ptt *p_ptt, in _qed_fcoe_get_tstats() argument
653 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_fcoe_get_tstats()
676 struct qed_ptt *p_ptt, in _qed_fcoe_get_pstats() argument
685 qed_memcpy_from(p_hwfn, p_ptt, &pstats, pstats_addr, sizeof(pstats)); in _qed_fcoe_get_pstats()
699 struct qed_ptt *p_ptt; in qed_fcoe_get_stats() local
703 p_ptt = qed_ptt_acquire(p_hwfn); in qed_fcoe_get_stats()
705 if (!p_ptt) { in qed_fcoe_get_stats()
[all …]
Dqed_rdma.h172 void qed_rdma_dpm_bar(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
173 void qed_rdma_dpm_conf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
177 static inline void qed_rdma_dpm_conf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) {} in qed_rdma_dpm_conf() argument
179 struct qed_ptt *p_ptt) {} in qed_rdma_dpm_bar() argument
Dqed_l2.h271 struct qed_ptt *p_ptt,
414 struct qed_ptt *p_ptt,
418 struct qed_ptt *p_ptt,
422 struct qed_ptt *p_ptt,
426 struct qed_ptt *p_ptt,
Dqed_iscsi.c885 struct qed_ptt *p_ptt, in _qed_iscsi_get_tstats() argument
894 qed_memcpy_from(p_hwfn, p_ptt, &tstats, tstats_addr, sizeof(tstats)); in _qed_iscsi_get_tstats()
911 struct qed_ptt *p_ptt, in _qed_iscsi_get_mstats() argument
920 qed_memcpy_from(p_hwfn, p_ptt, &mstats, mstats_addr, sizeof(mstats)); in _qed_iscsi_get_mstats()
927 struct qed_ptt *p_ptt, in _qed_iscsi_get_ustats() argument
936 qed_memcpy_from(p_hwfn, p_ptt, &ustats, ustats_addr, sizeof(ustats)); in _qed_iscsi_get_ustats()
947 struct qed_ptt *p_ptt, in _qed_iscsi_get_xstats() argument
956 qed_memcpy_from(p_hwfn, p_ptt, &xstats, xstats_addr, sizeof(xstats)); in _qed_iscsi_get_xstats()
965 struct qed_ptt *p_ptt, in _qed_iscsi_get_ystats() argument
974 qed_memcpy_from(p_hwfn, p_ptt, &ystats, ystats_addr, sizeof(ystats)); in _qed_iscsi_get_ystats()
[all …]
Dqed_cxt.h140 void qed_cxt_hw_init_pf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
150 struct qed_ptt *p_ptt, bool is_pf_loading);
160 int qed_qm_reconf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
Dqed_spq.c94 struct qed_ptt *p_ptt; in qed_spq_block() local
111 p_ptt = qed_ptt_acquire(p_hwfn); in qed_spq_block()
112 if (!p_ptt) { in qed_spq_block()
118 rc = qed_mcp_drain(p_hwfn, p_ptt); in qed_spq_block()
119 qed_ptt_release(p_hwfn, p_ptt); in qed_spq_block()
137 p_ptt = qed_ptt_acquire(p_hwfn); in qed_spq_block()
138 if (!p_ptt) in qed_spq_block()
140 qed_hw_err_notify(p_hwfn, p_ptt, QED_HW_ERR_RAMROD_FAIL, in qed_spq_block()
146 qed_ptt_release(p_hwfn, p_ptt); in qed_spq_block()

12