Lines Matching refs:load_code
1800 static int bnx2x_reset_hw(struct bnx2x_softc *sc, uint32_t load_code) in bnx2x_reset_hw() argument
1810 func_params.params.hw_init.load_phase = load_code; in bnx2x_reset_hw()
2719 static int bnx2x_nic_load_request(struct bnx2x_softc *sc, uint32_t * load_code) in bnx2x_nic_load_request() argument
2742 (*load_code) = bnx2x_fw_command(sc, DRV_MSG_CODE_LOAD_REQ, in bnx2x_nic_load_request()
2746 if (!(*load_code)) { in bnx2x_nic_load_request()
2752 if ((*load_code) == FW_MSG_CODE_DRV_LOAD_REFUSED) { in bnx2x_nic_load_request()
2765 static int bnx2x_nic_load_analyze_req(struct bnx2x_softc *sc, uint32_t load_code) in bnx2x_nic_load_analyze_req() argument
2770 if ((load_code != FW_MSG_CODE_DRV_LOAD_COMMON_CHIP) && in bnx2x_nic_load_analyze_req()
2771 (load_code != FW_MSG_CODE_DRV_LOAD_COMMON)) { in bnx2x_nic_load_analyze_req()
2796 static void bnx2x_nic_load_pmf(struct bnx2x_softc *sc, uint32_t load_code) in bnx2x_nic_load_pmf() argument
2802 if ((load_code == FW_MSG_CODE_DRV_LOAD_COMMON) || in bnx2x_nic_load_pmf()
2803 (load_code == FW_MSG_CODE_DRV_LOAD_COMMON_CHIP) || in bnx2x_nic_load_pmf()
2804 (load_code == FW_MSG_CODE_DRV_LOAD_PORT)) { in bnx2x_nic_load_pmf()
2817 if (load_code == FW_MSG_CODE_DRV_LOAD_COMMON_CHIP) { in bnx2x_nic_load_pmf()
4696 static int bnx2x_init_hw(struct bnx2x_softc *sc, uint32_t load_code) in bnx2x_init_hw() argument
4709 func_params.params.hw_init.load_phase = load_code; in bnx2x_init_hw()
5259 static void bnx2x_init_internal(struct bnx2x_softc *sc, uint32_t load_code) in bnx2x_init_internal() argument
5261 switch (load_code) { in bnx2x_init_internal()
5277 load_code); in bnx2x_init_internal()
5710 static void bnx2x_nic_init(struct bnx2x_softc *sc, int load_code) in bnx2x_nic_init() argument
5740 bnx2x_init_internal(sc, load_code); in bnx2x_nic_init()
6313 uint32_t load_code; in bnx2x_leader_reset() local
6320 load_code = bnx2x_fw_command(sc, DRV_MSG_CODE_LOAD_REQ, in bnx2x_leader_reset()
6322 if (!load_code) { in bnx2x_leader_reset()
6328 if ((load_code != FW_MSG_CODE_DRV_LOAD_COMMON_CHIP) && in bnx2x_leader_reset()
6329 (load_code != FW_MSG_CODE_DRV_LOAD_COMMON)) { in bnx2x_leader_reset()
6336 load_code = bnx2x_fw_command(sc, DRV_MSG_CODE_LOAD_DONE, 0); in bnx2x_leader_reset()
6337 if (!load_code) { in bnx2x_leader_reset()
7215 uint32_t load_code = 0; in bnx2x_nic_load() local
7266 if (bnx2x_nic_load_request(sc, &load_code) != 0) { in bnx2x_nic_load()
7273 if (bnx2x_nic_load_analyze_req(sc, load_code) != 0) { in bnx2x_nic_load()
7281 load_code = bnx2x_nic_load_no_mcp(sc); in bnx2x_nic_load()
7285 bnx2x_nic_load_pmf(sc, load_code); in bnx2x_nic_load()
7291 if (bnx2x_init_hw(sc, load_code) != 0) { in bnx2x_nic_load()
7300 bnx2x_nic_init(sc, load_code); in bnx2x_nic_load()
7320 load_code = in bnx2x_nic_load()
7322 if (!load_code) { in bnx2x_nic_load()