Lines Matching refs:p_link
1248 struct qed_mcp_link_state *p_link) in qed_mcp_read_eee_config() argument
1252 p_link->eee_adv_caps = 0; in qed_mcp_read_eee_config()
1253 p_link->eee_lp_adv_caps = 0; in qed_mcp_read_eee_config()
1258 p_link->eee_active = !!(eee_status & EEE_ACTIVE_BIT); in qed_mcp_read_eee_config()
1261 p_link->eee_adv_caps |= QED_EEE_1G_ADV; in qed_mcp_read_eee_config()
1263 p_link->eee_adv_caps |= QED_EEE_10G_ADV; in qed_mcp_read_eee_config()
1266 p_link->eee_lp_adv_caps |= QED_EEE_1G_ADV; in qed_mcp_read_eee_config()
1268 p_link->eee_lp_adv_caps |= QED_EEE_10G_ADV; in qed_mcp_read_eee_config()
1320 struct qed_mcp_link_state *p_link; in qed_mcp_handle_link_change() local
1327 p_link = &p_hwfn->mcp_info->link_output; in qed_mcp_handle_link_change()
1328 memset(p_link, 0, sizeof(*p_link)); in qed_mcp_handle_link_change()
1354 p_link->link_up = !!(shmem_info.status & in qed_mcp_handle_link_change()
1358 "Virtual link_up = %d\n", p_link->link_up); in qed_mcp_handle_link_change()
1360 p_link->link_up = !!(status & LINK_STATUS_LINK_UP); in qed_mcp_handle_link_change()
1362 "Physical link_up = %d\n", p_link->link_up); in qed_mcp_handle_link_change()
1365 p_link->link_up = false; in qed_mcp_handle_link_change()
1368 p_link->full_duplex = true; in qed_mcp_handle_link_change()
1371 p_link->speed = 100000; in qed_mcp_handle_link_change()
1374 p_link->speed = 50000; in qed_mcp_handle_link_change()
1377 p_link->speed = 40000; in qed_mcp_handle_link_change()
1380 p_link->speed = 25000; in qed_mcp_handle_link_change()
1383 p_link->speed = 20000; in qed_mcp_handle_link_change()
1386 p_link->speed = 10000; in qed_mcp_handle_link_change()
1389 p_link->full_duplex = false; in qed_mcp_handle_link_change()
1392 p_link->speed = 1000; in qed_mcp_handle_link_change()
1395 p_link->speed = 0; in qed_mcp_handle_link_change()
1396 p_link->link_up = 0; in qed_mcp_handle_link_change()
1399 if (p_link->link_up && p_link->speed) in qed_mcp_handle_link_change()
1400 p_link->line_speed = p_link->speed; in qed_mcp_handle_link_change()
1402 p_link->line_speed = 0; in qed_mcp_handle_link_change()
1408 __qed_configure_pf_max_bandwidth(p_hwfn, p_ptt, p_link, max_bw); in qed_mcp_handle_link_change()
1411 __qed_configure_pf_min_bandwidth(p_hwfn, p_ptt, p_link, min_bw); in qed_mcp_handle_link_change()
1413 p_link->min_pf_rate); in qed_mcp_handle_link_change()
1415 p_link->an = !!(status & LINK_STATUS_AUTO_NEGOTIATE_ENABLED); in qed_mcp_handle_link_change()
1416 p_link->an_complete = !!(status & in qed_mcp_handle_link_change()
1418 p_link->parallel_detection = !!(status & in qed_mcp_handle_link_change()
1420 p_link->pfc_enabled = !!(status & LINK_STATUS_PFC_ENABLED); in qed_mcp_handle_link_change()
1422 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1425 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1428 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1431 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1434 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1437 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1440 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1443 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1447 p_link->partner_tx_flow_ctrl_en = in qed_mcp_handle_link_change()
1449 p_link->partner_rx_flow_ctrl_en = in qed_mcp_handle_link_change()
1454 p_link->partner_adv_pause = QED_LINK_PARTNER_SYMMETRIC_PAUSE; in qed_mcp_handle_link_change()
1457 p_link->partner_adv_pause = QED_LINK_PARTNER_ASYMMETRIC_PAUSE; in qed_mcp_handle_link_change()
1460 p_link->partner_adv_pause = QED_LINK_PARTNER_BOTH_PAUSE; in qed_mcp_handle_link_change()
1463 p_link->partner_adv_pause = 0; in qed_mcp_handle_link_change()
1466 p_link->sfp_tx_fault = !!(status & LINK_STATUS_SFP_TX_FAULT); in qed_mcp_handle_link_change()
1469 qed_mcp_read_eee_config(p_hwfn, p_ptt, p_link); in qed_mcp_handle_link_change()