Lines Matching refs:p_link

1274 				    struct qed_mcp_link_state *p_link)  in qed_mcp_read_eee_config()  argument
1278 p_link->eee_adv_caps = 0; in qed_mcp_read_eee_config()
1279 p_link->eee_lp_adv_caps = 0; in qed_mcp_read_eee_config()
1284 p_link->eee_active = !!(eee_status & EEE_ACTIVE_BIT); in qed_mcp_read_eee_config()
1287 p_link->eee_adv_caps |= QED_EEE_1G_ADV; in qed_mcp_read_eee_config()
1289 p_link->eee_adv_caps |= QED_EEE_10G_ADV; in qed_mcp_read_eee_config()
1292 p_link->eee_lp_adv_caps |= QED_EEE_1G_ADV; in qed_mcp_read_eee_config()
1294 p_link->eee_lp_adv_caps |= QED_EEE_10G_ADV; in qed_mcp_read_eee_config()
1346 struct qed_mcp_link_state *p_link; in qed_mcp_handle_link_change() local
1353 p_link = &p_hwfn->mcp_info->link_output; in qed_mcp_handle_link_change()
1354 memset(p_link, 0, sizeof(*p_link)); in qed_mcp_handle_link_change()
1380 p_link->link_up = !!(shmem_info.status & in qed_mcp_handle_link_change()
1384 "Virtual link_up = %d\n", p_link->link_up); in qed_mcp_handle_link_change()
1386 p_link->link_up = !!(status & LINK_STATUS_LINK_UP); in qed_mcp_handle_link_change()
1388 "Physical link_up = %d\n", p_link->link_up); in qed_mcp_handle_link_change()
1391 p_link->link_up = false; in qed_mcp_handle_link_change()
1394 p_link->full_duplex = true; in qed_mcp_handle_link_change()
1397 p_link->speed = 100000; in qed_mcp_handle_link_change()
1400 p_link->speed = 50000; in qed_mcp_handle_link_change()
1403 p_link->speed = 40000; in qed_mcp_handle_link_change()
1406 p_link->speed = 25000; in qed_mcp_handle_link_change()
1409 p_link->speed = 20000; in qed_mcp_handle_link_change()
1412 p_link->speed = 10000; in qed_mcp_handle_link_change()
1415 p_link->full_duplex = false; in qed_mcp_handle_link_change()
1418 p_link->speed = 1000; in qed_mcp_handle_link_change()
1421 p_link->speed = 0; in qed_mcp_handle_link_change()
1422 p_link->link_up = 0; in qed_mcp_handle_link_change()
1425 if (p_link->link_up && p_link->speed) in qed_mcp_handle_link_change()
1426 p_link->line_speed = p_link->speed; in qed_mcp_handle_link_change()
1428 p_link->line_speed = 0; in qed_mcp_handle_link_change()
1434 __qed_configure_pf_max_bandwidth(p_hwfn, p_ptt, p_link, max_bw); in qed_mcp_handle_link_change()
1437 __qed_configure_pf_min_bandwidth(p_hwfn, p_ptt, p_link, min_bw); in qed_mcp_handle_link_change()
1439 p_link->min_pf_rate); in qed_mcp_handle_link_change()
1441 p_link->an = !!(status & LINK_STATUS_AUTO_NEGOTIATE_ENABLED); in qed_mcp_handle_link_change()
1442 p_link->an_complete = !!(status & in qed_mcp_handle_link_change()
1444 p_link->parallel_detection = !!(status & in qed_mcp_handle_link_change()
1446 p_link->pfc_enabled = !!(status & LINK_STATUS_PFC_ENABLED); in qed_mcp_handle_link_change()
1448 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1451 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1454 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1457 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1460 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1463 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1466 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1469 p_link->partner_adv_speed |= in qed_mcp_handle_link_change()
1473 p_link->partner_tx_flow_ctrl_en = in qed_mcp_handle_link_change()
1475 p_link->partner_rx_flow_ctrl_en = in qed_mcp_handle_link_change()
1480 p_link->partner_adv_pause = QED_LINK_PARTNER_SYMMETRIC_PAUSE; in qed_mcp_handle_link_change()
1483 p_link->partner_adv_pause = QED_LINK_PARTNER_ASYMMETRIC_PAUSE; in qed_mcp_handle_link_change()
1486 p_link->partner_adv_pause = QED_LINK_PARTNER_BOTH_PAUSE; in qed_mcp_handle_link_change()
1489 p_link->partner_adv_pause = 0; in qed_mcp_handle_link_change()
1492 p_link->sfp_tx_fault = !!(status & LINK_STATUS_SFP_TX_FAULT); in qed_mcp_handle_link_change()
1495 qed_mcp_read_eee_config(p_hwfn, p_ptt, p_link); in qed_mcp_handle_link_change()
1501 p_link->fec_active = QED_FEC_MODE_NONE; in qed_mcp_handle_link_change()
1504 p_link->fec_active = QED_FEC_MODE_FIRECODE; in qed_mcp_handle_link_change()
1507 p_link->fec_active = QED_FEC_MODE_RS; in qed_mcp_handle_link_change()
1510 p_link->fec_active = QED_FEC_MODE_AUTO; in qed_mcp_handle_link_change()
1513 p_link->fec_active = QED_FEC_MODE_UNSUPPORTED; in qed_mcp_handle_link_change()