Lines Matching refs:p_hwfn
42 struct qed_hwfn *p_hwfn; in qed_selftest_register() local
48 p_hwfn = &cdev->hwfns[i]; in qed_selftest_register()
49 p_ptt = qed_ptt_acquire(p_hwfn); in qed_selftest_register()
51 DP_ERR(p_hwfn, "failed to acquire ptt\n"); 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()
65 struct qed_hwfn *p_hwfn; in qed_selftest_clock() local
71 p_hwfn = &cdev->hwfns[i]; in qed_selftest_clock()
72 p_ptt = qed_ptt_acquire(p_hwfn); in qed_selftest_clock()
74 DP_ERR(p_hwfn, "failed to acquire ptt\n"); 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()
88 struct qed_hwfn *p_hwfn = QED_LEADING_HWFN(cdev); in qed_selftest_nvram() local
89 struct qed_ptt *p_ptt = qed_ptt_acquire(p_hwfn); in qed_selftest_nvram()
97 DP_ERR(p_hwfn, "failed to acquire ptt\n"); in qed_selftest_nvram()
102 rc = qed_mcp_bist_nvm_get_num_images(p_hwfn, p_ptt, &num_images); in qed_selftest_nvram()
104 DP_ERR(p_hwfn, "Failed getting number of images\n"); in qed_selftest_nvram()
114 rc = qed_mcp_bist_nvm_get_image_att(p_hwfn, p_ptt, in qed_selftest_nvram()
117 DP_ERR(p_hwfn, in qed_selftest_nvram()
129 DP_VERBOSE(p_hwfn, QED_MSG_SP, "image index %d, size %x\n", in qed_selftest_nvram()
140 rc = qed_mcp_nvm_read(p_hwfn->cdev, image_att.nvm_start_addr, in qed_selftest_nvram()
143 DP_ERR(p_hwfn, in qed_selftest_nvram()
162 DP_VERBOSE(p_hwfn, QED_MSG_SP, in qed_selftest_nvram()
177 qed_ptt_release(p_hwfn, p_ptt); in qed_selftest_nvram()
183 qed_ptt_release(p_hwfn, p_ptt); in qed_selftest_nvram()