Lines Matching refs:mcp_info

34 	qed_wr(_p_hwfn, _p_ptt, (_p_hwfn->mcp_info->_ptr + (_offset)), \
38 qed_rd(_p_hwfn, _p_ptt, (_p_hwfn->mcp_info->_ptr + (_offset)))
55 if (!p_hwfn->mcp_info || !p_hwfn->mcp_info->public_base) in qed_mcp_is_init()
62 u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base, in qed_mcp_cmd_port_init()
66 p_hwfn->mcp_info->port_addr = SECTION_ADDR(mfw_mb_offsize, in qed_mcp_cmd_port_init()
70 p_hwfn->mcp_info->port_addr, MFW_PORT(p_hwfn)); in qed_mcp_cmd_port_init()
75 u32 length = MFW_DRV_MSG_MAX_DWORDS(p_hwfn->mcp_info->mfw_mb_length); in qed_mcp_read_mb()
78 if (!p_hwfn->mcp_info->public_base) in qed_mcp_read_mb()
83 p_hwfn->mcp_info->mfw_mb_addr + in qed_mcp_read_mb()
87 ((u32 *)p_hwfn->mcp_info->mfw_mb_cur)[i] = in qed_mcp_read_mb()
113 list_add(&p_cmd_elem->list, &p_hwfn->mcp_info->cmd_list); in qed_mcp_cmd_add_elem()
132 list_for_each_entry(p_cmd_elem, &p_hwfn->mcp_info->cmd_list, list) { in qed_mcp_cmd_get_elem()
142 if (p_hwfn->mcp_info) { in qed_mcp_free()
145 kfree(p_hwfn->mcp_info->mfw_mb_cur); in qed_mcp_free()
146 kfree(p_hwfn->mcp_info->mfw_mb_shadow); in qed_mcp_free()
148 spin_lock_bh(&p_hwfn->mcp_info->cmd_lock); in qed_mcp_free()
151 &p_hwfn->mcp_info->cmd_list, list) { in qed_mcp_free()
154 spin_unlock_bh(&p_hwfn->mcp_info->cmd_lock); in qed_mcp_free()
157 kfree(p_hwfn->mcp_info); in qed_mcp_free()
158 p_hwfn->mcp_info = NULL; in qed_mcp_free()
169 struct qed_mcp_info *p_info = p_hwfn->mcp_info; in qed_load_mcp_offsets()
244 p_hwfn->mcp_info = kzalloc(sizeof(*p_hwfn->mcp_info), GFP_KERNEL); in qed_mcp_cmd_init()
245 if (!p_hwfn->mcp_info) in qed_mcp_cmd_init()
247 p_info = p_hwfn->mcp_info; in qed_mcp_cmd_init()
285 if (p_hwfn->mcp_info->mcp_hist != generic_por_0) { in qed_mcp_reread_offsets()
289 p_hwfn->mcp_info->mcp_hist, generic_por_0); in qed_mcp_reread_offsets()
301 if (p_hwfn->mcp_info->b_block_cmd) { in qed_mcp_reset()
308 spin_lock_bh(&p_hwfn->mcp_info->cmd_lock); in qed_mcp_reset()
314 seq = ++p_hwfn->mcp_info->drv_mb_seq; in qed_mcp_reset()
334 spin_unlock_bh(&p_hwfn->mcp_info->cmd_lock); in qed_mcp_reset()
347 if (!list_empty(&p_hwfn->mcp_info->cmd_list)) { in qed_mcp_has_pending_cmd()
348 p_cmd_elem = list_first_entry(&p_hwfn->mcp_info->cmd_list, in qed_mcp_has_pending_cmd()
369 if (seq_num != p_hwfn->mcp_info->drv_mb_seq) in qed_mcp_update_pending_cmd()
390 u32 union_data_addr = p_hwfn->mcp_info->drv_mb_addr + in qed_mcp_update_pending_cmd()
412 union_data_addr = p_hwfn->mcp_info->drv_mb_addr + in __qed_mcp_cmd_and_union()
434 p_hwfn->mcp_info->b_block_cmd = block_cmd; in qed_mcp_cmd_set_blocking()
477 spin_lock_bh(&p_hwfn->mcp_info->cmd_lock); in _qed_mcp_cmd_and_union()
488 spin_unlock_bh(&p_hwfn->mcp_info->cmd_lock); in _qed_mcp_cmd_and_union()
505 seq_num = ++p_hwfn->mcp_info->drv_mb_seq; in _qed_mcp_cmd_and_union()
513 spin_unlock_bh(&p_hwfn->mcp_info->cmd_lock); in _qed_mcp_cmd_and_union()
527 spin_lock_bh(&p_hwfn->mcp_info->cmd_lock); in _qed_mcp_cmd_and_union()
538 spin_unlock_bh(&p_hwfn->mcp_info->cmd_lock); in _qed_mcp_cmd_and_union()
547 spin_lock_bh(&p_hwfn->mcp_info->cmd_lock); in _qed_mcp_cmd_and_union()
549 spin_unlock_bh(&p_hwfn->mcp_info->cmd_lock); in _qed_mcp_cmd_and_union()
560 spin_unlock_bh(&p_hwfn->mcp_info->cmd_lock); in _qed_mcp_cmd_and_union()
575 spin_unlock_bh(&p_hwfn->mcp_info->cmd_lock); in _qed_mcp_cmd_and_union()
593 if (p_hwfn->mcp_info->b_block_cmd) { in qed_mcp_cmd_and_union()
1130 spin_lock_bh(&p_hwfn->mcp_info->unload_lock); in qed_mcp_unload_req()
1132 &p_hwfn->mcp_info->mcp_handling_status); in qed_mcp_unload_req()
1133 spin_unlock_bh(&p_hwfn->mcp_info->unload_lock); in qed_mcp_unload_req()
1138 &p_hwfn->mcp_info->mcp_handling_status) && --cnt) in qed_mcp_unload_req()
1181 u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base, in qed_mcp_handle_vf_flr()
1212 u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base, in qed_mcp_ack_vf_flr()
1252 p_hwfn->mcp_info->port_addr + in qed_mcp_handle_transceiver_change()
1260 (u32)(p_hwfn->mcp_info->port_addr + in qed_mcp_handle_transceiver_change()
1282 p_hwfn->mcp_info->port_addr + in qed_mcp_read_eee_config()
1301 u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base, in qed_mcp_get_shmem_func()
1322 p_info = &p_hwfn->mcp_info->func_info; in qed_read_pf_bandwidth()
1351 spin_lock_bh(&p_hwfn->mcp_info->link_lock); in qed_mcp_handle_link_change()
1353 p_link = &p_hwfn->mcp_info->link_output; in qed_mcp_handle_link_change()
1357 p_hwfn->mcp_info->port_addr + in qed_mcp_handle_link_change()
1362 (u32)(p_hwfn->mcp_info->port_addr + in qed_mcp_handle_link_change()
1374 if (p_hwfn->mcp_info->capabilities & in qed_mcp_handle_link_change()
1430 max_bw = p_hwfn->mcp_info->func_info.bandwidth_max; in qed_mcp_handle_link_change()
1431 min_bw = p_hwfn->mcp_info->func_info.bandwidth_min; in qed_mcp_handle_link_change()
1494 if (p_hwfn->mcp_info->capabilities & FW_MB_PARAM_FEATURE_SUPPORT_EEE) in qed_mcp_handle_link_change()
1497 if (p_hwfn->mcp_info->capabilities & in qed_mcp_handle_link_change()
1518 spin_unlock_bh(&p_hwfn->mcp_info->link_lock); in qed_mcp_handle_link_change()
1523 struct qed_mcp_link_params *params = &p_hwfn->mcp_info->link_input; in qed_mcp_set_link()
1546 if ((p_hwfn->mcp_info->capabilities & in qed_mcp_set_link()
1560 if (p_hwfn->mcp_info->capabilities & in qed_mcp_set_link()
1574 if (p_hwfn->mcp_info->capabilities & in qed_mcp_set_link()
1674 path_offsize_addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base, in qed_get_process_kill_counter()
1771 p_info = &p_hwfn->mcp_info->func_info; in qed_mcp_update_bw()
1788 p_hwfn->mcp_info->func_info.ovlan = (u16)shmem_info.ovlan_stag & in qed_mcp_update_stag()
1790 p_hwfn->hw_info.ovlan = p_hwfn->mcp_info->func_info.ovlan; in qed_mcp_update_stag()
1812 p_hwfn->mcp_info->func_info.ovlan, p_hwfn->hw_info.hw_mode); in qed_mcp_update_stag()
1949 port_cfg = qed_rd(p_hwfn, p_ptt, p_hwfn->mcp_info->port_addr + in qed_mcp_read_ufp_config()
2025 struct qed_mcp_info *info = p_hwfn->mcp_info; in qed_mcp_handle_events()
2046 spin_lock_bh(&p_hwfn->mcp_info->unload_lock); in qed_mcp_handle_events()
2048 &p_hwfn->mcp_info->mcp_handling_status)) { in qed_mcp_handle_events()
2049 spin_unlock_bh(&p_hwfn->mcp_info->unload_lock); in qed_mcp_handle_events()
2056 &p_hwfn->mcp_info->mcp_handling_status); in qed_mcp_handle_events()
2057 spin_unlock_bh(&p_hwfn->mcp_info->unload_lock); in qed_mcp_handle_events()
2114 &p_hwfn->mcp_info->mcp_handling_status); in qed_mcp_handle_events()
2162 public_base = p_hwfn->mcp_info->public_base; in qed_mcp_get_mfw_ver()
2230 p_hwfn->mcp_info->port_addr + in qed_mcp_get_media_type()
2256 p_hwfn->mcp_info->port_addr + in qed_mcp_get_transceiver_data()
2530 info = &p_hwfn->mcp_info->func_info; in qed_mcp_fill_shmem_func_info()
2595 if (!p_hwfn || !p_hwfn->mcp_info) in qed_mcp_get_link_params()
2597 return &p_hwfn->mcp_info->link_input; in qed_mcp_get_link_params()
2603 if (!p_hwfn || !p_hwfn->mcp_info) in qed_mcp_get_link_state()
2605 return &p_hwfn->mcp_info->link_output; in qed_mcp_get_link_state()
2611 if (!p_hwfn || !p_hwfn->mcp_info) in qed_mcp_get_link_capabilities()
2613 return &p_hwfn->mcp_info->link_capabilities; in qed_mcp_get_link_capabilities()
3942 return !!(p_hwfn->mcp_info->capabilities & in qed_mcp_is_smart_an_supported()
3952 0, &mcp_resp, &p_hwfn->mcp_info->capabilities); in qed_mcp_get_capabilities()
3956 p_hwfn->mcp_info->capabilities); in qed_mcp_get_capabilities()
4176 seq = (u16)atomic_inc_return(&p_hwfn->mcp_info->dbg_data_seq); in qed_mcp_send_debug_data()
4226 return !!(p_hwfn->mcp_info->capabilities & in qed_mcp_is_esl_supported()