Lines Matching defs:p_hwfn

52 bool qed_mcp_is_init(struct qed_hwfn *p_hwfn)  in qed_mcp_is_init()
59 void qed_mcp_cmd_port_init(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) 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()
100 qed_mcp_cmd_add_elem(struct qed_hwfn *p_hwfn, in qed_mcp_cmd_add_elem()
118 static void qed_mcp_cmd_del_elem(struct qed_hwfn *p_hwfn, in qed_mcp_cmd_del_elem()
126 static struct qed_mcp_cmd_elem *qed_mcp_cmd_get_elem(struct qed_hwfn *p_hwfn, in qed_mcp_cmd_get_elem()
139 int qed_mcp_free(struct qed_hwfn *p_hwfn) in qed_mcp_free()
166 static int qed_load_mcp_offsets(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_load_mcp_offsets()
237 int qed_mcp_cmd_init(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_cmd_init()
275 static void qed_mcp_reread_offsets(struct qed_hwfn *p_hwfn, in qed_mcp_reread_offsets()
294 int qed_mcp_reset(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_reset()
338 static bool qed_mcp_has_pending_cmd(struct qed_hwfn *p_hwfn) in qed_mcp_has_pending_cmd()
356 qed_mcp_update_pending_cmd(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_update_pending_cmd()
401 static void __qed_mcp_cmd_and_union(struct qed_hwfn *p_hwfn, in __qed_mcp_cmd_and_union()
430 static void qed_mcp_cmd_set_blocking(struct qed_hwfn *p_hwfn, bool block_cmd) in qed_mcp_cmd_set_blocking()
438 static void qed_mcp_print_cpu_info(struct qed_hwfn *p_hwfn, in qed_mcp_print_cpu_info()
458 _qed_mcp_cmd_and_union(struct qed_hwfn *p_hwfn, in _qed_mcp_cmd_and_union()
577 static int qed_mcp_cmd_and_union(struct qed_hwfn *p_hwfn, in qed_mcp_cmd_and_union()
616 int qed_mcp_cmd(struct qed_hwfn *p_hwfn, in qed_mcp_cmd()
641 qed_mcp_nvm_wr_cmd(struct qed_hwfn *p_hwfn, in qed_mcp_nvm_wr_cmd()
669 int qed_mcp_nvm_rd_cmd(struct qed_hwfn *p_hwfn, in qed_mcp_nvm_rd_cmd()
726 static int qed_mcp_cancel_load_req(struct qed_hwfn *p_hwfn, in qed_mcp_cancel_load_req()
797 __qed_mcp_load_req(struct qed_hwfn *p_hwfn, in __qed_mcp_load_req()
893 static int eocre_get_mfw_drv_role(struct qed_hwfn *p_hwfn, in eocre_get_mfw_drv_role()
918 static void qed_get_mfw_force_cmd(struct qed_hwfn *p_hwfn, in qed_get_mfw_force_cmd()
936 int qed_mcp_load_req(struct qed_hwfn *p_hwfn, in qed_mcp_load_req()
1051 int qed_mcp_load_done(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_load_done()
1072 int qed_mcp_unload_req(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_unload_req()
1101 int qed_mcp_unload_done(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_unload_done()
1130 static void qed_mcp_handle_vf_flr(struct qed_hwfn *p_hwfn, in qed_mcp_handle_vf_flr()
1161 int qed_mcp_ack_vf_flr(struct qed_hwfn *p_hwfn, in qed_mcp_ack_vf_flr()
1198 static void qed_mcp_handle_transceiver_change(struct qed_hwfn *p_hwfn, in qed_mcp_handle_transceiver_change()
1224 static void qed_mcp_read_eee_config(struct qed_hwfn *p_hwfn, in qed_mcp_read_eee_config()
1249 static u32 qed_mcp_get_shmem_func(struct qed_hwfn *p_hwfn, in qed_mcp_get_shmem_func()
1269 static void qed_read_pf_bandwidth(struct qed_hwfn *p_hwfn, in qed_read_pf_bandwidth()
1295 static void qed_mcp_handle_link_change(struct qed_hwfn *p_hwfn, in qed_mcp_handle_link_change()
1473 int qed_mcp_set_link(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, bool b_up) in qed_mcp_set_link()
1622 u32 qed_get_process_kill_counter(struct qed_hwfn *p_hwfn, in qed_get_process_kill_counter()
1643 static void qed_mcp_handle_process_kill(struct qed_hwfn *p_hwfn, in qed_mcp_handle_process_kill()
1676 static void qed_mcp_send_protocol_stats(struct qed_hwfn *p_hwfn, in qed_mcp_send_protocol_stats()
1717 static void qed_mcp_update_bw(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_update_bw()
1737 static void qed_mcp_update_stag(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_update_stag()
1775 static void qed_mcp_handle_fan_failure(struct qed_hwfn *p_hwfn, in qed_mcp_handle_fan_failure()
1796 qed_mcp_mdump_cmd(struct qed_hwfn *p_hwfn, in qed_mcp_mdump_cmd()
1830 static int qed_mcp_mdump_ack(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_mdump_ack()
1841 qed_mcp_mdump_get_retain(struct qed_hwfn *p_hwfn, in qed_mcp_mdump_get_retain()
1867 static void qed_mcp_handle_critical_error(struct qed_hwfn *p_hwfn, in qed_mcp_handle_critical_error()
1896 void qed_mcp_read_ufp_config(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_read_ufp_config()
1950 qed_mcp_handle_ufp_event(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_handle_ufp_event()
1978 int qed_mcp_handle_events(struct qed_hwfn *p_hwfn, in qed_mcp_handle_events()
2081 int qed_mcp_get_mfw_ver(struct qed_hwfn *p_hwfn, in qed_mcp_get_mfw_ver()
2121 int qed_mcp_get_mbi_ver(struct qed_hwfn *p_hwfn, in qed_mcp_get_mbi_ver()
2151 int qed_mcp_get_media_type(struct qed_hwfn *p_hwfn, in qed_mcp_get_media_type()
2177 int qed_mcp_get_transceiver_data(struct qed_hwfn *p_hwfn, in qed_mcp_get_transceiver_data()
2224 int qed_mcp_trans_speed_mask(struct qed_hwfn *p_hwfn, in qed_mcp_trans_speed_mask()
2338 int qed_mcp_get_board_config(struct qed_hwfn *p_hwfn, in qed_mcp_get_board_config()
2369 qed_mcp_get_shmem_proto_legacy(struct qed_hwfn *p_hwfn, in qed_mcp_get_shmem_proto_legacy()
2386 qed_mcp_get_shmem_proto_mfw(struct qed_hwfn *p_hwfn, in qed_mcp_get_shmem_proto_mfw()
2432 qed_mcp_get_shmem_proto(struct qed_hwfn *p_hwfn, in qed_mcp_get_shmem_proto()
2462 int qed_mcp_fill_shmem_func_info(struct qed_hwfn *p_hwfn, in qed_mcp_fill_shmem_func_info()
2532 *qed_mcp_get_link_params(struct qed_hwfn *p_hwfn) in qed_mcp_get_link_params()
2540 *qed_mcp_get_link_state(struct qed_hwfn *p_hwfn) in qed_mcp_get_link_state()
2548 *qed_mcp_get_link_capabilities(struct qed_hwfn *p_hwfn) in qed_mcp_get_link_capabilities()
2555 int qed_mcp_drain(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_drain()
2569 int qed_mcp_get_flash_size(struct qed_hwfn *p_hwfn, in qed_mcp_get_flash_size()
2587 int qed_start_recovery_process(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_start_recovery_process()
2607 struct qed_hwfn *p_hwfn = QED_LEADING_HWFN(cdev); in qed_recovery_prolog() local
2625 qed_mcp_config_vf_msix_bb(struct qed_hwfn *p_hwfn, in qed_mcp_config_vf_msix_bb()
2657 qed_mcp_config_vf_msix_ah(struct qed_hwfn *p_hwfn, in qed_mcp_config_vf_msix_ah()
2677 int qed_mcp_config_vf_msix(struct qed_hwfn *p_hwfn, in qed_mcp_config_vf_msix()
2687 qed_mcp_send_drv_version(struct qed_hwfn *p_hwfn, in qed_mcp_send_drv_version()
2719 int qed_mcp_halt(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_halt()
2752 int qed_mcp_resume(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_resume()
2776 int qed_mcp_ov_update_current_config(struct qed_hwfn *p_hwfn, in qed_mcp_ov_update_current_config()
2807 int qed_mcp_ov_update_driver_state(struct qed_hwfn *p_hwfn, in qed_mcp_ov_update_driver_state()
2838 int qed_mcp_ov_update_mtu(struct qed_hwfn *p_hwfn, in qed_mcp_ov_update_mtu()
2854 int qed_mcp_ov_update_mac(struct qed_hwfn *p_hwfn, in qed_mcp_ov_update_mac()
2887 int qed_mcp_ov_update_wol(struct qed_hwfn *p_hwfn, in qed_mcp_ov_update_wol()
2926 int qed_mcp_ov_update_eswitch(struct qed_hwfn *p_hwfn, in qed_mcp_ov_update_eswitch()
2957 int qed_mcp_set_led(struct qed_hwfn *p_hwfn, in qed_mcp_set_led()
2984 int qed_mcp_mask_parities(struct qed_hwfn *p_hwfn, in qed_mcp_mask_parities()
3008 struct qed_hwfn *p_hwfn = QED_LEADING_HWFN(cdev); in qed_mcp_nvm_read() local
3053 struct qed_hwfn *p_hwfn = QED_LEADING_HWFN(cdev); in qed_mcp_nvm_resp() local
3070 struct qed_hwfn *p_hwfn = QED_LEADING_HWFN(cdev); in qed_mcp_nvm_write() local
3148 int qed_mcp_phy_sfp_read(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in qed_mcp_phy_sfp_read()
3197 int qed_mcp_bist_register_test(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_bist_register_test()
3218 int qed_mcp_bist_clock_test(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_bist_clock_test()
3239 int qed_mcp_bist_nvm_get_num_images(struct qed_hwfn *p_hwfn, in qed_mcp_bist_nvm_get_num_images()
3260 int qed_mcp_bist_nvm_get_image_att(struct qed_hwfn *p_hwfn, in qed_mcp_bist_nvm_get_image_att()
3287 int qed_mcp_nvm_info_populate(struct qed_hwfn *p_hwfn) in qed_mcp_nvm_info_populate()
3355 void qed_mcp_nvm_info_free(struct qed_hwfn *p_hwfn) in qed_mcp_nvm_info_free()
3363 qed_mcp_get_nvm_image_att(struct qed_hwfn *p_hwfn, in qed_mcp_get_nvm_image_att()
3413 int qed_mcp_get_nvm_image(struct qed_hwfn *p_hwfn, in qed_mcp_get_nvm_image()
3526 qed_mcp_resc_allocation_msg(struct qed_hwfn *p_hwfn, in qed_mcp_resc_allocation_msg()
3606 qed_mcp_set_resc_max_val(struct qed_hwfn *p_hwfn, in qed_mcp_set_resc_max_val()
3631 qed_mcp_get_resc_info(struct qed_hwfn *p_hwfn, in qed_mcp_get_resc_info()
3659 int qed_mcp_initiate_pf_flr(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_initiate_pf_flr()
3667 static int qed_mcp_resource_cmd(struct qed_hwfn *p_hwfn, in qed_mcp_resource_cmd()
3697 __qed_mcp_resc_lock(struct qed_hwfn *p_hwfn, in __qed_mcp_resc_lock()
3760 qed_mcp_resc_lock(struct qed_hwfn *p_hwfn, in qed_mcp_resc_lock()
3792 qed_mcp_resc_unlock(struct qed_hwfn *p_hwfn, in qed_mcp_resc_unlock()
3873 bool qed_mcp_is_smart_an_supported(struct qed_hwfn *p_hwfn) in qed_mcp_is_smart_an_supported()
3879 int qed_mcp_get_capabilities(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_get_capabilities()
3894 int qed_mcp_set_capabilities(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_set_capabilities()
3910 int qed_mcp_get_engine_config(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_get_engine_config()
3949 int qed_mcp_get_ppfid_bitmap(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_get_ppfid_bitmap()
3975 int qed_mcp_nvm_get_cfg(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in qed_mcp_nvm_get_cfg()
4004 int qed_mcp_nvm_set_cfg(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in qed_mcp_nvm_set_cfg()
4042 __qed_mcp_send_debug_data(struct qed_hwfn *p_hwfn, in __qed_mcp_send_debug_data()
4099 qed_mcp_send_debug_data(struct qed_hwfn *p_hwfn, in qed_mcp_send_debug_data()
4153 qed_mcp_send_raw_debug_data(struct qed_hwfn *p_hwfn, in qed_mcp_send_raw_debug_data()